summaryrefslogtreecommitdiff
path: root/src/static/js/ace.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r--src/static/js/ace.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js
index 26d6c0eb..600b6136 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("<html><head>");
- 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('<style type="text/css" title="dynamicsyntax"></style>');
+
+ hooks.callAll("aceInitInnerdocbodyHead", {
+ iframeHTML: iframeHTML
+ });
+
iframeHTML.push('</head><body id="innerdocbody" class="syntax" spellcheck="false">&nbsp;</body></html>');
// Expose myself to global for my child frame.