2012-07-27 123 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;