aboutsummaryrefslogtreecommitdiff
path: root/data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-15 17:07:16 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-15 17:07:16 -0400
commitae667b4222a718f99091ec8bb1fb130970b051e7 (patch)
tree08b2844213893ba614896b6dd06d7cfac22f0656 /data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html
downloadguff-ae667b4222a718f99091ec8bb1fb130970b051e7.tar.bz2
guff-ae667b4222a718f99091ec8bb1fb130970b051e7.zip
initial commit
Diffstat (limited to 'data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html')
-rw-r--r--data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html b/data/assets/ckeditor-4.5.8-custom/plugins/preview/preview.html
new file mode 100644
index 0000000..8c02826
--- /dev/null
+++ b/data/assets/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>