diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 26d6c0eb6..600b6136e 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -239,10 +239,6 @@ require.setGlobalKeyPath("require");\n\ iframeHTML.push(doctype); iframeHTML.push("
"); - hooks.callAll("aceInitInnerdocbodyHead", { - iframeHTML: iframeHTML - }); - // calls to these functions ($$INCLUDE_...) are replaced when this file is processed // and compressed, putting the compressed code from the named file directly into the // source here. @@ -277,6 +273,11 @@ require.setGlobalKeyPath("require");\n\ iframeHTML.push('<\/script>'); iframeHTML.push(''); + + hooks.callAll("aceInitInnerdocbodyHead", { + iframeHTML: iframeHTML + }); + iframeHTML.push(' '); // Expose myself to global for my child frame.