@ckeditor/ckeditor5-track-changes 36.0.0 → 37.0.0-rc.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/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +10 -0
- package/package.json +21 -6
- package/src/augmentation.d.ts +36 -0
- package/src/augmentation.js +23 -0
- package/src/commands/acceptsuggestioncommand.d.ts +20 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +12 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +11 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.d.ts +13 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +11 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +11 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +17 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +17 -0
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +17 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +17 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.d.ts +13 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -0
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +222 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +53 -0
- package/src/trackchangesconfig.js +23 -0
- package/src/trackchangesdata.d.ts +38 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +391 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -0
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +184 -0
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -0
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5511=['requires','forward','downcastDispatcher','model','plugins','root','get','remove','isCollapsed','deleteForward','start','fromRange','createRange','buffer','unit','enqueueChange','markerName','setSelection','end','commands','uiElement','editor','TrackChangesEditing','editing','modifySelection','lock','markerNameToElements','enableCommand','getFirstRange','merge','writer','addMarker:suggestion:deletion','options','showSuggestionHighlights','$graveyard','removeMarker:suggestion:deletion','high','document','data','rootName','mapper','selection'];(function(_0x3cf715,_0x551151){const _0x4c7488=function(_0x12933b){while(--_0x12933b){_0x3cf715['push'](_0x3cf715['shift']());}};_0x4c7488(++_0x551151);}(_0x5511,0x164));const _0x4c74=function(_0x3cf715,_0x551151){_0x3cf715=_0x3cf715-0x0;let _0x4c7488=_0x5511[_0x3cf715];return _0x4c7488;};import{Plugin as _0xc91df6}from'ckeditor5/src/core';import{LiveRange as _0x133cfe}from'ckeditor5/src/engine';import{Delete as _0x38398d}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0xe10ccc}from'./utils';export default class G extends _0xc91df6{static get[_0x4c74('0x16')](){return[_0x38398d];}['init'](){const _0x55c6c6=this[_0x4c74('0x1')],_0x5c9abe=_0x55c6c6[_0x4c74('0x1a')][_0x4c74('0x1c')](_0x4c74('0x2'));_0x5c9abe[_0x4c74('0x7')]('delete');const _0x2bfb2b=_0x55c6c6[_0x4c74('0x29')][_0x4c74('0x1c')](_0x4c74('0x1f'));_0x5c9abe[_0x4c74('0x7')](_0x4c74('0x1f'),(_0x579d1d,_0x427a7b={})=>{const _0x3dd562=_0x55c6c6[_0x4c74('0x19')]['createSelection'](_0x55c6c6[_0x4c74('0x19')][_0x4c74('0x11')][_0x4c74('0x15')]);_0x3dd562[_0x4c74('0x1e')]&&_0x55c6c6[_0x4c74('0x19')][_0x4c74('0x4')](_0x3dd562,{'direction':_0x4c74('0x17'),'unit':_0x427a7b[_0x4c74('0x24')]});const _0x411f57=_0x3dd562[_0x4c74('0x8')](),_0x48ffaa=_0x133cfe[_0x4c74('0x21')](_0x411f57);let _0x4e4af6;_0x579d1d(_0x427a7b),_0x4e4af6=_0x4c74('0xe')==_0x48ffaa[_0x4c74('0x1b')][_0x4c74('0x13')]?_0x55c6c6['model'][_0x4c74('0x22')](_0x411f57[_0x4c74('0x20')]):_0x55c6c6[_0x4c74('0x19')][_0x4c74('0x22')](_0x48ffaa[_0x4c74('0x20')],_0x48ffaa[_0x4c74('0x28')]),_0x48ffaa['detach'](),_0x55c6c6[_0x4c74('0x19')][_0x4c74('0x25')](_0x2bfb2b[_0x4c74('0x23')]['batch'],_0x3a2501=>{_0x2bfb2b[_0x4c74('0x23')][_0x4c74('0x5')](),_0x3a2501[_0x4c74('0x27')](_0x3a2501['createRange'](_0x4e4af6[_0x4c74('0x28')])),_0x2bfb2b[_0x4c74('0x23')]['unlock']();});}),_0x55c6c6[_0x4c74('0x3')][_0x4c74('0x18')]['on'](_0x4c74('0xb'),_0xe10ccc(_0x55c6c6,_0x4c74('0x9')),{'priority':_0x4c74('0x10')}),_0x55c6c6[_0x4c74('0x12')][_0x4c74('0x18')]['on']('addMarker:suggestion:deletion',(_0x43bb63,_0x2648f6,_0x4c684e)=>{_0x4c684e[_0x4c74('0xc')][_0x4c74('0xd')]&&_0xe10ccc(_0x55c6c6,_0x4c74('0x9'),{'showActiveMarker':!0x1})['bind'](this)(_0x43bb63,_0x2648f6,_0x4c684e);},{'priority':_0x4c74('0x10')}),_0x55c6c6['editing'][_0x4c74('0x18')]['on'](_0x4c74('0xf'),(_0x5e1f18,_0x3013e8,_0x6a5d3f)=>{const _0x100c60=_0x6a5d3f['mapper'][_0x4c74('0x6')](_0x3013e8[_0x4c74('0x26')]);if(_0x100c60)for(const _0x45ca08 of _0x100c60)_0x45ca08['is'](_0x4c74('0x0'))&&(_0x6a5d3f[_0x4c74('0x14')]['unbindElementFromMarkerName'](_0x45ca08,_0x3013e8[_0x4c74('0x26')]),_0x6a5d3f[_0x4c74('0xa')][_0x4c74('0x1d')](_0x45ca08));},{'priority':_0x4c74('0x10')});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/documentlist
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for document list feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesDocumentList extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bd0=['enableCommand','_descriptionFactory','multipleBlocks','schema','getAttribute','format','next','*Outdent:*\x20%0','toUpperCase','after','model','_LIST','bulletedList','listIndent','push','parent','DocumentListEditing','DocumentListUtils','get','add','nextSibling','createPositionAt','has','splitListItemAfter','containsItem','plugins','commandName','refresh','*Format:*\x20remove\x20from\x20%0','ELEMENT_BULLETED_LIST','locale','mergeListItemBackward','mergeListItemForward','hasAttribute','documentList','*Change\x20to:*\x20%0','document','TrackChangesEditing','map','_suggestionFactory','end','listItemId','registerCustomCallback','getRanges','isFirstBlockOfListItem','markBlockFormat','numberedList','ELEMENT_LIST_ITEM','slice','setSelection','*Merge:*\x20%0','*Format:*\x20insert\x20into\x20%0','*Indent:*\x20%0','listType','deletion','indentList','getFirstRange','registerElementLabel','value','markMultiRangeBlockFormat','previousSibling','length','outdentList','change','commandParams','ELEMENT_NUMBERED_LIST','expandListBlocksToCompleteList','commands','accept','nodeAfter','selection','start','forceValue','from','getSelectedBlocks'];(function(_0x2e87cb,_0x2bd039){const _0x57fd8b=function(_0x542efb){while(--_0x542efb){_0x2e87cb['push'](_0x2e87cb['shift']());}};_0x57fd8b(++_0x2bd039);}(_0x2bd0,0x127));const _0x57fd=function(_0x2e87cb,_0x2bd039){_0x2e87cb=_0x2e87cb-0x0;let _0x57fd8b=_0x2bd0[_0x2e87cb];return _0x57fd8b;};import{Plugin as _0x208456}from'ckeditor5/src/core';import{getTranslation as _0x302904}from'../utils/common-translations';import{LiveRange as _0xb38ab6}from'ckeditor5/src/engine';export default class L extends _0x208456{['afterInit'](){const _0x574805=this['editor'];if(!_0x574805[_0x57fd('0x1e')][_0x57fd('0x1b')](_0x57fd('0x15')))return;const _0x1d8e47=_0x574805[_0x57fd('0x23')],_0x4dff1c=_0x574805[_0x57fd('0x1e')][_0x57fd('0x17')](_0x57fd('0x2a')),_0x1c19aa=_0x574805[_0x57fd('0x1e')][_0x57fd('0x17')](_0x57fd('0x16'));function _0x4f579d(_0x4e63a7){return()=>{const _0x47053c=_0x574805[_0x57fd('0x48')][_0x57fd('0x17')](_0x4e63a7);let _0x5285ff=Array[_0x57fd('0x3')](_0x574805['model'][_0x57fd('0x29')][_0x57fd('0x0')][_0x57fd('0x4')]());if(_0x4c1b57(_0x4e63a7)){_0x5285ff=_0x1c19aa[_0x57fd('0x47')](_0x5285ff);const _0x58ab06=[];for(const _0x2bfb61 of _0x5285ff)_0x1c19aa[_0x57fd('0x31')](_0x2bfb61)&&_0x58ab06[_0x57fd('0x13')](_0x2bfb61);_0x5285ff=_0x58ab06;}_0x574805[_0x57fd('0xf')][_0x57fd('0x44')](()=>{_0x4dff1c[_0x57fd('0x40')](_0x5285ff,{'commandName':_0x4e63a7,'commandParams':[{'forceValue':!_0x47053c[_0x57fd('0x3f')]}],'formatGroupId':_0x57fd('0x3a')},[],_0x57fd('0x27'));});};}function _0x4f6951(_0x403195){return()=>{const _0x260bc6=function(_0x4cfe90){let _0x3f4027=Array[_0x57fd('0x3')](_0x4cfe90);const _0xa014f9=_0x3f4027['findIndex'](_0x8e5885=>!_0x8e5885[_0x57fd('0x26')](_0x57fd('0x2e')));return _0xa014f9>-0x1&&(_0x3f4027=_0x3f4027[_0x57fd('0x35')](0x0,_0xa014f9)),_0x3f4027;}(_0x574805[_0x57fd('0xf')][_0x57fd('0x29')]['selection'][_0x57fd('0x4')]()),_0xed52a1=_0x260bc6[_0x260bc6[_0x57fd('0x42')]-0x1],_0x3f7d24=_0x574805['model']['schema']['isObject'](_0xed52a1)?_0x57fd('0xe'):'end',_0x39cbec=_0x574805[_0x57fd('0xf')]['createRange'](_0x574805[_0x57fd('0xf')]['createPositionAt'](_0x260bc6[0x0],'before'),_0x574805['model'][_0x57fd('0x1a')](_0xed52a1,_0x3f7d24));_0x574805['model'][_0x57fd('0x44')](()=>{_0x4dff1c['markBlockFormat'](_0x39cbec,{'commandName':_0x403195,'commandParams':[],'formatGroupId':'listType'},function(_0x44ff93){const _0x148d93=new Set();for(const _0x845e9e of _0x44ff93){let _0x5d9208=_0x845e9e[_0x57fd('0x19')];for(;_0x5d9208&&_0x5d9208[_0x57fd('0x9')]('listIndent')>_0x845e9e[_0x57fd('0x9')](_0x57fd('0x12'));)_0x148d93[_0x57fd('0x18')](_0x5d9208),_0x5d9208=_0x5d9208[_0x57fd('0x19')];}return Array[_0x57fd('0x3')](_0x148d93);}(_0x260bc6));});};}function _0x3bd0bf(_0x37bb62){return()=>{const _0x536991=_0x574805['model'][_0x57fd('0x29')][_0x57fd('0x0')][_0x57fd('0x4')]()[_0x57fd('0xb')]()[_0x57fd('0x3f')],_0x206a56=_0x574805[_0x57fd('0xf')]['createPositionAt'](_0x536991,'before'),_0x474b09=_0x574805[_0x57fd('0xf')][_0x57fd('0x1a')](_0x536991,0x0),_0xd65343=_0x574805[_0x57fd('0xf')]['createRange'](_0x206a56,_0x474b09);_0x574805[_0x57fd('0xf')][_0x57fd('0x44')](()=>{_0x4dff1c[_0x57fd('0x32')](_0xd65343,{'commandName':_0x37bb62,'commandParams':[],'formatGroupId':_0x57fd('0x3a')});});};}function _0x4c1b57(_0x66ce2c){const _0xab7a95=_0x574805[_0x57fd('0x48')][_0x57fd('0x17')](_0x57fd('0x11'))['value'],_0x2befd6=_0x574805['commands'][_0x57fd('0x17')](_0x57fd('0x33'))[_0x57fd('0x3f')];return _0x57fd('0x33')===_0x66ce2c?_0xab7a95:_0x2befd6;}_0x4dff1c['enableCommand'](_0x57fd('0x33'),_0x4f579d('numberedList')),_0x4dff1c[_0x57fd('0x5')](_0x57fd('0x11'),_0x4f579d('bulletedList')),_0x4dff1c[_0x57fd('0x5')](_0x57fd('0x3c'),_0x4f6951(_0x57fd('0x3c'))),_0x4dff1c['enableCommand'](_0x57fd('0x43'),_0x4f6951(_0x57fd('0x43'))),_0x4dff1c[_0x57fd('0x5')](_0x57fd('0x1c'),_0x3bd0bf(_0x57fd('0x1c'))),_0x4dff1c[_0x57fd('0x5')]('splitListItemBefore',_0x3bd0bf('splitListItemBefore')),_0x4dff1c[_0x57fd('0x6')][_0x57fd('0x3e')](function(_0x1b5920){const _0x1d4767=!_0x574805[_0x57fd('0xf')][_0x57fd('0x8')]['isObject'](_0x1b5920),_0x3e4da1=_0x1b5920[_0x57fd('0x41')],_0x2cd388=_0x1b5920[_0x57fd('0x19')],_0x539677=_0x1b5920[_0x57fd('0x9')](_0x57fd('0x2e')),_0x459ac8=!_0x3e4da1||_0x3e4da1[_0x57fd('0x9')](_0x57fd('0x2e'))!==_0x539677,_0x4b809c=!_0x2cd388||_0x2cd388['getAttribute'](_0x57fd('0x2e'))!==_0x539677;return _0x1d4767&&Boolean(_0x539677)&&_0x459ac8&&_0x4b809c;},_0x2a4f98=>_0x302904(_0x1d8e47,_0x57fd('0x34'),_0x2a4f98)),_0x4dff1c[_0x57fd('0x6')]['registerDescriptionCallback'](function(_0x1c76f8){const {data:_0x2609ad}=_0x1c76f8;if(!_0x2609ad)return;let _0x14620d,_0x10b293,_0x2e020a,_0x467981;switch(_0x2609ad[_0x57fd('0x1f')]){case _0x57fd('0x11'):_0x2e020a=_0x2609ad['commandParams'][0x0][_0x57fd('0x2')],_0x467981=_0x4c1b57(_0x2609ad[_0x57fd('0x1f')]),_0x14620d=_0x2e020a?'*Format:*\x20insert\x20into\x20%0':_0x57fd('0x21'),_0x467981&&(_0x14620d=_0x57fd('0x28')),_0x10b293={'type':'format','content':_0x302904(_0x1d8e47,_0x14620d,_0x302904(_0x1d8e47,_0x57fd('0x22')))};break;case _0x57fd('0x33'):_0x2e020a=_0x2609ad['commandParams'][0x0][_0x57fd('0x2')],_0x467981=_0x4c1b57(_0x2609ad[_0x57fd('0x1f')]),_0x14620d=_0x2e020a?_0x57fd('0x38'):'*Format:*\x20remove\x20from\x20%0',_0x467981&&(_0x14620d=_0x57fd('0x28')),_0x10b293={'type':_0x57fd('0xa'),'content':_0x302904(_0x1d8e47,_0x14620d,_0x302904(_0x1d8e47,_0x57fd('0x46')))};break;case _0x57fd('0x3c'):_0x14620d=_0x57fd('0x39'),_0x10b293={'type':_0x57fd('0xa'),'content':_0x302904(_0x1d8e47,_0x14620d,_0x302904(_0x1d8e47,'ELEMENT_LIST_ITEM'))};break;case _0x57fd('0x43'):_0x14620d=function(_0x5c9d71){const _0x3bf4ea=_0x5c9d71[_0x57fd('0x3d')]();let _0x48a95d=_0x3bf4ea[_0x57fd('0x1')][_0x57fd('0x4a')];for(;_0x48a95d&&_0x3bf4ea[_0x57fd('0x1d')](_0x48a95d);){if(_0x48a95d[_0x57fd('0x9')](_0x57fd('0x12'))>0x0)return!0x1;_0x48a95d=_0x48a95d['nextSibling'];}return!0x0;}(_0x1c76f8)?_0x302904(_0x1d8e47,_0x57fd('0x21'),_0x302904(_0x1d8e47,function(_0x47bb2a){const _0x5de653=_0x47bb2a[_0x57fd('0x3d')]()['start']['nodeAfter'];return'ELEMENT_'+_0x5de653[_0x57fd('0x9')]('listType')[_0x57fd('0xd')]()+_0x57fd('0x10');}(_0x1c76f8))):_0x302904(_0x1d8e47,_0x57fd('0xc'),_0x302904(_0x1d8e47,_0x57fd('0x34'))),_0x10b293={'type':_0x57fd('0xa'),'content':_0x14620d};break;case _0x57fd('0x24'):case _0x57fd('0x25'):!0x1===_0x2609ad[_0x57fd('0x7')]&&(_0x14620d=_0x57fd('0x37'),_0x10b293={'type':_0x57fd('0x3b'),'content':_0x302904(_0x1d8e47,_0x14620d,_0x302904(_0x1d8e47,_0x57fd('0x34')))});}return _0x10b293;}),_0x4dff1c[_0x57fd('0x2c')][_0x57fd('0x2f')]('formatBlock',_0x57fd('0x27'),_0x57fd('0x49'),function(_0x1bf438,_0x54753b){const _0x5aa8e3=[];for(let _0x408610 of _0x1bf438)_0x408610[_0x57fd('0x1')][_0x57fd('0x4a')]===_0x408610[_0x57fd('0x2d')][_0x57fd('0x14')]&&(_0x408610=_0x574805[_0x57fd('0xf')]['createRange'](_0x574805['model']['createPositionAt'](_0x408610[_0x57fd('0x1')][_0x57fd('0x4a')],0x0))),_0x5aa8e3[_0x57fd('0x13')](_0x408610);_0x574805[_0x57fd('0xf')][_0x57fd('0x44')](_0x164d70=>{const _0x28ed72=_0x574805[_0x57fd('0xf')][_0x57fd('0x29')]['selection'],_0x31aa7b=Array[_0x57fd('0x3')](_0x28ed72[_0x57fd('0x30')]())[_0x57fd('0x2b')](_0xf34c16=>_0xb38ab6['fromRange'](_0xf34c16));_0x164d70[_0x57fd('0x36')](_0x5aa8e3),_0x574805[_0x57fd('0x48')][_0x57fd('0x17')](_0x54753b[_0x57fd('0x1f')])[_0x57fd('0x20')](),_0x54753b[_0x57fd('0x45')][_0x57fd('0x13')]({'forceDefaultExecution':!0x0}),_0x574805['execute'](_0x54753b[_0x57fd('0x1f')],..._0x54753b['commandParams']),_0x164d70['setSelection'](_0x31aa7b);for(const _0x3abc1f of _0x31aa7b)_0x3abc1f['detach']();});});}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/documentlistproperties
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
afterInit(): void;
|
|
15
|
+
handleListStyleCommand(executeCommand: Function, options?: {
|
|
16
|
+
type?: string | null;
|
|
17
|
+
}): void;
|
|
18
|
+
handleListReversedCommand(executeCommand: Function, options?: {
|
|
19
|
+
reversed?: boolean;
|
|
20
|
+
}): void;
|
|
21
|
+
handleListStartCommand(executeCommand: Function, options?: {
|
|
22
|
+
startIndex?: number;
|
|
23
|
+
}): void;
|
|
24
|
+
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
25
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a54=['afterInit','getListTypeFromListStyleType','list.properties','ELEMENT_','filter','reversed','TrackChangesEditing','startIndex','document','*Format:*\x20set\x20start\x20index\x20to\x20%0','*Format:*\x20set\x20order\x20to\x20regular','bind','listStyle','commandParams','expandListBlocksToCompleteList','isListItemBlock','model','listType','editor','enableCommand','_descriptionFactory','format','has','DocumentListPropertiesEditing','from','isFirstBlockOfListItem','listReversed','_getSuggestionBlocksForListStyle','_LIST_','_getTranslationKeyForListStyle','handleListStyleCommand','_getSuggestionBlocks','config','toUpperCase','*Format:*\x20set\x20order\x20to\x20reversed','push','change','getSelectedBlocks','handleListStartCommand','listStart','selection','length','getAttribute','handleDescriptions','plugins','markMultiRangeBlockFormat','styles','handleListReversedCommand','numbered','DocumentListUtils','locale','get','replace','registerDescriptionCallback'];(function(_0x2e68e7,_0x2a5458){const _0x20e68f=function(_0x150b0f){while(--_0x150b0f){_0x2e68e7['push'](_0x2e68e7['shift']());}};_0x20e68f(++_0x2a5458);}(_0x2a54,0x127));const _0x20e6=function(_0x2e68e7,_0x2a5458){_0x2e68e7=_0x2e68e7-0x0;let _0x20e68f=_0x2a54[_0x2e68e7];return _0x20e68f;};import{Plugin as _0x5d76cc}from'ckeditor5/src/core';import{getTranslation as _0x3fb280}from'../utils/common-translations';export default class St extends _0x5d76cc{[_0x20e6('0x1d')](){if(!this['editor']['plugins'][_0x20e6('0x33')](_0x20e6('0x34')))return;const _0x3e0e79=this['editor'][_0x20e6('0x7')][_0x20e6('0x1a')](_0x20e6('0x1f')),_0x43ab75=this[_0x20e6('0x2f')][_0x20e6('0x13')]['get'](_0x20e6('0x23'));_0x3e0e79[_0x20e6('0x15')]&&_0x43ab75[_0x20e6('0x30')](_0x20e6('0x29'),this[_0x20e6('0x5')][_0x20e6('0x28')](this)),_0x3e0e79[_0x20e6('0x22')]&&_0x43ab75[_0x20e6('0x30')](_0x20e6('0x1'),this[_0x20e6('0x16')][_0x20e6('0x28')](this)),_0x3e0e79['startIndex']&&_0x43ab75['enableCommand'](_0x20e6('0xe'),this[_0x20e6('0xd')]['bind'](this)),_0x43ab75[_0x20e6('0x31')][_0x20e6('0x1c')](this[_0x20e6('0x12')][_0x20e6('0x28')](this));}[_0x20e6('0x5')](_0x1ce8fe,_0x58bb4e={}){const _0x17da87=this[_0x20e6('0x2f')][_0x20e6('0x13')][_0x20e6('0x1a')](_0x20e6('0x23')),_0x51933b=this[_0x20e6('0x2')]();this[_0x20e6('0x2f')][_0x20e6('0x2d')][_0x20e6('0xb')](()=>{_0x17da87[_0x20e6('0x14')](_0x51933b,{'commandName':'listStyle','commandParams':[{'type':_0x58bb4e['type']}],'formatGroupId':_0x20e6('0x29')});});}[_0x20e6('0x16')](_0x3a7226,_0x525559={}){const _0x59a328=this['editor']['plugins'][_0x20e6('0x1a')](_0x20e6('0x23')),_0x5e7782=this[_0x20e6('0x2f')][_0x20e6('0x13')]['get'](_0x20e6('0x18')),_0x45ecea=this[_0x20e6('0x6')](_0x428d14=>_0x5e7782[_0x20e6('0x2c')](_0x428d14)&&_0x20e6('0x17')===_0x428d14['getAttribute']('listType'));null!==_0x45ecea&&this[_0x20e6('0x2f')][_0x20e6('0x2d')][_0x20e6('0xb')](()=>{_0x59a328['markMultiRangeBlockFormat'](_0x45ecea,{'commandName':_0x20e6('0x1'),'commandParams':[{'reversed':_0x525559[_0x20e6('0x22')]}],'formatGroupId':_0x20e6('0x1')});});}[_0x20e6('0xd')](_0x39b275,_0x5c1296={}){const _0x1f9060=this['editor']['plugins'][_0x20e6('0x1a')](_0x20e6('0x23')),_0x4787a1=this[_0x20e6('0x2f')][_0x20e6('0x13')][_0x20e6('0x1a')]('DocumentListUtils'),_0x8f66cb=this[_0x20e6('0x6')](_0x235438=>_0x4787a1[_0x20e6('0x2c')](_0x235438)&&'numbered'===_0x235438[_0x20e6('0x11')](_0x20e6('0x2e')));null!==_0x8f66cb&&this[_0x20e6('0x2f')][_0x20e6('0x2d')][_0x20e6('0xb')](()=>{_0x1f9060[_0x20e6('0x14')](_0x8f66cb,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c1296[_0x20e6('0x24')]}],'formatGroupId':'listStart'});});}[_0x20e6('0x12')](_0x59c086){const _0x4c3fe5=this[_0x20e6('0x2f')][_0x20e6('0x19')],{data:_0x39428f}=_0x59c086;if(!_0x39428f)return;let _0x281a81,_0x28a097;switch(_0x39428f['commandName']){case _0x20e6('0x29'):_0x281a81='*Change\x20to:*\x20%0',_0x28a097={'type':_0x20e6('0x32'),'content':_0x3fb280(_0x4c3fe5,_0x281a81,_0x3fb280(_0x4c3fe5,this[_0x20e6('0x4')](_0x39428f[_0x20e6('0x2a')][0x0]['type'])))};break;case _0x20e6('0x1'):_0x281a81=_0x39428f[_0x20e6('0x2a')][0x0][_0x20e6('0x22')]?_0x20e6('0x9'):_0x20e6('0x27'),_0x28a097={'type':_0x20e6('0x32'),'content':_0x3fb280(_0x4c3fe5,_0x281a81)};break;case _0x20e6('0xe'):_0x281a81=_0x20e6('0x26'),_0x28a097={'type':'format','content':_0x3fb280(_0x4c3fe5,_0x281a81,_0x39428f['commandParams'][0x0]['startIndex'])};}return _0x28a097;}['_getSuggestionBlocksForListStyle'](){const _0x4a97aa=this[_0x20e6('0x2f')][_0x20e6('0x13')][_0x20e6('0x1a')](_0x20e6('0x18'));let _0x38527b=Array[_0x20e6('0x35')](this[_0x20e6('0x2f')][_0x20e6('0x2d')][_0x20e6('0x25')][_0x20e6('0xf')][_0x20e6('0xc')]());return _0x38527b[_0x20e6('0xa')](..._0x4a97aa[_0x20e6('0x2b')](_0x38527b)),_0x38527b=[...new Set(_0x38527b)],_0x38527b;}['_getSuggestionBlocks'](_0x2b3b95){const _0x37b79a=this[_0x20e6('0x2f')]['plugins'][_0x20e6('0x1a')](_0x20e6('0x18'));let _0x5d7738=Array['from'](this[_0x20e6('0x2f')][_0x20e6('0x2d')][_0x20e6('0x25')][_0x20e6('0xf')][_0x20e6('0xc')]())[_0x20e6('0x21')](_0x2b3b95);if(!_0x5d7738[_0x20e6('0x10')])return null;_0x5d7738=_0x37b79a[_0x20e6('0x2b')](_0x5d7738);const _0x7dbf76=[];for(const _0x40390e of _0x5d7738)_0x37b79a[_0x20e6('0x0')](_0x40390e)&&_0x7dbf76['push'](_0x40390e);return _0x7dbf76;}[_0x20e6('0x4')](_0x244e82){return _0x20e6('0x20')+this['editor'][_0x20e6('0x13')][_0x20e6('0x1a')]('DocumentListPropertiesUtils')[_0x20e6('0x1e')](_0x244e82)[_0x20e6('0x8')]()+_0x20e6('0x3')+_0x244e82[_0x20e6('0x8')]()[_0x20e6('0x1b')](/-/g,'_');}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/entercommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesEnterCommand extends Plugin {
|
|
9
|
+
static get requires(): PluginDependencies;
|
|
10
|
+
init(): void;
|
|
11
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e02=['hasClass','enter','TrackChangesEditing','document','ck-suggestion-marker-split','markInsertion','fromRange','detach','removeMarker:suggestion:insertion','get','init','parent','setSelection','bind','high','writer','createRange','addMarker:suggestion:insertion','getFirstRange','unbindElementFromMarkerName','remove','editing','nextSibling','end','data','downcastDispatcher','fire','mapper','markerName','markerNameToElements','commands','enterBlock','createPositionAt','getFirstPosition','model','split'];(function(_0x328e52,_0x1e0281){const _0x110167=function(_0x5251e1){while(--_0x5251e1){_0x328e52['push'](_0x328e52['shift']());}};_0x110167(++_0x1e0281);}(_0x1e02,0x138));const _0x1101=function(_0x328e52,_0x1e0281){_0x328e52=_0x328e52-0x0;let _0x110167=_0x1e02[_0x328e52];return _0x110167;};import{Plugin as _0x5de964}from'ckeditor5/src/core';import{Enter as _0x5a78c1}from'ckeditor5/src/enter';import{LiveRange as _0x3331ca}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x3cdf34}from'./utils';export default class q extends _0x5de964{static get['requires'](){return[_0x5a78c1];}[_0x1101('0x16')](){const _0x546626=this['editor'],_0x12c49b=_0x546626['plugins'][_0x1101('0x15')](_0x1101('0xe')),_0x229f32=_0x546626[_0x1101('0x6')][_0x1101('0x15')]('enter');_0x12c49b['enableCommand'](_0x1101('0xd'),()=>{_0x546626['model']['change'](_0x27085d=>{const _0x1bf17b=_0x546626[_0x1101('0xa')][_0x1101('0xf')]['selection'],_0x55d885=_0x1bf17b[_0x1101('0x9')](),_0x4de46d=_0x3331ca[_0x1101('0x12')](_0x1bf17b[_0x1101('0x1e')]());if(_0x229f32[_0x1101('0x7')](_0x27085d)){const _0x21112b=_0x546626['model'][_0x1101('0x8')](_0x55d885[_0x1101('0x17')][_0x1101('0x22')],0x0),_0x1b6264=_0x27085d[_0x1101('0x1c')](_0x55d885,_0x21112b);_0x12c49b[_0x1101('0x11')](_0x1b6264);}else _0x27085d[_0x1101('0x18')](_0x27085d['createRange'](_0x4de46d[_0x1101('0x23')]));_0x4de46d[_0x1101('0x13')](),_0x229f32[_0x1101('0x2')]('afterExecute',{'writer':_0x27085d});});}),_0x546626['editing'][_0x1101('0x1')]['on'](_0x1101('0x1d'),_0x3cdf34(_0x546626,_0x1101('0xb')),{'priority':'high'}),_0x546626[_0x1101('0x21')][_0x1101('0x1')]['on'](_0x1101('0x14'),(_0x5de552,_0x41023a,_0x1abd09)=>{const _0x4db888=_0x1abd09['mapper'][_0x1101('0x5')](_0x41023a[_0x1101('0x4')]);if(_0x4db888)for(const _0x15516d of _0x4db888)_0x15516d[_0x1101('0xc')](_0x1101('0x10'))&&(_0x1abd09[_0x1101('0x3')][_0x1101('0x1f')](_0x15516d,_0x41023a[_0x1101('0x4')]),_0x1abd09[_0x1101('0x1b')][_0x1101('0x20')](_0x15516d));},{'priority':_0x1101('0x1a')}),_0x546626[_0x1101('0x0')][_0x1101('0x1')]['on'](_0x1101('0x1d'),(_0x3b92b6,_0x538826,_0x43ec36)=>{_0x43ec36['options']['showSuggestionHighlights']&&_0x3cdf34(_0x546626,_0x1101('0xb'),{'showActiveMarker':!0x1})[_0x1101('0x19')](this)(_0x3b92b6,_0x538826,_0x43ec36);},{'priority':'high'});}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/findandreplace
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for find and replace feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFindAndReplace extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
14
|
+
matchCase?: boolean;
|
|
15
|
+
wholeWords?: boolean;
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a29=['bind','replace','findNext','replaceAll','findPrevious','find','start','_isInDeletionRange','getIntersection','model','getMarkersGroup','afterInit','markers','createRange','end','handleFindCommand','createPositionAt','suggestion:deletion','string','enableCommand','item','FindAndReplaceUtils','TrackChangesEditing','plugins','editor','get'];(function(_0x310660,_0x5a29ef){const _0x5e208a=function(_0xb67497){while(--_0xb67497){_0x310660['push'](_0x310660['shift']());}};_0x5e208a(++_0x5a29ef);}(_0x5a29,0x132));const _0x5e20=function(_0x310660,_0x5a29ef){_0x310660=_0x310660-0x0;let _0x5e208a=_0x5a29[_0x310660];return _0x5e208a;};import{Plugin as _0x4b7171}from'ckeditor5/src/core';export default class z extends _0x4b7171{[_0x5e20('0x11')](){if(!this[_0x5e20('0x4')][_0x5e20('0x3')]['has']('FindAndReplaceEditing'))return;const _0x17252e=this[_0x5e20('0x4')][_0x5e20('0x3')]['get'](_0x5e20('0x2'));_0x17252e[_0x5e20('0x19')](_0x5e20('0xb'),this['handleFindCommand'][_0x5e20('0x6')](this)),_0x17252e['enableCommand'](_0x5e20('0x8')),_0x17252e[_0x5e20('0x19')](_0x5e20('0xa')),_0x17252e[_0x5e20('0x19')](_0x5e20('0x7')),_0x17252e[_0x5e20('0x19')](_0x5e20('0x9'));}[_0x5e20('0x15')](_0x32a5ea,_0x4fbabb,_0x44c29c={}){const _0x37c817=this[_0x5e20('0x4')][_0x5e20('0x3')][_0x5e20('0x5')](_0x5e20('0x1'));void 0x0!==_0x44c29c&&_0x32a5ea(_0x28675f=>(_0x5e20('0x18')==typeof _0x4fbabb?_0x37c817['findByTextCallback'](_0x4fbabb,_0x44c29c):_0x4fbabb)(_0x28675f)['filter'](_0x55d031=>!0x1===this[_0x5e20('0xd')](_0x55d031,_0x28675f[_0x5e20('0x0')])),_0x44c29c);}[_0x5e20('0xd')](_0x1c4127,_0x541a54){const _0x29a047=this[_0x5e20('0x4')]['model'][_0x5e20('0x13')](this[_0x5e20('0x4')][_0x5e20('0xf')][_0x5e20('0x16')](_0x541a54,_0x1c4127[_0x5e20('0xc')]),this['editor'][_0x5e20('0xf')]['createPositionAt'](_0x541a54,_0x1c4127[_0x5e20('0x14')]));for(const _0xbbbd3d of this[_0x5e20('0x4')][_0x5e20('0xf')][_0x5e20('0x12')][_0x5e20('0x10')](_0x5e20('0x17')))if(null!==_0x29a047[_0x5e20('0xe')](_0xbbbd3d['getRange']()))return!0x0;return!0x1;}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/font
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for font features.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFont extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b37=['FontFamilyEditing','isCollapsed','*Set\x20font\x20family:*\x20%0','model','*Reset\x20font\x20size*','selection','get','fontColor','config','_enableCommand','fontColor.colors','commandParams','*Reset\x20font\x20background\x20color*','TrackChangesEditing','enableCommand','getRanges','value','registerDescriptionCallback','FontColorEditing','*Set\x20font\x20color:*\x20%0','normalizeSizeOptions','trim','has','from','change','fontBackgroundColor.colors','fontFamily','afterInit','editor','format','fontBackgroundColor','markInlineFormat','FontSizeEditing','*Reset\x20font\x20color*','toLowerCase','fontSize.options','_descriptionFactory','find','commandName','fontSize','plugins','FontSize','document','title','locale','FontBackgroundColorEditing','*Set\x20font\x20size:*\x20%0'];(function(_0x301801,_0x5b37ab){const _0x3293dd=function(_0x255c34){while(--_0x255c34){_0x301801['push'](_0x301801['shift']());}};_0x3293dd(++_0x5b37ab);}(_0x5b37,0x12e));const _0x3293=function(_0x301801,_0x5b37ab){_0x301801=_0x301801-0x0;let _0x3293dd=_0x5b37[_0x301801];return _0x3293dd;};import{Plugin as _0x5e292e}from'ckeditor5/src/core';import{normalizeColorOptions as _0x4eddda}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0xc50b58}from'./utils';import{getTranslation as _0x418c27}from'../utils/common-translations';const Jt=[{'pluginName':_0x3293('0xc'),'commandName':_0x3293('0x13')},{'pluginName':_0x3293('0x1b'),'commandName':_0x3293('0x6')},{'pluginName':_0x3293('0x2d'),'commandName':'fontColor'},{'pluginName':_0x3293('0x19'),'commandName':'fontBackgroundColor'}];export default class H extends _0x5e292e{[_0x3293('0x7')](){const _0x30c059=this[_0x3293('0x8')][_0x3293('0x18')];for(const {pluginName:_0x5a9840,commandName:_0x5301e4}of Jt)this[_0x3293('0x8')]['plugins'][_0x3293('0x2')](_0x5a9840)&&this['_enableCommand'](_0x5301e4);this['editor'][_0x3293('0x14')][_0x3293('0x21')](_0x3293('0x28'))[_0x3293('0x10')][_0x3293('0x2c')](_0x47c23e=>{const _0x5a0cc5=_0x30c059['t'],{data:_0x8db5bd}=_0x47c23e;if(null!=_0x8db5bd){if(_0x3293('0x13')==_0x8db5bd[_0x3293('0x12')]){const _0x60b6a6=_0x8db5bd[_0x3293('0x26')][0x0][_0x3293('0x2b')];if(_0x60b6a6){const _0x4157d3=_0x5a0cc5(this[_0x3293('0x8')][_0x3293('0x14')][_0x3293('0x21')](_0x3293('0x15'))[_0x3293('0x0')](this[_0x3293('0x8')][_0x3293('0x23')]['get'](_0x3293('0xf')))[_0x3293('0x11')](_0x232f33=>_0x232f33[_0x3293('0x1e')]==_0x60b6a6)[_0x3293('0x17')])['toLowerCase']();return{'type':_0x3293('0x9'),'content':_0x418c27(_0x30c059,_0x3293('0x1a'),_0x4157d3)};}return{'type':_0x3293('0x9'),'content':_0x418c27(_0x30c059,_0x3293('0x1f'))};}if(_0x3293('0x6')==_0x8db5bd[_0x3293('0x12')]){const _0x8540cc=_0x8db5bd[_0x3293('0x26')][0x0][_0x3293('0x2b')];return _0x8540cc?{'type':'format','content':_0x418c27(_0x30c059,_0x3293('0x1d'),_0x8540cc)}:{'type':'format','content':_0x418c27(_0x30c059,'*Reset\x20font\x20family*')};}if(_0x3293('0x22')==_0x8db5bd['commandName']){const _0x3a1b54=_0x8db5bd['commandParams'][0x0]['value'];if(_0x3a1b54){const _0x1f6c0e=_0x4eddda(this[_0x3293('0x8')][_0x3293('0x23')]['get'](_0x3293('0x25')))[_0x3293('0x11')](_0x2607a5=>_0x2607a5['model']==_0x3a1b54);let _0x28e394=_0x3a1b54,_0x4f5d7e='';return _0x1f6c0e&&(_0x28e394=_0x1f6c0e['label'],_0x4f5d7e=_0x5a0cc5(_0x28e394)[_0x3293('0xe')]()),{'type':_0x3293('0x9'),'content':_0x418c27(_0x30c059,_0x3293('0x2e'),_0x4f5d7e)[_0x3293('0x1')](),'color':{'value':_0x3a1b54,'title':_0x4f5d7e||_0x28e394}};}return{'type':_0x3293('0x9'),'content':_0x418c27(_0x30c059,_0x3293('0xd'))};}if(_0x3293('0xa')==_0x8db5bd['commandName']){const _0x555384=_0x8db5bd[_0x3293('0x26')][0x0][_0x3293('0x2b')];if(_0x555384){const _0x77f2b4=_0x4eddda(this[_0x3293('0x8')][_0x3293('0x23')][_0x3293('0x21')](_0x3293('0x5')))[_0x3293('0x11')](_0x1d847e=>_0x1d847e['model']==_0x555384);let _0x3e097b=_0x555384,_0x2eeef7='';return _0x77f2b4&&(_0x3e097b=_0x77f2b4['label'],_0x2eeef7=_0x5a0cc5(_0x3e097b)[_0x3293('0xe')]()),{'type':'format','content':_0x418c27(_0x30c059,'*Set\x20font\x20background\x20color:*\x20%0',_0x2eeef7)[_0x3293('0x1')](),'color':{'value':_0x555384,'title':_0x2eeef7||_0x3e097b}};}return{'type':_0x3293('0x9'),'content':_0x418c27(_0x30c059,_0x3293('0x27'))};}}});}[_0x3293('0x24')](_0x295782){const _0x27097f=this[_0x3293('0x8')];_0x27097f[_0x3293('0x14')][_0x3293('0x21')](_0x3293('0x28'))[_0x3293('0x29')](_0x295782,(_0x10bc4d,_0x3e9a91={})=>{const _0x5b69f0=_0x27097f[_0x3293('0x1e')][_0x3293('0x16')][_0x3293('0x20')],_0xedd19c=_0x3e9a91['value'];_0x5b69f0[_0x3293('0x1c')]?_0x10bc4d(_0x3e9a91):_0x27097f['model'][_0x3293('0x4')](()=>{const _0x3dfc23=Array[_0x3293('0x3')](_0x5b69f0[_0x3293('0x2a')]());for(const _0x4190e3 of _0x3dfc23){const _0x255df8=_0xedd19c?[_0x4190e3]:_0xc50b58(_0x295782,_0x4190e3,_0x27097f[_0x3293('0x1e')]);for(const _0x4a10c7 of _0x255df8)_0x27097f[_0x3293('0x14')][_0x3293('0x21')](_0x3293('0x28'))[_0x3293('0xb')](_0x4a10c7,{'commandName':_0x295782,'commandParams':[{'value':_0xedd19c}]});}});});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/heading
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for heading feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHeading extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc426=['get','value','document','commandParams','heading.options','registerDescriptionCallback','filter','afterInit','heading','has','markBlockFormat','title','plugins','from','*Change\x20to:*\x20%0','name','ELEMENT_HEADING_CUSTOM','HeadingEditing','selection','ELEMENT_HEADING','change','enableCommand','config','checkChild','format','getSelectedBlocks','find','blockName','_descriptionFactory','editor','model','parent'];(function(_0x294a70,_0xc4264f){const _0x202e5d=function(_0x59ad7f){while(--_0x59ad7f){_0x294a70['push'](_0x294a70['shift']());}};_0x202e5d(++_0xc4264f);}(_0xc426,0x111));const _0x202e=function(_0x294a70,_0xc4264f){_0x294a70=_0x294a70-0x0;let _0x202e5d=_0xc426[_0x294a70];return _0x202e5d;};import{Plugin as _0x2b3512}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x46483d}from'./utils';import{getTranslation as _0x29d7c2}from'../utils/common-translations';export default class W extends _0x2b3512{[_0x202e('0x16')](){const _0x4d84d1=this['editor'],_0x542b96=_0x4d84d1['locale'],_0x227b52=_0x4d84d1[_0x202e('0x5')]['get'](_0x202e('0x13'));if(!_0x4d84d1[_0x202e('0x1b')][_0x202e('0x18')](_0x202e('0x0')))return;const _0x21a22b=_0x4d84d1[_0x202e('0x1b')][_0x202e('0xf')]('TrackChangesEditing');_0x21a22b[_0x202e('0x4')](_0x202e('0x17'),(_0xe50ecb,_0x3145bc)=>{const _0x3d4573=_0x3145bc[_0x202e('0x10')],_0x28db5f=Array[_0x202e('0x1c')](this[_0x202e('0xc')]['model'][_0x202e('0x11')][_0x202e('0x1')][_0x202e('0x8')]())[_0x202e('0x15')](_0x2b646e=>function(_0x213147,_0x9a5ec9,_0x4dcfb1){return _0x4dcfb1[_0x202e('0x6')](_0x213147[_0x202e('0xe')],_0x9a5ec9)&&!_0x4dcfb1['isObject'](_0x213147)&&_0x213147[_0x202e('0x1e')]!=_0x9a5ec9;}(_0x2b646e,_0x3d4573,this['editor']['model']['schema']));_0x4d84d1[_0x202e('0xd')][_0x202e('0x3')](()=>{for(const _0xf31c16 of _0x28db5f)_0x21a22b[_0x202e('0x19')](_0xf31c16,{'commandName':_0x202e('0x17'),'commandParams':[_0x3145bc],'formatGroupId':_0x202e('0xa')},_0x46483d(_0xf31c16));});});for(const _0x24db90 of _0x227b52)'paragraph'!=_0x24db90[_0x202e('0xd')]&&_0x21a22b[_0x202e('0xb')]['registerElementLabel'](_0x24db90[_0x202e('0xd')],_0x44ba0a=>{const _0x245f1a=Yt(_0x24db90[_0x202e('0xd')]);return null!==_0x245f1a?_0x502790(_0x44ba0a,_0x245f1a):_0x55f248(_0x44ba0a,_0x24db90[_0x202e('0x1a')]);});function _0x502790(_0x149ca1,_0x1714a9){return _0x29d7c2(_0x542b96,_0x202e('0x2'),[_0x149ca1,_0x1714a9]);}function _0x55f248(_0x599dea,_0x5c99f1){return _0x29d7c2(_0x542b96,_0x202e('0x1f'),[_0x599dea,_0x5c99f1]);}_0x21a22b[_0x202e('0xb')][_0x202e('0x14')](_0x285600=>{const {type:_0x20a3dc,data:_0x40bd15}=_0x285600;if('formatBlock'==_0x20a3dc&&_0x40bd15&&'heading'==_0x40bd15['commandName']){const _0x1c82dd=_0x40bd15[_0x202e('0x12')][0x0][_0x202e('0x10')],_0x4e9903=Yt(_0x1c82dd);if(null!==_0x4e9903)return{'type':'format','content':_0x29d7c2(_0x542b96,'*Change\x20to:*\x20%0',_0x502790(0x1,_0x4e9903))};const _0x4b7a63=_0x227b52[_0x202e('0x9')](_0x5b6d0c=>_0x5b6d0c[_0x202e('0xd')]===_0x1c82dd)[_0x202e('0x1a')];return{'type':_0x202e('0x7'),'content':_0x29d7c2(_0x542b96,_0x202e('0x1d'),_0x55f248(0x1,_0x4b7a63))};}});}}function Yt(_0x26f522){const _0x1436cd=_0x26f522['match'](/^heading(\d+)$/);return _0x1436cd?_0x1436cd[0x1]:null;}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/highlight
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for highlight feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHighlight extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29fa=['getLastMatchingPosition','commandName','plugins','HighlightEditing','*Set\x20highlight:*\x20%0','config','formatInline','getFirstPosition','_descriptionFactory','afterInit','markInlineFormat','push','model','getRanges','locale','hasAttribute','change','format','registerDescriptionCallback','getAttribute','highlight.options','value','backward','commandParams','editor','highlight','get','find','has','createRange','toLowerCase','FORMAT_HIGHLIGHT','selection','title'];(function(_0x37f4b2,_0x29faf2){const _0xdd3d70=function(_0x49fc67){while(--_0x49fc67){_0x37f4b2['push'](_0x37f4b2['shift']());}};_0xdd3d70(++_0x29faf2);}(_0x29fa,0x14f));const _0xdd3d=function(_0x37f4b2,_0x29faf2){_0x37f4b2=_0x37f4b2-0x0;let _0xdd3d70=_0x29fa[_0x37f4b2];return _0xdd3d70;};import{Plugin as _0x45b51d}from'ckeditor5/src/core';import{getTranslation as _0x1f1fee}from'../utils/common-translations';import{getRangesWithAttribute as _0x52ab2c}from'./utils';export default class J extends _0x45b51d{[_0xdd3d('0xe')](){const _0xe32e15=this[_0xdd3d('0x1d')];if(!_0xe32e15['plugins'][_0xdd3d('0x21')](_0xdd3d('0x8')))return;const _0xff0eda=_0xe32e15[_0xdd3d('0x7')][_0xdd3d('0x1f')]('TrackChangesEditing');_0xff0eda['enableCommand'](_0xdd3d('0x1e'),(_0xf5bb42,_0x422957={})=>{const _0x1f461a=_0xe32e15[_0xdd3d('0x11')]['document'][_0xdd3d('0x3')],_0x4e6df4=_0x1f461a[_0xdd3d('0x18')]('highlight');let _0x44aee0=_0x422957[_0xdd3d('0x1a')],_0x204f1b=[];if(_0x1f461a['isCollapsed']){const _0x27c0a4=_0x1f461a[_0xdd3d('0xc')]();if(!_0x1f461a[_0xdd3d('0x14')]('highlight'))return void _0xf5bb42(_0x422957);{const _0x27c905=_0x18771c=>_0x18771c['item'][_0xdd3d('0x18')](_0xdd3d('0x1e'))===_0x4e6df4,_0x4ea07d=_0x27c0a4[_0xdd3d('0x5')](_0x27c905,{'direction':_0xdd3d('0x1b')}),_0x51846c=_0x27c0a4['getLastMatchingPosition'](_0x27c905);_0x204f1b=[_0xe32e15[_0xdd3d('0x11')][_0xdd3d('0x0')](_0x4ea07d,_0x51846c)],_0x44aee0==_0x4e6df4&&(_0x44aee0=null);}}else for(const _0x3aba5c of _0x1f461a[_0xdd3d('0x12')]())_0x44aee0?_0x204f1b['push'](_0x3aba5c):_0x204f1b[_0xdd3d('0x10')](..._0x52ab2c(_0xdd3d('0x1e'),_0x3aba5c,_0xe32e15[_0xdd3d('0x11')]));_0xe32e15[_0xdd3d('0x11')][_0xdd3d('0x15')](()=>{for(const _0x3cb73a of _0x204f1b)_0xff0eda[_0xdd3d('0xf')](_0x3cb73a,{'commandName':_0xdd3d('0x1e'),'commandParams':[{'value':_0x44aee0}]});});});const _0x3df193=_0xe32e15[_0xdd3d('0x13')];_0xff0eda[_0xdd3d('0xd')][_0xdd3d('0x17')](_0x206409=>{const {type:_0x52b4b3,data:_0x3b808e}=_0x206409;if(_0xdd3d('0xb')==_0x52b4b3&&_0x3b808e&&_0xdd3d('0x1e')==_0x3b808e[_0xdd3d('0x6')]){const _0x3deb2f=_0x3df193['t'],_0x5becd5=_0x3b808e[_0xdd3d('0x1c')][0x0]['value'];if(_0x5becd5){const _0x44d27d=_0xe32e15[_0xdd3d('0xa')][_0xdd3d('0x1f')](_0xdd3d('0x19'))[_0xdd3d('0x20')](_0x406998=>_0x406998[_0xdd3d('0x11')]==_0x5becd5),_0x5bbc34=_0x3deb2f(_0x44d27d[_0xdd3d('0x4')])[_0xdd3d('0x1')]();return{'type':_0xdd3d('0x16'),'content':_0x1f1fee(_0x3df193,_0xdd3d('0x9'),_0x5bbc34),'color':{'value':_0x44d27d['color'],'title':_0x44d27d['title']}};}return{'type':_0xdd3d('0x16'),'content':_0x1f1fee(_0x3df193,'*Remove\x20highlight*',_0x1f1fee(_0x3df193,_0xdd3d('0x2')))};}});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/horizontalline
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHorizontalLine extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eaf=['has','dataDowncast','createPositionAt','showSuggestionHighlights','insert','enableCommand','editor','conversion','afterInit','createEmptyElement','elementToStructure','ELEMENT_HORIZONTAL_LINE','plugins','get','horizontalLine','TrackChangesEditing','div','createContainerElement'];(function(_0x190566,_0x3eafa6){const _0x385a4c=function(_0x121d43){while(--_0x121d43){_0x190566['push'](_0x190566['shift']());}};_0x385a4c(++_0x3eafa6);}(_0x3eaf,0xcd));const _0x385a=function(_0x190566,_0x3eafa6){_0x190566=_0x190566-0x0;let _0x385a4c=_0x3eaf[_0x190566];return _0x385a4c;};import{Plugin as _0x1cb199}from'ckeditor5/src/core';import{getTranslation as _0x263026}from'../utils/common-translations';export default class K extends _0x1cb199{[_0x385a('0x1')](){const _0x3fe6f0=this[_0x385a('0x11')];if(!_0x3fe6f0[_0x385a('0x5')][_0x385a('0xb')]('HorizontalLineEditing'))return;_0x3fe6f0[_0x385a('0x5')][_0x385a('0x6')](_0x385a('0x8'))[_0x385a('0x10')](_0x385a('0x7'));const _0x55d00d=_0x3fe6f0[_0x385a('0x5')][_0x385a('0x6')](_0x385a('0x8')),_0x111526=_0x3fe6f0['locale'];_0x55d00d['_descriptionFactory']['registerElementLabel'](_0x385a('0x7'),_0x2aa941=>_0x263026(_0x111526,_0x385a('0x4'),_0x2aa941)),_0x3fe6f0[_0x385a('0x0')]['for'](_0x385a('0xc'))[_0x385a('0x3')]({'model':_0x385a('0x7'),'view':(_0x42593b,{writer:_0x2a7023,options:_0x376a64})=>{if(!_0x376a64[_0x385a('0xe')])return null;const _0x42c4e3=_0x2a7023[_0x385a('0xa')](_0x385a('0x9')),_0x731565=_0x2a7023[_0x385a('0x2')]('hr');return _0x2a7023['addClass']('ck-horizontal-line',_0x42c4e3),_0x2a7023[_0x385a('0xf')](_0x2a7023[_0x385a('0xd')](_0x42c4e3,0x0),_0x731565),_0x42c4e3;},'converterPriority':'high'});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/htmlembed
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x339b=['getSelectedElement','value','_descriptionFactory','enableCommand','format','TrackChangesEditing','getCustomProperty','has','document','commandName','registerElementLabel','model','getAttribute','rawHtml','plugins','afterInit','ELEMENT_HTML_EMBED','markBlockFormat','HtmlEmbed','locale','rawHtmlApi','change','registerDescriptionCallback','selection','get'];(function(_0x1adcd9,_0x339b9d){const _0x353416=function(_0x28cd58){while(--_0x28cd58){_0x1adcd9['push'](_0x1adcd9['shift']());}};_0x353416(++_0x339b9d);}(_0x339b,0xd4));const _0x3534=function(_0x1adcd9,_0x339b9d){_0x1adcd9=_0x1adcd9-0x0;let _0x353416=_0x339b[_0x1adcd9];return _0x353416;};import{Plugin as _0x29d963}from'ckeditor5/src/core';import{getTranslation as _0x10607f}from'../utils/common-translations';export default class Q extends _0x29d963{[_0x3534('0x3')](){const _0xbc1353=this['editor'];if(!_0xbc1353[_0x3534('0x2')][_0x3534('0x14')](_0x3534('0x6')))return;const _0x2eb081=_0xbc1353[_0x3534('0x2')][_0x3534('0xc')](_0x3534('0x12')),_0x3cd942=_0xbc1353[_0x3534('0x7')],_0x185b71=_0xbc1353['editing']['view'][_0x3534('0x15')]['selection'];_0x2eb081[_0x3534('0xf')][_0x3534('0x17')](_0x3534('0x1'),_0x2d3811=>_0x10607f(_0x3cd942,_0x3534('0x4'),_0x2d3811)),_0xbc1353[_0x3534('0x2')][_0x3534('0xc')](_0x3534('0x12'))[_0x3534('0x10')]('htmlEmbed',(_0x16cec8,_0x33def8)=>{const _0x123a2e=_0xbc1353[_0x3534('0x18')],_0x365c1d=_0x123a2e['document'][_0x3534('0xb')];_0x123a2e[_0x3534('0x9')](()=>{const _0x49549c=function(_0x5d1e9a){const _0x282357=_0x5d1e9a['getSelectedElement']();if(_0x282357&&_0x282357['is']('element',_0x3534('0x1')))return _0x5d1e9a[_0x3534('0xd')]();return null;}(_0x365c1d);if(!_0x49549c)return void _0x16cec8(null);const _0x506973=_0x49549c[_0x3534('0x0')](_0x3534('0xe'))||'';if(void 0x0===_0x33def8)return;if(_0x33def8===_0x506973)return;_0x2eb081[_0x3534('0x5')](_0x49549c,{'commandName':'htmlEmbed','commandParams':[_0x33def8]}),_0x185b71[_0x3534('0xd')]()[_0x3534('0x13')](_0x3534('0x8'))['cancel']();});}),_0x2eb081[_0x3534('0xf')][_0x3534('0xa')](_0x4d8cdb=>{const {data:_0x1b9e55}=_0x4d8cdb;if(_0x1b9e55&&'htmlEmbed'==_0x1b9e55[_0x3534('0x16')]){const _0x5091e9=_0x10607f(_0x3cd942,_0x3534('0x4'));return{'type':_0x3534('0x11'),'content':_0x10607f(_0x3cd942,'*Change\x20%0\x20content*',_0x5091e9)};}});}}
|