Skip to content

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

@austzyl

Description

@austzyl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions