@ckeditor/ckeditor5-utils 49.0.0-alpha.6 → 49.0.0-alpha.8
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/ckeditorerror.d.ts +2 -4
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/ckeditorerror.d.ts
CHANGED
|
@@ -52,10 +52,8 @@ export declare class CKEditorError extends Error {
|
|
|
52
52
|
* @param errorName The error id in an `error-name` format. A link to this error documentation page will be added
|
|
53
53
|
* to the thrown error's `message`.
|
|
54
54
|
* @param context A context of the error by which {@link module:core/errorreporter~onEditorError error reporting}
|
|
55
|
-
* works out which editor the error came from.
|
|
56
|
-
*
|
|
57
|
-
* The error context should be checked using the `areConnectedThroughProperties( editor, context )` utility
|
|
58
|
-
* to check if the object works as the context.
|
|
55
|
+
* works out which editor the error came from. Pass the editor, the context, or the plugin or command that throws the error.
|
|
56
|
+
* Pass `null` if the error should not be attributed to any editor (e.g. during the editor initialization).
|
|
59
57
|
* @param data Additional data describing the error. A stringified version of this object
|
|
60
58
|
* will be appended to the error message, so the data are quickly visible in the console. The original
|
|
61
59
|
* data object will also be later available under the {@link #data} property.
|
package/dist/index.js
CHANGED
|
@@ -780,10 +780,8 @@ var CKEditorError = class CKEditorError extends Error {
|
|
|
780
780
|
* @param errorName The error id in an `error-name` format. A link to this error documentation page will be added
|
|
781
781
|
* to the thrown error's `message`.
|
|
782
782
|
* @param context A context of the error by which {@link module:core/errorreporter~onEditorError error reporting}
|
|
783
|
-
* works out which editor the error came from.
|
|
784
|
-
*
|
|
785
|
-
* The error context should be checked using the `areConnectedThroughProperties( editor, context )` utility
|
|
786
|
-
* to check if the object works as the context.
|
|
783
|
+
* works out which editor the error came from. Pass the editor, the context, or the plugin or command that throws the error.
|
|
784
|
+
* Pass `null` if the error should not be attributed to any editor (e.g. during the editor initialization).
|
|
787
785
|
* @param data Additional data describing the error. A stringified version of this object
|
|
788
786
|
* will be appended to the error message, so the data are quickly visible in the console. The original
|
|
789
787
|
* data object will also be later available under the {@link #data} property.
|
|
@@ -917,7 +915,7 @@ function formatConsoleArguments(errorName, data) {
|
|
|
917
915
|
/**
|
|
918
916
|
* @module utils/version
|
|
919
917
|
*/
|
|
920
|
-
const version = "49.0.0-alpha.
|
|
918
|
+
const version = "49.0.0-alpha.8";
|
|
921
919
|
const releaseDate = new Date(2026, 5, 2);
|
|
922
920
|
/* v8 ignore next -- @preserve */
|
|
923
921
|
if (globalThis.CKEDITOR_VERSION)
|
|
@@ -3777,7 +3775,8 @@ const PASS_THROUGH = {
|
|
|
3777
3775
|
};
|
|
3778
3776
|
/**
|
|
3779
3777
|
* The editor's policy, created on first use. The browser allows each policy name only once per document, so a single
|
|
3780
|
-
* policy is shared by every editor in the document, by all roots of a multi-root editor and
|
|
3778
|
+
* policy is shared by every editor in the document, by all roots of a multi-root editor, and by editors created later,
|
|
3779
|
+
* such as one recreated after an error.
|
|
3781
3780
|
*/
|
|
3782
3781
|
let policy;
|
|
3783
3782
|
/**
|