CKEditor4销毁,不保留原HTML内容。如何禁用过滤器? [英] CKEditor4 destroy, not preserve original HTML content. How to disable filters?

查看:736
本文介绍了CKEditor4销毁,不保留原HTML内容。如何禁用过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用标准演示,喜欢这个。因此,主要选项(小改变)可以在 config.js 标记。



示例,按源代码编辑HTML(按钮 / p>

因此,如何停用默认过滤器?



默认情况下行为是一个问题:不向后兼容,并且,主要是不是预期的行为,因为摧毁原始内容,你必须只能用编辑器更改。



类似问题:




解决方案

p> config.js 您可以添加像

  CKEDITOR .config.allowedContent = true; 

请参阅高级内容过滤器( ACF )和如何启用/停用


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