aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etherpad/src/plugins/twitterStyleTags/static/js/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/etherpad/src/plugins/twitterStyleTags/static/js/main.js b/etherpad/src/plugins/twitterStyleTags/static/js/main.js
index eae0c4f..07da57e 100644
--- a/etherpad/src/plugins/twitterStyleTags/static/js/main.js
+++ b/etherpad/src/plugins/twitterStyleTags/static/js/main.js
@@ -1,9 +1,14 @@
function init() {
- this.hooks = ['aceGetFilterStack', 'aceCreateDomLine'];
+ this.hooks = ['aceInitInnerdocbodyHead', 'aceGetFilterStack', 'aceCreateDomLine'];
+ this.aceInitInnerdocbodyHead = aceInitInnerdocbodyHead;
this.aceGetFilterStack = aceGetFilterStack;
this.aceCreateDomLine = aceCreateDomLine;
}
+function aceInitInnerdocbodyHead(args) {
+ args.iframeHTML.push('\'<link rel="stylesheet" type="text/css" href="/static/css/plugins/twitterStyleTags/pad.css"/>\'');
+}
+
function aceGetFilterStack(args) {
return [args.linestylefilter.getRegexpFilter(
new RegExp("#[^,#!\\s][^,#!\\s]*", "g"), 'padtag')];