@ckeditor/ckeditor5-core 47.6.1 → 48.0.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.
Files changed (122) hide show
  1. package/LICENSE.md +1 -1
  2. package/{src → dist}/editor/editorconfig.d.ts +295 -20
  3. package/dist/editor/utils/normalizerootsconfig.d.ts +50 -0
  4. package/dist/index-content.css +10 -10
  5. package/dist/index-editor.css +5 -5
  6. package/dist/index.css +10 -16
  7. package/dist/index.css.map +1 -1
  8. package/{src → dist}/index.d.ts +2 -1
  9. package/dist/index.js +161 -6
  10. package/dist/index.js.map +1 -1
  11. package/package.json +23 -43
  12. package/lang/contexts.json +0 -38
  13. package/lang/translations/af.po +0 -156
  14. package/lang/translations/ar.po +0 -156
  15. package/lang/translations/ast.po +0 -156
  16. package/lang/translations/az.po +0 -156
  17. package/lang/translations/be.po +0 -156
  18. package/lang/translations/bg.po +0 -156
  19. package/lang/translations/bn.po +0 -156
  20. package/lang/translations/bs.po +0 -156
  21. package/lang/translations/ca.po +0 -156
  22. package/lang/translations/cs.po +0 -156
  23. package/lang/translations/da.po +0 -156
  24. package/lang/translations/de-ch.po +0 -156
  25. package/lang/translations/de.po +0 -156
  26. package/lang/translations/el.po +0 -156
  27. package/lang/translations/en-au.po +0 -156
  28. package/lang/translations/en-gb.po +0 -156
  29. package/lang/translations/en.po +0 -156
  30. package/lang/translations/eo.po +0 -156
  31. package/lang/translations/es-co.po +0 -156
  32. package/lang/translations/es.po +0 -156
  33. package/lang/translations/et.po +0 -156
  34. package/lang/translations/eu.po +0 -156
  35. package/lang/translations/fa.po +0 -156
  36. package/lang/translations/fi.po +0 -156
  37. package/lang/translations/fr.po +0 -156
  38. package/lang/translations/gl.po +0 -156
  39. package/lang/translations/gu.po +0 -156
  40. package/lang/translations/he.po +0 -156
  41. package/lang/translations/hi.po +0 -156
  42. package/lang/translations/hr.po +0 -156
  43. package/lang/translations/hu.po +0 -156
  44. package/lang/translations/hy.po +0 -156
  45. package/lang/translations/id.po +0 -156
  46. package/lang/translations/it.po +0 -156
  47. package/lang/translations/ja.po +0 -156
  48. package/lang/translations/jv.po +0 -156
  49. package/lang/translations/kk.po +0 -156
  50. package/lang/translations/km.po +0 -156
  51. package/lang/translations/kn.po +0 -156
  52. package/lang/translations/ko.po +0 -156
  53. package/lang/translations/ku.po +0 -156
  54. package/lang/translations/lt.po +0 -156
  55. package/lang/translations/lv.po +0 -156
  56. package/lang/translations/ms.po +0 -156
  57. package/lang/translations/nb.po +0 -156
  58. package/lang/translations/ne.po +0 -156
  59. package/lang/translations/nl.po +0 -156
  60. package/lang/translations/no.po +0 -156
  61. package/lang/translations/oc.po +0 -156
  62. package/lang/translations/pl.po +0 -156
  63. package/lang/translations/pt-br.po +0 -156
  64. package/lang/translations/pt.po +0 -156
  65. package/lang/translations/ro.po +0 -156
  66. package/lang/translations/ru.po +0 -156
  67. package/lang/translations/si.po +0 -156
  68. package/lang/translations/sk.po +0 -156
  69. package/lang/translations/sl.po +0 -156
  70. package/lang/translations/sq.po +0 -156
  71. package/lang/translations/sr-latn.po +0 -156
  72. package/lang/translations/sr.po +0 -156
  73. package/lang/translations/sv.po +0 -156
  74. package/lang/translations/th.po +0 -156
  75. package/lang/translations/ti.po +0 -156
  76. package/lang/translations/tk.po +0 -156
  77. package/lang/translations/tr.po +0 -156
  78. package/lang/translations/tt.po +0 -156
  79. package/lang/translations/ug.po +0 -156
  80. package/lang/translations/uk.po +0 -156
  81. package/lang/translations/ur.po +0 -156
  82. package/lang/translations/uz.po +0 -156
  83. package/lang/translations/vi.po +0 -156
  84. package/lang/translations/zh-cn.po +0 -156
  85. package/lang/translations/zh.po +0 -156
  86. package/src/accessibility.js +0 -332
  87. package/src/augmentation.js +0 -5
  88. package/src/command.js +0 -221
  89. package/src/commandcollection.js +0 -87
  90. package/src/context.js +0 -315
  91. package/src/contextplugin.js +0 -59
  92. package/src/editingkeystrokehandler.js +0 -61
  93. package/src/editor/editor.js +0 -1010
  94. package/src/editor/editorconfig.js +0 -5
  95. package/src/editor/utils/attachtoform.js +0 -57
  96. package/src/editor/utils/editorusagedata.js +0 -127
  97. package/src/editor/utils/elementapimixin.js +0 -42
  98. package/src/editor/utils/securesourceelement.js +0 -35
  99. package/src/index.js +0 -22
  100. package/src/multicommand.js +0 -79
  101. package/src/pendingactions.js +0 -127
  102. package/src/plugin.js +0 -132
  103. package/src/plugincollection.js +0 -506
  104. package/src/typings.js +0 -5
  105. package/theme/core.css +0 -21
  106. /package/{src → dist}/accessibility.d.ts +0 -0
  107. /package/{src → dist}/augmentation.d.ts +0 -0
  108. /package/{src → dist}/command.d.ts +0 -0
  109. /package/{src → dist}/commandcollection.d.ts +0 -0
  110. /package/{src → dist}/context.d.ts +0 -0
  111. /package/{src → dist}/contextplugin.d.ts +0 -0
  112. /package/{src → dist}/editingkeystrokehandler.d.ts +0 -0
  113. /package/{src → dist}/editor/editor.d.ts +0 -0
  114. /package/{src → dist}/editor/utils/attachtoform.d.ts +0 -0
  115. /package/{src → dist}/editor/utils/editorusagedata.d.ts +0 -0
  116. /package/{src → dist}/editor/utils/elementapimixin.d.ts +0 -0
  117. /package/{src → dist}/editor/utils/securesourceelement.d.ts +0 -0
  118. /package/{src → dist}/multicommand.d.ts +0 -0
  119. /package/{src → dist}/pendingactions.d.ts +0 -0
  120. /package/{src → dist}/plugin.d.ts +0 -0
  121. /package/{src → dist}/plugincollection.d.ts +0 -0
  122. /package/{src → dist}/typings.d.ts +0 -0
