aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/preview/preview.html
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/preview/preview.html')
-rw-r--r--sources/plugins/preview/preview.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/sources/plugins/preview/preview.html b/sources/plugins/preview/preview.html
new file mode 100644
index 00000000..8c028262
--- /dev/null
+++ b/sources/plugins/preview/preview.html
@@ -0,0 +1,13 @@
1<script>
2
3// Prevent from DOM clobbering.
4if ( typeof window.opener._cke_htmlToLoad == 'string' ) {
5 var doc = document;
6 doc.open();
7 doc.write( window.opener._cke_htmlToLoad );
8 doc.close();
9
10 delete window.opener._cke_htmlToLoad;
11}
12
13</script>