mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Plugins are injected and no longer exist in the global scope.
This commit is contained in:
parent
8ade4c89d5
commit
3fb62956b9
7 changed files with 22 additions and 94 deletions
|
@ -25,12 +25,7 @@
|
|||
// requires: plugins
|
||||
// requires: undefined
|
||||
|
||||
var plugins = undefined;
|
||||
try {
|
||||
plugins = require('/plugins').plugins;
|
||||
} catch (e) {
|
||||
// silence
|
||||
}
|
||||
var plugins = require('/plugins').plugins;
|
||||
|
||||
var domline = {};
|
||||
domline.noop = function()
|
||||
|
@ -147,15 +142,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument)
|
|||
var extraOpenTags = "";
|
||||
var extraCloseTags = "";
|
||||
|
||||
var plugins_;
|
||||
if (typeof(plugins) != 'undefined')
|
||||
{
|
||||
plugins_ = plugins;
|
||||
}
|
||||
else
|
||||
{
|
||||
plugins_ = parent.parent.plugins;
|
||||
}
|
||||
var plugins_ = plugins;
|
||||
|
||||
plugins_.callHook("aceCreateDomLine", {
|
||||
domline: domline,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue