2012-07-27 122 views
1

如何禁用CKeditor删除标签,如<div>,因为它认为它不需要,但我需要它?如何禁用CKeditor删除标签

谢谢。

+0

尝试添加更多信息。它有什么作用?你期望它做什么?你试过了什么? – Nenotlep 2013-04-08 20:48:41

回答

1

假设你定义了你的编辑是这样的:

var editor = CKEDITOR.replace('editor1'); 

再加入此配置:

editor.config.allowedContent = true; 

OR

config.js,只需添加这

config.allowedContent = true;