@ckeditor/ckeditor5-track-changes 29.2.0 → 32.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 (85) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +8 -7
  4. package/lang/translations/cs.po +27 -23
  5. package/lang/translations/da.po +387 -0
  6. package/lang/translations/de.po +28 -24
  7. package/lang/translations/en-au.po +28 -24
  8. package/lang/translations/en.po +28 -24
  9. package/lang/translations/es.po +27 -23
  10. package/lang/translations/et.po +27 -23
  11. package/lang/translations/fr.po +28 -24
  12. package/lang/translations/gl.po +28 -24
  13. package/lang/translations/hi.po +27 -23
  14. package/lang/translations/hr.po +27 -23
  15. package/lang/translations/it.po +28 -24
  16. package/lang/translations/nl.po +27 -23
  17. package/lang/translations/pl.po +27 -23
  18. package/lang/translations/pt-br.po +49 -45
  19. package/lang/translations/sk.po +27 -23
  20. package/lang/translations/sr-latn.po +28 -24
  21. package/lang/translations/sr.po +28 -24
  22. package/lang/translations/tk.po +27 -23
  23. package/lang/translations/tr.po +27 -23
  24. package/lang/translations/zh-cn.po +28 -24
  25. package/lang/translations/zh.po +370 -0
  26. package/package.json +7 -7
  27. package/src/commands/acceptallsuggestionscommand.js +2 -2
  28. package/src/commands/acceptselectedsuggestionscommand.js +2 -2
  29. package/src/commands/acceptsuggestioncommand.js +2 -2
  30. package/src/commands/discardallsuggestionscommand.js +2 -2
  31. package/src/commands/discardselectedsuggestionscommand.js +2 -2
  32. package/src/commands/discardsuggestioncommand.js +2 -2
  33. package/src/commands/trackchangescommand.js +2 -2
  34. package/src/integrations/alignment.js +2 -2
  35. package/src/integrations/basicstyles.js +2 -2
  36. package/src/integrations/blockquote.js +2 -2
  37. package/src/integrations/codeblock.js +2 -2
  38. package/src/integrations/comments.js +2 -2
  39. package/src/integrations/deletecommand.js +2 -2
  40. package/src/integrations/entercommand.js +2 -2
  41. package/src/integrations/font.js +2 -2
  42. package/src/integrations/heading.js +2 -2
  43. package/src/integrations/highlight.js +2 -2
  44. package/src/integrations/horizontalline.js +2 -2
  45. package/src/integrations/image.js +2 -2
  46. package/src/integrations/indent.js +2 -2
  47. package/src/integrations/inputcommand.js +2 -2
  48. package/src/integrations/link.js +2 -2
  49. package/src/integrations/list.js +2 -2
  50. package/src/integrations/mediaembed.js +2 -2
  51. package/src/integrations/mention.js +2 -2
  52. package/src/integrations/pagebreak.js +2 -2
  53. package/src/integrations/paragraph.js +2 -2
  54. package/src/integrations/removeformat.js +2 -2
  55. package/src/integrations/restrictededitingmode.js +2 -2
  56. package/src/integrations/shiftentercommand.js +2 -2
  57. package/src/integrations/standardeditingmode.js +2 -2
  58. package/src/integrations/table.js +2 -2
  59. package/src/integrations/tableclipboard.js +2 -2
  60. package/src/integrations/tableheadings.js +2 -2
  61. package/src/integrations/tablemergesplit.js +2 -2
  62. package/src/integrations/title.js +2 -2
  63. package/src/integrations/undo.js +2 -2
  64. package/src/integrations/utils.js +2 -2
  65. package/src/suggestion.js +2 -2
  66. package/src/suggestiondescriptionfactory.js +2 -2
  67. package/src/trackchanges.js +2 -2
  68. package/src/trackchangesdata.js +2 -2
  69. package/src/trackchangesediting.js +2 -2
  70. package/src/trackchangesui.js +2 -2
  71. package/src/ui/suggestioncontroller.js +2 -2
  72. package/src/ui/view/basesuggestionthreadview.js +2 -2
  73. package/src/ui/view/suggestionthreadview.js +2 -2
  74. package/src/utils/getselectedsuggestions.js +2 -2
  75. package/src/utils/hashobject.js +2 -2
  76. package/src/utils/normalizedescription.js +2 -2
  77. package/src/utils/sortsuggestions.js +2 -2
  78. package/theme/icons/track-changes-accept.svg +1 -1
  79. package/theme/icons/track-changes-discard.svg +1 -1
  80. package/theme/icons/track-changes.svg +1 -1
  81. package/theme/suggestion.css +10 -0
  82. package/theme/suggestionmarker.css +1 -1
  83. package/src/integrations/exportpdf.js +0 -23
  84. package/src/integrations/exportword.js +0 -23
  85. package/src/integrations/selectall.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x56413c}from'ckeditor5/src/core';export default class L extends _0x56413c{['afterInit'](){const _0x1cd349=this['editor'],{t:t}=_0x1cd349['locale'];if(!_0x1cd349['plugins']['has']('CodeBlock'))return;_0x1cd349['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x5887f3=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x5887f3));}}
23
+ import{Plugin as _0xf0ff7a}from'ckeditor5/src/core';export default class L extends _0xf0ff7a{['afterInit'](){const _0x1bc218=this['editor'],{t:t}=_0x1bc218['locale'];if(!_0x1bc218['plugins']['has']('CodeBlock'))return;_0x1bc218['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x63574d=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x63574d));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4034=['requires','addCommentThread','init','enableCommand','plugins'];(function(_0x224e56,_0x4034dc){var _0xe5e81d=function(_0x391e2c){while(--_0x391e2c){_0x224e56['push'](_0x224e56['shift']());}};_0xe5e81d(++_0x4034dc);}(_0x4034,0xf4));var _0xe5e8=function(_0x224e56,_0x4034dc){_0x224e56=_0x224e56-0x0;var _0xe5e81d=_0x4034[_0x224e56];return _0xe5e81d;};import{Plugin as _0x1ded4b}from'ckeditor5/src/core';import _0x38811c from'@ckeditor/ckeditor5-comments/src/comments/commentsediting';export default class q extends _0x1ded4b{static get[_0xe5e8('0x1')](){return[_0x38811c];}[_0xe5e8('0x3')](){this['editor'][_0xe5e8('0x0')]['get']('TrackChangesEditing')[_0xe5e8('0x4')](_0xe5e8('0x2'));}}
23
+ var _0x1b57=['addCommentThread','TrackChangesEditing','get','plugins','requires','editor','init'];(function(_0x432a22,_0x1b5777){var _0x4f2170=function(_0x5d68ad){while(--_0x5d68ad){_0x432a22['push'](_0x432a22['shift']());}};_0x4f2170(++_0x1b5777);}(_0x1b57,0x17e));var _0x4f21=function(_0x432a22,_0x1b5777){_0x432a22=_0x432a22-0x0;var _0x4f2170=_0x1b57[_0x432a22];return _0x4f2170;};import{Plugin as _0xb78be6}from'ckeditor5/src/core';import _0x550c22 from'@ckeditor/ckeditor5-comments/src/comments/commentsediting';export default class q extends _0xb78be6{static get[_0x4f21('0x0')](){return[_0x550c22];}[_0x4f21('0x2')](){this[_0x4f21('0x1')][_0x4f21('0x6')][_0x4f21('0x5')](_0x4f21('0x4'))['enableCommand'](_0x4f21('0x3'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5737=['options','createSelection','fromRange','getFirstRange','isCollapsed','editor','commands','enqueueChange','data','modifySelection','$graveyard','enableCommand','TrackChangesEditing','model','unlock','setSelection','markerNameToElements','detach','start','addMarker:suggestion:deletion','requires','root','unbindElementFromMarkerName','markerName','mapper','unit','editing','lock','deleteForward','merge','showSuggestionHighlights','init','get','buffer','downcastDispatcher','high','writer','removeMarker:suggestion:deletion','rootName','plugins'];(function(_0x445e8d,_0x573745){const _0x4d3560=function(_0x383a82){while(--_0x383a82){_0x445e8d['push'](_0x445e8d['shift']());}};_0x4d3560(++_0x573745);}(_0x5737,0x183));const _0x4d35=function(_0x445e8d,_0x573745){_0x445e8d=_0x445e8d-0x0;let _0x4d3560=_0x5737[_0x445e8d];return _0x4d3560;};import{Plugin as _0x47a75e}from'ckeditor5/src/core';import{Delete as _0x170bad}from'ckeditor5/src/typing';import{LiveRange as _0x26f892}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x201b3f}from'./utils';export default class H extends _0x47a75e{static get[_0x4d35('0x21')](){return[_0x170bad];}[_0x4d35('0x4')](){const _0x5112f1=this[_0x4d35('0x12')],_0x9c4570=_0x5112f1[_0x4d35('0xc')][_0x4d35('0x5')](_0x4d35('0x19'));_0x9c4570[_0x4d35('0x18')]('delete');const _0x3f179f=_0x5112f1[_0x4d35('0x13')][_0x4d35('0x5')](_0x4d35('0x1'));_0x9c4570[_0x4d35('0x18')](_0x4d35('0x1'),(_0x584bd6,_0x1719ac={})=>{const _0x536d0e=_0x5112f1[_0x4d35('0x1a')][_0x4d35('0xe')](_0x5112f1[_0x4d35('0x1a')]['document']['selection']);_0x536d0e[_0x4d35('0x11')]&&_0x5112f1[_0x4d35('0x1a')][_0x4d35('0x16')](_0x536d0e,{'direction':'forward','unit':_0x1719ac[_0x4d35('0x26')]});const _0x4e5f10=_0x536d0e[_0x4d35('0x10')](),_0x24fb86=_0x26f892[_0x4d35('0xf')](_0x4e5f10);let _0x234c79;_0x584bd6(_0x1719ac),_0x234c79=_0x4d35('0x17')==_0x24fb86[_0x4d35('0x22')][_0x4d35('0xb')]?_0x5112f1['model']['createRange'](_0x4e5f10['start']):_0x5112f1[_0x4d35('0x1a')]['createRange'](_0x24fb86[_0x4d35('0x1f')],_0x24fb86['end']),_0x24fb86[_0x4d35('0x1e')](),_0x5112f1[_0x4d35('0x1a')][_0x4d35('0x14')](_0x3f179f[_0x4d35('0x6')]['batch'],_0x3dda4d=>{_0x3f179f[_0x4d35('0x6')][_0x4d35('0x0')](),_0x3dda4d[_0x4d35('0x1c')](_0x3dda4d['createRange'](_0x234c79['end'])),_0x3f179f['buffer'][_0x4d35('0x1b')]();});}),_0x5112f1[_0x4d35('0x27')][_0x4d35('0x7')]['on']('addMarker:suggestion:deletion',_0x201b3f(_0x5112f1,_0x4d35('0x2')),{'priority':'high'}),_0x5112f1[_0x4d35('0x15')][_0x4d35('0x7')]['on'](_0x4d35('0x20'),(_0x8dbb38,_0x4254d6,_0x3ceca5)=>{_0x3ceca5[_0x4d35('0xd')][_0x4d35('0x3')]&&_0x201b3f(_0x5112f1,_0x4d35('0x2'),{'showActiveMarker':!0x1})(_0x8dbb38,_0x4254d6,_0x3ceca5);},{'priority':_0x4d35('0x8')}),_0x5112f1[_0x4d35('0x27')]['downcastDispatcher']['on'](_0x4d35('0xa'),(_0x39c5ba,_0x47e61c,_0x41a674)=>{const _0x499184=_0x41a674[_0x4d35('0x25')][_0x4d35('0x1d')](_0x47e61c[_0x4d35('0x24')]);if(_0x499184)for(const _0x3f91fc of _0x499184)_0x3f91fc['is']('uiElement')&&(_0x41a674[_0x4d35('0x25')][_0x4d35('0x23')](_0x3f91fc,_0x47e61c['markerName']),_0x41a674[_0x4d35('0x9')]['remove'](_0x3f91fc));},{'priority':_0x4d35('0x8')});}}
23
+ const _0x17b2=['end','markerNameToElements','unbindElementFromMarkerName','setSelection','get','mapper','deleteForward','$graveyard','fromRange','root','init','createRange','start','removeMarker:suggestion:deletion','high','model','downcastDispatcher','rootName','delete','getFirstRange','unlock','lock','data','isCollapsed','unit','enableCommand','buffer','commands','document','TrackChangesEditing','plugins','showSuggestionHighlights','markerName','editing','selection'];(function(_0x4d40f3,_0x17b247){const _0x4df12d=function(_0x4d74a1){while(--_0x4d74a1){_0x4d40f3['push'](_0x4d40f3['shift']());}};_0x4df12d(++_0x17b247);}(_0x17b2,0x1a8));const _0x4df1=function(_0x4d40f3,_0x17b247){_0x4d40f3=_0x4d40f3-0x0;let _0x4df12d=_0x17b2[_0x4d40f3];return _0x4df12d;};import{Plugin as _0x48dc2b}from'ckeditor5/src/core';import{Delete as _0x3aed60}from'ckeditor5/src/typing';import{LiveRange as _0x2bcf41}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2d107f}from'./utils';export default class H extends _0x48dc2b{static get['requires'](){return[_0x3aed60];}[_0x4df1('0x6')](){const _0x5f39a2=this['editor'],_0xb5869=_0x5f39a2[_0x4df1('0x1a')]['get'](_0x4df1('0x19'));_0xb5869[_0x4df1('0x15')](_0x4df1('0xe'));const _0x2576e5=_0x5f39a2[_0x4df1('0x17')][_0x4df1('0x0')](_0x4df1('0x2'));_0xb5869[_0x4df1('0x15')]('deleteForward',(_0x590197,_0x1e09ee={})=>{const _0xe13c74=_0x5f39a2[_0x4df1('0xb')]['createSelection'](_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x18')][_0x4df1('0x1e')]);_0xe13c74[_0x4df1('0x13')]&&_0x5f39a2[_0x4df1('0xb')]['modifySelection'](_0xe13c74,{'direction':'forward','unit':_0x1e09ee[_0x4df1('0x14')]});const _0x2bc170=_0xe13c74[_0x4df1('0xf')](),_0x1d0fb6=_0x2bcf41[_0x4df1('0x4')](_0x2bc170);let _0x4391f1;_0x590197(_0x1e09ee),_0x4391f1=_0x4df1('0x3')==_0x1d0fb6[_0x4df1('0x5')][_0x4df1('0xd')]?_0x5f39a2[_0x4df1('0xb')][_0x4df1('0x7')](_0x2bc170[_0x4df1('0x8')]):_0x5f39a2['model'][_0x4df1('0x7')](_0x1d0fb6[_0x4df1('0x8')],_0x1d0fb6[_0x4df1('0x1f')]),_0x1d0fb6['detach'](),_0x5f39a2['model']['enqueueChange'](_0x2576e5[_0x4df1('0x16')]['batch'],_0x216ade=>{_0x2576e5[_0x4df1('0x16')][_0x4df1('0x11')](),_0x216ade[_0x4df1('0x22')](_0x216ade[_0x4df1('0x7')](_0x4391f1['end'])),_0x2576e5[_0x4df1('0x16')][_0x4df1('0x10')]();});}),_0x5f39a2[_0x4df1('0x1d')][_0x4df1('0xc')]['on']('addMarker:suggestion:deletion',_0x2d107f(_0x5f39a2,'merge'),{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x12')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49e476,_0x2bb1ff,_0x4d58fa)=>{_0x4d58fa['options'][_0x4df1('0x1b')]&&_0x2d107f(_0x5f39a2,'merge',{'showActiveMarker':!0x1})(_0x49e476,_0x2bb1ff,_0x4d58fa);},{'priority':_0x4df1('0xa')}),_0x5f39a2[_0x4df1('0x1d')]['downcastDispatcher']['on'](_0x4df1('0x9'),(_0x13f0f3,_0x1d7e7f,_0x38a4d8)=>{const _0x5c59c6=_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x20')](_0x1d7e7f['markerName']);if(_0x5c59c6)for(const _0x161c7d of _0x5c59c6)_0x161c7d['is']('uiElement')&&(_0x38a4d8[_0x4df1('0x1')][_0x4df1('0x21')](_0x161c7d,_0x1d7e7f[_0x4df1('0x1c')]),_0x38a4d8['writer']['remove'](_0x161c7d));},{'priority':_0x4df1('0xa')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23e0=['writer','setSelection','start','showSuggestionHighlights','markerNameToElements','TrackChangesEditing','removeMarker:suggestion:insertion','isLimit','split','options','get','unbindElementFromMarkerName','high','addMarker:suggestion:insertion','editor','createRange','requires','parent','change','init','markerName','selection','end','downcastDispatcher','model','detach','getFirstRange','data','mapper','markInsertion','hasClass','isCollapsed','getFirstPosition','editing','schema','enableCommand'];(function(_0x28d1e3,_0x23e0fb){const _0x597fc2=function(_0x3cd49f){while(--_0x3cd49f){_0x28d1e3['push'](_0x28d1e3['shift']());}};_0x597fc2(++_0x23e0fb);}(_0x23e0,0x10f));const _0x597f=function(_0x28d1e3,_0x23e0fb){_0x28d1e3=_0x28d1e3-0x0;let _0x597fc2=_0x23e0[_0x28d1e3];return _0x597fc2;};import{Plugin as _0x337ffe}from'ckeditor5/src/core';import{Enter as _0x2c656d}from'ckeditor5/src/enter';import{LiveRange as _0x468781}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2940de}from'./utils';export default class W extends _0x337ffe{static get[_0x597f('0x21')](){return[_0x2c656d];}[_0x597f('0x0')](){const _0x9e1be7=this[_0x597f('0x1f')],_0x520775=_0x9e1be7['plugins'][_0x597f('0x1b')](_0x597f('0x16'));_0x520775[_0x597f('0x10')]('enter',_0x13095d=>{_0x9e1be7[_0x597f('0x5')][_0x597f('0x23')](_0x481a71=>{const _0x2091dd=_0x9e1be7[_0x597f('0x5')]['document'][_0x597f('0x2')],_0x576c08=_0x2091dd[_0x597f('0xd')](),_0x281877=_0x2091dd[_0x597f('0xc')],_0x668414=_0x468781['fromRange'](_0x2091dd[_0x597f('0x7')]()),_0x2c09dc=_0x668414[_0x597f('0x13')]['parent'],_0x227a46=_0x668414[_0x597f('0x3')][_0x597f('0x22')],_0x55d909=!(_0x668414['start']['isAtStart']&&_0x668414[_0x597f('0x3')]['isAtEnd']),_0x164775=_0x2c09dc==_0x227a46,_0x218239=!(_0x9e1be7[_0x597f('0x5')][_0x597f('0xf')][_0x597f('0x18')](_0x2c09dc)||_0x9e1be7['model'][_0x597f('0xf')][_0x597f('0x18')](_0x227a46))&&(_0x281877||_0x55d909&&_0x164775);if(_0x13095d(),_0x218239){const _0x14e9f9=_0x9e1be7[_0x597f('0x5')]['createPositionAt'](_0x576c08[_0x597f('0x22')]['nextSibling'],0x0),_0x49b96c=_0x481a71[_0x597f('0x20')](_0x576c08,_0x14e9f9);_0x520775[_0x597f('0xa')](_0x49b96c);}else _0x481a71[_0x597f('0x12')](_0x481a71[_0x597f('0x20')](_0x668414[_0x597f('0x3')]));_0x668414[_0x597f('0x6')]();});}),_0x9e1be7['editing'][_0x597f('0x4')]['on'](_0x597f('0x1e'),_0x2940de(_0x9e1be7,_0x597f('0x19')),{'priority':_0x597f('0x1d')}),_0x9e1be7[_0x597f('0xe')][_0x597f('0x4')]['on'](_0x597f('0x17'),(_0x12baf7,_0x3ada79,_0x2af9ee)=>{const _0x1e4d31=_0x2af9ee[_0x597f('0x9')][_0x597f('0x15')](_0x3ada79[_0x597f('0x1')]);if(_0x1e4d31)for(const _0x1a882b of _0x1e4d31)_0x1a882b[_0x597f('0xb')]('ck-suggestion-marker-split')&&(_0x2af9ee[_0x597f('0x9')][_0x597f('0x1c')](_0x1a882b,_0x3ada79[_0x597f('0x1')]),_0x2af9ee[_0x597f('0x11')]['remove'](_0x1a882b));},{'priority':_0x597f('0x1d')}),_0x9e1be7[_0x597f('0x8')][_0x597f('0x4')]['on']('addMarker:suggestion:insertion',(_0x5a9c70,_0x44ee10,_0x4b1585)=>{_0x4b1585[_0x597f('0x1a')][_0x597f('0x14')]&&_0x2940de(_0x9e1be7,'split',{'showActiveMarker':!0x1})(_0x5a9c70,_0x44ee10,_0x4b1585);},{'priority':_0x597f('0x1d')});}}
23
+ const _0x4bde=['enter','requires','editing','isAtStart','isLimit','unbindElementFromMarkerName','end','nextSibling','model','markerName','TrackChangesEditing','ck-suggestion-marker-split','createPositionAt','downcastDispatcher','mapper','createRange','high','isCollapsed','markInsertion','setSelection','removeMarker:suggestion:insertion','getFirstPosition','start','split','writer','document','init','addMarker:suggestion:insertion','change','parent','plugins','getFirstRange','markerNameToElements','get','data','remove'];(function(_0x211fa6,_0x4bde07){const _0x2b2d4a=function(_0x17f459){while(--_0x17f459){_0x211fa6['push'](_0x211fa6['shift']());}};_0x2b2d4a(++_0x4bde07);}(_0x4bde,0xef));const _0x2b2d=function(_0x211fa6,_0x4bde07){_0x211fa6=_0x211fa6-0x0;let _0x2b2d4a=_0x4bde[_0x211fa6];return _0x2b2d4a;};import{Plugin as _0x3ae3f7}from'ckeditor5/src/core';import{Enter as _0x21863f}from'ckeditor5/src/enter';import{LiveRange as _0x405585}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x22de63}from'./utils';export default class W extends _0x3ae3f7{static get[_0x2b2d('0xe')](){return[_0x21863f];}[_0x2b2d('0x3')](){const _0x327094=this['editor'],_0x1af930=_0x327094[_0x2b2d('0x7')][_0x2b2d('0xa')](_0x2b2d('0x17'));_0x1af930['enableCommand'](_0x2b2d('0xd'),_0x3b5c15=>{_0x327094[_0x2b2d('0x15')][_0x2b2d('0x5')](_0x319f6f=>{const _0xf6e59b=_0x327094['model'][_0x2b2d('0x2')]['selection'],_0x88de70=_0xf6e59b[_0x2b2d('0x22')](),_0x38a170=_0xf6e59b[_0x2b2d('0x1e')],_0x273d02=_0x405585['fromRange'](_0xf6e59b[_0x2b2d('0x8')]()),_0xeef2d9=_0x273d02[_0x2b2d('0x23')][_0x2b2d('0x6')],_0x484682=_0x273d02[_0x2b2d('0x13')][_0x2b2d('0x6')],_0x280ee3=!(_0x273d02['start'][_0x2b2d('0x10')]&&_0x273d02[_0x2b2d('0x13')]['isAtEnd']),_0x1d09b4=_0xeef2d9==_0x484682,_0x3330e1=!(_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0xeef2d9)||_0x327094[_0x2b2d('0x15')]['schema'][_0x2b2d('0x11')](_0x484682))&&(_0x38a170||_0x280ee3&&_0x1d09b4);if(_0x3b5c15(),_0x3330e1){const _0x3d390b=_0x327094[_0x2b2d('0x15')][_0x2b2d('0x19')](_0x88de70['parent'][_0x2b2d('0x14')],0x0),_0x2f15db=_0x319f6f[_0x2b2d('0x1c')](_0x88de70,_0x3d390b);_0x1af930[_0x2b2d('0x1f')](_0x2f15db);}else _0x319f6f[_0x2b2d('0x20')](_0x319f6f['createRange'](_0x273d02['end']));_0x273d02['detach']();});}),_0x327094['editing']['downcastDispatcher']['on'](_0x2b2d('0x4'),_0x22de63(_0x327094,_0x2b2d('0x0')),{'priority':_0x2b2d('0x1d')}),_0x327094[_0x2b2d('0xf')][_0x2b2d('0x1a')]['on'](_0x2b2d('0x21'),(_0x507cad,_0x64ac14,_0x211971)=>{const _0x3480b2=_0x211971['mapper'][_0x2b2d('0x9')](_0x64ac14['markerName']);if(_0x3480b2)for(const _0x24e69b of _0x3480b2)_0x24e69b['hasClass'](_0x2b2d('0x18'))&&(_0x211971[_0x2b2d('0x1b')][_0x2b2d('0x12')](_0x24e69b,_0x64ac14[_0x2b2d('0x16')]),_0x211971[_0x2b2d('0x1')][_0x2b2d('0xc')](_0x24e69b));},{'priority':'high'}),_0x327094[_0x2b2d('0xb')][_0x2b2d('0x1a')]['on']('addMarker:suggestion:insertion',(_0x583f76,_0x22798c,_0x475e93)=>{_0x475e93['options']['showSuggestionHighlights']&&_0x22de63(_0x327094,_0x2b2d('0x0'),{'showActiveMarker':!0x1})(_0x583f76,_0x22798c,_0x475e93);},{'priority':_0x2b2d('0x1d')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x565eb9}from'ckeditor5/src/core';import{normalizeColorOptions as Xt}from'ckeditor5/src/ui';import{normalizeOptions as Yt}from'@ckeditor/ckeditor5-font/src/fontsize/utils';import{getRangesWithAttribute as Rt}from'./utils';const Zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class K extends _0x565eb9{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x4ab3b8,commandName:_0x523305}of Zt)this['editor']['plugins']['has'](_0x4ab3b8)&&this['_enableCommand'](_0x523305);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2b62ed=>{const {data:_0x19cd54}=_0x2b62ed;if(null!=_0x19cd54){if('fontSize'==_0x19cd54['commandName']){const _0x4b34ef=_0x19cd54['commandParams'][0x0]['value'];if(_0x4b34ef){const _0x5dc41c=Yt(this['editor']['config']['get']('fontSize.options'))['find'](_0x25d6d1=>_0x25d6d1['model']==_0x4b34ef)['title'],_0x572187=this['editor']['locale']['_t'](_0x5dc41c)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x572187)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x19cd54['commandName']){const _0x3444de=_0x19cd54['commandParams'][0x0]['value'];return _0x3444de?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x3444de)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x19cd54['commandName']){const _0x229719=_0x19cd54['commandParams'][0x0]['value'];if(_0x229719){const _0x9a116a=Xt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a44ca=>_0x3a44ca['model']==_0x229719)['label'],_0x51c54b=this['editor']['locale']['_t'](_0x9a116a)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x51c54b)};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x19cd54['commandName']){const _0x48af03=_0x19cd54['commandParams'][0x0]['value'];if(_0x48af03){const _0xdc0889=Xt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x26e8bc=>_0x26e8bc['model']==_0x48af03)['label'],_0x1c478e=this['editor']['locale']['_t'](_0xdc0889)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c478e)};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x487c8b){const _0x3433db=this['editor'];_0x3433db['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x487c8b,(_0x4d8a99,_0x21c29c={})=>{const _0x1bc192=_0x3433db['model']['document']['selection'],_0x465c20=_0x21c29c['value'];_0x1bc192['isCollapsed']?_0x4d8a99(_0x21c29c):_0x3433db['model']['change'](()=>{const _0x4ffdbf=Array['from'](_0x1bc192['getRanges']());for(const _0x34d50f of _0x4ffdbf){const _0x4dba68=_0x465c20?[_0x34d50f]:Rt(_0x487c8b,_0x34d50f,_0x3433db['model']);for(const _0x52032f of _0x4dba68)_0x3433db['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x52032f,{'commandName':_0x487c8b,'commandParams':[{'value':_0x465c20}]});}});});}}
23
+ import{Plugin as _0x36f48f}from'ckeditor5/src/core';import{normalizeColorOptions as Ht}from'ckeditor5/src/ui';import{normalizeOptions as Jt}from'@ckeditor/ckeditor5-font/src/fontsize/utils';import{getRangesWithAttribute as Rt}from'./utils';const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class z extends _0x36f48f{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x4c771e,commandName:_0x4ca142}of Xt)this['editor']['plugins']['has'](_0x4c771e)&&this['_enableCommand'](_0x4ca142);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x14eb72=>{const {data:_0x2bb532}=_0x14eb72;if(null!=_0x2bb532){if('fontSize'==_0x2bb532['commandName']){const _0x21e73b=_0x2bb532['commandParams'][0x0]['value'];if(_0x21e73b){const _0x3146c5=Jt(this['editor']['config']['get']('fontSize.options'))['find'](_0x4df6fe=>_0x4df6fe['model']==_0x21e73b)['title'],_0x2a61e3=this['editor']['locale']['_t'](_0x3146c5)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x2a61e3)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bb532['commandName']){const _0x3c23e0=_0x2bb532['commandParams'][0x0]['value'];return _0x3c23e0?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x3c23e0)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x2bb532['commandName']){const _0x54bff0=_0x2bb532['commandParams'][0x0]['value'];if(_0x54bff0){const _0x55be4e=Ht(this['editor']['config']['get']('fontColor.colors'))['find'](_0x90ad62=>_0x90ad62['model']==_0x54bff0);let _0x12ecb3=_0x54bff0,_0x4e0a38='';return _0x55be4e&&(_0x12ecb3=_0x55be4e['label'],_0x4e0a38=this['editor']['locale']['_t'](_0x12ecb3)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x4e0a38)['trim'](),'color':{'value':_0x54bff0,'title':_0x4e0a38||_0x12ecb3}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bb532['commandName']){const _0x5eacf2=_0x2bb532['commandParams'][0x0]['value'];if(_0x5eacf2){const _0x4583c2=Ht(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17b5d7=>_0x17b5d7['model']==_0x5eacf2);let _0x1639b4=_0x5eacf2,_0x4d968d='';return _0x4583c2&&(_0x1639b4=_0x4583c2['label'],_0x4d968d=this['editor']['locale']['_t'](_0x1639b4)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d968d)['trim'](),'color':{'value':_0x5eacf2,'title':_0x4d968d||_0x1639b4}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x2948d7){const _0x104255=this['editor'];_0x104255['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x2948d7,(_0x2a4d4e,_0x2468e7={})=>{const _0x35c854=_0x104255['model']['document']['selection'],_0xc08a33=_0x2468e7['value'];_0x35c854['isCollapsed']?_0x2a4d4e(_0x2468e7):_0x104255['model']['change'](()=>{const _0x5248b6=Array['from'](_0x35c854['getRanges']());for(const _0x4216cf of _0x5248b6){const _0x45322f=_0xc08a33?[_0x4216cf]:Rt(_0x2948d7,_0x4216cf,_0x104255['model']);for(const _0x3ba1bc of _0x45322f)_0x104255['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x3ba1bc,{'commandName':_0x2948d7,'commandParams':[{'value':_0xc08a33}]});}});});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3a2178}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x434bae}from'./utils';export default class Q extends _0x3a2178{['afterInit'](){const _0x2eff77=this['editor'],{t:t}=_0x2eff77['locale'],_0x4e77a5=_0x2eff77['config']['get']('heading.options');if(!_0x2eff77['plugins']['has']('HeadingEditing'))return;const _0x48d69d=_0x2eff77['plugins']['get']('TrackChangesEditing');_0x48d69d['enableCommand']('heading',(_0x4068e6,_0x2363a2)=>{const _0x50dc6e=_0x2363a2['value'],_0x38ecf4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x571c20=>function(_0x268017,_0x5cec84,_0x1b3874){return _0x1b3874['checkChild'](_0x268017['parent'],_0x5cec84)&&!_0x1b3874['isObject'](_0x268017)&&_0x268017['name']!=_0x5cec84;}(_0x571c20,_0x50dc6e,this['editor']['model']['schema']));_0x2eff77['model']['change'](()=>{for(const _0x4ae5e7 of _0x38ecf4)_0x48d69d['markBlockFormat'](_0x4ae5e7,{'commandName':'heading','commandParams':[_0x2363a2],'formatGroupId':'blockName'},_0x434bae(_0x4ae5e7));});});for(const _0x572de0 of _0x4e77a5)'paragraph'!=_0x572de0['model']&&_0x48d69d['_descriptionFactory']['registerElementLabel'](_0x572de0['model'],_0x89e46b=>{const _0x42f25f=tn(_0x572de0['model']);return null!==_0x42f25f?_0x3539af(_0x89e46b,_0x42f25f):_0x5040df(_0x89e46b,_0x572de0['title']);});function _0x3539af(_0x400a8b,_0x595cd7){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x400a8b,_0x595cd7]);}function _0x5040df(_0x5e9806,_0x513d81){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x5e9806,_0x513d81]);}_0x48d69d['_descriptionFactory']['registerDescriptionCallback'](_0x495ec3=>{const {type:_0x55497e,data:_0x4bf383}=_0x495ec3;if('formatBlock'==_0x55497e&&_0x4bf383&&'heading'==_0x4bf383['commandName']){const _0x15552a=_0x4bf383['commandParams'][0x0]['value'],_0xacdf25=tn(_0x15552a);if(null!==_0xacdf25)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x3539af(0x1,_0xacdf25))};const _0x29cefc=_0x4e77a5['find'](_0x2ff2a8=>_0x2ff2a8['model']===_0x15552a)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x5040df(0x1,_0x29cefc))};}});}}function tn(_0x3e4880){const _0x5916fa=_0x3e4880['match'](/^heading(\d+)$/);return _0x5916fa?_0x5916fa[0x1]:null;}
23
+ import{Plugin as _0x38156a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x57a6a9}from'./utils';export default class J extends _0x38156a{['afterInit'](){const _0x3b9d82=this['editor'],{t:t}=_0x3b9d82['locale'],_0x5625c0=_0x3b9d82['config']['get']('heading.options');if(!_0x3b9d82['plugins']['has']('HeadingEditing'))return;const _0x47474e=_0x3b9d82['plugins']['get']('TrackChangesEditing');_0x47474e['enableCommand']('heading',(_0x3238d9,_0x11586d)=>{const _0x157258=_0x11586d['value'],_0x46ee09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x380558=>function(_0x45fdd1,_0x394bcf,_0x33e7b0){return _0x33e7b0['checkChild'](_0x45fdd1['parent'],_0x394bcf)&&!_0x33e7b0['isObject'](_0x45fdd1)&&_0x45fdd1['name']!=_0x394bcf;}(_0x380558,_0x157258,this['editor']['model']['schema']));_0x3b9d82['model']['change'](()=>{for(const _0x427a04 of _0x46ee09)_0x47474e['markBlockFormat'](_0x427a04,{'commandName':'heading','commandParams':[_0x11586d],'formatGroupId':'blockName'},_0x57a6a9(_0x427a04));});});for(const _0x96666f of _0x5625c0)'paragraph'!=_0x96666f['model']&&_0x47474e['_descriptionFactory']['registerElementLabel'](_0x96666f['model'],_0x4821e6=>{const _0x5b9a84=tn(_0x96666f['model']);return null!==_0x5b9a84?_0xa4b300(_0x4821e6,_0x5b9a84):_0x50c7db(_0x4821e6,_0x96666f['title']);});function _0xa4b300(_0x4621e5,_0x19699a){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x4621e5,_0x19699a]);}function _0x50c7db(_0x196ff4,_0x5a31b2){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x196ff4,_0x5a31b2]);}_0x47474e['_descriptionFactory']['registerDescriptionCallback'](_0x2d5a18=>{const {type:_0x5b30b8,data:_0x37a305}=_0x2d5a18;if('formatBlock'==_0x5b30b8&&_0x37a305&&'heading'==_0x37a305['commandName']){const _0xb491dd=_0x37a305['commandParams'][0x0]['value'],_0x573078=tn(_0xb491dd);if(null!==_0x573078)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xa4b300(0x1,_0x573078))};const _0x2a0ded=_0x5625c0['find'](_0x2827ee=>_0x2827ee['model']===_0xb491dd)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x50c7db(0x1,_0x2a0ded))};}});}}function tn(_0x28ef52){const _0x18f3b1=_0x28ef52['match'](/^heading(\d+)$/);return _0x18f3b1?_0x18f3b1[0x1]:null;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x289188}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class V extends _0x289188{['afterInit'](){const _0x5417a1=this['editor'];if(!_0x5417a1['plugins']['has']('HighlightEditing'))return;const _0x452d53=_0x5417a1['plugins']['get']('TrackChangesEditing');_0x452d53['enableCommand']('highlight',(_0x26e3cd,_0x3bb5e1={})=>{const _0x14c6e0=_0x5417a1['model']['document']['selection'],_0x173c9b=_0x14c6e0['getAttribute']('highlight');let _0x44db24=_0x3bb5e1['value'],_0x52f08d=[];if(_0x14c6e0['isCollapsed']){const _0xe77c02=_0x14c6e0['getFirstPosition']();if(!_0x14c6e0['hasAttribute']('highlight'))return void _0x26e3cd(_0x3bb5e1);{const _0x6f09d6=_0x942851=>_0x942851['item']['getAttribute']('highlight')===_0x173c9b,_0x33731f=_0xe77c02['getLastMatchingPosition'](_0x6f09d6,{'direction':'backward'}),_0x3834b9=_0xe77c02['getLastMatchingPosition'](_0x6f09d6);_0x52f08d=[_0x5417a1['model']['createRange'](_0x33731f,_0x3834b9)],_0x44db24==_0x173c9b&&(_0x44db24=null);}}else for(const _0x53c45c of _0x14c6e0['getRanges']())_0x44db24?_0x52f08d['push'](_0x53c45c):_0x52f08d['push'](...Rt('highlight',_0x53c45c,_0x5417a1['model']));_0x5417a1['model']['change'](()=>{for(const _0xa82ca4 of _0x52f08d)_0x452d53['markInlineFormat'](_0xa82ca4,{'commandName':'highlight','commandParams':[{'value':_0x44db24}]});});});const {t:t}=_0x5417a1['locale'];_0x452d53['_descriptionFactory']['registerDescriptionCallback'](_0x5513e5=>{const {type:_0x1de5aa,data:_0x1b5cb8}=_0x5513e5;if('formatInline'==_0x1de5aa&&_0x1b5cb8&&'highlight'==_0x1b5cb8['commandName']){const _0x28d032=_0x1b5cb8['commandParams'][0x0]['value'];if(_0x28d032){const _0x406b60=_0x5417a1['config']['get']('highlight.options')['find'](_0x5c0a89=>_0x5c0a89['model']==_0x28d032)['title'],_0x52c8fb=_0x5417a1['locale']['_t'](_0x406b60)['toLowerCase']();return{'type':'format','content':t('*Format:*\x20%0',t({'string':'%0\x20highlight','id':'FORMAT_CUSTOM_HIGHLIGHT'},_0x52c8fb))};}return{'type':'format','content':t('*Remove\x20format:*\x20%0',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
23
+ import{Plugin as _0x4f68ca}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class K extends _0x4f68ca{['afterInit'](){const _0x3dc23a=this['editor'];if(!_0x3dc23a['plugins']['has']('HighlightEditing'))return;const _0x31b8af=_0x3dc23a['plugins']['get']('TrackChangesEditing');_0x31b8af['enableCommand']('highlight',(_0x235093,_0x3ab185={})=>{const _0x204441=_0x3dc23a['model']['document']['selection'],_0x3b90c7=_0x204441['getAttribute']('highlight');let _0x51e0f7=_0x3ab185['value'],_0x16bed3=[];if(_0x204441['isCollapsed']){const _0xdbcdc5=_0x204441['getFirstPosition']();if(!_0x204441['hasAttribute']('highlight'))return void _0x235093(_0x3ab185);{const _0x1bfe9a=_0x56cb82=>_0x56cb82['item']['getAttribute']('highlight')===_0x3b90c7,_0x44fb99=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a,{'direction':'backward'}),_0x4516c5=_0xdbcdc5['getLastMatchingPosition'](_0x1bfe9a);_0x16bed3=[_0x3dc23a['model']['createRange'](_0x44fb99,_0x4516c5)],_0x51e0f7==_0x3b90c7&&(_0x51e0f7=null);}}else for(const _0x48052c of _0x204441['getRanges']())_0x51e0f7?_0x16bed3['push'](_0x48052c):_0x16bed3['push'](...Rt('highlight',_0x48052c,_0x3dc23a['model']));_0x3dc23a['model']['change'](()=>{for(const _0x334899 of _0x16bed3)_0x31b8af['markInlineFormat'](_0x334899,{'commandName':'highlight','commandParams':[{'value':_0x51e0f7}]});});});const {t:t}=_0x3dc23a['locale'];_0x31b8af['_descriptionFactory']['registerDescriptionCallback'](_0x2ee754=>{const {type:_0x33d5fb,data:_0x1d9f57}=_0x2ee754;if('formatInline'==_0x33d5fb&&_0x1d9f57&&'highlight'==_0x1d9f57['commandName']){const _0x36a645=_0x1d9f57['commandParams'][0x0]['value'];if(_0x36a645){const _0xceb38a=_0x3dc23a['config']['get']('highlight.options')['find'](_0x46bbc5=>_0x46bbc5['model']==_0x36a645),_0x5ba7bd=_0x3dc23a['locale']['_t'](_0xceb38a['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x5ba7bd),'color':{'value':_0xceb38a['color'],'title':_0xceb38a['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1b577d}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class X extends _0x1b577d{['afterInit'](){const _0x1ff35a=this['editor'];if(!_0x1ff35a['plugins']['has']('HorizontalLineEditing'))return;_0x1ff35a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x64fa43=_0x1ff35a['plugins']['get']('TrackChangesEditing'),{t:t}=_0x1ff35a['locale'];_0x64fa43['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x335fb3=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x335fb3)),_0x1ff35a['conversion']['for']('dataDowncast')['elementToElement']({'model':'horizontalLine','view':(_0x4ea109,{writer:_0x1271ba,options:_0x19965a})=>{if(!_0x19965a['showSuggestionHighlights'])return;const _0x929baf=_0x1271ba['createContainerElement']('div'),_0xff1695=_0x1271ba['createEmptyElement']('hr');return _0x1271ba['addClass']('ck-horizontal-line',_0x929baf),_0x1271ba['insert'](_0x1271ba['createPositionAt'](_0x929baf,0x0),_0xff1695),_0x929baf;},'converterPriority':'high'});}}
23
+ import{Plugin as _0x546d9d}from'ckeditor5/src/core';import'../../theme/integrations/horizontalline.css';export default class Q extends _0x546d9d{['afterInit'](){const _0x5e3297=this['editor'];if(!_0x5e3297['plugins']['has']('HorizontalLineEditing'))return;_0x5e3297['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33b906=_0x5e3297['plugins']['get']('TrackChangesEditing'),{t:t}=_0x5e3297['locale'];_0x33b906['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d1b0b=>t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2d1b0b)),_0x5e3297['conversion']['for']('dataDowncast')['elementToElement']({'model':'horizontalLine','view':(_0x18df80,{writer:_0x161533,options:_0xfee6c})=>{if(!_0xfee6c['showSuggestionHighlights'])return;const _0x50e9de=_0x161533['createContainerElement']('div'),_0x166981=_0x161533['createEmptyElement']('hr');return _0x161533['addClass']('ck-horizontal-line',_0x50e9de),_0x161533['insert'](_0x161533['createPositionAt'](_0x50e9de,0x0),_0x166981),_0x50e9de;},'converterPriority':'high'});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x59959b}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0xd08d63}from'ckeditor5/src/utils';import{getCaptionFromImageModelElement as _0x29f369}from'@ckeditor/ckeditor5-image/src/imagecaption/utils';import'../../theme/integrations/image.css';export default class Y extends _0x59959b{['afterInit'](){const _0x31873d=this['editor'];if(!_0x31873d['plugins']['has']('ImageEditing'))return;const _0x578702=_0x31873d['plugins']['get']('TrackChangesEditing'),_0x4f204f=_0x31873d['plugins']['get']('ImageUtils'),_0xf46056={},{t:t}=_0x31873d['locale'];if(_0x578702['enableCommand']('insertImage'),_0x578702['_descriptionFactory']['registerElementLabel']('imageBlock',_0x1c1e8b=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c1e8b)),_0x578702['_descriptionFactory']['registerElementLabel']('imageInline',_0xe72374=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xe72374)),_0x578702['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x31873d['plugins']['has']('ImageUploadEditing')&&_0x578702['enableCommand']('uploadImage'),_0x31873d['plugins']['has']('ImageBlockEditing')&&_0x31873d['plugins']['has']('ImageInlineEditing')&&(_0x578702['enableCommand']('imageTypeInline',(_0x580a48,_0x5bc19d)=>{const _0x8ffbfd=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']);_0x31873d['model']['change'](()=>{_0x578702['markBlockFormat'](_0x8ffbfd,{'commandName':'imageTypeInline','commandParams':[_0x5bc19d]},[],'convertBlockImageToInline');});}),_0x578702['enableCommand']('imageTypeBlock',(_0x284843,_0x57e125)=>{_0x31873d['model']['change'](_0x1f353b=>{let _0x3fea27=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x380372=_0x1f353b['createRangeOn'](_0x3fea27);const _0x5a6c8d=te['fromPosition'](_0x380372['start'],'toPrevious'),_0x47e1f1=te['fromPosition'](_0x380372['end'],'toNext');_0x578702['forceDefaultExecution'](()=>_0x284843(_0x57e125)),_0x3fea27=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x380372=_0x1f353b['createRangeOn'](_0x3fea27);const _0x3bad8d=_0x1f353b['createRange'](_0x5a6c8d,_0x47e1f1);_0x5a6c8d['detach'](),_0x47e1f1['detach'](),_0x578702['markBlockFormat'](_0x3fea27,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x3bad8d['start']['isBefore'](_0x380372['start'])&&_0x578702['markInsertion'](_0x1f353b['createRange'](_0x3bad8d['start'],_0x380372['start']),'convertInlineImageToBlock'),_0x380372['end']['isBefore'](_0x3bad8d['end'])&&_0x578702['markInsertion'](_0x1f353b['createRange'](_0x380372['end'],_0x3bad8d['end']),'convertInlineImageToBlock');});}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x578702['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x578702['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5636f5])=>{const _0x47de2c=_0x578702['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3c2933=_0x5636f5['start'],_0x34eaea=_0x5636f5['end'];const _0x4d963f=_0x31873d['model']['schema']['getNearestSelectionRange'](_0x3c2933,'backward'),_0x2727c1=_0x31873d['model']['schema']['getNearestSelectionRange'](_0x34eaea,'forward');_0x4d963f['isCollapsed']&&(_0x3c2933=_0x4d963f['start']),_0x2727c1['isCollapsed']&&(_0x34eaea=_0x2727c1['end']),_0x47de2c([_0x31873d['model']['createRange'](_0x3c2933,_0x34eaea)]);}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x793339),_0x578702['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x793339)),_0x31873d['plugins']['has']('ImageCaptionEditing')&&(_0x578702['enableCommand']('toggleImageCaption',(_0x5ef233,_0x1a729a)=>{let _0xb958db=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x4cd6fa=_0x29f369(_0xb958db);_0x31873d['model']['change'](()=>{if(_0x4cd6fa)return void _0x578702['markDeletion'](_0x31873d['model']['createRangeOn'](_0x4cd6fa));const _0x390a09=_0x4f204f['isBlockImage'](_0xb958db);_0x5ef233(_0x1a729a),_0xb958db=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x4cd6fa=_0x29f369(_0xb958db),_0x578702['markInsertion'](_0x31873d['model']['createRangeOn'](_0x4cd6fa),_0x390a09?null:'imageCaption');});}),_0x578702['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x793339)),_0x31873d['plugins']['has']('ImageStyleEditing')){_0x578702['enableCommand']('imageStyle',(_0x34506a,_0x50aca0)=>{const _0x3d7216=_0x31873d['plugins']['get']('Users')['me'],_0x4edb3e=_0x31873d['commands']['get']('imageStyle');let _0x3ae71a=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x5b2f31=_0x31873d['model']['createRangeOn'](_0x3ae71a),_0x8db33a=_0x4edb3e['value'];if(_0x8db33a==_0x50aca0['value'])return;const _0x32b224={'commandName':'imageStyle','commandParams':[_0x50aca0],'formatGroupId':_0xd08d63()};_0x31873d['model']['change'](()=>{if(_0x578702['getSuggestions']()['filter'](_0x11768b=>_0x11768b['isInContent']&&_0x3d7216==_0x11768b['author']&&('formatBlock'==_0x11768b['type']||'formatInline'==_0x11768b['type'])&&('imageStylePreApply'==_0x11768b['subType']||'imageStylePostApply'==_0x11768b['subType'])&&_0x11768b['getFirstRange']()['isEqual'](_0x5b2f31))['forEach'](_0xe8f924=>_0x578702['discardSuggestion'](_0xe8f924['head'])),_0x3ae71a=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),_0x5b2f31=_0x31873d['model']['createRangeOn'](_0x3ae71a),_0x4edb3e['refresh'](),_0x31873d['commands']['get']('imageTypeInline')['refresh'](),_0x31873d['commands']['get']('imageTypeBlock')['refresh'](),_0x8db33a=_0x4edb3e['value'],_0x8db33a!=_0x50aca0['value'])return _0x4f204f['isInlineImage'](_0x3ae71a)&&_0x4edb3e['shouldConvertImageType'](_0x50aca0['value'],_0x3ae71a)?(_0x34506a(_0x50aca0),_0x3ae71a=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']),void _0x578702['markBlockFormat'](_0x3ae71a,{..._0x32b224,'commandReversedParams':[{'value':_0x8db33a||null}]},[],'imageStylePreApply')):void(_0x4f204f['isBlockImage'](_0x3ae71a)?_0x578702['markBlockFormat'](_0x3ae71a,_0x32b224,[],'imageStylePostApply'):_0x578702['markInlineFormat'](_0x5b2f31,_0x32b224,'imageStylePostApply'));});});for(const _0x2e9e4d of _0x31873d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf46056[_0x2e9e4d['name']]=_0x2e9e4d['title']['toLowerCase']();_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x20b1a9,_0x1a6254)=>{_0x578702['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x20b1a9,{'commandName':_0x1a6254['commandName'],'commandParams':_0x1a6254['commandReversedParams']});}),_0x578702['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x793339);}const _0xbf822=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54c152(_0x46603e,_0x350486){const _0x1b4cde=_0xbf822['findIndex'](({type:_0xca488,subType:_0x45ecec})=>_0x46603e['type']==_0xca488&&_0x46603e['subType']==_0x45ecec),_0x51e776=_0xbf822['findIndex'](({type:_0x590ac0,subType:_0x55a8f7})=>_0x350486['type']==_0x590ac0&&_0x350486['subType']==_0x55a8f7);if(_0x1b4cde<0x0||_0x51e776<0x0)return!0x1;const _0x1dc447=_0x46603e['getFirstRange'](),_0x194855=_0x350486['getFirstRange']();if((0x0==_0x1b4cde||0x1==_0x1b4cde)&&0x2==_0x51e776&&_0x1dc447['isIntersecting'](_0x194855))return!0x0;if(0x2==_0x1b4cde&&0x3==_0x51e776){const _0x28b9c6=_0x578702['_findSuggestions'](_0x1dc447,'insertion')['filter'](({suggestion:_0x54f6ee,meta:_0x2e9e17})=>_0x2e9e17['isOwn']&&'convertInlineImageToBlock'==_0x54f6ee['subType']);if(_0x28b9c6['length']>0x1&&_0x194855['end']['isEqual'](_0x1dc447['start']))return!0x0;if(0x1==_0x28b9c6['length']&&(_0x1dc447['start']['isEqual'](_0x194855['end'])||_0x1dc447['end']['isEqual'](_0x194855['start'])))return!0x0;}if(0x3==_0x1b4cde&&0x3==_0x51e776&&_0x1dc447['start']['isBefore'](_0x194855['start'])){const _0x4f8d59=_0x1dc447['end']['nodeAfter'],_0x3ec31e=_0x194855['start']['nodeBefore'];return _0x4f204f['isBlockImage'](_0x4f8d59)&&_0x4f8d59===_0x3ec31e;}return!0x1;}function _0x793339(_0xd33b62,_0x1fc865){return _0x54c152(_0xd33b62,_0x1fc865)?[_0xd33b62,_0x1fc865]:_0x54c152(_0x1fc865,_0xd33b62)?[_0x1fc865,_0xd33b62]:null;}_0x31873d['model']['document']['registerPostFixer'](()=>{let _0xae6490=!0x1;const _0x2c49aa=Array['from'](_0x31873d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x172f3c,data:_0x394f42}of _0x2c49aa){const {group:_0x51d3a4,type:_0x3fa3e2,subType:_0x2b6a81,id:_0x1c10e3}=_0x578702['_splitMarkerName'](_0x172f3c);if('suggestion'==_0x51d3a4&&_0x578702['hasSuggestion'](_0x1c10e3)){if('formatBlock'==_0x3fa3e2&&('imageStylePreApply'==_0x2b6a81||'imageStylePostApply'==_0x2b6a81)){const _0x2c675f=_0x578702['getSuggestion'](_0x1c10e3);if(_0x394f42['newRange']){const _0x5e7809=_0x2c675f['getFirstRange']()['getContainedElement']();if(_0x4f204f['isBlockImage'](_0x5e7809))continue;_0x578702['discardSuggestion'](_0x2c675f),_0xae6490=!0x0;}}if('insertion'==_0x3fa3e2&&'imageCaption'==_0x2b6a81&&!_0x394f42['newRange']){const _0x4f460d=_0x578702['getSuggestion'](_0x1c10e3);_0x4f460d['next']&&_0x4f460d['next']['isInContent']&&(_0x578702['discardSuggestion'](_0x4f460d['next']),_0xae6490=!0x0);}}}return _0xae6490;}),_0x31873d['plugins']['has']('ImageResize')&&_0x578702['enableCommand']('resizeImage',(_0x348442,_0x110e95)=>{const _0x330146=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']);_0x330146['getAttribute']('width')!=_0x110e95['width']&&_0x31873d['model']['change'](()=>{_0x578702['markBlockFormat'](_0x330146,{'commandName':'resizeImage','commandParams':[_0x110e95]});});}),_0x31873d['plugins']['has']('ImageTextAlternativeEditing')&&_0x578702['enableCommand']('imageTextAlternative',(_0x5a7f87,_0xad9f76)=>{const _0x1ff4e5=_0x4f204f['getClosestSelectedImageElement'](_0x31873d['model']['document']['selection']);(_0x1ff4e5['hasAttribute']('alt')?_0x1ff4e5['getAttribute']('alt'):'')!=_0xad9f76['newValue']&&_0x31873d['model']['change'](()=>{_0x578702['markBlockFormat'](_0x1ff4e5,{'commandName':'imageTextAlternative','commandParams':[_0xad9f76]});});}),_0x578702['_descriptionFactory']['registerDescriptionCallback'](_0x45529c=>{if(!!_0xbf822['find'](({type:_0x13ff23,subType:_0x4fda55})=>_0x45529c['type']==_0x13ff23&&_0x45529c['subType']==_0x4fda55))return _0x45529c['previous']?{}:void 0x0;}),_0x578702['_descriptionFactory']['registerDescriptionCallback'](_0x5a4060=>{if('insertion'==_0x5a4060['type']||'deletion'==_0x5a4060['type']){const _0x3a6a12=_0x5a4060['getContainedElement']();if(_0x3a6a12&&_0x3a6a12['is']('element','caption'))return{'type':'insertion'==_0x5a4060['type']?'addObject':'removeObject','name':_0x3a6a12['name'],'quantity':0x1};}}),_0x578702['_descriptionFactory']['registerDescriptionCallback'](_0x4ed528=>'formatBlock'==_0x4ed528['type']&&'convertInlineImageToBlock'==_0x4ed528['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ed528['type']&&'convertBlockImageToInline'==_0x4ed528['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x578702['_descriptionFactory']['registerDescriptionCallback'](_0x22d419=>{const {data:_0x50669c}=_0x22d419;if(_0x50669c){if('imageStyle'==_0x50669c['commandName']){const _0x1d9f59=_0x50669c['commandParams'][0x0]['value'];return _0x3a9f06('side'===_0x1d9f59?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0xf46056[_0x1d9f59]||_0x1d9f59);}if('imageTextAlternative'==_0x50669c['commandName']){const _0x166820=_0x50669c['commandParams'][0x0]['newValue'];return _0x166820?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x166820+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x50669c['commandName']){const _0xf85731=_0x50669c['commandParams'][0x0]['width'];return _0xf85731?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0xf85731)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x3a9f06(_0x3971d4){return{'type':'format','content':t('*Format:*\x20%0',_0x3971d4)};}});}}
23
+ import{Plugin as _0x366f31}from'ckeditor5/src/core';import{LivePosition as te}from'ckeditor5/src/engine';import{uid as _0x236ba6}from'ckeditor5/src/utils';import{getCaptionFromImageModelElement as _0x51443d}from'@ckeditor/ckeditor5-image/src/imagecaption/utils';import'../../theme/integrations/image.css';export default class V extends _0x366f31{['afterInit'](){const _0x1fa6a3=this['editor'];if(!_0x1fa6a3['plugins']['has']('ImageEditing'))return;const _0x10823f=_0x1fa6a3['plugins']['get']('TrackChangesEditing'),_0x34af2=_0x1fa6a3['plugins']['get']('ImageUtils'),_0x999d63={},{t:t}=_0x1fa6a3['locale'];if(_0x10823f['enableCommand']('insertImage'),_0x10823f['_descriptionFactory']['registerElementLabel']('imageBlock',_0x234801=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x234801)),_0x10823f['_descriptionFactory']['registerElementLabel']('imageInline',_0x4381e1=>t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4381e1)),_0x10823f['_descriptionFactory']['registerElementLabel']('caption',t({'string':'caption','id':'ELEMENT_CAPTION'})),_0x1fa6a3['plugins']['has']('ImageUploadEditing')&&_0x10823f['enableCommand']('uploadImage'),_0x1fa6a3['plugins']['has']('ImageBlockEditing')&&_0x1fa6a3['plugins']['has']('ImageInlineEditing')&&(_0x10823f['enableCommand']('imageTypeInline',(_0x3c92d3,_0xcde06b)=>{const _0x305085=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x305085,{'commandName':'imageTypeInline','commandParams':[_0xcde06b]},[],'convertBlockImageToInline');});}),_0x10823f['enableCommand']('imageTypeBlock',(_0x326c08,_0x24a7bf)=>{_0x1fa6a3['model']['change'](_0x5e4442=>{let _0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x377c9a=te['fromPosition'](_0x324d61['start'],'toPrevious'),_0x3473bf=te['fromPosition'](_0x324d61['end'],'toNext');_0x10823f['forceDefaultExecution'](()=>_0x326c08(_0x24a7bf)),_0x139291=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x324d61=_0x5e4442['createRangeOn'](_0x139291);const _0x15bfab=_0x5e4442['createRange'](_0x377c9a,_0x3473bf);_0x377c9a['detach'](),_0x3473bf['detach'](),_0x10823f['markBlockFormat'](_0x139291,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x15bfab['start']['isBefore'](_0x324d61['start'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x15bfab['start'],_0x324d61['start']),'convertInlineImageToBlock'),_0x324d61['end']['isBefore'](_0x15bfab['end'])&&_0x10823f['markInsertion'](_0x5e4442['createRange'](_0x324d61['end'],_0x15bfab['end']),'convertInlineImageToBlock');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x540cc2])=>{const _0x195feb=_0x10823f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41e06c=_0x540cc2['start'],_0x302c81=_0x540cc2['end'];const _0x2f128b=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x41e06c,'backward'),_0x38d185=_0x1fa6a3['model']['schema']['getNearestSelectionRange'](_0x302c81,'forward');_0x2f128b['isCollapsed']&&(_0x41e06c=_0x2f128b['start']),_0x38d185['isCollapsed']&&(_0x302c81=_0x38d185['end']),_0x195feb([_0x1fa6a3['model']['createRange'](_0x41e06c,_0x302c81)]);}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2daf3e),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageCaptionEditing')&&(_0x10823f['enableCommand']('toggleImageCaption',(_0x148b76,_0x19a05f)=>{let _0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78);_0x1fa6a3['model']['change'](()=>{if(_0x4c9a43)return void _0x10823f['markDeletion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43));const _0x2c20ba=_0x34af2['isBlockImage'](_0x170f78);_0x148b76(_0x19a05f),_0x170f78=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x4c9a43=_0x51443d(_0x170f78),_0x10823f['markInsertion'](_0x1fa6a3['model']['createRangeOn'](_0x4c9a43),_0x2c20ba?null:'imageCaption');});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2daf3e)),_0x1fa6a3['plugins']['has']('ImageStyleEditing')){_0x10823f['enableCommand']('imageStyle',(_0x1b121b,_0xf0a0fd)=>{const _0x2a3a21=_0x1fa6a3['plugins']['get']('Users')['me'],_0x238034=_0x1fa6a3['commands']['get']('imageStyle');let _0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x47f2d7=_0x238034['value'];if(_0x47f2d7==_0xf0a0fd['value'])return;const _0x4da482={'commandName':'imageStyle','commandParams':[_0xf0a0fd],'formatGroupId':_0x236ba6()};_0x1fa6a3['model']['change'](()=>{if(_0x10823f['getSuggestions']()['filter'](_0x3b123b=>_0x3b123b['isInContent']&&_0x2a3a21==_0x3b123b['author']&&('formatBlock'==_0x3b123b['type']||'formatInline'==_0x3b123b['type'])&&('imageStylePreApply'==_0x3b123b['subType']||'imageStylePostApply'==_0x3b123b['subType'])&&_0x3b123b['getFirstRange']()['isEqual'](_0x35a2f0))['forEach'](_0x49bafa=>_0x10823f['discardSuggestion'](_0x49bafa['head'])),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),_0x35a2f0=_0x1fa6a3['model']['createRangeOn'](_0x189d74),_0x238034['refresh'](),_0x1fa6a3['commands']['get']('imageTypeInline')['refresh'](),_0x1fa6a3['commands']['get']('imageTypeBlock')['refresh'](),_0x47f2d7=_0x238034['value'],_0x47f2d7!=_0xf0a0fd['value'])return _0x34af2['isInlineImage'](_0x189d74)&&_0x238034['shouldConvertImageType'](_0xf0a0fd['value'],_0x189d74)?(_0x1b121b(_0xf0a0fd),_0x189d74=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']),void _0x10823f['markBlockFormat'](_0x189d74,{..._0x4da482,'commandReversedParams':[{'value':_0x47f2d7||null}]},[],'imageStylePreApply')):void(_0x34af2['isBlockImage'](_0x189d74)?_0x10823f['markBlockFormat'](_0x189d74,_0x4da482,[],'imageStylePostApply'):_0x10823f['markInlineFormat'](_0x35a2f0,_0x4da482,'imageStylePostApply'));});});for(const _0x41c5d2 of _0x1fa6a3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x999d63[_0x41c5d2['name']]=_0x41c5d2['title']['toLowerCase']();_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',()=>{}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x365f39,_0x2941f6)=>{_0x10823f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x365f39,{'commandName':_0x2941f6['commandName'],'commandParams':_0x2941f6['commandReversedParams']});}),_0x10823f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',_0x2daf3e);}const _0x15464e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33ba78(_0x4200e4,_0x171eb5){const _0x2666be=_0x15464e['findIndex'](({type:_0x277d1d,subType:_0x11d005})=>_0x4200e4['type']==_0x277d1d&&_0x4200e4['subType']==_0x11d005),_0x4411c0=_0x15464e['findIndex'](({type:_0x199eac,subType:_0x2b3031})=>_0x171eb5['type']==_0x199eac&&_0x171eb5['subType']==_0x2b3031);if(_0x2666be<0x0||_0x4411c0<0x0)return!0x1;const _0x41f241=_0x4200e4['getFirstRange'](),_0x3d88e4=_0x171eb5['getFirstRange']();if((0x0==_0x2666be||0x1==_0x2666be)&&0x2==_0x4411c0&&_0x41f241['isIntersecting'](_0x3d88e4))return!0x0;if(0x2==_0x2666be&&0x3==_0x4411c0){const _0xa6a1c4=_0x10823f['_findSuggestions'](_0x41f241,'insertion')['filter'](({suggestion:_0x533a56,meta:_0x47f3fd})=>_0x47f3fd['isOwn']&&'convertInlineImageToBlock'==_0x533a56['subType']);if(_0xa6a1c4['length']>0x1&&_0x3d88e4['end']['isEqual'](_0x41f241['start']))return!0x0;if(0x1==_0xa6a1c4['length']&&(_0x41f241['start']['isEqual'](_0x3d88e4['end'])||_0x41f241['end']['isEqual'](_0x3d88e4['start'])))return!0x0;}if(0x3==_0x2666be&&0x3==_0x4411c0&&_0x41f241['start']['isBefore'](_0x3d88e4['start'])){const _0x4c9203=_0x41f241['end']['nodeAfter'],_0x45b313=_0x3d88e4['start']['nodeBefore'];return _0x34af2['isBlockImage'](_0x4c9203)&&_0x4c9203===_0x45b313;}return!0x1;}function _0x2daf3e(_0x238e87,_0x4e794d){return _0x33ba78(_0x238e87,_0x4e794d)?[_0x238e87,_0x4e794d]:_0x33ba78(_0x4e794d,_0x238e87)?[_0x4e794d,_0x238e87]:null;}_0x1fa6a3['model']['document']['registerPostFixer'](()=>{let _0x519e5e=!0x1;const _0x15c89b=Array['from'](_0x1fa6a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x370126,data:_0x95eee3}of _0x15c89b){const {group:_0x5355b3,type:_0x385494,subType:_0x21e6a8,id:_0x454618}=_0x10823f['_splitMarkerName'](_0x370126);if('suggestion'==_0x5355b3&&_0x10823f['hasSuggestion'](_0x454618)){if('formatBlock'==_0x385494&&('imageStylePreApply'==_0x21e6a8||'imageStylePostApply'==_0x21e6a8)){const _0x23c638=_0x10823f['getSuggestion'](_0x454618);if(_0x95eee3['newRange']){const _0xab53c2=_0x23c638['getFirstRange']()['getContainedElement']();if(_0x34af2['isBlockImage'](_0xab53c2))continue;_0x10823f['discardSuggestion'](_0x23c638),_0x519e5e=!0x0;}}if('insertion'==_0x385494&&'imageCaption'==_0x21e6a8&&!_0x95eee3['newRange']){const _0x3457ae=_0x10823f['getSuggestion'](_0x454618);_0x3457ae['next']&&_0x3457ae['next']['isInContent']&&(_0x10823f['discardSuggestion'](_0x3457ae['next']),_0x519e5e=!0x0);}}}return _0x519e5e;}),_0x1fa6a3['plugins']['has']('ImageResize')&&_0x10823f['enableCommand']('resizeImage',(_0x2764db,_0x3c1ada)=>{const _0x414d26=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);_0x414d26['getAttribute']('width')!=_0x3c1ada['width']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0x414d26,{'commandName':'resizeImage','commandParams':[_0x3c1ada]});});}),_0x1fa6a3['plugins']['has']('ImageTextAlternativeEditing')&&_0x10823f['enableCommand']('imageTextAlternative',(_0x48c1bd,_0x6c1d71)=>{const _0xf87f3b=_0x34af2['getClosestSelectedImageElement'](_0x1fa6a3['model']['document']['selection']);(_0xf87f3b['hasAttribute']('alt')?_0xf87f3b['getAttribute']('alt'):'')!=_0x6c1d71['newValue']&&_0x1fa6a3['model']['change'](()=>{_0x10823f['markBlockFormat'](_0xf87f3b,{'commandName':'imageTextAlternative','commandParams':[_0x6c1d71]});});}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5cb408=>{if(!!_0x15464e['find'](({type:_0xbf7f35,subType:_0x524444})=>_0x5cb408['type']==_0xbf7f35&&_0x5cb408['subType']==_0x524444))return _0x5cb408['previous']?{}:void 0x0;}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x329347=>{if('insertion'==_0x329347['type']||'deletion'==_0x329347['type']){const _0x19bee6=_0x329347['getContainedElement']();if(_0x19bee6&&_0x19bee6['is']('element','caption'))return{'type':'insertion'==_0x329347['type']?'addObject':'removeObject','name':_0x19bee6['name'],'quantity':0x1};}}),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x5c1a5e=>'formatBlock'==_0x5c1a5e['type']&&'convertInlineImageToBlock'==_0x5c1a5e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c1a5e['type']&&'convertBlockImageToInline'==_0x5c1a5e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10823f['_descriptionFactory']['registerDescriptionCallback'](_0x477765=>{const {data:_0x482c51}=_0x477765;if(_0x482c51){if('imageStyle'==_0x482c51['commandName']){const _0x5a1f4c=_0x482c51['commandParams'][0x0]['value'];return _0x1ee4a5('side'===_0x5a1f4c?t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'}):_0x999d63[_0x5a1f4c]||_0x5a1f4c);}if('imageTextAlternative'==_0x482c51['commandName']){const _0x10af19=_0x482c51['commandParams'][0x0]['newValue'];return _0x10af19?{'type':'format','content':t('*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10af19+'\x22')}:{'type':'format','content':t('*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x482c51['commandName']){const _0x355576=_0x482c51['commandParams'][0x0]['width'];return _0x355576?{'type':'format','content':t('*Set\x20image\x20width:*\x20%0',_0x355576)}:{'type':'format','content':t('*Reset\x20image\x20width*')};}}function _0x1ee4a5(_0x1f6abb){return{'type':'format','content':t('*Format:*\x20%0',_0x1f6abb)};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4e636d}from'ckeditor5/src/core';export default class Z extends _0x4e636d{['afterInit'](){const _0x357e6b=this['editor'],_0x17cdf5=_0x357e6b['plugins']['get']('TrackChangesEditing');_0x357e6b['plugins']['has']('IndentEditing')&&(_0x17cdf5['enableCommand']('indent'),_0x17cdf5['enableCommand']('outdent'));const {t:t}=_0x357e6b['locale'];if(_0x357e6b['plugins']['has']('IndentBlock')){for(const _0x4f1837 of['indentBlock','outdentBlock'])_0x17cdf5['enableCommand'](_0x4f1837,()=>{const _0x2494ca=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2b5dd7=>this['editor']['model']['schema']['checkAttribute'](_0x2b5dd7,'blockIndent'));_0x357e6b['model']['change'](()=>{for(const _0x242aa2 of _0x2494ca)_0x17cdf5['markBlockFormat'](_0x242aa2,{'commandName':_0x4f1837,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x17cdf5['_descriptionFactory']['registerDescriptionCallback'](_0x53b83b=>{const {data:_0x23e100}=_0x53b83b;if(!_0x23e100)return;if('indentBlock'!=_0x23e100['commandName']&&'outdentBlock'!=_0x23e100['commandName'])return;const _0x5b7d6b=_0x53b83b['getItems']()[0x0],_0x25deb0=_0x17cdf5['_descriptionFactory']['getItemLabel'](_0x5b7d6b['name']);return'indentBlock'==_0x23e100['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x25deb0)}:'outdentBlock'==_0x23e100['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x25deb0)}:void 0x0;});}}}
23
+ import{Plugin as _0x206d6c}from'ckeditor5/src/core';export default class X extends _0x206d6c{['afterInit'](){const _0xc6b755=this['editor'],_0x112cbb=_0xc6b755['plugins']['get']('TrackChangesEditing');_0xc6b755['plugins']['has']('IndentEditing')&&(_0x112cbb['enableCommand']('indent'),_0x112cbb['enableCommand']('outdent'));const {t:t}=_0xc6b755['locale'];if(_0xc6b755['plugins']['has']('IndentBlock')){for(const _0x46fc5a of['indentBlock','outdentBlock'])_0x112cbb['enableCommand'](_0x46fc5a,()=>{const _0x39bb7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x52e3ae=>this['editor']['model']['schema']['checkAttribute'](_0x52e3ae,'blockIndent'));_0xc6b755['model']['change'](()=>{for(const _0x44206c of _0x39bb7c)_0x112cbb['markBlockFormat'](_0x44206c,{'commandName':_0x46fc5a,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x112cbb['_descriptionFactory']['registerDescriptionCallback'](_0x2fedc6=>{const {data:_0x49a2b3}=_0x2fedc6;if(!_0x49a2b3)return;if('indentBlock'!=_0x49a2b3['commandName']&&'outdentBlock'!=_0x49a2b3['commandName'])return;const _0x264174=_0x2fedc6['getItems']()[0x0],_0x585b6c=_0x112cbb['_descriptionFactory']['getItemLabel'](_0x264174['name']);return'indentBlock'==_0x49a2b3['commandName']?{'type':'format','content':t('*Indent:*\x20%0',_0x585b6c)}:'outdentBlock'==_0x49a2b3['commandName']?{'type':'format','content':t('*Outdent:*\x20%0',_0x585b6c)}:void 0x0;});}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3153=['requires','enableCommand','get','editor','plugins','init'];(function(_0x3ad2ad,_0x315308){var _0xa372a7=function(_0x41a578){while(--_0x41a578){_0x3ad2ad['push'](_0x3ad2ad['shift']());}};_0xa372a7(++_0x315308);}(_0x3153,0x15b));var _0xa372=function(_0x3ad2ad,_0x315308){_0x3ad2ad=_0x3ad2ad-0x0;var _0xa372a7=_0x3153[_0x3ad2ad];return _0xa372a7;};import{Plugin as _0x10e8a5}from'ckeditor5/src/core';import{Input as _0x32bc55}from'ckeditor5/src/typing';export default class tt extends _0x10e8a5{static get[_0xa372('0x1')](){return[_0x32bc55];}[_0xa372('0x0')](){this[_0xa372('0x4')][_0xa372('0x5')][_0xa372('0x3')]('TrackChangesEditing')[_0xa372('0x2')]('input');}}
23
+ var _0x595e=['get','requires','init','input','plugins','enableCommand','TrackChangesEditing'];(function(_0x3c321f,_0x595e89){var _0x511cbb=function(_0x3f97d2){while(--_0x3f97d2){_0x3c321f['push'](_0x3c321f['shift']());}};_0x511cbb(++_0x595e89);}(_0x595e,0x161));var _0x511c=function(_0x3c321f,_0x595e89){_0x3c321f=_0x3c321f-0x0;var _0x511cbb=_0x595e[_0x3c321f];return _0x511cbb;};import{Plugin as _0x1af515}from'ckeditor5/src/core';import{Input as _0xebf77}from'ckeditor5/src/typing';export default class Y extends _0x1af515{static get[_0x511c('0x5')](){return[_0xebf77];}[_0x511c('0x6')](){this['editor'][_0x511c('0x1')][_0x511c('0x4')](_0x511c('0x3'))[_0x511c('0x2')](_0x511c('0x0'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xd0ba41}from'ckeditor5/src/core';import{findAttributeRange as _0x46d5ad}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class it extends _0xd0ba41{['afterInit'](){const _0x246748=this['editor'];if(!_0x246748['plugins']['has']('LinkEditing'))return;const _0x44065d=_0x246748['plugins']['get']('TrackChangesEditing');_0x44065d['enableCommand']('link',(_0x3ca1f5,_0x307b44)=>{const _0x27376b=_0x246748['model']['document']['selection'];let _0x1e0d11=[];if(_0x27376b['isCollapsed']){if(!_0x27376b['hasAttribute']('linkHref'))return void _0x3ca1f5(_0x307b44);{const _0x49d84f=_0x46d5ad(_0x27376b['getFirstPosition'](),'linkHref',_0x27376b['getAttribute']('linkHref'),_0x246748['model']);_0x1e0d11=[_0x49d84f];}}else _0x1e0d11=Array['from'](_0x27376b['getRanges']());_0x246748['model']['change'](()=>{for(const _0x1173f of _0x1e0d11)_0x44065d['markInlineFormat'](_0x1173f,{'commandName':'link','commandParams':[_0x307b44]});});}),_0x44065d['enableCommand']('unlink',()=>{const _0x42ae6a=this['editor']['model'],_0x15f90f=_0x42ae6a['document']['selection'];_0x42ae6a['change'](()=>{let _0x908fa7=[];if(_0x15f90f['isCollapsed'])_0x908fa7=[_0x46d5ad(_0x15f90f['getFirstPosition'](),'linkHref',_0x15f90f['getAttribute']('linkHref'),_0x246748['model'])];else _0x908fa7=Rt('linkHref',_0x15f90f['getFirstRange'](),_0x246748['model']);for(const _0xd1b84d of _0x908fa7)_0x44065d['markInlineFormat'](_0xd1b84d,{'commandName':'unlink','commandParams':[]});});}),_0x44065d['_descriptionFactory']['registerDescriptionCallback'](_0x225fab=>{const {data:_0x34bf75}=_0x225fab,{t:t}=_0x246748['locale'];if(_0x34bf75){if('link'==_0x34bf75['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x34bf75['commandParams'][0x0]+'\x22')};return'unlink'==_0x34bf75['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}
23
+ import{Plugin as _0x34f7bf}from'ckeditor5/src/core';import{findAttributeRange as _0x531d6f}from'ckeditor5/src/typing';import{getRangesWithAttribute as Rt}from'./utils';export default class Z extends _0x34f7bf{['afterInit'](){const _0x5f590a=this['editor'];if(!_0x5f590a['plugins']['has']('LinkEditing'))return;const _0x26cc9e=_0x5f590a['plugins']['get']('TrackChangesEditing');_0x26cc9e['enableCommand']('link',(_0x37de3d,_0xd53914)=>{const _0x291084=_0x5f590a['model']['document']['selection'];let _0x2e3d8b=[];if(_0x291084['isCollapsed']){if(!_0x291084['hasAttribute']('linkHref'))return void _0x37de3d(_0xd53914);{const _0x270ee8=_0x531d6f(_0x291084['getFirstPosition'](),'linkHref',_0x291084['getAttribute']('linkHref'),_0x5f590a['model']);_0x2e3d8b=[_0x270ee8];}}else _0x2e3d8b=Array['from'](_0x291084['getRanges']());_0x5f590a['model']['change'](()=>{for(const _0x3bf0b6 of _0x2e3d8b)_0x26cc9e['markInlineFormat'](_0x3bf0b6,{'commandName':'link','commandParams':[_0xd53914]});});}),_0x26cc9e['enableCommand']('unlink',()=>{const _0x2f9f5c=this['editor']['model'],_0x308522=_0x2f9f5c['document']['selection'];_0x2f9f5c['change'](()=>{let _0x573fd6=[];if(_0x308522['isCollapsed'])_0x573fd6=[_0x531d6f(_0x308522['getFirstPosition'](),'linkHref',_0x308522['getAttribute']('linkHref'),_0x5f590a['model'])];else _0x573fd6=Rt('linkHref',_0x308522['getFirstRange'](),_0x5f590a['model']);for(const _0x5dde3b of _0x573fd6)_0x26cc9e['markInlineFormat'](_0x5dde3b,{'commandName':'unlink','commandParams':[]});});}),_0x26cc9e['_descriptionFactory']['registerDescriptionCallback'](_0x21cb99=>{const {data:_0x366666}=_0x21cb99,{t:t}=_0x5f590a['locale'];if(_0x366666){if('link'==_0x366666['commandName'])return{'type':'format','content':t('*Set\x20link:*\x20%0','\x22'+_0x366666['commandParams'][0x0]+'\x22')};return'unlink'==_0x366666['commandName']?{'type':'format','content':t('*Remove\x20link*')}:void 0x0;}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xa1e26c}from'ckeditor5/src/core';export default class st extends _0xa1e26c{['afterInit'](){const _0x2efdf4=this['editor'];if(!_0x2efdf4['plugins']['has']('ListEditing'))return;const _0x5623bf=_0x2efdf4['plugins']['get']('TrackChangesEditing'),_0x43d0a0=_0x2efdf4['plugins']['has']('TodoListEditing');function _0x295a6b(_0x532514){return()=>{const _0x4fc2ae=_0x2efdf4['model']['document']['selection'],_0x2cecb0=_0x2efdf4['commands']['get'](_0x532514);if(_0x2cecb0['value'])return void _0x2efdf4['execute']('paragraph',{});const _0x41d9c4=_0x532514['slice'](0x0,-0x4),_0x55c946=function(_0x3cd8c2,_0x5ce157,_0xba7cb7){let _0x1c3901=Array['from'](_0x3cd8c2)['filter'](_0x475677=>function(_0x1a67bc,_0x5e5132){return _0x5e5132['checkChild'](_0x1a67bc['parent'],'listItem')&&!_0x5e5132['isObject'](_0x1a67bc);}(_0x475677,_0xba7cb7));_0x1c3901=_0x1c3901['filter'](_0x2929c0=>!_0x2929c0['is']('element','listItem')||_0x2929c0['getAttribute']('listType')!=_0x5ce157);const _0x44b731=new Set();for(const _0x217174 of _0x1c3901)_0x217174['is']('element','listItem')?_0x44b731['add'](ie(_0x217174)):_0x44b731['add'](_0x217174);return Array['from'](_0x44b731);}(_0x4fc2ae['getSelectedBlocks'](),_0x41d9c4,_0x2efdf4['model']['schema']);_0x2efdf4['model']['change'](()=>{for(const _0x23e9bb of _0x55c946)_0x5623bf['markBlockFormat'](_0x23e9bb,{'commandName':_0x532514,'commandParams':[{'forceValue':!_0x2cecb0['value']}],'formatGroupId':'blockName'},oe(_0x23e9bb));});};}function _0x25ed05(_0x4d38a0){return()=>{const _0x5224aa=function(_0x1dc3f5){const _0xa64359=(_0x1dc3f5=Array['from'](_0x1dc3f5))['findIndex'](_0x3cf226=>'listItem'!=_0x3cf226['name']);return _0xa64359>-0x1&&(_0x1dc3f5=_0x1dc3f5['slice'](0x0,_0xa64359)),_0x1dc3f5;}(_0x2efdf4['model']['document']['selection']['getSelectedBlocks']()),_0x5df711=_0x2efdf4['model']['createRange'](_0x2efdf4['model']['createPositionAt'](_0x5224aa[0x0],'before'),_0x2efdf4['model']['createPositionAt'](_0x5224aa[_0x5224aa['length']-0x1],'end'));_0x2efdf4['model']['change'](()=>{_0x5623bf['markBlockFormat'](_0x5df711,{'commandName':_0x4d38a0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x114687){const _0x4cc60e=new Set();for(const _0x2ae132 of _0x114687){let _0x571109=_0x2ae132['nextSibling'];for(;_0x571109&&_0x571109['getAttribute']('listIndent')>_0x2ae132['getAttribute']('listIndent');)_0x4cc60e['add'](_0x571109),_0x571109=_0x571109['nextSibling'];}return Array['from'](_0x4cc60e);}(_0x5224aa));});};}_0x5623bf['enableCommand']('numberedList',_0x295a6b('numberedList')),_0x5623bf['enableCommand']('bulletedList',_0x295a6b('bulletedList')),_0x43d0a0&&_0x5623bf['enableCommand']('todoList',_0x295a6b('todoList')),_0x5623bf['enableCommand']('indentList',_0x25ed05('indentList')),_0x5623bf['enableCommand']('outdentList',_0x25ed05('outdentList')),_0x43d0a0&&_0x5623bf['enableCommand']('checkTodoList',()=>{const _0x582abc=_0x2efdf4['commands']['get']('checkTodoList'),_0x460e16=Array['from'](_0x582abc['_selectedElements']);_0x460e16['filter'](_0x540478=>_0x540478['getAttribute']('todoListChecked')!=_0x582abc['value']),_0x2efdf4['model']['change'](()=>{for(const _0x308470 of _0x460e16)_0x5623bf['markBlockFormat'](_0x308470,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x582abc['value']}]});});});const {t:t}=_0x2efdf4['locale'];_0x5623bf['_descriptionFactory']['registerElementLabel']('listItem',_0x32f4e1=>t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32f4e1)),_0x5623bf['_descriptionFactory']['registerDescriptionCallback'](_0x53b964=>{const {data:_0x1124ac}=_0x53b964;if(_0x1124ac){if('numberedList'==_0x1124ac['commandName']||'bulletedList'==_0x1124ac['commandName']||'todoList'==_0x1124ac['commandName'])switch(_0x1124ac['commandName']['replace']('List','')){case'bulleted':return _0x250d36(t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'}));case'numbered':return _0x250d36(t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'}));case'todo':return _0x250d36(t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'}));}if('indentList'==_0x1124ac['commandName'])return{'type':'format','content':t('*Indent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('outdentList'==_0x1124ac['commandName'])return{'type':'format','content':t('*Outdent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('checkTodoList'==_0x1124ac['commandName'])return _0x1124ac['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Check\x20item*')}:{'type':'format','content':t('*Uncheck\x20item*')};}function _0x250d36(_0x16a5df){return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x16a5df)};}});}}function ie(_0x4df460){const _0x45fcb0=_0x4df460['getAttribute']('listIndent');if(0x0==_0x45fcb0)return _0x4df460;let _0x190d54=_0x4df460;for(;_0x4df460['previousSibling']&&_0x4df460['previousSibling']['is']('element','listItem');){const _0x4e0b2e=_0x4df460['previousSibling']['getAttribute']('listIndent');if(_0x4e0b2e==_0x45fcb0)_0x190d54=_0x4df460['previousSibling'];else{if(_0x4e0b2e<_0x45fcb0)break;}_0x4df460=_0x4df460['previousSibling'];}return _0x190d54;}function oe(_0x4b7e16){const _0x1cc121=[];if(_0x4b7e16['is']('element','listItem')&&_0x4b7e16['getAttribute']('listIndent')>0x0){let _0x260b9f=_0x4b7e16['nextSibling'];for(;_0x260b9f&&'listItem'==_0x260b9f['name']&&_0x260b9f['getAttribute']('listIndent')==_0x4b7e16['getAttribute']('listIndent');)_0x1cc121['push'](_0x260b9f),_0x260b9f=_0x260b9f['nextSibling'];}return _0x1cc121;}
23
+ import{Plugin as _0x166682}from'ckeditor5/src/core';export default class tt extends _0x166682{['afterInit'](){const _0x4aeca0=this['editor'];if(!_0x4aeca0['plugins']['has']('ListEditing'))return;const _0x1a7c32=_0x4aeca0['plugins']['get']('TrackChangesEditing'),_0x5b2573=_0x4aeca0['plugins']['has']('TodoListEditing');function _0x193e0d(_0x2d14e5){return()=>{const _0x38f242=_0x4aeca0['model']['document']['selection'],_0x29a18d=_0x4aeca0['commands']['get'](_0x2d14e5);if(_0x29a18d['value'])return void _0x4aeca0['execute']('paragraph',{});const _0x4e4586=_0x2d14e5['slice'](0x0,-0x4),_0x1d0a5e=function(_0x5d30ab,_0x5d9d81,_0x7ea7b1){let _0x3ef630=Array['from'](_0x5d30ab)['filter'](_0x4336b7=>function(_0x402639,_0x6ac0ed){return _0x6ac0ed['checkChild'](_0x402639['parent'],'listItem')&&!_0x6ac0ed['isObject'](_0x402639);}(_0x4336b7,_0x7ea7b1));_0x3ef630=_0x3ef630['filter'](_0x55f56e=>!_0x55f56e['is']('element','listItem')||_0x55f56e['getAttribute']('listType')!=_0x5d9d81);const _0x14380e=new Set();for(const _0x29f0e5 of _0x3ef630)_0x29f0e5['is']('element','listItem')?_0x14380e['add'](Zt(_0x29f0e5)):_0x14380e['add'](_0x29f0e5);return Array['from'](_0x14380e);}(_0x38f242['getSelectedBlocks'](),_0x4e4586,_0x4aeca0['model']['schema']);_0x4aeca0['model']['change'](()=>{for(const _0x204c06 of _0x1d0a5e)_0x1a7c32['markBlockFormat'](_0x204c06,{'commandName':_0x2d14e5,'commandParams':[{'forceValue':!_0x29a18d['value']}],'formatGroupId':'blockName'},$t(_0x204c06));});};}function _0x144840(_0x37c1a2){return()=>{const _0x216bba=function(_0x3966f4){const _0x3ff6ad=(_0x3966f4=Array['from'](_0x3966f4))['findIndex'](_0x35432b=>'listItem'!=_0x35432b['name']);return _0x3ff6ad>-0x1&&(_0x3966f4=_0x3966f4['slice'](0x0,_0x3ff6ad)),_0x3966f4;}(_0x4aeca0['model']['document']['selection']['getSelectedBlocks']()),_0x4a1b7b=_0x4aeca0['model']['createRange'](_0x4aeca0['model']['createPositionAt'](_0x216bba[0x0],'before'),_0x4aeca0['model']['createPositionAt'](_0x216bba[_0x216bba['length']-0x1],'end'));_0x4aeca0['model']['change'](()=>{_0x1a7c32['markBlockFormat'](_0x4a1b7b,{'commandName':_0x37c1a2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x34c958){const _0x4f04f6=new Set();for(const _0x2a2c73 of _0x34c958){let _0x53b967=_0x2a2c73['nextSibling'];for(;_0x53b967&&_0x53b967['getAttribute']('listIndent')>_0x2a2c73['getAttribute']('listIndent');)_0x4f04f6['add'](_0x53b967),_0x53b967=_0x53b967['nextSibling'];}return Array['from'](_0x4f04f6);}(_0x216bba));});};}_0x1a7c32['enableCommand']('numberedList',_0x193e0d('numberedList')),_0x1a7c32['enableCommand']('bulletedList',_0x193e0d('bulletedList')),_0x5b2573&&_0x1a7c32['enableCommand']('todoList',_0x193e0d('todoList')),_0x1a7c32['enableCommand']('indentList',_0x144840('indentList')),_0x1a7c32['enableCommand']('outdentList',_0x144840('outdentList')),_0x5b2573&&_0x1a7c32['enableCommand']('checkTodoList',()=>{const _0x2b0eb7=_0x4aeca0['commands']['get']('checkTodoList'),_0x18c2d7=Array['from'](_0x2b0eb7['_selectedElements']);_0x18c2d7['filter'](_0xa59f01=>_0xa59f01['getAttribute']('todoListChecked')!=_0x2b0eb7['value']),_0x4aeca0['model']['change'](()=>{for(const _0x1b1233 of _0x18c2d7)_0x1a7c32['markBlockFormat'](_0x1b1233,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b0eb7['value']}]});});});const {t:t}=_0x4aeca0['locale'];_0x1a7c32['_descriptionFactory']['registerElementLabel']('listItem',_0xc159c9=>t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xc159c9)),_0x1a7c32['_descriptionFactory']['registerDescriptionCallback'](_0x365dfc=>{const {data:_0x44d963}=_0x365dfc;if(_0x44d963){if('numberedList'==_0x44d963['commandName']||'bulletedList'==_0x44d963['commandName']||'todoList'==_0x44d963['commandName'])switch(_0x44d963['commandName']['replace']('List','')){case'bulleted':return _0x45eb29(t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'}));case'numbered':return _0x45eb29(t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'}));case'todo':return _0x45eb29(t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'}));}if('indentList'==_0x44d963['commandName'])return{'type':'format','content':t('*Indent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('outdentList'==_0x44d963['commandName'])return{'type':'format','content':t('*Outdent:*\x20%0',t({'string':'list\x20item','id':'ELEMENT_LIST_ITEM'}))};if('checkTodoList'==_0x44d963['commandName'])return _0x44d963['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Check\x20item*')}:{'type':'format','content':t('*Uncheck\x20item*')};}function _0x45eb29(_0x104cac){return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x104cac)};}});}}function Zt(_0x5d6c30){const _0x138f5f=_0x5d6c30['getAttribute']('listIndent');if(0x0==_0x138f5f)return _0x5d6c30;let _0x585881=_0x5d6c30;for(;_0x5d6c30['previousSibling']&&_0x5d6c30['previousSibling']['is']('element','listItem');){const _0x6c8c30=_0x5d6c30['previousSibling']['getAttribute']('listIndent');if(_0x6c8c30==_0x138f5f)_0x585881=_0x5d6c30['previousSibling'];else{if(_0x6c8c30<_0x138f5f)break;}_0x5d6c30=_0x5d6c30['previousSibling'];}return _0x585881;}function $t(_0x54c182){const _0x51494d=[];if(_0x54c182['is']('element','listItem')&&_0x54c182['getAttribute']('listIndent')>0x0){let _0x4c4d88=_0x54c182['nextSibling'];for(;_0x4c4d88&&'listItem'==_0x4c4d88['name']&&_0x4c4d88['getAttribute']('listIndent')==_0x54c182['getAttribute']('listIndent');)_0x51494d['push'](_0x4c4d88),_0x4c4d88=_0x4c4d88['nextSibling'];}return _0x51494d;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4eb737}from'ckeditor5/src/core';import'../../theme/integrations/mediaembed.css';export default class nt extends _0x4eb737{['afterInit'](){const _0xc88cc8=this['editor'];if(!_0xc88cc8['plugins']['has']('MediaEmbedEditing'))return;const _0x5b0bf6=_0xc88cc8['plugins']['get']('TrackChangesEditing'),{t:t}=_0xc88cc8['locale'];_0x5b0bf6['enableCommand']('mediaEmbed'),_0x5b0bf6['_descriptionFactory']['registerElementLabel']('media',_0x50af70=>t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50af70)),_0xc88cc8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x275e8f,{writer:_0x35a834,options:_0x30a773})=>{if(_0x30a773['showSuggestionHighlights'])return _0x35a834['createEmptyElement']('div');},'converterPriority':'high'}),_0xc88cc8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b0c52,_0x19d1ac,_0x40c5c2)=>{_0x40c5c2['options']['showSuggestionHighlights']&&_0x2b0c52['stop']();},{'priority':'high'});}}
23
+ import{Plugin as _0x392289}from'ckeditor5/src/core';import'../../theme/integrations/mediaembed.css';export default class it extends _0x392289{['afterInit'](){const _0xba9511=this['editor'];if(!_0xba9511['plugins']['has']('MediaEmbedEditing'))return;const _0x2d1d1a=_0xba9511['plugins']['get']('TrackChangesEditing'),{t:t}=_0xba9511['locale'];_0x2d1d1a['enableCommand']('mediaEmbed'),_0x2d1d1a['_descriptionFactory']['registerElementLabel']('media',_0x662208=>t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x662208)),_0xba9511['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x7d7369,{writer:_0x3f82ee,options:_0x36a445})=>{if(_0x36a445['showSuggestionHighlights'])return _0x3f82ee['createEmptyElement']('div');},'converterPriority':'high'}),_0xba9511['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5a5bd5,_0x420c88,_0xc817e0)=>{_0xc817e0['options']['showSuggestionHighlights']&&_0x5a5bd5['stop']();},{'priority':'high'});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe143=['editor','enableCommand','plugins','mention','has','TrackChangesEditing'];(function(_0x3938a5,_0xe14359){const _0xf8a458=function(_0x3e630c){while(--_0x3e630c){_0x3938a5['push'](_0x3938a5['shift']());}};_0xf8a458(++_0xe14359);}(_0xe143,0x154));const _0xf8a4=function(_0x3938a5,_0xe14359){_0x3938a5=_0x3938a5-0x0;let _0xf8a458=_0xe143[_0x3938a5];return _0xf8a458;};import{Plugin as _0x3b6698}from'ckeditor5/src/core';export default class et extends _0x3b6698{['afterInit'](){const _0x44a580=this[_0xf8a4('0x2')];_0x44a580[_0xf8a4('0x4')][_0xf8a4('0x0')]('MentionEditing')&&_0x44a580[_0xf8a4('0x4')]['get'](_0xf8a4('0x1'))[_0xf8a4('0x3')](_0xf8a4('0x5'));}}
23
+ const _0x2532=['has','plugins','mention','get','TrackChangesEditing'];(function(_0x246f8f,_0x25325d){const _0x85ed4d=function(_0x30f66f){while(--_0x30f66f){_0x246f8f['push'](_0x246f8f['shift']());}};_0x85ed4d(++_0x25325d);}(_0x2532,0xfd));const _0x85ed=function(_0x246f8f,_0x25325d){_0x246f8f=_0x246f8f-0x0;let _0x85ed4d=_0x2532[_0x246f8f];return _0x85ed4d;};import{Plugin as _0x4d58a3}from'ckeditor5/src/core';export default class st extends _0x4d58a3{['afterInit'](){const _0x4a8aa7=this['editor'];_0x4a8aa7[_0x85ed('0x3')][_0x85ed('0x2')]('MentionEditing')&&_0x4a8aa7[_0x85ed('0x3')][_0x85ed('0x0')](_0x85ed('0x1'))['enableCommand'](_0x85ed('0x4'));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4ec74e}from'ckeditor5/src/core';import'../../theme/integrations/pagebreak.css';export default class ot extends _0x4ec74e{['afterInit'](){const _0xd40e6f=this['editor'];if(!_0xd40e6f['plugins']['has']('PageBreakEditing'))return;_0xd40e6f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x39f1e1=_0xd40e6f['plugins']['get']('TrackChangesEditing'),{t:t}=_0xd40e6f['locale'];_0x39f1e1['_descriptionFactory']['registerElementLabel']('pageBreak',_0x5dde15=>t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5dde15));}}
23
+ import{Plugin as _0x27f728}from'ckeditor5/src/core';import'../../theme/integrations/pagebreak.css';export default class nt extends _0x27f728{['afterInit'](){const _0x4b9c54=this['editor'];if(!_0x4b9c54['plugins']['has']('PageBreakEditing'))return;_0x4b9c54['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1273ac=_0x4b9c54['plugins']['get']('TrackChangesEditing'),{t:t}=_0x4b9c54['locale'];_0x1273ac['_descriptionFactory']['registerElementLabel']('pageBreak',_0x130570=>t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x130570));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x407082}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x935e20}from'./utils';export default class rt extends _0x407082{['afterInit'](){const _0x3a1234=this['editor'];if(!_0x3a1234['plugins']['has']('Paragraph'))return;const {t:t}=_0x3a1234['locale'],_0x28646a=_0x3a1234['plugins']['get']('TrackChangesEditing');_0x28646a['_descriptionFactory']['registerElementLabel']('paragraph',_0x1ae97f=>t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ae97f)),_0x28646a['enableCommand']('paragraph',(_0x1e8736,_0x26daad={})=>{const _0x4b6344=_0x3a1234['model']['document'],_0x31e056=_0x26daad['selection']||_0x4b6344['selection'],_0x3cec9e=Array['from'](_0x31e056['getSelectedBlocks']())['filter'](_0x44cb89=>function(_0x37ec2e,_0x1e5f00){return _0x1e5f00['checkChild'](_0x37ec2e['parent'],'paragraph')&&!_0x1e5f00['isObject'](_0x37ec2e)&&'paragraph'!=_0x37ec2e['name'];}(_0x44cb89,this['editor']['model']['schema']));_0x3a1234['model']['change'](()=>{for(const _0x3a27ff of _0x3cec9e)_0x28646a['markBlockFormat'](_0x3a27ff,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x935e20(_0x3a27ff));});}),_0x28646a['_descriptionFactory']['registerDescriptionCallback'](_0x413ff3=>{const {data:_0x2d6886}=_0x413ff3;if(_0x2d6886&&'paragraph'==_0x2d6886['commandName'])return{'type':'format','content':t('*Change\x20to:*\x20%0',t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'}))};}),_0x28646a['enableCommand']('insertParagraph'),_0x3a1234['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ar(_0x3a1234),{'priority':'highest'}),_0x3a1234['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b3314,_0x430d35,_0x15cf7c)=>{_0x15cf7c['options']['showSuggestionHighlights']&&ar(_0x3a1234,{'showActiveMarker':!0x1})(_0x2b3314,_0x430d35,_0x15cf7c);},{'priority':'highest'});const _0x1f33fc=_0x28646a['_descriptionFactory'];_0x1f33fc['registerDescriptionCallback'](_0x3d348b=>{const {start:_0x4c6dbe,end:_0x23a838}=_0x3d348b['getFirstRange']();if(_0x4c6dbe['isTouching'](_0x23a838)&&_0x4c6dbe['nodeAfter']&&_0x4c6dbe['nodeAfter']['is']('element','paragraph')&&'insertion'==_0x3d348b['type'])return{'type':'insertion','content':t('*Insert:*\x20%0',_0x1f33fc['getItemLabel']('paragraph',0x1))};});}}function ar(_0x2b5755,{showActiveMarker:_0xd2632c=!0x0}={}){return(_0x3ef43f,_0x1afd6b,_0x424d18)=>{const _0x3a0d1f=_0x2b5755['plugins']['get']('TrackChangesEditing'),_0x20a6da=_0x1afd6b['markerRange']['start'],_0x3f0d8a=_0x1afd6b['markerRange']['end'];if(_0x20a6da['isTouching'](_0x3f0d8a)&&_0x20a6da['nodeAfter']&&_0x20a6da['nodeAfter']['is']('element','paragraph')){if(!_0x424d18['consumable']['consume'](_0x1afd6b['markerRange'],_0x3ef43f['name']))return;const _0x29a5a8=_0x424d18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x110f1b=_0x424d18['mapper']['toViewPosition'](_0x3f0d8a);_0xd2632c&&_0x3a0d1f['activeMarkers']['includes'](_0x1afd6b['markerName'])&&_0x424d18['writer']['addClass']('ck-suggestion-marker--active',_0x29a5a8),_0x424d18['writer']['insert'](_0x110f1b,_0x29a5a8),_0x424d18['mapper']['bindElementToMarker'](_0x29a5a8,_0x1afd6b['markerName']);}};}
23
+ import{Plugin as _0x21352a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5225a4}from'./utils';export default class et extends _0x21352a{['afterInit'](){const _0x5bae99=this['editor'];if(!_0x5bae99['plugins']['has']('Paragraph'))return;const {t:t}=_0x5bae99['locale'],_0x4b364b=_0x5bae99['plugins']['get']('TrackChangesEditing');_0x4b364b['_descriptionFactory']['registerElementLabel']('paragraph',_0x53beda=>t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x53beda)),_0x4b364b['enableCommand']('paragraph',(_0x13cd49,_0x11ef52={})=>{const _0x210516=_0x5bae99['model']['document'],_0x3efe9a=_0x11ef52['selection']||_0x210516['selection'],_0x2150d4=Array['from'](_0x3efe9a['getSelectedBlocks']())['filter'](_0x439d9f=>function(_0x1609b0,_0x28cf51){return _0x28cf51['checkChild'](_0x1609b0['parent'],'paragraph')&&!_0x28cf51['isObject'](_0x1609b0)&&'paragraph'!=_0x1609b0['name'];}(_0x439d9f,this['editor']['model']['schema']));_0x5bae99['model']['change'](()=>{for(const _0x53c6fd of _0x2150d4)_0x4b364b['markBlockFormat'](_0x53c6fd,{'commandName':'paragraph','commandParams':[],'formatGroupId':'blockName'},_0x5225a4(_0x53c6fd));});}),_0x4b364b['_descriptionFactory']['registerDescriptionCallback'](_0x15c56f=>{const {data:_0x4e22a1}=_0x15c56f;if(_0x4e22a1&&'paragraph'==_0x4e22a1['commandName'])return{'type':'format','content':t('*Change\x20to:*\x20%0',t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'}))};}),_0x4b364b['enableCommand']('insertParagraph'),_0x5bae99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',tr(_0x5bae99),{'priority':'highest'}),_0x5bae99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58ffc5,_0x4d63d3,_0x20f434)=>{_0x20f434['options']['showSuggestionHighlights']&&tr(_0x5bae99,{'showActiveMarker':!0x1})(_0x58ffc5,_0x4d63d3,_0x20f434);},{'priority':'highest'});const _0x3919ef=_0x4b364b['_descriptionFactory'];_0x3919ef['registerDescriptionCallback'](_0x3c6022=>{if('insertion'!==_0x3c6022['type'])return;const {start:_0x4387de,end:_0x19e0dc}=_0x3c6022['getFirstRange']();if(!_0x4387de['isTouching'](_0x19e0dc)||!_0x4387de['nodeAfter'])return;const _0x313038=_0x5bae99['model']['schema'],_0x2852c3=_0x4387de['nodeAfter'];return _0x313038['isBlock'](_0x2852c3)&&!_0x313038['isLimit'](_0x2852c3)&&_0x313038['checkChild'](_0x2852c3,'$text')?{'type':'insertion','content':t('*Insert:*\x20%0',_0x3919ef['getItemLabel'](_0x2852c3['name'],0x1))}:void 0x0;});}}function tr(_0x15f0db,{showActiveMarker:_0x59bf13=!0x0}={}){return(_0x4abb92,_0x4db541,_0x332b25)=>{const _0x236266=_0x15f0db['plugins']['get']('TrackChangesEditing'),_0x4f7c59=_0x4db541['markerRange']['start'],_0x7ca16d=_0x4db541['markerRange']['end'],_0x3a6e20=_0x15f0db['model']['schema'];if(!_0x4f7c59['isTouching'](_0x7ca16d)||!_0x4f7c59['nodeAfter'])return;const _0x47a7db=_0x4f7c59['nodeAfter'];if(_0x3a6e20['isBlock'](_0x47a7db)&&!_0x3a6e20['isLimit'](_0x47a7db)&&_0x3a6e20['checkChild'](_0x47a7db,'$text')){if(!_0x332b25['consumable']['consume'](_0x4db541['markerRange'],_0x4abb92['name']))return;const _0x54bde3=_0x332b25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x418ebb=_0x332b25['mapper']['toViewPosition'](_0x7ca16d);_0x59bf13&&_0x236266['activeMarkers']['includes'](_0x4db541['markerName'])&&_0x332b25['writer']['addClass']('ck-suggestion-marker--active',_0x54bde3),_0x332b25['writer']['insert'](_0x418ebb,_0x54bde3),_0x332b25['mapper']['bindElementToMarker'](_0x54bde3,_0x4db541['markerName']);}};}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1ede31}from'ckeditor5/src/core';export default class at extends _0x1ede31{['afterInit'](){const _0x24d8ff=this['editor'];if(!_0x24d8ff['plugins']['has']('RemoveFormatEditing'))return;const _0x1ac1ea=_0x24d8ff['plugins']['get']('TrackChangesEditing');_0x1ac1ea['enableCommand']('removeFormat',_0x170df5=>{const _0x36aa55=_0x24d8ff['model']['document']['selection'];_0x36aa55['isCollapsed']?_0x170df5():_0x24d8ff['model']['change'](()=>{const _0x110f86=Array['from'](_0x36aa55['getRanges']());for(const _0xfa0432 of _0x110f86)for(const _0x2bcc19 of _0xfa0432['getItems']())to(_0x2bcc19,_0x24d8ff['model']['schema'])&&_0x1ac1ea['markInlineFormat'](_0x24d8ff['model']['createRangeOn'](_0x2bcc19),{'commandName':'removeFormat','commandParams':[]});});});const {t:t}=_0x24d8ff['locale'];_0x1ac1ea['_descriptionFactory']['registerDescriptionCallback'](_0x34609f=>{const {data:_0x5045d4}=_0x34609f;if(_0x5045d4&&'removeFormat'==_0x5045d4['commandName'])return{'type':'format','content':t('*Remove\x20all\x20formatting*')};});}}function to(_0x2a0572,_0x27bcd9){for(const [_0x61bb27]of _0x2a0572['getAttributes']()){const _0x16378e=_0x27bcd9['getAttributeProperties'](_0x61bb27);if(_0x16378e&&_0x16378e['isFormatting'])return!0x0;}return!0x1;}
23
+ import{Plugin as _0x2037e7}from'ckeditor5/src/core';export default class ot extends _0x2037e7{['afterInit'](){const _0x53a121=this['editor'];if(!_0x53a121['plugins']['has']('RemoveFormatEditing'))return;const _0xa6c8a8=_0x53a121['plugins']['get']('TrackChangesEditing');_0xa6c8a8['enableCommand']('removeFormat',_0x4fc464=>{const _0x1e30b3=_0x53a121['model']['document']['selection'];_0x1e30b3['isCollapsed']?_0x4fc464():_0x53a121['model']['change'](()=>{const _0x415920=Array['from'](_0x1e30b3['getRanges']());for(const _0x4d2dca of _0x415920)for(const _0x898ebf of _0x4d2dca['getItems']())to(_0x898ebf,_0x53a121['model']['schema'])&&_0xa6c8a8['markInlineFormat'](_0x53a121['model']['createRangeOn'](_0x898ebf),{'commandName':'removeFormat','commandParams':[]});});});const {t:t}=_0x53a121['locale'];_0xa6c8a8['_descriptionFactory']['registerDescriptionCallback'](_0x2a92ce=>{const {data:_0x90ddde}=_0x2a92ce;if(_0x90ddde&&'removeFormat'==_0x90ddde['commandName'])return{'type':'format','content':t('*Remove\x20all\x20formatting*')};});}}function to(_0x128bb6,_0x437ff2){for(const [_0x3bd470]of _0x128bb6['getAttributes']()){const _0x33fad3=_0x437ff2['getAttributeProperties'](_0x3bd470);if(_0x33fad3&&_0x33fad3['isFormatting'])return!0x0;}return!0x1;}