From da75b87d3c90ecd27dfe9d1f8b583e9db38de7a7 Mon Sep 17 00:00:00 2001 From: Martyn York Date: Wed, 18 Apr 2012 14:44:25 -0700 Subject: added new hook 'acePostWriteDomLineHTML' which gets called after a domline is created and has been added to the page. Also fixed problems with ReferenceExceptions due to require-kernel not being sent to the iframe. --- src/static/js/ace.js | 8 +++++++- src/static/js/domline.js | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 6ea2938b..85801d33 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -167,7 +167,13 @@ require.setGlobalKeyPath("require");\n\ buffer.push(Ace2Editor.EMBEDED[KERNEL_SOURCE]); buffer.push(KERNEL_BOOT); buffer.push('<\/script>'); - } + } else { + file = KERNEL_SOURCE; + buffer.push('