@ckeditor/ckeditor5-core 47.0.0 → 47.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/editor/editor.js +6 -1
package/dist/index.js
CHANGED
|
@@ -2547,6 +2547,9 @@ function getPageSessionID() {
|
|
|
2547
2547
|
*/ throw new CKEditorError('license-key-domain-limit');
|
|
2548
2548
|
}
|
|
2549
2549
|
if (reason == 'pluginNotAllowed') {
|
|
2550
|
+
// It's safe to assume `name` exists because `pluginNotAllowed` must know a plugin name when checking the license.
|
|
2551
|
+
const gluePluginName = name.replace(/(Editing|UI)$/, '');
|
|
2552
|
+
const containsGluePlugin = this.plugins.has(gluePluginName);
|
|
2550
2553
|
/**
|
|
2551
2554
|
* The plugin you are trying to use is not permitted under your current license.
|
|
2552
2555
|
* Please check the available features on the
|
|
@@ -2556,7 +2559,7 @@ function getPageSessionID() {
|
|
|
2556
2559
|
* @error license-key-plugin-not-allowed
|
|
2557
2560
|
* @param {String} pluginName The plugin you tried to load.
|
|
2558
2561
|
*/ throw new CKEditorError('license-key-plugin-not-allowed', null, {
|
|
2559
|
-
pluginName: name
|
|
2562
|
+
pluginName: containsGluePlugin ? gluePluginName : name
|
|
2560
2563
|
});
|
|
2561
2564
|
}
|
|
2562
2565
|
if (reason == 'featureNotAllowed') {
|