CKEDITOR如何禁用ul,li和div的过滤器代码?

Ale*_*x N 0 ckeditor

美好的一天.

在我的代码中我有行<ul class="myclass">但在CKEDITOR上复制之后我有<ul>没有类的行myclass.

请告诉我如何禁用元素ul,li和div的过滤器代码?

Spo*_*ons 8

你需要搜索一下.更多.如果您在Stackoverflow上查找CKEditor问题.大约30%用于内容过滤.

有关此外观的所有支持,请访问:http://docs.ckeditor.com/#!/ guide/dev_advanced_content_filter

或者在配置中添加以下行以禁用内容过滤器.(最好配置它)

CKEDITOR.config.allowedContent = true;
Run Code Online (Sandbox Code Playgroud)

编辑:

如果将它放在编辑器文件中,它将如下所示:

CKEDITOR.editorConfig = function( config ) 
 { 
   config.allowedContent = true; 
 };
Run Code Online (Sandbox Code Playgroud)