mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56: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
|
@ -26,7 +26,7 @@
|
|||
var _MAX_LIST_LEVEL = 8;
|
||||
|
||||
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');
|
||||
|
||||
function sanitizeUnicode(s)
|
||||
{
|
||||
|
@ -37,8 +37,6 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
{
|
||||
browser = browser || {};
|
||||
|
||||
var plugins_ = plugins;
|
||||
|
||||
var dom = domInterface || {
|
||||
isNodeText: function(n)
|
||||
{
|
||||
|
@ -448,7 +446,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
var oldAuthorOrNull = null;
|
||||
if (collectStyles)
|
||||
{
|
||||
plugins_.callHook('collectContentPre', {
|
||||
hooks.callAll('collectContentPre', {
|
||||
cc: cc,
|
||||
state: state,
|
||||
tname: tname,
|
||||
|
@ -510,7 +508,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
|
||||
if (collectStyles)
|
||||
{
|
||||
plugins_.callHook('collectContentPost', {
|
||||
hooks.callAll('collectContentPost', {
|
||||
cc: cc,
|
||||
state: state,
|
||||
tname: tname,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue