CKEditor4销毁,不保留原HTML内容。如何禁用过滤器? [英] CKEditor4 destroy, not preserve original HTML content. How to disable filters?
问题描述
我使用标准演示,喜欢这个。因此,主要选项(小改变)可以在 config.js
标记。
示例,按源代码编辑HTML(按钮 ) / p>
因此,如何停用默认过滤器?
默认情况下行为是一个问题:不向后兼容,并且,主要是不是预期的行为,因为摧毁原始内容,你必须只能用编辑器更改。
类似问题:
p> config.js
您可以添加像
CKEDITOR .config.allowedContent = true;
I am using the standard demos, like this. So, the main options (little changes) can be flagged at config.js
.
Example when edit by source-code-HTML (button Source): elements (tags) with class attribute, lost the attribute (class
has been stripped out).
So, how to disable the "default filter"?
The "filtering by default" behaviour is a problem: is not backwards compatible, and, mainly, not a expected behaviour, because destroy the original content, that you must only change with editor.
Similar questions:
At config.js
you can add something like,
CKEDITOR.config.allowedContent=true;
see "Advanced Content Filter" (ACF) and how to enable/disable it.
这篇关于CKEditor4销毁,不保留原HTML内容。如何禁用过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!