Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说的非常直截了当。
我只需要知道如何将所有内容从 div 传输到 CKEditor 而不传输 div 本身。
顺便说一句,它是 4.1 版。
如果您可以使用 jQuery,您只需读取内容并将其设置为数据即可。
var html = jQuery('#YourDivSelector').html(); CKEDITOR.instances.editor1.setData(html);