aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/ace/www/linestylefilter.js
diff options
context:
space:
mode:
authorSimon B @piratpartiet <simonb@redhog.org>2010-04-22 00:16:22 +0200
committerSimon B @piratpartiet <simonb@redhog.org>2010-04-22 00:16:22 +0200
commitc318ce528125da08ec3d4b4714d35e1b59de73eb (patch)
tree41693551056ecf7c11d0547293b7826d39564826 /infrastructure/ace/www/linestylefilter.js
parentbeb002e2b700305afae26355018c7f23441451c2 (diff)
downloadetherpad-c318ce528125da08ec3d4b4714d35e1b59de73eb.tar.gz
etherpad-c318ce528125da08ec3d4b4714d35e1b59de73eb.tar.xz
etherpad-c318ce528125da08ec3d4b4714d35e1b59de73eb.zip
Bugfix regession from IFRAME+IE bugs. Closes GH-70
Diffstat (limited to 'infrastructure/ace/www/linestylefilter.js')
-rw-r--r--infrastructure/ace/www/linestylefilter.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/infrastructure/ace/www/linestylefilter.js b/infrastructure/ace/www/linestylefilter.js
index 341345e..196cb63 100644
--- a/infrastructure/ace/www/linestylefilter.js
+++ b/infrastructure/ace/www/linestylefilter.js
@@ -238,7 +238,14 @@ linestylefilter.textAndClassFuncSplitter = function(func, splitPointsOpt) {
linestylefilter.getFilterStack = function(lineText, textAndClassFunc, browser) {
var func = linestylefilter.getURLFilter(lineText, textAndClassFunc);
- var hookFilters = parent.parent.plugins.callHook(
+ var plugins_;
+ if (typeof(plugins)!='undefined') {
+ plugins_ = plugins;
+ } else {
+ plugins_ = parent.parent.plugins;
+ }
+
+ var hookFilters = plugins_.callHook(
"aceGetFilterStack", {linestylefilter:linestylefilter, browser:browser});
hookFilters.map(function (hookFilter) {
func = hookFilter(lineText, func);