ckeditor html标签的class 等attribute属性都被屏蔽啦,替换成空的解决方案
2016-03-31 11:21
561 查看
ckeditor 模块中自定义class
在ckeditor模块中,编辑内容时,
在源码中填写<div class="myclass">some content</div>,ckeditor不会帮你保存class,
成为:<div >some content</div>,解决方法如下:
在这个路径下:admin/config/content/ckeditor/edit/Full
高级选项中:Custom JavaScript configuration:填写:
config.allowedContent = true;并保存配置:
可查看
http://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div
在ckeditor模块中,编辑内容时,
在源码中填写<div class="myclass">some content</div>,ckeditor不会帮你保存class,
成为:<div >some content</div>,解决方法如下:
在这个路径下:admin/config/content/ckeditor/edit/Full
高级选项中:Custom JavaScript configuration:填写:
config.allowedContent = true;并保存配置:
可查看
http://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div
相关文章推荐
- 对比HTML和XML
- div内元素是否在可见区域的判断与控制
- HTML实体符号代码速查表
- HTML九宫格布局实现方法
- html中offsetTop、clientTop、scrollTop、offsetTop各属性介绍
- html调用XML
- HTML学习(四)——图像
- html的form中动态添加action
- HTML框架集示例
- html禁止手机页面放大缩小
- HTML初识
- HTML <input> accept 属性-规定能够通过文件上传进行提交的文件类型
- html 页面跳转 返回上一页 history 和 location
- 2016.3.21html标题,段落与格式化
- 笔记 - 9、HTML - XHTML
- 笔记 - 8、HTML - 表单
- 笔记 - 7、HTML - 内联(浮动)框架--iframe
- 笔记 - 6、HTML - 框架--frameset
- 笔记 - 5、HTML - 插入多媒体
- 笔记 - 3、HTML - 超链接