From aafa88af03cbb9ec858a6927699eef560bb78313 Mon Sep 17 00:00:00 2001 From: whoismy8023 Date: Thu, 4 Apr 2019 22:17:42 +0800 Subject: [PATCH] =?UTF-8?q?markdown=E7=BC=96=E8=BE=91=E5=99=A8=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E9=BB=98=E8=AE=A4=E4=BD=8D=E7=BD=AE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jpress-web/src/main/webapp/static/admin/js/jpressadmin.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jpress-web/src/main/webapp/static/admin/js/jpressadmin.js b/jpress-web/src/main/webapp/static/admin/js/jpressadmin.js index 441b0a720..8dc87fd65 100755 --- a/jpress-web/src/main/webapp/static/admin/js/jpressadmin.js +++ b/jpress-web/src/main/webapp/static/admin/js/jpressadmin.js @@ -220,7 +220,7 @@ function initCkEdtior(editor, height) { } function initMarkdownEditor(editor, height) { - return new SimpleMDE({ + var simpleMDE = new SimpleMDE({ element: $(editor)[0], autoDownloadFontAwesome: false, spellChecker: false, @@ -245,6 +245,11 @@ function initMarkdownEditor(editor, height) { ] }); + // 设置markdown编辑器滚动条高度 + $('.CodeMirror-scroll').css({ + "min-height": height + }); + return simpleMDE; } function openlayerfForSimplemde(editor) { -- Gitee