diff --git a/lib/editor/htmlarea/blank.html b/lib/editor/htmlarea/blank.html new file mode 100644 index 00000000000..18ecdcb795c --- /dev/null +++ b/lib/editor/htmlarea/blank.html @@ -0,0 +1 @@ + diff --git a/lib/editor/htmlarea/coursefiles.php b/lib/editor/htmlarea/coursefiles.php index 6f2206f4394..50a06c8a2da 100644 --- a/lib/editor/htmlarea/coursefiles.php +++ b/lib/editor/htmlarea/coursefiles.php @@ -142,7 +142,7 @@ var prev = window.parent.ipreview; if(prev != null) { - prev.location.replace('about:blank'); + prev.location.replace('wwwroot ?>/lib/editor/htmlarea/blank.html'); } var uploader = window.parent.document.forms['uploader']; if(uploader != null) { diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php index 109d21d9290..cc03db29910 100644 --- a/lib/editor/htmlarea/htmlarea.php +++ b/lib/editor/htmlarea/htmlarea.php @@ -715,7 +715,7 @@ HTMLArea.prototype.generate = function () { // create the IFRAME var iframe = document.createElement("iframe"); - iframe.src = "about:blank"; + iframe.src = "wwwroot ?>/lib/editor/htmlarea/blank.html"; iframe.className = "iframe"; diff --git a/lib/editor/htmlarea/popups/insert_image.php b/lib/editor/htmlarea/popups/insert_image.php index 3a3c4c34769..d68bec588b2 100644 --- a/lib/editor/htmlarea/popups/insert_image.php +++ b/lib/editor/htmlarea/popups/insert_image.php @@ -90,9 +90,9 @@ function onPreview() { img.src = url; var win = null; if (!document.all) { - win = window.open("about:blank", "ha_imgpreview", "toolbar=no,menubar=no,personalbar=no,innerWidth=100,innerHeight=100,scrollbars=no,resizable=yes"); + win = window.open("wwwroot ?>/lib/editor/htmlarea/blank.html", "ha_imgpreview", "toolbar=no,menubar=no,personalbar=no,innerWidth=100,innerHeight=100,scrollbars=no,resizable=yes"); } else { - win = window.open("about:blank", "ha_imgpreview", "channelmode=no,directories=no,height=100,width=100,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no"); + win = window.open("wwwroot ?>/lib/editor/htmlarea/blank.html", "ha_imgpreview", "channelmode=no,directories=no,height=100,width=100,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no"); } preview_window = win; var doc = win.document; @@ -269,7 +269,7 @@ form { margin-bottom: 0px; margin-top: 0px; } ?>