diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 549001c11abdf..7225beb0b2e8d 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -4,6 +4,10 @@ $lastmodified = filemtime("htmlarea.php"); $lifetime = 1800; + if ( function_exists('ob_gzhandler') ) { + ob_start("ob_gzhandler"); + } + header("Content-type: application/x-javascript"); // Correct MIME type header("Last-Modified: " . gmdate("D, d M Y H:i:s", $lastmodified) . " GMT"); header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT"); @@ -670,8 +674,11 @@ function createButton(txt) { // Generate iframe content var html = "" if (!editor.config.fullPage) { - html = "\n"; + html = '\n'; + html += "\n"; html += "\n"; + html += '" />\n'; if (editor.config.baseURL) html += ''; html += '\n"; diff --git a/lib/editor/lang/en.php b/lib/editor/lang/en.php index 4ebb9963506cf..eb83a0735f611 100644 --- a/lib/editor/lang/en.php +++ b/lib/editor/lang/en.php @@ -3,6 +3,10 @@ $lastmodified = filemtime("en.php"); $lifetime = 1800; + if ( function_exists('ob_gzhandler') ) { + ob_start("ob_gzhandler"); + } + header("Content-type: application/x-javascript"); // Correct MIME type header("Last-Modified: " . gmdate("D, d M Y H:i:s", $lastmodified) . " GMT"); header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT"); diff --git a/lib/editor/popups/fullscreen.php b/lib/editor/popups/fullscreen.php index b56a51903861c..46076314227d8 100644 --- a/lib/editor/popups/fullscreen.php +++ b/lib/editor/popups/fullscreen.php @@ -1,6 +1,11 @@ <?php print_string("fullscreen","editor");?> @@ -10,11 +15,11 @@ html, body { margin: 0px; border: 0px; background-color: buttonface; } - - - - - + + + + +