dedecms Ckeditor 函数在 include/ckeditor/ckeditor_php5.php
include/ckeditor/ckeditor_php4.php
直接看代码吧,在你的html页面中应该有类似这么一句
<script type=
"text/javascript"
>
CKEDITOR.replace(
'desc'
);
</script>
修改为:
var
p_desc = CKEDITOR.replace(
'p_desc'
);
即赋值给一个变量就OK了,然后使用下面的方式读取文本域的值:
p_desc.document.getBody().getText();
//取文本形式的值
p_desc.document.getBody().getHtml();
//取包含html代码的值