@@ -1,1010 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module core/editor/editor
7
- */
8
- import { set, get } from 'es-toolkit/compat';
9
- import { Config, CKEditorError, ObservableMixin, logError, releaseDate, toArray, uid, crc32, decodeLicenseKey, isFeatureBlockedByLicenseKey } from '@ckeditor/ckeditor5-utils';
10
- import { Conversion, DataController, EditingController, Model, StylesProcessor } from '@ckeditor/ckeditor5-engine';
11
- import { ContextWatchdog, EditorWatchdog } from '@ckeditor/ckeditor5-watchdog';
12
- import { Context } from '../context.js';
13
- import { PluginCollection } from '../plugincollection.js';
14
- import { CommandCollection } from '../commandcollection.js';
15
- import { EditingKeystrokeHandler } from '../editingkeystrokehandler.js';
16
- import { Accessibility } from '../accessibility.js';
17
- import { getEditorUsageData } from './utils/editorusagedata.js';
18
- import '../../theme/core.css';
19
- /**
20
- * The class representing a basic, generic editor.
21
- *
22
- * Check out the list of its subclasses to learn about specific editor implementations.
23
- *
24
- * All editor implementations (like {@link module:editor-classic/classiceditor~ClassicEditor} or
25
- * {@link module:editor-inline/inlineeditor~InlineEditor}) should extend this class. They can add their
26
- * own methods and properties.
27
- *
28
- * When you are implementing a plugin, this editor represents the API
29
- * which your plugin can expect to get when using its {@link module:core/plugin~Plugin#editor} property.
30
- *
31
- * This API should be sufficient in order to implement the "editing" part of your feature
32
- * (schema definition, conversion, commands, keystrokes, etc.).
33
- * It does not define the editor UI, which is available only if
34
- * the specific editor implements also the {@link ~Editor#ui} property
35
- * (as most editor implementations do).
36
- */
37
- export class Editor extends /* #__PURE__ */ ObservableMixin() {
38
- /**
39
- * A required name of the editor class. The name should reflect the constructor name.
40
- */
41
- static get editorName() {
42
- return 'Editor';
43
- }
44
- /**
45
- * A namespace for the accessibility features of the editor.
46
- */
47
- accessibility;
48
- /**
49
- * Commands registered to the editor.
50
- *
51
- * Use the shorthand {@link #execute `editor.execute()`} method to execute commands:
52
- *
53
- * ```ts
54
- * // Execute the bold command:
55
- * editor.execute( 'bold' );
56
- *
57
- * // Check the state of the bold command:
58
- * editor.commands.get( 'bold' ).value;
59
- * ```
60
- */
61
- commands;
62
- /**
63
- * Stores all configurations specific to this editor instance.
64
- *
65
- * ```ts
66
- * editor.config.get( 'image.toolbar' );
67
- * // -> [ 'imageStyle:block', 'imageStyle:side', '|', 'toggleImageCaption', 'imageTextAlternative' ]
68
- * ```
69
- */
70
- config;
71
- /**
72
- * Conversion manager through which you can register model-to-view and view-to-model converters.
73
- *
74
- * See the {@link module:engine/conversion/conversion~Conversion} documentation to learn how to add converters.
75
- */
76
- conversion;
77
- /**
78
- * The {@link module:engine/controller/datacontroller~DataController data controller}.
79
- * Used e.g. for setting and retrieving the editor data.
80
- */
81
- data;
82
- /**
83
- * The {@link module:engine/controller/editingcontroller~EditingController editing controller}.
84
- * Controls user input and rendering the content for editing.
85
- */
86
- editing;
87
- /**
88
- * The locale instance.
89
- */
90
- locale;
91
- /**
92
- * The editor's model.
93
- *
94
- * The central point of the editor's abstract data model.
95
- */
96
- model;
97
- /**
98
- * The plugins loaded and in use by this editor instance.
99
- *
100
- * ```ts
101
- * editor.plugins.get( 'ClipboardPipeline' ); // -> An instance of the clipboard pipeline plugin.
102
- * ```
103
- */
104
- plugins;
105
- /**
106
- * An instance of the {@link module:core/editingkeystrokehandler~EditingKeystrokeHandler}.
107
- *
108
- * It allows setting simple keystrokes:
109
- *
110
- * ```ts
111
- * // Execute the bold command on Ctrl+E:
112
- * editor.keystrokes.set( 'Ctrl+E', 'bold' );
113
- *
114
- * // Execute your own callback:
115
- * editor.keystrokes.set( 'Ctrl+E', ( data, cancel ) => {
116
- * console.log( data.keyCode );
117
- *
118
- * // Prevent the default (native) action and stop the underlying keydown event
119
- * // so no other editor feature will interfere.
120
- * cancel();
121
- * } );
122
- * ```
123
- *
124
- * Note: Certain typing-oriented keystrokes (like <kbd>Backspace</kbd> or <kbd>Enter</kbd>) are handled
125
- * by a low-level mechanism and trying to listen to them via the keystroke handler will not work reliably.
126
- * To handle these specific keystrokes, see the events fired by the
127
- * {@link module:engine/view/document~ViewDocument editing view document} (`editor.editing.view.document`).
128
- */
129
- keystrokes;
130
- /**
131
- * Shorthand for {@link module:utils/locale~Locale#t}.
132
- *
133
- * @see module:utils/locale~Locale#t
134
- */
135
- t;
136
- /**
137
- * The default configuration which is built into the editor class.
138
- *
139
- * It was used in the now deprecated CKEditor 5 builds to provide the default configuration options
140
- * which are later used during the editor initialization.
141
- *
142
- * ```ts
143
- * ClassicEditor.defaultConfig = {
144
- * foo: 1,
145
- * bar: 2
146
- * };
147
- *
148
- * ClassicEditor
149
- * .create( sourceElement )
150
- * .then( editor => {
151
- * editor.config.get( 'foo' ); // -> 1
152
- * editor.config.get( 'bar' ); // -> 2
153
- * } );
154
- *
155
- * // The default options can be overridden by the configuration passed to create().
156
- * ClassicEditor
157
- * .create( sourceElement, { bar: 3 } )
158
- * .then( editor => {
159
- * editor.config.get( 'foo' ); // -> 1
160
- * editor.config.get( 'bar' ); // -> 3
161
- * } );
162
- * ```
163
- *
164
- * See also {@link module:core/editor/editor~Editor.builtinPlugins}.
165
- */
166
- static defaultConfig;
167
- /**
168
- * An array of plugins built into this editor class.
169
- *
170
- * It is used in the now deprecated CKEditor 5 builds to provide a list of plugins which are later automatically initialized
171
- * during the editor initialization.
172
- *
173
- * They will be automatically initialized by the editor, unless listed in `config.removePlugins` and
174
- * unless `config.plugins` is passed.
175
- *
176
- * ```ts
177
- * // Build some plugins into the editor class first.
178
- * ClassicEditor.builtinPlugins = [ FooPlugin, BarPlugin ];
179
- *
180
- * // Normally, you need to define config.plugins, but since ClassicEditor.builtinPlugins was
181
- * // defined, now you can call create() without any configuration.
182
- * ClassicEditor
183
- * .create( sourceElement )
184
- * .then( editor => {
185
- * editor.plugins.get( FooPlugin ); // -> An instance of the Foo plugin.
186
- * editor.plugins.get( BarPlugin ); // -> An instance of the Bar plugin.
187
- * } );
188
- *
189
- * ClassicEditor
190
- * .create( sourceElement, {
191
- * // Do not initialize these plugins (note: it is defined by a string):
192
- * removePlugins: [ 'Foo' ]
193
- * } )
194
- * .then( editor => {
195
- * editor.plugins.get( FooPlugin ); // -> Undefined.
196
- * editor.config.get( BarPlugin ); // -> An instance of the Bar plugin.
197
- * } );
198
- *
199
- * ClassicEditor
200
- * .create( sourceElement, {
201
- * // Load only this plugin. It can also be defined by a string if
202
- * // this plugin was built into the editor class.
203
- * plugins: [ FooPlugin ]
204
- * } )
205
- * .then( editor => {
206
- * editor.plugins.get( FooPlugin ); // -> An instance of the Foo plugin.
207
- * editor.config.get( BarPlugin ); // -> Undefined.
208
- * } );
209
- * ```
210
- *
211
- * See also {@link module:core/editor/editor~Editor.defaultConfig}.
212
- */
213
- static builtinPlugins;
214
- /**
215
- * The editor context.
216
- * When it is not provided through the configuration, the editor creates it.
217
- */
218
- _context;
219
- /**
220
- * A set of lock IDs for the {@link #isReadOnly} getter.
221
- */
222
- _readOnlyLocks;
223
- /**
224
- * `Editor` class is commonly put in `config.plugins` array.
225
- *
226
- * This property helps with better error detection.
227
- *
228
- * @internal
229
- */
230
- static get _throwErrorWhenUsedAsAPlugin() {
231
- return true;
232
- }
233
- ;
234
- /**
235
- * Creates a new instance of the editor class.
236
- *
237
- * Usually, not to be used directly. See the static {@link module:core/editor/editor~Editor.create `create()`} method.
238
- *
239
- * @param config The editor configuration.
240
- */
241
- constructor(config = {}) {
242
- super();
243
- if (typeof config !== 'object' || Array.isArray(config)) {
244
- /**
245
- * Editor configuration must be an object.
246
- *
247
- * A common cause of this error is passing an Editor class (for example
248
- * `ClassicEditor`) in the `config.plugins` array. In such case, the editor
249
- * constructor is called with an Editor or Context instance instead of
250
- * the configuration object.
251
- *
252
- * @error editor-config-invalid-type
253
- */
254
- throw new CKEditorError('editor-config-invalid-type');
255
- }
256
- if ('sanitizeHtml' in config) {
257
- /**
258
- * Configuration property `config.sanitizeHtml` was removed in CKEditor version 43.1.0 and is no longer supported.
259
- *
260
- * Please use `config.htmlEmbed.sanitizeHtml` and/or `config.mergeFields.sanitizeHtml` instead.
261
- *
262
- * @error editor-config-sanitizehtml-not-supported
263
- */
264
- throw new CKEditorError('editor-config-sanitizehtml-not-supported');
265
- }
266
- const constructor = this.constructor;
267
- // We don't pass translations to the config, because its behavior of splitting keys
268
- // with dots (e.g. `resize.width` => `resize: { width }`) breaks the translations.
269
- const { translations: defaultTranslations, ...defaultConfig } = constructor.defaultConfig || {};
270
- const { translations = defaultTranslations, ...rest } = config;
271
- // Prefer the language passed as the argument to the constructor instead of the constructor's `defaultConfig`, if both are set.
272
- const language = config.language || defaultConfig.language;
273
- this._context = config.context || new Context({ language, translations });
274
- this._context._addEditor(this, !config.context);
275
- // Clone the plugins to make sure that the plugin array will not be shared
276
- // between editors and make the watchdog feature work correctly.
277
- const availablePlugins = Array.from(constructor.builtinPlugins || []);
278
- this.config = new Config(rest, defaultConfig);
279
- this.config.define('plugins', availablePlugins);
280
- this.config.define(this._context._getEditorConfig());
281
- checkLicenseKeyIsDefined(this.config);
282
- this.plugins = new PluginCollection(this, availablePlugins, this._context.plugins);
283
- this.locale = this._context.locale;
284
- this.t = this.locale.t;
285
- this._readOnlyLocks = new Set();
286
- this.commands = new CommandCollection();
287
- this.set('state', 'initializing');
288
- this.once('ready', () => (this.state = 'ready'), { priority: 'high' });
289
- this.once('destroy', () => (this.state = 'destroyed'), { priority: 'high' });
290
- this.model = new Model(this.config);
291
- this.on('change:isReadOnly', () => {
292
- this.model.document.isReadOnly = this.isReadOnly;
293
- });
294
- const stylesProcessor = new StylesProcessor();
295
- this.data = new DataController(this.model, stylesProcessor);
296
- this.editing = new EditingController(this.model, stylesProcessor);
297
- this.editing.view.document.bind('isReadOnly').to(this);
298
- this.conversion = new Conversion([this.editing.downcastDispatcher, this.data.downcastDispatcher], this.data.upcastDispatcher);
299
- this.conversion.addAlias('dataDowncast', this.data.downcastDispatcher);
300
- this.conversion.addAlias('editingDowncast', this.editing.downcastDispatcher);
301
- this.keystrokes = new EditingKeystrokeHandler(this);
302
- this.keystrokes.listenTo(this.editing.view.document);
303
- this.accessibility = new Accessibility(this);
304
- verifyLicenseKey(this);
305
- // Checks if the license key is defined and throws an error if it is not.
306
- function checkLicenseKeyIsDefined(config) {
307
- let licenseKey = config.get('licenseKey');
308
- if (!licenseKey && window.CKEDITOR_GLOBAL_LICENSE_KEY) {
309
- licenseKey = window.CKEDITOR_GLOBAL_LICENSE_KEY;
310
- config.set('licenseKey', licenseKey);
311
- }
312
- if (!licenseKey) {
313
- /**
314
- * The `licenseKey` property is missing in the editor configuration.
315
- *
316
- * * If you are using the editor in a commercial setup, please provide your license key.
317
- * * If you still need to acquire a key, please [contact us](https://ckeditor.com/contact/) or
318
- * [create a free account with a 14 day premium features trial](https://portal.ckeditor.com/checkout?plan=free).
319
- * * If you are using the editor under a GPL license or another license from our Open Source Initiative,
320
- * use the 'GPL' license key instead.
321
- *
322
- * ```js
323
- * ClassicEditor.create( document.querySelector( '#editor' ), {
324
- * licenseKey: '<YOUR_LICENSE_KEY>', // Or 'GPL'.
325
- * // ... Other configuration options ...
326
- * } ) ;
327
- *
328
- * @error license-key-missing
329
- */
330
- throw new CKEditorError('license-key-missing');
331
- }
332
- }
333
- function verifyLicenseKey(editor) {
334
- const licenseKey = editor.config.get('licenseKey');
335
- const distributionChannel = window[Symbol.for('cke distribution')] || 'sh';
336
- function blockEditor(reason, name) {
337
- editor.enableReadOnlyMode(Symbol('invalidLicense'));
338
- editor._showLicenseError(reason, name);
339
- }
340
- function hasAllRequiredFields(licensePayload) {
341
- const requiredFields = ['exp', 'jti', 'vc'];
342
- return requiredFields.every(field => field in licensePayload);
343
- }
344
- function getCrcInputData(licensePayload) {
345
- const keysToCheck = Object.getOwnPropertyNames(licensePayload).sort();
346
- const filteredValues = keysToCheck
347
- .filter(key => key != 'vc' && licensePayload[key] != null)
348
- .map(key => licensePayload[key]);
349
- return filteredValues;
350
- }
351
- function checkLicensedHosts(licensedHosts) {
352
- const { hostname } = new URL(window.location.href);
353
- if (licensedHosts.includes(hostname)) {
354
- return true;
355
- }
356
- const segments = hostname.split('.');
357
- return licensedHosts
358
- // Filter out hosts without wildcards.
359
- .filter(host => host.includes('*'))
360
- // Split the hosts into segments.
361
- .map(host => host.split('.'))
362
- // Filter out hosts that have more segments than the current hostname.
363
- .filter(host => host.length <= segments.length)
364
- // Pad the beginning of the licensed host if it's shorter than the current hostname.
365
- .map(host => Array(segments.length - host.length).fill(host[0] === '*' ? '*' : '').concat(host))
366
- // Check if some license host matches the hostname.
367
- .some(octets => segments.every((segment, index) => octets[index] === segment || octets[index] === '*'));
368
- }
369
- function warnAboutNonProductionLicenseKey(licenseType) {
370
- const capitalizedLicenseType = licenseType[0].toUpperCase() + licenseType.slice(1);
371
- const article = licenseType === 'evaluation' ? 'an' : 'a';
372
- console.info(`%cCKEditor 5 ${capitalizedLicenseType} License`, 'color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;');
373
- console.warn(`⚠️ You are using ${article} ${licenseType} license of CKEditor 5` +
374
- `${licenseType === 'trial' ? ' which is for evaluation purposes only' : ''}. ` +
375
- 'For production usage, please obtain a production license at https://portal.ckeditor.com/');
376
- }
377
- if (licenseKey == 'GPL') {
378
- if (distributionChannel == 'cloud') {
379
- blockEditor('distributionChannel');
380
- }
381
- return;
382
- }
383
- const licensePayload = decodeLicenseKey(licenseKey);
384
- if (!licensePayload) {
385
- blockEditor('invalid');
386
- return;
387
- }
388
- if (!hasAllRequiredFields(licensePayload)) {
389
- blockEditor('invalid');
390
- return;
391
- }
392
- if (licensePayload.distributionChannel && !toArray(licensePayload.distributionChannel).includes(distributionChannel)) {
393
- blockEditor('distributionChannel');
394
- return;
395
- }
396
- if (crc32(getCrcInputData(licensePayload)) != licensePayload.vc.toLowerCase()) {
397
- blockEditor('invalid');
398
- return;
399
- }
400
- const expirationDate = new Date(licensePayload.exp * 1000);
401
- if (expirationDate < releaseDate) {
402
- blockEditor('expired');
403
- return;
404
- }
405
- const licensedHosts = licensePayload.licensedHosts;
406
- if (licensedHosts && licensedHosts.length > 0 && !checkLicensedHosts(licensedHosts)) {
407
- blockEditor('domainLimit');
408
- return;
409
- }
410
- if (['evaluation', 'trial'].includes(licensePayload.licenseType) && licensePayload.exp * 1000 < Date.now()) {
411
- blockEditor('expired');
412
- return;
413
- }
414
- if (['development', 'evaluation', 'trial'].includes(licensePayload.licenseType)) {
415
- const { licenseType } = licensePayload;
416
- window.CKEDITOR_WARNING_SUPPRESSIONS = window.CKEDITOR_WARNING_SUPPRESSIONS || {};
417
- if (!window.CKEDITOR_WARNING_SUPPRESSIONS[licenseType]) {
418
- warnAboutNonProductionLicenseKey(licenseType);
419
- window.CKEDITOR_WARNING_SUPPRESSIONS[licenseType] = true;
420
- }
421
- }
422
- if (licensePayload.licenseType === 'evaluation') {
423
- const timerId = setTimeout(() => {
424
- blockEditor('evaluationLimit');
425
- }, 600000);
426
- editor.on('destroy', () => {
427
- clearTimeout(timerId);
428
- });
429
- }
430
- if (licensePayload.usageEndpoint) {
431
- editor.once('ready', () => {
432
- const request = {
433
- requestId: uid(),
434
- requestTime: Math.round(Date.now() / 1000),
435
- license: licenseKey,
436
- editor: collectUsageData(editor)
437
- };
438
- /**
439
- * This part of the code is not executed in open-source implementations using a GPL key.
440
- * It only runs when a specific license key is provided. If you are uncertain whether
441
- * this applies to your installation, please contact our support team.
442
- */
443
- editor._sendUsageRequest(licensePayload.usageEndpoint, request).then(response => {
444
- const { status, message } = response;
445
- if (message) {
446
- console.warn(message);
447
- }
448
- if (status != 'ok') {
449
- blockEditor('usageLimit');
450
- }
451
- }, () => {
452
- /**
453
- * Your license key cannot be validated due to a network issue.
454
- * Please ensure that your setup does not block requests to the validation endpoint.
455
- *
456
- * @error license-key-validation-endpoint-not-reachable
457
- * @param {string} url The URL that was attempted to be reached for validation.
458
- */
459
- logError('license-key-validation-endpoint-not-reachable', { url: licensePayload.usageEndpoint });
460
- });
461
- }, { priority: 'high' });
462
- }
463
- }
464
- }
465
- /**
466
- * Defines whether the editor is in the read-only mode.
467
- *
468
- * In read-only mode the editor {@link #commands commands} are disabled so it is not possible
469
- * to modify the document by using them. Also, the editable element(s) become non-editable.
470
- *
471
- * In order to make the editor read-only, you need to call the {@link #enableReadOnlyMode} method:
472
- *
473
- * ```ts
474
- * editor.enableReadOnlyMode( 'feature-id' );
475
- * ```
476
- *
477
- * Later, to turn off the read-only mode, call {@link #disableReadOnlyMode}:
478
- *
479
- * ```ts
480
- * editor.disableReadOnlyMode( 'feature-id' );
481
- * ```
482
- *
483
- * @readonly
484
- * @observable
485
- */
486
- get isReadOnly() {
487
- return this._readOnlyLocks.size > 0;
488
- }
489
- set isReadOnly(value) {
490
- /**
491
- * The {@link module:core/editor/editor~Editor#isReadOnly Editor#isReadOnly} property is read-only since version `34.0.0`
492
- * and can be set only using {@link module:core/editor/editor~Editor#enableReadOnlyMode `Editor#enableReadOnlyMode( lockId )`} and
493
- * {@link module:core/editor/editor~Editor#disableReadOnlyMode `Editor#disableReadOnlyMode( lockId )`}.
494
- *
495
- * Usage before version `34.0.0`:
496
- *
497
- * ```ts
498
- * editor.isReadOnly = true;
499
- * editor.isReadOnly = false;
500
- * ```
501
- *
502
- * Usage since version `34.0.0`:
503
- *
504
- * ```ts
505
- * editor.enableReadOnlyMode( 'my-feature-id' );
506
- * editor.disableReadOnlyMode( 'my-feature-id' );
507
- * ```
508
- *
509
- * @error editor-isreadonly-has-no-setter
510
- */
511
- throw new CKEditorError('editor-isreadonly-has-no-setter');
512
- }
513
- /**
514
- * Turns on the read-only mode in the editor.
515
- *
516
- * Editor can be switched to or out of the read-only mode by many features, under various circumstances. The editor supports locking
517
- * mechanism for the read-only mode. It enables easy control over the read-only mode when many features wants to turn it on or off at
518
- * the same time, without conflicting with each other. It guarantees that you will not make the editor editable accidentally (which
519
- * could lead to errors).
520
- *
521
- * Each read-only mode request is identified by a unique id (also called "lock"). If multiple plugins requested to turn on the
522
- * read-only mode, then, the editor will become editable only after all these plugins turn the read-only mode off (using the same ids).
523
- *
524
- * Note, that you cannot force the editor to disable the read-only mode if other plugins set it.
525
- *
526
- * After the first `enableReadOnlyMode()` call, the {@link #isReadOnly `isReadOnly` property} will be set to `true`:
527
- *
528
- * ```ts
529
- * editor.isReadOnly; // `false`.
530
- * editor.enableReadOnlyMode( 'my-feature-id' );
531
- * editor.isReadOnly; // `true`.
532
- * ```
533
- *
534
- * You can turn off the read-only mode ("clear the lock") using the {@link #disableReadOnlyMode `disableReadOnlyMode()`} method:
535
- *
536
- * ```ts
537
- * editor.enableReadOnlyMode( 'my-feature-id' );
538
- * // ...
539
- * editor.disableReadOnlyMode( 'my-feature-id' );
540
- * editor.isReadOnly; // `false`.
541
- * ```
542
- *
543
- * All "locks" need to be removed to enable editing:
544
- *
545
- * ```ts
546
- * editor.enableReadOnlyMode( 'my-feature-id' );
547
- * editor.enableReadOnlyMode( 'my-other-feature-id' );
548
- * // ...
549
- * editor.disableReadOnlyMode( 'my-feature-id' );
550
- * editor.isReadOnly; // `true`.
551
- * editor.disableReadOnlyMode( 'my-other-feature-id' );
552
- * editor.isReadOnly; // `false`.
553
- * ```
554
- *
555
- * @param lockId A unique ID for setting the editor to the read-only state.
556
- */
557
- enableReadOnlyMode(lockId) {
558
- if (typeof lockId !== 'string' && typeof lockId !== 'symbol') {
559
- /**
560
- * The lock ID is missing or it is not a string or symbol.
561
- *
562
- * @error editor-read-only-lock-id-invalid
563
- * @param {never} lockId Lock ID.
564
- */
565
- throw new CKEditorError('editor-read-only-lock-id-invalid', null, { lockId });
566
- }
567
- if (this._readOnlyLocks.has(lockId)) {
568
- return;
569
- }
570
- this._readOnlyLocks.add(lockId);
571
- if (this._readOnlyLocks.size === 1) {
572
- // Manually fire the `change:isReadOnly` event as only getter is provided.
573
- this.fire('change:isReadOnly', 'isReadOnly', true, false);
574
- }
575
- }
576
- /**
577
- * Removes the read-only lock from the editor with given lock ID.
578
- *
579
- * When no lock is present on the editor anymore, then the {@link #isReadOnly `isReadOnly` property} will be set to `false`.
580
- *
581
- * @param lockId The lock ID for setting the editor to the read-only state.
582
- */
583
- disableReadOnlyMode(lockId) {
584
- if (typeof lockId !== 'string' && typeof lockId !== 'symbol') {
585
- throw new CKEditorError('editor-read-only-lock-id-invalid', null, { lockId });
586
- }
587
- if (!this._readOnlyLocks.has(lockId)) {
588
- return;
589
- }
590
- this._readOnlyLocks.delete(lockId);
591
- if (this._readOnlyLocks.size === 0) {
592
- // Manually fire the `change:isReadOnly` event as only getter is provided.
593
- this.fire('change:isReadOnly', 'isReadOnly', false, true);
594
- }
595
- }
596
- /**
597
- * Sets the data in the editor.
598
- *
599
- * ```ts
600
- * editor.setData( '<p>This is editor!</p>' );
601
- * ```
602
- *
603
- * If your editor implementation uses multiple roots, you should pass an object with keys corresponding
604
- * to the editor root names and values equal to the data that should be set in each root:
605
- *
606
- * ```ts
607
- * editor.setData( {
608
- * header: '<p>Content for header part.</p>',
609
- * content: '<p>Content for main part.</p>',
610
- * footer: '<p>Content for footer part.</p>'
611
- * } );
612
- * ```
613
- *
614
- * By default the editor accepts HTML. This can be controlled by injecting a different data processor.
615
- * See the {@glink features/markdown Markdown output} guide for more details.
616
- *
617
- * @param data Input data.
618
- */
619
- setData(data) {
620
- this.data.set(data);
621
- }
622
- /**
623
- * Gets the data from the editor.
624
- *
625
- * ```ts
626
- * editor.getData(); // -> '<p>This is editor!</p>'
627
- * ```
628
- *
629
- * If your editor implementation uses multiple roots, you should pass root name as one of the options:
630
- *
631
- * ```ts
632
- * editor.getData( { rootName: 'header' } ); // -> '<p>Content for header part.</p>'
633
- * ```
634
- *
635
- * By default, the editor outputs HTML. This can be controlled by injecting a different data processor.
636
- * See the {@glink features/markdown Markdown output} guide for more details.
637
- *
638
- * A warning is logged when you try to retrieve data for a detached root, as most probably this is a mistake. A detached root should
639
- * be treated like it is removed, and you should not save its data. Note, that the detached root data is always an empty string.
640
- *
641
- * @param options Additional configuration for the retrieved data.
642
- * Editor features may introduce more configuration options that can be set through this parameter.
643
- * @param options.rootName Root name. Defaults to `'main'`.
644
- * @param options.trim Whether returned data should be trimmed. This option is set to `'empty'` by default,
645
- * which means that whenever editor content is considered empty, an empty string is returned. To turn off trimming
646
- * use `'none'`. In such cases exact content will be returned (for example `'<p>&nbsp;</p>'` for an empty editor).
647
- * @returns Output data.
648
- */
649
- getData(options) {
650
- return this.data.get(options);
651
- }
652
- /**
653
- * Loads and initializes plugins specified in the configuration.
654
- *
655
- * @returns A promise which resolves once the initialization is completed, providing an array of loaded plugins.
656
- */
657
- initPlugins() {
658
- const config = this.config;
659
- const plugins = config.get('plugins');
660
- const removePlugins = config.get('removePlugins') || [];
661
- const extraPlugins = config.get('extraPlugins') || [];
662
- const substitutePlugins = config.get('substitutePlugins') || [];
663
- return this.plugins.init(plugins.concat(extraPlugins), removePlugins, substitutePlugins)
664
- .then(plugins => {
665
- checkPluginsAllowedByLicenseKey(this);
666
- return plugins;
667
- });
668
- function checkPluginsAllowedByLicenseKey(editor) {
669
- const licenseKey = editor.config.get('licenseKey');
670
- if (licenseKey === 'GPL') {
671
- return;
672
- }
673
- const decodedPayload = decodeLicenseKey(licenseKey);
674
- if (!decodedPayload) {
675
- return;
676
- }
677
- const disallowedPlugin = [...editor.plugins]
678
- .map(([pluginConstructor]) => pluginConstructor)
679
- .find(pluginConstructor => {
680
- if (!pluginConstructor.pluginName) {
681
- return false;
682
- }
683
- if (!pluginConstructor.licenseFeatureCode) {
684
- return false;
685
- }
686
- return isFeatureBlockedByLicenseKey(decodedPayload, pluginConstructor.licenseFeatureCode);
687
- });
688
- if (disallowedPlugin) {
689
- editor.enableReadOnlyMode(Symbol('invalidLicense'));
690
- editor._showLicenseError('pluginNotAllowed', disallowedPlugin.pluginName);
691
- }
692
- }
693
- }
694
- /**
695
- * Destroys the editor instance, releasing all resources used by it.
696
- *
697
- * **Note** The editor cannot be destroyed during the initialization phase so if it is called
698
- * while the editor {@link #state is being initialized}, it will wait for the editor initialization before destroying it.
699
- *
700
- * @fires destroy
701
- * @returns A promise that resolves once the editor instance is fully destroyed.
702
- */
703
- destroy() {
704
- let readyPromise = Promise.resolve();
705
- if (this.state == 'initializing') {
706
- readyPromise = new Promise(resolve => this.once('ready', resolve));
707
- }
708
- return readyPromise
709
- .then(() => {
710
- this.fire('destroy');
711
- this.stopListening();
712
- this.commands.destroy();
713
- })
714
- .then(() => this.plugins.destroy())
715
- .then(() => {
716
- this.model.destroy();
717
- this.data.destroy();
718
- this.editing.destroy();
719
- this.keystrokes.destroy();
720
- })
721
- // Remove the editor from the context.
722
- // When the context was created by this editor, the context will be destroyed.
723
- .then(() => this._context._removeEditor(this));
724
- }
725
- /**
726
- * Executes the specified command with given parameters.
727
- *
728
- * Shorthand for:
729
- *
730
- * ```ts
731
- * editor.commands.get( commandName ).execute( ... );
732
- * ```
733
- *
734
- * @param commandName The name of the command to execute.
735
- * @param commandParams Command parameters.
736
- * @returns The value returned by the {@link module:core/commandcollection~CommandCollection#execute `commands.execute()`}.
737
- */
738
- execute(commandName, ...commandParams) {
739
- try {
740
- return this.commands.execute(commandName, ...commandParams);
741
- }
742
- catch (err) {
743
- // @if CK_DEBUG // throw err;
744
- /* istanbul ignore next -- @preserve */
745
- CKEditorError.rethrowUnexpectedError(err, this);
746
- }
747
- }
748
- /**
749
- * Focuses the editor.
750
- *
751
- * **Note** To explicitly focus the editing area of the editor, use the
752
- * {@link module:engine/view/view~EditingView#focus `editor.editing.view.focus()`} method of the editing view.
753
- *
754
- * Check out the {@glink framework/deep-dive/ui/focus-tracking#focus-in-the-editor-ui Focus in the editor UI} section
755
- * of the {@glink framework/deep-dive/ui/focus-tracking Deep dive into focus tracking} guide to learn more.
756
- */
757
- focus() {
758
- this.editing.view.focus();
759
- }
760
- /* istanbul ignore next -- @preserve */
761
- /**
762
- * Creates and initializes a new editor instance.
763
- *
764
- * This is an abstract method. Every editor type needs to implement its own initialization logic.
765
- *
766
- * See the `create()` methods of the existing editor types to learn how to use them:
767
- *
768
- * * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}
769
- * * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}
770
- * * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`}
771
- * * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}
772
- */
773
- static create(...args) {
774
- throw new Error('This is an abstract method.');
775
- }
776
- /**
777
- * The {@link module:core/context~Context} class.
778
- *
779
- * Exposed as static editor field for easier access in editor builds.
780
- */
781
- static Context = Context;
782
- /**
783
- * The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
784
- *
785
- * Exposed as static editor field for easier access in editor builds.
786
- */
787
- static EditorWatchdog = EditorWatchdog;
788
- /**
789
- * The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
790
- *
791
- * Exposed as static editor field for easier access in editor builds.
792
- */
793
- static ContextWatchdog = ContextWatchdog;
794
- _showLicenseError(reason, name) {
795
- setTimeout(() => {
796
- if (reason == 'invalid') {
797
- /**
798
- * The license key provided is invalid. Please ensure that it is copied correctly
799
- * from the [Customer Portal](http://portal.ckeditor.com). If the issue persists,
800
- * please [contact our customer support](https://ckeditor.com/contact/).
801
- *
802
- * @error invalid-license-key
803
- */
804
- throw new CKEditorError('invalid-license-key');
805
- }
806
- if (reason == 'expired') {
807
- /**
808
- * Your license key has expired.
809
- *
810
- * If you used our free trial, you either need to switch to
811
- * [open-source license](https://ckeditor.com/docs/ckeditor5/latest/getting-started/licensing/license-and-legal.html), or
812
- * in case of a commercial plan, change the trial key to production key or development key.
813
- * Switching from trial, you also need to align the editor configuration to the features available in your plan.
814
- *
815
- * If you already had one of our Cloud or Custom plans, please renew your license in the
816
- * [Customer Portal](https://portal.ckeditor.com).
817
- *
818
- * @error license-key-expired
819
- */
820
- throw new CKEditorError('license-key-expired');
821
- }
822
- if (reason == 'domainLimit') {
823
- /**
824
- * The provided license does not allow the editor to run on this domain.
825
- * Some license keys are restricted to local test environments only.
826
- * For more details, please refer to the
827
- * {@glink getting-started/licensing/license-key-and-activation#license-key-types license key type documentation}.
828
- *
829
- * @error license-key-domain-limit
830
- */
831
- throw new CKEditorError('license-key-domain-limit');
832
- }
833
- if (reason == 'pluginNotAllowed') {
834
- // It's safe to assume `name` exists because `pluginNotAllowed` must know a plugin name when checking the license.
835
- const gluePluginName = name.replace(/(Editing|UI)$/, '');
836
- const containsGluePlugin = this.plugins.has(gluePluginName);
837
- /**
838
- * The plugin you are trying to use is not permitted under your current license.
839
- * Please check the available features on the
840
- * [Customer Portal](https://portal.ckeditor.com) or
841
- * [contact support](https://ckeditor.com/contact/) for more information.
842
- *
843
- * @error license-key-plugin-not-allowed
844
- * @param {String} pluginName The plugin you tried to load.
845
- */
846
- throw new CKEditorError('license-key-plugin-not-allowed', null, {
847
- pluginName: containsGluePlugin ? gluePluginName : name
848
- });
849
- }
850
- if (reason == 'featureNotAllowed') {
851
- /**
852
- * The feature you are trying to use is not permitted under your current license.
853
- * Please check the available features on the
854
- * [Customer Portal](https://portal.ckeditor.com) or
855
- * [contact support](https://ckeditor.com/contact/) for more information.
856
- *
857
- * @error license-key-feature-not-allowed
858
- * @param {String} featureName The feature you tried to use.
859
- */
860
- throw new CKEditorError('license-key-feature-not-allowed', null, { featureName: name });
861
- }
862
- if (reason == 'evaluationLimit') {
863
- /**
864
- * You have exceeded the editor operation limit available for your evaluation license key.
865
- * Please restart the editor to continue using it.
866
- * {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.
867
- *
868
- * @error license-key-evaluation-limit
869
- */
870
- throw new CKEditorError('license-key-evaluation-limit');
871
- }
872
- if (reason == 'trialLimit') {
873
- /**
874
- * You have exceeded the editor operation limit for your trial license key.
875
- * Please restart the editor to continue using it.
876
- * {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.
877
- *
878
- * @error license-key-trial-limit
879
- */
880
- throw new CKEditorError('license-key-trial-limit');
881
- }
882
- if (reason == 'developmentLimit') {
883
- /**
884
- * You have exceeded the operation limit for your development license key within the editor.
885
- * Please restart the editor to continue using it.
886
- * {@glink getting-started/licensing/license-key-and-activation#license-key-types Read more about license key types}.
887
- *
888
- * @error license-key-development-limit
889
- */
890
- throw new CKEditorError('license-key-development-limit');
891
- }
892
- if (reason == 'usageLimit') {
893
- /**
894
- * You have reached the usage limit of your license key. This can occur in the following situations:
895
- *
896
- * * You are on a free subscription without a connected payment method and have exceeded the allowed usage threshold.
897
- * * Your account has overdue invoices and the grace period has ended.
898
- *
899
- * To extend the limit and restore access, please update the required details in the
900
- * [Customer Portal](https://portal.ckeditor.com) or
901
- * [contact our customer support](https://ckeditor.com/contact).
902
- *
903
- * @error license-key-usage-limit
904
- */
905
- throw new CKEditorError('license-key-usage-limit');
906
- }
907
- if (reason == 'distributionChannel') {
908
- /**
909
- * Your license does not allow the current distribution channel.
910
- *
911
- * These are the available distribution channels:
912
- * * Self-hosted - the editor is installed via npm or from a ZIP package
913
- * * Cloud - the editor is run from CDN
914
- *
915
- * The licenses available include:
916
- * * GPL license for open-source users.
917
- * * Commercial plans (Cloud or sales-assisted).
918
- *
919
- * The relation between distribution channels and licenses works as follows:
920
- * * With the 'GPL' license key, you may use the editor installed via npm or a ZIP package (self-hosted).
921
- * * With the CKEditor Cloud plans, you may use the editor via our CDN.
922
- * * With the CKEditor Custom plans, depending on your plan details, you can use the editor via npm
923
- * or a ZIP package (self-hosted) or Cloud (CDN).
924
- *
925
- * {@glink getting-started/licensing/usage-based-billing#key-terms Read more about distributions in the documentation}.
926
- * Please verify your installation or [contact support](https://ckeditor.com/contact/) for assistance.
927
- * Should you need to migrate your installation from npm to CDN, please refer to our
928
- * [dedicated migration guides](https://ckeditor.com/docs/ckeditor5/latest/updating/migrations/vanilla-js.html).
929
- *
930
- * @error license-key-invalid-distribution-channel
931
- */
932
- throw new CKEditorError('license-key-invalid-distribution-channel');
933
- }
934
- /* istanbul ignore next -- @preserve */
935
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
936
- const unreachable = reason;
937
- }, 0);
938
- this._showLicenseError = () => { };
939
- }
940
- /**
941
- * This part of the code is _not_ executed in installations under the GPL license (with `config.licenseKey = 'GPL'`).
942
- *
943
- * It is only executed when a specific license key is provided. If you are uncertain whether
944
- * this applies to your installation, please contact our support team.
945
- */
946
- async _sendUsageRequest(endpoint, request) {
947
- const headers = new Headers({ 'Content-Type': 'application/json' });
948
- const response = await fetch(new URL(endpoint), {
949
- method: 'POST',
950
- headers,
951
- body: JSON.stringify(request)
952
- });
953
- if (!response.ok) {
954
- // TODO: refine message.
955
- throw new Error(`HTTP Response: ${response.status}`);
956
- }
957
- return response.json();
958
- }
959
- }
960
- function collectUsageData(editor) {
961
- const collectedData = getEditorUsageData(editor);
962
- function setUsageData(path, value) {
963
- if (get(collectedData, path) !== undefined) {
964
- /**
965
- * The error thrown when trying to set the usage data path that was already set.
966
- * Make sure that you are not setting the same path multiple times.
967
- *
968
- * @error editor-usage-data-path-already-set
969
- * @param {string} path The path that was already set.
970
- */
971
- throw new CKEditorError('editor-usage-data-path-already-set', { path });
972
- }
973
- set(collectedData, path, value);
974
- }
975
- editor.fire('collectUsageData', {
976
- setUsageData
977
- });
978
- return collectedData;
979
- }
980
- /**
981
- * This error is thrown when trying to pass a `<textarea>` element to a `create()` function of an editor class.
982
- *
983
- * The only editor type which can be initialized on `<textarea>` elements is
984
- * the {@glink getting-started/setup/editor-types#classic-editor classic editor}.
985
- * This editor hides the passed element and inserts its own UI next to it. Other types of editors reuse the passed element as their root
986
- * editable element and therefore `<textarea>` is not appropriate for them. Use a `<div>` or another text container instead:
987
- *
988
- * ```html
989
- * <div id="editor">
990
- * <p>Initial content.</p>
991
- * </div>
992
- * ```
993
- *
994
- * @error editor-wrong-element
995
- */
996
- /**
997
- * You are running [CKEditor 5 Long-term Support Edition (LTS)](https://ckeditor.com/ckeditor-5-lts/),
998
- * but the provided license key does not include access to the LTS version, or the key is invalid.
999
- *
1000
- * Please ensure that it is copied correctly from the [Customer Portal](http://portal.ckeditor.com/),
1001
- * and if the issue persists, please [contact our customer support](https://ckeditor.com/contact/).
1002
- *
1003
- * In case you intended to use the [LTS Edition](https://ckeditor.com/ckeditor-5-lts/),
1004
- * but have not yet made a purchase, please [contact our sales team](https://ckeditor.com/contact-sales/)
1005
- *
1006
- * If you did not intend to use LTS, please switch to non-LTS edition, for example,
1007
- * the [latest](https://ckeditor.com/docs/ckeditor5/latest/updating/guides/changelog.html) build.
1008
- *
1009
- * @error license-key-lts-not-allowed
1010
- */