【问题标题】:ckeditor inline removes imagesckeditor inline 删除图像
【发布时间】:2015-12-24 21:43:39
【问题描述】:

我正在使用带有内联编辑功能的 ckeditor 4.x。 我在没有 ckeditor 图像模块的 HTML 中插入图像。 一旦我初始化内联编辑,我的就会被删除。

这是我设置的配置: config.extraAllowedContent = 'img!src,alt,title,width,height,style,old_style,ctype,img-prop,id{*}'; config.allowedContent = true;

有人可以帮我吗?

谢谢

【问题讨论】:

    标签: image ckeditor inline


    【解决方案1】:

    找到了解决办法!

    初始化内联编辑时,添加:“allowedContent” 例如:_active_editor = CKEDITOR.inline(elm, { allowedContent: {img:{attributes:'',styles:'', classes:'*'}}...);

    【讨论】:

      猜你喜欢
      • 2012-09-04
      • 2014-11-29
      • 1970-01-01
      • 1970-01-01
      • 2019-11-09
      • 2013-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多