@ckeditor/ckeditor5-core 47.6.1 → 47.6.2-alpha.1
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/LICENSE.md +2 -5
- package/README.md +4 -7
- package/dist/index.js +23 -18
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/editor/editor.d.ts +1 -16
- package/src/editor/editor.js +24 -19
package/LICENSE.md
CHANGED
|
@@ -4,12 +4,9 @@ Software License Agreement
|
|
|
4
4
|
**CKEditor 5 Core editor architecture** (https://github.com/ckeditor/ckeditor5)<br>
|
|
5
5
|
Copyright (c) 2003–2026, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
CKEditor 5 Long Term Support Edition is licensed under a commercial license and is protected by copyright law.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
* or commercial license terms from CKSource Holding sp. z o.o.
|
|
11
|
-
|
|
12
|
-
For more information, see: [https://ckeditor.com/legal/ckeditor-licensing-options](https://ckeditor.com/legal/ckeditor-licensing-options).
|
|
9
|
+
For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
|
13
10
|
|
|
14
11
|
Sources of Intellectual Property Included in CKEditor 5
|
|
15
12
|
------------------------------------------------------------
|
package/README.md
CHANGED
|
@@ -21,15 +21,12 @@ If you want to check full CKEditor 5 capabilities, sign up for a [free non-
|
|
|
21
21
|
|
|
22
22
|
## Documentation
|
|
23
23
|
|
|
24
|
-
For general introduction see the [Overview of CKEditor 5 framework](https://ckeditor.com/docs/ckeditor5/
|
|
24
|
+
For general introduction see the [Overview of CKEditor 5 framework](https://ckeditor.com/docs/ckeditor5/lts-v47/framework/index.html) guide and then the [core editor architecture guide](https://ckeditor.com/docs/ckeditor5/lts-v47/framework/architecture/core-editor-architecture.html).
|
|
25
25
|
|
|
26
|
-
Additionally, see the [`@ckeditor/ckeditor5-core` package](https://ckeditor.com/docs/ckeditor5/
|
|
26
|
+
Additionally, see the [`@ckeditor/ckeditor5-core` package](https://ckeditor.com/docs/ckeditor5/lts-v47/api/core.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/lts-v47/) for even more information.
|
|
27
27
|
|
|
28
28
|
## License
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
CKEditor 5 Long Term Support Edition is licensed under a commercial license and is protected by copyright law.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
* or commercial license terms from CKSource Holding sp. z o.o.
|
|
34
|
-
|
|
35
|
-
For more information, see: [https://ckeditor.com/legal/ckeditor-licensing-options](https://ckeditor.com/legal/ckeditor-licensing-options).
|
|
32
|
+
For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { ObservableMixin, insertToPriorityArray, CKEditorError, EmitterMixin, Config, Locale, Collection, KeystrokeHandler, env, global, uid, decodeLicenseKey, toArray, crc32, releaseDate, logError, isFeatureBlockedByLicenseKey, setDataInElement } from '@ckeditor/ckeditor5-utils/dist/index.js';
|
|
5
|
+
import { ObservableMixin, insertToPriorityArray, CKEditorError, EmitterMixin, Config, Locale, Collection, KeystrokeHandler, env, global, uid, decodeLicenseKey, isFeatureAllowedByLicenseKey, toArray, crc32, releaseDate, logError, isFeatureBlockedByLicenseKey, setDataInElement } from '@ckeditor/ckeditor5-utils/dist/index.js';
|
|
6
6
|
import { get, set, isFunction } from 'es-toolkit/compat';
|
|
7
7
|
import { Model, StylesProcessor, DataController, EditingController, Conversion } from '@ckeditor/ckeditor5-engine/dist/index.js';
|
|
8
8
|
import { EditorWatchdog, ContextWatchdog } from '@ckeditor/ckeditor5-watchdog/dist/index.js';
|
|
@@ -2160,9 +2160,7 @@ function getPageSessionID() {
|
|
|
2160
2160
|
console.warn(`⚠️ You are using ${article} ${licenseType} license of CKEditor 5` + `${licenseType === 'trial' ? ' which is for evaluation purposes only' : ''}. ` + 'For production usage, please obtain a production license at https://portal.ckeditor.com/');
|
|
2161
2161
|
}
|
|
2162
2162
|
if (licenseKey == 'GPL') {
|
|
2163
|
-
|
|
2164
|
-
blockEditor('distributionChannel');
|
|
2165
|
-
}
|
|
2163
|
+
blockEditor('lts');
|
|
2166
2164
|
return;
|
|
2167
2165
|
}
|
|
2168
2166
|
const licensePayload = decodeLicenseKey(licenseKey);
|
|
@@ -2174,6 +2172,10 @@ function getPageSessionID() {
|
|
|
2174
2172
|
blockEditor('invalid');
|
|
2175
2173
|
return;
|
|
2176
2174
|
}
|
|
2175
|
+
if (!isFeatureAllowedByLicenseKey(licensePayload, 'LTS')) {
|
|
2176
|
+
blockEditor('lts');
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2177
2179
|
if (licensePayload.distributionChannel && !toArray(licensePayload.distributionChannel).includes(distributionChannel)) {
|
|
2178
2180
|
blockEditor('distributionChannel');
|
|
2179
2181
|
return;
|
|
@@ -2698,6 +2700,23 @@ function getPageSessionID() {
|
|
|
2698
2700
|
* @error license-key-invalid-distribution-channel
|
|
2699
2701
|
*/ throw new CKEditorError('license-key-invalid-distribution-channel');
|
|
2700
2702
|
}
|
|
2703
|
+
if (reason == 'lts') {
|
|
2704
|
+
/**
|
|
2705
|
+
* You are running [CKEditor 5 Long-term Support Edition (LTS)](https://ckeditor.com/ckeditor-5-lts/),
|
|
2706
|
+
* but the provided license key does not include access to the LTS version, or the key is invalid.
|
|
2707
|
+
*
|
|
2708
|
+
* Please ensure that it is copied correctly from the [Customer Portal](http://portal.ckeditor.com/),
|
|
2709
|
+
* and if the issue persists, please [contact our customer support](https://ckeditor.com/contact/).
|
|
2710
|
+
*
|
|
2711
|
+
* In case you intended to use the [LTS Edition](https://ckeditor.com/ckeditor-5-lts/),
|
|
2712
|
+
* but have not yet made a purchase, please [contact our sales team](https://ckeditor.com/contact-sales/)
|
|
2713
|
+
*
|
|
2714
|
+
* If you did not intend to use LTS, please switch to non-LTS edition, for example,
|
|
2715
|
+
* the [latest](https://ckeditor.com/docs/ckeditor5/latest/updating/guides/changelog.html) build.
|
|
2716
|
+
*
|
|
2717
|
+
* @error license-key-lts-not-allowed
|
|
2718
|
+
*/ throw new CKEditorError('license-key-lts-not-allowed');
|
|
2719
|
+
}
|
|
2701
2720
|
}, 0);
|
|
2702
2721
|
this._showLicenseError = ()=>{};
|
|
2703
2722
|
}
|
|
@@ -2758,20 +2777,6 @@ function collectUsageData(editor) {
|
|
|
2758
2777
|
* ```
|
|
2759
2778
|
*
|
|
2760
2779
|
* @error editor-wrong-element
|
|
2761
|
-
*/ /**
|
|
2762
|
-
* You are running [CKEditor 5 Long-term Support Edition (LTS)](https://ckeditor.com/ckeditor-5-lts/),
|
|
2763
|
-
* but the provided license key does not include access to the LTS version, or the key is invalid.
|
|
2764
|
-
*
|
|
2765
|
-
* Please ensure that it is copied correctly from the [Customer Portal](http://portal.ckeditor.com/),
|
|
2766
|
-
* and if the issue persists, please [contact our customer support](https://ckeditor.com/contact/).
|
|
2767
|
-
*
|
|
2768
|
-
* In case you intended to use the [LTS Edition](https://ckeditor.com/ckeditor-5-lts/),
|
|
2769
|
-
* but have not yet made a purchase, please [contact our sales team](https://ckeditor.com/contact-sales/)
|
|
2770
|
-
*
|
|
2771
|
-
* If you did not intend to use LTS, please switch to non-LTS edition, for example,
|
|
2772
|
-
* the [latest](https://ckeditor.com/docs/ckeditor5/latest/updating/guides/changelog.html) build.
|
|
2773
|
-
*
|
|
2774
|
-
* @error license-key-lts-not-allowed
|
|
2775
2780
|
*/
|
|
2776
2781
|
|
|
2777
2782
|
/**
|