wangEditor
wangEditor copied to clipboard
insertNode插入文本后,功能菜单的状态怎么重置呢?
const handleVariableSelect = (value: string) => { if (editorRef.value) { const text = '${' + value + '}'; const node = { text: text, bold: true, color: '#ff4d4f', }; editorRef.value.insertNode(node); } };
这样插入后,编辑器就加粗并且红色字体了,怎么恢复菜单状态呢