@ckeditor/ckeditor5-core
Advanced tools
Comparing version 22.0.0 to 23.0.0
{ | ||
"name": "@ckeditor/ckeditor5-core", | ||
"version": "22.0.0", | ||
"version": "23.0.0", | ||
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.", | ||
@@ -24,21 +24,21 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-engine": "^22.0.0", | ||
"@ckeditor/ckeditor5-utils": "^22.0.0", | ||
"@ckeditor/ckeditor5-engine": "^23.0.0", | ||
"@ckeditor/ckeditor5-utils": "^23.0.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-autoformat": "^22.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^22.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^22.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^22.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^22.0.0", | ||
"@ckeditor/ckeditor5-heading": "^22.0.0", | ||
"@ckeditor/ckeditor5-image": "^22.0.0", | ||
"@ckeditor/ckeditor5-indent": "^22.0.0", | ||
"@ckeditor/ckeditor5-link": "^22.0.0", | ||
"@ckeditor/ckeditor5-list": "^22.0.0", | ||
"@ckeditor/ckeditor5-media-embed": "^22.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^22.0.0", | ||
"@ckeditor/ckeditor5-table": "^22.0.0", | ||
"@ckeditor/ckeditor5-ui": "^22.0.0" | ||
"@ckeditor/ckeditor5-autoformat": "^23.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^23.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^23.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^23.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^23.0.0", | ||
"@ckeditor/ckeditor5-heading": "^23.0.0", | ||
"@ckeditor/ckeditor5-image": "^23.0.0", | ||
"@ckeditor/ckeditor5-indent": "^23.0.0", | ||
"@ckeditor/ckeditor5-link": "^23.0.0", | ||
"@ckeditor/ckeditor5-list": "^23.0.0", | ||
"@ckeditor/ckeditor5-media-embed": "^23.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^23.0.0", | ||
"@ckeditor/ckeditor5-table": "^23.0.0", | ||
"@ckeditor/ckeditor5-ui": "^23.0.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "engines": { |
@@ -66,3 +66,3 @@ /** | ||
*/ | ||
throw new CKEditorError( 'commandcollection-command-not-found: Command does not exist.', this, { commandName } ); | ||
throw new CKEditorError( 'commandcollection-command-not-found', this, { commandName } ); | ||
} | ||
@@ -69,0 +69,0 @@ |
@@ -128,3 +128,3 @@ /** | ||
throw new CKEditorError( | ||
'context-initplugins-constructor-only: Only a constructor function is allowed as a context plugin.', | ||
'context-initplugins-constructor-only', | ||
null, | ||
@@ -143,3 +143,3 @@ { Plugin } | ||
throw new CKEditorError( | ||
'context-initplugins-invalid-plugin: Only a plugin marked as a context plugin is allowed to be used with a context.', | ||
'context-initplugins-invalid-plugin', | ||
null, | ||
@@ -182,7 +182,5 @@ { Plugin } | ||
* | ||
* @error context-addEditor-private-context | ||
* @error context-addeditor-private-context | ||
*/ | ||
throw new CKEditorError( | ||
'context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.' | ||
); | ||
throw new CKEditorError( 'context-addeditor-private-context' ); | ||
} | ||
@@ -189,0 +187,0 @@ |
@@ -30,3 +30,3 @@ /** | ||
throw new CKEditorError( | ||
'attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.', | ||
'attachtoform-missing-elementapi-interface', | ||
editor | ||
@@ -33,0 +33,0 @@ ); |
@@ -34,3 +34,3 @@ /** | ||
throw new CKEditorError( | ||
'editor-missing-sourceelement: Cannot update the source element of a detached editor.', | ||
'editor-missing-sourceelement', | ||
this | ||
@@ -37,0 +37,0 @@ ); |
@@ -39,4 +39,3 @@ /** | ||
throw new CKEditorError( | ||
'editor-source-element-already-used: ' + | ||
'The DOM element cannot be used to create multiple editor instances.', | ||
'editor-source-element-already-used', | ||
editor | ||
@@ -43,0 +42,0 @@ ); |
@@ -102,3 +102,3 @@ /** | ||
*/ | ||
throw new CKEditorError( 'pendingactions-add-invalid-message: The message must be a string.', this ); | ||
throw new CKEditorError( 'pendingactions-add-invalid-message', this ); | ||
} | ||
@@ -105,0 +105,0 @@ |
@@ -120,2 +120,8 @@ /** | ||
if ( !plugin ) { | ||
let pluginName = key; | ||
if ( typeof key == 'function' ) { | ||
pluginName = key.pluginName || key.name; | ||
} | ||
/** | ||
@@ -135,11 +141,3 @@ * The plugin is not loaded and could not be obtained. | ||
*/ | ||
const errorMsg = 'plugincollection-plugin-not-loaded: The requested plugin is not loaded.'; | ||
let pluginName = key; | ||
if ( typeof key == 'function' ) { | ||
pluginName = key.pluginName || key.name; | ||
} | ||
throw new CKEditorError( errorMsg, this._context, { plugin: pluginName } ); | ||
throw new CKEditorError( 'plugincollection-plugin-not-loaded', this._context, { plugin: pluginName } ); | ||
} | ||
@@ -211,8 +209,8 @@ | ||
*/ | ||
const errorMsg = 'plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.'; | ||
const errorId = 'plugincollection-plugin-not-found'; | ||
// Log the error so it's more visible on the console. Hopefully, for better DX. | ||
console.error( attachLinkToDocumentation( errorMsg ), { plugins: missingPlugins } ); | ||
// Log the error, so it's more visible on the console. Hopefully, for better DX. | ||
console.error( attachLinkToDocumentation( errorId ), { plugins: missingPlugins } ); | ||
return Promise.reject( new CKEditorError( errorMsg, context, { plugins: missingPlugins } ) ); | ||
return Promise.reject( new CKEditorError( errorId, context, { plugins: missingPlugins } ) ); | ||
} | ||
@@ -257,5 +255,3 @@ | ||
*/ | ||
console.error( attachLinkToDocumentation( | ||
'plugincollection-load: It was not possible to load the plugin.' | ||
), { plugin: PluginConstructor } ); | ||
console.error( attachLinkToDocumentation( 'plugincollection-load' ), { plugin: PluginConstructor } ); | ||
@@ -302,3 +298,3 @@ throw err; | ||
throw new CKEditorError( | ||
'plugincollection-context-required: Context plugin can not require plugin which is not a context plugin', | ||
'plugincollection-context-required', | ||
null, | ||
@@ -318,4 +314,3 @@ { plugin: RequiredPluginConstructor.name, requiredBy: PluginConstructor.name } | ||
throw new CKEditorError( | ||
'plugincollection-required: Cannot load a plugin because one of its dependencies is listed in' + | ||
'the `removePlugins` option.', | ||
'plugincollection-required', | ||
context, | ||
@@ -430,3 +425,3 @@ { plugin: RequiredPluginConstructor.name, requiredBy: PluginConstructor.name } | ||
throw new CKEditorError( | ||
'plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.', | ||
'plugincollection-plugin-name-conflict', | ||
null, | ||
@@ -433,0 +428,0 @@ { pluginName, plugin1: this._plugins.get( pluginName ).constructor, plugin2: PluginConstructor } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201625
2448
+ Added@ckeditor/ckeditor5-engine@23.1.0(transitive)
+ Added@ckeditor/ckeditor5-utils@23.1.0(transitive)
- Removed@ckeditor/ckeditor5-engine@22.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@22.0.0(transitive)