我需要转换与CKeditor一起使用的代码 example code
$("#reply").click(function () {
$("#message-text").val("[\quote]" + document.getElementById('answer').innerHTML + "[\/quote]\n").show();});
var editor = CKEDITOR.replace('message-text')
答案 0 :(得分:1)
我想你想设置CKEditor文本?
var editor = CKEDITOR.instances['message-text'];
editor.setData('Your string or HTML');
OR
CKEDITOR.instances['message-text'].setData('Your string ')