aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/ace/www/ace2_outer.js
diff options
context:
space:
mode:
authorSimon B @piratpartiet <simonb@redhog.org>2010-04-21 10:55:30 +0200
committerSimon B @piratpartiet <simonb@redhog.org>2010-04-21 10:55:30 +0200
commite794aa43d7977aa58a7ef8704ac212008e0280e9 (patch)
tree638dd5373f6d1f95d90ff3aa336ba9d4300b9018 /infrastructure/ace/www/ace2_outer.js
parent9405fe0a588018bf55b82016c1ae246def1cca19 (diff)
downloadetherpad-e794aa43d7977aa58a7ef8704ac212008e0280e9.tar.gz
etherpad-e794aa43d7977aa58a7ef8704ac212008e0280e9.tar.xz
etherpad-e794aa43d7977aa58a7ef8704ac212008e0280e9.zip
Fix IFRAME bug. Closes #70
Diffstat (limited to '')
-rw-r--r--infrastructure/ace/www/ace2_outer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/infrastructure/ace/www/ace2_outer.js b/infrastructure/ace/www/ace2_outer.js
index e6d430d..212c159 100644
--- a/infrastructure/ace/www/ace2_outer.js
+++ b/infrastructure/ace/www/ace2_outer.js
@@ -168,7 +168,7 @@ function Ace2Editor() {
var iframeHTML = ["'"+doctype+"<html><head>'"];
- top.plugins.callHook(
+ plugins.callHook(
"aceInitInnerdocbodyHead", {iframeHTML:iframeHTML});
// these lines must conform to a specific format because they are passed by the build script:
@@ -203,6 +203,7 @@ function Ace2Editor() {
'\x3cscript>', outerScript, '\x3c/script>',
'</head><body id="outerdocbody"><div id="sidediv"><!-- --></div><div id="linemetricsdiv">x</div><div id="overlaysdiv"><!-- --></div></body></html>'];
+
var outerFrame = document.createElement("IFRAME");
outerFrame.frameBorder = 0; // for IE
info.frame = outerFrame;