summaryrefslogtreecommitdiff
path: root/src/static/js/ace.js
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-04-07 01:40:13 +0200
committerMatthias Bartelmeß <mba@fourplusone.de>2012-04-07 01:40:13 +0200
commitc79593569a876e063719835231cd9de4ec41c150 (patch)
treea20dd083866972e1fdfe472a7697f57ebf108b67 /src/static/js/ace.js
parent34f07efcfbda9fd7dc302fdf4bb9a150c059a6ee (diff)
downloadetherpad-lite-c79593569a876e063719835231cd9de4ec41c150.zip
added aceEditorCSS hook
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r--src/static/js/ace.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js
index 4dfcc64e..6ea2938b 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