@ckeditor/ckeditor5-collaboration-core 33.0.0 → 34.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.
Files changed (58) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +3 -0
  3. package/lang/contexts.json +4 -1
  4. package/lang/translations/az.po +33 -0
  5. package/lang/translations/bs.po +12 -0
  6. package/lang/translations/cs.po +12 -0
  7. package/lang/translations/da.po +12 -0
  8. package/lang/translations/de-ch.po +12 -0
  9. package/lang/translations/de.po +12 -0
  10. package/lang/translations/el.po +12 -0
  11. package/lang/translations/en-au.po +12 -0
  12. package/lang/translations/en.po +12 -0
  13. package/lang/translations/es.po +12 -0
  14. package/lang/translations/et.po +12 -0
  15. package/lang/translations/fa.po +12 -0
  16. package/lang/translations/fr.po +12 -0
  17. package/lang/translations/gl.po +12 -0
  18. package/lang/translations/hi.po +12 -0
  19. package/lang/translations/hr.po +12 -0
  20. package/lang/translations/hu.po +12 -0
  21. package/lang/translations/id.po +33 -0
  22. package/lang/translations/it.po +12 -0
  23. package/lang/translations/ja.po +12 -0
  24. package/lang/translations/jv.po +33 -0
  25. package/lang/translations/ko.po +12 -0
  26. package/lang/translations/nl.po +12 -0
  27. package/lang/translations/no.po +12 -0
  28. package/lang/translations/pl.po +12 -0
  29. package/lang/translations/pt-br.po +12 -0
  30. package/lang/translations/ro.po +12 -0
  31. package/lang/translations/ru.po +12 -0
  32. package/lang/translations/sk.po +12 -0
  33. package/lang/translations/sr-latn.po +12 -0
  34. package/lang/translations/sr.po +12 -0
  35. package/lang/translations/tk.po +12 -0
  36. package/lang/translations/tr.po +12 -0
  37. package/lang/translations/ug.po +12 -0
  38. package/lang/translations/uk.po +12 -0
  39. package/lang/translations/zh-cn.po +12 -0
  40. package/lang/translations/zh.po +12 -0
  41. package/package.json +2 -2
  42. package/src/index.js +1 -1
  43. package/src/permissions.js +1 -1
  44. package/src/suggestionstyles.js +23 -0
  45. package/src/users/view/userview.js +1 -1
  46. package/src/users.js +1 -1
  47. package/src/utils/confirmmixin.js +23 -0
  48. package/src/utils/confirmview.js +23 -0
  49. package/src/utils/getdatetimeformatter.js +1 -1
  50. package/src/utils/getmarkerdomelement.js +1 -1
  51. package/src/utils/trim-html.js +1 -1
  52. package/theme/integrations/horizontalline.css +15 -0
  53. package/theme/integrations/image.css +55 -0
  54. package/theme/integrations/mediaembed.css +19 -0
  55. package/theme/integrations/pagebreak.css +15 -0
  56. package/theme/integrations/table.css +147 -0
  57. package/theme/suggestion.css +87 -0
  58. package/theme/suggestionmarker.css +161 -0
@@ -19,3 +19,15 @@ msgstr ""
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
21
21
  msgstr "匿名用户"
22
+
23
+ msgctxt "The label for confirming an action."
24
+ msgid "Yes"
25
+ msgstr "确定"
26
+
27
+ msgctxt "The label for rejecting an action."
28
+ msgid "No"
29
+ msgstr "取消"
30
+
31
+ msgctxt "The label for confirming a dangerous action."
32
+ msgid "Are you sure?"
33
+ msgstr "你确定吗?"
@@ -19,3 +19,15 @@ msgstr ""
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
21
21
  msgstr "匿名者"
22
+
23
+ msgctxt "The label for confirming an action."
24
+ msgid "Yes"
25
+ msgstr "好"
26
+
27
+ msgctxt "The label for rejecting an action."
28
+ msgid "No"
29
+ msgstr "先不要"
30
+
31
+ msgctxt "The label for confirming a dangerous action."
32
+ msgid "Are you sure?"
33
+ msgstr "確定做此操作?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "33.0.0",
3
+ "version": "34.0.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "main": "src/index.js",
30
30
  "dependencies": {
31
- "ckeditor5": "^33.0.0",
31
+ "ckeditor5": "^34.0.0",
32
32
  "date-fns": "^2.17.0"
33
33
  }
