@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +10 -8
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -12
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -11
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -11
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -11
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -17
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -17
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -17
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -17
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -38
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -391
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -184
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- package/src/utils/utils.js +1 -1
|
@@ -1,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():
|
|
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';
|
|
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
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b41=['*Format:*\x20change\x20table\x20properties','pluginName','registerCustomCallback','model','*Format:*\x20change\x20table\x20cell\x20properties','TablePropertiesEditing','selection','TableUtils','tableCellWidth','tableHeight','commandParams','tableWidth','getSuggestionCallback','document','findAncestor','tableCellBorderStyle','join','editor','batch','plugins','accept','getAttribute','getContainedElement','afterInit','setAttribute','TableCellPropertiesEditing','tableBorderStyle','enqueueChange','formatBlock','tableCellVerticalAlignment','getSelectionAffectedTableCells','tableBackgroundColor','removeAttribute','get','start','subType','registerDescriptionCallback','locale','tableBorderWidth','_handlePropertyChange','getSuggestions','_descriptionFactory','handleSuggestionDescription','tableCellProperties','tableCellHorizontalAlignment','tableBorderColor','has','tableProperties','tableCellBackgroundColor','TrackChangesTableProperties','_getSuggestion','TrackChangesEditing','discard','markBlockFormat','format','_suggestionFactory','getFirstPosition','handleDiscardAction','tableCellBorderColor'];(function(_0x27048e,_0x4b413e){const _0x4144bc=function(_0x3984c9){while(--_0x3984c9){_0x27048e['push'](_0x27048e['shift']());}};_0x4144bc(++_0x4b413e);}(_0x4b41,0x108));const _0x4144=function(_0x27048e,_0x4b413e){_0x27048e=_0x27048e-0x0;let _0x4144bc=_0x4b41[_0x27048e];return _0x4144bc;};import{Plugin as _0x4dbe1e}from'ckeditor5/src/core';import{getTranslation as _0x43e33e}from'../utils/common-translations';export default class Ct extends _0x4dbe1e{constructor(_0x1e1cbe){super(_0x1e1cbe),this[_0x4144('0x13')]=[_0x4144('0x11'),_0x4144('0x39'),_0x4144('0xa'),'tableAlignment',_0x4144('0x2a'),_0x4144('0x28'),_0x4144('0x3')],this[_0x4144('0xf')]=[_0x4144('0x1e'),_0x4144('0x2e'),'tableCellBorderWidth','tableCellPadding',_0x4144('0x27'),'tableCellHeight',_0x4144('0x14'),_0x4144('0x10'),_0x4144('0x1')];}static get[_0x4144('0x20')](){return _0x4144('0x15');}[_0x4144('0x36')](){const _0x1d4b71=this[_0x4144('0x30')][_0x4144('0x32')][_0x4144('0x5')]('TrackChangesEditing');if(this[_0x4144('0x30')][_0x4144('0x32')][_0x4144('0x12')](_0x4144('0x24'))){for(const _0xa02db6 of this[_0x4144('0x13')])_0x1d4b71['enableCommand'](_0xa02db6,(_0x2f4e3f,_0x3a57db)=>{const _0xd42adf=this[_0x4144('0x30')]['model'][_0x4144('0x2c')][_0x4144('0x25')][_0x4144('0x1c')]()[_0x4144('0x2d')]('table');this['_handlePropertyChange'](_0xa02db6,[_0xd42adf],this[_0x4144('0x13')],_0x4144('0x13'),_0x2f4e3f,_0x3a57db);});_0x1d4b71['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4144('0x13'),_0x4144('0x33'),_0x1d4b71['_suggestionFactory'][_0x4144('0x2b')]('formatBlock',null,'discard')),_0x1d4b71[_0x4144('0x1b')]['registerCustomCallback'](_0x4144('0x0'),_0x4144('0x13'),_0x4144('0x18'),(_0x55af32,_0x2de8c4)=>this[_0x4144('0x1d')](this[_0x4144('0x13')],_0x55af32,_0x2de8c4)),_0x1d4b71['_suggestionFactory']['registerCustomCallback'](_0x4144('0x0'),_0x4144('0x13'),_0x4144('0x2f'),()=>!0x1);}if(this[_0x4144('0x30')][_0x4144('0x32')][_0x4144('0x12')](_0x4144('0x38'))){for(const _0x47fde4 of this[_0x4144('0xf')])_0x1d4b71['enableCommand'](_0x47fde4,(_0x2346cb,_0x477541)=>{const _0x1a449a=this[_0x4144('0x30')][_0x4144('0x32')][_0x4144('0x5')](_0x4144('0x26'))[_0x4144('0x2')](this[_0x4144('0x30')][_0x4144('0x22')][_0x4144('0x2c')]['selection']);this[_0x4144('0xb')](_0x47fde4,_0x1a449a,this[_0x4144('0xf')],_0x4144('0xf'),_0x2346cb,_0x477541);});_0x1d4b71[_0x4144('0x1b')][_0x4144('0x21')](_0x4144('0x0'),'tableCellProperties',_0x4144('0x33'),_0x1d4b71['_suggestionFactory'][_0x4144('0x2b')](_0x4144('0x0'),null,_0x4144('0x18'))),_0x1d4b71[_0x4144('0x1b')][_0x4144('0x21')](_0x4144('0x0'),'tableCellProperties','discard',(_0x5500a5,_0x49b41d)=>this['handleDiscardAction'](this[_0x4144('0xf')],_0x5500a5,_0x49b41d)),_0x1d4b71['_suggestionFactory'][_0x4144('0x21')]('formatBlock',_0x4144('0xf'),_0x4144('0x2f'),()=>!0x1);}_0x1d4b71[_0x4144('0xd')][_0x4144('0x8')](_0x87b03c=>this[_0x4144('0xe')](_0x87b03c));}[_0x4144('0xb')](_0x1045ab,_0x5f4714,_0xf01088,_0x477356,_0x49e6f8,_0x1e5a3a){const _0x4fdfb7=this['editor'][_0x4144('0x32')][_0x4144('0x5')](_0x4144('0x17'));this['editor']['model'][_0x4144('0x3a')](_0x1e5a3a[_0x4144('0x31')],()=>{for(const _0x5f476a of _0x5f4714){if(this[_0x4144('0x16')](_0x5f476a,_0x477356))_0x49e6f8(_0x1e5a3a);else{const _0x2f691b={};for(const _0x5dcb5d of _0xf01088){const _0x5362cb=_0x5f476a[_0x4144('0x34')](_0x5dcb5d);void 0x0!==_0x5362cb&&(_0x2f691b[_0x5dcb5d]=_0x5362cb);}_0x49e6f8(_0x1e5a3a),_0x4fdfb7[_0x4144('0x19')](_0x5f476a,{'commandParams':[_0x2f691b]},[],_0x477356);}}});}[_0x4144('0x1d')](_0x2adbe9,_0x29be4a,_0x5660de){const _0x48d0ec=_0x29be4a[0x0][_0x4144('0x6')]['nodeAfter'],_0x2bee4=_0x5660de[_0x4144('0x29')][0x0];this['editor'][_0x4144('0x22')]['change'](_0x342698=>{for(const _0x5e08bd of _0x2adbe9)void 0x0!==_0x2bee4[_0x5e08bd]?_0x342698[_0x4144('0x37')](_0x5e08bd,_0x2bee4[_0x5e08bd],_0x48d0ec):_0x342698[_0x4144('0x4')](_0x5e08bd,_0x48d0ec);});}[_0x4144('0xe')](_0x734db7){if(_0x734db7['data'])switch(_0x734db7[_0x4144('0x7')]){case _0x4144('0x13'):return{'type':'format','content':_0x43e33e(this[_0x4144('0x30')]['locale'],_0x4144('0x1f'))};case _0x4144('0xf'):return{'type':_0x4144('0x1a'),'content':_0x43e33e(this['editor'][_0x4144('0x9')],_0x4144('0x23'))};}}[_0x4144('0x16')](_0x3e339a,_0x5325ac){const _0x7d6262=this[_0x4144('0x30')][_0x4144('0x32')][_0x4144('0x5')](_0x4144('0x17'));for(const _0x2d98cc of _0x7d6262[_0x4144('0xc')]({'skipNotAttached':!0x0})){const _0x4ba5c5=_0x2d98cc[_0x4144('0x35')]();if(_0x2d98cc[_0x4144('0x7')]===_0x5325ac&&_0x4ba5c5===_0x3e339a)return _0x2d98cc;}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';
|
|
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 _0x4f6b=['Template','enableCommand','insertTemplate','has','plugins','afterInit'];(function(_0x1d1424,_0x4f6b5f){const _0x2542c2=function(_0x2bf09c){while(--_0x2bf09c){_0x1d1424['push'](_0x1d1424['shift']());}};_0x2542c2(++_0x4f6b5f);}(_0x4f6b,0xde));const _0x2542=function(_0x1d1424,_0x4f6b5f){_0x1d1424=_0x1d1424-0x0;let _0x2542c2=_0x4f6b[_0x1d1424];return _0x2542c2;};import{Plugin as _0xf9c846}from'ckeditor5/src/core';export default class yt extends _0xf9c846{[_0x2542('0x5')](){const _0x283be9=this['editor'];_0x283be9['plugins'][_0x2542('0x3')](_0x2542('0x0'))&&_0x283be9[_0x2542('0x4')]['get']('TrackChangesEditing')[_0x2542('0x1')](_0x2542('0x2'));}}
|
|
@@ -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';
|
|
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 _0x4e3b=['get','_splitMarkerName','differ','from','isCollapsed','model','suggestion','newRange','document','forward','plugins','TrackChangesEditing','element','removeMarker','afterInit','title-content','nodeBefore','updateMarker','ELEMENT_TITLE','schema','start','createRange','registerPostFixer','editor','_descriptionFactory','getNearestSelectionRange','registerElementLabel','locale','has','getChangedMarkers'];(function(_0x4ae69c,_0x4e3bbc){const _0x18f04e=function(_0x5cc925){while(--_0x5cc925){_0x4ae69c['push'](_0x4ae69c['shift']());}};_0x18f04e(++_0x4e3bbc);}(_0x4e3b,0x19e));const _0x18f0=function(_0x4ae69c,_0x4e3bbc){_0x4ae69c=_0x4ae69c-0x0;let _0x18f04e=_0x4e3b[_0x4ae69c];return _0x18f04e;};import{Plugin as _0x10d532}from'ckeditor5/src/core';import{getTranslation as _0x23c1c5}from'../utils/common-translations';export default class St extends _0x10d532{[_0x18f0('0x14')](){const _0x12af63=this[_0x18f0('0x1d')];if(!_0x12af63['plugins'][_0x18f0('0x4')]('Title'))return;const _0x1a05bd=_0x12af63[_0x18f0('0x10')][_0x18f0('0x6')](_0x18f0('0x11'));_0x1a05bd[_0x18f0('0x0')][_0x18f0('0x2')](_0x18f0('0x15'),()=>_0x23c1c5(_0x12af63[_0x18f0('0x3')],_0x18f0('0x18'))),_0x12af63[_0x18f0('0xb')][_0x18f0('0xe')][_0x18f0('0x1c')](_0xd7fbb0=>{let _0x28f6fa=!0x1;const _0x29bf69=Array[_0x18f0('0x9')](_0x12af63[_0x18f0('0xb')]['document'][_0x18f0('0x8')][_0x18f0('0x5')]());for(const {name:_0x286d11,data:_0x43cbde}of _0x29bf69){const {group:_0x58ec38}=_0x1a05bd[_0x18f0('0x7')](_0x286d11);if(_0x18f0('0xc')!==_0x58ec38||!_0x43cbde[_0x18f0('0xd')])continue;const _0x51d92c=_0x43cbde['newRange'],_0x46aa6e=_0x51d92c['end'][_0x18f0('0x16')];if(!_0x46aa6e||!_0x46aa6e['is'](_0x18f0('0x12'),_0x18f0('0x15')))continue;if(!_0x51d92c[_0x18f0('0x1a')]['isTouching'](_0x51d92c['end']))continue;const _0x4d272e=_0x12af63[_0x18f0('0xb')][_0x18f0('0x19')][_0x18f0('0x1')](_0x51d92c['end'],_0x18f0('0xf'));if(_0x4d272e&&_0x4d272e[_0x18f0('0xa')]){const _0x747e4e=_0xd7fbb0[_0x18f0('0x1b')](_0x51d92c['start'],_0x4d272e[_0x18f0('0x1a')]);_0x747e4e['isEqual'](_0x51d92c)||(_0xd7fbb0[_0x18f0('0x17')](_0x286d11,{'range':_0x747e4e}),_0x28f6fa=!0x0);}_0x28f6fa||(_0xd7fbb0[_0x18f0('0x13')](_0x286d11),_0x28f6fa=!0x0);}return _0x28f6fa;});}}
|
|
@@ -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';
|
|
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 _0x399c=['enableCommand','plugins','TrackChangesEditing','UndoEditing','get','has','editor'];(function(_0x583cf3,_0x399ccb){const _0x47072e=function(_0x2fbc6f){while(--_0x2fbc6f){_0x583cf3['push'](_0x583cf3['shift']());}};_0x47072e(++_0x399ccb);}(_0x399c,0x1d7));const _0x4707=function(_0x583cf3,_0x399ccb){_0x583cf3=_0x583cf3-0x0;let _0x47072e=_0x399c[_0x583cf3];return _0x47072e;};import{Plugin as _0x377b8c}from'ckeditor5/src/core';export default class It extends _0x377b8c{['afterInit'](){const _0x13d899=this[_0x4707('0x4')],_0x749a18=_0x13d899[_0x4707('0x6')][_0x4707('0x2')](_0x4707('0x0'));_0x13d899['plugins'][_0x4707('0x3')](_0x4707('0x1'))&&(_0x749a18[_0x4707('0x5')]('undo'),_0x749a18[_0x4707('0x5')]('redo'));}}
|
|
@@ -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';
|
|
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>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44aa=['writer','hasAttribute','parent','nextSibling','elementEnd','model','isAtEnd','listIndent','name','span','toViewElement','toViewPosition','ck-suggestion-marker-','getWalker','markerName','previousPosition','getItems','bindElementToMarker','schema','activeMarkers','start','consumable','mapper','addHighlight','markerRange','ck-suggestion-marker--active','insert','listItem','isBlock','isContent','push','includes','isLimit','createRangeOn'];(function(_0x2bbc09,_0x44aae5){const _0x1b92c8=function(_0x58ad73){while(--_0x58ad73){_0x2bbc09['push'](_0x2bbc09['shift']());}};_0x1b92c8(++_0x44aae5);}(_0x44aa,0x11b));const _0x1b92=function(_0x2bbc09,_0x44aae5){_0x2bbc09=_0x2bbc09-0x0;let _0x1b92c8=_0x44aa[_0x2bbc09];return _0x1b92c8;};export function getRangesWithAttribute(_0x28f780,_0x5994c1,_0x3322a1){const _0x37990c=[];for(const _0x272dab of _0x5994c1[_0x1b92('0x5')]())_0x272dab[_0x1b92('0x18')](_0x28f780)&&_0x37990c[_0x1b92('0x13')](_0x3322a1[_0x1b92('0x16')](_0x272dab));return _0x37990c;}export function getElementsAffectedByListItemRename(_0x5b63e0){const _0x433f45=[];if(_0x5b63e0['is']('element',_0x1b92('0x10'))){let _0x47cb1f=_0x5b63e0[_0x1b92('0x1a')];for(;_0x47cb1f&&_0x47cb1f['is']('element',_0x1b92('0x10'))&&_0x47cb1f['getAttribute'](_0x1b92('0x1e'))>0x0;)_0x433f45[_0x1b92('0x13')](_0x47cb1f),_0x47cb1f=_0x47cb1f[_0x1b92('0x1a')];}return _0x433f45;}export function downcastSplitMergeMarker(_0x663629,_0x4e0fc4,{showActiveMarker:_0x324f5f=!0x0}={}){const _0x1ba5bc=_0x663629['plugins']['get']('TrackChangesEditing');return(_0x5d597e,_0x464156,_0x78e1bc)=>{if(!_0x78e1bc[_0x1b92('0xa')]['test'](_0x464156['markerRange'],_0x5d597e[_0x1b92('0x1f')]))return;const _0x49b58a=_0x464156[_0x1b92('0xd')][_0x1b92('0x2')](),_0x3233f8=_0x464156['markerRange'][_0x1b92('0x9')],_0x4afcba=_0x663629[_0x1b92('0x1c')][_0x1b92('0x7')];let _0x55a1e8=null,_0x31caf8=null,_0xfad0d2=!0x1,_0x400ad4=!0x1;for(const _0x14e1b9 of _0x49b58a){const _0x35de4d=_0x14e1b9['item'];_0xfad0d2=_0xfad0d2||_0x4afcba[_0x1b92('0x12')](_0x35de4d);const _0x2c9b6d=_0x78e1bc[_0x1b92('0xb')][_0x1b92('0x21')](_0x35de4d);if(_0x2c9b6d&&_0x2c9b6d['getCustomProperty'](_0x1b92('0xc')))return;_0x1b92('0x1b')==_0x14e1b9['type']&&(_0x4afcba[_0x1b92('0x11')](_0x35de4d)&&!_0x4afcba[_0x1b92('0x15')](_0x35de4d)&&(_0x35de4d[_0x1b92('0x1a')]||_0x3233f8[_0x1b92('0x1d')]?_0x55a1e8&&_0x55a1e8[_0x1b92('0x19')]==_0x35de4d||(_0x55a1e8=_0x35de4d,_0x1e67ad(_0x14e1b9[_0x1b92('0x4')]),_0x400ad4=!0x0):_0x31caf8=_0x31caf8||_0x14e1b9[_0x1b92('0x4')]));}function _0x1e67ad(_0x393dbb){const _0x52ad3a=_0x78e1bc[_0x1b92('0x17')]['createUIElement'](_0x1b92('0x20'),{'class':_0x1b92('0x1')+_0x4e0fc4}),_0x255f30=_0x78e1bc[_0x1b92('0xb')][_0x1b92('0x0')](_0x393dbb);_0x324f5f&&_0x1ba5bc[_0x1b92('0x8')][_0x1b92('0x14')](_0x464156['markerName'])&&_0x78e1bc[_0x1b92('0x17')]['addClass'](_0x1b92('0xe'),_0x52ad3a),_0x78e1bc['writer'][_0x1b92('0xf')](_0x255f30,_0x52ad3a),_0x78e1bc[_0x1b92('0xb')][_0x1b92('0x6')](_0x52ad3a,_0x464156[_0x1b92('0x3')]);}_0xfad0d2||_0x400ad4||!_0x31caf8||_0x1e67ad(_0x31caf8);};}
|