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.
如何禁用CKeditor删除标签,<div>因为它认为不需要但我需要它?
<div>
谢谢。
假设您已经像这样定义了您的编辑器:
var editor = CKEDITOR.replace( 'editor1' );
然后添加此配置:
editor.config.allowedContent = true;
或者
,config.js只需添加这个
config.js
config.allowedContent = true;