小可爱

markdown编辑器editormd 关闭行号

电脑版发表于:2022/2/3 21:29


很简单,有个属性可以设置的就是:lineNumbers: false


完整一点的:

testEditor = editormd("article-editormd-view", {
    width: "100%",
    height: 640,
    syncScrolling: "single",
    watch: false, //关闭实时预览
    toolbarIcons: function () {
        return ["bold", "del", "italic", "quote", "ucwords", "uppercase", "lowercase"]
    },
    lineNumbers: false,//关闭行号
    path: "/lib/editormd/lib/",
});


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