diff --git a/lib/editor/htmlarea/blank.html b/lib/editor/htmlarea/blank.html
new file mode 100644
index 0000000..18ecdcb
--- /dev/null
+++ b/lib/editor/htmlarea/blank.html
@@ -0,0 +1 @@
+<html></html>
diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php
index 87d4122..b378794 100644
--- a/lib/editor/htmlarea/htmlarea.php
+++ b/lib/editor/htmlarea/htmlarea.php
@@ -721,7 +721,7 @@ HTMLArea.prototype.generate = function () {
     // create the IFRAME
     var iframe = document.createElement("iframe");
 
-    iframe.src = "about:blank";
+    iframe.src = "<?php echo $CFG->libroot ?>/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 3a3c4c3..0aaed58 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("<?php echo $CFG->libroot ?>/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("<?php echo $CFG->libroot ?>/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; }
       ?>
       </td>
       <td width="45%" valign="top"><?php print_string("preview","editor");?>:<br />
-      <iframe id="ipreview" name="ipreview" src="about:blank" style="width: 100%; height: 200px;"></iframe>
+      <iframe id="ipreview" name="ipreview" src="<?php echo $CFG->libroot ?>/editor/htmlarea/blank.html" style="width: 100%; height: 200px;"></iframe>
       </td>
     </tr>
   </table>
diff --git a/lib/editor/htmlarea/popups/insert_image_std.php b/lib/editor/htmlarea/popups/insert_image_std.php
index 6f12d9c..ffd7aa7 100644
--- a/lib/editor/htmlarea/popups/insert_image_std.php
+++ b/lib/editor/htmlarea/popups/insert_image_std.php
@@ -82,9 +82,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("<?php echo $CFG->libroot ?>/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("<?php echo $CFG->libroot ?>/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;
