@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,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/tableproperties
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
-
import type { Range } from 'ckeditor5/src/engine';
|
|
6
|
-
import type { default as Suggestion } from '../suggestion';
|
|
7
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
8
|
-
/**
|
|
9
|
-
* Provides track changes plugin integration for table properties feature.
|
|
10
|
-
*/
|
|
11
|
-
export default class TrackChangesTableProperties extends Plugin {
|
|
12
|
-
constructor(editor: Editor);
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
static get pluginName(): "TrackChangesTableProperties";
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
afterInit(): void;
|
|
21
|
-
handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
|
|
22
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tableproperties
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
5
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
|
6
|
+
import type { default as Suggestion } from '../suggestion.js';
|
|
7
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
8
|
+
/**
|
|
9
|
+
* Provides track changes plugin integration for table properties feature.
|
|
10
|
+
*/
|
|
11
|
+
export default class TrackChangesTableProperties extends Plugin {
|
|
12
|
+
constructor(editor: Editor);
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "TrackChangesTableProperties";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
afterInit(): void;
|
|
21
|
+
handleDiscardAction(properties: Array<string>, ranges: Array<Range>, data: any): void;
|
|
22
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32ff=['enqueueChange','plugins','tableCellVerticalAlignment','tableCellWidth','change','format','TableUtils','TableCellPropertiesEditing','removeAttribute','data','getSelectionAffectedTableCells','join','tableCellBorderWidth','_getSuggestion','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','tableBorderColor','tableCellBorderColor','commandParams','findAncestor','getSuggestionCallback','model','selection','discard','tableWidth','getContainedElement','tableCellBackgroundColor','enableCommand','document','accept','batch','has','tableCellHorizontalAlignment','tableBorderWidth','locale','tableCellProperties','TablePropertiesEditing','*Format:*\x20change\x20table\x20properties','tableProperties','formatBlock','tableCellBorderStyle','editor','handleDiscardAction','subType','nodeAfter','tableCellHeight','registerDescriptionCallback','get','registerCustomCallback','markBlockFormat','start','_suggestionFactory','tableAlignment','handleSuggestionDescription','afterInit','getAttribute','tableBorderStyle'];(function(_0x2953ff,_0x32ff92){const _0x3dd24d=function(_0x18f75){while(--_0x18f75){_0x2953ff['push'](_0x2953ff['shift']());}};_0x3dd24d(++_0x32ff92);}(_0x32ff,0x111));const _0x3dd2=function(_0x2953ff,_0x32ff92){_0x2953ff=_0x2953ff-0x0;let _0x3dd24d=_0x32ff[_0x2953ff];return _0x3dd24d;};import{Plugin as _0x1d030c}from'ckeditor5/src/core.js';import{getTranslation as _0x1ed207}from'../utils/common-translations.js';export default class At extends _0x1d030c{constructor(_0x59171d){super(_0x59171d),this[_0x3dd2('0x32')]=[_0x3dd2('0x1c'),_0x3dd2('0xb'),_0x3dd2('0x2d'),_0x3dd2('0x7'),_0x3dd2('0x24'),'tableHeight','tableBackgroundColor'],this[_0x3dd2('0x2f')]=[_0x3dd2('0x1d'),_0x3dd2('0x34'),_0x3dd2('0x18'),'tableCellPadding',_0x3dd2('0xf'),_0x3dd2('0x0'),_0x3dd2('0x26'),_0x3dd2('0x2c'),_0x3dd2('0xe')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x3dd2('0x9')](){const _0x52c8db=this['editor']['plugins'][_0x3dd2('0x2')](_0x3dd2('0x1b'));if(this['editor'][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x30'))){for(const _0x1fc81a of this[_0x3dd2('0x32')])_0x52c8db[_0x3dd2('0x27')](_0x1fc81a,(_0x56a89c,_0x18c0cf)=>{const _0x11d1d9=this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]['getFirstPosition']()[_0x3dd2('0x1f')]('table');this['_handlePropertyChange'](_0x1fc81a,[_0x11d1d9],this[_0x3dd2('0x32')],'tableProperties',_0x56a89c,_0x18c0cf);});_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')]('formatBlock',null,_0x3dd2('0x23'))),_0x52c8db['_suggestionFactory']['registerCustomCallback'](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x23'),(_0x886842,_0x45a46c)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x32')],_0x886842,_0x45a46c)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x17'),()=>!0x1);}if(this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x13'))){for(const _0x4a0b64 of this[_0x3dd2('0x2f')])_0x52c8db['enableCommand'](_0x4a0b64,(_0x1373e3,_0x178c7d)=>{const _0x28c52e=this[_0x3dd2('0x35')]['plugins'][_0x3dd2('0x2')](_0x3dd2('0x12'))[_0x3dd2('0x16')](this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]);this['_handlePropertyChange'](_0x4a0b64,_0x28c52e,this['tableCellProperties'],_0x3dd2('0x2f'),_0x1373e3,_0x178c7d);});_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')](_0x3dd2('0x33'),null,_0x3dd2('0x23'))),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x23'),(_0x1b54f7,_0x5dba55)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x2f')],_0x1b54f7,_0x5dba55)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x17'),()=>!0x1);}_0x52c8db['_descriptionFactory'][_0x3dd2('0x1')](_0x5bf3a9=>this[_0x3dd2('0x8')](_0x5bf3a9));}['_handlePropertyChange'](_0x180f7d,_0x3de1b2,_0x67a871,_0x2da29d,_0x4124f8,_0x286251){const _0x444ae5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));this['editor']['model'][_0x3dd2('0xc')](_0x286251[_0x3dd2('0x2a')],()=>{for(const _0x2f076a of _0x3de1b2){if(this['_getSuggestion'](_0x2f076a,_0x2da29d))_0x4124f8(_0x286251);else{const _0xdd942={};for(const _0x45176a of _0x67a871){const _0x22e2db=_0x2f076a[_0x3dd2('0xa')](_0x45176a);void 0x0!==_0x22e2db&&(_0xdd942[_0x45176a]=_0x22e2db);}_0x4124f8(_0x286251),_0x444ae5[_0x3dd2('0x4')](_0x2f076a,{'commandParams':[_0xdd942]},[],_0x2da29d);}}});}[_0x3dd2('0x36')](_0x2d8975,_0x39caee,_0x2b609a){const _0xbb3215=_0x39caee[0x0][_0x3dd2('0x5')][_0x3dd2('0x38')],_0x49ba5a=_0x2b609a[_0x3dd2('0x1e')][0x0];this[_0x3dd2('0x35')][_0x3dd2('0x21')][_0x3dd2('0x10')](_0x17aed5=>{for(const _0x35a85a of _0x2d8975)void 0x0!==_0x49ba5a[_0x35a85a]?_0x17aed5['setAttribute'](_0x35a85a,_0x49ba5a[_0x35a85a],_0xbb3215):_0x17aed5[_0x3dd2('0x14')](_0x35a85a,_0xbb3215);});}[_0x3dd2('0x8')](_0xd3ddc0){if(_0xd3ddc0[_0x3dd2('0x15')])switch(_0xd3ddc0[_0x3dd2('0x37')]){case _0x3dd2('0x32'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')]['locale'],_0x3dd2('0x31'))};case _0x3dd2('0x2f'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')][_0x3dd2('0x2e')],_0x3dd2('0x1a'))};}}[_0x3dd2('0x19')](_0xe5dceb,_0x2b9863){const _0x3cc5f5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));for(const _0x12130e of _0x3cc5f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x43b6e1=_0x12130e[_0x3dd2('0x25')]();if(_0x12130e[_0x3dd2('0x37')]===_0x2b9863&&_0x43b6e1===_0xe5dceb)return _0x12130e;}return null;}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/template
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for template feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesTemplate extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/template
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for template feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTemplate extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf308=['plugins','insertTemplate','has','editor','enableCommand'];(function(_0x45c5cd,_0xf308f7){const _0x4f4ffc=function(_0x53d8c6){while(--_0x53d8c6){_0x45c5cd['push'](_0x45c5cd['shift']());}};_0x4f4ffc(++_0xf308f7);}(_0xf308,0x189));const _0x4f4f=function(_0x45c5cd,_0xf308f7){_0x45c5cd=_0x45c5cd-0x0;let _0x4f4ffc=_0xf308[_0x45c5cd];return _0x4f4ffc;};import{Plugin as _0x11ea80}from'ckeditor5/src/core.js';export default class jt extends _0x11ea80{['afterInit'](){const _0x2ba9ed=this[_0x4f4f('0x0')];_0x2ba9ed[_0x4f4f('0x2')][_0x4f4f('0x4')]('Template')&&_0x2ba9ed[_0x4f4f('0x2')]['get']('TrackChangesEditing')[_0x4f4f('0x1')](_0x4f4f('0x3'));}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/title
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for title feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesTitle extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/title
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for title feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTitle extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45c5=['start','createRange','_splitMarkerName','from','plugins','end','isCollapsed','newRange','document','suggestion','afterInit','forward','removeMarker','ELEMENT_TITLE','title-content','updateMarker','model','differ','isEqual','getChangedMarkers','Title','registerPostFixer','has','_descriptionFactory','getNearestSelectionRange','TrackChangesEditing','element','editor'];(function(_0xaef7c4,_0x45c529){const _0x1baa41=function(_0x4974d7){while(--_0x4974d7){_0xaef7c4['push'](_0xaef7c4['shift']());}};_0x1baa41(++_0x45c529);}(_0x45c5,0x91));const _0x1baa=function(_0xaef7c4,_0x45c529){_0xaef7c4=_0xaef7c4-0x0;let _0x1baa41=_0x45c5[_0xaef7c4];return _0x1baa41;};import{Plugin as _0x71d027}from'ckeditor5/src/core.js';import{getTranslation as _0x2eba42}from'../utils/common-translations.js';export default class bt extends _0x71d027{[_0x1baa('0x5')](){const _0x432c6b=this[_0x1baa('0x16')];if(!_0x432c6b[_0x1baa('0x1b')][_0x1baa('0x11')](_0x1baa('0xf')))return;const _0x3c39c1=_0x432c6b[_0x1baa('0x1b')]['get'](_0x1baa('0x14'));_0x3c39c1[_0x1baa('0x12')]['registerElementLabel'](_0x1baa('0x9'),()=>_0x2eba42(_0x432c6b['locale'],_0x1baa('0x8'))),_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0x10')](_0x2e8af7=>{let _0xa09919=!0x1;const _0x5b7064=Array[_0x1baa('0x1a')](_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0xc')][_0x1baa('0xe')]());for(const {name:_0x31fb5e,data:_0x226c61}of _0x5b7064){const {group:_0x18e7eb}=_0x3c39c1[_0x1baa('0x19')](_0x31fb5e);if(_0x1baa('0x4')!==_0x18e7eb||!_0x226c61[_0x1baa('0x2')])continue;const _0x37bda3=_0x226c61['newRange'],_0x2339b3=_0x37bda3[_0x1baa('0x0')]['nodeBefore'];if(!_0x2339b3||!_0x2339b3['is'](_0x1baa('0x15'),_0x1baa('0x9')))continue;if(!_0x37bda3[_0x1baa('0x17')]['isTouching'](_0x37bda3[_0x1baa('0x0')]))continue;const _0x1ca4a1=_0x432c6b[_0x1baa('0xb')]['schema'][_0x1baa('0x13')](_0x37bda3[_0x1baa('0x0')],_0x1baa('0x6'));if(_0x1ca4a1&&_0x1ca4a1[_0x1baa('0x1')]){const _0x1872a4=_0x2e8af7[_0x1baa('0x18')](_0x37bda3[_0x1baa('0x17')],_0x1ca4a1['start']);_0x1872a4[_0x1baa('0xd')](_0x37bda3)||(_0x2e8af7[_0x1baa('0xa')](_0x31fb5e,{'range':_0x1872a4}),_0xa09919=!0x0);}_0xa09919||(_0x2e8af7[_0x1baa('0x7')](_0x31fb5e),_0xa09919=!0x0);}return _0xa09919;});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/undo
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesUndo extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/undo
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesUndo extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x458a=['enableCommand','afterInit','editor','UndoEditing','TrackChangesEditing','redo','undo','has','plugins','get'];(function(_0x3e110e,_0x458a67){const _0x29bfa3=function(_0x32e646){while(--_0x32e646){_0x3e110e['push'](_0x3e110e['shift']());}};_0x29bfa3(++_0x458a67);}(_0x458a,0x168));const _0x29bf=function(_0x3e110e,_0x458a67){_0x3e110e=_0x3e110e-0x0;let _0x29bfa3=_0x458a[_0x3e110e];return _0x29bfa3;};import{Plugin as _0x4b1596}from'ckeditor5/src/core.js';export default class St extends _0x4b1596{[_0x29bf('0x1')](){const _0xd1994e=this[_0x29bf('0x2')],_0x58bdc9=_0xd1994e[_0x29bf('0x8')][_0x29bf('0x9')](_0x29bf('0x4'));_0xd1994e['plugins'][_0x29bf('0x7')](_0x29bf('0x3'))&&(_0x58bdc9['enableCommand'](_0x29bf('0x6')),_0x58bdc9[_0x29bf('0x0')](_0x29bf('0x5')));}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
2
|
-
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
|
|
3
|
-
import type { GetCallback } from 'ckeditor5/src/utils';
|
|
4
|
-
/**
|
|
5
|
-
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
|
|
8
|
-
/**
|
|
9
|
-
* For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
|
|
12
|
-
/**
|
|
13
|
-
* Returns the conversion function for down-casting split/merge markers.
|
|
14
|
-
*/
|
|
15
|
-
export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
|
|
16
|
-
showActiveMarker?: boolean | undefined;
|
|
17
|
-
}): GetCallback<DowncastAddMarkerEvent>;
|
|
1
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
2
|
+
import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
|
|
3
|
+
import type { GetCallback } from 'ckeditor5/src/utils.js';
|
|
4
|
+
/**
|
|
5
|
+
* Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getRangesWithAttribute(attributeKey: string, range: Range, model: Model): Array<Range>;
|
|
8
|
+
/**
|
|
9
|
+
* For given `element`, if it is a list item, returns all list items that would be affected by renaming `element` to a different element.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getElementsAffectedByListItemRename(element: Element): Array<Element>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the conversion function for down-casting split/merge markers.
|
|
14
|
+
*/
|
|
15
|
+
export declare function downcastSplitMergeMarker(editor: Editor, type: 'split' | 'merge', { showActiveMarker }?: {
|
|
16
|
+
showActiveMarker?: boolean | undefined;
|
|
17
|
+
}): GetCallback<DowncastAddMarkerEvent>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fc6=['nextSibling','listItem','markerName','schema','bindElementToMarker','plugins','item','activeMarkers','listIndent','getItems','TrackChangesEditing','writer','getCustomProperty','name','parent','markerRange','type','insert','hasAttribute','model','addHighlight','createUIElement','start','toViewPosition','element','includes','span','consumable','toViewElement','push','previousPosition','get','mapper'];(function(_0x4ee2d8,_0x1fc6dd){const _0x3b32b0=function(_0x357c4d){while(--_0x357c4d){_0x4ee2d8['push'](_0x4ee2d8['shift']());}};_0x3b32b0(++_0x1fc6dd);}(_0x1fc6,0x1af));const _0x3b32=function(_0x4ee2d8,_0x1fc6dd){_0x4ee2d8=_0x4ee2d8-0x0;let _0x3b32b0=_0x1fc6[_0x4ee2d8];return _0x3b32b0;};export function getRangesWithAttribute(_0x59644b,_0x550c2c,_0x4347ac){const _0x2eceb1=[];for(const _0x1465b8 of _0x550c2c[_0x3b32('0x7')]())_0x1465b8[_0x3b32('0x10')](_0x59644b)&&_0x2eceb1['push'](_0x4347ac['createRangeOn'](_0x1465b8));return _0x2eceb1;}export function getElementsAffectedByListItemRename(_0x3105c5){const _0xab1249=[];if(_0x3105c5['is']('element',_0x3b32('0x20'))){let _0x57fdc3=_0x3105c5[_0x3b32('0x1f')];for(;_0x57fdc3&&_0x57fdc3['is'](_0x3b32('0x16'),_0x3b32('0x20'))&&_0x57fdc3['getAttribute'](_0x3b32('0x6'))>0x0;)_0xab1249[_0x3b32('0x1b')](_0x57fdc3),_0x57fdc3=_0x57fdc3[_0x3b32('0x1f')];}return _0xab1249;}export function downcastSplitMergeMarker(_0x3f44ce,_0x2dbbc3,{showActiveMarker:_0x2ebc90=!0x0}={}){const _0x36bf24=_0x3f44ce[_0x3b32('0x3')][_0x3b32('0x1d')](_0x3b32('0x8'));return(_0x26daab,_0x163a9a,_0x34d6a1)=>{if(!_0x34d6a1[_0x3b32('0x19')]['test'](_0x163a9a['markerRange'],_0x26daab[_0x3b32('0xb')]))return;const _0x1a6b7b=_0x163a9a[_0x3b32('0xd')]['getWalker'](),_0x2ed6f6=_0x163a9a['markerRange'][_0x3b32('0x14')],_0x9fc509=_0x3f44ce[_0x3b32('0x11')][_0x3b32('0x1')];let _0x37f4e1=null,_0x2c855c=null,_0x4fbdbb=!0x1,_0x575a1f=!0x1;for(const _0x3c50b8 of _0x1a6b7b){const _0x5abead=_0x3c50b8[_0x3b32('0x4')];_0x4fbdbb=_0x4fbdbb||_0x9fc509['isContent'](_0x5abead);const _0xd10fc5=_0x34d6a1['mapper'][_0x3b32('0x1a')](_0x5abead);if(_0xd10fc5&&_0xd10fc5[_0x3b32('0xa')](_0x3b32('0x12')))return;'elementEnd'==_0x3c50b8[_0x3b32('0xe')]&&(_0x9fc509['isBlock'](_0x5abead)&&!_0x9fc509['isLimit'](_0x5abead)&&(_0x5abead[_0x3b32('0x1f')]||_0x2ed6f6['isAtEnd']?_0x37f4e1&&_0x37f4e1[_0x3b32('0xc')]==_0x5abead||(_0x37f4e1=_0x5abead,_0x236e4b(_0x3c50b8[_0x3b32('0x1c')]),_0x575a1f=!0x0):_0x2c855c=_0x2c855c||_0x3c50b8[_0x3b32('0x1c')]));}function _0x236e4b(_0x17e1d9){const _0x3b95eb=_0x34d6a1[_0x3b32('0x9')][_0x3b32('0x13')](_0x3b32('0x18'),{'class':'ck-suggestion-marker-'+_0x2dbbc3}),_0x12cf01=_0x34d6a1[_0x3b32('0x1e')][_0x3b32('0x15')](_0x17e1d9);_0x2ebc90&&_0x36bf24[_0x3b32('0x5')][_0x3b32('0x17')](_0x163a9a[_0x3b32('0x0')])&&_0x34d6a1['writer']['addClass']('ck-suggestion-marker--active',_0x3b95eb),_0x34d6a1[_0x3b32('0x9')][_0x3b32('0xf')](_0x12cf01,_0x3b95eb),_0x34d6a1['mapper'][_0x3b32('0x2')](_0x3b95eb,_0x163a9a[_0x3b32('0x0')]);}_0x4fbdbb||_0x575a1f||!_0x2c855c||_0x236e4b(_0x2c855c);};}
|