这是我的配置
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
难道我做错了什么?