mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
pluginfw: Warn plugins on missing plugin (#4826)
* pluginfw: Warn plugins on missing plugin Add functionality to console.warn when a plugin is missing. This will help admins know when people are trying to use plugins that are missing. Resolves https://github.com/ether/etherpad-lite/issues/4730 * pluginfw: importing .etherpad can notify admins of missing plugins Extending .etherpad imports to notify admins if a missing plugin is present * Update ImportEtherpad.js
This commit is contained in:
parent
77b2f372ab
commit
ee2b32281c
2 changed files with 22 additions and 0 deletions
|
@ -315,6 +315,10 @@ const makeContentCollector = (collectStyles, abrowser, apool, className2Author)
|
|||
const localAttribs = state.localAttribs;
|
||||
state.localAttribs = null;
|
||||
const isBlock = isBlockElement(node);
|
||||
if (!isBlock && node.name && (node.name !== 'body') && (node.name !== 'br')) {
|
||||
console.warn('Plugin missing: ' +
|
||||
`You might want to install a plugin to support this node name: ${node.name}`);
|
||||
}
|
||||
const isEmpty = _isEmpty(node, state);
|
||||
if (isBlock) _ensureColumnZero(state);
|
||||
const startLine = lines.length() - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue