@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.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/build/track-changes.js +1 -1
- package/package.json +10 -8
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -12
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -11
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -11
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -11
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -17
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -17
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -17
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -17
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -38
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -391
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -184
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- package/src/utils/utils.js +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/ckbox
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for the CKBox feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesCKBox extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/ckbox
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the CKBox feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesCKBox extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a6=['editor','TrackChangesEditing','commands','afterInit','plugins','ckbox','get','enableCommand'];(function(_0x2e9b15,_0x39a63c){const _0x5d2493=function(_0x163646){while(--_0x163646){_0x2e9b15['push'](_0x2e9b15['shift']());}};_0x5d2493(++_0x39a63c);}(_0x39a6,0x127));const _0x5d24=function(_0x2e9b15,_0x39a63c){_0x2e9b15=_0x2e9b15-0x0;let _0x5d2493=_0x39a6[_0x2e9b15];return _0x5d2493;};import{Plugin as _0x297d6f}from'ckeditor5/src/core';export default class E extends _0x297d6f{[_0x5d24('0x4')](){const _0x4566af=this[_0x5d24('0x1')];_0x4566af[_0x5d24('0x3')][_0x5d24('0x7')](_0x5d24('0x6'))&&_0x4566af[_0x5d24('0x5')]['get'](_0x5d24('0x2'))[_0x5d24('0x0')]('ckbox');}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/codeblock
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for code block feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesCodeBlock extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/codeblock
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for code block feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesCodeBlock extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23b4=['model','plugins','get','ELEMENT_CODE_BLOCK','forceValue','schema','name','locale','filter','checkChild','has','editor','language','TrackChangesEditing','markBlockFormat','config','*Remove\x20format:*\x20%0','format','registerElementLabel','find','_descriptionFactory','change','isLimit','selection','blockName','rootElement','enableCommand','CodeBlock','from','getSelectedBlocks','label','languages','commands','parent','afterInit','registerDescriptionCallback','codeBlock','commandParams'];(function(_0x283c55,_0x23b483){const _0x1d08b2=function(_0x3796e6){while(--_0x3796e6){_0x283c55['push'](_0x283c55['shift']());}};_0x1d08b2(++_0x23b483);}(_0x23b4,0x10d));const _0x1d08=function(_0x283c55,_0x23b483){_0x283c55=_0x283c55-0x0;let _0x1d08b2=_0x23b4[_0x283c55];return _0x1d08b2;};import{Plugin as _0x57b3bf}from'ckeditor5/src/core';import{getTranslation as _0x316871}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x541a9c}from'../utils/utils';export default class O extends _0x57b3bf{[_0x1d08('0x1f')](){const _0x212351=this[_0x1d08('0x8')];if(!_0x212351[_0x1d08('0x24')][_0x1d08('0x7')](_0x1d08('0x18')))return;const _0x4cc26c=_0x212351['plugins'][_0x1d08('0x25')](_0x1d08('0xa')),_0xf0affe=_0x212351[_0x1d08('0x4')],_0x40dbd3=_0x212351[_0x1d08('0xc')][_0x1d08('0x25')]('codeBlock')[_0x1d08('0x1c')],_0x325656=_0x212351[_0x1d08('0x1d')]['get']('codeBlock');_0x4cc26c[_0x1d08('0x17')]('indentCodeBlock'),_0x4cc26c[_0x1d08('0x17')]('outdentCodeBlock'),_0x4cc26c['enableCommand'](_0x1d08('0x21'),(_0x5b1007,_0x3955f4={})=>{const _0x5e954d=_0x212351[_0x1d08('0x23')],_0x5df01d=_0x212351[_0x1d08('0x23')]['document'][_0x1d08('0x14')],_0x42b613=_0x3955f4&&void 0x0!==_0x3955f4[_0x1d08('0x1')]?_0x3955f4[_0x1d08('0x1')]:!_0x325656['value'];let _0x55d770;_0x3955f4['language']||(_0x3955f4['language']=_0x40dbd3[0x0][_0x1d08('0x9')]),_0x55d770=_0x42b613?Array[_0x1d08('0x19')](_0x5df01d[_0x1d08('0x1a')]())['filter'](_0x3681f0=>oo(_0x3681f0)||function(_0x105c83,_0x452166){if(_0x105c83['is'](_0x1d08('0x16'))||_0x452166[_0x1d08('0x13')](_0x105c83))return!0x1;return _0x452166[_0x1d08('0x6')](_0x105c83[_0x1d08('0x1e')],_0x1d08('0x21'));}(_0x3681f0,_0x5e954d[_0x1d08('0x2')])):Array[_0x1d08('0x19')](_0x5df01d[_0x1d08('0x1a')]())[_0x1d08('0x5')](_0x3555cc=>oo(_0x3555cc));const _0xfde527=_0x541a9c(_0x55d770,_0x5e954d);_0x5e954d[_0x1d08('0x12')](()=>{for(const _0xfe0b02 of _0xfde527)_0x4cc26c[_0x1d08('0xb')](_0xfe0b02,{'commandName':_0x1d08('0x21'),'commandParams':[{..._0x3955f4,'forceValue':_0x42b613}],'formatGroupId':_0x1d08('0x15')});});}),(_0x4cc26c[_0x1d08('0x11')][_0x1d08('0xf')](_0x1d08('0x21'),_0x19976e=>_0x316871(_0xf0affe,'ELEMENT_CODE_BLOCK',_0x19976e)),_0x4cc26c['_descriptionFactory'][_0x1d08('0x20')](_0x54b16c=>{const _0xed7331=_0xf0affe['t'],{type:_0x5d9677,data:_0x3c8d1b}=_0x54b16c;if('formatBlock'==_0x5d9677&&_0x3c8d1b&&_0x1d08('0x21')==_0x3c8d1b['commandName']){const _0x4042c1=_0x3c8d1b[_0x1d08('0x22')][0x0][_0x1d08('0x9')],_0x1963fd=_0xed7331(_0x40dbd3[_0x1d08('0x10')](_0x32cb4e=>_0x32cb4e['language']===_0x4042c1)[_0x1d08('0x1b')]);return _0x3c8d1b[_0x1d08('0x22')][0x0][_0x1d08('0x1')]?{'type':_0x1d08('0xe'),'content':_0x316871(_0xf0affe,'*Format:*\x20%0',_0x316871(_0xf0affe,_0x1d08('0x0'),0x1)+'\x20('+_0x1963fd+')')}:{'type':'format','content':_0x316871(_0xf0affe,_0x1d08('0xd'),_0x316871(_0xf0affe,_0x1d08('0x0'),0x1))};}}));}}function oo(_0x5ddda6){return _0x1d08('0x21')==_0x5ddda6[_0x1d08('0x3')];}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/comments
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesComments extends Plugin {
|
|
9
|
-
afterInit(): void;
|
|
10
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/comments
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesComments extends Plugin {
|
|
9
|
+
afterInit(): void;
|
|
10
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa5f=['plugins','addCommentThread','afterInit','get','has','CommentsEditing','enableCommand','editor'];(function(_0x519948,_0xfa5f8e){const _0x227c7a=function(_0x4b4b99){while(--_0x4b4b99){_0x519948['push'](_0x519948['shift']());}};_0x227c7a(++_0xfa5f8e);}(_0xfa5f,0x1bb));const _0x227c=function(_0x519948,_0xfa5f8e){_0x519948=_0x519948-0x0;let _0x227c7a=_0xfa5f[_0x519948];return _0x227c7a;};import{Plugin as _0x27ebc4}from'ckeditor5/src/core';export default class F extends _0x27ebc4{[_0x227c('0x7')](){const _0x29b266=this[_0x227c('0x4')];if(!_0x29b266[_0x227c('0x5')][_0x227c('0x1')](_0x227c('0x2')))return;_0x29b266[_0x227c('0x5')][_0x227c('0x0')]('TrackChangesEditing')[_0x227c('0x3')](_0x227c('0x6'));}}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/deletecommand
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/deletecommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
8
|
+
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesDeleteCommand extends Plugin {
|
|
11
|
+
static get requires(): readonly [typeof Delete];
|
|
12
|
+
init(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e8e=['rootName','high','start','buffer','writer','isCollapsed','init','deleteForward','mapper','TrackChangesEditing','options','uiElement','editing','selection','requires','markerNameToElements','lock','fromRange','delete','addMarker:suggestion:deletion','unbindElementFromMarkerName','batch','unit','data','$graveyard','enqueueChange','downcastDispatcher','unlock','root','removeMarker:suggestion:deletion','createRange','forward','model','markerName','enableCommand','editor','merge','end','showSuggestionHighlights','document'];(function(_0x101153,_0x3e8e09){const _0x19a30c=function(_0xa37dfe){while(--_0xa37dfe){_0x101153['push'](_0x101153['shift']());}};_0x19a30c(++_0x3e8e09);}(_0x3e8e,0xa7));const _0x19a3=function(_0x101153,_0x3e8e09){_0x101153=_0x101153-0x0;let _0x19a30c=_0x3e8e[_0x101153];return _0x19a30c;};import{Plugin as _0x1ea941}from'ckeditor5/src/core';import{LiveRange as _0x2b14af}from'ckeditor5/src/engine';import{Delete as _0x40227a}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1ef5fa}from'./utils';export default class G extends _0x1ea941{static get[_0x19a3('0x7')](){return[_0x40227a];}[_0x19a3('0x27')](){const _0x33199c=this[_0x19a3('0x1c')],_0x2b4847=_0x33199c['plugins']['get'](_0x19a3('0x2'));_0x2b4847[_0x19a3('0x1b')](_0x19a3('0xb'));const _0x3dda8e=_0x33199c['commands']['get'](_0x19a3('0x0'));_0x2b4847['enableCommand'](_0x19a3('0x0'),(_0x2a3708,_0x38a45c={})=>{const _0x198fb1=_0x33199c['model']['createSelection'](_0x33199c[_0x19a3('0x19')][_0x19a3('0x20')][_0x19a3('0x6')]);_0x198fb1[_0x19a3('0x26')]&&_0x33199c[_0x19a3('0x19')]['modifySelection'](_0x198fb1,{'direction':_0x19a3('0x18'),'unit':_0x38a45c[_0x19a3('0xf')]});const _0x32c69c=_0x198fb1['getFirstRange'](),_0x51385e=_0x2b14af[_0x19a3('0xa')](_0x32c69c);let _0x546457;_0x2a3708(_0x38a45c),_0x546457=_0x19a3('0x11')==_0x51385e[_0x19a3('0x15')][_0x19a3('0x21')]?_0x33199c[_0x19a3('0x19')][_0x19a3('0x17')](_0x32c69c[_0x19a3('0x23')]):_0x33199c[_0x19a3('0x19')]['createRange'](_0x51385e['start'],_0x51385e[_0x19a3('0x1e')]),_0x51385e['detach'](),_0x33199c['model'][_0x19a3('0x12')](_0x3dda8e[_0x19a3('0x24')][_0x19a3('0xe')],_0x6ad8b1=>{_0x3dda8e[_0x19a3('0x24')][_0x19a3('0x9')](),_0x6ad8b1['setSelection'](_0x6ad8b1[_0x19a3('0x17')](_0x546457[_0x19a3('0x1e')])),_0x3dda8e['buffer'][_0x19a3('0x14')]();});}),_0x33199c[_0x19a3('0x5')][_0x19a3('0x13')]['on']('addMarker:suggestion:deletion',_0x1ef5fa(_0x33199c,_0x19a3('0x1d')),{'priority':'high'}),_0x33199c[_0x19a3('0x10')][_0x19a3('0x13')]['on'](_0x19a3('0xc'),(_0x2382f6,_0x224847,_0x303981)=>{_0x303981[_0x19a3('0x3')][_0x19a3('0x1f')]&&_0x1ef5fa(_0x33199c,_0x19a3('0x1d'),{'showActiveMarker':!0x1})['bind'](this)(_0x2382f6,_0x224847,_0x303981);},{'priority':_0x19a3('0x22')}),_0x33199c[_0x19a3('0x5')][_0x19a3('0x13')]['on'](_0x19a3('0x16'),(_0x1294db,_0x2f5889,_0x13b565)=>{const _0x90f4e9=_0x13b565['mapper'][_0x19a3('0x8')](_0x2f5889[_0x19a3('0x1a')]);if(_0x90f4e9)for(const _0xa94ce6 of _0x90f4e9)_0xa94ce6['is'](_0x19a3('0x4'))&&(_0x13b565[_0x19a3('0x1')][_0x19a3('0xd')](_0xa94ce6,_0x2f5889[_0x19a3('0x1a')]),_0x13b565[_0x19a3('0x25')]['remove'](_0xa94ce6));},{'priority':'high'});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/documentlist
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for document list feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesDocumentList extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/documentlist
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for document list feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesDocumentList extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x74fb=['findIndex','listIndent','mergeListItemForward','indentList','containsItem','ELEMENT_NUMBERED_LIST','map','get','createPositionAt','ELEMENT_LIST_ITEM','getFirstRange','nextSibling','before','enableCommand','accept','length','change','ELEMENT_','locale','multipleBlocks','toUpperCase','previousSibling','numberedList','commandName','schema','selection','nodeAfter','listItemId','document','end','_descriptionFactory','has','afterInit','plugins','format','*Change\x20to:*\x20%0','listType','expandListBlocksToCompleteList','value','next','splitListItemBefore','setSelection','slice','commands','model','mergeListItemBackward','registerCustomCallback','documentList','*Format:*\x20insert\x20into\x20%0','*Outdent:*\x20%0','DocumentListEditing','splitListItemAfter','registerElementLabel','getRanges','start','editor','markMultiRangeBlockFormat','execute','forceValue','getSelectedBlocks','*Merge:*\x20%0','bulletedList','parent','isObject','from','*Format:*\x20remove\x20from\x20%0','after','createRange','_LIST','refresh','markBlockFormat','registerDescriptionCallback','push','outdentList','getAttribute'];(function(_0x101f77,_0x74fb32){const _0x543ff5=function(_0x45f6c1){while(--_0x45f6c1){_0x101f77['push'](_0x101f77['shift']());}};_0x543ff5(++_0x74fb32);}(_0x74fb,0xa7));const _0x543f=function(_0x101f77,_0x74fb32){_0x101f77=_0x101f77-0x0;let _0x543ff5=_0x74fb[_0x101f77];return _0x543ff5;};import{Plugin as _0x4beb28}from'ckeditor5/src/core';import{getTranslation as _0x333c04}from'../utils/common-translations';import{LiveRange as _0x405b20}from'ckeditor5/src/engine';export default class L extends _0x4beb28{[_0x543f('0xf')](){const _0x3175e3=this[_0x543f('0x26')];if(!_0x3175e3[_0x543f('0x10')][_0x543f('0xe')](_0x543f('0x21')))return;const _0x516721=_0x3175e3[_0x543f('0x1')],_0x4416ef=_0x3175e3[_0x543f('0x10')][_0x543f('0x41')]('TrackChangesEditing'),_0x2bdf25=_0x3175e3[_0x543f('0x10')]['get']('DocumentListUtils');function _0x3f56c2(_0x1c2d67){return()=>{const _0x347e00=_0x3175e3[_0x543f('0x1a')][_0x543f('0x41')](_0x1c2d67);let _0x43fa74=Array[_0x543f('0x2f')](_0x3175e3[_0x543f('0x1b')][_0x543f('0xb')][_0x543f('0x8')][_0x543f('0x2a')]());if(_0x550b5d(_0x1c2d67)){_0x43fa74=_0x2bdf25[_0x543f('0x14')](_0x43fa74);const _0x82691f=[];for(const _0xa4d4ec of _0x43fa74)_0x2bdf25['isFirstBlockOfListItem'](_0xa4d4ec)&&_0x82691f['push'](_0xa4d4ec);_0x43fa74=_0x82691f;}_0x3175e3['model'][_0x543f('0x4a')](()=>{_0x4416ef[_0x543f('0x27')](_0x43fa74,{'commandName':_0x1c2d67,'commandParams':[{'forceValue':!_0x347e00[_0x543f('0x15')]}],'formatGroupId':_0x543f('0x13')},[],_0x543f('0x1e'));});};}function _0x258b21(_0x21db5c){return()=>{const _0xc14f41=function(_0x593b9d){let _0x3c7079=Array[_0x543f('0x2f')](_0x593b9d);const _0x35e0bf=_0x3c7079[_0x543f('0x3a')](_0x8d0139=>!_0x8d0139['hasAttribute']('listItemId'));return _0x35e0bf>-0x1&&(_0x3c7079=_0x3c7079[_0x543f('0x19')](0x0,_0x35e0bf)),_0x3c7079;}(_0x3175e3['model']['document']['selection'][_0x543f('0x2a')]()),_0x308f49=_0xc14f41[_0xc14f41[_0x543f('0x49')]-0x1],_0xdd9a94=_0x3175e3[_0x543f('0x1b')]['schema']['isObject'](_0x308f49)?_0x543f('0x31'):_0x543f('0xc'),_0x2d6033=_0x3175e3[_0x543f('0x1b')]['createRange'](_0x3175e3[_0x543f('0x1b')]['createPositionAt'](_0xc14f41[0x0],'before'),_0x3175e3[_0x543f('0x1b')][_0x543f('0x42')](_0x308f49,_0xdd9a94));_0x3175e3[_0x543f('0x1b')][_0x543f('0x4a')](()=>{_0x4416ef[_0x543f('0x35')](_0x2d6033,{'commandName':_0x21db5c,'commandParams':[],'formatGroupId':_0x543f('0x13')},function(_0xba3738){const _0x50a66e=new Set();for(const _0x2db852 of _0xba3738){let _0xb9d50c=_0x2db852[_0x543f('0x45')];for(;_0xb9d50c&&_0xb9d50c['getAttribute'](_0x543f('0x3b'))>_0x2db852[_0x543f('0x39')]('listIndent');)_0x50a66e['add'](_0xb9d50c),_0xb9d50c=_0xb9d50c[_0x543f('0x45')];}return Array[_0x543f('0x2f')](_0x50a66e);}(_0xc14f41));});};}function _0x442f1(_0x611b26){return()=>{const _0x27e4e8=_0x3175e3['model'][_0x543f('0xb')][_0x543f('0x8')][_0x543f('0x2a')]()[_0x543f('0x16')]()['value'],_0x4f73a6=_0x3175e3['model'][_0x543f('0x42')](_0x27e4e8,_0x543f('0x46')),_0x401ce8=_0x3175e3['model'][_0x543f('0x42')](_0x27e4e8,0x0),_0x43dba8=_0x3175e3[_0x543f('0x1b')][_0x543f('0x32')](_0x4f73a6,_0x401ce8);_0x3175e3[_0x543f('0x1b')][_0x543f('0x4a')](()=>{_0x4416ef[_0x543f('0x35')](_0x43dba8,{'commandName':_0x611b26,'commandParams':[],'formatGroupId':_0x543f('0x13')});});};}function _0x550b5d(_0x19f837){const _0xe9d03f=_0x3175e3[_0x543f('0x1a')][_0x543f('0x41')](_0x543f('0x2c'))[_0x543f('0x15')],_0x5627e6=_0x3175e3[_0x543f('0x1a')][_0x543f('0x41')]('numberedList')['value'];return'numberedList'===_0x19f837?_0xe9d03f:_0x5627e6;}_0x4416ef[_0x543f('0x47')](_0x543f('0x5'),_0x3f56c2('numberedList')),_0x4416ef[_0x543f('0x47')]('bulletedList',_0x3f56c2(_0x543f('0x2c'))),_0x4416ef['enableCommand'](_0x543f('0x3d'),_0x258b21(_0x543f('0x3d'))),_0x4416ef[_0x543f('0x47')]('outdentList',_0x258b21(_0x543f('0x38'))),_0x4416ef[_0x543f('0x47')](_0x543f('0x22'),_0x442f1('splitListItemAfter')),_0x4416ef[_0x543f('0x47')](_0x543f('0x17'),_0x442f1(_0x543f('0x17'))),_0x4416ef[_0x543f('0xd')][_0x543f('0x23')](function(_0x29f77b){const _0x50e596=!_0x3175e3[_0x543f('0x1b')][_0x543f('0x7')][_0x543f('0x2e')](_0x29f77b),_0x17fb94=_0x29f77b[_0x543f('0x4')],_0x4e7aea=_0x29f77b[_0x543f('0x45')],_0x416125=_0x29f77b['getAttribute'](_0x543f('0xa')),_0x24fcda=!_0x17fb94||_0x17fb94[_0x543f('0x39')](_0x543f('0xa'))!==_0x416125,_0x3c6aea=!_0x4e7aea||_0x4e7aea[_0x543f('0x39')](_0x543f('0xa'))!==_0x416125;return _0x50e596&&Boolean(_0x416125)&&_0x24fcda&&_0x3c6aea;},_0x53bac2=>_0x333c04(_0x516721,_0x543f('0x43'),_0x53bac2)),_0x4416ef[_0x543f('0xd')][_0x543f('0x36')](function(_0x4a7af5){const {data:_0x1edac7}=_0x4a7af5;if(!_0x1edac7)return;let _0x4a8018,_0x53a4d5,_0x3ea401,_0x5bf868;switch(_0x1edac7[_0x543f('0x6')]){case _0x543f('0x2c'):_0x3ea401=_0x1edac7['commandParams'][0x0][_0x543f('0x29')],_0x5bf868=_0x550b5d(_0x1edac7['commandName']),_0x4a8018=_0x3ea401?_0x543f('0x1f'):_0x543f('0x30'),_0x5bf868&&(_0x4a8018=_0x543f('0x12')),_0x53a4d5={'type':_0x543f('0x11'),'content':_0x333c04(_0x516721,_0x4a8018,_0x333c04(_0x516721,'ELEMENT_BULLETED_LIST'))};break;case _0x543f('0x5'):_0x3ea401=_0x1edac7['commandParams'][0x0][_0x543f('0x29')],_0x5bf868=_0x550b5d(_0x1edac7[_0x543f('0x6')]),_0x4a8018=_0x3ea401?_0x543f('0x1f'):_0x543f('0x30'),_0x5bf868&&(_0x4a8018=_0x543f('0x12')),_0x53a4d5={'type':_0x543f('0x11'),'content':_0x333c04(_0x516721,_0x4a8018,_0x333c04(_0x516721,_0x543f('0x3f')))};break;case _0x543f('0x3d'):_0x4a8018='*Indent:*\x20%0',_0x53a4d5={'type':_0x543f('0x11'),'content':_0x333c04(_0x516721,_0x4a8018,_0x333c04(_0x516721,_0x543f('0x43')))};break;case _0x543f('0x38'):_0x4a8018=function(_0x51b762){const _0x5341e7=_0x51b762['getFirstRange']();let _0x18c06b=_0x5341e7['start'][_0x543f('0x9')];for(;_0x18c06b&&_0x5341e7[_0x543f('0x3e')](_0x18c06b);){if(_0x18c06b['getAttribute'](_0x543f('0x3b'))>0x0)return!0x1;_0x18c06b=_0x18c06b['nextSibling'];}return!0x0;}(_0x4a7af5)?_0x333c04(_0x516721,'*Format:*\x20remove\x20from\x20%0',_0x333c04(_0x516721,function(_0x397fcd){const _0x137184=_0x397fcd[_0x543f('0x44')]()[_0x543f('0x25')]['nodeAfter'];return _0x543f('0x0')+_0x137184[_0x543f('0x39')](_0x543f('0x13'))[_0x543f('0x3')]()+_0x543f('0x33');}(_0x4a7af5))):_0x333c04(_0x516721,_0x543f('0x20'),_0x333c04(_0x516721,_0x543f('0x43'))),_0x53a4d5={'type':'format','content':_0x4a8018};break;case _0x543f('0x1c'):case _0x543f('0x3c'):!0x1===_0x1edac7[_0x543f('0x2')]&&(_0x4a8018=_0x543f('0x2b'),_0x53a4d5={'type':'deletion','content':_0x333c04(_0x516721,_0x4a8018,_0x333c04(_0x516721,_0x543f('0x43')))});}return _0x53a4d5;}),_0x4416ef['_suggestionFactory'][_0x543f('0x1d')]('formatBlock',_0x543f('0x1e'),_0x543f('0x48'),function(_0x784466,_0x30f6d8){const _0x389e8d=[];for(let _0x48c844 of _0x784466)_0x48c844[_0x543f('0x25')][_0x543f('0x9')]===_0x48c844['end'][_0x543f('0x2d')]&&(_0x48c844=_0x3175e3[_0x543f('0x1b')][_0x543f('0x32')](_0x3175e3['model'][_0x543f('0x42')](_0x48c844[_0x543f('0x25')][_0x543f('0x9')],0x0))),_0x389e8d[_0x543f('0x37')](_0x48c844);_0x3175e3[_0x543f('0x1b')][_0x543f('0x4a')](_0x25cea0=>{const _0x232a5f=_0x3175e3[_0x543f('0x1b')]['document'][_0x543f('0x8')],_0x33a1f4=Array[_0x543f('0x2f')](_0x232a5f[_0x543f('0x24')]())[_0x543f('0x40')](_0x49d571=>_0x405b20['fromRange'](_0x49d571));_0x25cea0[_0x543f('0x18')](_0x389e8d),_0x3175e3['commands'][_0x543f('0x41')](_0x30f6d8[_0x543f('0x6')])[_0x543f('0x34')](),_0x30f6d8['commandParams'][_0x543f('0x37')]({'forceDefaultExecution':!0x0}),_0x3175e3[_0x543f('0x28')](_0x30f6d8[_0x543f('0x6')],..._0x30f6d8['commandParams']),_0x25cea0['setSelection'](_0x33a1f4);for(const _0x9a9bbb of _0x33a1f4)_0x9a9bbb['detach']();});});}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/documentlistproperties
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
6
|
-
import type Suggestion from '../suggestion';
|
|
7
|
-
/**
|
|
8
|
-
* Provides track changes plugin integration for document list properties feature.
|
|
9
|
-
*/
|
|
10
|
-
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
afterInit(): void;
|
|
15
|
-
handleListStyleCommand(executeCommand: Function, options?: {
|
|
16
|
-
type?: string | null;
|
|
17
|
-
}): void;
|
|
18
|
-
handleListReversedCommand(executeCommand: Function, options?: {
|
|
19
|
-
reversed?: boolean;
|
|
20
|
-
}): void;
|
|
21
|
-
handleListStartCommand(executeCommand: Function, options?: {
|
|
22
|
-
startIndex?: number;
|
|
23
|
-
}): void;
|
|
24
|
-
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/documentlistproperties
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
afterInit(): void;
|
|
15
|
+
handleListStyleCommand(executeCommand: Function, options?: {
|
|
16
|
+
type?: string | null;
|
|
17
|
+
}): void;
|
|
18
|
+
handleListReversedCommand(executeCommand: Function, options?: {
|
|
19
|
+
reversed?: boolean;
|
|
20
|
+
}): void;
|
|
21
|
+
handleListStartCommand(executeCommand: Function, options?: {
|
|
22
|
+
startIndex?: number;
|
|
23
|
+
}): void;
|
|
24
|
+
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
25
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e50=['change','bind','commandName','handleListStartCommand','getListTypeFromListStyleType','listStart','editor','list.properties','replace','DocumentListPropertiesEditing','handleDescriptions','has','styles','isListItemBlock','ELEMENT_','_getTranslationKeyForListStyle','locale','selection','format','listType','_getSuggestionBlocks','commandParams','*Change\x20to:*\x20%0','*Format:*\x20set\x20start\x20index\x20to\x20%0','config','toUpperCase','enableCommand','plugins','*Format:*\x20set\x20order\x20to\x20regular','model','getAttribute','_descriptionFactory','markMultiRangeBlockFormat','isFirstBlockOfListItem','from','listStyle','numbered','TrackChangesEditing','type','listReversed','filter','reversed','handleListStyleCommand','DocumentListPropertiesUtils','getSelectedBlocks','startIndex','DocumentListUtils','*Format:*\x20set\x20order\x20to\x20reversed','afterInit','registerDescriptionCallback','get'];(function(_0x9b3971,_0x1e50d8){const _0x16e9fe=function(_0x4226d9){while(--_0x4226d9){_0x9b3971['push'](_0x9b3971['shift']());}};_0x16e9fe(++_0x1e50d8);}(_0x1e50,0x8c));const _0x16e9=function(_0x9b3971,_0x1e50d8){_0x9b3971=_0x9b3971-0x0;let _0x16e9fe=_0x1e50[_0x9b3971];return _0x16e9fe;};import{Plugin as _0xae27f}from'ckeditor5/src/core';import{getTranslation as _0x1a08b7}from'../utils/common-translations';export default class At extends _0xae27f{[_0x16e9('0xa')](){if(!this[_0x16e9('0x13')]['plugins'][_0x16e9('0x18')](_0x16e9('0x16')))return;const _0x306d9c=this['editor'][_0x16e9('0x25')][_0x16e9('0xc')](_0x16e9('0x14')),_0x1917b2=this[_0x16e9('0x13')][_0x16e9('0x28')][_0x16e9('0xc')](_0x16e9('0x32'));_0x306d9c[_0x16e9('0x19')]&&_0x1917b2[_0x16e9('0x27')](_0x16e9('0x30'),this['handleListStyleCommand']['bind'](this)),_0x306d9c[_0x16e9('0x3')]&&_0x1917b2[_0x16e9('0x27')](_0x16e9('0x1'),this['handleListReversedCommand'][_0x16e9('0xe')](this)),_0x306d9c[_0x16e9('0x7')]&&_0x1917b2[_0x16e9('0x27')](_0x16e9('0x12'),this['handleListStartCommand'][_0x16e9('0xe')](this)),_0x1917b2[_0x16e9('0x2c')][_0x16e9('0xb')](this['handleDescriptions'][_0x16e9('0xe')](this));}[_0x16e9('0x4')](_0x4be54b,_0x4341ff={}){const _0x2f4314=this[_0x16e9('0x13')][_0x16e9('0x28')][_0x16e9('0xc')](_0x16e9('0x32')),_0x1893d7=this['_getSuggestionBlocksForListStyle']();this['editor']['model'][_0x16e9('0xd')](()=>{_0x2f4314[_0x16e9('0x2d')](_0x1893d7,{'commandName':_0x16e9('0x30'),'commandParams':[{'type':_0x4341ff[_0x16e9('0x0')]}],'formatGroupId':_0x16e9('0x30')});});}['handleListReversedCommand'](_0x4649c5,_0x5e0a01={}){const _0x5106aa=this[_0x16e9('0x13')]['plugins'][_0x16e9('0xc')](_0x16e9('0x32')),_0x58c07a=this['editor']['plugins'][_0x16e9('0xc')]('DocumentListUtils'),_0x26f20d=this[_0x16e9('0x21')](_0x4bb30f=>_0x58c07a[_0x16e9('0x1a')](_0x4bb30f)&&_0x16e9('0x31')===_0x4bb30f[_0x16e9('0x2b')](_0x16e9('0x20')));null!==_0x26f20d&&this[_0x16e9('0x13')][_0x16e9('0x2a')][_0x16e9('0xd')](()=>{_0x5106aa['markMultiRangeBlockFormat'](_0x26f20d,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e0a01[_0x16e9('0x3')]}],'formatGroupId':'listReversed'});});}[_0x16e9('0x10')](_0x25796d,_0x5cce99={}){const _0x612553=this[_0x16e9('0x13')][_0x16e9('0x28')][_0x16e9('0xc')](_0x16e9('0x32')),_0x2fa8d6=this[_0x16e9('0x13')][_0x16e9('0x28')][_0x16e9('0xc')](_0x16e9('0x8')),_0x5a5de6=this['_getSuggestionBlocks'](_0x1126b6=>_0x2fa8d6[_0x16e9('0x1a')](_0x1126b6)&&'numbered'===_0x1126b6[_0x16e9('0x2b')](_0x16e9('0x20')));null!==_0x5a5de6&&this['editor']['model'][_0x16e9('0xd')](()=>{_0x612553[_0x16e9('0x2d')](_0x5a5de6,{'commandName':'listStart','commandParams':[{'startIndex':_0x5cce99['startIndex']}],'formatGroupId':'listStart'});});}[_0x16e9('0x17')](_0x2b9827){const _0x326988=this[_0x16e9('0x13')][_0x16e9('0x1d')],{data:_0x567703}=_0x2b9827;if(!_0x567703)return;let _0x15891d,_0x22a43e;switch(_0x567703[_0x16e9('0xf')]){case'listStyle':_0x15891d=_0x16e9('0x23'),_0x22a43e={'type':_0x16e9('0x1f'),'content':_0x1a08b7(_0x326988,_0x15891d,_0x1a08b7(_0x326988,this['_getTranslationKeyForListStyle'](_0x567703[_0x16e9('0x22')][0x0][_0x16e9('0x0')])))};break;case _0x16e9('0x1'):_0x15891d=_0x567703[_0x16e9('0x22')][0x0][_0x16e9('0x3')]?_0x16e9('0x9'):_0x16e9('0x29'),_0x22a43e={'type':_0x16e9('0x1f'),'content':_0x1a08b7(_0x326988,_0x15891d)};break;case _0x16e9('0x12'):_0x15891d=_0x16e9('0x24'),_0x22a43e={'type':_0x16e9('0x1f'),'content':_0x1a08b7(_0x326988,_0x15891d,_0x567703[_0x16e9('0x22')][0x0][_0x16e9('0x7')])};}return _0x22a43e;}['_getSuggestionBlocksForListStyle'](){const _0x1821ae=this['editor']['plugins'][_0x16e9('0xc')]('DocumentListUtils');let _0x5b5696=Array[_0x16e9('0x2f')](this[_0x16e9('0x13')][_0x16e9('0x2a')]['document'][_0x16e9('0x1e')][_0x16e9('0x6')]());return _0x5b5696['push'](..._0x1821ae['expandListBlocksToCompleteList'](_0x5b5696)),_0x5b5696=[...new Set(_0x5b5696)],_0x5b5696;}[_0x16e9('0x21')](_0x3d5cd8){const _0x4c86a0=this[_0x16e9('0x13')]['plugins'][_0x16e9('0xc')](_0x16e9('0x8'));let _0x12592d=Array['from'](this[_0x16e9('0x13')][_0x16e9('0x2a')]['document'][_0x16e9('0x1e')][_0x16e9('0x6')]())[_0x16e9('0x2')](_0x3d5cd8);if(!_0x12592d['length'])return null;_0x12592d=_0x4c86a0['expandListBlocksToCompleteList'](_0x12592d);const _0x3c0483=[];for(const _0x39b056 of _0x12592d)_0x4c86a0[_0x16e9('0x2e')](_0x39b056)&&_0x3c0483['push'](_0x39b056);return _0x3c0483;}[_0x16e9('0x1c')](_0x576f79){return _0x16e9('0x1b')+this[_0x16e9('0x13')][_0x16e9('0x28')][_0x16e9('0xc')](_0x16e9('0x5'))[_0x16e9('0x11')](_0x576f79)[_0x16e9('0x26')]()+'_LIST_'+_0x576f79[_0x16e9('0x26')]()[_0x16e9('0x15')](/-/g,'_');}}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/entercommand
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/entercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
6
|
+
/**
|
|
7
|
+
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
8
|
+
*/
|
|
9
|
+
export default class TrackChangesEnterCommand extends Plugin {
|
|
10
|
+
static get requires(): readonly [typeof Enter];
|
|
11
|
+
init(): void;
|
|
12
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x630c=['markInsertion','end','get','change','getFirstRange','nextSibling','fire','ck-suggestion-marker-split','fromRange','options','enter','plugins','split','data','commands','enterBlock','markerName','editor','removeMarker:suggestion:insertion','setSelection','document','bind','afterExecute','model','markerNameToElements','unbindElementFromMarkerName','init','editing','getFirstPosition','high','createRange','showSuggestionHighlights','downcastDispatcher','selection','createPositionAt','hasClass','writer'];(function(_0x3be20f,_0x630c64){const _0x14238e=function(_0x149899){while(--_0x149899){_0x3be20f['push'](_0x3be20f['shift']());}};_0x14238e(++_0x630c64);}(_0x630c,0x15f));const _0x1423=function(_0x3be20f,_0x630c64){_0x3be20f=_0x3be20f-0x0;let _0x14238e=_0x630c[_0x3be20f];return _0x14238e;};import{Plugin as _0x5e94bc}from'ckeditor5/src/core';import{Enter as _0x9f28c7}from'ckeditor5/src/enter';import{LiveRange as _0x4e0000}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x41a2de}from'./utils';export default class q extends _0x5e94bc{static get['requires'](){return[_0x9f28c7];}[_0x1423('0x8')](){const _0x4c1697=this[_0x1423('0x24')],_0x3790db=_0x4c1697[_0x1423('0x1e')]['get']('TrackChangesEditing'),_0x29b1f8=_0x4c1697[_0x1423('0x21')][_0x1423('0x15')](_0x1423('0x1d'));_0x3790db['enableCommand']('enter',()=>{_0x4c1697[_0x1423('0x5')][_0x1423('0x16')](_0x80ece0=>{const _0x5c6691=_0x4c1697[_0x1423('0x5')][_0x1423('0x2')][_0x1423('0xf')],_0x535bb7=_0x5c6691[_0x1423('0xa')](),_0x2665ca=_0x4e0000[_0x1423('0x1b')](_0x5c6691[_0x1423('0x17')]());if(_0x29b1f8[_0x1423('0x22')](_0x80ece0)){const _0x1f73de=_0x4c1697[_0x1423('0x5')][_0x1423('0x10')](_0x535bb7['parent'][_0x1423('0x18')],0x0),_0x1215e1=_0x80ece0[_0x1423('0xc')](_0x535bb7,_0x1f73de);_0x3790db[_0x1423('0x13')](_0x1215e1);}else _0x80ece0[_0x1423('0x1')](_0x80ece0[_0x1423('0xc')](_0x2665ca[_0x1423('0x14')]));_0x2665ca['detach'](),_0x29b1f8[_0x1423('0x19')](_0x1423('0x4'),{'writer':_0x80ece0});});}),_0x4c1697[_0x1423('0x9')][_0x1423('0xe')]['on']('addMarker:suggestion:insertion',_0x41a2de(_0x4c1697,'split'),{'priority':_0x1423('0xb')}),_0x4c1697[_0x1423('0x9')]['downcastDispatcher']['on'](_0x1423('0x0'),(_0x32e44b,_0x57fbb7,_0x37e4cf)=>{const _0x5e80b0=_0x37e4cf['mapper'][_0x1423('0x6')](_0x57fbb7[_0x1423('0x23')]);if(_0x5e80b0)for(const _0x2f010b of _0x5e80b0)_0x2f010b[_0x1423('0x11')](_0x1423('0x1a'))&&(_0x37e4cf['mapper'][_0x1423('0x7')](_0x2f010b,_0x57fbb7[_0x1423('0x23')]),_0x37e4cf[_0x1423('0x12')]['remove'](_0x2f010b));},{'priority':'high'}),_0x4c1697[_0x1423('0x20')][_0x1423('0xe')]['on']('addMarker:suggestion:insertion',(_0x2e60bd,_0x3810b9,_0x5e5220)=>{_0x5e5220[_0x1423('0x1c')][_0x1423('0xd')]&&_0x41a2de(_0x4c1697,_0x1423('0x1f'),{'showActiveMarker':!0x1})[_0x1423('0x3')](this)(_0x2e60bd,_0x3810b9,_0x5e5220);},{'priority':_0x1423('0xb')});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/findandreplace
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for find and replace feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesFindAndReplace extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
14
|
-
matchCase?: boolean;
|
|
15
|
-
wholeWords?: boolean;
|
|
16
|
-
}): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/findandreplace
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for find and replace feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFindAndReplace extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
14
|
+
matchCase?: boolean;
|
|
15
|
+
wholeWords?: boolean;
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac2=['createPositionAt','getRange','end','FindAndReplaceEditing','_isInDeletionRange','model','bind','handleFindCommand','get','getMarkersGroup','TrackChangesEditing','find','findPrevious','findNext','getIntersection','plugins','has','enableCommand','FindAndReplaceUtils','editor'];(function(_0x25700c,_0x5ac251){const _0x3d6e6d=function(_0x43f921){while(--_0x43f921){_0x25700c['push'](_0x25700c['shift']());}};_0x3d6e6d(++_0x5ac251);}(_0x5ac2,0x101));const _0x3d6e=function(_0x25700c,_0x5ac251){_0x25700c=_0x25700c-0x0;let _0x3d6e6d=_0x5ac2[_0x25700c];return _0x3d6e6d;};import{Plugin as _0x485a1f}from'ckeditor5/src/core';export default class z extends _0x485a1f{['afterInit'](){if(!this[_0x3d6e('0x2')]['plugins'][_0x3d6e('0x13')](_0x3d6e('0x6')))return;const _0x14450b=this[_0x3d6e('0x2')][_0x3d6e('0x12')][_0x3d6e('0xb')](_0x3d6e('0xd'));_0x14450b[_0x3d6e('0x0')](_0x3d6e('0xe'),this[_0x3d6e('0xa')][_0x3d6e('0x9')](this)),_0x14450b[_0x3d6e('0x0')](_0x3d6e('0x10')),_0x14450b[_0x3d6e('0x0')](_0x3d6e('0xf')),_0x14450b[_0x3d6e('0x0')]('replace'),_0x14450b[_0x3d6e('0x0')]('replaceAll');}['handleFindCommand'](_0xdbedf4,_0x581a9e,_0x15ff49={}){const _0x1b8491=this[_0x3d6e('0x2')][_0x3d6e('0x12')][_0x3d6e('0xb')](_0x3d6e('0x1'));void 0x0!==_0x15ff49&&_0xdbedf4(_0x22ea28=>('string'==typeof _0x581a9e?_0x1b8491['findByTextCallback'](_0x581a9e,_0x15ff49):_0x581a9e)(_0x22ea28)['filter'](_0x5cc4b5=>!0x1===this[_0x3d6e('0x7')](_0x5cc4b5,_0x22ea28['item'])),_0x15ff49);}[_0x3d6e('0x7')](_0x1e6047,_0x25e558){const _0x472245=this['editor'][_0x3d6e('0x8')]['createRange'](this['editor'][_0x3d6e('0x8')][_0x3d6e('0x3')](_0x25e558,_0x1e6047['start']),this['editor'][_0x3d6e('0x8')][_0x3d6e('0x3')](_0x25e558,_0x1e6047[_0x3d6e('0x5')]));for(const _0x47e1c9 of this[_0x3d6e('0x2')][_0x3d6e('0x8')]['markers'][_0x3d6e('0xc')]('suggestion:deletion'))if(null!==_0x472245[_0x3d6e('0x11')](_0x47e1c9[_0x3d6e('0x4')]()))return!0x0;return!0x1;}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/font
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for font features.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesFont extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/font
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for font features.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFont extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|