【发布时间】:2016-01-06 06:09:19
【问题描述】:
这是我的配置
new MediumEditor(".editor", {
buttons: ['italic', 'bold', 'underline', 'anchor', 'unorderedlist', 'quote'],
paste: {
// This example includes the default options for paste, if nothing is passed this is what it used
forcePlainText: false,
cleanPastedHtml: true,
cleanReplacements: [],
cleanAttrs: ['id', 'style'],
cleanTags: ['a', 'br']
}
});
当我粘贴一些 html 文本时,我希望删除 id 和 style attrs,以及 a 和 br 标签。但这并没有发生,请参阅plunker here
我做错了吗?
【问题讨论】:
-
看起来你在这里打开了一个针对 medium-editor repo 的问题:github.com/yabwe/medium-editor/issues/881 看起来这只是
cleanPastedHtml和cleanPastedHTML之间的错字,对吧?