Sfoglia il codice sorgente

feat: Editor.md启用codeFold

SongZihuan 3 anni fa
parent
commit
96b001b934
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 2 0
      templates/docx/article.html
  2. 1 0
      templates/docx/docx.html

+ 2 - 0
templates/docx/article.html

@@ -157,6 +157,7 @@
                     path: "{{ url_for('static',filename='editor.md/lib/') }}",
                     placeholder: "请写下你的日志...",
                     saveHTMLToTextarea: true,
+                    codeFold: true,
                     emoji: true,
                     taskList: true,
                     tex: true,
@@ -171,6 +172,7 @@
                 let editor = editormd.markdownToHTML("markdown-view", {
                     path: "{{ url_for('static',filename='editor.md/lib/') }}",
                     saveHTMLToTextarea: true,
+                    codeFold: true,
                     emoji: true,
                     taskList: true,
                     tex: true,

+ 1 - 0
templates/docx/docx.html

@@ -123,6 +123,7 @@
                 path: "{{ url_for('static',filename='editor.md/lib/') }}",
                 placeholder: "请写下你的日志...",
                 saveHTMLToTextarea: true,
+                codeFold: true,
                 emoji: true,
                 taskList: true,
                 tex: true,