@ckeditor/ckeditor5-collaboration-core 48.2.0 → 48.3.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/augmentation.d.ts +28 -28
- package/dist/collaborationhistory.d.ts +16 -16
- package/dist/collaborationoperation.d.ts +16 -16
- package/dist/config.d.ts +139 -139
- package/dist/documentcompare.d.ts +115 -115
- package/dist/index-editor.css +80 -0
- package/dist/index.css +80 -0
- package/dist/index.d.ts +27 -26
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/permissions.d.ts +49 -49
- package/dist/suggestions/integrations/alignment.d.ts +10 -10
- package/dist/suggestions/integrations/basicstyles.d.ts +10 -10
- package/dist/suggestions/integrations/bookmark.d.ts +10 -10
- package/dist/suggestions/integrations/font.d.ts +10 -10
- package/dist/suggestions/integrations/footnotes.d.ts +10 -10
- package/dist/suggestions/integrations/generalhtmlsupport.d.ts +20 -20
- package/dist/suggestions/integrations/highlight.d.ts +10 -10
- package/dist/suggestions/integrations/horizontalline.d.ts +10 -10
- package/dist/suggestions/integrations/htmlembed.d.ts +10 -10
- package/dist/suggestions/integrations/image.d.ts +10 -10
- package/dist/suggestions/integrations/indent.d.ts +10 -10
- package/dist/suggestions/integrations/lineheight.d.ts +10 -10
- package/dist/suggestions/integrations/link.d.ts +10 -10
- package/dist/suggestions/integrations/list.d.ts +10 -10
- package/dist/suggestions/integrations/listproperties.d.ts +10 -10
- package/dist/suggestions/integrations/mediaembed.d.ts +10 -10
- package/dist/suggestions/integrations/multilevellist.d.ts +10 -10
- package/dist/suggestions/integrations/shiftenter.d.ts +10 -10
- package/dist/suggestions/integrations/table.d.ts +10 -10
- package/dist/suggestions/integrations/tablecellproperties.d.ts +10 -10
- package/dist/suggestions/integrations/tablefooters.d.ts +10 -10
- package/dist/suggestions/integrations/tableheadings.d.ts +10 -10
- package/dist/suggestions/integrations/tablelayout.d.ts +10 -10
- package/dist/suggestions/integrations/tableproperties.d.ts +10 -10
- package/dist/suggestions/integrations/uploadcare.d.ts +10 -10
- package/dist/suggestions/suggestionsconversion.d.ts +79 -79
- package/dist/suggestions/view/ariadescriptionview.d.ts +18 -18
- package/dist/suggestions/view/latefocusbuttonview.d.ts +29 -29
- package/dist/suggestionstyles.d.ts +17 -16
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/pillview.d.ts +103 -0
- package/dist/users/view/userview.d.ts +12 -12
- package/dist/users.d.ts +173 -173
- package/dist/utils/common-translations.d.ts +6 -6
- package/dist/utils/confirmmixin.d.ts +27 -17
- package/dist/utils/confirmview.d.ts +20 -20
- package/dist/utils/getdatetimeformatter.d.ts +31 -31
- package/dist/utils/getmarkerdomelement.d.ts +17 -17
- package/dist/utils/hashobject.d.ts +5 -5
- package/dist/utils/sanitizeeditorconfig.d.ts +11 -11
- package/dist/utils/setupthreadkeyboardnavigation.d.ts +31 -31
- package/dist/utils/suggestionmarkerutils.d.ts +13 -13
- package/dist/utils/surroundingmarkersdetector.d.ts +11 -11
- package/dist/utils/trim-html.d.ts +14 -14
- package/package.json +12 -12
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { LocaleConfig, Users, Permissions } from
|
|
6
|
-
import type { RealTimeCollaborationConfig, CollaborationUsersConfig } from
|
|
7
|
-
declare module
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
import type { LocaleConfig, Users, Permissions } from "./index.js";
|
|
6
|
+
import type { RealTimeCollaborationConfig, CollaborationUsersConfig } from "./config.js";
|
|
7
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
8
|
+
interface EditorConfig {
|
|
9
|
+
/**
|
|
10
|
+
* The locale configuration of the editor.
|
|
11
|
+
*/
|
|
12
|
+
locale?: LocaleConfig;
|
|
13
|
+
/**
|
|
14
|
+
* The users plugin configuration.
|
|
15
|
+
*/
|
|
16
|
+
users?: CollaborationUsersConfig;
|
|
17
|
+
/**
|
|
18
|
+
* The configuration of the real time collaboration feature.
|
|
19
|
+
*
|
|
20
|
+
* Read more in {@link module:collaboration-core/config~RealTimeCollaborationConfig}.
|
|
21
|
+
*
|
|
22
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
23
|
+
*/
|
|
24
|
+
collaboration?: RealTimeCollaborationConfig;
|
|
25
|
+
}
|
|
26
|
+
interface PluginsMap {
|
|
27
|
+
[Permissions.pluginName]: Permissions;
|
|
28
|
+
[Users.pluginName]: Users;
|
|
29
|
+
}
|
|
30
30
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { CollaborationOperation } from
|
|
6
|
+
* @module collaboration-core/collaborationhistory
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { CollaborationOperation } from "./collaborationoperation.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
|
|
12
|
+
* {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
|
|
13
|
+
*/
|
|
14
14
|
export interface CollaborationHistory {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
_operations: Array<CollaborationOperation>;
|
|
16
|
+
version: number;
|
|
17
|
+
getOperations(fromBaseVersion?: number, toBaseVersion?: number): Array<CollaborationOperation>;
|
|
18
|
+
getOperation(baseVersion: number): CollaborationOperation | undefined;
|
|
19
|
+
addOperation(operation: CollaborationOperation): void;
|
|
20
|
+
reset(): void;
|
|
21
21
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from
|
|
6
|
+
* @module collaboration-core/collaborationoperation
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from "@ckeditor/ckeditor5-engine";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Extends the {@link module:engine/model/operation/operation operation}.
|
|
12
|
+
*/
|
|
13
13
|
export interface CollaborationOperation extends Operation {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
_isInit?: boolean;
|
|
15
|
+
_authorId?: null | string;
|
|
16
|
+
_isDisconnection?: boolean;
|
|
17
|
+
_aiSource?: string;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
wasUndone?: boolean;
|
|
20
|
+
clone(): CollaborationOperation;
|
|
21
21
|
}
|
|
22
22
|
export type InsertCollaborationOperation = CollaborationOperation & InsertOperation;
|
|
23
23
|
export type MoveCollaborationOperation = CollaborationOperation & MoveOperation;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { LocaleTranslate } from
|
|
6
|
+
* @module collaboration-core/config
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { LocaleTranslate } from "@ckeditor/ckeditor5-utils";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
* The locale configuration.
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* ClassicEditor
|
|
15
|
+
* .create( {
|
|
16
|
+
* locale: {
|
|
17
|
+
* // The localization configuration.
|
|
18
|
+
* }
|
|
19
|
+
* } )
|
|
20
|
+
* .then( ... )
|
|
21
|
+
* .catch( ... );
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
|
25
|
+
*/
|
|
26
26
|
export interface LocaleConfig {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
27
|
+
/**
|
|
28
|
+
* A function that formats date to the custom format. It is used in dates in annotations (balloons) displaying
|
|
29
|
+
* comments and suggestions details.
|
|
30
|
+
*
|
|
31
|
+
* The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { DateTime } from 'luxon';
|
|
35
|
+
*
|
|
36
|
+
* ClassicEditor
|
|
37
|
+
* .create( {
|
|
38
|
+
* attachTo: document.querySelector( '#editor' ),
|
|
39
|
+
* toolbar: {
|
|
40
|
+
* items: [ 'bold', 'italic', '|', 'comment' ]
|
|
41
|
+
* },
|
|
42
|
+
* sidebar: {
|
|
43
|
+
* container: document.querySelector( '#sidebar' )
|
|
44
|
+
* },
|
|
45
|
+
* locale: {
|
|
46
|
+
* dateTimeFormat: date => DateTime.fromJSDate( date ).toFormat( 'dd/LL/yyyy' )
|
|
47
|
+
* }
|
|
48
|
+
* } )
|
|
49
|
+
* .catch( error => console.error( error ) );
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @returns The generated date.
|
|
53
|
+
*/
|
|
54
|
+
dateTimeFormat?: (date: Date, t?: LocaleTranslate) => string;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
* The configuration of the Users features.
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* ClassicEditor
|
|
61
|
+
* .create( {
|
|
62
|
+
* users: ... // Users configuration.
|
|
63
|
+
* } )
|
|
64
|
+
* .then( ... )
|
|
65
|
+
* .catch( ... );
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
69
|
+
*/
|
|
70
70
|
export interface CollaborationUsersConfig {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
71
|
+
/**
|
|
72
|
+
* User ID value that will be used for the anonymous user.
|
|
73
|
+
*/
|
|
74
|
+
anonymousUserId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Number of defined colors that are randomly assigned to users.
|
|
77
|
+
*/
|
|
78
|
+
colorsCount?: number;
|
|
79
|
+
/**
|
|
80
|
+
* A callback function that customizes the way user initials are generated.
|
|
81
|
+
*
|
|
82
|
+
* If provided, this function will be called with the user's full name as the argument, and
|
|
83
|
+
* it should return a string representing the user's initials.
|
|
84
|
+
*
|
|
85
|
+
* Example usage:
|
|
86
|
+
* ```ts
|
|
87
|
+
* ClassicEditor
|
|
88
|
+
* .create( {
|
|
89
|
+
* users: {
|
|
90
|
+
* getInitialsCallback: ( name: string ) => {
|
|
91
|
+
* // Custom logic to generate initials.
|
|
92
|
+
* return name.split( ' ' )[ 0 ].charAt( 0 ) + name.split( ' ' )[ 1 ].charAt( 0 );
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
95
|
+
* } )
|
|
96
|
+
* .then( ... )
|
|
97
|
+
* .catch( ... );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
getInitialsCallback?: (name: string) => string;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
* The configuration of the real-time collaboration features.
|
|
104
|
+
*
|
|
105
|
+
* ```ts
|
|
106
|
+
* ClassicEditor
|
|
107
|
+
* .create( {
|
|
108
|
+
* collaboration: ... // Collaboration features configuration.
|
|
109
|
+
* } )
|
|
110
|
+
* .then( ... )
|
|
111
|
+
* .catch( ... );
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
115
|
+
*/
|
|
116
116
|
export interface RealTimeCollaborationConfig {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
117
|
+
/**
|
|
118
|
+
* The channel ID is a unique ID that identifies the data loaded in the editor instance or used by
|
|
119
|
+
* the context instance.
|
|
120
|
+
*
|
|
121
|
+
* If specified for the editor, it is the document ID.
|
|
122
|
+
*
|
|
123
|
+
* If you are using multiple editors instances at the same time, each of them should use a different
|
|
124
|
+
* channel ID to connect to a specific document.
|
|
125
|
+
*
|
|
126
|
+
* If specified for context, it is the ID for all the data related to context instance.
|
|
127
|
+
* This ID will be used for data that is not related to an editor instance, for example comments
|
|
128
|
+
* outside the editor.
|
|
129
|
+
*
|
|
130
|
+
* In the case of context, the ID can be an ID of a subpage or a form, or a different entity accordingly
|
|
131
|
+
* to your application.
|
|
132
|
+
*
|
|
133
|
+
* The channel ID can be used to recognize entity to which piece of data belongs in integrations that use `Context`
|
|
134
|
+
* and context plugins. For example, if you are preparing a custom integration using the comments API,
|
|
135
|
+
* you can use the channel ID to recognize whether the comment was added to an editor instance
|
|
136
|
+
* (and which one) or to the context.
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* ClassicEditor
|
|
140
|
+
* .create( {
|
|
141
|
+
* collaboration: {
|
|
142
|
+
* channelId: 'your-channel-id'
|
|
143
|
+
* }
|
|
144
|
+
* } )
|
|
145
|
+
* .then( ... )
|
|
146
|
+
* .catch( ... );
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
channelId?: string;
|
|
150
150
|
}
|