From e237e56bbbede9fe5c6091f5f8b359043bda6243 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Tue, 17 Jul 2018 10:06:28 +0800 Subject: [PATCH] =?UTF-8?q?:alien:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=85=A8=E5=B1=8F=E6=A0=B7=E5=BC=8F=E6=B7=B7=E4=B9=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/admin/admin_page_md_editor.ftl | 8 +++++++- .../resources/templates/admin/admin_post_md_editor.ftl | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/admin/admin_page_md_editor.ftl b/src/main/resources/templates/admin/admin_page_md_editor.ftl index 075230222..239939c44 100755 --- a/src/main/resources/templates/admin/admin_page_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_page_md_editor.ftl @@ -156,7 +156,13 @@ imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"], imageUploadURL : "/admin/attachments/upload/editor", htmlDecode: "script", - tocStartLevel : 1 + tocStartLevel : 1, + onfullscreen : function() { + $("#markdown-editor").css("z-index","9999"); + }, + onfullscreenExit : function() { + $("#markdown-editor").css("z-index",""); + } // toolbarIcons : function () { // return editormd.toolbarModes["simple"]; // } diff --git a/src/main/resources/templates/admin/admin_post_md_editor.ftl b/src/main/resources/templates/admin/admin_post_md_editor.ftl index b076ed24b..5ba5189fe 100755 --- a/src/main/resources/templates/admin/admin_post_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_post_md_editor.ftl @@ -236,7 +236,13 @@ imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"], imageUploadURL : "/admin/attachments/upload/editor", htmlDecode: "script", - tocStartLevel : 1 + tocStartLevel : 1, + onfullscreen : function() { + $("#markdown-editor").css("z-index","9999"); + }, + onfullscreenExit : function() { + $("#markdown-editor").css("z-index",""); + } // toolbarIcons : function () { // return editormd.toolbarModes["simple"]; // }