aboutsummaryrefslogtreecommitdiff
path: root/data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 03:56:46 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 03:56:46 -0400
commit689ee9c7ea48c2e3de8790dcaae4500207567508 (patch)
tree057be6b6e289395f0c47927b83a93137b33f40f8 /data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html
parent50ac423f6e3be7566c1106647158e81b6eaae44a (diff)
downloadold-guff-689ee9c7ea48c2e3de8790dcaae4500207567508.tar.bz2
old-guff-689ee9c7ea48c2e3de8790dcaae4500207567508.zip
add ckeditor
Diffstat (limited to 'data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html')
-rw-r--r--data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html b/data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html
new file mode 100644
index 0000000..8c02826
--- /dev/null
+++ b/data/stuff/ckeditor-4.5.8-custom/plugins/preview/preview.html
@@ -0,0 +1,13 @@
+<script>
+
+// Prevent from DOM clobbering.
+if ( typeof window.opener._cke_htmlToLoad == 'string' ) {
+ var doc = document;
+ doc.open();
+ doc.write( window.opener._cke_htmlToLoad );
+ doc.close();
+
+ delete window.opener._cke_htmlToLoad;
+}
+
+</script>