@ckeditor/ckeditor5-track-changes 38.1.1 → 38.2.0-alpha.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 +2 -2
- package/package.json +4 -3
- 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/index.js +1 -1
- 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 -13
- 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 -12
- 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 -12
- 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 -12
- 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 -18
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -18
- 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 -18
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -18
- 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 +163 -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 -37
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -435
- 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 -182
- 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.js';
|
|
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 _0x11a8=['afterInit','ckbox','get','TrackChangesEditing','plugins','commands'];(function(_0x155cdb,_0x11a863){const _0x268cdc=function(_0x51ffa8){while(--_0x51ffa8){_0x155cdb['push'](_0x155cdb['shift']());}};_0x268cdc(++_0x11a863);}(_0x11a8,0xbd));const _0x268c=function(_0x155cdb,_0x11a863){_0x155cdb=_0x155cdb-0x0;let _0x268cdc=_0x11a8[_0x155cdb];return _0x268cdc;};import{Plugin as _0x3eec97}from'ckeditor5/src/core.js';export default class E extends _0x3eec97{[_0x268c('0x3')](){const _0x3c7e71=this['editor'];_0x3c7e71[_0x268c('0x2')][_0x268c('0x5')](_0x268c('0x4'))&&_0x3c7e71[_0x268c('0x1')][_0x268c('0x5')](_0x268c('0x0'))['enableCommand'](_0x268c('0x4'));}}
|
|
@@ -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.js';
|
|
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 _0x190a=['forceValue','format','checkChild','enableCommand','afterInit','*Format:*\x20%0','model','selection','getSelectedBlocks','from','plugins','commandParams','CodeBlock','config','markBlockFormat','value','formatBlock','get','label','language','document','commandName','commands','filter','codeBlock','has','isLimit','*Remove\x20format:*\x20%0','parent','_descriptionFactory','locale','schema','outdentCodeBlock','rootElement','blockName','editor','find','languages','change','ELEMENT_CODE_BLOCK'];(function(_0x3a2164,_0x190a03){const _0x24d8ee=function(_0x56ee6d){while(--_0x56ee6d){_0x3a2164['push'](_0x3a2164['shift']());}};_0x24d8ee(++_0x190a03);}(_0x190a,0x158));const _0x24d8=function(_0x3a2164,_0x190a03){_0x3a2164=_0x3a2164-0x0;let _0x24d8ee=_0x190a[_0x3a2164];return _0x24d8ee;};import{Plugin as _0x5224b9}from'ckeditor5/src/core.js';import{getTranslation as _0x106a58}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3449b3}from'../utils/utils.js';export default class O extends _0x5224b9{[_0x24d8('0x14')](){const _0x320cf9=this[_0x24d8('0xb')];if(!_0x320cf9['plugins'][_0x24d8('0x1')](_0x24d8('0x1c')))return;const _0x839c5c=_0x320cf9[_0x24d8('0x1a')][_0x24d8('0x21')]('TrackChangesEditing'),_0x57bfee=_0x320cf9[_0x24d8('0x6')],_0x475971=_0x320cf9[_0x24d8('0x1d')][_0x24d8('0x21')](_0x24d8('0x0'))[_0x24d8('0xd')],_0x36c28b=_0x320cf9[_0x24d8('0x26')][_0x24d8('0x21')](_0x24d8('0x0'));_0x839c5c['enableCommand']('indentCodeBlock'),_0x839c5c[_0x24d8('0x13')](_0x24d8('0x8')),_0x839c5c[_0x24d8('0x13')](_0x24d8('0x0'),(_0x30994a,_0xf0343b={})=>{const _0x528972=_0x320cf9['model'],_0x54b8e5=_0x320cf9[_0x24d8('0x16')][_0x24d8('0x24')][_0x24d8('0x17')],_0x4666f5=_0xf0343b&&void 0x0!==_0xf0343b['forceValue']?_0xf0343b['forceValue']:!_0x36c28b[_0x24d8('0x1f')];let _0x18e5e9;_0xf0343b[_0x24d8('0x23')]||(_0xf0343b[_0x24d8('0x23')]=_0x475971[0x0][_0x24d8('0x23')]),_0x18e5e9=_0x4666f5?Array[_0x24d8('0x19')](_0x54b8e5[_0x24d8('0x18')]())['filter'](_0x3347e9=>oo(_0x3347e9)||function(_0x17037e,_0x155714){if(_0x17037e['is'](_0x24d8('0x9'))||_0x155714[_0x24d8('0x2')](_0x17037e))return!0x1;return _0x155714[_0x24d8('0x12')](_0x17037e[_0x24d8('0x4')],_0x24d8('0x0'));}(_0x3347e9,_0x528972[_0x24d8('0x7')])):Array['from'](_0x54b8e5[_0x24d8('0x18')]())[_0x24d8('0x27')](_0x5c49c9=>oo(_0x5c49c9));const _0x222439=_0x3449b3(_0x18e5e9,_0x528972);_0x528972[_0x24d8('0xe')](()=>{for(const _0x5b8a6a of _0x222439)_0x839c5c[_0x24d8('0x1e')](_0x5b8a6a,{'commandName':_0x24d8('0x0'),'commandParams':[{..._0xf0343b,'forceValue':_0x4666f5}],'formatGroupId':_0x24d8('0xa')});});}),(_0x839c5c[_0x24d8('0x5')]['registerElementLabel'](_0x24d8('0x0'),_0x53e568=>_0x106a58(_0x57bfee,_0x24d8('0xf'),_0x53e568)),_0x839c5c[_0x24d8('0x5')]['registerDescriptionCallback'](_0x1c9b29=>{const _0x13a582=_0x57bfee['t'],{type:_0x275780,data:_0x3d2c16}=_0x1c9b29;if(_0x24d8('0x20')==_0x275780&&_0x3d2c16&&_0x24d8('0x0')==_0x3d2c16[_0x24d8('0x25')]){const _0x271c86=_0x3d2c16[_0x24d8('0x1b')][0x0][_0x24d8('0x23')],_0x4d88db=_0x13a582(_0x475971[_0x24d8('0xc')](_0x1a12e4=>_0x1a12e4['language']===_0x271c86)[_0x24d8('0x22')]);return _0x3d2c16[_0x24d8('0x1b')][0x0][_0x24d8('0x10')]?{'type':'format','content':_0x106a58(_0x57bfee,_0x24d8('0x15'),_0x106a58(_0x57bfee,_0x24d8('0xf'),0x1)+'\x20('+_0x4d88db+')')}:{'type':_0x24d8('0x11'),'content':_0x106a58(_0x57bfee,_0x24d8('0x3'),_0x106a58(_0x57bfee,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function oo(_0x3d58c0){return _0x24d8('0x0')==_0x3d58c0['name'];}
|
|
@@ -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.js';
|
|
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 _0x39f2=['editor','TrackChangesEditing','plugins','CommentsEditing','get','has','enableCommand'];(function(_0x57ac87,_0x39f208){const _0x31662f=function(_0x40f864){while(--_0x40f864){_0x57ac87['push'](_0x57ac87['shift']());}};_0x31662f(++_0x39f208);}(_0x39f2,0x1d4));const _0x3166=function(_0x57ac87,_0x39f208){_0x57ac87=_0x57ac87-0x0;let _0x31662f=_0x39f2[_0x57ac87];return _0x31662f;};import{Plugin as _0x531606}from'ckeditor5/src/core.js';export default class F extends _0x531606{['afterInit'](){const _0x3d08ee=this[_0x3166('0x1')];if(!_0x3d08ee[_0x3166('0x3')][_0x3166('0x6')](_0x3166('0x4')))return;_0x3d08ee['plugins'][_0x3166('0x5')](_0x3166('0x2'))[_0x3166('0x0')]('addCommentThread');}}
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/deletecommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import { Delete } from 'ckeditor5/src/typing.js';
|
|
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 _0x1092=['mapper','bind','createRange','lock','markerName','getFirstRange','enqueueChange','start','high','get','detach','data','modifySelection','downcastDispatcher','writer','addMarker:suggestion:deletion','markerNameToElements','init','fromRange','enableCommand','forward','requires','editor','options','end','showSuggestionHighlights','document','editing','removeMarker:suggestion:deletion','createSelection','commands','unit','unbindElementFromMarkerName','setSelection','merge','buffer','$graveyard','deleteForward','uiElement','plugins','selection','unlock','isCollapsed','model','batch','TrackChangesEditing'];(function(_0x48c4b4,_0x109287){const _0x33a150=function(_0x71cf36){while(--_0x71cf36){_0x48c4b4['push'](_0x48c4b4['shift']());}};_0x33a150(++_0x109287);}(_0x1092,0x195));const _0x33a1=function(_0x48c4b4,_0x109287){_0x48c4b4=_0x48c4b4-0x0;let _0x33a150=_0x1092[_0x48c4b4];return _0x33a150;};import{Plugin as _0x195c0e}from'ckeditor5/src/core.js';import{LiveRange as _0x2ed671}from'ckeditor5/src/engine.js';import{Delete as _0x467854}from'ckeditor5/src/typing.js';import{downcastSplitMergeMarker as _0x35716b}from'./utils.js';export default class G extends _0x195c0e{static get[_0x33a1('0x1e')](){return[_0x467854];}[_0x33a1('0x1a')](){const _0x3814cf=this[_0x33a1('0x1f')],_0x6a1965=_0x3814cf[_0x33a1('0x2')][_0x33a1('0x12')](_0x33a1('0x8'));_0x6a1965[_0x33a1('0x1c')]('delete');const _0x36e6ec=_0x3814cf[_0x33a1('0x27')]['get'](_0x33a1('0x0'));_0x6a1965[_0x33a1('0x1c')](_0x33a1('0x0'),(_0x5e9f15,_0x56ee16={})=>{const _0x1055c7=_0x3814cf[_0x33a1('0x6')][_0x33a1('0x26')](_0x3814cf[_0x33a1('0x6')][_0x33a1('0x23')][_0x33a1('0x3')]);_0x1055c7[_0x33a1('0x5')]&&_0x3814cf['model'][_0x33a1('0x15')](_0x1055c7,{'direction':_0x33a1('0x1d'),'unit':_0x56ee16[_0x33a1('0x28')]});const _0x265c81=_0x1055c7[_0x33a1('0xe')](),_0x1ffb8d=_0x2ed671[_0x33a1('0x1b')](_0x265c81);let _0x3081e3;_0x5e9f15(_0x56ee16),_0x3081e3=_0x33a1('0x2d')==_0x1ffb8d['root']['rootName']?_0x3814cf[_0x33a1('0x6')]['createRange'](_0x265c81[_0x33a1('0x10')]):_0x3814cf[_0x33a1('0x6')][_0x33a1('0xb')](_0x1ffb8d[_0x33a1('0x10')],_0x1ffb8d[_0x33a1('0x21')]),_0x1ffb8d[_0x33a1('0x13')](),_0x3814cf['model'][_0x33a1('0xf')](_0x36e6ec[_0x33a1('0x2c')][_0x33a1('0x7')],_0x4feec2=>{_0x36e6ec['buffer'][_0x33a1('0xc')](),_0x4feec2[_0x33a1('0x2a')](_0x4feec2[_0x33a1('0xb')](_0x3081e3[_0x33a1('0x21')])),_0x36e6ec['buffer'][_0x33a1('0x4')]();});}),_0x3814cf['editing'][_0x33a1('0x16')]['on'](_0x33a1('0x18'),_0x35716b(_0x3814cf,_0x33a1('0x2b')),{'priority':'high'}),_0x3814cf[_0x33a1('0x14')][_0x33a1('0x16')]['on'](_0x33a1('0x18'),(_0x388fde,_0x247a0b,_0x19b4df)=>{_0x19b4df[_0x33a1('0x20')][_0x33a1('0x22')]&&_0x35716b(_0x3814cf,_0x33a1('0x2b'),{'showActiveMarker':!0x1})[_0x33a1('0xa')](this)(_0x388fde,_0x247a0b,_0x19b4df);},{'priority':_0x33a1('0x11')}),_0x3814cf[_0x33a1('0x24')][_0x33a1('0x16')]['on'](_0x33a1('0x25'),(_0x1723fb,_0x448a8d,_0x53b0e7)=>{const _0x31ccf2=_0x53b0e7[_0x33a1('0x9')][_0x33a1('0x19')](_0x448a8d[_0x33a1('0xd')]);if(_0x31ccf2)for(const _0x24fb73 of _0x31ccf2)_0x24fb73['is'](_0x33a1('0x1'))&&(_0x53b0e7[_0x33a1('0x9')][_0x33a1('0x29')](_0x24fb73,_0x448a8d[_0x33a1('0xd')]),_0x53b0e7[_0x33a1('0x17')]['remove'](_0x24fb73));},{'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.js';
|
|
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 _0xf202=['bulletedList','DocumentListUtils','length','*Format:*\x20insert\x20into\x20%0','createRange','editor','commands','*Indent:*\x20%0','registerCustomCallback','selection','*Outdent:*\x20%0','_descriptionFactory','ELEMENT_LIST_ITEM','documentList','value','indentList','*Merge:*\x20%0','getAttribute','from','enableCommand','end','listItemId','markBlockFormat','numberedList','parent','push','mergeListItemForward','hasAttribute','getFirstRange','formatBlock','nextSibling','commandName','document','nodeAfter','splitListItemAfter','add','listIndent','afterInit','plugins','start','before','ELEMENT_NUMBERED_LIST','mergeListItemBackward','getSelectedBlocks','next','registerDescriptionCallback','after','ELEMENT_BULLETED_LIST','schema','locale','isObject','refresh','splitListItemBefore','*Format:*\x20remove\x20from\x20%0','toUpperCase','outdentList','createPositionAt','ELEMENT_','change','execute','*Change\x20to:*\x20%0','detach','DocumentListEditing','findIndex','_LIST','expandListBlocksToCompleteList','accept','forceValue','registerElementLabel','listType','get','commandParams','_suggestionFactory','setSelection','format','model'];(function(_0x5e7cd0,_0xf20254){const _0x4d6acc=function(_0x436cbf){while(--_0x436cbf){_0x5e7cd0['push'](_0x5e7cd0['shift']());}};_0x4d6acc(++_0xf20254);}(_0xf202,0x1f1));const _0x4d6a=function(_0x5e7cd0,_0xf20254){_0x5e7cd0=_0x5e7cd0-0x0;let _0x4d6acc=_0xf202[_0x5e7cd0];return _0x4d6acc;};import{Plugin as _0x356c56}from'ckeditor5/src/core.js';import{getTranslation as _0x3b14a7}from'../utils/common-translations.js';import{LiveRange as _0x39a912}from'ckeditor5/src/engine.js';export default class L extends _0x356c56{[_0x4d6a('0x48')](){const _0x6fc8b6=this[_0x4d6a('0x28')];if(!_0x6fc8b6['plugins']['has'](_0x4d6a('0x15')))return;const _0x382dc7=_0x6fc8b6[_0x4d6a('0x8')],_0x14747d=_0x6fc8b6[_0x4d6a('0x49')][_0x4d6a('0x1d')]('TrackChangesEditing'),_0x4871c9=_0x6fc8b6['plugins'][_0x4d6a('0x1d')](_0x4d6a('0x24'));function _0x1942c8(_0x317e5b){return()=>{const _0x414bad=_0x6fc8b6['commands'][_0x4d6a('0x1d')](_0x317e5b);let _0x2271b8=Array[_0x4d6a('0x35')](_0x6fc8b6[_0x4d6a('0x22')]['document'][_0x4d6a('0x2c')][_0x4d6a('0x2')]());if(_0x2e3fc3(_0x317e5b)){_0x2271b8=_0x4871c9[_0x4d6a('0x18')](_0x2271b8);const _0xe49129=[];for(const _0x5a5589 of _0x2271b8)_0x4871c9['isFirstBlockOfListItem'](_0x5a5589)&&_0xe49129['push'](_0x5a5589);_0x2271b8=_0xe49129;}_0x6fc8b6['model'][_0x4d6a('0x11')](()=>{_0x14747d['markMultiRangeBlockFormat'](_0x2271b8,{'commandName':_0x317e5b,'commandParams':[{'forceValue':!_0x414bad[_0x4d6a('0x31')]}],'formatGroupId':_0x4d6a('0x1c')},[],_0x4d6a('0x30'));});};}function _0x5025b2(_0x33490e){return()=>{const _0x1e5d93=function(_0x4c48b7){let _0x2392ea=Array[_0x4d6a('0x35')](_0x4c48b7);const _0x288b37=_0x2392ea[_0x4d6a('0x16')](_0x5a03ec=>!_0x5a03ec[_0x4d6a('0x3e')]('listItemId'));return _0x288b37>-0x1&&(_0x2392ea=_0x2392ea['slice'](0x0,_0x288b37)),_0x2392ea;}(_0x6fc8b6[_0x4d6a('0x22')]['document'][_0x4d6a('0x2c')][_0x4d6a('0x2')]()),_0x5062da=_0x1e5d93[_0x1e5d93[_0x4d6a('0x25')]-0x1],_0x23cdac=_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0x7')][_0x4d6a('0x9')](_0x5062da)?_0x4d6a('0x5'):_0x4d6a('0x37'),_0x42a6e5=_0x6fc8b6['model'][_0x4d6a('0x27')](_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0xf')](_0x1e5d93[0x0],_0x4d6a('0x4b')),_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0xf')](_0x5062da,_0x23cdac));_0x6fc8b6['model'][_0x4d6a('0x11')](()=>{_0x14747d[_0x4d6a('0x39')](_0x42a6e5,{'commandName':_0x33490e,'commandParams':[],'formatGroupId':'listType'},function(_0x572f79){const _0x1e0085=new Set();for(const _0x115002 of _0x572f79){let _0x2ecdd5=_0x115002['nextSibling'];for(;_0x2ecdd5&&_0x2ecdd5[_0x4d6a('0x34')](_0x4d6a('0x47'))>_0x115002[_0x4d6a('0x34')](_0x4d6a('0x47'));)_0x1e0085[_0x4d6a('0x46')](_0x2ecdd5),_0x2ecdd5=_0x2ecdd5[_0x4d6a('0x41')];}return Array['from'](_0x1e0085);}(_0x1e5d93));});};}function _0x3e16ca(_0x3e294c){return()=>{const _0x49d0d0=_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0x43')]['selection'][_0x4d6a('0x2')]()[_0x4d6a('0x3')]()[_0x4d6a('0x31')],_0x35dfef=_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0xf')](_0x49d0d0,_0x4d6a('0x4b')),_0xd1c989=_0x6fc8b6[_0x4d6a('0x22')]['createPositionAt'](_0x49d0d0,0x0),_0x5792f8=_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0x27')](_0x35dfef,_0xd1c989);_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0x11')](()=>{_0x14747d['markBlockFormat'](_0x5792f8,{'commandName':_0x3e294c,'commandParams':[],'formatGroupId':_0x4d6a('0x1c')});});};}function _0x2e3fc3(_0x3d8030){const _0x94a4a6=_0x6fc8b6['commands']['get']('bulletedList')[_0x4d6a('0x31')],_0x30f04a=_0x6fc8b6[_0x4d6a('0x29')][_0x4d6a('0x1d')]('numberedList')[_0x4d6a('0x31')];return'numberedList'===_0x3d8030?_0x94a4a6:_0x30f04a;}_0x14747d[_0x4d6a('0x36')](_0x4d6a('0x3a'),_0x1942c8('numberedList')),_0x14747d[_0x4d6a('0x36')](_0x4d6a('0x23'),_0x1942c8(_0x4d6a('0x23'))),_0x14747d[_0x4d6a('0x36')](_0x4d6a('0x32'),_0x5025b2(_0x4d6a('0x32'))),_0x14747d['enableCommand'](_0x4d6a('0xe'),_0x5025b2(_0x4d6a('0xe'))),_0x14747d['enableCommand'](_0x4d6a('0x45'),_0x3e16ca(_0x4d6a('0x45'))),_0x14747d[_0x4d6a('0x36')]('splitListItemBefore',_0x3e16ca(_0x4d6a('0xb'))),_0x14747d[_0x4d6a('0x2e')][_0x4d6a('0x1b')](function(_0x10e7ba){const _0x229132=!_0x6fc8b6[_0x4d6a('0x22')][_0x4d6a('0x7')]['isObject'](_0x10e7ba),_0xe13a16=_0x10e7ba['previousSibling'],_0xe408fd=_0x10e7ba[_0x4d6a('0x41')],_0x12e9f5=_0x10e7ba[_0x4d6a('0x34')](_0x4d6a('0x38')),_0x4405a7=!_0xe13a16||_0xe13a16[_0x4d6a('0x34')](_0x4d6a('0x38'))!==_0x12e9f5,_0x18a849=!_0xe408fd||_0xe408fd[_0x4d6a('0x34')](_0x4d6a('0x38'))!==_0x12e9f5;return _0x229132&&Boolean(_0x12e9f5)&&_0x4405a7&&_0x18a849;},_0xd10c8c=>_0x3b14a7(_0x382dc7,'ELEMENT_LIST_ITEM',_0xd10c8c)),_0x14747d['_descriptionFactory'][_0x4d6a('0x4')](function(_0x1f2b83){const {data:_0x4f08be}=_0x1f2b83;if(!_0x4f08be)return;let _0x571fea,_0x396d6d,_0x264d93,_0x2ddd28;switch(_0x4f08be[_0x4d6a('0x42')]){case _0x4d6a('0x23'):_0x264d93=_0x4f08be[_0x4d6a('0x1e')][0x0][_0x4d6a('0x1a')],_0x2ddd28=_0x2e3fc3(_0x4f08be[_0x4d6a('0x42')]),_0x571fea=_0x264d93?_0x4d6a('0x26'):_0x4d6a('0xc'),_0x2ddd28&&(_0x571fea=_0x4d6a('0x13')),_0x396d6d={'type':_0x4d6a('0x21'),'content':_0x3b14a7(_0x382dc7,_0x571fea,_0x3b14a7(_0x382dc7,_0x4d6a('0x6')))};break;case'numberedList':_0x264d93=_0x4f08be[_0x4d6a('0x1e')][0x0][_0x4d6a('0x1a')],_0x2ddd28=_0x2e3fc3(_0x4f08be[_0x4d6a('0x42')]),_0x571fea=_0x264d93?_0x4d6a('0x26'):_0x4d6a('0xc'),_0x2ddd28&&(_0x571fea=_0x4d6a('0x13')),_0x396d6d={'type':_0x4d6a('0x21'),'content':_0x3b14a7(_0x382dc7,_0x571fea,_0x3b14a7(_0x382dc7,_0x4d6a('0x0')))};break;case _0x4d6a('0x32'):_0x571fea=_0x4d6a('0x2a'),_0x396d6d={'type':'format','content':_0x3b14a7(_0x382dc7,_0x571fea,_0x3b14a7(_0x382dc7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x571fea=function(_0x1d1c15){const _0xa9318b=_0x1d1c15[_0x4d6a('0x3f')]();let _0x1f7cf8=_0xa9318b[_0x4d6a('0x4a')][_0x4d6a('0x44')];for(;_0x1f7cf8&&_0xa9318b['containsItem'](_0x1f7cf8);){if(_0x1f7cf8[_0x4d6a('0x34')](_0x4d6a('0x47'))>0x0)return!0x1;_0x1f7cf8=_0x1f7cf8[_0x4d6a('0x41')];}return!0x0;}(_0x1f2b83)?_0x3b14a7(_0x382dc7,_0x4d6a('0xc'),_0x3b14a7(_0x382dc7,function(_0x283e42){const _0x27c8e7=_0x283e42[_0x4d6a('0x3f')]()['start']['nodeAfter'];return _0x4d6a('0x10')+_0x27c8e7[_0x4d6a('0x34')](_0x4d6a('0x1c'))[_0x4d6a('0xd')]()+_0x4d6a('0x17');}(_0x1f2b83))):_0x3b14a7(_0x382dc7,_0x4d6a('0x2d'),_0x3b14a7(_0x382dc7,_0x4d6a('0x2f'))),_0x396d6d={'type':'format','content':_0x571fea};break;case _0x4d6a('0x1'):case _0x4d6a('0x3d'):!0x1===_0x4f08be['multipleBlocks']&&(_0x571fea=_0x4d6a('0x33'),_0x396d6d={'type':'deletion','content':_0x3b14a7(_0x382dc7,_0x571fea,_0x3b14a7(_0x382dc7,_0x4d6a('0x2f')))});}return _0x396d6d;}),_0x14747d[_0x4d6a('0x1f')][_0x4d6a('0x2b')](_0x4d6a('0x40'),_0x4d6a('0x30'),_0x4d6a('0x19'),function(_0x5030ee,_0x2514b0){const _0x2ba9af=[];for(let _0x252788 of _0x5030ee)_0x252788[_0x4d6a('0x4a')][_0x4d6a('0x44')]===_0x252788[_0x4d6a('0x37')][_0x4d6a('0x3b')]&&(_0x252788=_0x6fc8b6['model'][_0x4d6a('0x27')](_0x6fc8b6['model'][_0x4d6a('0xf')](_0x252788[_0x4d6a('0x4a')][_0x4d6a('0x44')],0x0))),_0x2ba9af['push'](_0x252788);_0x6fc8b6['model'][_0x4d6a('0x11')](_0x50b999=>{const _0xf7bbce=_0x6fc8b6['model']['document'][_0x4d6a('0x2c')],_0x599b37=Array[_0x4d6a('0x35')](_0xf7bbce['getRanges']())['map'](_0x3b9088=>_0x39a912['fromRange'](_0x3b9088));_0x50b999[_0x4d6a('0x20')](_0x2ba9af),_0x6fc8b6[_0x4d6a('0x29')][_0x4d6a('0x1d')](_0x2514b0[_0x4d6a('0x42')])[_0x4d6a('0xa')](),_0x2514b0['commandParams'][_0x4d6a('0x3c')]({'forceDefaultExecution':!0x0}),_0x6fc8b6[_0x4d6a('0x12')](_0x2514b0[_0x4d6a('0x42')],..._0x2514b0[_0x4d6a('0x1e')]),_0x50b999['setSelection'](_0x599b37);for(const _0x5cac83 of _0x599b37)_0x5cac83[_0x4d6a('0x14')]();});});}}
|
|
@@ -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.js';
|
|
5
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
6
|
+
import type Suggestion from '../suggestion.js';
|
|
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 _0x5d1d=['markMultiRangeBlockFormat','numbered','ELEMENT_','from','listReversed','DocumentListPropertiesUtils','handleListStyleCommand','getAttribute','document','TrackChangesEditing','plugins','change','*Format:*\x20set\x20order\x20to\x20regular','getListTypeFromListStyleType','listStart','listType','handleListReversedCommand','*Change\x20to:*\x20%0','_getSuggestionBlocks','locale','model','isListItemBlock','startIndex','type','DocumentListPropertiesEditing','_descriptionFactory','push','getSelectedBlocks','length','handleListStartCommand','get','toUpperCase','reversed','_LIST_','DocumentListUtils','selection','list.properties','registerDescriptionCallback','*Format:*\x20set\x20order\x20to\x20reversed','listStyle','commandParams','handleDescriptions','commandName','bind','has','editor','_getTranslationKeyForListStyle','_getSuggestionBlocksForListStyle','enableCommand','styles','expandListBlocksToCompleteList','format'];(function(_0x2b05a3,_0x5d1ddd){const _0x2ba0fa=function(_0xe00069){while(--_0xe00069){_0x2b05a3['push'](_0x2b05a3['shift']());}};_0x2ba0fa(++_0x5d1ddd);}(_0x5d1d,0x118));const _0x2ba0=function(_0x2b05a3,_0x5d1ddd){_0x2b05a3=_0x2b05a3-0x0;let _0x2ba0fa=_0x5d1d[_0x2b05a3];return _0x2ba0fa;};import{Plugin as _0x35064e}from'ckeditor5/src/core.js';import{getTranslation as _0x2b6549}from'../utils/common-translations.js';export default class vt extends _0x35064e{['afterInit'](){if(!this[_0x2ba0('0x19')][_0x2ba0('0x2a')][_0x2ba0('0x18')](_0x2ba0('0x4')))return;const _0x222125=this['editor']['config'][_0x2ba0('0xa')](_0x2ba0('0x10')),_0x1e3504=this[_0x2ba0('0x19')][_0x2ba0('0x2a')]['get']('TrackChangesEditing');_0x222125[_0x2ba0('0x1d')]&&_0x1e3504['enableCommand'](_0x2ba0('0x13'),this['handleListStyleCommand'][_0x2ba0('0x17')](this)),_0x222125['reversed']&&_0x1e3504['enableCommand'](_0x2ba0('0x24'),this[_0x2ba0('0x30')]['bind'](this)),_0x222125['startIndex']&&_0x1e3504[_0x2ba0('0x1c')]('listStart',this[_0x2ba0('0x9')]['bind'](this)),_0x1e3504[_0x2ba0('0x5')][_0x2ba0('0x11')](this[_0x2ba0('0x15')][_0x2ba0('0x17')](this));}[_0x2ba0('0x26')](_0x4239f0,_0x596832={}){const _0x23cf7e=this[_0x2ba0('0x19')][_0x2ba0('0x2a')][_0x2ba0('0xa')](_0x2ba0('0x29')),_0x26ce9e=this[_0x2ba0('0x1b')]();this[_0x2ba0('0x19')][_0x2ba0('0x0')][_0x2ba0('0x2b')](()=>{_0x23cf7e[_0x2ba0('0x20')](_0x26ce9e,{'commandName':_0x2ba0('0x13'),'commandParams':[{'type':_0x596832[_0x2ba0('0x3')]}],'formatGroupId':_0x2ba0('0x13')});});}[_0x2ba0('0x30')](_0x37e8fa,_0x44bd89={}){const _0x40a489=this[_0x2ba0('0x19')][_0x2ba0('0x2a')][_0x2ba0('0xa')](_0x2ba0('0x29')),_0x583f7d=this[_0x2ba0('0x19')]['plugins'][_0x2ba0('0xa')](_0x2ba0('0xe')),_0x1cf9fa=this[_0x2ba0('0x32')](_0x556af8=>_0x583f7d[_0x2ba0('0x1')](_0x556af8)&&_0x2ba0('0x21')===_0x556af8[_0x2ba0('0x27')](_0x2ba0('0x2f')));null!==_0x1cf9fa&&this['editor'][_0x2ba0('0x0')][_0x2ba0('0x2b')](()=>{_0x40a489[_0x2ba0('0x20')](_0x1cf9fa,{'commandName':_0x2ba0('0x24'),'commandParams':[{'reversed':_0x44bd89[_0x2ba0('0xc')]}],'formatGroupId':_0x2ba0('0x24')});});}[_0x2ba0('0x9')](_0x5e73a4,_0x3f65e2={}){const _0x530c0f=this[_0x2ba0('0x19')][_0x2ba0('0x2a')][_0x2ba0('0xa')]('TrackChangesEditing'),_0x55afc8=this[_0x2ba0('0x19')][_0x2ba0('0x2a')][_0x2ba0('0xa')]('DocumentListUtils'),_0x4a1aab=this['_getSuggestionBlocks'](_0x42e9e=>_0x55afc8[_0x2ba0('0x1')](_0x42e9e)&&_0x2ba0('0x21')===_0x42e9e[_0x2ba0('0x27')](_0x2ba0('0x2f')));null!==_0x4a1aab&&this[_0x2ba0('0x19')][_0x2ba0('0x0')]['change'](()=>{_0x530c0f[_0x2ba0('0x20')](_0x4a1aab,{'commandName':_0x2ba0('0x2e'),'commandParams':[{'startIndex':_0x3f65e2[_0x2ba0('0x2')]}],'formatGroupId':'listStart'});});}[_0x2ba0('0x15')](_0x15a0e0){const _0x46ad45=this['editor'][_0x2ba0('0x33')],{data:_0x3b6fa0}=_0x15a0e0;if(!_0x3b6fa0)return;let _0x5dbce0,_0x21b904;switch(_0x3b6fa0[_0x2ba0('0x16')]){case _0x2ba0('0x13'):_0x5dbce0=_0x2ba0('0x31'),_0x21b904={'type':'format','content':_0x2b6549(_0x46ad45,_0x5dbce0,_0x2b6549(_0x46ad45,this[_0x2ba0('0x1a')](_0x3b6fa0[_0x2ba0('0x14')][0x0][_0x2ba0('0x3')])))};break;case'listReversed':_0x5dbce0=_0x3b6fa0[_0x2ba0('0x14')][0x0][_0x2ba0('0xc')]?_0x2ba0('0x12'):_0x2ba0('0x2c'),_0x21b904={'type':_0x2ba0('0x1f'),'content':_0x2b6549(_0x46ad45,_0x5dbce0)};break;case _0x2ba0('0x2e'):_0x5dbce0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21b904={'type':_0x2ba0('0x1f'),'content':_0x2b6549(_0x46ad45,_0x5dbce0,_0x3b6fa0['commandParams'][0x0]['startIndex'])};}return _0x21b904;}['_getSuggestionBlocksForListStyle'](){const _0x59c8f3=this[_0x2ba0('0x19')]['plugins'][_0x2ba0('0xa')](_0x2ba0('0xe'));let _0x144c7e=Array[_0x2ba0('0x23')](this[_0x2ba0('0x19')][_0x2ba0('0x0')][_0x2ba0('0x28')]['selection'][_0x2ba0('0x7')]());return _0x144c7e['push'](..._0x59c8f3[_0x2ba0('0x1e')](_0x144c7e)),_0x144c7e=[...new Set(_0x144c7e)],_0x144c7e;}[_0x2ba0('0x32')](_0x539ace){const _0x2bb8ba=this['editor'][_0x2ba0('0x2a')][_0x2ba0('0xa')](_0x2ba0('0xe'));let _0x586662=Array[_0x2ba0('0x23')](this[_0x2ba0('0x19')][_0x2ba0('0x0')][_0x2ba0('0x28')][_0x2ba0('0xf')][_0x2ba0('0x7')]())['filter'](_0x539ace);if(!_0x586662[_0x2ba0('0x8')])return null;_0x586662=_0x2bb8ba['expandListBlocksToCompleteList'](_0x586662);const _0x359174=[];for(const _0x435f91 of _0x586662)_0x2bb8ba['isFirstBlockOfListItem'](_0x435f91)&&_0x359174[_0x2ba0('0x6')](_0x435f91);return _0x359174;}['_getTranslationKeyForListStyle'](_0x49ccda){return _0x2ba0('0x22')+this['editor'][_0x2ba0('0x2a')][_0x2ba0('0xa')](_0x2ba0('0x25'))[_0x2ba0('0x2d')](_0x49ccda)[_0x2ba0('0xb')]()+_0x2ba0('0xd')+_0x49ccda[_0x2ba0('0xb')]()['replace'](/-/g,'_');}}
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/entercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import { Enter } from 'ckeditor5/src/enter.js';
|
|
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 _0x42d0=['model','setSelection','editor','data','split','showSuggestionHighlights','change','writer','getFirstPosition','get','markerName','options','hasClass','parent','fromRange','afterExecute','markerNameToElements','document','requires','bind','enableCommand','nextSibling','createRange','init','high','enter','removeMarker:suggestion:insertion','createPositionAt','ck-suggestion-marker-split','remove','end','commands'];(function(_0x490df,_0x42d063){const _0x4a0f4b=function(_0x276940){while(--_0x276940){_0x490df['push'](_0x490df['shift']());}};_0x4a0f4b(++_0x42d063);}(_0x42d0,0x65));const _0x4a0f=function(_0x490df,_0x42d063){_0x490df=_0x490df-0x0;let _0x4a0f4b=_0x42d0[_0x490df];return _0x4a0f4b;};import{Plugin as _0x578c22}from'ckeditor5/src/core.js';import{Enter as _0xb73ac0}from'ckeditor5/src/enter.js';import{LiveRange as _0x2d0a0d}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x2753d3}from'./utils.js';export default class q extends _0x578c22{static get[_0x4a0f('0xd')](){return[_0xb73ac0];}[_0x4a0f('0x12')](){const _0x49af57=this[_0x4a0f('0x1d')],_0x1695f1=_0x49af57['plugins'][_0x4a0f('0x4')]('TrackChangesEditing'),_0x441961=_0x49af57[_0x4a0f('0x1a')][_0x4a0f('0x4')](_0x4a0f('0x14'));_0x1695f1[_0x4a0f('0xf')](_0x4a0f('0x14'),()=>{_0x49af57[_0x4a0f('0x1b')][_0x4a0f('0x1')](_0x94fcd=>{const _0x128a62=_0x49af57[_0x4a0f('0x1b')][_0x4a0f('0xc')]['selection'],_0xac970b=_0x128a62[_0x4a0f('0x3')](),_0x4f6267=_0x2d0a0d[_0x4a0f('0x9')](_0x128a62['getFirstRange']());if(_0x441961['enterBlock'](_0x94fcd)){const _0x3efe5d=_0x49af57['model'][_0x4a0f('0x16')](_0xac970b[_0x4a0f('0x8')][_0x4a0f('0x10')],0x0),_0x2b585a=_0x94fcd[_0x4a0f('0x11')](_0xac970b,_0x3efe5d);_0x1695f1['markInsertion'](_0x2b585a);}else _0x94fcd[_0x4a0f('0x1c')](_0x94fcd[_0x4a0f('0x11')](_0x4f6267[_0x4a0f('0x19')]));_0x4f6267['detach'](),_0x441961['fire'](_0x4a0f('0xa'),{'writer':_0x94fcd});});}),_0x49af57['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_0x2753d3(_0x49af57,_0x4a0f('0x1f')),{'priority':'high'}),_0x49af57['editing']['downcastDispatcher']['on'](_0x4a0f('0x15'),(_0x3eecd3,_0x2c3684,_0x33d0c6)=>{const _0x102bfc=_0x33d0c6['mapper'][_0x4a0f('0xb')](_0x2c3684[_0x4a0f('0x5')]);if(_0x102bfc)for(const _0x2cb9d1 of _0x102bfc)_0x2cb9d1[_0x4a0f('0x7')](_0x4a0f('0x17'))&&(_0x33d0c6['mapper']['unbindElementFromMarkerName'](_0x2cb9d1,_0x2c3684[_0x4a0f('0x5')]),_0x33d0c6[_0x4a0f('0x2')][_0x4a0f('0x18')](_0x2cb9d1));},{'priority':'high'}),_0x49af57[_0x4a0f('0x1e')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x400c2c,_0x4e0ea1,_0x1d0a2e)=>{_0x1d0a2e[_0x4a0f('0x6')][_0x4a0f('0x0')]&&_0x2753d3(_0x49af57,_0x4a0f('0x1f'),{'showActiveMarker':!0x1})[_0x4a0f('0xe')](this)(_0x400c2c,_0x4e0ea1,_0x1d0a2e);},{'priority':_0x4a0f('0x13')});}}
|
|
@@ -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.js';
|
|
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 _0x21e4=['findByTextCallback','TrackChangesEditing','plugins','filter','editor','bind','get','replace','getMarkersGroup','suggestion:deletion','FindAndReplaceEditing','getIntersection','findPrevious','string','replaceAll','findNext','getRange','_isInDeletionRange','createRange','handleFindCommand','afterInit','enableCommand','FindAndReplaceUtils','model','createPositionAt'];(function(_0x359590,_0x21e481){const _0x82ad45=function(_0x5f0e0e){while(--_0x5f0e0e){_0x359590['push'](_0x359590['shift']());}};_0x82ad45(++_0x21e481);}(_0x21e4,0x145));const _0x82ad=function(_0x359590,_0x21e481){_0x359590=_0x359590-0x0;let _0x82ad45=_0x21e4[_0x359590];return _0x82ad45;};import{Plugin as _0x551f96}from'ckeditor5/src/core.js';export default class z extends _0x551f96{[_0x82ad('0x14')](){if(!this[_0x82ad('0x4')][_0x82ad('0x2')]['has'](_0x82ad('0xa')))return;const _0x22e79b=this[_0x82ad('0x4')][_0x82ad('0x2')][_0x82ad('0x6')](_0x82ad('0x1'));_0x22e79b[_0x82ad('0x15')]('find',this['handleFindCommand'][_0x82ad('0x5')](this)),_0x22e79b[_0x82ad('0x15')](_0x82ad('0xf')),_0x22e79b[_0x82ad('0x15')](_0x82ad('0xc')),_0x22e79b[_0x82ad('0x15')](_0x82ad('0x7')),_0x22e79b[_0x82ad('0x15')](_0x82ad('0xe'));}[_0x82ad('0x13')](_0x57f26a,_0x59d018,_0x3685f0={}){const _0x1db1aa=this[_0x82ad('0x4')][_0x82ad('0x2')]['get'](_0x82ad('0x16'));void 0x0!==_0x3685f0&&_0x57f26a(_0x551990=>(_0x82ad('0xd')==typeof _0x59d018?_0x1db1aa[_0x82ad('0x0')](_0x59d018,_0x3685f0):_0x59d018)(_0x551990)[_0x82ad('0x3')](_0x982adf=>!0x1===this[_0x82ad('0x11')](_0x982adf,_0x551990['item'])),_0x3685f0);}[_0x82ad('0x11')](_0x228742,_0x2e5d46){const _0x38f2e6=this[_0x82ad('0x4')][_0x82ad('0x17')][_0x82ad('0x12')](this[_0x82ad('0x4')][_0x82ad('0x17')][_0x82ad('0x18')](_0x2e5d46,_0x228742['start']),this[_0x82ad('0x4')]['model'][_0x82ad('0x18')](_0x2e5d46,_0x228742['end']));for(const _0x547f3e of this['editor']['model']['markers'][_0x82ad('0x8')](_0x82ad('0x9')))if(null!==_0x38f2e6[_0x82ad('0xb')](_0x547f3e[_0x82ad('0x10')]()))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.js';
|
|
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
|
+
}
|