@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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/CHANGELOG.md +19 -19
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +9 -1
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +16 -8
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1130 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20b3=['pluginName','Comments'];(function(_0x5aa353,_0x20b3a7){var _0x49cacd=function(_0x15a2f7){while(--_0x15a2f7){_0x5aa353['push'](_0x5aa353['shift']());}};_0x49cacd(++_0x20b3a7);}(_0x20b3,0x1e1));var _0x49ca=function(_0x5aa353,_0x20b3a7){_0x5aa353=_0x5aa353-0x0;var _0x49cacd=_0x20b3[_0x5aa353];return _0x49cacd;};import{Plugin as _0x192fa8}from'ckeditor5/src/core';import _0x2e7169 from'./comments/commentsrepository';import _0x522d09 from'./comments/commentsediting';import _0x4f4e6b from'./comments/commentsui';import _0x3c0833 from'./commentsonly';import _0x303cb9 from'./annotations/widesidebar';import _0x503fb7 from'./annotations/narrowsidebar';import _0x436aa3 from'./annotations/inlineannotations';import _0x4d582c from'./comments/commentsarchiveui';import _0x252ba5 from'./comments/commentsarchive';export default class f extends _0x192fa8{static get['requires'](){return[_0x2e7169,_0x522d09,_0x4f4e6b,_0x252ba5,_0x4d582c,_0x3c0833,_0x303cb9,_0x503fb7,_0x436aa3];}static get[_0x49ca('0x1')](){return _0x49ca('0x0');}}
|
package/src/commentsonly.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/commentsonly
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import CommentsEditing from './comments/commentsediting';
|
|
11
|
-
/**
|
|
12
|
-
* The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
|
|
13
|
-
*
|
|
14
|
-
* Check the {@glink features/collaboration/comments/comments-only-mode Comments-only mode} guide to learn how to use this plugin.
|
|
15
|
-
*/
|
|
16
|
-
export default class CommentsOnly extends Plugin {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
static get pluginName(): "CommentsOnly";
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
static get requires(): readonly [typeof CommentsEditing];
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
constructor(editor: Editor);
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
afterInit(): void;
|
|
33
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/commentsonly
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentsEditing from './comments/commentsediting';
|
|
11
|
+
/**
|
|
12
|
+
* The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
|
|
13
|
+
*
|
|
14
|
+
* Check the {@glink features/collaboration/comments/comments-only-mode Comments-only mode} guide to learn how to use this plugin.
|
|
15
|
+
*/
|
|
16
|
+
export default class CommentsOnly extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "CommentsOnly";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly [typeof CommentsEditing];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
constructor(editor: Editor);
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
afterInit(): void;
|
|
33
|
+
}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b09=['change:isEnabled','set','stopListening','_enableCommentsOnlyMode','stop','get','affectsData','cut','addCommentThread','editor','_disableCommentsOnlyMode','DragDrop','editing','highest','commands','listenTo','document','afterInit','delete','view','requires','clipboardInput','plugins','isEnabled','has','pluginName','CommentsOnly','commentsOnlyMode'];(function(_0x37d237,_0x1b0924){const _0x693e72=function(_0x7deaa8){while(--_0x7deaa8){_0x37d237['push'](_0x37d237['shift']());}};_0x693e72(++_0x1b0924);}(_0x1b09,0x14e));const _0x693e=function(_0x37d237,_0x1b0924){_0x37d237=_0x37d237-0x0;let _0x693e72=_0x1b09[_0x37d237];return _0x693e72;};import{Plugin as _0x4a7d83}from'ckeditor5/src/core';import _0x3cd906 from'./comments/commentsediting';export default class n extends _0x4a7d83{static get[_0x693e('0x1b')](){return _0x693e('0x0');}static get[_0x693e('0x16')](){return[_0x3cd906];}constructor(_0x1d24f2){super(_0x1d24f2),this[_0x693e('0x3')]('isEnabled',!0x1),this['on'](_0x693e('0x2'),(_0x3f3131,_0x2719d9,_0x140775)=>{_0x140775?this[_0x693e('0x5')]():this[_0x693e('0xc')]();});}[_0x693e('0x13')](){!this[_0x693e('0x19')]&&this[_0x693e('0xb')]['config'][_0x693e('0x7')]('commentsOnly')&&(this[_0x693e('0x19')]=!0x0);}[_0x693e('0x5')](){for(const [_0x3dee14,_0x4935aa]of this[_0x693e('0xb')][_0x693e('0x10')])_0x4935aa['affectsData']&&_0x693e('0xa')!==_0x3dee14&&_0x4935aa['forceDisabled'](_0x693e('0x1'));this[_0x693e('0xb')][_0x693e('0x18')][_0x693e('0x1a')](_0x693e('0xd'))&&this[_0x693e('0xb')]['plugins']['get'](_0x693e('0xd'))['forceDisabled'](_0x693e('0x1'));const _0x4dd045=this[_0x693e('0xb')]['editing']['view'][_0x693e('0x12')];this[_0x693e('0x11')](_0x4dd045,_0x693e('0x9'),_0x437953=>_0x437953[_0x693e('0x6')](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x17'),_0x4026d7=>_0x4026d7['stop'](),{'priority':_0x693e('0xf')}),this[_0x693e('0x11')](_0x4dd045,_0x693e('0x14'),_0x4ab09a=>_0x4ab09a['stop'](),{'priority':_0x693e('0xf')});}[_0x693e('0xc')](){for(const [_0x258110,_0x45f9b2]of this[_0x693e('0xb')]['commands'])_0x45f9b2[_0x693e('0x8')]&&_0x693e('0xa')!==_0x258110&&_0x45f9b2['clearForceDisabled'](_0x693e('0x1'));this[_0x693e('0x4')](this['editor'][_0x693e('0xe')][_0x693e('0x15')][_0x693e('0x12')]);}}
|
package/src/config.d.ts
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/config
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
10
|
-
import type CommentView from './comments/ui/view/commentview';
|
|
11
|
-
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the comments feature.
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* ClassicEditor.create( {
|
|
17
|
-
* comments: ... // Comments feature configuration.
|
|
18
|
-
* } )
|
|
19
|
-
* .then( ... )
|
|
20
|
-
* .catch( ... );
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
24
|
-
*/
|
|
25
|
-
export interface CommentsConfig {
|
|
26
|
-
/**
|
|
27
|
-
* The total number of comments shown when the thread view is collapsed.
|
|
28
|
-
*
|
|
29
|
-
* The comments are displayed in the following way:
|
|
30
|
-
*
|
|
31
|
-
* * The first comment is displayed.
|
|
32
|
-
* * Some comments may be hidden (collapsed).
|
|
33
|
-
* * An appropriate number of the most recent comments is displayed.
|
|
34
|
-
*
|
|
35
|
-
* For example, when this parameter is set to 3, when collapsed,
|
|
36
|
-
* the thread view will display the first comment and two most recent comments.
|
|
37
|
-
*
|
|
38
|
-
* Defaults to `2`.
|
|
39
|
-
*/
|
|
40
|
-
maxCommentsWhenCollapsed?: number;
|
|
41
|
-
/**
|
|
42
|
-
* The maximum total weight of a thread before the thread becomes collapsed when it is not active:
|
|
43
|
-
*
|
|
44
|
-
* * Thread weight is a sum of the weight of its comments.
|
|
45
|
-
* * Comment weight is equal to the comment length.
|
|
46
|
-
* * The minimal comment weight is 200.
|
|
47
|
-
*
|
|
48
|
-
* Defaults to `500`.
|
|
49
|
-
*/
|
|
50
|
-
maxThreadTotalWeight?: number;
|
|
51
|
-
/**
|
|
52
|
-
* The maximum number of characters displayed in a comment when the thread view is collapsed.
|
|
53
|
-
* Longer comments will be trimmed.
|
|
54
|
-
*
|
|
55
|
-
* Defaults to `140`.
|
|
56
|
-
*/
|
|
57
|
-
maxCommentCharsWhenCollapsed?: number;
|
|
58
|
-
/**
|
|
59
|
-
* A view class to be used to create comment views.
|
|
60
|
-
*
|
|
61
|
-
* {@link module:comments/comments/ui/view/commentview~CommentView} is used by default when this property is not set.
|
|
62
|
-
*/
|
|
63
|
-
CommentView?: typeof CommentView;
|
|
64
|
-
/**
|
|
65
|
-
* A view class to be used to create comment thread views
|
|
66
|
-
* (used as annotations - in sidebar balloons or in inline annotations).
|
|
67
|
-
*
|
|
68
|
-
* {@link module:comments/comments/ui/view/commentthreadview~CommentThreadView} is used by default
|
|
69
|
-
* when this property is not set.
|
|
70
|
-
*/
|
|
71
|
-
CommentThreadView?: typeof BaseCommentThreadView;
|
|
72
|
-
/**
|
|
73
|
-
* Configuration for the comments editor.
|
|
74
|
-
*
|
|
75
|
-
* By using this property, you can customize the editor instance used in the comments
|
|
76
|
-
* reply field (e.g. by adding plugins or changing features configuration).
|
|
77
|
-
*
|
|
78
|
-
* To use the default configuration (allows only for text input, no formatting), you can pass `{}`
|
|
79
|
-
* to the comments editor configuration.
|
|
80
|
-
*
|
|
81
|
-
* ```ts
|
|
82
|
-
* ClassicEditor.create( element, {
|
|
83
|
-
* comments: {
|
|
84
|
-
* editorConfig: {}
|
|
85
|
-
* }
|
|
86
|
-
* } );
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* To provide a better experience, you may add more plugins, that will extend the default editor configuration.
|
|
90
|
-
*
|
|
91
|
-
* ```ts
|
|
92
|
-
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
|
|
93
|
-
* import List from '@ckeditor/ckeditor5-list/src/list';
|
|
94
|
-
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
|
95
|
-
* import Italic from '@ckeditor/ckeditor5-italic/src/italic';
|
|
96
|
-
*
|
|
97
|
-
* ClassicEditor
|
|
98
|
-
* .create( {
|
|
99
|
-
* comments: {
|
|
100
|
-
* editorConfig: {
|
|
101
|
-
* extraPlugins: [ Autoformat, Bold, Italic, List ]
|
|
102
|
-
* }
|
|
103
|
-
* }
|
|
104
|
-
* } )
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* Importing plugins may not be possible in some scenarios (e.g. when using a build created by the online builder tool).
|
|
108
|
-
* In that case, it is possible to get the plugin constructors from the editor builtin plugins.
|
|
109
|
-
*
|
|
110
|
-
* ```ts
|
|
111
|
-
* const extraCommentsPlugins = ClassicEditor.builtinPlugins.filter( plugin => {
|
|
112
|
-
* return [ 'Bold', 'Italic', Autoformat, List ].includes( plugin.pluginName );
|
|
113
|
-
* } );
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* ClassicEditor
|
|
117
|
-
* .create( {
|
|
118
|
-
* comments: {
|
|
119
|
-
* editorConfig: {
|
|
120
|
-
* extraPlugins: extraCommentsPlugins
|
|
121
|
-
* }
|
|
122
|
-
* }
|
|
123
|
-
* } )
|
|
124
|
-
* .then( ... )
|
|
125
|
-
* .catch( ... );
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
|
-
editorConfig?: EditorConfig;
|
|
129
|
-
/**
|
|
130
|
-
* A function that takes a `Date` object, formats it to a desired string and returns it.
|
|
131
|
-
* It should be used when displaying the comment creation date.
|
|
132
|
-
*/
|
|
133
|
-
formatDateTime?: (date: Date) => string;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* The configuration of the sidebar feature.
|
|
137
|
-
*
|
|
138
|
-
* ```ts
|
|
139
|
-
* ClassicEditor
|
|
140
|
-
* .create( {
|
|
141
|
-
* sidebar: {
|
|
142
|
-
* // Sidebar feature configuration.
|
|
143
|
-
* }
|
|
144
|
-
* } )
|
|
145
|
-
* .then( ... )
|
|
146
|
-
* .catch( ... );
|
|
147
|
-
* ```
|
|
148
|
-
*
|
|
149
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
|
150
|
-
*/
|
|
151
|
-
export interface SidebarConfig {
|
|
152
|
-
/**
|
|
153
|
-
* DOM element into which the sidebar will be inserted.
|
|
154
|
-
*/
|
|
155
|
-
container?: HTMLElement;
|
|
156
|
-
/**
|
|
157
|
-
* Changes how the annotations are positioned inside the sidebar.
|
|
158
|
-
*
|
|
159
|
-
* If set to `true`, the top annotation in the sidebar will never be scrolled
|
|
160
|
-
* above the top edge of the sidebar (which would make it hidden).
|
|
161
|
-
*
|
|
162
|
-
* On the other hand, with this setting enabled, if there is not enough space,
|
|
163
|
-
* annotations will not be positioned exactly next to their linked elements
|
|
164
|
-
* when selected.
|
|
165
|
-
*
|
|
166
|
-
* @default false
|
|
167
|
-
*/
|
|
168
|
-
preventScrollOutOfView?: boolean;
|
|
169
|
-
}
|
|
170
|
-
export type CommentThreadConfig = Required<Omit<CommentsConfig, 'CommentThreadView'>>;
|
|
171
|
-
export type CommentViewConfig = Required<Pick<CommentsConfig, 'maxCommentCharsWhenCollapsed' | 'formatDateTime' | 'editorConfig'>> & {
|
|
172
|
-
/**
|
|
173
|
-
* Defines whether the comment is created by the system.
|
|
174
|
-
*/
|
|
175
|
-
isSystemComment?: boolean;
|
|
176
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/config
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
10
|
+
import type CommentView from './comments/ui/view/commentview';
|
|
11
|
+
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
|
|
12
|
+
/**
|
|
13
|
+
* The configuration of the comments feature.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* ClassicEditor.create( {
|
|
17
|
+
* comments: ... // Comments feature configuration.
|
|
18
|
+
* } )
|
|
19
|
+
* .then( ... )
|
|
20
|
+
* .catch( ... );
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
24
|
+
*/
|
|
25
|
+
export interface CommentsConfig {
|
|
26
|
+
/**
|
|
27
|
+
* The total number of comments shown when the thread view is collapsed.
|
|
28
|
+
*
|
|
29
|
+
* The comments are displayed in the following way:
|
|
30
|
+
*
|
|
31
|
+
* * The first comment is displayed.
|
|
32
|
+
* * Some comments may be hidden (collapsed).
|
|
33
|
+
* * An appropriate number of the most recent comments is displayed.
|
|
34
|
+
*
|
|
35
|
+
* For example, when this parameter is set to 3, when collapsed,
|
|
36
|
+
* the thread view will display the first comment and two most recent comments.
|
|
37
|
+
*
|
|
38
|
+
* Defaults to `2`.
|
|
39
|
+
*/
|
|
40
|
+
maxCommentsWhenCollapsed?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The maximum total weight of a thread before the thread becomes collapsed when it is not active:
|
|
43
|
+
*
|
|
44
|
+
* * Thread weight is a sum of the weight of its comments.
|
|
45
|
+
* * Comment weight is equal to the comment length.
|
|
46
|
+
* * The minimal comment weight is 200.
|
|
47
|
+
*
|
|
48
|
+
* Defaults to `500`.
|
|
49
|
+
*/
|
|
50
|
+
maxThreadTotalWeight?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The maximum number of characters displayed in a comment when the thread view is collapsed.
|
|
53
|
+
* Longer comments will be trimmed.
|
|
54
|
+
*
|
|
55
|
+
* Defaults to `140`.
|
|
56
|
+
*/
|
|
57
|
+
maxCommentCharsWhenCollapsed?: number;
|
|
58
|
+
/**
|
|
59
|
+
* A view class to be used to create comment views.
|
|
60
|
+
*
|
|
61
|
+
* {@link module:comments/comments/ui/view/commentview~CommentView} is used by default when this property is not set.
|
|
62
|
+
*/
|
|
63
|
+
CommentView?: typeof CommentView;
|
|
64
|
+
/**
|
|
65
|
+
* A view class to be used to create comment thread views
|
|
66
|
+
* (used as annotations - in sidebar balloons or in inline annotations).
|
|
67
|
+
*
|
|
68
|
+
* {@link module:comments/comments/ui/view/commentthreadview~CommentThreadView} is used by default
|
|
69
|
+
* when this property is not set.
|
|
70
|
+
*/
|
|
71
|
+
CommentThreadView?: typeof BaseCommentThreadView;
|
|
72
|
+
/**
|
|
73
|
+
* Configuration for the comments editor.
|
|
74
|
+
*
|
|
75
|
+
* By using this property, you can customize the editor instance used in the comments
|
|
76
|
+
* reply field (e.g. by adding plugins or changing features configuration).
|
|
77
|
+
*
|
|
78
|
+
* To use the default configuration (allows only for text input, no formatting), you can pass `{}`
|
|
79
|
+
* to the comments editor configuration.
|
|
80
|
+
*
|
|
81
|
+
* ```ts
|
|
82
|
+
* ClassicEditor.create( element, {
|
|
83
|
+
* comments: {
|
|
84
|
+
* editorConfig: {}
|
|
85
|
+
* }
|
|
86
|
+
* } );
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* To provide a better experience, you may add more plugins, that will extend the default editor configuration.
|
|
90
|
+
*
|
|
91
|
+
* ```ts
|
|
92
|
+
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
|
|
93
|
+
* import List from '@ckeditor/ckeditor5-list/src/list';
|
|
94
|
+
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
|
95
|
+
* import Italic from '@ckeditor/ckeditor5-italic/src/italic';
|
|
96
|
+
*
|
|
97
|
+
* ClassicEditor
|
|
98
|
+
* .create( {
|
|
99
|
+
* comments: {
|
|
100
|
+
* editorConfig: {
|
|
101
|
+
* extraPlugins: [ Autoformat, Bold, Italic, List ]
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
* } )
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* Importing plugins may not be possible in some scenarios (e.g. when using a build created by the online builder tool).
|
|
108
|
+
* In that case, it is possible to get the plugin constructors from the editor builtin plugins.
|
|
109
|
+
*
|
|
110
|
+
* ```ts
|
|
111
|
+
* const extraCommentsPlugins = ClassicEditor.builtinPlugins.filter( plugin => {
|
|
112
|
+
* return [ 'Bold', 'Italic', Autoformat, List ].includes( plugin.pluginName );
|
|
113
|
+
* } );
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* ClassicEditor
|
|
117
|
+
* .create( {
|
|
118
|
+
* comments: {
|
|
119
|
+
* editorConfig: {
|
|
120
|
+
* extraPlugins: extraCommentsPlugins
|
|
121
|
+
* }
|
|
122
|
+
* }
|
|
123
|
+
* } )
|
|
124
|
+
* .then( ... )
|
|
125
|
+
* .catch( ... );
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
editorConfig?: EditorConfig;
|
|
129
|
+
/**
|
|
130
|
+
* A function that takes a `Date` object, formats it to a desired string and returns it.
|
|
131
|
+
* It should be used when displaying the comment creation date.
|
|
132
|
+
*/
|
|
133
|
+
formatDateTime?: (date: Date) => string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The configuration of the sidebar feature.
|
|
137
|
+
*
|
|
138
|
+
* ```ts
|
|
139
|
+
* ClassicEditor
|
|
140
|
+
* .create( {
|
|
141
|
+
* sidebar: {
|
|
142
|
+
* // Sidebar feature configuration.
|
|
143
|
+
* }
|
|
144
|
+
* } )
|
|
145
|
+
* .then( ... )
|
|
146
|
+
* .catch( ... );
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
|
150
|
+
*/
|
|
151
|
+
export interface SidebarConfig {
|
|
152
|
+
/**
|
|
153
|
+
* DOM element into which the sidebar will be inserted.
|
|
154
|
+
*/
|
|
155
|
+
container?: HTMLElement;
|
|
156
|
+
/**
|
|
157
|
+
* Changes how the annotations are positioned inside the sidebar.
|
|
158
|
+
*
|
|
159
|
+
* If set to `true`, the top annotation in the sidebar will never be scrolled
|
|
160
|
+
* above the top edge of the sidebar (which would make it hidden).
|
|
161
|
+
*
|
|
162
|
+
* On the other hand, with this setting enabled, if there is not enough space,
|
|
163
|
+
* annotations will not be positioned exactly next to their linked elements
|
|
164
|
+
* when selected.
|
|
165
|
+
*
|
|
166
|
+
* @default false
|
|
167
|
+
*/
|
|
168
|
+
preventScrollOutOfView?: boolean;
|
|
169
|
+
}
|
|
170
|
+
export type CommentThreadConfig = Required<Omit<CommentsConfig, 'CommentThreadView'>>;
|
|
171
|
+
export type CommentViewConfig = Required<Pick<CommentsConfig, 'maxCommentCharsWhenCollapsed' | 'formatDateTime' | 'editorConfig'>> & {
|
|
172
|
+
/**
|
|
173
|
+
* Defines whether the comment is created by the system.
|
|
174
|
+
*/
|
|
175
|
+
isSystemComment?: boolean;
|
|
176
|
+
};
|
package/src/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
export { default as Comments } from './comments';
|
|
6
|
-
export { default as CommentsOnly } from './commentsonly';
|
|
7
|
-
export { default as CommentsUI } from './comments/commentsui';
|
|
8
|
-
export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
|
|
9
|
-
export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
|
|
10
|
-
export { default as Annotations } from './annotations/annotations';
|
|
11
|
-
export { default as AnnotationsUIs } from './annotations/annotationsuis';
|
|
12
|
-
export { default as EditorAnnotations } from './annotations/editorannotations';
|
|
13
|
-
export { default as InlineAnnotations } from './annotations/inlineannotations';
|
|
14
|
-
export { default as WideSidebar } from './annotations/widesidebar';
|
|
15
|
-
export { default as NarrowSidebar } from './annotations/narrowsidebar';
|
|
16
|
-
export { default as AnnotationView } from './annotations/view/annotationview';
|
|
17
|
-
export { default as BaseCommentView } from './comments/ui/view/basecommentview';
|
|
18
|
-
export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
|
|
19
|
-
export { default as CommentsListView } from './comments/ui/view/commentslistview';
|
|
20
|
-
export { default as CommentView } from './comments/ui/view/commentview';
|
|
21
|
-
export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
|
|
22
|
-
export type { CommentsConfig, SidebarConfig } from './config';
|
|
23
|
-
export type { default as CommentsEditing } from './comments/commentsediting';
|
|
24
|
-
import './augmentation';
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
export { default as Comments } from './comments';
|
|
6
|
+
export { default as CommentsOnly } from './commentsonly';
|
|
7
|
+
export { default as CommentsUI } from './comments/commentsui';
|
|
8
|
+
export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
|
|
9
|
+
export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
|
|
10
|
+
export { default as Annotations } from './annotations/annotations';
|
|
11
|
+
export { default as AnnotationsUIs } from './annotations/annotationsuis';
|
|
12
|
+
export { default as EditorAnnotations } from './annotations/editorannotations';
|
|
13
|
+
export { default as InlineAnnotations } from './annotations/inlineannotations';
|
|
14
|
+
export { default as WideSidebar } from './annotations/widesidebar';
|
|
15
|
+
export { default as NarrowSidebar } from './annotations/narrowsidebar';
|
|
16
|
+
export { default as AnnotationView } from './annotations/view/annotationview';
|
|
17
|
+
export { default as BaseCommentView } from './comments/ui/view/basecommentview';
|
|
18
|
+
export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
|
|
19
|
+
export { default as CommentsListView } from './comments/ui/view/commentslistview';
|
|
20
|
+
export { default as CommentView } from './comments/ui/view/commentview';
|
|
21
|
+
export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
|
|
22
|
+
export type { CommentsConfig, SidebarConfig } from './config';
|
|
23
|
+
export type { default as CommentsEditing } from './comments/commentsediting';
|
|
24
|
+
import './augmentation';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/utils/common-translations
|
|
7
|
-
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2d7dad,_0x4fcbf7,_0x56e142){const t=_0x2d7dad['t'];switch(_0x4fcbf7){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20comment.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20comment.','id':'ENTER_COMMENT_ANNOUNCEMENT'});case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x56e142);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x56e142);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56e142);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56e142);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Creates mutation observer to observe changes that might cause height change.
|
|
7
|
-
*
|
|
8
|
-
* @param callback Callback executed after throttled mutations.
|
|
9
|
-
*/
|
|
10
|
-
export default function createMutationObserver(callback: (...args: Array<any>) => unknown): MutationObserver;
|
|
11
|
-
export interface MutationObserver {
|
|
12
|
-
attach: (element: Node) => void;
|
|
13
|
-
detach: () => void;
|
|
14
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Creates mutation observer to observe changes that might cause height change.
|
|
7
|
+
*
|
|
8
|
+
* @param callback Callback executed after throttled mutations.
|
|
9
|
+
*/
|
|
10
|
+
export default function createMutationObserver(callback: (...args: Array<any>) => unknown): MutationObserver;
|
|
11
|
+
export interface MutationObserver {
|
|
12
|
+
attach: (element: Node) => void;
|
|
13
|
+
detach: () => void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5adc=['class','attributes','observe','disconnect','type'];(function(_0x35d041,_0x5adc7b){const _0x14d3ad=function(_0xd86414){while(--_0xd86414){_0x35d041['push'](_0x35d041['shift']());}};_0x14d3ad(++_0x5adc7b);}(_0x5adc,0x146));const _0x14d3=function(_0x35d041,_0x5adc7b){_0x35d041=_0x35d041-0x0;let _0x14d3ad=_0x5adc[_0x35d041];return _0x14d3ad;};import{throttle as _0x3e8be4}from'lodash-es';export default function Dt(_0x57097){const _0x56af31=_0x3e8be4(_0x57097,0x1e),_0x47b1ab=new MutationObserver(_0x41b608=>{for(const _0x40eef9 of _0x41b608)(_0x14d3('0x0')==_0x40eef9[_0x14d3('0x3')]&&_0x14d3('0x4')==_0x40eef9['attributeName']||'childList'==_0x40eef9[_0x14d3('0x3')]||'characterData'==_0x40eef9[_0x14d3('0x3')])&&_0x56af31();});return{'attach'(_0x38c83b){_0x47b1ab[_0x14d3('0x1')](_0x38c83b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x47b1ab[_0x14d3('0x2')](),_0x56af31['cancel']();}};}
|
package/theme/comment.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--ck-color-comment-background: hsl(210, 52%, 97%);
|
|
12
12
|
--ck-color-comment-separator: hsl(210, 52%, 87%);
|
|
13
|
-
--ck-color-comment-remove-background:
|
|
13
|
+
--ck-color-comment-remove-background: var(--ck-color-light-red);
|
|
14
14
|
--ck-color-comment-input-background: var(--ck-color-comment-background);
|
|
15
15
|
}
|
|
16
16
|
|