@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/track-changes.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x4502=['fromRange','mapper','batch','get','forward','createRange','delete','isCollapsed','markerName','buffer','merge','commands','plugins','markerNameToElements','TrackChangesEditing','$graveyard','unit','data','detach','addMarker:suggestion:deletion','high','downcastDispatcher','showSuggestionHighlights','setSelection','bind','createSelection','options','modifySelection','unbindElementFromMarkerName','requires','lock','uiElement','model','editor','root','deleteForward','rootName','getFirstRange','enableCommand','enqueueChange','start','removeMarker:suggestion:deletion','writer'];(function(_0xf49204,_0x450236){const _0x155366=function(_0x1a8980){while(--_0x1a8980){_0xf49204['push'](_0xf49204['shift']());}};_0x155366(++_0x450236);}(_0x4502,0xa4));const _0x1553=function(_0xf49204,_0x450236){_0xf49204=_0xf49204-0x0;let _0x155366=_0x4502[_0xf49204];return _0x155366;};import{Plugin as _0x949c29}from'ckeditor5/src/core';import{LiveRange as _0x11206c}from'ckeditor5/src/engine';import{Delete as _0x1a90ec}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x16ff7c}from'./utils';export default class G extends _0x949c29{static get[_0x1553('0x25')](){return[_0x1a90ec];}['init'](){const _0x2c9e44=this[_0x1553('0x29')],_0x5e23f8=_0x2c9e44[_0x1553('0x14')]['get'](_0x1553('0x16'));_0x5e23f8[_0x1553('0x3')](_0x1553('0xe'));const _0x216ed0=_0x2c9e44[_0x1553('0x13')][_0x1553('0xb')](_0x1553('0x0'));_0x5e23f8[_0x1553('0x3')]('deleteForward',(_0x2effad,_0x56b907={})=>{const _0xddf98=_0x2c9e44['model'][_0x1553('0x21')](_0x2c9e44['model']['document']['selection']);_0xddf98[_0x1553('0xf')]&&_0x2c9e44[_0x1553('0x28')][_0x1553('0x23')](_0xddf98,{'direction':_0x1553('0xc'),'unit':_0x56b907[_0x1553('0x18')]});const _0x27ec6a=_0xddf98[_0x1553('0x2')](),_0x4ea716=_0x11206c[_0x1553('0x8')](_0x27ec6a);let _0x45092d;_0x2effad(_0x56b907),_0x45092d=_0x1553('0x17')==_0x4ea716[_0x1553('0x2a')][_0x1553('0x1')]?_0x2c9e44[_0x1553('0x28')]['createRange'](_0x27ec6a[_0x1553('0x5')]):_0x2c9e44['model'][_0x1553('0xd')](_0x4ea716[_0x1553('0x5')],_0x4ea716['end']),_0x4ea716[_0x1553('0x1a')](),_0x2c9e44[_0x1553('0x28')][_0x1553('0x4')](_0x216ed0[_0x1553('0x11')][_0x1553('0xa')],_0x4e2483=>{_0x216ed0[_0x1553('0x11')][_0x1553('0x26')](),_0x4e2483[_0x1553('0x1f')](_0x4e2483[_0x1553('0xd')](_0x45092d['end'])),_0x216ed0[_0x1553('0x11')]['unlock']();});}),_0x2c9e44['editing'][_0x1553('0x1d')]['on'](_0x1553('0x1b'),_0x16ff7c(_0x2c9e44,'merge'),{'priority':'high'}),_0x2c9e44[_0x1553('0x19')][_0x1553('0x1d')]['on'](_0x1553('0x1b'),(_0xaa428c,_0x46976c,_0x9e7af5)=>{_0x9e7af5[_0x1553('0x22')][_0x1553('0x1e')]&&_0x16ff7c(_0x2c9e44,_0x1553('0x12'),{'showActiveMarker':!0x1})[_0x1553('0x20')](this)(_0xaa428c,_0x46976c,_0x9e7af5);},{'priority':_0x1553('0x1c')}),_0x2c9e44['editing'][_0x1553('0x1d')]['on'](_0x1553('0x6'),(_0xcbd0e1,_0x724c61,_0x1d63ca)=>{const _0x2747cc=_0x1d63ca['mapper'][_0x1553('0x15')](_0x724c61[_0x1553('0x10')]);if(_0x2747cc)for(const _0x2abc16 of _0x2747cc)_0x2abc16['is'](_0x1553('0x27'))&&(_0x1d63ca[_0x1553('0x9')][_0x1553('0x24')](_0x2abc16,_0x724c61[_0x1553('0x10')]),_0x1d63ca[_0x1553('0x7')]['remove'](_0x2abc16));},{'priority':_0x1553('0x1c')});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/documentlist
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for document list feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0xd800=['slice','push','*Format:*\x20remove\x20from\x20%0','ELEMENT_NUMBERED_LIST','createPositionAt','commandName','forceValue','listIndent','expandListBlocksToCompleteList','fromRange','isObject','nodeAfter','format','enableCommand','from','*Indent:*\x20%0','previousSibling','has','length','registerCustomCallback','splitListItemAfter','plugins','mergeListItemForward','detach','listItemId','*Format:*\x20insert\x20into\x20%0','value','get','formatBlock','change','map','ELEMENT_LIST_ITEM','multipleBlocks','findIndex','add','execute','getAttribute','ELEMENT_BULLETED_LIST','*Change\x20to:*\x20%0','commandParams','model','end','selection','start','createRange','document','TrackChangesEditing','parent','bulletedList','before','mergeListItemBackward','indentList','_descriptionFactory','nextSibling','documentList','_LIST','toUpperCase','registerElementLabel','outdentList','schema','isFirstBlockOfListItem','numberedList','editor','hasAttribute','*Outdent:*\x20%0','*Merge:*\x20%0','markBlockFormat','listType','commands','containsItem','getSelectedBlocks','getFirstRange','afterInit'];(function(_0x2368ba,_0xd800ee){const _0x38698c=function(_0x13733b){while(--_0x13733b){_0x2368ba['push'](_0x2368ba['shift']());}};_0x38698c(++_0xd800ee);}(_0xd800,0xf8));const _0x3869=function(_0x2368ba,_0xd800ee){_0x2368ba=_0x2368ba-0x0;let _0x38698c=_0xd800[_0x2368ba];return _0x38698c;};import{Plugin as _0x4508a8}from'ckeditor5/src/core';import{getTranslation as _0x25e30c}from'../utils/common-translations';import{LiveRange as _0x2b5f57}from'ckeditor5/src/engine';export default class L extends _0x4508a8{[_0x3869('0x2b')](){const _0x47b98a=this[_0x3869('0x21')];if(!_0x47b98a[_0x3869('0x41')][_0x3869('0x3d')]('DocumentListEditing'))return;const _0x4cd470=_0x47b98a['locale'],_0x1d4e68=_0x47b98a[_0x3869('0x41')][_0x3869('0x47')](_0x3869('0x11')),_0x20a6f5=_0x47b98a[_0x3869('0x41')][_0x3869('0x47')]('DocumentListUtils');function _0x5deb1c(_0x1c7eb9){return()=>{const _0x3f3d27=_0x47b98a[_0x3869('0x27')][_0x3869('0x47')](_0x1c7eb9);let _0x2bc7bf=Array[_0x3869('0x3a')](_0x47b98a[_0x3869('0xb')]['document'][_0x3869('0xd')][_0x3869('0x29')]());if(_0x2e0fcd(_0x1c7eb9)){_0x2bc7bf=_0x20a6f5[_0x3869('0x34')](_0x2bc7bf);const _0x313084=[];for(const _0x4631c2 of _0x2bc7bf)_0x20a6f5[_0x3869('0x1f')](_0x4631c2)&&_0x313084[_0x3869('0x2d')](_0x4631c2);_0x2bc7bf=_0x313084;}_0x47b98a[_0x3869('0xb')][_0x3869('0x0')](()=>{_0x1d4e68['markMultiRangeBlockFormat'](_0x2bc7bf,{'commandName':_0x1c7eb9,'commandParams':[{'forceValue':!_0x3f3d27['value']}],'formatGroupId':_0x3869('0x26')},[],_0x3869('0x19'));});};}function _0x1ded44(_0x42765e){return()=>{const _0x558473=function(_0x4417a8){let _0x47ef82=Array[_0x3869('0x3a')](_0x4417a8);const _0x5349e5=_0x47ef82[_0x3869('0x4')](_0xa40895=>!_0xa40895[_0x3869('0x22')]('listItemId'));return _0x5349e5>-0x1&&(_0x47ef82=_0x47ef82[_0x3869('0x2c')](0x0,_0x5349e5)),_0x47ef82;}(_0x47b98a[_0x3869('0xb')][_0x3869('0x10')][_0x3869('0xd')][_0x3869('0x29')]()),_0x32af51=_0x558473[_0x558473[_0x3869('0x3e')]-0x1],_0x78baac=_0x47b98a['model'][_0x3869('0x1e')][_0x3869('0x36')](_0x32af51)?'after':_0x3869('0xc'),_0x5e94ff=_0x47b98a[_0x3869('0xb')][_0x3869('0xf')](_0x47b98a[_0x3869('0xb')][_0x3869('0x30')](_0x558473[0x0],_0x3869('0x14')),_0x47b98a[_0x3869('0xb')][_0x3869('0x30')](_0x32af51,_0x78baac));_0x47b98a[_0x3869('0xb')]['change'](()=>{_0x1d4e68[_0x3869('0x25')](_0x5e94ff,{'commandName':_0x42765e,'commandParams':[],'formatGroupId':'listType'},function(_0x17f902){const _0x7fcbe=new Set();for(const _0x40abee of _0x17f902){let _0x5dab6b=_0x40abee[_0x3869('0x18')];for(;_0x5dab6b&&_0x5dab6b[_0x3869('0x7')](_0x3869('0x33'))>_0x40abee[_0x3869('0x7')](_0x3869('0x33'));)_0x7fcbe[_0x3869('0x5')](_0x5dab6b),_0x5dab6b=_0x5dab6b[_0x3869('0x18')];}return Array[_0x3869('0x3a')](_0x7fcbe);}(_0x558473));});};}function _0x5bc319(_0x93f8d6){return()=>{const _0x49674e=_0x47b98a[_0x3869('0xb')][_0x3869('0x10')][_0x3869('0xd')][_0x3869('0x29')]()['next']()[_0x3869('0x46')],_0x1765c9=_0x47b98a[_0x3869('0xb')][_0x3869('0x30')](_0x49674e,'before'),_0x3c055d=_0x47b98a[_0x3869('0xb')][_0x3869('0x30')](_0x49674e,0x0),_0x96299e=_0x47b98a['model'][_0x3869('0xf')](_0x1765c9,_0x3c055d);_0x47b98a[_0x3869('0xb')][_0x3869('0x0')](()=>{_0x1d4e68[_0x3869('0x25')](_0x96299e,{'commandName':_0x93f8d6,'commandParams':[],'formatGroupId':'listType'});});};}function _0x2e0fcd(_0x3ffda2){const _0x5ddfe8=_0x47b98a[_0x3869('0x27')][_0x3869('0x47')](_0x3869('0x13'))[_0x3869('0x46')],_0x5a2f9b=_0x47b98a[_0x3869('0x27')]['get'](_0x3869('0x20'))[_0x3869('0x46')];return _0x3869('0x20')===_0x3ffda2?_0x5ddfe8:_0x5a2f9b;}_0x1d4e68[_0x3869('0x39')](_0x3869('0x20'),_0x5deb1c(_0x3869('0x20'))),_0x1d4e68[_0x3869('0x39')](_0x3869('0x13'),_0x5deb1c(_0x3869('0x13'))),_0x1d4e68['enableCommand']('indentList',_0x1ded44(_0x3869('0x16'))),_0x1d4e68[_0x3869('0x39')](_0x3869('0x1d'),_0x1ded44(_0x3869('0x1d'))),_0x1d4e68[_0x3869('0x39')](_0x3869('0x40'),_0x5bc319(_0x3869('0x40'))),_0x1d4e68[_0x3869('0x39')]('splitListItemBefore',_0x5bc319('splitListItemBefore')),_0x1d4e68[_0x3869('0x17')][_0x3869('0x1c')](function(_0x1f589f){const _0x334627=!_0x47b98a['model'][_0x3869('0x1e')][_0x3869('0x36')](_0x1f589f),_0x4206d1=_0x1f589f[_0x3869('0x3c')],_0x492813=_0x1f589f[_0x3869('0x18')],_0x274a57=_0x1f589f[_0x3869('0x7')]('listItemId'),_0x456cc5=!_0x4206d1||_0x4206d1[_0x3869('0x7')]('listItemId')!==_0x274a57,_0x2e93e1=!_0x492813||_0x492813[_0x3869('0x7')](_0x3869('0x44'))!==_0x274a57;return _0x334627&&Boolean(_0x274a57)&&_0x456cc5&&_0x2e93e1;},_0x398795=>_0x25e30c(_0x4cd470,_0x3869('0x2'),_0x398795)),_0x1d4e68[_0x3869('0x17')]['registerDescriptionCallback'](function(_0x3065ad){const {data:_0x4de9d9}=_0x3065ad;if(!_0x4de9d9)return;let _0x4f6931,_0x10f938,_0x3fb883,_0x4b6724;switch(_0x4de9d9[_0x3869('0x31')]){case _0x3869('0x13'):_0x3fb883=_0x4de9d9[_0x3869('0xa')][0x0][_0x3869('0x32')],_0x4b6724=_0x2e0fcd(_0x4de9d9[_0x3869('0x31')]),_0x4f6931=_0x3fb883?'*Format:*\x20insert\x20into\x20%0':_0x3869('0x2e'),_0x4b6724&&(_0x4f6931=_0x3869('0x9')),_0x10f938={'type':_0x3869('0x38'),'content':_0x25e30c(_0x4cd470,_0x4f6931,_0x25e30c(_0x4cd470,_0x3869('0x8')))};break;case _0x3869('0x20'):_0x3fb883=_0x4de9d9[_0x3869('0xa')][0x0]['forceValue'],_0x4b6724=_0x2e0fcd(_0x4de9d9[_0x3869('0x31')]),_0x4f6931=_0x3fb883?_0x3869('0x45'):_0x3869('0x2e'),_0x4b6724&&(_0x4f6931=_0x3869('0x9')),_0x10f938={'type':_0x3869('0x38'),'content':_0x25e30c(_0x4cd470,_0x4f6931,_0x25e30c(_0x4cd470,_0x3869('0x2f')))};break;case _0x3869('0x16'):_0x4f6931=_0x3869('0x3b'),_0x10f938={'type':_0x3869('0x38'),'content':_0x25e30c(_0x4cd470,_0x4f6931,_0x25e30c(_0x4cd470,_0x3869('0x2')))};break;case _0x3869('0x1d'):_0x4f6931=function(_0x181bf5){const _0x55d3cf=_0x181bf5[_0x3869('0x2a')]();let _0x323388=_0x55d3cf[_0x3869('0xe')]['nodeAfter'];for(;_0x323388&&_0x55d3cf[_0x3869('0x28')](_0x323388);){if(_0x323388['getAttribute']('listIndent')>0x0)return!0x1;_0x323388=_0x323388[_0x3869('0x18')];}return!0x0;}(_0x3065ad)?_0x25e30c(_0x4cd470,'*Format:*\x20remove\x20from\x20%0',_0x25e30c(_0x4cd470,function(_0x313b3b){const _0x5d9874=_0x313b3b[_0x3869('0x2a')]()[_0x3869('0xe')][_0x3869('0x37')];return'ELEMENT_'+_0x5d9874[_0x3869('0x7')](_0x3869('0x26'))[_0x3869('0x1b')]()+_0x3869('0x1a');}(_0x3065ad))):_0x25e30c(_0x4cd470,_0x3869('0x23'),_0x25e30c(_0x4cd470,_0x3869('0x2'))),_0x10f938={'type':_0x3869('0x38'),'content':_0x4f6931};break;case _0x3869('0x15'):case _0x3869('0x42'):!0x1===_0x4de9d9[_0x3869('0x3')]&&(_0x4f6931=_0x3869('0x24'),_0x10f938={'type':'deletion','content':_0x25e30c(_0x4cd470,_0x4f6931,_0x25e30c(_0x4cd470,_0x3869('0x2')))});}return _0x10f938;}),_0x1d4e68['_suggestionFactory'][_0x3869('0x3f')](_0x3869('0x48'),_0x3869('0x19'),'accept',function(_0x49666c,_0x31dcef){const _0x27056f=[];for(let _0x19e488 of _0x49666c)_0x19e488['start'][_0x3869('0x37')]===_0x19e488[_0x3869('0xc')][_0x3869('0x12')]&&(_0x19e488=_0x47b98a['model']['createRange'](_0x47b98a[_0x3869('0xb')]['createPositionAt'](_0x19e488[_0x3869('0xe')][_0x3869('0x37')],0x0))),_0x27056f['push'](_0x19e488);_0x47b98a[_0x3869('0xb')][_0x3869('0x0')](_0x23242a=>{const _0x2accbb=_0x47b98a[_0x3869('0xb')]['document'][_0x3869('0xd')],_0x484bdc=Array[_0x3869('0x3a')](_0x2accbb['getRanges']())[_0x3869('0x1')](_0x4bb007=>_0x2b5f57[_0x3869('0x35')](_0x4bb007));_0x23242a['setSelection'](_0x27056f),_0x47b98a['commands'][_0x3869('0x47')](_0x31dcef['commandName'])['refresh'](),_0x31dcef[_0x3869('0xa')][_0x3869('0x2d')]({'forceDefaultExecution':!0x0}),_0x47b98a[_0x3869('0x6')](_0x31dcef[_0x3869('0x31')],..._0x31dcef[_0x3869('0xa')]),_0x23242a['setSelection'](_0x484bdc);for(const _0x2cb6d0 of _0x484bdc)_0x2cb6d0[_0x3869('0x43')]();});});}}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/documentlistproperties
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import type { Description } from '../suggestiondescriptionfactory
|
|
6
|
-
import type Suggestion from '../suggestion
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
7
11
|
/**
|
|
8
12
|
* Provides track changes plugin integration for document list properties feature.
|
|
9
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x3d92=['afterInit','_LIST_','locale','TrackChangesEditing','handleListStyleCommand','type','has','plugins','*Format:*\x20set\x20order\x20to\x20regular','bind','getAttribute','listReversed','config','handleDescriptions','replace','reversed','model','selection','commandParams','document','getSelectedBlocks','DocumentListPropertiesUtils','_getTranslationKeyForListStyle','styles','handleListStartCommand','format','from','push','listStart','expandListBlocksToCompleteList','handleListReversedCommand','*Change\x20to:*\x20%0','toUpperCase','_getSuggestionBlocksForListStyle','markMultiRangeBlockFormat','listStyle','_descriptionFactory','startIndex','editor','isFirstBlockOfListItem','DocumentListPropertiesEditing','isListItemBlock','get','_getSuggestionBlocks','DocumentListUtils','change','enableCommand','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','listType','ELEMENT_'];(function(_0x4ccb32,_0x3d9230){const _0x1ff0a8=function(_0x5c65b9){while(--_0x5c65b9){_0x4ccb32['push'](_0x4ccb32['shift']());}};_0x1ff0a8(++_0x3d9230);}(_0x3d92,0x1a6));const _0x1ff0=function(_0x4ccb32,_0x3d9230){_0x4ccb32=_0x4ccb32-0x0;let _0x1ff0a8=_0x3d92[_0x4ccb32];return _0x1ff0a8;};import{Plugin as _0x357c96}from'ckeditor5/src/core';import{getTranslation as _0x5f35e7}from'../utils/common-translations';export default class At extends _0x357c96{[_0x1ff0('0x2e')](){if(!this['editor'][_0x1ff0('0x1')][_0x1ff0('0x0')](_0x1ff0('0x22')))return;const _0x191a3a=this['editor'][_0x1ff0('0x6')][_0x1ff0('0x24')](_0x1ff0('0x29')),_0xcac827=this[_0x1ff0('0x20')][_0x1ff0('0x1')][_0x1ff0('0x24')](_0x1ff0('0x31'));_0x191a3a[_0x1ff0('0x11')]&&_0xcac827[_0x1ff0('0x28')](_0x1ff0('0x1d'),this[_0x1ff0('0x32')]['bind'](this)),_0x191a3a['reversed']&&_0xcac827[_0x1ff0('0x28')](_0x1ff0('0x5'),this[_0x1ff0('0x18')][_0x1ff0('0x3')](this)),_0x191a3a['startIndex']&&_0xcac827[_0x1ff0('0x28')](_0x1ff0('0x16'),this['handleListStartCommand'][_0x1ff0('0x3')](this)),_0xcac827[_0x1ff0('0x1e')]['registerDescriptionCallback'](this['handleDescriptions'][_0x1ff0('0x3')](this));}[_0x1ff0('0x32')](_0x3695a8,_0x4170d6={}){const _0x24ab57=this[_0x1ff0('0x20')]['plugins']['get']('TrackChangesEditing'),_0x176e2c=this[_0x1ff0('0x1b')]();this[_0x1ff0('0x20')][_0x1ff0('0xa')]['change'](()=>{_0x24ab57[_0x1ff0('0x1c')](_0x176e2c,{'commandName':_0x1ff0('0x1d'),'commandParams':[{'type':_0x4170d6[_0x1ff0('0x33')]}],'formatGroupId':'listStyle'});});}[_0x1ff0('0x18')](_0x1557f9,_0x4f314c={}){const _0x1033fd=this['editor'][_0x1ff0('0x1')][_0x1ff0('0x24')](_0x1ff0('0x31')),_0x39be80=this[_0x1ff0('0x20')][_0x1ff0('0x1')][_0x1ff0('0x24')]('DocumentListUtils'),_0x234937=this[_0x1ff0('0x25')](_0x38e3b3=>_0x39be80['isListItemBlock'](_0x38e3b3)&&'numbered'===_0x38e3b3[_0x1ff0('0x4')](_0x1ff0('0x2c')));null!==_0x234937&&this[_0x1ff0('0x20')]['model'][_0x1ff0('0x27')](()=>{_0x1033fd[_0x1ff0('0x1c')](_0x234937,{'commandName':_0x1ff0('0x5'),'commandParams':[{'reversed':_0x4f314c[_0x1ff0('0x9')]}],'formatGroupId':'listReversed'});});}[_0x1ff0('0x12')](_0x44d19e,_0x226c5b={}){const _0x2953be=this[_0x1ff0('0x20')]['plugins'][_0x1ff0('0x24')](_0x1ff0('0x31')),_0xc4a499=this[_0x1ff0('0x20')][_0x1ff0('0x1')][_0x1ff0('0x24')](_0x1ff0('0x26')),_0x55ff6a=this[_0x1ff0('0x25')](_0x1e327b=>_0xc4a499[_0x1ff0('0x23')](_0x1e327b)&&'numbered'===_0x1e327b['getAttribute'](_0x1ff0('0x2c')));null!==_0x55ff6a&&this[_0x1ff0('0x20')][_0x1ff0('0xa')][_0x1ff0('0x27')](()=>{_0x2953be['markMultiRangeBlockFormat'](_0x55ff6a,{'commandName':'listStart','commandParams':[{'startIndex':_0x226c5b[_0x1ff0('0x1f')]}],'formatGroupId':_0x1ff0('0x16')});});}[_0x1ff0('0x7')](_0x5d8cfe){const _0xdd22f6=this['editor'][_0x1ff0('0x30')],{data:_0x54bb74}=_0x5d8cfe;if(!_0x54bb74)return;let _0x572eb1,_0x510de1;switch(_0x54bb74['commandName']){case _0x1ff0('0x1d'):_0x572eb1=_0x1ff0('0x19'),_0x510de1={'type':_0x1ff0('0x13'),'content':_0x5f35e7(_0xdd22f6,_0x572eb1,_0x5f35e7(_0xdd22f6,this[_0x1ff0('0x10')](_0x54bb74['commandParams'][0x0][_0x1ff0('0x33')])))};break;case _0x1ff0('0x5'):_0x572eb1=_0x54bb74[_0x1ff0('0xc')][0x0][_0x1ff0('0x9')]?_0x1ff0('0x2a'):_0x1ff0('0x2'),_0x510de1={'type':_0x1ff0('0x13'),'content':_0x5f35e7(_0xdd22f6,_0x572eb1)};break;case _0x1ff0('0x16'):_0x572eb1=_0x1ff0('0x2b'),_0x510de1={'type':_0x1ff0('0x13'),'content':_0x5f35e7(_0xdd22f6,_0x572eb1,_0x54bb74[_0x1ff0('0xc')][0x0][_0x1ff0('0x1f')])};}return _0x510de1;}['_getSuggestionBlocksForListStyle'](){const _0x3c2e88=this['editor'][_0x1ff0('0x1')]['get']('DocumentListUtils');let _0x5bb969=Array['from'](this[_0x1ff0('0x20')][_0x1ff0('0xa')][_0x1ff0('0xd')][_0x1ff0('0xb')][_0x1ff0('0xe')]());return _0x5bb969[_0x1ff0('0x15')](..._0x3c2e88[_0x1ff0('0x17')](_0x5bb969)),_0x5bb969=[...new Set(_0x5bb969)],_0x5bb969;}[_0x1ff0('0x25')](_0x104a19){const _0x53d940=this['editor']['plugins'][_0x1ff0('0x24')](_0x1ff0('0x26'));let _0x264d77=Array[_0x1ff0('0x14')](this['editor'][_0x1ff0('0xa')][_0x1ff0('0xd')][_0x1ff0('0xb')][_0x1ff0('0xe')]())['filter'](_0x104a19);if(!_0x264d77['length'])return null;_0x264d77=_0x53d940[_0x1ff0('0x17')](_0x264d77);const _0x39757b=[];for(const _0x43625c of _0x264d77)_0x53d940[_0x1ff0('0x21')](_0x43625c)&&_0x39757b[_0x1ff0('0x15')](_0x43625c);return _0x39757b;}[_0x1ff0('0x10')](_0xc3c4eb){return _0x1ff0('0x2d')+this[_0x1ff0('0x20')][_0x1ff0('0x1')][_0x1ff0('0x24')](_0x1ff0('0xf'))['getListTypeFromListStyleType'](_0xc3c4eb)[_0x1ff0('0x1a')]()+_0x1ff0('0x2f')+_0xc3c4eb[_0x1ff0('0x1a')]()[_0x1ff0('0x8')](/-/g,'_');}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/entercommand
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import { Enter } from 'ckeditor5/src/enter
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
8
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x4600=['requires','downcastDispatcher','mapper','markInsertion','unbindElementFromMarkerName','createPositionAt','enter','init','commands','getFirstPosition','change','plugins','markerName','fire','selection','addMarker:suggestion:insertion','showSuggestionHighlights','high','fromRange','split','editor','removeMarker:suggestion:insertion','model','ck-suggestion-marker-split','get','end','bind','markerNameToElements','afterExecute','createRange','editing','enableCommand','document','writer','parent','setSelection','options'];(function(_0x369906,_0x4600fa){const _0x32c2e3=function(_0x54e9b6){while(--_0x54e9b6){_0x369906['push'](_0x369906['shift']());}};_0x32c2e3(++_0x4600fa);}(_0x4600,0x149));const _0x32c2=function(_0x369906,_0x4600fa){_0x369906=_0x369906-0x0;let _0x32c2e3=_0x4600[_0x369906];return _0x32c2e3;};import{Plugin as _0x450ffd}from'ckeditor5/src/core';import{Enter as _0x525a71}from'ckeditor5/src/enter';import{LiveRange as _0x1d34da}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xf905e0}from'./utils';export default class q extends _0x450ffd{static get[_0x32c2('0x4')](){return[_0x525a71];}[_0x32c2('0xb')](){const _0x11959f=this[_0x32c2('0x18')],_0x5f747d=_0x11959f[_0x32c2('0xf')][_0x32c2('0x1c')]('TrackChangesEditing'),_0x530784=_0x11959f[_0x32c2('0xc')][_0x32c2('0x1c')](_0x32c2('0xa'));_0x5f747d[_0x32c2('0x23')](_0x32c2('0xa'),()=>{_0x11959f[_0x32c2('0x1a')][_0x32c2('0xe')](_0x290c53=>{const _0x59f6bb=_0x11959f[_0x32c2('0x1a')][_0x32c2('0x24')][_0x32c2('0x12')],_0x43c13a=_0x59f6bb[_0x32c2('0xd')](),_0x218f83=_0x1d34da[_0x32c2('0x16')](_0x59f6bb['getFirstRange']());if(_0x530784['enterBlock'](_0x290c53)){const _0x307404=_0x11959f[_0x32c2('0x1a')][_0x32c2('0x9')](_0x43c13a[_0x32c2('0x1')]['nextSibling'],0x0),_0x586f45=_0x290c53[_0x32c2('0x21')](_0x43c13a,_0x307404);_0x5f747d[_0x32c2('0x7')](_0x586f45);}else _0x290c53[_0x32c2('0x2')](_0x290c53[_0x32c2('0x21')](_0x218f83[_0x32c2('0x1d')]));_0x218f83['detach'](),_0x530784[_0x32c2('0x11')](_0x32c2('0x20'),{'writer':_0x290c53});});}),_0x11959f[_0x32c2('0x22')][_0x32c2('0x5')]['on'](_0x32c2('0x13'),_0xf905e0(_0x11959f,_0x32c2('0x17')),{'priority':_0x32c2('0x15')}),_0x11959f['editing'][_0x32c2('0x5')]['on'](_0x32c2('0x19'),(_0x4e7ae9,_0x3567ef,_0x242075)=>{const _0x10ab34=_0x242075['mapper'][_0x32c2('0x1f')](_0x3567ef[_0x32c2('0x10')]);if(_0x10ab34)for(const _0x4a8195 of _0x10ab34)_0x4a8195['hasClass'](_0x32c2('0x1b'))&&(_0x242075[_0x32c2('0x6')][_0x32c2('0x8')](_0x4a8195,_0x3567ef['markerName']),_0x242075[_0x32c2('0x0')]['remove'](_0x4a8195));},{'priority':_0x32c2('0x15')}),_0x11959f['data'][_0x32c2('0x5')]['on'](_0x32c2('0x13'),(_0x3eb7ec,_0x32a57a,_0x2cbc20)=>{_0x2cbc20[_0x32c2('0x3')][_0x32c2('0x14')]&&_0xf905e0(_0x11959f,_0x32c2('0x17'),{'showActiveMarker':!0x1})[_0x32c2('0x1e')](this)(_0x3eb7ec,_0x32a57a,_0x2cbc20);},{'priority':'high'});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/findandreplace
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for find and replace feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x5ba5=['plugins','find','createPositionAt','markers','getMarkersGroup','FindAndReplaceUtils','afterInit','string','handleFindCommand','FindAndReplaceEditing','TrackChangesEditing','item','enableCommand','findPrevious','editor','getRange','bind','filter','model','get','_isInDeletionRange','findNext','getIntersection','replace','has'];(function(_0x46c022,_0x5ba5b3){const _0x42577d=function(_0x3143e7){while(--_0x3143e7){_0x46c022['push'](_0x46c022['shift']());}};_0x42577d(++_0x5ba5b3);}(_0x5ba5,0x18d));const _0x4257=function(_0x46c022,_0x5ba5b3){_0x46c022=_0x46c022-0x0;let _0x42577d=_0x5ba5[_0x46c022];return _0x42577d;};import{Plugin as _0x5b36e1}from'ckeditor5/src/core';export default class z extends _0x5b36e1{[_0x4257('0x9')](){if(!this[_0x4257('0x11')][_0x4257('0x3')][_0x4257('0x2')](_0x4257('0xc')))return;const _0x246226=this[_0x4257('0x11')][_0x4257('0x3')][_0x4257('0x16')](_0x4257('0xd'));_0x246226[_0x4257('0xf')](_0x4257('0x4'),this[_0x4257('0xb')][_0x4257('0x13')](this)),_0x246226[_0x4257('0xf')](_0x4257('0x18')),_0x246226[_0x4257('0xf')](_0x4257('0x10')),_0x246226[_0x4257('0xf')](_0x4257('0x1')),_0x246226['enableCommand']('replaceAll');}[_0x4257('0xb')](_0x34760e,_0x48f599,_0x4365a4={}){const _0x587100=this[_0x4257('0x11')][_0x4257('0x3')][_0x4257('0x16')](_0x4257('0x8'));void 0x0!==_0x4365a4&&_0x34760e(_0x4b3cb0=>(_0x4257('0xa')==typeof _0x48f599?_0x587100['findByTextCallback'](_0x48f599,_0x4365a4):_0x48f599)(_0x4b3cb0)[_0x4257('0x14')](_0x46d4f5=>!0x1===this[_0x4257('0x17')](_0x46d4f5,_0x4b3cb0[_0x4257('0xe')])),_0x4365a4);}[_0x4257('0x17')](_0x53b2f7,_0x21a5a9){const _0x537310=this[_0x4257('0x11')][_0x4257('0x15')]['createRange'](this['editor'][_0x4257('0x15')][_0x4257('0x5')](_0x21a5a9,_0x53b2f7['start']),this[_0x4257('0x11')]['model'][_0x4257('0x5')](_0x21a5a9,_0x53b2f7['end']));for(const _0x151422 of this[_0x4257('0x11')]['model'][_0x4257('0x6')][_0x4257('0x7')]('suggestion:deletion'))if(null!==_0x537310[_0x4257('0x0')](_0x151422[_0x4257('0x12')]()))return!0x0;return!0x1;}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/font
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for font features.
|
|
7
11
|
*/
|
package/src/integrations/font.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0xd2bd=['document','fontSize','isCollapsed','markInlineFormat','*Set\x20font\x20size:*\x20%0','commandName','afterInit','trim','editor','*Reset\x20font\x20size*','*Reset\x20font\x20color*','enableCommand','FontColorEditing','normalizeSizeOptions','FontSizeEditing','*Set\x20font\x20background\x20color:*\x20%0','from','selection','has','locale','commandParams','*Set\x20font\x20family:*\x20%0','toLowerCase','fontColor.colors','get','config','fontBackgroundColor.colors','title','fontFamily','format','plugins','getRanges','fontColor','TrackChangesEditing','*Set\x20font\x20color:*\x20%0','FontBackgroundColorEditing','model','_enableCommand','value','label','fontBackgroundColor','find'];(function(_0x44718a,_0xd2bd40){const _0x2fd91e=function(_0x1b2af2){while(--_0x1b2af2){_0x44718a['push'](_0x44718a['shift']());}};_0x2fd91e(++_0xd2bd40);}(_0xd2bd,0x183));const _0x2fd9=function(_0x44718a,_0xd2bd40){_0x44718a=_0x44718a-0x0;let _0x2fd91e=_0xd2bd[_0x44718a];return _0x2fd91e;};import{Plugin as _0x1ded07}from'ckeditor5/src/core';import{normalizeColorOptions as _0xa6acb5}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x5b4981}from'./utils';import{getTranslation as _0x4842b8}from'../utils/common-translations';const Zt=[{'pluginName':_0x2fd9('0x5'),'commandName':_0x2fd9('0x22')},{'pluginName':'FontFamilyEditing','commandName':_0x2fd9('0x13')},{'pluginName':_0x2fd9('0x3'),'commandName':_0x2fd9('0x17')},{'pluginName':_0x2fd9('0x1a'),'commandName':_0x2fd9('0x1f')}];export default class H extends _0x1ded07{[_0x2fd9('0x27')](){const _0x3a423e=this[_0x2fd9('0x29')][_0x2fd9('0xa')];for(const {pluginName:_0x5a72cb,commandName:_0x49a996}of Zt)this[_0x2fd9('0x29')][_0x2fd9('0x15')][_0x2fd9('0x9')](_0x5a72cb)&&this['_enableCommand'](_0x49a996);this['editor'][_0x2fd9('0x15')][_0x2fd9('0xf')](_0x2fd9('0x18'))['_descriptionFactory']['registerDescriptionCallback'](_0x58746f=>{const _0x446589=_0x3a423e['t'],{data:_0x19155d}=_0x58746f;if(null!=_0x19155d){if(_0x2fd9('0x22')==_0x19155d[_0x2fd9('0x26')]){const _0x106769=_0x19155d[_0x2fd9('0xb')][0x0][_0x2fd9('0x1d')];if(_0x106769){const _0x55f3cf=_0x446589(this[_0x2fd9('0x29')][_0x2fd9('0x15')][_0x2fd9('0xf')]('FontSize')[_0x2fd9('0x4')](this[_0x2fd9('0x29')][_0x2fd9('0x10')][_0x2fd9('0xf')]('fontSize.options'))[_0x2fd9('0x20')](_0x176d31=>_0x176d31['model']==_0x106769)[_0x2fd9('0x12')])[_0x2fd9('0xd')]();return{'type':_0x2fd9('0x14'),'content':_0x4842b8(_0x3a423e,_0x2fd9('0x25'),_0x55f3cf)};}return{'type':'format','content':_0x4842b8(_0x3a423e,_0x2fd9('0x0'))};}if('fontFamily'==_0x19155d[_0x2fd9('0x26')]){const _0x4a7c8d=_0x19155d[_0x2fd9('0xb')][0x0][_0x2fd9('0x1d')];return _0x4a7c8d?{'type':_0x2fd9('0x14'),'content':_0x4842b8(_0x3a423e,_0x2fd9('0xc'),_0x4a7c8d)}:{'type':'format','content':_0x4842b8(_0x3a423e,'*Reset\x20font\x20family*')};}if(_0x2fd9('0x17')==_0x19155d[_0x2fd9('0x26')]){const _0x4e2b3c=_0x19155d[_0x2fd9('0xb')][0x0][_0x2fd9('0x1d')];if(_0x4e2b3c){const _0x46be2b=_0xa6acb5(this[_0x2fd9('0x29')][_0x2fd9('0x10')][_0x2fd9('0xf')](_0x2fd9('0xe')))[_0x2fd9('0x20')](_0x5f51fc=>_0x5f51fc[_0x2fd9('0x1b')]==_0x4e2b3c);let _0x6c2003=_0x4e2b3c,_0xabcafd='';return _0x46be2b&&(_0x6c2003=_0x46be2b['label'],_0xabcafd=_0x446589(_0x6c2003)['toLowerCase']()),{'type':_0x2fd9('0x14'),'content':_0x4842b8(_0x3a423e,_0x2fd9('0x19'),_0xabcafd)[_0x2fd9('0x28')](),'color':{'value':_0x4e2b3c,'title':_0xabcafd||_0x6c2003}};}return{'type':_0x2fd9('0x14'),'content':_0x4842b8(_0x3a423e,_0x2fd9('0x1'))};}if(_0x2fd9('0x1f')==_0x19155d[_0x2fd9('0x26')]){const _0x10d51f=_0x19155d[_0x2fd9('0xb')][0x0][_0x2fd9('0x1d')];if(_0x10d51f){const _0x46d076=_0xa6acb5(this[_0x2fd9('0x29')][_0x2fd9('0x10')]['get'](_0x2fd9('0x11')))['find'](_0x999585=>_0x999585[_0x2fd9('0x1b')]==_0x10d51f);let _0x245ac9=_0x10d51f,_0x22223d='';return _0x46d076&&(_0x245ac9=_0x46d076[_0x2fd9('0x1e')],_0x22223d=_0x446589(_0x245ac9)[_0x2fd9('0xd')]()),{'type':'format','content':_0x4842b8(_0x3a423e,_0x2fd9('0x6'),_0x22223d)[_0x2fd9('0x28')](),'color':{'value':_0x10d51f,'title':_0x22223d||_0x245ac9}};}return{'type':_0x2fd9('0x14'),'content':_0x4842b8(_0x3a423e,'*Reset\x20font\x20background\x20color*')};}}});}[_0x2fd9('0x1c')](_0x804ec5){const _0x305e87=this['editor'];_0x305e87[_0x2fd9('0x15')]['get'](_0x2fd9('0x18'))[_0x2fd9('0x2')](_0x804ec5,(_0x1ee969,_0xb7425c={})=>{const _0x4169b6=_0x305e87[_0x2fd9('0x1b')][_0x2fd9('0x21')][_0x2fd9('0x8')],_0x118489=_0xb7425c[_0x2fd9('0x1d')];_0x4169b6[_0x2fd9('0x23')]?_0x1ee969(_0xb7425c):_0x305e87['model']['change'](()=>{const _0x35e65d=Array[_0x2fd9('0x7')](_0x4169b6[_0x2fd9('0x16')]());for(const _0x389add of _0x35e65d){const _0x4535e6=_0x118489?[_0x389add]:_0x5b4981(_0x804ec5,_0x389add,_0x305e87[_0x2fd9('0x1b')]);for(const _0x3b51a4 of _0x4535e6)_0x305e87[_0x2fd9('0x15')][_0x2fd9('0xf')](_0x2fd9('0x18'))[_0x2fd9('0x24')](_0x3b51a4,{'commandName':_0x804ec5,'commandParams':[{'value':_0x118489}]});}});});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/formatpainter
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for the Format Painter feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x1ced=['getAttributes','TrackChangesEditing','format','from','keys','isCollapsed','createRange','*Set\x20format\x20to:*\x20%0','get','toUpperCase','isFormatting','locale','commandName','plugins','backward','commands','modifySelection','find','markInlineFormat','length','slice','change','isBlock','getFirstPosition','selection','split','fontSize.options','pasteFormat','editor','fontBackgroundColor','fontSize','model','title','FontSize','schema','getRanges','getItems','fontColor','fontColor.colors','join','getLastPosition','config','getSelectedBlocks','_descriptionFactory','afterInit','forward','*Remove\x20all\x20formatting*','toLowerCase','commandParams','copyFormat','enableCommand','registerDescriptionCallback','getAttributeProperties','entries'];(function(_0x150575,_0x1cede0){const _0x45f82c=function(_0x32e555){while(--_0x32e555){_0x150575['push'](_0x150575['shift']());}};_0x45f82c(++_0x1cede0);}(_0x1ced,0xbc));const _0x45f8=function(_0x150575,_0x1cede0){_0x150575=_0x150575-0x0;let _0x45f82c=_0x1ced[_0x150575];return _0x45f82c;};import{Plugin as _0x364147}from'ckeditor5/src/core';import{normalizeColorOptions as _0x468e23}from'ckeditor5/src/ui';import{first as _0x3ede4e}from'ckeditor5/src/utils';import{getTranslation as _0x18c161}from'../utils/common-translations';export default class W extends _0x364147{[_0x45f8('0x12')](){const _0x38abfb=this[_0x45f8('0x2')],_0xa05271=_0x38abfb[_0x45f8('0x5')],_0x33f722=_0xa05271['document'][_0x45f8('0x34')],_0x158362=_0x38abfb[_0x45f8('0x29')][_0x45f8('0x24')](_0x45f8('0x1d')),_0x3694a9=_0x38abfb['locale'],_0x414659=_0x38abfb[_0x45f8('0x2b')][_0x45f8('0x24')](_0x45f8('0x17')),_0x44f1f3=_0x38abfb[_0x45f8('0x2b')][_0x45f8('0x24')]('pasteFormat');_0x414659&&_0x44f1f3&&(_0x158362[_0x45f8('0x18')](_0x45f8('0x1'),(_0x5b2bc1,_0x52ef37={})=>{const _0x248036=_0x52ef37;_0xa05271[_0x45f8('0x31')](()=>{const _0x6abcea=Array[_0x45f8('0x1f')](_0x33f722[_0x45f8('0x9')]()),_0x50d7cb=_0x33f722[_0x45f8('0x21')]?[no(_0xa05271,_0x33f722)]:_0x6abcea,_0x2099c3=!!_0x3ede4e(function*(_0x367cbd,_0x2b175c){const _0x586c41=_0x20d919=>!!_0x3ede4e(function*(_0x9c45ae,_0x70e881){for(const [_0x11886b]of _0x9c45ae[_0x45f8('0x1c')]()){const _0x258a65=_0x70e881[_0x45f8('0x1a')](_0x11886b);_0x258a65&&_0x258a65[_0x45f8('0x26')]&&(yield _0x11886b);}}(_0x20d919,_0x2b175c));for(const _0x2c5de9 of _0x367cbd['getRanges']())for(const _0xa6f5d2 of _0x2c5de9[_0x45f8('0xa')]())!_0x2b175c[_0x45f8('0x32')](_0xa6f5d2)&&_0x586c41(_0xa6f5d2)&&(yield _0xa6f5d2);for(const _0x3079fd of _0x367cbd[_0x45f8('0x10')]())_0x586c41(_0x3079fd)&&(yield _0x3079fd);_0x586c41(_0x367cbd)&&(yield _0x367cbd);}(_0x33f722,_0xa05271[_0x45f8('0x8')]));if(_0x2099c3||0x0!==Object[_0x45f8('0x20')](_0x248036)[_0x45f8('0x2f')])for(const _0x1f3d0f of _0x50d7cb)_0x158362[_0x45f8('0x2e')](_0x1f3d0f,{'commandName':_0x45f8('0x1'),'commandParams':[_0x248036]});});}),_0x158362[_0x45f8('0x11')][_0x45f8('0x19')](_0x4281be=>{const {data:_0x905f08}=_0x4281be;if(_0x905f08&&_0x45f8('0x1')===_0x905f08[_0x45f8('0x28')]){const _0x4520a2=[],_0x2d55ed=_0x905f08[_0x45f8('0x16')][0x0];for(const [_0x599153,_0x176f2d]of Object[_0x45f8('0x1b')](_0x2d55ed))_0x4520a2['push'](co(_0x38abfb,_0x599153,_0x176f2d));return _0x4520a2['length']?{'type':_0x45f8('0x1e'),'content':_0x18c161(_0x3694a9,_0x45f8('0x23'),_0x4520a2[_0x45f8('0xd')](',\x20'))}:{'type':_0x45f8('0x1e'),'content':_0x18c161(_0x3694a9,_0x45f8('0x14'))};}}),_0x38abfb[_0x45f8('0x29')][_0x45f8('0x24')]('TrackChangesEditing')[_0x45f8('0x18')](_0x45f8('0x17')));}}function no(_0x394878,_0x24ff96){const _0x4de61c=_0x394878['createSelection'](_0x24ff96);_0x394878[_0x45f8('0x2c')](_0x4de61c,{'unit':'word','direction':_0x45f8('0x2a')});const _0x3979de=_0x4de61c[_0x45f8('0x33')]();_0x394878[_0x45f8('0x2c')](_0x4de61c,{'unit':'word','direction':_0x45f8('0x13')});const _0x24b57b=_0x4de61c[_0x45f8('0xe')]();return _0x394878[_0x45f8('0x22')](_0x3979de,_0x24b57b);}function co(_0x515dee,_0x2d3ea9,_0x5844f5){const _0x58f4f2=_0x515dee[_0x45f8('0x27')]['t'],_0x42d22b=_0x2d3ea9[_0x45f8('0x35')](/(?=[A-Z])/)[_0x45f8('0xd')]('\x20'),_0x258491=_0x58f4f2(_0x42d22b['charAt'](0x0)[_0x45f8('0x25')]()+_0x42d22b[_0x45f8('0x30')](0x1))[_0x45f8('0x15')]();if('boolean'==typeof _0x5844f5)return _0x258491;if(_0x45f8('0xb')===_0x2d3ea9||_0x45f8('0x3')===_0x2d3ea9){const _0x202fa8=_0x468e23(_0x515dee[_0x45f8('0xf')][_0x45f8('0x24')](_0x45f8('0xc')))[_0x45f8('0x2d')](_0x4acfce=>_0x4acfce[_0x45f8('0x5')]==_0x5844f5);return _0x258491+'\x20('+(_0x202fa8?_0x58f4f2(_0x202fa8['label'])['toLowerCase']():_0x5844f5)+')';}if(_0x45f8('0x4')===_0x2d3ea9&&isNaN(parseFloat(_0x5844f5))){const _0xfe7d9e=_0x515dee['plugins'][_0x45f8('0x24')](_0x45f8('0x7'))['normalizeSizeOptions'](_0x515dee['config'][_0x45f8('0x24')](_0x45f8('0x0')))[_0x45f8('0x2d')](_0x42acc0=>_0x42acc0[_0x45f8('0x5')]==_0x5844f5);return _0x258491+'\x20('+(_0xfe7d9e?_0x58f4f2(_0xfe7d9e[_0x45f8('0x6')])[_0x45f8('0x15')]():_0x5844f5)+')';}return _0x258491+'\x20('+_0x5844f5+')';}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/heading
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for heading feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
|
23
|
+
const _0x15b4=['format','name','match','find','heading','config','plugins','isObject','selection','TrackChangesEditing','document','heading.options','change','blockName','filter','formatBlock','value','HeadingEditing','markBlockFormat','*Change\x20to:*\x20%0','has','get','registerElementLabel','commandParams','getSelectedBlocks','model','title','_descriptionFactory','editor','paragraph','ELEMENT_HEADING'];(function(_0x609739,_0x15b47a){const _0x1db2b0=function(_0x4fe04){while(--_0x4fe04){_0x609739['push'](_0x609739['shift']());}};_0x1db2b0(++_0x15b47a);}(_0x15b4,0x7d));const _0x1db2=function(_0x609739,_0x15b47a){_0x609739=_0x609739-0x0;let _0x1db2b0=_0x15b4[_0x609739];return _0x1db2b0;};import{Plugin as _0x57c331}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xb5964b}from'./utils';import{getTranslation as _0x4fe08f}from'../utils/common-translations';export default class J extends _0x57c331{['afterInit'](){const _0x586b0d=this[_0x1db2('0x1b')],_0x210aea=_0x586b0d['locale'],_0x490721=_0x586b0d[_0x1db2('0x4')][_0x1db2('0x14')](_0x1db2('0xa'));if(!_0x586b0d['plugins'][_0x1db2('0x13')](_0x1db2('0x10')))return;const _0x59603b=_0x586b0d[_0x1db2('0x5')][_0x1db2('0x14')](_0x1db2('0x8'));_0x59603b['enableCommand'](_0x1db2('0x3'),(_0xa9acb,_0x5131c4)=>{const _0x5a9a15=_0x5131c4[_0x1db2('0xf')],_0x567ab7=Array['from'](this[_0x1db2('0x1b')][_0x1db2('0x18')][_0x1db2('0x9')][_0x1db2('0x7')][_0x1db2('0x17')]())[_0x1db2('0xd')](_0x17cb49=>function(_0x4990c6,_0x32fd8c,_0x5c2735){return _0x5c2735['checkChild'](_0x4990c6['parent'],_0x32fd8c)&&!_0x5c2735[_0x1db2('0x6')](_0x4990c6)&&_0x4990c6[_0x1db2('0x0')]!=_0x32fd8c;}(_0x17cb49,_0x5a9a15,this[_0x1db2('0x1b')][_0x1db2('0x18')]['schema']));_0x586b0d[_0x1db2('0x18')][_0x1db2('0xb')](()=>{for(const _0x3b702c of _0x567ab7)_0x59603b[_0x1db2('0x11')](_0x3b702c,{'commandName':_0x1db2('0x3'),'commandParams':[_0x5131c4],'formatGroupId':_0x1db2('0xc')},_0xb5964b(_0x3b702c));});});for(const _0x302064 of _0x490721)_0x1db2('0x1c')!=_0x302064[_0x1db2('0x18')]&&_0x59603b[_0x1db2('0x1a')][_0x1db2('0x15')](_0x302064[_0x1db2('0x18')],_0x56eefc=>{const _0x63bd07=nn(_0x302064['model']);return null!==_0x63bd07?_0x129f47(_0x56eefc,_0x63bd07):_0x3346b1(_0x56eefc,_0x302064[_0x1db2('0x19')]);});function _0x129f47(_0x281df8,_0x190390){return _0x4fe08f(_0x210aea,_0x1db2('0x1d'),[_0x281df8,_0x190390]);}function _0x3346b1(_0x43371d,_0x55ce4c){return _0x4fe08f(_0x210aea,'ELEMENT_HEADING_CUSTOM',[_0x43371d,_0x55ce4c]);}_0x59603b[_0x1db2('0x1a')]['registerDescriptionCallback'](_0x4debcf=>{const {type:_0x2f9a97,data:_0x4892d1}=_0x4debcf;if(_0x1db2('0xe')==_0x2f9a97&&_0x4892d1&&_0x1db2('0x3')==_0x4892d1['commandName']){const _0x286e8e=_0x4892d1[_0x1db2('0x16')][0x0][_0x1db2('0xf')],_0x3bd4a4=nn(_0x286e8e);if(null!==_0x3bd4a4)return{'type':_0x1db2('0x1e'),'content':_0x4fe08f(_0x210aea,_0x1db2('0x12'),_0x129f47(0x1,_0x3bd4a4))};const _0x599e29=_0x490721[_0x1db2('0x2')](_0x4a49c2=>_0x4a49c2[_0x1db2('0x18')]===_0x286e8e)[_0x1db2('0x19')];return{'type':'format','content':_0x4fe08f(_0x210aea,_0x1db2('0x12'),_0x3346b1(0x1,_0x599e29))};}});}}function nn(_0x472ed9){const _0x3a6781=_0x472ed9[_0x1db2('0x1')](/^heading(\d+)$/);return _0x3a6781?_0x3a6781[0x1]:null;}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/highlight
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for highlight feature.
|
|
7
11
|
*/
|