diff --git a/admin/editor-js.php b/admin/editor-js.php index 851f65e3..ff539378 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -128,11 +128,9 @@ $(document).ready(function () { var input = $('#text'), th = textarea.height(); editor.hooks.chain('enterFakeFullScreen', function () { - var height = window.innerHeight || document.body.clientHeight || document.documentElement.clientHeight; - th = textarea.height(); $(document.body).addClass('fullscreen'); - textarea.css('height', height - toolbar.outerHeight()); + textarea.css('height', $(window).height() - toolbar.outerHeight()); }); editor.hooks.chain('enterFullScreen', function () {