From 67675dfa74d11ad226529b0cf8ff67066af10463 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 23 Feb 2020 21:54:19 +0800 Subject: [PATCH] =?UTF-8?q?vditor=E7=BC=96=E8=BE=91=E5=99=A8=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E7=89=88=E6=9C=AC=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=E9=80=A0=E6=88=90?= =?UTF-8?q?=E7=9A=84=E4=B8=8D=E7=A8=B3=E5=AE=9A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/components/MarkdownEditor.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/site/components/MarkdownEditor.vue b/site/components/MarkdownEditor.vue index 6f99acf8e..c96c4e384 100644 --- a/site/components/MarkdownEditor.vue +++ b/site/components/MarkdownEditor.vue @@ -32,7 +32,7 @@ export default { vditor: null, width: '100%', toolbar: [ - 'emoji', + // 'emoji', 'headings', 'bold', 'italic', @@ -85,11 +85,15 @@ export default { counter: '999999', delay: 500, mode: 'markdown-show', + theme: 'classic', + customEmoji: { + '1': '😝' + }, preview: { mode: 'editor', hljs: { enable: true, - style: 'GitHub', + style: 'github', lineNumber: true } }, @@ -138,12 +142,12 @@ export default { link: [ { rel: 'stylesheet', - href: '//cdn.jsdelivr.net/npm/vditor/dist/index.classic.css' + href: '//cdn.jsdelivr.net/npm/vditor@2.2.0/dist/index.css' } ], script: [ { - src: '//cdn.jsdelivr.net/npm/vditor/dist/index.min.js' + src: '//cdn.jsdelivr.net/npm/vditor@2.2.0/dist/index.min.js' } ] } @@ -151,9 +155,4 @@ export default { } - +