@ckeditor/ckeditor5-comments 39.0.1 → 40.0.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 +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/comments.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/af.po +1 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/bs.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es-co.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fa.po +10 -9
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +4 -3
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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 +1129 -1105
- 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 -112
- 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 -117
- 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/annotation-inline.css +2 -1
- package/theme/annotation.css +2 -3
- package/theme/comment.css +39 -38
- package/theme/commentinput.css +2 -1
- package/theme/commentmarker.css +7 -6
- package/theme/commentsarchive.css +2 -1
- package/theme/commentthread.css +68 -57
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +4 -3
- package/theme/sidebar.css +13 -12
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c84=['requires'];(function(_0x4db78a,_0x2c844e){var _0x3d8ade=function(_0x339f7d){while(--_0x339f7d){_0x4db78a['push'](_0x4db78a['shift']());}};_0x3d8ade(++_0x2c844e);}(_0x2c84,0x1aa));var _0x3d8a=function(_0x4db78a,_0x2c844e){_0x4db78a=_0x4db78a-0x0;var _0x3d8ade=_0x2c84[_0x4db78a];return _0x3d8ade;};import{Plugin as _0x14ea1b}from'ckeditor5/src/core';import _0x395111 from'./comments/commentsrepository';import _0x2be9ac from'./comments/commentsediting';import _0xd1af8b from'./comments/commentsui';import _0x1c1ceb from'./commentsonly';import _0x387bcd from'./annotations/widesidebar';import _0x1c902d from'./annotations/narrowsidebar';import _0x34b33f from'./annotations/inlineannotations';import _0x5591c7 from'./comments/commentsarchiveui';import _0x1a49be from'./comments/commentsarchive';export default class f extends _0x14ea1b{static get[_0x3d8a('0x0')](){return[_0x395111,_0x2be9ac,_0xd1af8b,_0x1a49be,_0x5591c7,_0x1c1ceb,_0x387bcd,_0x1c902d,_0x34b33f];}static get['pluginName'](){return'Comments';}}
|
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 _0x1955=['isEnabled','config','pluginName','listenTo','has','get','stop','DragDrop','requires','affectsData','editing','afterInit','document','_disableCommentsOnlyMode','view','commentsOnly','editor','forceDisabled','highest','set','commands','commentsOnlyMode','addCommentThread','plugins','clearForceDisabled','delete'];(function(_0x23fd9b,_0x19551b){const _0x3d56c4=function(_0x59da0c){while(--_0x59da0c){_0x23fd9b['push'](_0x23fd9b['shift']());}};_0x3d56c4(++_0x19551b);}(_0x1955,0xfb));const _0x3d56=function(_0x23fd9b,_0x19551b){_0x23fd9b=_0x23fd9b-0x0;let _0x3d56c4=_0x1955[_0x23fd9b];return _0x3d56c4;};import{Plugin as _0x323820}from'ckeditor5/src/core';import _0x5b799e from'./comments/commentsediting';export default class n extends _0x323820{static get[_0x3d56('0xb')](){return'CommentsOnly';}static get[_0x3d56('0x11')](){return[_0x5b799e];}constructor(_0x4a01f8){super(_0x4a01f8),this[_0x3d56('0x2')](_0x3d56('0x9'),!0x1),this['on']('change:isEnabled',(_0x498e24,_0x1611ec,_0x236ed2)=>{_0x236ed2?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x3d56('0x14')](){!this[_0x3d56('0x9')]&&this[_0x3d56('0x19')][_0x3d56('0xa')][_0x3d56('0xe')](_0x3d56('0x18'))&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x499c42,_0x58b504]of this[_0x3d56('0x19')][_0x3d56('0x3')])_0x58b504[_0x3d56('0x12')]&&'addCommentThread'!==_0x499c42&&_0x58b504[_0x3d56('0x0')](_0x3d56('0x4'));this[_0x3d56('0x19')][_0x3d56('0x6')][_0x3d56('0xd')]('DragDrop')&&this['editor']['plugins']['get'](_0x3d56('0x10'))['forceDisabled'](_0x3d56('0x4'));const _0x19aa1d=this[_0x3d56('0x19')][_0x3d56('0x13')][_0x3d56('0x17')][_0x3d56('0x15')];this[_0x3d56('0xc')](_0x19aa1d,'cut',_0x289243=>_0x289243['stop'](),{'priority':_0x3d56('0x1')}),this[_0x3d56('0xc')](_0x19aa1d,'clipboardInput',_0x3e7d72=>_0x3e7d72[_0x3d56('0xf')](),{'priority':'highest'}),this['listenTo'](_0x19aa1d,_0x3d56('0x8'),_0x48f4bc=>_0x48f4bc[_0x3d56('0xf')](),{'priority':_0x3d56('0x1')});}[_0x3d56('0x16')](){for(const [_0x4cd4db,_0x3e903f]of this[_0x3d56('0x19')][_0x3d56('0x3')])_0x3e903f[_0x3d56('0x12')]&&_0x3d56('0x5')!==_0x4cd4db&&_0x3e903f[_0x3d56('0x7')](_0x3d56('0x4'));this['stopListening'](this[_0x3d56('0x19')]['editing']['view']['document']);}}
|
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(_0x12f146,_0x1d9d8d,_0x17a16f){const t=_0x12f146['t'];switch(_0x1d9d8d){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'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x17a16f);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'},_0x17a16f);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'},_0x17a16f);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'},_0x17a16f);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 _0x355b=['observe','class','characterData','attributes','cancel','attributeName','disconnect','type'];(function(_0xc9c8d8,_0x355bcf){const _0x43cf04=function(_0x851ca9){while(--_0x851ca9){_0xc9c8d8['push'](_0xc9c8d8['shift']());}};_0x43cf04(++_0x355bcf);}(_0x355b,0x98));const _0x43cf=function(_0xc9c8d8,_0x355bcf){_0xc9c8d8=_0xc9c8d8-0x0;let _0x43cf04=_0x355b[_0xc9c8d8];return _0x43cf04;};import{throttle as _0x4f61e7}from'lodash-es';export default function Dt(_0x1467ca){const _0x4ae1f8=_0x4f61e7(_0x1467ca,0x1e),_0x4e228a=new MutationObserver(_0x41cc5d=>{for(const _0x47e9d9 of _0x41cc5d)(_0x43cf('0x3')==_0x47e9d9[_0x43cf('0x7')]&&_0x43cf('0x1')==_0x47e9d9[_0x43cf('0x5')]||'childList'==_0x47e9d9['type']||_0x43cf('0x2')==_0x47e9d9[_0x43cf('0x7')])&&_0x4ae1f8();});return{'attach'(_0x4c5b65){_0x4e228a[_0x43cf('0x0')](_0x4c5b65,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4e228a[_0x43cf('0x6')](),_0x4ae1f8[_0x43cf('0x4')]();}};}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
/* Common styles for inline comment and inline suggestion. */
|
package/theme/annotation.css
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
/* Common styles for single comment and single suggestion. */
|
|
@@ -26,9 +27,7 @@
|
|
|
26
27
|
transition: background-color 300ms ease;
|
|
27
28
|
padding: var(--ck-spacing-standard);
|
|
28
29
|
white-space: normal;
|
|
29
|
-
}
|
|
30
30
|
|
|
31
|
-
.ck .ck-annotation {
|
|
32
31
|
& .ck-button {
|
|
33
32
|
/* Overwrite CK5 button default styles. */
|
|
34
33
|
background-color: transparent;
|