您好,欢迎访问一九零五行业门户网

CKeditor里面写内容如何获取

ckeditor里面写内容怎么获取
这个是调用编辑器的代码editor('content');
ckfinder::setupckeditor($ckeditor, true, true);
?>
我百度用这样的方法:$editor = ckeditor.replace(content);
$content=$editor.getdata();
但是输出这样的错误notice: use of undefined constant ckeditor - assumed 'ckeditor' in d:\xampp\htdocs\belong\add.php on line 5
fatal error: call to undefined function replace() in d:\xampp\htdocs\belong\add.php on line 5  求指导,,,纯属php菜鸟
------解决方案--------------------
一直用js 版本的~
------解决方案--------------------
这个可以一句代码获取:
http://www.162100.com/162100editor/
------解决方案--------------------
我是用js版的
提交时直接获取textarea的id
------解决方案--------------------
js:
取值:
var text=ckeditor.instances.content.getdata();
赋值:
ckeditor.instances.text1.setdata('你好');
其它类似信息

推荐信息