mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06: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
|
@ -26,12 +26,7 @@
|
|||
var _MAX_LIST_LEVEL = 8;
|
||||
|
||||
var Changeset = require('/easysync2').Changeset
|
||||
var plugins = undefined;
|
||||
try {
|
||||
plugins = require('/plugins').plugins;
|
||||
} catch (e) {
|
||||
// silence
|
||||
}
|
||||
var plugins = require('/plugins').plugins;
|
||||
|
||||
function sanitizeUnicode(s)
|
||||
{
|
||||
|
@ -42,15 +37,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
{
|
||||
browser = browser || {};
|
||||
|
||||
var plugins_;
|
||||
if (typeof(plugins) != 'undefined')
|
||||
{
|
||||
plugins_ = plugins;
|
||||
}
|
||||
else
|
||||
{
|
||||
plugins_ = parent.parent.plugins;
|
||||
}
|
||||
var plugins_ = plugins;
|
||||
|
||||
var dom = domInterface || {
|
||||
isNodeText: function(n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue