summaryrefslogtreecommitdiff
path: root/src/static/js/linestylefilter.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/linestylefilter.js')
-rw-r--r--src/static/js/linestylefilter.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/static/js/linestylefilter.js b/src/static/js/linestylefilter.js
index b75ac200..e2fa316a 100644
--- a/src/static/js/linestylefilter.js
+++ b/src/static/js/linestylefilter.js
@@ -29,7 +29,7 @@
// requires: undefined
var Changeset = require('ep_etherpad-lite/static/js/Changeset');
-var plugins = require('ep_etherpad-lite/static/js/plugins').plugins;
+var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
var map = require('ep_etherpad-lite/static/js/ace2_common').map;
var linestylefilter = {};
@@ -55,8 +55,6 @@ linestylefilter.getAuthorClassName = function(author)
linestylefilter.getLineStyleFilter = function(lineLength, aline, textAndClassFunc, apool)
{
- var plugins_ = plugins;
-
if (lineLength == 0) return textAndClassFunc;
var nextAfterAuthorColors = textAndClassFunc;
@@ -97,7 +95,7 @@ linestylefilter.getLineStyleFilter = function(lineLength, aline, textAndClassFun
}
else
{
- classes += plugins_.callHookStr("aceAttribsToClasses", {
+ classes += hooks.callAllStr("aceAttribsToClasses", {
linestylefilter: linestylefilter,
key: key,
value: value
@@ -300,9 +298,7 @@ linestylefilter.getFilterStack = function(lineText, textAndClassFunc, browser)
{
var func = linestylefilter.getURLFilter(lineText, textAndClassFunc);
- var plugins_ = plugins;
-
- var hookFilters = plugins_.callHook("aceGetFilterStack", {
+ var hookFilters = hooks.callAll("aceGetFilterStack", {
linestylefilter: linestylefilter,
browser: browser
});