mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -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
|
@ -28,7 +28,7 @@ Ace2Editor.registry = {
|
|||
nextId: 1
|
||||
};
|
||||
|
||||
var plugins = require('ep_etherpad-lite/static/js/plugins').plugins;
|
||||
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
||||
|
||||
function Ace2Editor()
|
||||
{
|
||||
|
@ -300,7 +300,7 @@ function Ace2Editor()
|
|||
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
||||
iframeHTML[i] = JSON.stringify(iframeHTML[i]);
|
||||
}
|
||||
plugins.callHook("aceInitInnerdocbodyHead", {
|
||||
hooks.callAll("aceInitInnerdocbodyHead", {
|
||||
iframeHTML: iframeHTML
|
||||
});
|
||||
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue