这里的粘贴配置,目前暂时只能用于对粘贴 html 内容的配置,也就是通过网页复制进来的内容进行处理。
new LinwitDocEditor({
element: "#aiEditor",
htmlPasteConfig: {
pasteAsText: false,
pasteClean: false,
clearLineBreaks: true,
pasteProcessor: (html) => {
return html;
}
},
})
'a', 'span', 'strong', 'b', 'em', 'i', 'u' 标签的修饰。true