34
34
  }
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';
23
+ export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export*from'./suggestionstyles';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa514=['context','editors','pluginName','has','get','includes','setPermissions','plugins','setAdminPermissions','noPermissions','document:write','config','forceDisabled','clearForceDisabled','commands','switchReadOnly','isReadOnly','isEnabled','Permissions','collaboration.channelId','CommentsRepository','CommentsOnly','permissions-set-permissions-invalid-channel-id'];(function(_0x1c3437,_0xa51416){const _0x210bc7=function(_0x374eaf){while(--_0x374eaf){_0x1c3437['push'](_0x1c3437['shift']());}};_0x210bc7(++_0xa51416);}(_0xa514,0xda));const _0x210b=function(_0x1c3437,_0xa51416){_0x1c3437=_0x1c3437-0x0;let _0x210bc7=_0xa514[_0x1c3437];return _0x210bc7;};import{ContextPlugin as _0x27e6f6,Editor as _0xfd55c9}from'ckeditor5/src/core';import{CKEditorError as _0xa88513}from'ckeditor5/src/utils';export default class e extends _0x27e6f6{static get[_0x210b('0xe')](){return _0x210b('0x7');}[_0x210b('0x12')](_0x316861,_0x821c4f){let _0x3fb2d1;if(_0x821c4f||(_0x821c4f=this[_0x210b('0xc')][_0x210b('0x0')][_0x210b('0x10')]('collaboration.channelId')),this[_0x210b('0xc')][_0x210b('0x0')][_0x210b('0x10')]('collaboration.channelId')==_0x821c4f?_0x3fb2d1=this['context']:this['context'][_0x210b('0xd')]&&(_0x3fb2d1=this[_0x210b('0xc')]['editors']['find'](_0xb60c62=>_0xb60c62[_0x210b('0x0')][_0x210b('0x10')](_0x210b('0x8'))==_0x821c4f)),!_0x3fb2d1)throw new _0xa88513(_0x210b('0xb'),null);const _0x121b89=_0x3fb2d1[_0x210b('0x13')],_0x30a1f9=_0x3fb2d1 instanceof _0xfd55c9,_0x1fb88f=_0x121b89[_0x210b('0xf')]('CommentsRepository')&&_0x121b89[_0x210b('0x10')](_0x210b('0x9')),_0x29cca6=_0x121b89[_0x210b('0xf')](_0x210b('0xa'))&&_0x121b89[_0x210b('0x10')](_0x210b('0xa')),_0x42ae38=_0x316861[_0x210b('0x11')](_0x210b('0x16')),_0x164387=_0x316861[_0x210b('0x11')]('comment:admin'),_0x1f82df=_0x316861[_0x210b('0x11')]('comment:write')||_0x164387;if(_0x29cca6&&(_0x29cca6[_0x210b('0x6')]=!_0x42ae38&&_0x1f82df),_0x30a1f9&&(_0x3fb2d1[_0x210b('0x5')]=!(_0x42ae38||_0x1f82df&&_0x1fb88f)),_0x1fb88f){_0x1fb88f[_0x210b('0x4')](!_0x1f82df,_0x821c4f),_0x1fb88f[_0x210b('0x14')](_0x164387,_0x821c4f);const _0x12728d=_0x30a1f9&&_0x3fb2d1[_0x210b('0x3')][_0x210b('0x10')]('addCommentThread');_0x12728d&&(_0x1f82df?_0x12728d[_0x210b('0x2')](_0x210b('0x15')):_0x12728d[_0x210b('0x1')](_0x210b('0x15')));}}}
23
+ const _0x6685=['commands','isEnabled','find','noPermissions','document:write','config','Permissions','has','setPermissions','enableReadOnlyMode','get','addCommentThread','comment:write','setAdminPermissions','CommentsOnly','CommentsRepository','disableReadOnlyMode','plugins','includes','editors','comment:admin','switchReadOnly','permissions-set-permissions-invalid-channel-id','context','pluginName','collaboration.channelId'];(function(_0x2bd1fd,_0x668533){const _0x1e3616=function(_0x41b40f){while(--_0x41b40f){_0x2bd1fd['push'](_0x2bd1fd['shift']());}};_0x1e3616(++_0x668533);}(_0x6685,0x11c));const _0x1e36=function(_0x2bd1fd,_0x668533){_0x2bd1fd=_0x2bd1fd-0x0;let _0x1e3616=_0x6685[_0x2bd1fd];return _0x1e3616;};import{ContextPlugin as _0x341a41,Editor as _0x85f719}from'ckeditor5/src/core';import{CKEditorError as _0x96d7d3}from'ckeditor5/src/utils';export default class i extends _0x341a41{static get[_0x1e36('0x0')](){return _0x1e36('0x8');}[_0x1e36('0xa')](_0x1cfa9f,_0x1c148b){let _0x22dfc0;if(_0x1c148b||(_0x1c148b=this[_0x1e36('0x19')][_0x1e36('0x7')][_0x1e36('0xc')](_0x1e36('0x1'))),this['context'][_0x1e36('0x7')]['get'](_0x1e36('0x1'))==_0x1c148b?_0x22dfc0=this['context']:this[_0x1e36('0x19')][_0x1e36('0x15')]&&(_0x22dfc0=this[_0x1e36('0x19')][_0x1e36('0x15')][_0x1e36('0x4')](_0x4676fb=>_0x4676fb[_0x1e36('0x7')]['get']('collaboration.channelId')==_0x1c148b)),!_0x22dfc0)throw new _0x96d7d3(_0x1e36('0x18'),null);const _0x4a50af=_0x22dfc0[_0x1e36('0x13')],_0x3237be=_0x22dfc0 instanceof _0x85f719,_0x455a06=_0x4a50af['has'](_0x1e36('0x11'))&&_0x4a50af['get']('CommentsRepository'),_0x9f6885=_0x4a50af[_0x1e36('0x9')](_0x1e36('0x10'))&&_0x4a50af[_0x1e36('0xc')](_0x1e36('0x10')),_0x344db4=_0x1cfa9f['includes'](_0x1e36('0x6')),_0x3be30a=_0x1cfa9f[_0x1e36('0x14')](_0x1e36('0x16')),_0x8718d0=_0x1cfa9f['includes'](_0x1e36('0xe'))||_0x3be30a;(_0x9f6885&&(_0x9f6885[_0x1e36('0x3')]=!_0x344db4&&_0x8718d0),_0x3237be)&&(!(_0x344db4||_0x8718d0&&_0x455a06)?_0x22dfc0[_0x1e36('0xb')]('no-permissions'):_0x22dfc0[_0x1e36('0x12')]('no-permissions'));if(_0x455a06){_0x455a06[_0x1e36('0x17')](!_0x8718d0,_0x1c148b),_0x455a06[_0x1e36('0xf')](_0x3be30a,_0x1c148b);const _0x13562f=_0x3237be&&_0x22dfc0[_0x1e36('0x2')][_0x1e36('0xc')](_0x1e36('0xd'));_0x13562f&&(_0x8718d0?_0x13562f['clearForceDisabled'](_0x1e36('0x5')):_0x13562f['forceDisabled']('noPermissions'));}}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x408e=['setTemplate','push','ck\x20ck-user__name','div','isAnonymous','initials','name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','ck-user__anonymous','avatar','url(\x27','ck-user__avatar','ck-user'];(function(_0x2696ca,_0x408ecb){const _0x503c21=function(_0x596b6a){while(--_0x596b6a){_0x2696ca['push'](_0x2696ca['shift']());}};_0x503c21(++_0x408ecb);}(_0x408e,0x106));const _0x503c=function(_0x2696ca,_0x408ecb){_0x2696ca=_0x2696ca-0x0;let _0x503c21=_0x408e[_0x2696ca];return _0x503c21;};import{View as _0x292c73}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x292c73{constructor(_0x362150,_0x539aec){super(_0x362150),this['name']=_0x539aec[_0x503c('0xa')];const _0x27a56b=['ck',_0x503c('0xc')];_0x539aec[_0x503c('0x8')]&&_0x27a56b[_0x503c('0x5')](_0x503c('0xd')),_0x539aec['avatar']&&_0x27a56b['push'](_0x503c('0x2')),this[_0x503c('0x4')]({'tag':_0x503c('0x7'),'attributes':{'class':['ck',_0x503c('0x3')],'data-user-id':_0x539aec['id']},'children':[{'tag':_0x503c('0x7'),'attributes':{'class':_0x27a56b,'style':{'background-image':_0x539aec['avatar']?_0x503c('0x1')+_0x539aec[_0x503c('0x0')]+'\x27)':''}}},{'tag':_0x503c('0x7'),'attributes':{'class':_0x539aec[_0x503c('0x0')]?_0x503c('0xb'):_0x503c('0x6')},'children':[{'text':_0x539aec[_0x503c('0x9')]}]}]});}}
23
+ const _0x1277=['setTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','initials','avatar','div','isAnonymous','name','ck-user__img','url(\x27','ck\x20ck-user__name','push'];(function(_0x32c7d3,_0x12776b){const _0x4da228=function(_0x562784){while(--_0x562784){_0x32c7d3['push'](_0x32c7d3['shift']());}};_0x4da228(++_0x12776b);}(_0x1277,0x139));const _0x4da2=function(_0x32c7d3,_0x12776b){_0x32c7d3=_0x32c7d3-0x0;let _0x4da228=_0x1277[_0x32c7d3];return _0x4da228;};import{View as _0x276401}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x276401{constructor(_0x8267ee,_0x4ad246){super(_0x8267ee),this[_0x4da2('0x6')]=_0x4ad246[_0x4da2('0x6')];const _0x250865=['ck',_0x4da2('0x7')];_0x4ad246[_0x4da2('0x5')]&&_0x250865['push']('ck-user__anonymous'),_0x4ad246[_0x4da2('0x3')]&&_0x250865[_0x4da2('0xa')](_0x4da2('0x1')),this[_0x4da2('0xb')]({'tag':_0x4da2('0x4'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x4ad246['id']},'children':[{'tag':_0x4da2('0x4'),'attributes':{'class':_0x250865,'style':{'background-image':_0x4ad246[_0x4da2('0x3')]?_0x4da2('0x8')+_0x4ad246[_0x4da2('0x3')]+'\x27)':''}}},{'tag':_0x4da2('0x4'),'attributes':{'class':_0x4ad246[_0x4da2('0x3')]?_0x4da2('0x0'):_0x4da2('0x9')},'children':[{'text':_0x4ad246[_0x4da2('0x2')]}]}]});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x332a5b}from'ckeditor5/src/core';import{Collection as _0x2a8f78,CKEditorError as _0xdbc054}from'ckeditor5/src/utils';import _0x301be6 from'./permissions';import'../theme/usercolors.css';export default class r extends _0x332a5b{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x301be6];}constructor(_0xa80bb9){super(_0xa80bb9),_0xa80bb9['config']['define']('users.anonymousUserId','anonymous-user'),_0xa80bb9['config']['define']('users.colorsCount',0x8),this['users']=new _0x2a8f78(),this['_locale']=_0xa80bb9['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x220f15=this['context'];this['licenseKey']=_0x220f15['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x102b82;for(const _0x4a670a in _0x220f15){const _0x1612db=_0x220f15[_0x4a670a];if('licenseKeyTrial'===_0x1612db||'licenseKeyInvalid'===_0x1612db||'licenseKeyValid'===_0x1612db||'licenseKeyTrialLimit'==_0x1612db){delete _0x220f15[_0x4a670a],_0x102b82=_0x1612db;break;}}if('licenseKeyInvalid'===_0x102b82)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xdbc054('invalid-license-key',null);if('licenseKeyTrial'===_0x102b82&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit'===_0x102b82)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xdbc054('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x102b82&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x492f3a){if(!(_0x492f3a=Object['assign']({},_0x492f3a,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x492f3a['id'])throw new _0xdbc054('users-add-invalid-id');if(this['users']['has'](_0x492f3a['id']))throw new _0xdbc054('users-add-duplicated-id',null,{'id':_0x492f3a['id']});_0x492f3a['name']=function(_0xd16cf4,_0x25f682=''){const {t:t}=_0xd16cf4;return''==(_0x25f682=_0x25f682['trim']())?t('Anonymous'):_0x25f682;}(this['_locale'],_0x492f3a['name']);const _0x55859e=new l(_0x492f3a);return this['users']['add'](_0x55859e),_0x55859e;}['getUser'](_0x41e01a){return this['users']['get'](_0x41e01a);}['useAnonymousUser'](){const _0x25165d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x25165d);}['defineMe'](_0x427f64){if(this['_myId'])throw new _0xdbc054('users-me-already-defined',null);if(!this['getUser'](_0x427f64))throw new _0xdbc054('users-me-missing-user',null);this['_myId']=_0x427f64;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x154849=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x154849&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x3a79e4=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3a79e4,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x1f1b70){this['id']=_0x1f1b70['id'],this['color']=_0x1f1b70['color'],this['name']=_0x1f1b70['name'],this['avatar']=_0x1f1b70['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x13e269=this['name']['split']('\x20');return 0x1===_0x13e269['length']?this['_getInitial'](_0x13e269[0x0]):this['_getInitial'](_0x13e269[0x0])+this['_getInitial'](_0x13e269[_0x13e269['length']-0x1]);}['_getInitial'](_0x5aa585){return _0x5aa585['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x537e79){this['_id']=_0x537e79;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
23
+ import{ContextPlugin as _0x4045d9}from'ckeditor5/src/core';import{Collection as _0x512056,CKEditorError as _0x2193c8}from'ckeditor5/src/utils';import _0x1fedfa from'./permissions';import'../theme/usercolors.css';export default class r extends _0x4045d9{static get['pluginName'](){return'Users';}static get['requires'](){return[_0x1fedfa];}constructor(_0x938ef6){super(_0x938ef6),_0x938ef6['config']['define']('users.anonymousUserId','anonymous-user'),_0x938ef6['config']['define']('users.colorsCount',0x8),this['users']=new _0x512056(),this['_locale']=_0x938ef6['locale'],this['_licenseKeyCheckInterval']=null,this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){const _0x208f65=this['context'];this['licenseKey']=_0x208f65['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3dff7d;for(const _0x463ece in _0x208f65){const _0x14d84a=_0x208f65[_0x463ece];if('licenseKeyTrial'===_0x14d84a||'licenseKeyInvalid'===_0x14d84a||'licenseKeyValid'===_0x14d84a||'licenseKeyTrialLimit'==_0x14d84a){delete _0x208f65[_0x463ece],_0x3dff7d=_0x14d84a;break;}}if('licenseKeyInvalid'===_0x3dff7d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2193c8('invalid-license-key',null);if('licenseKeyTrial'===_0x3dff7d&&console['info']('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit'===_0x3dff7d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2193c8('trial-license-key-reached-limit',null);'licenseKeyValid'===_0x3dff7d&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser'](_0x486222){if(!(_0x486222=Object['assign']({},_0x486222,{'color':this['_getNextColor']()}))['id']||'string'!=typeof _0x486222['id'])throw new _0x2193c8('users-add-invalid-id');if(this['users']['has'](_0x486222['id']))throw new _0x2193c8('users-add-duplicated-id',null,{'id':_0x486222['id']});_0x486222['name']=function(_0x5334b8,_0x192e6d=''){const {t:t}=_0x5334b8;return''==(_0x192e6d=_0x192e6d['trim']())?t('Anonymous'):_0x192e6d;}(this['_locale'],_0x486222['name']);const _0x16a67a=new l(_0x486222);return this['users']['add'](_0x16a67a),_0x16a67a;}['getUser'](_0x10bfef){return this['users']['get'](_0x10bfef);}['useAnonymousUser'](){const _0x5afd7a=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5afd7a);}['defineMe'](_0x5437cd){if(this['_myId'])throw new _0x2193c8('users-me-already-defined',null);if(!this['getUser'](_0x5437cd))throw new _0x2193c8('users-me-missing-user',null);this['_myId']=_0x5437cd;}['getOperationAuthor'](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x308fc0=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x308fc0&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const {t:t}=this['_locale'],_0x22fb22=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x22fb22,'name':t('Anonymous')})['_isAnonymous']=!0x0;}}class l{constructor(_0x3022f4){this['id']=_0x3022f4['id'],this['color']=_0x3022f4['color'],this['name']=_0x3022f4['name'],this['avatar']=_0x3022f4['avatar'],this['_isAnonymous']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['initials'](){const _0x124a87=this['name']['split']('\x20');return 0x1===_0x124a87['length']?this['_getInitial'](_0x124a87[0x0]):this['_getInitial'](_0x124a87[0x0])+this['_getInitial'](_0x124a87[_0x124a87['length']-0x1]);}['_getInitial'](_0x170b8d){return _0x170b8d['charAt'](0x0)['toUpperCase']();}}class u{constructor(_0x37eca7){this['_id']=_0x37eca7;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ var _0x386e=['remove','message','registerChild','deregisterChild','element','confirmView','isConfirm','cancel','set','destroy','submit','_removeConfirm'];(function(_0x27c475,_0x386ef8){var _0x491c22=function(_0x35d51b){while(--_0x35d51b){_0x27c475['push'](_0x27c475['shift']());}};_0x491c22(++_0x386ef8);}(_0x386e,0x10b));var _0x491c=function(_0x27c475,_0x386ef8){_0x27c475=_0x27c475-0x0;var _0x491c22=_0x386e[_0x27c475];return _0x491c22;};import _0xd69ea from'./confirmview';export default{'showConfirm'(_0x1f9d74,_0x4b4dc9){return this[_0x491c('0x2')]=new _0xd69ea(this['locale']),this[_0x491c('0x2')]['render'](),this[_0x491c('0x2')][_0x491c('0xa')]=_0x1f9d74,this['confirmView']['once'](_0x491c('0x4'),()=>{this[_0x491c('0x8')]();}),this['confirmView']['once'](_0x491c('0x7'),()=>{this[_0x491c('0x8')]();}),_0x4b4dc9['appendChild'](this[_0x491c('0x2')][_0x491c('0x1')]),this[_0x491c('0xb')](this['confirmView']),this[_0x491c('0x5')](_0x491c('0x3'),!0x0),new Promise(_0x14430d=>this[_0x491c('0x2')]['on']('submit',_0x14430d));},'cancelConfirm'(){this['isConfirm']&&this['confirmView']['fire']('cancel');},'_removeConfirm'(){this['confirmView'][_0x491c('0x1')][_0x491c('0x9')](),this[_0x491c('0x0')](this[_0x491c('0x2')]),this[_0x491c('0x3')]=!0x1,this[_0x491c('0x2')][_0x491c('0x6')](),delete this[_0x491c('0x2')];}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{View as _0x47e0e3,ButtonView as _0x4d672c}from'ckeditor5/src/ui';import{icons as _0xd1ca98}from'ckeditor5/src/core';export default class h extends _0x47e0e3{constructor(_0x3a909b){super(_0x3a909b);const {t:t}=_0x3a909b,_0x45cf4d=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3a909b,t('Yes'),_0xd1ca98['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3a909b,t('No'),_0xd1ca98['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x45cf4d['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x453edb,_0x450afb,_0x2ad643,_0x38531c){const _0x433a06=new _0x4d672c(_0x453edb);return _0x433a06['label']=_0x450afb,_0x433a06['icon']=_0x2ad643,_0x433a06['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x38531c}}),_0x433a06['on']('execute',()=>this['fire'](_0x38531c)),_0x433a06;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22dc=['MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma','string','invalid-date-time-format','\x27Yesterday\x27\x20hh:mma'];(function(_0x2146be,_0x22dc9c){const _0x5e6b3a=function(_0x1aa8f1){while(--_0x1aa8f1){_0x2146be['push'](_0x2146be['shift']());}};_0x5e6b3a(++_0x22dc9c);}(_0x22dc,0xef));const _0x5e6b=function(_0x2146be,_0x22dc9c){_0x2146be=_0x2146be-0x0;let _0x5e6b3a=_0x22dc[_0x2146be];return _0x5e6b3a;};import _0x1ba023 from'date-fns/format';import _0x4a4cb5 from'date-fns/parseISO';import _0x10b9b3 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x28b488}from'ckeditor5/src/utils';export default function d(_0x49df54={}){if(void 0x0!==_0x49df54[_0x5e6b('0x1')]&&'function'!=typeof _0x49df54[_0x5e6b('0x1')])throw new _0x28b488(_0x5e6b('0x4'));return _0x2d75f8=>{const _0x3b0336=_0x5e6b('0x3')==typeof _0x2d75f8?_0x4a4cb5(_0x2d75f8):_0x2d75f8,_0x420892=new Date(),_0x548786=_0x10b9b3(_0x420892,_0x3b0336);return _0x49df54[_0x5e6b('0x1')]?_0x49df54[_0x5e6b('0x1')](_0x3b0336):_0x1ba023(_0x3b0336,0x0===_0x548786?_0x5e6b('0x2'):0x1===_0x548786?_0x5e6b('0x5'):_0x548786<0x7?_0x5e6b('0x0'):_0x5e6b('0x6'));};}
23
+ const _0x4ccd=['\x27Last\x27\x20EEEE\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','function','string'];(function(_0x4056a1,_0x4ccdd1){const _0x1445fe=function(_0x32dcf7){while(--_0x32dcf7){_0x4056a1['push'](_0x4056a1['shift']());}};_0x1445fe(++_0x4ccdd1);}(_0x4ccd,0x172));const _0x1445=function(_0x4056a1,_0x4ccdd1){_0x4056a1=_0x4056a1-0x0;let _0x1445fe=_0x4ccd[_0x4056a1];return _0x1445fe;};import _0x5ce89b from'date-fns/format';import _0x45803c from'date-fns/parseISO';import _0x555273 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1dc81f}from'ckeditor5/src/utils';export default function p(_0x330cbc={}){if(void 0x0!==_0x330cbc['dateTimeFormat']&&_0x1445('0x6')!=typeof _0x330cbc[_0x1445('0x3')])throw new _0x1dc81f('invalid-date-time-format');return _0x2cbe86=>{const _0x2b380a=_0x1445('0x0')==typeof _0x2cbe86?_0x45803c(_0x2cbe86):_0x2cbe86,_0x282213=new Date(),_0x5ab117=_0x555273(_0x282213,_0x2b380a);return _0x330cbc[_0x1445('0x3')]?_0x330cbc[_0x1445('0x3')](_0x2b380a):_0x5ce89b(_0x2b380a,0x0===_0x5ab117?_0x1445('0x2'):0x1===_0x5ab117?_0x1445('0x4'):_0x5ab117<0x7?_0x1445('0x1'):_0x1445('0x5'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a25=['values','view','name','markerNameToElements','domConverter','mapViewToDom','mapper'];(function(_0x477661,_0x1a254c){const _0x43198a=function(_0x57dee9){while(--_0x57dee9){_0x477661['push'](_0x477661['shift']());}};_0x43198a(++_0x1a254c);}(_0x1a25,0x190));const _0x4319=function(_0x477661,_0x1a254c){_0x477661=_0x477661-0x0;let _0x43198a=_0x1a25[_0x477661];return _0x43198a;};import{first as _0x34b17b}from'ckeditor5/src/utils';export default function p(_0x34a6ab,_0x3dd0b9){const _0x37fe0e=_0x34a6ab[_0x4319('0x5')][_0x4319('0x2')](_0x3dd0b9[_0x4319('0x1')]),_0x4ba223=_0x34b17b(_0x37fe0e[_0x4319('0x6')]());return _0x34a6ab[_0x4319('0x0')][_0x4319('0x3')][_0x4319('0x4')](_0x4ba223);}
23
+ const _0x7439=['mapViewToDom','mapper','view','domConverter','markerNameToElements'];(function(_0x518cb1,_0x743966){const _0x285160=function(_0x33e1cb){while(--_0x33e1cb){_0x518cb1['push'](_0x518cb1['shift']());}};_0x285160(++_0x743966);}(_0x7439,0x1ba));const _0x2851=function(_0x518cb1,_0x743966){_0x518cb1=_0x518cb1-0x0;let _0x285160=_0x7439[_0x518cb1];return _0x285160;};import{first as _0x40b200}from'ckeditor5/src/utils';export default function x(_0x279a39,_0x127fd5){const _0x4be2a7=_0x279a39[_0x2851('0x4')][_0x2851('0x2')](_0x127fd5['name']),_0x10a6ae=_0x40b200(_0x4be2a7['values']());return _0x279a39[_0x2851('0x0')][_0x2851('0x1')][_0x2851('0x3')](_0x10a6ae);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3478=['split','join','push','match','replace','startsWith','slice','pop','length'];(function(_0x150517,_0x3478c2){const _0x10cc6e=function(_0x1fa8b4){while(--_0x1fa8b4){_0x150517['push'](_0x150517['shift']());}};_0x10cc6e(++_0x3478c2);}(_0x3478,0xbc));const _0x10cc=function(_0x150517,_0x3478c2){_0x150517=_0x150517-0x0;let _0x10cc6e=_0x3478[_0x150517];return _0x10cc6e;};export default function g(_0x4218a5,{limit:_0x49ccb7,suffix:_0x36173a='...'}){const _0x54752f=[];let _0x4f4c46=0x0;const _0x55da35=_0x4218a5[_0x10cc('0x5')](/</g,'\x0a<')[_0x10cc('0x5')](/>/g,'>\x0a')[_0x10cc('0x5')](/^\n/g,'')[_0x10cc('0x5')](/\n$/g,'')[_0x10cc('0x1')]('\x0a');for(let _0x3ccf91=0x0;_0x3ccf91<_0x55da35[_0x10cc('0x0')];_0x3ccf91++){let _0x4a8c26=_0x55da35[_0x3ccf91];const _0x50e08c=x(_0x4a8c26);if(_0x4a8c26[_0x10cc('0x6')]('<')){if(_0x4f4c46>=_0x49ccb7){const _0x1bbbdf=_0x4a8c26[_0x10cc('0x4')](/[a-zA-Z]+/)[0x0];_0x4a8c26['startsWith']('</')?(_0x54752f[_0x10cc('0x0')]&&(_0x4a8c26=''),_0x54752f[_0x10cc('0x8')]()):(_0x54752f['push'](_0x1bbbdf),_0x4a8c26='');}}else{if(_0x4f4c46>=_0x49ccb7)_0x4a8c26='';else{if(_0x4f4c46+_0x50e08c[_0x10cc('0x0')]>=_0x49ccb7){let _0x233d8b=_0x49ccb7-_0x4f4c46;if('\x20'===_0x50e08c[_0x233d8b-0x1])_0x233d8b--;else{const _0x1096d3=_0x50e08c[_0x10cc('0x7')](_0x233d8b)['indexOf']('\x20');-0x1!==_0x1096d3?_0x233d8b+=_0x1096d3:_0x233d8b=_0x4a8c26['length'];}_0x4a8c26=_0x50e08c[_0x10cc('0x7')](0x0,_0x233d8b)[_0x10cc('0x2')]('')+_0x36173a,_0x4f4c46=_0x49ccb7;}else _0x4f4c46+=_0x50e08c[_0x10cc('0x0')];}}_0x55da35[_0x3ccf91]=_0x4a8c26;}return _0x55da35[_0x10cc('0x2')]('\x0a')[_0x10cc('0x5')](/\n/g,'');}function x(_0x43c4ab){const _0xc4736d=[];for(let _0x4ebcf3=0x0;_0x4ebcf3<_0x43c4ab[_0x10cc('0x0')];_0x4ebcf3++){const _0x2d47ea=_0x43c4ab['substring'](_0x4ebcf3)[_0x10cc('0x4')](/^&[a-z0-9#]+;/);if(_0x2d47ea){const _0x2fd283=_0x2d47ea[0x0];_0xc4736d[_0x10cc('0x3')](_0x2fd283),_0x4ebcf3+=_0x2fd283['length']-0x1;}else _0xc4736d[_0x10cc('0x3')](_0x43c4ab[_0x4ebcf3]);}return _0xc4736d;}
23
+ const _0x2af9=['startsWith','slice','join','push','match','...','indexOf','substring','replace','length','pop'];(function(_0x33e546,_0x2af934){const _0x19591f=function(_0x919078){while(--_0x919078){_0x33e546['push'](_0x33e546['shift']());}};_0x19591f(++_0x2af934);}(_0x2af9,0x13e));const _0x1959=function(_0x33e546,_0x2af934){_0x33e546=_0x33e546-0x0;let _0x19591f=_0x2af9[_0x33e546];return _0x19591f;};export default function g(_0x46031c,{limit:_0xae0e9f,suffix:_0x39b9ed=_0x1959('0x6')}){const _0x31f542=[];let _0x5c1498=0x0;const _0x480685=_0x46031c[_0x1959('0x9')](/</g,'\x0a<')[_0x1959('0x9')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x26d66d=0x0;_0x26d66d<_0x480685[_0x1959('0xa')];_0x26d66d++){let _0x34e1b4=_0x480685[_0x26d66d];const _0x821192=z(_0x34e1b4);if(_0x34e1b4[_0x1959('0x1')]('<')){if(_0x5c1498>=_0xae0e9f){const _0x595f4c=_0x34e1b4[_0x1959('0x5')](/[a-zA-Z]+/)[0x0];_0x34e1b4[_0x1959('0x1')]('</')?(_0x31f542['length']&&(_0x34e1b4=''),_0x31f542[_0x1959('0x0')]()):(_0x31f542[_0x1959('0x4')](_0x595f4c),_0x34e1b4='');}}else{if(_0x5c1498>=_0xae0e9f)_0x34e1b4='';else{if(_0x5c1498+_0x821192[_0x1959('0xa')]>=_0xae0e9f){let _0x506d09=_0xae0e9f-_0x5c1498;if('\x20'===_0x821192[_0x506d09-0x1])_0x506d09--;else{const _0x56c731=_0x821192[_0x1959('0x2')](_0x506d09)[_0x1959('0x7')]('\x20');-0x1!==_0x56c731?_0x506d09+=_0x56c731:_0x506d09=_0x34e1b4[_0x1959('0xa')];}_0x34e1b4=_0x821192[_0x1959('0x2')](0x0,_0x506d09)[_0x1959('0x3')]('')+_0x39b9ed,_0x5c1498=_0xae0e9f;}else _0x5c1498+=_0x821192[_0x1959('0xa')];}}_0x480685[_0x26d66d]=_0x34e1b4;}return _0x480685[_0x1959('0x3')]('\x0a')['replace'](/\n/g,'');}function z(_0x22913f){const _0x1c7e08=[];for(let _0xa881e0=0x0;_0xa881e0<_0x22913f['length'];_0xa881e0++){const _0x4a0757=_0x22913f[_0x1959('0x8')](_0xa881e0)['match'](/^&[a-z0-9#]+;/);if(_0x4a0757){const _0x455c6e=_0x4a0757[0x0];_0x1c7e08[_0x1959('0x4')](_0x455c6e),_0xa881e0+=_0x455c6e[_0x1959('0xa')]-0x1;}else _0x1c7e08[_0x1959('0x4')](_0x22913f[_0xa881e0]);}return _0x1c7e08;}
@@ -0,0 +1,15 @@
1
+ .ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line {
2
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
3
+
4
+ &.ck-suggestion-marker--active {
5
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
6
+ }
7
+ }
8
+
9
+ .ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line {
10
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
11
+
12
+ &.ck-suggestion-marker--active {
13
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
14
+ }
15
+ }
@@ -0,0 +1,55 @@
1
+ .ck-content .ck-suggestion-marker-deletion.ck-widget.image {
2
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
3
+
4
+ & img {
5
+ opacity: 0.6;
6
+ }
7
+
8
+ & figcaption {
9
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
10
+ }
11
+
12
+ &.ck-suggestion-marker--active {
13
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
14
+
15
+ & figcaption {
16
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
17
+ }
18
+ }
19
+ }
20
+
21
+ .ck-content .ck-suggestion-marker-insertion.ck-widget.image {
22
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
23
+
24
+ & figcaption {
25
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
26
+ }
27
+
28
+ &.ck-suggestion-marker--active {
29
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
30
+
31
+ & figcaption {
32
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
33
+ }
34
+ }
35
+ }
36
+
37
+ .ck-content .ck-widget.image > figcaption {
38
+ &.ck-suggestion-marker-deletion {
39
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
40
+ border: none;
41
+
42
+ &.ck-suggestion-marker--active {
43
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
44
+ }
45
+ }
46
+
47
+ &.ck-suggestion-marker-insertion {
48
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
49
+ border: none;
50
+
51
+ &.ck-suggestion-marker--active {
52
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,19 @@
1
+ .ck-content .ck-suggestion-marker-deletion.ck-widget.media {
2
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
3
+
4
+ & .ck-media__wrapper {
5
+ opacity: 0.6;
6
+ }
7
+
8
+ &.ck-suggestion-marker--active {
9
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
10
+ }
11
+ }
12
+
13
+ .ck-content .ck-suggestion-marker-insertion.ck-widget.media {
14
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
15
+
16
+ &.ck-suggestion-marker--active {
17
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ .ck-content .ck-suggestion-marker-deletion.ck-widget.page-break {
2
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
3
+
4
+ &.ck-suggestion-marker--active {
5
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
6
+ }
7
+ }
8
+
9
+ .ck-content .ck-suggestion-marker-insertion.ck-widget.page-break {
10
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
11
+
12
+ &.ck-suggestion-marker--active {
13
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
14
+ }
15
+ }
@@ -0,0 +1,147 @@
1
+ :root {
2
+ --ck-color-suggestion-widget-th-insertion-background: hsla(128, 71%, 65%, .12);
3
+ --ck-color-suggestion-widget-th-insertion-background-active: hsla(128, 71%, 50%, .14);
4
+
5
+ --ck-color-suggestion-widget-th-deletion-background: hsla(345, 71%, 65%, .14);
6
+ --ck-color-suggestion-widget-th-deletion-background-active: hsla(345, 71%, 45%, .16);
7
+ }
8
+
9
+ .ck-content figure.table .ck-suggestion-marker-formatBlock {
10
+ box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border);
11
+
12
+ &.ck-suggestion-marker--active {
13
+ box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
14
+ }
15
+ }
16
+
17
+ .ck-content .ck-suggestion-marker-insertion.table > table {
18
+ border-color: var(--ck-color-suggestion-marker-insertion-border);
19
+
20
+ & > tbody > tr > th {
21
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background);
22
+ border-color: var(--ck-color-suggestion-marker-insertion-border);
23
+ }
24
+
25
+ & > thead > tr > th {
26
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background);
27
+ border-color: var(--ck-color-suggestion-marker-insertion-border);
28
+ }
29
+
30
+ & > tbody > tr > td {
31
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
32
+ border-color: var(--ck-color-suggestion-marker-insertion-border);
33
+ }
34
+ }
35
+
36
+ .ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table > table {
37
+ border-color: var(--ck-color-suggestion-marker-insertion-border-active);
38
+
39
+ & > tbody > tr > th {
40
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
41
+ border-color: var(--ck-color-suggestion-marker-insertion-border-active);
42
+ }
43
+
44
+ & > thead > tr > th {
45
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
46
+ border-color: var(--ck-color-suggestion-marker-insertion-border-active);
47
+ }
48
+
49
+ & > tbody > tr > td {
50
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
51
+ border-color: var(--ck-color-suggestion-marker-insertion-border-active);
52
+ }
53
+ }
54
+
55
+ .ck-content .ck-suggestion-marker-deletion.table > table {
56
+ border-color: var(--ck-color-suggestion-marker-deletion-border);
57
+
58
+ & > tbody > tr > th {
59
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background);
60
+ border-color: var(--ck-color-suggestion-marker-deletion-border);
61
+ text-decoration: none;
62
+ }
63
+
64
+ & > thead > tr > th {
65
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background);
66
+ border-color: var(--ck-color-suggestion-marker-deletion-border);
67
+ text-decoration: none;
68
+ }
69
+
70
+ & > tbody > tr > td {
71
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
72
+ border-color: var(--ck-color-suggestion-marker-deletion-border);
73
+ text-decoration: none;
74
+ }
75
+ }
76
+
77
+ .ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table > table {
78
+ border-color: var(--ck-color-suggestion-marker-deletion-border-active);
79
+
80
+ & > tbody > tr > th {
81
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
82
+ border-color: var(--ck-color-suggestion-marker-deletion-border-active);
83
+ }
84
+
85
+ & > thead > tr > th {
86
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
87
+ border-color: var(--ck-color-suggestion-marker-deletion-border-active);
88
+ }
89
+
90
+ & > tbody > tr > td {
91
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
92
+ border-color: var(--ck-color-suggestion-marker-deletion-border-active);
93
+ }
94
+ }
95
+
96
+ /*
97
+ * We need here at least 022 CSS Specificity because of table styles like `.ck-content .table table th { background: ... }
98
+ * See: https://github.com/ckeditor/ckeditor5-table/blob/master/theme/table.css#L29
99
+ */
100
+ .ck-content .table {
101
+ & th.ck-suggestion-marker-insertion {
102
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background);
103
+
104
+ &.ck-suggestion-marker--active {
105
+ background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
106
+ }
107
+ }
108
+
109
+ & th.ck-suggestion-marker-deletion {
110
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background);
111
+ text-decoration: none;
112
+
113
+ &.ck-suggestion-marker--active {
114
+ background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
115
+ }
116
+ }
117
+
118
+ & td.ck-suggestion-marker-insertion {
119
+ background-color: var(--ck-color-suggestion-widget-insertion-background);
120
+
121
+ &.ck-suggestion-marker--active {
122
+ background-color: var(--ck-color-suggestion-widget-insertion-background-active);
123
+ }
124
+ }
125
+
126
+ & td.ck-suggestion-marker-deletion {
127
+ background-color: var(--ck-color-suggestion-widget-deletion-background);
128
+ text-decoration: none;
129
+
130
+ &.ck-suggestion-marker--active {
131
+ background-color: var(--ck-color-suggestion-widget-deletion-background-active);
132
+ }
133
+ }
134
+
135
+ & th.ck-suggestion-marker-formatInline,
136
+ & td.ck-suggestion-marker-formatInline,
137
+ & th.ck-suggestion-marker-formatBlock,
138
+ & td.ck-suggestion-marker-formatBlock {
139
+ background-color: var(--ck-color-suggestion-widget-format-background);
140
+ box-shadow: none;
141
+
142
+ &.ck-suggestion-marker--active {
143
+ background-color: var(--ck-color-suggestion-widget-format-background-active);
144
+ box-shadow: none;
145
+ }
146
+ }
147
+ }
@@ -0,0 +1,87 @@
1
+ :root {
2
+ --ck-color-comment-box-border: hsl(55, 98%, 48%);
3
+ --ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
4
+ --ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
5
+ --ck-color-suggestion-box-format-border: hsl(191, 62%, 60%);
6
+ }
7
+
8
+ .ck .ck-suggestion {
9
+ border-top-left-radius: var(--ck-border-radius);
10
+ }
11
+
12
+ .ck .ck-annotation {
13
+ border-left: 3px solid transparent;
14
+ }
15
+
16
+
17
+ /* See: #3683.
18
+ * Inline Suggestion annotations that can't be commented on contains a scrollbar by default */
19
+ .ck .ck-suggestion--disabled-comments .ck-annotation {
20
+ min-height: 80px;
21
+ }
22
+
23
+ /* See: #2459.
24
+ With track-changes feature enabled, we need to distinguish various types of annotations (comments and suggestions). */
25
+ .ck .ck-comment,
26
+ .ck .ck-thread__comment-count,
27
+ .ck .ck-comment__input-container {
28
+ border-left: 3px solid var(--ck-color-comment-box-border);
29
+ }
30
+
31
+ .ck .ck-suggestion-insertion .ck-suggestion {
32
+ border-left-color: var(--ck-color-suggestion-box-insertion-border);
33
+ }
34
+
35
+ .ck .ck-suggestion-deletion .ck-suggestion {
36
+ border-left-color: var(--ck-color-suggestion-box-deletion-border);
37
+ }
38
+
39
+ .ck .ck-suggestion-replace .ck-suggestion {
40
+ border-left-color: var(--ck-color-suggestion-box-insertion-border);
41
+ }
42
+
43
+ .ck .ck-suggestion-format .ck-suggestion {
44
+ border-left-color: var(--ck-color-suggestion-box-format-border);
45
+ }
46
+
47
+ .ck .ck-suggestion-wrapper {
48
+ outline: 0;
49
+ }
50
+
51
+ .ck .ck-suggestion-type {
52
+ font-weight: bold;
53
+ }
54
+
55
+ .ck .ck-suggestion-color {
56
+ display: inline-block;
57
+ width: 14px;
58
+ height: 14px;
59
+ border-radius: 14px;
60
+ vertical-align: text-bottom;
61
+ margin: 0 5px;
62
+ box-shadow: 0 0 0 1px #444;
63
+ }
64
+
65
+ /* Comments inside suggestion. */
66
+
67
+ /* Handle comments inside suggestion keep same border-color. */
68
+ .ck .ck-suggestion-insertion .ck-comment,
69
+ .ck .ck-suggestion-insertion .ck-thread__comment-count,
70
+ .ck .ck-suggestion-insertion .ck-comment__input-container,
71
+ .ck .ck-suggestion-replace .ck-comment,
72
+ .ck .ck-suggestion-replace .ck-thread__comment-count,
73
+ .ck .ck-suggestion-replace .ck-comment__input-container {
74
+ border-left-color: var(--ck-color-suggestion-box-insertion-border);
75
+ }
76
+
77
+ .ck .ck-suggestion-deletion .ck-comment,
78
+ .ck .ck-suggestion-deletion .ck-thread__comment-count,
79
+ .ck .ck-suggestion-deletion .ck-comment__input-container {
80
+ border-left-color: var(--ck-color-suggestion-box-deletion-border);
81
+ }
82
+
83
+ .ck .ck-suggestion-format .ck-comment,
84
+ .ck .ck-suggestion-format .ck-thread__comment-count,
85
+ .ck .ck-suggestion-format .ck-comment__input-container {
86
+ border-left-color: var(--ck-color-suggestion-box-format-border);
87
+ }