|
|
@@ -129,7 +129,6 @@ export default class PluginCollection {
|
|
|
.then( () => loaded );
|
|
|
|
|
|
function loadPlugin( PluginConstructor ) {
|
|
|
- // Don't load the plugin if it cannot be loaded.
|
|
|
if ( pluginConstructorsToRemove.includes( PluginConstructor ) ) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -163,19 +162,6 @@ export default class PluginCollection {
|
|
|
PluginConstructor.requires.forEach( ( RequiredPluginConstructorOrName ) => {
|
|
|
const RequiredPluginConstructor = getPluginConstructor( RequiredPluginConstructorOrName );
|
|
|
|
|
|
- if ( !RequiredPluginConstructor ) {
|
|
|
- /**
|
|
|
- * The plugin cannot be loaded by name.
|
|
|
- *
|
|
|
- * @error plugincollection-plugin-not-found
|
|
|
- * @param {String} plugin The name of the plugin which could not be loaded.
|
|
|
- */
|
|
|
- throw new CKEditorError(
|
|
|
- 'plugincollection-plugin-not-found: The plugin cannot be loaded by name.',
|
|
|
- { plugins: RequiredPluginConstructorOrName }
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
if ( removePlugins.includes( RequiredPluginConstructor ) ) {
|
|
|
/**
|
|
|
* Cannot load a plugin because one of its dependencies is listed in the `removePlugins` options.
|