wangEditor icon indicating copy to clipboard operation
wangEditor copied to clipboard

insertNode插入文本后,功能菜单的状态怎么重置呢?

Open lmfuture opened this issue 5 months ago • 1 comments

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

lmfuture avatar Jun 04 '25 11:06 lmfuture