From 9ca3ca5b9e4fd01be25cfea0dd307bc615878cbc Mon Sep 17 00:00:00 2001 From: BlackGanglion Date: Tue, 10 Jan 2017 17:40:08 +0800 Subject: [PATCH] fix: editor is covered by Nav and Left Meun when enlarged --- wp-markdown-editor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-markdown-editor.php b/wp-markdown-editor.php index 200d870..a4e3c5c 100644 --- a/wp-markdown-editor.php +++ b/wp-markdown-editor.php @@ -126,8 +126,10 @@ function init_editor() var wrap = cm.getWrapperElement(); if(/fullscreen/.test(wrap.previousSibling.className)) { document.getElementById("wp-content-editor-container").style.zIndex = 999999; + document.getElementById("wp-content-editor-container").style.position = "absolute"; } else { document.getElementById("wp-content-editor-container").style.zIndex = 1; + document.getElementById("wp-content-editor-container").style.position = "initial"; } }, 2); } @@ -188,4 +190,4 @@ function plugin_deactivation() } -WpMarkdownEditor::getInstance(); \ No newline at end of file +WpMarkdownEditor::getInstance();