@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- 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 +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/codeblock
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for code block feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesCodeBlock extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/codeblock
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for code block feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesCodeBlock extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x201e=['from','schema','languages','find','rootElement','_descriptionFactory','plugins','registerElementLabel','afterInit','*Format:*\x20%0','getSelectedBlocks','blockName','format','language','indentCodeBlock','filter','*Remove\x20format:*\x20%0','label','document','enableCommand','forceValue','has','selection','markBlockFormat','commands','locale','checkChild','get','commandParams','CodeBlock','change','isLimit','name','codeBlock','ELEMENT_CODE_BLOCK'];(function(_0x56a9da,_0x201eb9){const _0x302b86=function(_0x1b9375){while(--_0x1b9375){_0x56a9da['push'](_0x56a9da['shift']());}};_0x302b86(++_0x201eb9);}(_0x201e,0x1d0));const _0x302b=function(_0x56a9da,_0x201eb9){_0x56a9da=_0x56a9da-0x0;let _0x302b86=_0x201e[_0x56a9da];return _0x302b86;};import{Plugin as _0x2d8564}from'ckeditor5/src/core';import{getTranslation as _0x5e570e}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3ceb7f}from'../utils/utils';export default class F extends _0x2d8564{[_0x302b('0x22')](){const _0x4278ad=this['editor'];if(!_0x4278ad[_0x302b('0x20')][_0x302b('0xc')](_0x302b('0x14')))return;const _0x4097c6=_0x4278ad[_0x302b('0x20')]['get']('TrackChangesEditing'),_0x3d80c3=_0x4278ad[_0x302b('0x10')],_0x73cdc8=_0x4278ad['config'][_0x302b('0x12')](_0x302b('0x18'))[_0x302b('0x1c')],_0x8bd656=_0x4278ad[_0x302b('0xf')][_0x302b('0x12')](_0x302b('0x18'));_0x4097c6[_0x302b('0xa')](_0x302b('0x5')),_0x4097c6[_0x302b('0xa')]('outdentCodeBlock'),_0x4097c6[_0x302b('0xa')](_0x302b('0x18'),(_0x376986,_0x466dca={})=>{const _0x4c46bb=_0x4278ad['model'],_0x429cec=_0x4278ad['model'][_0x302b('0x9')][_0x302b('0xd')],_0x320ff9=_0x466dca&&void 0x0!==_0x466dca[_0x302b('0xb')]?_0x466dca[_0x302b('0xb')]:!_0x8bd656['value'];let _0x9cc5cf;_0x466dca[_0x302b('0x4')]||(_0x466dca[_0x302b('0x4')]=_0x73cdc8[0x0][_0x302b('0x4')]),_0x9cc5cf=_0x320ff9?Array[_0x302b('0x1a')](_0x429cec[_0x302b('0x1')]())[_0x302b('0x6')](_0x283708=>co(_0x283708)||function(_0x44880e,_0x17c57d){if(_0x44880e['is'](_0x302b('0x1e'))||_0x17c57d[_0x302b('0x16')](_0x44880e))return!0x1;return _0x17c57d[_0x302b('0x11')](_0x44880e['parent'],_0x302b('0x18'));}(_0x283708,_0x4c46bb[_0x302b('0x1b')])):Array[_0x302b('0x1a')](_0x429cec[_0x302b('0x1')]())[_0x302b('0x6')](_0x4462b6=>co(_0x4462b6));const _0x2f51d6=_0x3ceb7f(_0x9cc5cf,_0x4c46bb);_0x4c46bb[_0x302b('0x15')](()=>{for(const _0x2bb54d of _0x2f51d6)_0x4097c6[_0x302b('0xe')](_0x2bb54d,{'commandName':_0x302b('0x18'),'commandParams':[{..._0x466dca,'forceValue':_0x320ff9}],'formatGroupId':_0x302b('0x2')});});}),(_0x4097c6[_0x302b('0x1f')][_0x302b('0x21')](_0x302b('0x18'),_0xa8408d=>_0x5e570e(_0x3d80c3,_0x302b('0x19'),_0xa8408d)),_0x4097c6[_0x302b('0x1f')]['registerDescriptionCallback'](_0x48fab5=>{const _0x3ebc3e=_0x3d80c3['t'],{type:_0x313c6f,data:_0x26b7b7}=_0x48fab5;if('formatBlock'==_0x313c6f&&_0x26b7b7&&_0x302b('0x18')==_0x26b7b7['commandName']){const _0xfa2822=_0x26b7b7[_0x302b('0x13')][0x0]['language'],_0x2afa4a=_0x3ebc3e(_0x73cdc8[_0x302b('0x1d')](_0x3fa484=>_0x3fa484['language']===_0xfa2822)[_0x302b('0x8')]);return _0x26b7b7[_0x302b('0x13')][0x0]['forceValue']?{'type':_0x302b('0x3'),'content':_0x5e570e(_0x3d80c3,_0x302b('0x0'),_0x5e570e(_0x3d80c3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2afa4a+')')}:{'type':'format','content':_0x5e570e(_0x3d80c3,_0x302b('0x7'),_0x5e570e(_0x3d80c3,_0x302b('0x19'),0x1))};}}));}}function co(_0x2cdb35){return _0x302b('0x18')==_0x2cdb35[_0x302b('0x17')];}
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/comments
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesComments extends Plugin {
|
|
13
|
-
afterInit(): void;
|
|
14
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/comments
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:comments/comments~Comments comments feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesComments extends Plugin {
|
|
13
|
+
afterInit(): void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5afc=['addCommentThread','has','get','enableCommand','afterInit','CommentsEditing','TrackChangesEditing','plugins','editor'];(function(_0x5b9792,_0x5afc29){const _0x587a61=function(_0x43f0c8){while(--_0x43f0c8){_0x5b9792['push'](_0x5b9792['shift']());}};_0x587a61(++_0x5afc29);}(_0x5afc,0x1e5));const _0x587a=function(_0x5b9792,_0x5afc29){_0x5b9792=_0x5b9792-0x0;let _0x587a61=_0x5afc[_0x5b9792];return _0x587a61;};import{Plugin as _0x201fa8}from'ckeditor5/src/core';export default class G extends _0x201fa8{[_0x587a('0x5')](){const _0x433240=this[_0x587a('0x0')];if(!_0x433240[_0x587a('0x8')][_0x587a('0x2')](_0x587a('0x6')))return;_0x433240[_0x587a('0x8')][_0x587a('0x3')](_0x587a('0x7'))[_0x587a('0x4')](_0x587a('0x1'));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/deletecommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
|
-
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesDeleteCommand extends Plugin {
|
|
15
|
-
static get requires(): readonly [typeof Delete];
|
|
16
|
-
init(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/deletecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
12
|
+
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesDeleteCommand extends Plugin {
|
|
15
|
+
static get requires(): readonly [typeof Delete];
|
|
16
|
+
init(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x444c=['createRange','$graveyard','unbindElementFromMarkerName','enableCommand','get','end','merge','high','markerName','start','model','fromRange','unit','remove','delete','downcastDispatcher','init','deleteForward','batch','detach','setSelection','rootName','selection','uiElement','lock','forward','buffer','document','mapper','bind','TrackChangesEditing','removeMarker:suggestion:deletion','options','writer','markerNameToElements','addMarker:suggestion:deletion'];(function(_0x3871ae,_0x444c97){const _0x546cb8=function(_0x365d71){while(--_0x365d71){_0x3871ae['push'](_0x3871ae['shift']());}};_0x546cb8(++_0x444c97);}(_0x444c,0x151));const _0x546c=function(_0x3871ae,_0x444c97){_0x3871ae=_0x3871ae-0x0;let _0x546cb8=_0x444c[_0x3871ae];return _0x546cb8;};import{Plugin as _0x40855e}from'ckeditor5/src/core';import{LiveRange as _0x8bcdc1}from'ckeditor5/src/engine';import{Delete as _0x4a4f5d}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1bc484}from'./utils';export default class L extends _0x40855e{static get['requires'](){return[_0x4a4f5d];}[_0x546c('0x3')](){const _0x3b725b=this['editor'],_0x357b58=_0x3b725b['plugins'][_0x546c('0x1b')](_0x546c('0x11'));_0x357b58[_0x546c('0x1a')](_0x546c('0x1'));const _0x59ac1e=_0x3b725b['commands']['get'](_0x546c('0x4'));_0x357b58[_0x546c('0x1a')](_0x546c('0x4'),(_0x5734b9,_0x2a6c77={})=>{const _0x1a8e41=_0x3b725b[_0x546c('0x21')]['createSelection'](_0x3b725b[_0x546c('0x21')][_0x546c('0xe')][_0x546c('0x9')]);_0x1a8e41['isCollapsed']&&_0x3b725b[_0x546c('0x21')]['modifySelection'](_0x1a8e41,{'direction':_0x546c('0xc'),'unit':_0x2a6c77[_0x546c('0x23')]});const _0x4fdbe1=_0x1a8e41['getFirstRange'](),_0x5546f9=_0x8bcdc1[_0x546c('0x22')](_0x4fdbe1);let _0x3ceb7c;_0x5734b9(_0x2a6c77),_0x3ceb7c=_0x546c('0x18')==_0x5546f9['root'][_0x546c('0x8')]?_0x3b725b[_0x546c('0x21')][_0x546c('0x17')](_0x4fdbe1[_0x546c('0x20')]):_0x3b725b[_0x546c('0x21')][_0x546c('0x17')](_0x5546f9['start'],_0x5546f9['end']),_0x5546f9[_0x546c('0x6')](),_0x3b725b[_0x546c('0x21')]['enqueueChange'](_0x59ac1e[_0x546c('0xd')][_0x546c('0x5')],_0x28c96b=>{_0x59ac1e[_0x546c('0xd')][_0x546c('0xb')](),_0x28c96b[_0x546c('0x7')](_0x28c96b[_0x546c('0x17')](_0x3ceb7c[_0x546c('0x1c')])),_0x59ac1e['buffer']['unlock']();});}),_0x3b725b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_0x1bc484(_0x3b725b,_0x546c('0x1d')),{'priority':'high'}),_0x3b725b['data'][_0x546c('0x2')]['on'](_0x546c('0x16'),(_0x5deb64,_0x18cc25,_0x872f96)=>{_0x872f96[_0x546c('0x13')]['showSuggestionHighlights']&&_0x1bc484(_0x3b725b,_0x546c('0x1d'),{'showActiveMarker':!0x1})[_0x546c('0x10')](this)(_0x5deb64,_0x18cc25,_0x872f96);},{'priority':'high'}),_0x3b725b['editing'][_0x546c('0x2')]['on'](_0x546c('0x12'),(_0x466d91,_0x2e1cfb,_0x3b5539)=>{const _0x453690=_0x3b5539[_0x546c('0xf')][_0x546c('0x15')](_0x2e1cfb[_0x546c('0x1f')]);if(_0x453690)for(const _0x431e8c of _0x453690)_0x431e8c['is'](_0x546c('0xa'))&&(_0x3b5539['mapper'][_0x546c('0x19')](_0x431e8c,_0x2e1cfb[_0x546c('0x1f')]),_0x3b5539[_0x546c('0x14')][_0x546c('0x0')](_0x431e8c));},{'priority':_0x546c('0x1e')});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for document list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/documentlist
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for document list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e9d=['_suggestionFactory','numberedList','mergeListItemBackward','toUpperCase','markBlockFormat','setSelection','getAttribute','multipleBlocks','document','containsItem','editor','parent','add','outdentList','config','before','getRanges','ELEMENT_BULLETED_LIST','hasAttribute','*Format:*\x20insert\x20into\x20%0','get','indentList','execute','isObject','has','*Indent:*\x20%0','listType','value','end','forceValue','deletion','previousSibling','getSelectedBlocks','next','from','createPositionAt','commands','createRange','findIndex','fromRange','_LIST','after','splitListItemBefore','*Format:*\x20remove\x20from\x20%0','TrackChangesEditing','format','registerCustomCallback','selection','*Outdent:*\x20%0','commandParams','enableCommand','nodeAfter','list.multiBlock','listItemId','registerElementLabel','_descriptionFactory','model','bulletedList','documentList','*Merge:*\x20%0','commandName','start','getFirstRange','plugins','markMultiRangeBlockFormat','ELEMENT_LIST_ITEM','formatBlock','nextSibling','refresh','push','change','listIndent','afterInit','DocumentListEditing'];(function(_0x131c6b,_0x5e9d3b){const _0x3b63d4=function(_0x1c5697){while(--_0x1c5697){_0x131c6b['push'](_0x131c6b['shift']());}};_0x3b63d4(++_0x5e9d3b);}(_0x5e9d,0xb4));const _0x3b63=function(_0x131c6b,_0x5e9d3b){_0x131c6b=_0x131c6b-0x0;let _0x3b63d4=_0x5e9d[_0x131c6b];return _0x3b63d4;};import{Plugin as _0x557346}from'ckeditor5/src/core';import{getTranslation as _0x5e3f9d}from'../utils/common-translations';import{LiveRange as _0x5b4cad}from'ckeditor5/src/engine';export default class q extends _0x557346{[_0x3b63('0x28')](){const _0x264d59=this[_0x3b63('0x34')];if(!_0x264d59[_0x3b63('0x1f')][_0x3b63('0x42')](_0x3b63('0x29')))return;const _0x4952a7=_0x264d59['locale'],_0x3e4e36=_0x264d59[_0x3b63('0x1f')][_0x3b63('0x3e')](_0x3b63('0xc')),_0x46a5f6=_0x264d59[_0x3b63('0x1f')][_0x3b63('0x3e')]('DocumentListUtils');function _0x20b1c4(_0x178ff8){return()=>{const _0x582bac=_0x264d59[_0x3b63('0x4')][_0x3b63('0x3e')](_0x178ff8);if(_0x582bac[_0x3b63('0x45')]&&!_0x264d59[_0x3b63('0x38')][_0x3b63('0x3e')]('list.multiBlock'))return void _0x264d59['execute']('paragraph',{});let _0x53ec1b=Array['from'](_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')][_0x3b63('0x0')]());if(_0x547829(_0x178ff8)){_0x53ec1b=_0x46a5f6['expandListBlocksToCompleteList'](_0x53ec1b);const _0x114a69=[];for(const _0x529451 of _0x53ec1b)_0x46a5f6['isFirstBlockOfListItem'](_0x529451)&&_0x114a69[_0x3b63('0x25')](_0x529451);_0x53ec1b=_0x114a69;}_0x264d59['model']['change'](()=>{_0x3e4e36[_0x3b63('0x20')](_0x53ec1b,{'commandName':_0x178ff8,'commandParams':[{'forceValue':!_0x582bac['value']}],'formatGroupId':'listType'},[],_0x3b63('0x1a'));});};}function _0xbbdd1(_0x3414d8){return()=>{const _0x4b2588=function(_0xe0ce72){let _0x5e27fa=Array[_0x3b63('0x2')](_0xe0ce72);const _0x219ed4=_0x5e27fa[_0x3b63('0x6')](_0x414f79=>!_0x414f79[_0x3b63('0x3c')](_0x3b63('0x15')));return _0x219ed4>-0x1&&(_0x5e27fa=_0x5e27fa['slice'](0x0,_0x219ed4)),_0x5e27fa;}(_0x264d59['model']['document'][_0x3b63('0xf')][_0x3b63('0x0')]()),_0x2b4815=_0x4b2588[_0x4b2588['length']-0x1],_0x19fcde=_0x264d59[_0x3b63('0x18')]['schema'][_0x3b63('0x41')](_0x2b4815)?_0x3b63('0x9'):_0x3b63('0x46'),_0x3d1573=_0x264d59[_0x3b63('0x18')]['createRange'](_0x264d59[_0x3b63('0x18')]['createPositionAt'](_0x4b2588[0x0],_0x3b63('0x39')),_0x264d59[_0x3b63('0x18')][_0x3b63('0x3')](_0x2b4815,_0x19fcde));_0x264d59[_0x3b63('0x18')]['change'](()=>{_0x3e4e36[_0x3b63('0x2e')](_0x3d1573,{'commandName':_0x3414d8,'commandParams':[],'formatGroupId':_0x3b63('0x44')},function(_0x1dfa99){const _0x118556=new Set();for(const _0xffdc57 of _0x1dfa99){let _0x4c93f7=_0xffdc57[_0x3b63('0x23')];for(;_0x4c93f7&&_0x4c93f7['getAttribute'](_0x3b63('0x27'))>_0xffdc57[_0x3b63('0x30')](_0x3b63('0x27'));)_0x118556[_0x3b63('0x36')](_0x4c93f7),_0x4c93f7=_0x4c93f7[_0x3b63('0x23')];}return Array[_0x3b63('0x2')](_0x118556);}(_0x4b2588));});};}function _0x3ac112(_0x5cb44a){return()=>{const _0x685045=_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')][_0x3b63('0x0')]()[_0x3b63('0x1')]()[_0x3b63('0x45')],_0x2494e7=_0x264d59[_0x3b63('0x18')]['createPositionAt'](_0x685045,_0x3b63('0x39')),_0x18b1df=_0x264d59['model'][_0x3b63('0x3')](_0x685045,0x0),_0x376323=_0x264d59['model']['createRange'](_0x2494e7,_0x18b1df);_0x264d59['model'][_0x3b63('0x26')](()=>{_0x3e4e36[_0x3b63('0x2e')](_0x376323,{'commandName':_0x5cb44a,'commandParams':[],'formatGroupId':_0x3b63('0x44')});});};}function _0x547829(_0x4fa7ac){const _0x2f8a70=_0x264d59[_0x3b63('0x4')][_0x3b63('0x3e')]('bulletedList')['value'],_0x4c6f47=_0x264d59['commands'][_0x3b63('0x3e')](_0x3b63('0x2b'))[_0x3b63('0x45')];return _0x3b63('0x2b')===_0x4fa7ac?_0x2f8a70:_0x4c6f47;}_0x3e4e36[_0x3b63('0x12')](_0x3b63('0x2b'),_0x20b1c4(_0x3b63('0x2b'))),_0x3e4e36['enableCommand'](_0x3b63('0x19'),_0x20b1c4(_0x3b63('0x19'))),_0x3e4e36['enableCommand']('indentList',_0xbbdd1(_0x3b63('0x3f'))),_0x3e4e36[_0x3b63('0x12')](_0x3b63('0x37'),_0xbbdd1('outdentList')),_0x3e4e36['enableCommand']('splitListItemAfter',_0x3ac112('splitListItemAfter')),_0x3e4e36[_0x3b63('0x12')](_0x3b63('0xa'),_0x3ac112(_0x3b63('0xa'))),_0x3e4e36['_descriptionFactory'][_0x3b63('0x16')](function(_0x2d2eaf){const _0x1d892b=!_0x264d59[_0x3b63('0x18')]['schema'][_0x3b63('0x41')](_0x2d2eaf),_0x431917=_0x2d2eaf[_0x3b63('0x49')],_0x447d05=_0x2d2eaf[_0x3b63('0x23')],_0x39931b=_0x2d2eaf[_0x3b63('0x30')]('listItemId'),_0x4502bc=!_0x431917||_0x431917['getAttribute'](_0x3b63('0x15'))!==_0x39931b,_0x536db7=!_0x447d05||_0x447d05[_0x3b63('0x30')]('listItemId')!==_0x39931b;return _0x1d892b&&Boolean(_0x39931b)&&_0x4502bc&&_0x536db7;},_0x28c29c=>_0x5e3f9d(_0x4952a7,_0x3b63('0x21'),_0x28c29c)),_0x3e4e36[_0x3b63('0x17')]['registerDescriptionCallback'](function(_0x505cc5){const {data:_0x3ba178}=_0x505cc5;if(!_0x3ba178)return;let _0x2e1803,_0x453293,_0x5247a7,_0x53c557;switch(_0x3ba178[_0x3b63('0x1c')]){case'bulletedList':_0x5247a7=_0x3ba178['commandParams'][0x0][_0x3b63('0x47')],_0x53c557=_0x547829(_0x3ba178['commandName']),_0x2e1803=_0x5247a7?_0x3b63('0x3d'):_0x3b63('0xb'),!_0x53c557&&_0x264d59[_0x3b63('0x38')]['get'](_0x3b63('0x14'))||(_0x2e1803='*Change\x20to:*\x20%0'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,_0x3b63('0x3b')))};break;case _0x3b63('0x2b'):_0x5247a7=_0x3ba178[_0x3b63('0x11')][0x0][_0x3b63('0x47')],_0x53c557=_0x547829(_0x3ba178['commandName']),_0x2e1803=_0x5247a7?_0x3b63('0x3d'):_0x3b63('0xb'),!_0x53c557&&_0x264d59[_0x3b63('0x38')][_0x3b63('0x3e')](_0x3b63('0x14'))||(_0x2e1803='*Change\x20to:*\x20%0'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,'ELEMENT_NUMBERED_LIST'))};break;case _0x3b63('0x3f'):_0x2e1803=_0x3b63('0x43'),_0x453293={'type':_0x3b63('0xd'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,_0x3b63('0x21')))};break;case _0x3b63('0x37'):_0x2e1803=function(_0x58782f){const _0x49895c=_0x58782f['getFirstRange']();let _0x178b70=_0x49895c[_0x3b63('0x1d')]['nodeAfter'];for(;_0x178b70&&_0x49895c[_0x3b63('0x33')](_0x178b70);){if(_0x178b70[_0x3b63('0x30')]('listIndent')>0x0)return!0x1;_0x178b70=_0x178b70[_0x3b63('0x23')];}return!0x0;}(_0x505cc5)?_0x5e3f9d(_0x4952a7,_0x3b63('0xb'),_0x5e3f9d(_0x4952a7,function(_0x57a2dc){const _0x2823d7=_0x57a2dc[_0x3b63('0x1e')]()[_0x3b63('0x1d')]['nodeAfter'];return'ELEMENT_'+_0x2823d7[_0x3b63('0x30')](_0x3b63('0x44'))[_0x3b63('0x2d')]()+_0x3b63('0x8');}(_0x505cc5))):_0x5e3f9d(_0x4952a7,_0x3b63('0x10'),_0x5e3f9d(_0x4952a7,_0x3b63('0x21'))),_0x453293={'type':_0x3b63('0xd'),'content':_0x2e1803};break;case _0x3b63('0x2c'):case'mergeListItemForward':!0x1===_0x3ba178[_0x3b63('0x31')]&&(_0x2e1803=_0x3b63('0x1b'),_0x453293={'type':_0x3b63('0x48'),'content':_0x5e3f9d(_0x4952a7,_0x2e1803,_0x5e3f9d(_0x4952a7,'ELEMENT_LIST_ITEM'))});}return _0x453293;}),_0x3e4e36[_0x3b63('0x2a')][_0x3b63('0xe')](_0x3b63('0x22'),_0x3b63('0x1a'),'accept',function(_0x36e2d5,_0x1a78dc){const _0x12042e=[];for(let _0x5a657a of _0x36e2d5)_0x5a657a[_0x3b63('0x1d')][_0x3b63('0x13')]===_0x5a657a[_0x3b63('0x46')][_0x3b63('0x35')]&&(_0x5a657a=_0x264d59[_0x3b63('0x18')][_0x3b63('0x5')](_0x264d59[_0x3b63('0x18')][_0x3b63('0x3')](_0x5a657a['start'][_0x3b63('0x13')],0x0))),_0x12042e[_0x3b63('0x25')](_0x5a657a);_0x264d59[_0x3b63('0x18')][_0x3b63('0x26')](_0x4c5cd0=>{const _0x3cc430=_0x264d59[_0x3b63('0x18')][_0x3b63('0x32')][_0x3b63('0xf')],_0x13d677=Array[_0x3b63('0x2')](_0x3cc430[_0x3b63('0x3a')]())['map'](_0x5b4e31=>_0x5b4cad[_0x3b63('0x7')](_0x5b4e31));_0x4c5cd0[_0x3b63('0x2f')](_0x12042e),_0x264d59['commands'][_0x3b63('0x3e')](_0x1a78dc[_0x3b63('0x1c')])[_0x3b63('0x24')](),_0x1a78dc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x264d59[_0x3b63('0x40')](_0x1a78dc[_0x3b63('0x1c')],..._0x1a78dc['commandParams']),_0x4c5cd0[_0x3b63('0x2f')](_0x13d677);for(const _0x26c2e2 of _0x13d677)_0x26c2e2['detach']();});});}}
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/documentlistproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
-
type?: string | null;
|
|
21
|
-
}): void;
|
|
22
|
-
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
-
reversed?: boolean;
|
|
24
|
-
}): void;
|
|
25
|
-
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
-
startIndex?: number;
|
|
27
|
-
}): void;
|
|
28
|
-
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/documentlistproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
+
type?: string | null;
|
|
21
|
+
}): void;
|
|
22
|
+
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
+
reversed?: boolean;
|
|
24
|
+
}): void;
|
|
25
|
+
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
+
startIndex?: number;
|
|
27
|
+
}): void;
|
|
28
|
+
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42be=['numbered','*Format:*\x20set\x20order\x20to\x20regular','listStart','_getSuggestionBlocksForListStyle','format','TrackChangesEditing','handleListReversedCommand','reversed','bind','config','editor','startIndex','listType','*Format:*\x20set\x20start\x20index\x20to\x20%0','isListItemBlock','listStyle','handleListStyleCommand','selection','type','toUpperCase','getSelectedBlocks','commandName','list.properties','has','*Change\x20to:*\x20%0','from','expandListBlocksToCompleteList','_descriptionFactory','get','handleListStartCommand','document','replace','getAttribute','length','DocumentListPropertiesUtils','handleDescriptions','locale','DocumentListUtils','ELEMENT_','_getSuggestionBlocks','plugins','change','listReversed','commandParams','styles','_LIST_','enableCommand','markMultiRangeBlockFormat','model','_getTranslationKeyForListStyle','push','filter'];(function(_0x185820,_0x42be38){const _0x22da2e=function(_0x585436){while(--_0x585436){_0x185820['push'](_0x185820['shift']());}};_0x22da2e(++_0x42be38);}(_0x42be,0xca));const _0x22da=function(_0x185820,_0x42be38){_0x185820=_0x185820-0x0;let _0x22da2e=_0x42be[_0x185820];return _0x22da2e;};import{Plugin as _0x1da21b}from'ckeditor5/src/core';import{getTranslation as _0x4a805d}from'../utils/common-translations';export default class Ct extends _0x1da21b{['afterInit'](){if(!this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x1d')]('DocumentListPropertiesEditing'))return;const _0x10d373=this[_0x22da('0x10')][_0x22da('0xf')][_0x22da('0x22')](_0x22da('0x1c')),_0xfd93d1=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb'));_0x10d373[_0x22da('0x32')]&&_0xfd93d1[_0x22da('0x0')](_0x22da('0x15'),this['handleListStyleCommand'][_0x22da('0xe')](this)),_0x10d373[_0x22da('0xd')]&&_0xfd93d1['enableCommand'](_0x22da('0x30'),this[_0x22da('0xc')][_0x22da('0xe')](this)),_0x10d373[_0x22da('0x11')]&&_0xfd93d1[_0x22da('0x0')](_0x22da('0x8'),this['handleListStartCommand'][_0x22da('0xe')](this)),_0xfd93d1[_0x22da('0x21')]['registerDescriptionCallback'](this['handleDescriptions'][_0x22da('0xe')](this));}[_0x22da('0x16')](_0x79c5bc,_0x3d8718={}){const _0x1b9c2b=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb')),_0x48eb02=this[_0x22da('0x9')]();this[_0x22da('0x10')]['model'][_0x22da('0x2f')](()=>{_0x1b9c2b[_0x22da('0x1')](_0x48eb02,{'commandName':_0x22da('0x15'),'commandParams':[{'type':_0x3d8718[_0x22da('0x18')]}],'formatGroupId':_0x22da('0x15')});});}[_0x22da('0xc')](_0x4a0a60,_0x37b599={}){const _0x11a7f3=this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0xb')),_0x1ddda4=this['editor'][_0x22da('0x2e')]['get'](_0x22da('0x2b')),_0x4825f0=this['_getSuggestionBlocks'](_0x180a6c=>_0x1ddda4[_0x22da('0x14')](_0x180a6c)&&_0x22da('0x6')===_0x180a6c['getAttribute'](_0x22da('0x12')));null!==_0x4825f0&&this[_0x22da('0x10')][_0x22da('0x2')][_0x22da('0x2f')](()=>{_0x11a7f3[_0x22da('0x1')](_0x4825f0,{'commandName':_0x22da('0x30'),'commandParams':[{'reversed':_0x37b599[_0x22da('0xd')]}],'formatGroupId':_0x22da('0x30')});});}[_0x22da('0x23')](_0x1287e8,_0x4cab60={}){const _0x19f89d=this[_0x22da('0x10')]['plugins'][_0x22da('0x22')](_0x22da('0xb')),_0x12d166=this['editor'][_0x22da('0x2e')][_0x22da('0x22')]('DocumentListUtils'),_0x4fc453=this['_getSuggestionBlocks'](_0x2ebf9d=>_0x12d166[_0x22da('0x14')](_0x2ebf9d)&&_0x22da('0x6')===_0x2ebf9d[_0x22da('0x26')](_0x22da('0x12')));null!==_0x4fc453&&this[_0x22da('0x10')]['model']['change'](()=>{_0x19f89d[_0x22da('0x1')](_0x4fc453,{'commandName':_0x22da('0x8'),'commandParams':[{'startIndex':_0x4cab60[_0x22da('0x11')]}],'formatGroupId':_0x22da('0x8')});});}[_0x22da('0x29')](_0x1d8d8f){const _0x181598=this[_0x22da('0x10')][_0x22da('0x2a')],{data:_0x8ddb8f}=_0x1d8d8f;if(!_0x8ddb8f)return;let _0x3a37e7,_0x42adb3;switch(_0x8ddb8f[_0x22da('0x1b')]){case'listStyle':_0x3a37e7=_0x22da('0x1e'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7,_0x4a805d(_0x181598,this[_0x22da('0x3')](_0x8ddb8f[_0x22da('0x31')][0x0][_0x22da('0x18')])))};break;case _0x22da('0x30'):_0x3a37e7=_0x8ddb8f[_0x22da('0x31')][0x0][_0x22da('0xd')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x22da('0x7'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7)};break;case _0x22da('0x8'):_0x3a37e7=_0x22da('0x13'),_0x42adb3={'type':_0x22da('0xa'),'content':_0x4a805d(_0x181598,_0x3a37e7,_0x8ddb8f['commandParams'][0x0][_0x22da('0x11')])};}return _0x42adb3;}[_0x22da('0x9')](){const _0x15cd07=this['editor']['plugins']['get'](_0x22da('0x2b'));let _0x1c4895=Array[_0x22da('0x1f')](this[_0x22da('0x10')]['model'][_0x22da('0x24')][_0x22da('0x17')][_0x22da('0x1a')]());return _0x1c4895[_0x22da('0x4')](..._0x15cd07[_0x22da('0x20')](_0x1c4895)),_0x1c4895=[...new Set(_0x1c4895)],_0x1c4895;}[_0x22da('0x2d')](_0x2029f1){const _0x40dcad=this[_0x22da('0x10')]['plugins'][_0x22da('0x22')]('DocumentListUtils');let _0x471ae8=Array['from'](this[_0x22da('0x10')][_0x22da('0x2')][_0x22da('0x24')]['selection'][_0x22da('0x1a')]())[_0x22da('0x5')](_0x2029f1);if(!_0x471ae8[_0x22da('0x27')])return null;_0x471ae8=_0x40dcad[_0x22da('0x20')](_0x471ae8);const _0x285cb6=[];for(const _0x2383e8 of _0x471ae8)_0x40dcad['isFirstBlockOfListItem'](_0x2383e8)&&_0x285cb6['push'](_0x2383e8);return _0x285cb6;}['_getTranslationKeyForListStyle'](_0x2b479b){return _0x22da('0x2c')+this[_0x22da('0x10')][_0x22da('0x2e')][_0x22da('0x22')](_0x22da('0x28'))['getListTypeFromListStyleType'](_0x2b479b)[_0x22da('0x19')]()+_0x22da('0x33')+_0x2b479b[_0x22da('0x19')]()[_0x22da('0x25')](/-/g,'_');}}
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/entercommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof Enter];
|
|
15
|
-
init(): void;
|
|
16
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/entercommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof Enter];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59b4=['editing','selection','createPositionAt','parent','enter','afterExecute','split','init','model','mapper','plugins','commands','createRange','unbindElementFromMarkerName','writer','fromRange','ck-suggestion-marker-split','get','data','downcastDispatcher','nextSibling','detach','enterBlock','bind','markerName','getFirstPosition','high','addMarker:suggestion:insertion','remove','requires','fire','hasClass','change','removeMarker:suggestion:insertion'];(function(_0x5636c7,_0x59b49c){const _0x580f5f=function(_0x5ed382){while(--_0x5ed382){_0x5636c7['push'](_0x5636c7['shift']());}};_0x580f5f(++_0x59b49c);}(_0x59b4,0x1ce));const _0x580f=function(_0x5636c7,_0x59b49c){_0x5636c7=_0x5636c7-0x0;let _0x580f5f=_0x59b4[_0x5636c7];return _0x580f5f;};import{Plugin as _0xa0a10}from'ckeditor5/src/core';import{Enter as _0x24ec86}from'ckeditor5/src/enter';import{LiveRange as _0x280430}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xa5c2ec}from'./utils';export default class z extends _0xa0a10{static get[_0x580f('0x9')](){return[_0x24ec86];}[_0x580f('0x15')](){const _0x22b64a=this['editor'],_0x4ec262=_0x22b64a[_0x580f('0x18')][_0x580f('0x1f')]('TrackChangesEditing'),_0xd889=_0x22b64a[_0x580f('0x19')][_0x580f('0x1f')](_0x580f('0x12'));_0x4ec262['enableCommand'](_0x580f('0x12'),()=>{_0x22b64a[_0x580f('0x16')][_0x580f('0xc')](_0x13fec7=>{const _0x5a00c1=_0x22b64a[_0x580f('0x16')]['document'][_0x580f('0xf')],_0x57121f=_0x5a00c1[_0x580f('0x5')](),_0x3844c2=_0x280430[_0x580f('0x1d')](_0x5a00c1['getFirstRange']());if(_0xd889[_0x580f('0x2')](_0x13fec7)){const _0x3bc751=_0x22b64a['model'][_0x580f('0x10')](_0x57121f[_0x580f('0x11')][_0x580f('0x0')],0x0),_0x47d231=_0x13fec7['createRange'](_0x57121f,_0x3bc751);_0x4ec262['markInsertion'](_0x47d231);}else _0x13fec7['setSelection'](_0x13fec7[_0x580f('0x1a')](_0x3844c2['end']));_0x3844c2[_0x580f('0x1')](),_0xd889[_0x580f('0xa')](_0x580f('0x13'),{'writer':_0x13fec7});});}),_0x22b64a[_0x580f('0xe')][_0x580f('0x21')]['on'](_0x580f('0x7'),_0xa5c2ec(_0x22b64a,_0x580f('0x14')),{'priority':_0x580f('0x6')}),_0x22b64a[_0x580f('0xe')][_0x580f('0x21')]['on'](_0x580f('0xd'),(_0x1af01f,_0x460825,_0x4f5f64)=>{const _0xaf94af=_0x4f5f64[_0x580f('0x17')]['markerNameToElements'](_0x460825['markerName']);if(_0xaf94af)for(const _0x53622b of _0xaf94af)_0x53622b[_0x580f('0xb')](_0x580f('0x1e'))&&(_0x4f5f64[_0x580f('0x17')][_0x580f('0x1b')](_0x53622b,_0x460825[_0x580f('0x4')]),_0x4f5f64[_0x580f('0x1c')][_0x580f('0x8')](_0x53622b));},{'priority':_0x580f('0x6')}),_0x22b64a[_0x580f('0x20')][_0x580f('0x21')]['on'](_0x580f('0x7'),(_0x330940,_0x27fc89,_0x4c5cd4)=>{_0x4c5cd4['options']['showSuggestionHighlights']&&_0xa5c2ec(_0x22b64a,'split',{'showActiveMarker':!0x1})[_0x580f('0x3')](this)(_0x330940,_0x27fc89,_0x4c5cd4);},{'priority':'high'});}}
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/findandreplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
-
matchCase?: boolean;
|
|
19
|
-
wholeWords?: boolean;
|
|
20
|
-
}): void;
|
|
21
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/findandreplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
+
matchCase?: boolean;
|
|
19
|
+
wholeWords?: boolean;
|
|
20
|
+
}): void;
|
|
21
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35e8=['getMarkersGroup','editor','model','markers','_isInDeletionRange','FindAndReplaceEditing','filter','suggestion:deletion','end','FindAndReplaceUtils','find','string','findPrevious','createPositionAt','createRange','findNext','afterInit','item','enableCommand','replace','bind','getRange','getIntersection','plugins','handleFindCommand','replaceAll'];(function(_0x234f08,_0x35e863){const _0x5652e8=function(_0x34fc0b){while(--_0x34fc0b){_0x234f08['push'](_0x234f08['shift']());}};_0x5652e8(++_0x35e863);}(_0x35e8,0xf8));const _0x5652=function(_0x234f08,_0x35e863){_0x234f08=_0x234f08-0x0;let _0x5652e8=_0x35e8[_0x234f08];return _0x5652e8;};import{Plugin as _0xe85b8c}from'ckeditor5/src/core';export default class H extends _0xe85b8c{[_0x5652('0x2')](){if(!this[_0x5652('0xd')][_0x5652('0x9')]['has'](_0x5652('0x11')))return;const _0x26f639=this[_0x5652('0xd')][_0x5652('0x9')]['get']('TrackChangesEditing');_0x26f639[_0x5652('0x4')](_0x5652('0x16'),this['handleFindCommand'][_0x5652('0x6')](this)),_0x26f639['enableCommand'](_0x5652('0x1')),_0x26f639[_0x5652('0x4')](_0x5652('0x18')),_0x26f639[_0x5652('0x4')](_0x5652('0x5')),_0x26f639[_0x5652('0x4')](_0x5652('0xb'));}[_0x5652('0xa')](_0x233ebe,_0x5a2206,_0xb113e1={}){const _0x34d35b=this[_0x5652('0xd')][_0x5652('0x9')]['get'](_0x5652('0x15'));void 0x0!==_0xb113e1&&_0x233ebe(_0x306d11=>(_0x5652('0x17')==typeof _0x5a2206?_0x34d35b['findByTextCallback'](_0x5a2206,_0xb113e1):_0x5a2206)(_0x306d11)[_0x5652('0x12')](_0x2d725c=>!0x1===this[_0x5652('0x10')](_0x2d725c,_0x306d11[_0x5652('0x3')])),_0xb113e1);}[_0x5652('0x10')](_0x3d1bfb,_0x54b2d6){const _0x252961=this[_0x5652('0xd')][_0x5652('0xe')][_0x5652('0x0')](this[_0x5652('0xd')][_0x5652('0xe')][_0x5652('0x19')](_0x54b2d6,_0x3d1bfb['start']),this[_0x5652('0xd')][_0x5652('0xe')][_0x5652('0x19')](_0x54b2d6,_0x3d1bfb[_0x5652('0x14')]));for(const _0x539434 of this['editor']['model'][_0x5652('0xf')][_0x5652('0xc')](_0x5652('0x13')))if(null!==_0x252961[_0x5652('0x8')](_0x539434[_0x5652('0x7')]()))return!0x0;return!0x1;}}
|