editor.md icon indicating copy to clipboard operation
editor.md copied to clipboard

在change事件中使用setMarkdown或者setValue时,预览区不同步更新

Open austzyl opened this issue 1 year ago • 0 comments

editor.on('change', function() { const md = editor.getMarkdown(); if(md.length > 10) { editor.setMarkdown(md.substring(0, 10)) } }) 类似上述代码,Markdown内容变更后,输入1234578901,左侧Markdown内容变味1234567890,而右侧preview区还是1234578901

austzyl avatar Sep 19 '24 07:09 austzyl