最近用了ckeditor3.6,但是发现提交的时候编辑器中的内容并没有同步更新到隐藏的textarea中,请各位指教
代码如下:<textareacols="80"id="fulledit"name="fulledit"rows="10"></textarea><scripttype="...
代码如下:
<textarea cols="80" id="fulledit" name="fulledit" rows="10"></textarea>
<script type="text/javascript">
CKEDITOR.replace('fulledit' , {
skin : 'v2',
toolbar : 'Basic',
toolbar_Basic : [
['Source'],
['Bold','Italic','Underline'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink'],
['Styles','Format','Font','FontSize']
],
toolbarCanCollapse : true,
resize_enabled : false,
toolbarStartupExpanded : true,
width : 500,
height : 400
});
</script>
<input type="button" value="Submit" onclick="showin();" />
<script >
function showin() {
alert(document.getElementById("fulledit").value);
}
</script> 展开
<textarea cols="80" id="fulledit" name="fulledit" rows="10"></textarea>
<script type="text/javascript">
CKEDITOR.replace('fulledit' , {
skin : 'v2',
toolbar : 'Basic',
toolbar_Basic : [
['Source'],
['Bold','Italic','Underline'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink'],
['Styles','Format','Font','FontSize']
],
toolbarCanCollapse : true,
resize_enabled : false,
toolbarStartupExpanded : true,
width : 500,
height : 400
});
</script>
<input type="button" value="Submit" onclick="showin();" />
<script >
function showin() {
alert(document.getElementById("fulledit").value);
}
</script> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询