mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Made ace actually use the new hooks system, and removed remnants of old system
This commit is contained in:
parent
81440cd856
commit
df531a7b2b
6 changed files with 22 additions and 55 deletions
|
@ -27,7 +27,7 @@
|
|||
// requires: undefined
|
||||
|
||||
var Security = require('ep_etherpad-lite/static/js/security');
|
||||
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 domline = {};
|
||||
|
@ -145,9 +145,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument)
|
|||
var extraOpenTags = "";
|
||||
var extraCloseTags = "";
|
||||
|
||||
var plugins_ = plugins;
|
||||
|
||||
map(plugins_.callHook("aceCreateDomLine", {
|
||||
map(hooks.callAll("aceCreateDomLine", {
|
||||
domline: domline,
|
||||
cls: cls
|
||||
}), function(modifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue