From c79593569a876e063719835231cd9de4ec41c150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bartelme=C3=9F?= Date: Sat, 7 Apr 2012 01:40:13 +0200 Subject: [PATCH] added aceEditorCSS hook --- src/static/js/ace.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 4dfcc64ef..6ea2938b9 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -256,6 +256,10 @@ require.setGlobalKeyPath("require");\n\ $$INCLUDE_CSS("../static/css/iframe_editor.css"); $$INCLUDE_CSS("../static/css/pad.css"); $$INCLUDE_CSS("../static/custom/pad.css"); + + var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){ return '../static/plugins/' + path }); + includedCSS = includedCSS.concat(additionalCSS); + pushStyleTagsFor(iframeHTML, includedCSS); var includedJS = []; @@ -294,6 +298,11 @@ require.setGlobalKeyPath("require");\n\ $$INCLUDE_CSS("../static/css/iframe_editor.css"); $$INCLUDE_CSS("../static/css/pad.css"); $$INCLUDE_CSS("../static/custom/pad.css"); + + + var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){ return '../static/plugins/' + path }); + includedCSS = includedCSS.concat(additionalCSS); + pushStyleTagsFor(outerHTML, includedCSS); // bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly