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();