[英]CK Editor styles not working
I am using CK Editor 4.5 as text editor in my form.我在表单中使用 CK Editor 4.5 作为文本编辑器。 I have pasted my html code including "style" tags to the editor.
我已将包含“样式”标签的 html 代码粘贴到编辑器中。 But when saving the data it automatically removes the style tags from the code.
但是在保存数据时,它会自动从代码中删除样式标签。
I have tried to turn off Automatic Content Filtering by add this to config file我试图通过将其添加到配置文件来关闭自动内容过滤
config.allowedContent = true;
But it still remove the style tags.但它仍然删除了样式标签。 The editor also removes the text color, text align styles added.
编辑器还删除了文本颜色,添加了文本对齐样式。
How can i add style tags using CK Editor.?如何使用 CK 编辑器添加样式标签。?
My apologies.我很抱歉。 Its not the issue of ckeditor.
这不是ckeditor的问题。
I am using codeigniter for server scripts.我正在将 codeigniter 用于服务器脚本。 It removes inline style on form submit.
它删除表单提交时的内联样式。
我正在使用 Rails 并遇到了同样的问题,事实证明我正在使用sanitize
来呈现内容,这将删除内联样式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.