CKEditor类被剥离 [英] CKEditor classes being stripped

查看:187
本文介绍了CKEditor类被剥离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义插件,添加一个附加类的链接。当我查看这个使用源按钮,它显示类和看起来它应该。然而,当我回到WYSYWIG视图,​​然后再次查看源类已被删除。



任何想法如何阻止这种情况?

$

解决方案

检查此博文



在CKEditor 4.1 RC我们引入了ACF - 高级内容过滤器。您需要集成您的插件,因为否则由它创建的特殊内容被剥离。


I have a custom plugin that adds a link with a class attached. When I view this using the Source button it shows the class and looks as it should. However, when I go back to WYSYWIG view and then view the source again the class has been stripped out.

Any idea how to stop this happening?

Thanks in advance for your help.

解决方案

Check this blog post.

In CKEditor 4.1 RC we've introduced ACF - Advanced Content Filter. You need to integrate your plugin with it, because otherwise special content created by it is stripped.

这篇关于CKEditor类被剥离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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