正如标题所说,非常简单。
我只需要知道如何将 div 中的所有内容传输到 CKEditor,而不传输 div 本身。
顺便说一句,这是 4.1 版本。
最佳答案
如果您可以使用 jQuery,您只需读取内容并在其中设置数据即可。
var html = jQuery('#YourDivSelector').html();
CKEDITOR.instances.editor1.setData(html);
关于javascript - 将所有信息和标签从 div 传输到 CKEditor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15870928/