diff --git a/admin/editor-js.php b/admin/editor-js.php index 495ef0ae..1a356645 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -131,17 +131,24 @@ $(document).ready(function () { editor.hooks.chain('enterFakeFullScreen', function () { th = textarea.height(); $(document.body).addClass('fullscreen'); - textarea.css('height', $(window).height() - toolbar.outerHeight()); + var h = $(window).height() - toolbar.outerHeight(); + + textarea.css('height', h); + preview.css('height', h); }); editor.hooks.chain('enterFullScreen', function () { $(document.body).addClass('fullscreen'); - textarea.css('height', window.screen.height - toolbar.outerHeight()); + + var h = window.screen.height - toolbar.outerHeight(); + textarea.css('height', h); + preview.css('height', h); }); editor.hooks.chain('exitFullScreen', function () { $(document.body).removeClass('fullscreen'); textarea.height(th); + preview.css('height', 'auto'); }); editor.run(); diff --git a/admin/js/markdown.js b/admin/js/markdown.js index 8d669c5e..b091ad7c 100644 --- a/admin/js/markdown.js +++ b/admin/js/markdown.js @@ -225,7 +225,7 @@ this.makeHtml = function(text) { return all; }); - if (text.indexOf('')) { + if (text.indexOf('') > 0) { var parts = text.split(/\s*<\!\-\-more\-\->\s*/), summary = parts.shift(), details = parts.join(''); @@ -5307,7 +5307,7 @@ else commandProto.doMore = function (chunk, postProcessing) { chunk.startTag = "\n\n"; chunk.selection = ""; - chunk.skipLines(2, 1, true); + chunk.skipLines(2, 0, true); } commandProto.doTab = function (chunk, postProcessing) {