更新* 已解决!*
我设法使其正常工作!很简单,根据他们使用此'span[!class](update);'
我想删除ckeditor中的所有span标签,除外是具有特定类(具有'update'和'andy'类的span)的。所以我这样设置config.js
config.allowedContent =
'h1 h2 h3 strong em ul ol li table td th tr;' +
'a[!href];' +
'img[!src,alt,width,height];' +
'span(update,andy);' +
'div(Keymessage,Keymessage1,Keymessage2,Leader,Leader1,Leader2);'
;
当我从单词中粘贴内容时,编辑器似乎仅从span中删除所有属性,而没有删除span本身-像这样留下空的span
<span><span><span>In Oct-14, <span>Packaging Management Decree 409/2014 LID 4058</span> superseded the 2005 Packaging Decree. The new Decree retained many of the basic requirements of the earlier measure. As before, the provisions that would extend the mandatory deposit to all beverage containers (also below 0.75 litres) would not enter into force unless a further implementing decree was adopted.</span></span></span>
我应该怎么做才能摆脱它?为什么不带类就不剥离整个标签?
我也尝试设置config.disallowedContent='span[!lang,style]';
但没有运气。
请帮助
预先感谢