diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-03-21 19:27:43 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-03-21 19:27:43 +0100 |
commit | 7304a9ef3f4650437602ce1b03dccd5ced3b9935 (patch) | |
tree | 19ffc563f00195a49da93606a83f189085b5a592 /src/static/js/ace.js | |
parent | 37c0d279c1345a87413054ddb07838635110eb93 (diff) | |
download | etherpad-lite-7304a9ef3f4650437602ce1b03dccd5ced3b9935.zip |
Bugfix for misplaced hook call
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r-- | src/static/js/ace.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 1306dba0..473ecc1b 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -233,13 +233,14 @@ require.setGlobalKeyPath("require");\n\ iframeHTML.push(doctype); iframeHTML.push("<html><head>"); + hooks.callAll("aceInitInnerdocbodyHead", { + iframeHTML: iframeHTML + }); + // For compatability's sake transform in and out. for (var i = 0, ii = iframeHTML.length; i < ii; i++) { iframeHTML[i] = JSON.stringify(iframeHTML[i]); } - hooks.callAll("aceInitInnerdocbodyHead", { - iframeHTML: iframeHTML - }); for (var i = 0, ii = iframeHTML.length; i < ii; i++) { iframeHTML[i] = JSON.parse(iframeHTML[i]); } |