editor.md 关闭实时预览全屏预览失效

uqjltbpv  于 2023-03-19  发布在  其他
关注(0)|答案(1)|浏览(289)

如下:设置watch:false 全屏预览会失效

$(function () {
        testEditor = editormd("test-editormd", {
            width: "100%",
            height: 300,
            syncScrolling: "single",
            watch:false,
            path: web_project_name+"/plugins/editor.md/lib/",
            toolbarIcons : function() {
                return ["undo", "redo", "|", "preview"]
            },
            saveHTMLToTextarea : true
        });
    });

相关问题