<div style="pading:0 5px 0 10px">
</div>
问题:上面代码中 div的pading样式丢失
解决方案:
在editor对象创建后添加
myEditor.htmlTags.div.push(“style”);
版本:kindeditor-4.1.11-zh-CN
var myEditor;
KindEditor.ready(function(K) {
var options = {
filterMode : true
};
myEditor = K.create('#editor_id', options);
myEditor.htmlTags.div.push("style");
myEditor.html(decodeURIComponent(oldTongzhi));
});
如有更好的解决办法请留言,谢谢!