@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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/image
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesImage extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37b3=['getSuggestion','previous','value','getContainedElement','newValue','Inline\x20image\x20to\x20block\x20image','convertInlineImageToBlock','imageStyle','*Set\x20image\x20width:*\x20%0','createRange','forEach','schema','getNearestSelectionRange','newRange','isInlineImage','Block\x20image\x20to\x20inline\x20image','get','formatInline','getSuggestionCallback','has','end','element','isEqual','isInContent','addObject','isCollapsed','*Reset\x20image\x20width*','markInsertion','convertBlockImageToInline','subType','start','isBlockImage','isOwn','registerPostFixer','ELEMENT_CAPTION','discardSuggestion','insertion','ImageResize','chain','detach','normalizedStyles','imageTypeBlock','getFirstRange','ImageEditing','commandReversedParams','ImageInlineEditing','plugins','format','_descriptionFactory','next','toPrevious','getSuggestions','enableCommand','backward','imageCaption','TrackChangesEditing','commandParams','getCaptionFromImageModelElement','document','ELEMENT_IMAGE','nodeBefore','filter','markDeletion','ImageTextAlternativeEditing','editor','differ','name','toLowerCase','commandName','_suggestionFactory','accept','registerCustomCallback','type','model','getChangedMarkers','*Set\x20image\x20text\x20alternative:*\x20%0','FORMAT_SIDE_IMAGE','title','fromPosition','suggestion','ImageBlockEditing','imageBlock','ImageUploadEditing','commands','markBlockFormat','alt','hasSuggestion','registerElementLabel','resizeImage','*Format:*\x20%0','imageStylePostApply','afterInit','registerDescriptionCallback','selection','length','removeObject','isBefore','shouldConvertImageType','Users','getClosestSelectedImageElement','ELEMENT_INLINE_IMAGE','discard','join','refresh','hasAttribute','formatBlock','imageTextAlternative','findIndex','_splitMarkerName','nodeAfter','side','width','ImageCaptionEditing','imageStylePreApply','_findSuggestions','imageTypeInline','from','change','caption','deletion','createRangeOn','head','uploadImage','ImageCaptionUtils','author','ImageStyleEditing','locale'];(function(_0x1e8d8b,_0x37b3a2){const _0x52979f=function(_0x3fbb14){while(--_0x3fbb14){_0x1e8d8b['push'](_0x1e8d8b['shift']());}};_0x52979f(++_0x37b3a2);}(_0x37b3,0xe4));const _0x5297=function(_0x1e8d8b,_0x37b3a2){_0x1e8d8b=_0x1e8d8b-0x0;let _0x52979f=_0x37b3[_0x1e8d8b];return _0x52979f;};import{Plugin as _0x2187cb}from'ckeditor5/src/core';import{LivePosition as _0x4e4a03}from'ckeditor5/src/engine';import{uid as _0x3eb7e0}from'ckeditor5/src/utils';import{getTranslation as _0x408a6d}from'../utils/common-translations';export default class Y extends _0x2187cb{[_0x5297('0x75')](){const _0x3abc47=this[_0x5297('0x5a')];if(!_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x45')))return;const _0x3f89ea=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x51')),_0x51d7a7=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')]('ImageUtils'),_0x2bf3d1={},_0x5d7a22=_0x3abc47[_0x5297('0x19')];if(_0x3f89ea[_0x5297('0x4e')]('insertImage'),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')](_0x5297('0x6b'),_0x20e8e3=>_0x408a6d(_0x5d7a22,_0x5297('0x55'),_0x20e8e3)),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')]('imageInline',_0x1d73a8=>_0x408a6d(_0x5d7a22,_0x5297('0x7e'),_0x1d73a8)),_0x3f89ea[_0x5297('0x4a')]['registerElementLabel']('caption',()=>_0x408a6d(_0x5d7a22,_0x5297('0x3c'))),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x6c'))&&_0x3f89ea['enableCommand'](_0x5297('0x15')),_0x3abc47['plugins'][_0x5297('0x2d')](_0x5297('0x6a'))&&_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x47'))&&(_0x3f89ea['enableCommand'](_0x5297('0xe'),(_0x2be1fb,_0x170126)=>{const _0x404148=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x404148,{'commandName':'imageTypeInline','commandParams':[_0x170126]},[],'convertBlockImageToInline');});}),_0x3f89ea[_0x5297('0x4e')](_0x5297('0x43'),(_0x59276a,_0x5a0dc5)=>{_0x3abc47['model'][_0x5297('0x10')](_0x49e021=>{let _0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x5d87d0=_0x4e4a03[_0x5297('0x68')](_0x3b568d[_0x5297('0x38')],_0x5297('0x4c')),_0x9fa9b=_0x4e4a03[_0x5297('0x68')](_0x3b568d['end'],'toNext');_0x3f89ea['forceDefaultExecution'](()=>_0x59276a(_0x5a0dc5)),_0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x595f7b=_0x49e021[_0x5297('0x23')](_0x5d87d0,_0x9fa9b);_0x5d87d0[_0x5297('0x41')](),_0x9fa9b['detach'](),_0x3f89ea['markBlockFormat'](_0x5f2340,{'commandName':_0x5297('0xe')},[],_0x5297('0x20')),_0x595f7b['start'][_0x5297('0x7a')](_0x3b568d[_0x5297('0x38')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x595f7b['start'],_0x3b568d[_0x5297('0x38')]),_0x5297('0x20')),_0x3b568d['end'][_0x5297('0x7a')](_0x595f7b[_0x5297('0x2e')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x3b568d[_0x5297('0x2e')],_0x595f7b['end']),'convertInlineImageToBlock');});}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),'accept',()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),_0x5297('0x0'),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'',_0x5297('0x60'))),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('insertion',_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x20'),'discard',([_0xd95cf1])=>{const _0x49c301=_0x3f89ea['_suggestionFactory'][_0x5297('0x2c')](_0x5297('0x3e'),'',_0x5297('0x0'));let _0x228f58=_0xd95cf1[_0x5297('0x38')],_0x48655e=_0xd95cf1['end'];const _0x4c7e3d=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x228f58,_0x5297('0x4f')),_0x292f45=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x48655e,'forward');_0x4c7e3d['isCollapsed']&&(_0x228f58=_0x4c7e3d[_0x5297('0x38')]),_0x292f45[_0x5297('0x33')]&&(_0x48655e=_0x292f45[_0x5297('0x2e')]),_0x49c301([_0x3abc47[_0x5297('0x63')][_0x5297('0x23')](_0x228f58,_0x48655e)]);}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x40'),_0x2e0be3),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x3e'),_0x5297('0x20'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0xb'))&&(_0x3f89ea[_0x5297('0x4e')]('toggleImageCaption',(_0x3f0782,_0x49e06b)=>{const _0x4ab62c=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x16'));let _0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x1eff4a=_0x4ab62c['getCaptionFromImageModelElement'](_0x1eca4b);_0x3abc47[_0x5297('0x63')]['change'](()=>{if(_0x1eff4a)return void _0x3f89ea[_0x5297('0x58')](_0x3abc47['model'][_0x5297('0x13')](_0x1eff4a));const _0xad1e6=_0x51d7a7[_0x5297('0x39')](_0x1eca4b);_0x3f0782(_0x49e06b),_0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x1eff4a=_0x4ab62c[_0x5297('0x53')](_0x1eca4b),_0x3f89ea[_0x5297('0x35')](_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x1eff4a),_0xad1e6?null:'imageCaption');});}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x50'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x18'))){_0x3f89ea['enableCommand'](_0x5297('0x21'),(_0x417426,_0x36d117)=>{const _0x3f25a9=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')](_0x5297('0x7c'))['me'],_0x51b23e=_0x3abc47[_0x5297('0x6d')]['get'](_0x5297('0x21'));let _0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0xb9cba5=_0x51b23e[_0x5297('0x1c')];if(_0xb9cba5==_0x36d117[_0x5297('0x1c')])return;const _0x462b18={'commandName':_0x5297('0x21'),'commandParams':[_0x36d117],'formatGroupId':_0x3eb7e0()};_0x3abc47['model'][_0x5297('0x10')](()=>{if(_0x3f89ea[_0x5297('0x4d')]()[_0x5297('0x57')](_0x14e094=>_0x14e094['isInContent']&&_0x3f25a9==_0x14e094[_0x5297('0x17')]&&(_0x5297('0x4')==_0x14e094[_0x5297('0x62')]||_0x5297('0x2b')==_0x14e094['type'])&&('imageStylePreApply'==_0x14e094[_0x5297('0x37')]||_0x5297('0x74')==_0x14e094['subType'])&&_0x14e094[_0x5297('0x44')]()['isEqual'](_0x26a5ed))[_0x5297('0x24')](_0x172dc4=>_0x3f89ea['discardSuggestion'](_0x172dc4[_0x5297('0x14')])),_0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0x51b23e[_0x5297('0x2')](),_0x3abc47['commands'][_0x5297('0x2a')](_0x5297('0xe'))['refresh'](),_0x3abc47['commands']['get'](_0x5297('0x43'))[_0x5297('0x2')](),_0xb9cba5=_0x51b23e[_0x5297('0x1c')],_0xb9cba5!=_0x36d117[_0x5297('0x1c')])return _0x51d7a7[_0x5297('0x28')](_0x5e228b)&&_0x51b23e[_0x5297('0x7b')](_0x36d117[_0x5297('0x1c')],_0x5e228b)?(_0x417426(_0x36d117),_0x5e228b=_0x51d7a7['getClosestSelectedImageElement'](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),void _0x3f89ea[_0x5297('0x6e')](_0x5e228b,{..._0x462b18,'commandReversedParams':[{'value':_0xb9cba5||null}]},[],_0x5297('0xc'))):void(_0x51d7a7[_0x5297('0x39')](_0x5e228b)?_0x3f89ea[_0x5297('0x6e')](_0x5e228b,_0x462b18,[],_0x5297('0x74')):_0x3f89ea['markInlineFormat'](_0x26a5ed,_0x462b18,'imageStylePostApply'));});});for(const _0x55e384 of _0x3abc47['plugins']['get'](_0x5297('0x18'))[_0x5297('0x42')])_0x2bf3d1[_0x55e384[_0x5297('0x5c')]]=_0x55e384[_0x5297('0x67')][_0x5297('0x5d')]();_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x74'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x2b'),'imageStylePostApply',_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback']('formatBlock',_0x5297('0xc'),_0x5297('0x60'),()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('formatBlock','imageStylePreApply',_0x5297('0x0'),(_0x657d73,_0x6e2f98)=>{_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'','accept')(_0x657d73,{'commandName':_0x6e2f98[_0x5297('0x5e')],'commandParams':_0x6e2f98[_0x5297('0x46')]});}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'chain',_0x2e0be3);}const _0x2142cf=[{'type':_0x5297('0x4'),'subType':_0x5297('0xc')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x50')},{'type':_0x5297('0x4'),'subType':_0x5297('0x20')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x20')}];function _0x58c5d2(_0x51afb2,_0x497856){const _0x5bd3c2=_0x2142cf[_0x5297('0x6')](({type:_0x4b624d,subType:_0x46901c})=>_0x51afb2[_0x5297('0x62')]==_0x4b624d&&_0x51afb2['subType']==_0x46901c),_0x4054de=_0x2142cf[_0x5297('0x6')](({type:_0xe4fd2a,subType:_0x3896e8})=>_0x497856['type']==_0xe4fd2a&&_0x497856['subType']==_0x3896e8);if(_0x5bd3c2<0x0||_0x4054de<0x0)return!0x1;const _0x34a278=_0x51afb2['getFirstRange'](),_0x178a02=_0x497856[_0x5297('0x44')]();if((0x0==_0x5bd3c2||0x1==_0x5bd3c2)&&0x2==_0x4054de&&_0x34a278['isIntersecting'](_0x178a02))return!0x0;if(0x2==_0x5bd3c2&&0x3==_0x4054de){const _0x341424=_0x3f89ea[_0x5297('0xd')](_0x34a278,_0x5297('0x3e'))['filter'](({suggestion:_0x51f833,meta:_0x5eb759})=>_0x5eb759[_0x5297('0x3a')]&&_0x5297('0x20')==_0x51f833[_0x5297('0x37')]);if(_0x341424['length']>0x1&&_0x178a02[_0x5297('0x2e')][_0x5297('0x30')](_0x34a278[_0x5297('0x38')]))return!0x0;if(0x1==_0x341424[_0x5297('0x78')]&&(_0x34a278['start'][_0x5297('0x30')](_0x178a02[_0x5297('0x2e')])||_0x34a278[_0x5297('0x2e')][_0x5297('0x30')](_0x178a02[_0x5297('0x38')])))return!0x0;}if(0x3==_0x5bd3c2&&0x3==_0x4054de&&_0x34a278[_0x5297('0x38')][_0x5297('0x7a')](_0x178a02['start'])){const _0x3563be=_0x34a278[_0x5297('0x2e')][_0x5297('0x8')],_0x3b194b=_0x178a02[_0x5297('0x38')][_0x5297('0x56')];return _0x51d7a7[_0x5297('0x39')](_0x3563be)&&_0x3563be===_0x3b194b;}return!0x1;}function _0x2e0be3(_0x3a03bb,_0x51f870){return _0x58c5d2(_0x3a03bb,_0x51f870)?[_0x3a03bb,_0x51f870]:_0x58c5d2(_0x51f870,_0x3a03bb)?[_0x51f870,_0x3a03bb]:null;}_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x3b')](()=>{let _0x187651=!0x1;const _0x111462=Array[_0x5297('0xf')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x5b')][_0x5297('0x64')]());for(const {name:_0x1a4ddd,data:_0x4c271e}of _0x111462){const {group:_0x3dbd0c,type:_0x30c7aa,subType:_0x395dca,id:_0xc2f7d1}=_0x3f89ea[_0x5297('0x7')](_0x1a4ddd);if(_0x5297('0x69')==_0x3dbd0c&&_0x3f89ea[_0x5297('0x70')](_0xc2f7d1)){if('formatBlock'==_0x30c7aa&&('imageStylePreApply'==_0x395dca||_0x5297('0x74')==_0x395dca)){const _0x41c565=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);if(_0x4c271e[_0x5297('0x27')]){const _0x15c4d4=_0x41c565[_0x5297('0x44')]()[_0x5297('0x1d')]();if(_0x51d7a7[_0x5297('0x39')](_0x15c4d4))continue;_0x3f89ea[_0x5297('0x3d')](_0x41c565),_0x187651=!0x0;}}if(_0x5297('0x3e')==_0x30c7aa&&_0x5297('0x50')==_0x395dca&&!_0x4c271e[_0x5297('0x27')]){const _0x18afa7=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);_0x18afa7[_0x5297('0x4b')]&&_0x18afa7[_0x5297('0x4b')][_0x5297('0x31')]&&(_0x3f89ea[_0x5297('0x3d')](_0x18afa7[_0x5297('0x4b')]),_0x187651=!0x0);}}}return _0x187651;}),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x3f'))&&_0x3f89ea[_0x5297('0x4e')]('resizeImage',(_0x187f10,_0x418acd)=>{const _0x320f5c=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']);_0x320f5c['getAttribute'](_0x5297('0xa'))!=_0x418acd['width']&&_0x3abc47[_0x5297('0x63')]['change'](()=>{_0x3f89ea['markBlockFormat'](_0x320f5c,{'commandName':_0x5297('0x72'),'commandParams':[_0x418acd]});});}),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x59'))&&_0x3f89ea[_0x5297('0x4e')](_0x5297('0x5'),(_0x45b43e,_0x3f9bbd)=>{const _0x4a7827=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);(_0x4a7827[_0x5297('0x3')](_0x5297('0x6f'))?_0x4a7827['getAttribute'](_0x5297('0x6f')):'')!=_0x3f9bbd[_0x5297('0x1e')]&&_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x4a7827,{'commandName':_0x5297('0x5'),'commandParams':[_0x3f9bbd]});});}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x23ee04=>{if(!!_0x2142cf['find'](({type:_0x4be72f,subType:_0x485d40})=>_0x23ee04['type']==_0x4be72f&&_0x23ee04[_0x5297('0x37')]==_0x485d40))return _0x23ee04[_0x5297('0x1b')]?{}:void 0x0;}),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x76')](_0x168026=>{if(_0x5297('0x3e')==_0x168026[_0x5297('0x62')]||_0x5297('0x12')==_0x168026[_0x5297('0x62')]){const _0x924c97=_0x168026[_0x5297('0x1d')]();if(_0x924c97&&_0x924c97['is'](_0x5297('0x2f'),_0x5297('0x11')))return{'type':_0x5297('0x3e')==_0x168026[_0x5297('0x62')]?_0x5297('0x32'):_0x5297('0x79'),'element':_0x924c97,'quantity':0x1};}}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x2b603f=>_0x5297('0x4')==_0x2b603f['type']&&_0x5297('0x20')==_0x2b603f['subType']?{'type':_0x5297('0x49'),'content':_0x5297('0x1f')}:'formatBlock'==_0x2b603f[_0x5297('0x62')]&&_0x5297('0x36')==_0x2b603f[_0x5297('0x37')]?{'type':_0x5297('0x49'),'content':_0x5297('0x29')}:void 0x0),_0x3f89ea['_descriptionFactory'][_0x5297('0x76')](_0x2a4a18=>{const {data:_0x4e4cc6}=_0x2a4a18;if(_0x4e4cc6){if(_0x5297('0x21')==_0x4e4cc6[_0x5297('0x5e')]){const _0x49babc=_0x4e4cc6[_0x5297('0x52')][0x0]['value'];return _0x5877cd(_0x5297('0x9')===_0x49babc?_0x408a6d(_0x5d7a22,_0x5297('0x66')):_0x2bf3d1[_0x49babc]||_0x49babc);}if(_0x5297('0x5')==_0x4e4cc6['commandName']){const _0x307c85=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0x1e')];return _0x307c85?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x65'),'\x22'+_0x307c85+'\x22')}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e4cc6[_0x5297('0x5e')]){const _0xec3c1b=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0xa')];return _0xec3c1b?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x22'),_0xec3c1b)}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x34'))};}}function _0x5877cd(_0x292a6d){return{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x73'),_0x292a6d)};}});}}
|
|
23
|
+
const _0x1aa1=['isInContent','enableCommand','getNearestSelectionRange','suggestion','plugins','insertion','imageTypeInline','commandReversedParams','registerDescriptionCallback','forward','resizeImage','chain','newValue','markDeletion','convertInlineImageToBlock','Block\x20image\x20to\x20inline\x20image','_descriptionFactory','detach','refresh','getCaptionFromImageModelElement','ImageTextAlternativeEditing','imageTypeBlock','length','removeObject','name','imageStylePreApply','*Set\x20image\x20width:*\x20%0','toLowerCase','commandParams','alt','get','commandName','filter','document','nodeAfter','has','registerCustomCallback','uploadImage','isCollapsed','find','createRange','ImageCaptionEditing','findIndex','fromPosition','selection','normalizedStyles','join','imageStyle','imageStylePostApply','_splitMarkerName','TrackChangesEditing','backward','value','accept','subType','formatInline','getSuggestions','caption','getSuggestion','convertBlockImageToInline','model','getSuggestionCallback','ImageUploadEditing','_suggestionFactory','discard','createRangeOn','author','ImageInlineEditing','markBlockFormat','width','registerElementLabel','discardSuggestion','getClosestSelectedImageElement','getContainedElement','isOwn','addObject','imageTextAlternative','ImageStyleEditing','ImageBlockEditing','FORMAT_SIDE_IMAGE','ImageUtils','markInsertion','afterInit','imageCaption','previous','forceDefaultExecution','isEqual','type','side','ImageResize','newRange','deletion','isIntersecting','forEach','getFirstRange','hasSuggestion','head','ImageCaptionUtils','formatBlock','getChangedMarkers','shouldConvertImageType','Users','editor','isBlockImage','toggleImageCaption','isInlineImage','locale','*Set\x20image\x20text\x20alternative:*\x20%0','next','commands','*Reset\x20image\x20width*','nodeBefore','start','getAttribute','isBefore','end','Inline\x20image\x20to\x20block\x20image','ELEMENT_IMAGE','element','change','format','_findSuggestions','ImageEditing','schema'];(function(_0xb6bf72,_0x1aa1c6){const _0x26245c=function(_0x34e749){while(--_0x34e749){_0xb6bf72['push'](_0xb6bf72['shift']());}};_0x26245c(++_0x1aa1c6);}(_0x1aa1,0x93));const _0x2624=function(_0xb6bf72,_0x1aa1c6){_0xb6bf72=_0xb6bf72-0x0;let _0x26245c=_0x1aa1[_0xb6bf72];return _0x26245c;};import{Plugin as _0x1a3e62}from'ckeditor5/src/core';import{LivePosition as _0x173916}from'ckeditor5/src/engine';import{uid as _0x552778}from'ckeditor5/src/utils';import{getTranslation as _0x58ce0a}from'../utils/common-translations';export default class V extends _0x1a3e62{[_0x2624('0x3b')](){const _0x48fee5=this[_0x2624('0x4f')];if(!_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x63')))return;const _0x33ca86=_0x48fee5['plugins'][_0x2624('0x7')](_0x2624('0x1b')),_0x44a834=_0x48fee5[_0x2624('0x69')][_0x2624('0x7')](_0x2624('0x39')),_0x36fbc0={},_0x14b55e=_0x48fee5[_0x2624('0x53')];if(_0x33ca86[_0x2624('0x66')]('insertImage'),_0x33ca86[_0x2624('0x75')]['registerElementLabel']('imageBlock',_0x1494fe=>_0x58ce0a(_0x14b55e,_0x2624('0x5e'),_0x1494fe)),_0x33ca86['_descriptionFactory'][_0x2624('0x2f')]('imageInline',_0x1a00e3=>_0x58ce0a(_0x14b55e,'ELEMENT_INLINE_IMAGE',_0x1a00e3)),_0x33ca86['_descriptionFactory'][_0x2624('0x2f')](_0x2624('0x22'),()=>_0x58ce0a(_0x14b55e,'ELEMENT_CAPTION')),_0x48fee5['plugins']['has'](_0x2624('0x27'))&&_0x33ca86['enableCommand'](_0x2624('0xe')),_0x48fee5['plugins'][_0x2624('0xc')](_0x2624('0x37'))&&_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x2c'))&&(_0x33ca86[_0x2624('0x66')](_0x2624('0x6b'),(_0x1c2f16,_0x192989)=>{const _0x5f07e3=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')]['selection']);_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86['markBlockFormat'](_0x5f07e3,{'commandName':_0x2624('0x6b'),'commandParams':[_0x192989]},[],_0x2624('0x24'));});}),_0x33ca86['enableCommand'](_0x2624('0x7a'),(_0x5d8db0,_0x442c03)=>{_0x48fee5['model'][_0x2624('0x60')](_0x300dc6=>{let _0x3fd077=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),_0x4e71ac=_0x300dc6['createRangeOn'](_0x3fd077);const _0x16e0d0=_0x173916['fromPosition'](_0x4e71ac[_0x2624('0x59')],'toPrevious'),_0x1a231c=_0x173916[_0x2624('0x14')](_0x4e71ac[_0x2624('0x5c')],'toNext');_0x33ca86[_0x2624('0x3e')](()=>_0x5d8db0(_0x442c03)),_0x3fd077=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')][_0x2624('0x15')]),_0x4e71ac=_0x300dc6[_0x2624('0x2a')](_0x3fd077);const _0x5c5790=_0x300dc6['createRange'](_0x16e0d0,_0x1a231c);_0x16e0d0[_0x2624('0x76')](),_0x1a231c[_0x2624('0x76')](),_0x33ca86[_0x2624('0x2d')](_0x3fd077,{'commandName':'imageTypeInline','commandParams':[]},[],_0x2624('0x73')),_0x5c5790[_0x2624('0x59')]['isBefore'](_0x4e71ac['start'])&&_0x33ca86['markInsertion'](_0x300dc6['createRange'](_0x5c5790[_0x2624('0x59')],_0x4e71ac[_0x2624('0x59')]),_0x2624('0x73')),_0x4e71ac[_0x2624('0x5c')]['isBefore'](_0x5c5790[_0x2624('0x5c')])&&_0x33ca86[_0x2624('0x3a')](_0x300dc6[_0x2624('0x11')](_0x4e71ac[_0x2624('0x5c')],_0x5c5790[_0x2624('0x5c')]),_0x2624('0x73'));});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')]('formatBlock','convertInlineImageToBlock',_0x2624('0x1e'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),'discard',_0x33ca86[_0x2624('0x28')][_0x2624('0x26')](_0x2624('0x4b'),'',_0x2624('0x1e'))),_0x33ca86[_0x2624('0x28')]['registerCustomCallback'](_0x2624('0x6a'),_0x2624('0x73'),_0x2624('0x17'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x6a'),_0x2624('0x73'),'discard',([_0x3734e7])=>{const _0x25034e=_0x33ca86[_0x2624('0x28')][_0x2624('0x26')](_0x2624('0x6a'),'','discard');let _0x4b2e9b=_0x3734e7['start'],_0x59f780=_0x3734e7['end'];const _0x28ffe1=_0x48fee5['model'][_0x2624('0x64')]['getNearestSelectionRange'](_0x4b2e9b,_0x2624('0x1c')),_0x5d3be3=_0x48fee5[_0x2624('0x25')]['schema'][_0x2624('0x67')](_0x59f780,_0x2624('0x6e'));_0x28ffe1[_0x2624('0xf')]&&(_0x4b2e9b=_0x28ffe1[_0x2624('0x59')]),_0x5d3be3[_0x2624('0xf')]&&(_0x59f780=_0x5d3be3[_0x2624('0x5c')]),_0x25034e([_0x48fee5[_0x2624('0x25')]['createRange'](_0x4b2e9b,_0x59f780)]);}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x73'),_0x2624('0x70'),_0x3e1e72),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x6a'),_0x2624('0x73'),_0x2624('0x70'),_0x3e1e72)),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x12'))&&(_0x33ca86['enableCommand'](_0x2624('0x51'),(_0x40f73c,_0x321f41)=>{const _0x141583=_0x48fee5['plugins'][_0x2624('0x7')](_0x2624('0x4a'));let _0x1e4078=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),_0x2164c5=_0x141583[_0x2624('0x78')](_0x1e4078);_0x48fee5[_0x2624('0x25')]['change'](()=>{if(_0x2164c5)return void _0x33ca86[_0x2624('0x72')](_0x48fee5[_0x2624('0x25')][_0x2624('0x2a')](_0x2164c5));const _0x3ea261=_0x44a834[_0x2624('0x50')](_0x1e4078);_0x40f73c(_0x321f41),_0x1e4078=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')]['selection']),_0x2164c5=_0x141583[_0x2624('0x78')](_0x1e4078),_0x33ca86[_0x2624('0x3a')](_0x48fee5[_0x2624('0x25')][_0x2624('0x2a')](_0x2164c5),_0x3ea261?null:'imageCaption');});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x6a'),'imageCaption',_0x2624('0x70'),_0x3e1e72)),_0x48fee5[_0x2624('0x69')]['has'](_0x2624('0x36'))){_0x33ca86[_0x2624('0x66')]('imageStyle',(_0xb84e2a,_0x29fab2)=>{const _0x50bd74=_0x48fee5[_0x2624('0x69')]['get'](_0x2624('0x4e'))['me'],_0xe76c62=_0x48fee5['commands']['get'](_0x2624('0x18'));let _0x1d3b20=_0x44a834[_0x2624('0x31')](_0x48fee5['model'][_0x2624('0xa')][_0x2624('0x15')]),_0x2fb1b8=_0x48fee5['model']['createRangeOn'](_0x1d3b20),_0x9a935b=_0xe76c62[_0x2624('0x1d')];if(_0x9a935b==_0x29fab2[_0x2624('0x1d')])return;const _0x1a3d78={'commandName':_0x2624('0x18'),'commandParams':[_0x29fab2],'formatGroupId':_0x552778()};_0x48fee5[_0x2624('0x25')]['change'](()=>{if(_0x33ca86[_0x2624('0x21')]()[_0x2624('0x9')](_0x142a00=>_0x142a00[_0x2624('0x65')]&&_0x50bd74==_0x142a00[_0x2624('0x2b')]&&('formatBlock'==_0x142a00[_0x2624('0x40')]||_0x2624('0x20')==_0x142a00[_0x2624('0x40')])&&(_0x2624('0x2')==_0x142a00['subType']||_0x2624('0x19')==_0x142a00[_0x2624('0x1f')])&&_0x142a00['getFirstRange']()[_0x2624('0x3f')](_0x2fb1b8))[_0x2624('0x46')](_0x389de2=>_0x33ca86[_0x2624('0x30')](_0x389de2[_0x2624('0x49')])),_0x1d3b20=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')]['document'][_0x2624('0x15')]),_0x2fb1b8=_0x48fee5['model'][_0x2624('0x2a')](_0x1d3b20),_0xe76c62['refresh'](),_0x48fee5[_0x2624('0x56')][_0x2624('0x7')](_0x2624('0x6b'))[_0x2624('0x77')](),_0x48fee5[_0x2624('0x56')][_0x2624('0x7')](_0x2624('0x7a'))[_0x2624('0x77')](),_0x9a935b=_0xe76c62[_0x2624('0x1d')],_0x9a935b!=_0x29fab2[_0x2624('0x1d')])return _0x44a834[_0x2624('0x52')](_0x1d3b20)&&_0xe76c62[_0x2624('0x4d')](_0x29fab2[_0x2624('0x1d')],_0x1d3b20)?(_0xb84e2a(_0x29fab2),_0x1d3b20=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]),void _0x33ca86[_0x2624('0x2d')](_0x1d3b20,{..._0x1a3d78,'commandReversedParams':[{'value':_0x9a935b||null}]},[],_0x2624('0x2'))):void(_0x44a834[_0x2624('0x50')](_0x1d3b20)?_0x33ca86[_0x2624('0x2d')](_0x1d3b20,_0x1a3d78,[],'imageStylePostApply'):_0x33ca86['markInlineFormat'](_0x2fb1b8,_0x1a3d78,_0x2624('0x19')));});});for(const _0xea7848 of _0x48fee5[_0x2624('0x69')][_0x2624('0x7')](_0x2624('0x36'))[_0x2624('0x16')])_0x36fbc0[_0xea7848[_0x2624('0x1')]]=_0xea7848['title'][_0x2624('0x4')]();_0x33ca86[_0x2624('0x28')]['registerCustomCallback'](_0x2624('0x4b'),'imageStylePreApply',_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x19'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x20'),_0x2624('0x19'),_0x2624('0x17'),()=>{}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x1e'),()=>{}),_0x33ca86['_suggestionFactory'][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x29'),(_0x5d16ce,_0x2dc378)=>{_0x33ca86['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x2624('0x1e'))(_0x5d16ce,{'commandName':_0x2dc378[_0x2624('0x8')],'commandParams':_0x2dc378[_0x2624('0x6c')]});}),_0x33ca86[_0x2624('0x28')][_0x2624('0xd')](_0x2624('0x4b'),_0x2624('0x2'),_0x2624('0x70'),_0x3e1e72);}const _0x3b954f=[{'type':'formatBlock','subType':_0x2624('0x2')},{'type':_0x2624('0x6a'),'subType':_0x2624('0x3c')},{'type':'formatBlock','subType':_0x2624('0x73')},{'type':_0x2624('0x6a'),'subType':_0x2624('0x73')}];function _0x89d3ed(_0x42a30a,_0x34d072){const _0x104348=_0x3b954f[_0x2624('0x13')](({type:_0x3d8c2b,subType:_0x11c1c0})=>_0x42a30a[_0x2624('0x40')]==_0x3d8c2b&&_0x42a30a[_0x2624('0x1f')]==_0x11c1c0),_0x3c829d=_0x3b954f[_0x2624('0x13')](({type:_0x391a0b,subType:_0x5b1e02})=>_0x34d072[_0x2624('0x40')]==_0x391a0b&&_0x34d072[_0x2624('0x1f')]==_0x5b1e02);if(_0x104348<0x0||_0x3c829d<0x0)return!0x1;const _0x1e63be=_0x42a30a[_0x2624('0x47')](),_0x3d249c=_0x34d072['getFirstRange']();if((0x0==_0x104348||0x1==_0x104348)&&0x2==_0x3c829d&&_0x1e63be[_0x2624('0x45')](_0x3d249c))return!0x0;if(0x2==_0x104348&&0x3==_0x3c829d){const _0x198440=_0x33ca86[_0x2624('0x62')](_0x1e63be,_0x2624('0x6a'))[_0x2624('0x9')](({suggestion:_0x1ac376,meta:_0x1d17f0})=>_0x1d17f0[_0x2624('0x33')]&&_0x2624('0x73')==_0x1ac376[_0x2624('0x1f')]);if(_0x198440['length']>0x1&&_0x3d249c[_0x2624('0x5c')]['isEqual'](_0x1e63be['start']))return!0x0;if(0x1==_0x198440[_0x2624('0x7b')]&&(_0x1e63be['start'][_0x2624('0x3f')](_0x3d249c[_0x2624('0x5c')])||_0x1e63be['end'][_0x2624('0x3f')](_0x3d249c[_0x2624('0x59')])))return!0x0;}if(0x3==_0x104348&&0x3==_0x3c829d&&_0x1e63be['start'][_0x2624('0x5b')](_0x3d249c[_0x2624('0x59')])){const _0x516c20=_0x1e63be['end'][_0x2624('0xb')],_0x5e6c31=_0x3d249c[_0x2624('0x59')][_0x2624('0x58')];return _0x44a834['isBlockImage'](_0x516c20)&&_0x516c20===_0x5e6c31;}return!0x1;}function _0x3e1e72(_0x9ad86a,_0x2fcb6f){return _0x89d3ed(_0x9ad86a,_0x2fcb6f)?[_0x9ad86a,_0x2fcb6f]:_0x89d3ed(_0x2fcb6f,_0x9ad86a)?[_0x2fcb6f,_0x9ad86a]:null;}_0x48fee5[_0x2624('0x25')]['document']['registerPostFixer'](()=>{let _0x1d8bf0=!0x1;const _0x32268a=Array['from'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')]['differ'][_0x2624('0x4c')]());for(const {name:_0x3162ad,data:_0x349e59}of _0x32268a){const {group:_0x1f8700,type:_0x5d8a78,subType:_0x8d65ac,id:_0x3fedec}=_0x33ca86[_0x2624('0x1a')](_0x3162ad);if(_0x2624('0x68')==_0x1f8700&&_0x33ca86[_0x2624('0x48')](_0x3fedec)){if(_0x2624('0x4b')==_0x5d8a78&&(_0x2624('0x2')==_0x8d65ac||_0x2624('0x19')==_0x8d65ac)){const _0x2f1628=_0x33ca86[_0x2624('0x23')](_0x3fedec);if(_0x349e59[_0x2624('0x43')]){const _0x82c1e4=_0x2f1628[_0x2624('0x47')]()['getContainedElement']();if(_0x44a834['isBlockImage'](_0x82c1e4))continue;_0x33ca86[_0x2624('0x30')](_0x2f1628),_0x1d8bf0=!0x0;}}if(_0x2624('0x6a')==_0x5d8a78&&'imageCaption'==_0x8d65ac&&!_0x349e59[_0x2624('0x43')]){const _0x25b524=_0x33ca86['getSuggestion'](_0x3fedec);_0x25b524['next']&&_0x25b524[_0x2624('0x55')][_0x2624('0x65')]&&(_0x33ca86['discardSuggestion'](_0x25b524[_0x2624('0x55')]),_0x1d8bf0=!0x0);}}}return _0x1d8bf0;}),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x42'))&&_0x33ca86['enableCommand'](_0x2624('0x6f'),(_0x2821ff,_0x1d6831)=>{const _0x5c73b4=_0x44a834[_0x2624('0x31')](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]);_0x5c73b4[_0x2624('0x5a')](_0x2624('0x2e'))!=_0x1d6831[_0x2624('0x2e')]&&_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86[_0x2624('0x2d')](_0x5c73b4,{'commandName':_0x2624('0x6f'),'commandParams':[_0x1d6831]});});}),_0x48fee5[_0x2624('0x69')][_0x2624('0xc')](_0x2624('0x79'))&&_0x33ca86[_0x2624('0x66')](_0x2624('0x35'),(_0x5a9cf2,_0x255906)=>{const _0x1d535b=_0x44a834['getClosestSelectedImageElement'](_0x48fee5[_0x2624('0x25')][_0x2624('0xa')][_0x2624('0x15')]);(_0x1d535b['hasAttribute'](_0x2624('0x6'))?_0x1d535b['getAttribute'](_0x2624('0x6')):'')!=_0x255906[_0x2624('0x71')]&&_0x48fee5[_0x2624('0x25')][_0x2624('0x60')](()=>{_0x33ca86['markBlockFormat'](_0x1d535b,{'commandName':_0x2624('0x35'),'commandParams':[_0x255906]});});}),_0x33ca86[_0x2624('0x75')]['registerDescriptionCallback'](_0x22b896=>{if(!!_0x3b954f[_0x2624('0x10')](({type:_0x4659b2,subType:_0x548a95})=>_0x22b896[_0x2624('0x40')]==_0x4659b2&&_0x22b896[_0x2624('0x1f')]==_0x548a95))return _0x22b896[_0x2624('0x3d')]?{}:void 0x0;}),_0x33ca86['_descriptionFactory'][_0x2624('0x6d')](_0x276064=>{if(_0x2624('0x6a')==_0x276064[_0x2624('0x40')]||_0x2624('0x44')==_0x276064[_0x2624('0x40')]){const _0x4df61a=_0x276064[_0x2624('0x32')]();if(_0x4df61a&&_0x4df61a['is'](_0x2624('0x5f'),_0x2624('0x22')))return{'type':_0x2624('0x6a')==_0x276064[_0x2624('0x40')]?_0x2624('0x34'):_0x2624('0x0'),'element':_0x4df61a,'quantity':0x1};}}),_0x33ca86['_descriptionFactory'][_0x2624('0x6d')](_0x171d7e=>_0x2624('0x4b')==_0x171d7e[_0x2624('0x40')]&&'convertInlineImageToBlock'==_0x171d7e['subType']?{'type':_0x2624('0x61'),'content':_0x2624('0x5d')}:_0x2624('0x4b')==_0x171d7e['type']&&_0x2624('0x24')==_0x171d7e[_0x2624('0x1f')]?{'type':'format','content':_0x2624('0x74')}:void 0x0),_0x33ca86[_0x2624('0x75')][_0x2624('0x6d')](_0xfa55c0=>{const {data:_0x35f43c}=_0xfa55c0;if(_0x35f43c){if(_0x2624('0x18')==_0x35f43c[_0x2624('0x8')]){const _0x3cca0e=_0x35f43c[_0x2624('0x5')][0x0][_0x2624('0x1d')];return _0x4698e7(_0x2624('0x41')===_0x3cca0e?_0x58ce0a(_0x14b55e,_0x2624('0x38')):_0x36fbc0[_0x3cca0e]||_0x3cca0e);}if(_0x2624('0x35')==_0x35f43c[_0x2624('0x8')]){const _0x5bd68f=_0x35f43c[_0x2624('0x5')][0x0][_0x2624('0x71')];return _0x5bd68f?{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,_0x2624('0x54'),'\x22'+_0x5bd68f+'\x22')}:{'type':'format','content':_0x58ce0a(_0x14b55e,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2624('0x6f')==_0x35f43c['commandName']){const _0x1fe59b=_0x35f43c['commandParams'][0x0]['width'];return _0x1fe59b?{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,_0x2624('0x3'),_0x1fe59b)}:{'type':'format','content':_0x58ce0a(_0x14b55e,_0x2624('0x57'))};}}function _0x4698e7(_0x451fd6){return{'type':_0x2624('0x61'),'content':_0x58ce0a(_0x14b55e,'*Format:*\x20%0',_0x451fd6)};}});}}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/imagereplace
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import type Suggestion from '../suggestion';
|
|
6
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for image replace feature.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesImageReplace extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
afterInit(): void;
|
|
15
|
+
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
16
|
+
source: string;
|
|
17
|
+
}): void;
|
|
18
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
19
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3154=['accept','getSuggestionCallback','model','getSuggestions','getSelectedElement','change','replaceImageSource','source','discard','selection','getContainedElement','TrackChangesEditing','format','src','handleReplaceImageCommand','registerDescriptionCallback','commandParams','document','_descriptionFactory','data','markBlockFormat','*Format:*\x20replace\x20image\x20URL','plugins','formatBlock','_suggestionFactory','enableCommand','get','handleSuggestionDescription','has','Users','subType','ImageEditing','editor'];(function(_0x24a503,_0x315417){const _0x16626d=function(_0x458104){while(--_0x458104){_0x24a503['push'](_0x24a503['shift']());}};_0x16626d(++_0x315417);}(_0x3154,0xfe));const _0x1662=function(_0x24a503,_0x315417){_0x24a503=_0x24a503-0x0;let _0x16626d=_0x3154[_0x24a503];return _0x16626d;};import{Plugin as _0x169fb2}from'ckeditor5/src/core';import{getTranslation as _0x21ed21}from'../utils/common-translations';export default class X extends _0x169fb2{['afterInit'](){if(!this['editor'][_0x1662('0x20')][_0x1662('0x5')](_0x1662('0x8')))return;const _0x5c657f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c657f[_0x1662('0x2')](_0x1662('0x10'),(_0x1a1d78,_0xafb57f)=>this[_0x1662('0x18')](_0x1a1d78,_0xafb57f)),_0x5c657f[_0x1662('0x1')]['registerCustomCallback'](_0x1662('0x0'),_0x1662('0x10'),_0x1662('0xa'),_0x5c657f[_0x1662('0x1')]['getSuggestionCallback'](_0x1662('0x0'),null,'discard')),_0x5c657f[_0x1662('0x1')]['registerCustomCallback']('formatBlock','replaceImageSource',_0x1662('0x12'),_0x5c657f[_0x1662('0x1')][_0x1662('0xb')]('formatBlock',null,'accept')),_0x5c657f[_0x1662('0x1c')][_0x1662('0x19')](_0x4946fa=>this[_0x1662('0x4')](_0x4946fa));}[_0x1662('0x18')](_0x571926,_0x5e9d43){const _0x4a0d3c=this[_0x1662('0x9')]['plugins']['get'](_0x1662('0x15')),_0x23bcd4=this['editor'][_0x1662('0xc')][_0x1662('0x1b')][_0x1662('0x13')][_0x1662('0xe')]();this[_0x1662('0x9')][_0x1662('0xc')][_0x1662('0xf')](()=>{let _0x2e8232=_0x23bcd4['getAttribute'](_0x1662('0x17'));const _0x2b0054=this[_0x1662('0x9')]['plugins'][_0x1662('0x3')](_0x1662('0x6'))['me'];for(const _0x4b52c0 of _0x4a0d3c[_0x1662('0xd')]({'skipNotAttached':!0x0})){const _0x47326b=_0x4b52c0[_0x1662('0x14')]();if(_0x1662('0x10')===_0x4b52c0[_0x1662('0x7')]&&_0x47326b===_0x23bcd4){_0x4b52c0['author']!==_0x2b0054&&_0x4b52c0[_0x1662('0x12')](),_0x2e8232=_0x4b52c0[_0x1662('0x1d')][_0x1662('0x1a')][0x0][_0x1662('0x11')];break;}}_0x571926(_0x5e9d43),_0x4a0d3c[_0x1662('0x1e')](_0x23bcd4,{'commandName':_0x1662('0x10'),'commandParams':[{'source':_0x2e8232}]},[],_0x1662('0x10'));});}[_0x1662('0x4')](_0x26d8f8){const {data:_0x548e60}=_0x26d8f8;if(_0x548e60&&'replaceImageSource'===_0x548e60['commandName']){const _0x504c0c=_0x1662('0x1f');return{'type':_0x1662('0x16'),'content':_0x21ed21(this[_0x1662('0x9')]['locale'],_0x504c0c)};}}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/importword
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the import from Word feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesImportWord extends Plugin {
|
|
9
|
+
constructor(editor: Editor);
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
afterInit(): void;
|
|
14
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53cc=['_trackChangesExecuted','collaboration_features','importWord','editor','value','execute','_setSuggestionData','_handleImportedData','listenTo','bind','plugins','forEach','_trackChangesValueDuringImport','dataInsert','commands','get','TrackChangesEditing','trackChanges','high','lowest','afterInit'];(function(_0x13ecef,_0x53cc86){const _0x46c34e=function(_0x8111ec){while(--_0x8111ec){_0x13ecef['push'](_0x13ecef['shift']());}};_0x46c34e(++_0x53cc86);}(_0x53cc,0xb7));const _0x46c3=function(_0x13ecef,_0x53cc86){_0x13ecef=_0x13ecef-0x0;let _0x46c34e=_0x53cc[_0x13ecef];return _0x46c34e;};import{Plugin as _0x4fbd30}from'ckeditor5/src/core';export default class Y extends _0x4fbd30{constructor(_0x2cbdd1){super(_0x2cbdd1),this[_0x46c3('0x12')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x46c3('0x5')](){const _0x39b497=this[_0x46c3('0x9')],_0x39224c=_0x39b497[_0x46c3('0x14')][_0x46c3('0x0')](_0x46c3('0x8')),_0x1e0590=_0x39b497[_0x46c3('0x14')][_0x46c3('0x0')](_0x46c3('0x2'));_0x39224c&&(_0x39224c['on'](_0x46c3('0xb'),(_0x25e618,[,_0x55e3af])=>{this['_trackChangesValueDuringImport']=_0x1e0590[_0x46c3('0xa')],_0x55e3af[_0x46c3('0x7')]['track_changes']=!this[_0x46c3('0x12')];},{'priority':_0x46c3('0x3')}),this['listenTo'](_0x39224c,_0x46c3('0x13'),this[_0x46c3('0xd')][_0x46c3('0xf')](this)),this[_0x46c3('0xe')](_0x39224c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e0590[_0x46c3('0xb')](),this[_0x46c3('0x6')]=!0x1);},{'priority':_0x46c3('0x4')}),_0x39b497[_0x46c3('0x10')][_0x46c3('0x0')](_0x46c3('0x1'))['enableCommand'](_0x46c3('0x8')));}[_0x46c3('0xd')](_0x52a055,_0x4937ce){const {suggestions:_0x3620e0}=_0x4937ce,_0x58667f=this[_0x46c3('0x9')][_0x46c3('0x14')]['get']('trackChanges'),_0x3d943a=_0x58667f[_0x46c3('0xa')];this[_0x46c3('0x12')]!==_0x3d943a&&(_0x58667f[_0x46c3('0xb')](),this[_0x46c3('0x6')]=!0x0),_0x3620e0&&_0x3620e0[_0x46c3('0x11')](({id:_0x716e8a,type:_0x29a3e1,author:_0x509c05,created_at:_0x5eba73})=>{const _0x4092bd={'id':_0x716e8a,'type':_0x29a3e1,'authorId':this['editor'][_0x46c3('0x10')][_0x46c3('0x0')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x509c05,'createdAt':_0x5eba73?new Date(_0x5eba73):new Date(),'source':_0x46c3('0x8')}}};this[_0x46c3('0x9')][_0x46c3('0x10')]['get'](_0x46c3('0x1'))[_0x46c3('0xc')](_0x4092bd);});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/indent
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesIndent extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x290f=['*Outdent:*\x20%0','getSelectedBlocks','markBlockFormat','schema','editor','change','selection','commandName','_descriptionFactory','format','from','has','locale','registerDescriptionCallback','IndentEditing','getItems','enableCommand','IndentBlock','plugins','checkAttribute','document','getItemLabel','model','indentBlock','*Indent:*\x20%0','outdentBlock','get'];(function(_0xb9be5d,_0x290fc0){const _0x42b6b9=function(_0x3ef586){while(--_0x3ef586){_0xb9be5d['push'](_0xb9be5d['shift']());}};_0x42b6b9(++_0x290fc0);}(_0x290f,0x94));const _0x42b6=function(_0xb9be5d,_0x290fc0){_0xb9be5d=_0xb9be5d-0x0;let _0x42b6b9=_0x290f[_0xb9be5d];return _0x42b6b9;};import{Plugin as _0x1c80e4}from'ckeditor5/src/core';import{getTranslation as _0x52aa41}from'../utils/common-translations';export default class Z extends _0x1c80e4{['afterInit'](){const _0x36196e=this[_0x42b6('0x12')],_0x145d8a=_0x36196e[_0x42b6('0x5')][_0x42b6('0xd')]('TrackChangesEditing');_0x36196e[_0x42b6('0x5')][_0x42b6('0x19')](_0x42b6('0x1'))&&(_0x145d8a[_0x42b6('0x3')]('indent'),_0x145d8a[_0x42b6('0x3')]('outdent'));const _0x4d25df=_0x36196e[_0x42b6('0x1a')];if(_0x36196e[_0x42b6('0x5')][_0x42b6('0x19')](_0x42b6('0x4'))){for(const _0x240003 of['indentBlock',_0x42b6('0xc')])_0x145d8a['enableCommand'](_0x240003,()=>{const _0x551019=Array[_0x42b6('0x18')](this[_0x42b6('0x12')][_0x42b6('0x9')][_0x42b6('0x7')][_0x42b6('0x14')][_0x42b6('0xf')]())['filter'](_0x1c077a=>this[_0x42b6('0x12')][_0x42b6('0x9')][_0x42b6('0x11')][_0x42b6('0x6')](_0x1c077a,'blockIndent'));_0x36196e[_0x42b6('0x9')][_0x42b6('0x13')](()=>{for(const _0x19cc45 of _0x551019)_0x145d8a[_0x42b6('0x10')](_0x19cc45,{'commandName':_0x240003,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x145d8a[_0x42b6('0x16')][_0x42b6('0x0')](_0x5fa6a3=>{const {data:_0x813b2e}=_0x5fa6a3;if(!_0x813b2e)return;if(_0x42b6('0xa')!=_0x813b2e['commandName']&&_0x42b6('0xc')!=_0x813b2e[_0x42b6('0x15')])return;const _0xddea0c=_0x5fa6a3[_0x42b6('0x2')]()[0x0],_0x2b78d1=_0x145d8a['_descriptionFactory'][_0x42b6('0x8')](_0xddea0c);return _0x42b6('0xa')==_0x813b2e[_0x42b6('0x15')]?{'type':_0x42b6('0x17'),'content':_0x52aa41(_0x4d25df,_0x42b6('0xb'),_0x2b78d1)}:'outdentBlock'==_0x813b2e[_0x42b6('0x15')]?{'type':_0x42b6('0x17'),'content':_0x52aa41(_0x4d25df,_0x42b6('0xe'),_0x2b78d1)}:void 0x0;});}}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/inputcommand/inputcommand
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesInputCommand extends Plugin {
|
|
9
|
+
static get requires(): PluginDependencies;
|
|
10
|
+
init(): void;
|
|
11
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ca2=['editor','enableCommand','input','requires','plugins','TrackChangesEditing','init'];(function(_0x143a4a,_0x3ca252){var _0x507702=function(_0x397cf6){while(--_0x397cf6){_0x143a4a['push'](_0x143a4a['shift']());}};_0x507702(++_0x3ca252);}(_0x3ca2,0xb9));var _0x5077=function(_0x143a4a,_0x3ca252){_0x143a4a=_0x143a4a-0x0;var _0x507702=_0x3ca2[_0x143a4a];return _0x507702;};import{Plugin as _0x1e343b}from'ckeditor5/src/core';import{Input as _0x27efd6}from'ckeditor5/src/typing';export default class tt extends _0x1e343b{static get[_0x5077('0x0')](){return[_0x27efd6];}[_0x5077('0x3')](){this[_0x5077('0x4')][_0x5077('0x1')]['get'](_0x5077('0x2'))[_0x5077('0x5')](_0x5077('0x6'));}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/link
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for link feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesLink extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ac8=['registerDescriptionCallback','get','LinkEditing','*Remove\x20link*','change','linkHref','*Set\x20link:*\x20%0','isCollapsed','has','from','getRanges','afterInit','model','link','unlink','format','hasAttribute','selection','getFirstRange','document','getAttribute','plugins','commandName','commandParams','getFirstPosition','enableCommand'];(function(_0x29c323,_0x2ac8d3){const _0x396060=function(_0x517e59){while(--_0x517e59){_0x29c323['push'](_0x29c323['shift']());}};_0x396060(++_0x2ac8d3);}(_0x2ac8,0x113));const _0x3960=function(_0x29c323,_0x2ac8d3){_0x29c323=_0x29c323-0x0;let _0x396060=_0x2ac8[_0x29c323];return _0x396060;};import{Plugin as _0x59ec10}from'ckeditor5/src/core';import{findAttributeRange as _0x2d1f00}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2ca3d}from'./utils';import{getTranslation as _0x4c3f99}from'../utils/common-translations';export default class it extends _0x59ec10{[_0x3960('0x16')](){const _0x5ce961=this['editor'];if(!_0x5ce961[_0x3960('0x6')][_0x3960('0x13')](_0x3960('0xd')))return;const _0x50017e=_0x5ce961[_0x3960('0x6')][_0x3960('0xc')]('TrackChangesEditing');_0x50017e[_0x3960('0xa')](_0x3960('0x18'),(_0x4f3573,_0x5f26e6)=>{const _0x5d1186=_0x5ce961[_0x3960('0x17')][_0x3960('0x4')]['selection'];let _0x5edc77=[];if(_0x5d1186[_0x3960('0x12')]){if(!_0x5d1186[_0x3960('0x1')](_0x3960('0x10')))return void _0x4f3573(_0x5f26e6);{const _0x3f8680=_0x2d1f00(_0x5d1186[_0x3960('0x9')](),_0x3960('0x10'),_0x5d1186[_0x3960('0x5')]('linkHref'),_0x5ce961[_0x3960('0x17')]);_0x5edc77=[_0x3f8680];}}else _0x5edc77=Array[_0x3960('0x14')](_0x5d1186[_0x3960('0x15')]());_0x5ce961[_0x3960('0x17')]['change'](()=>{for(const _0x4f4489 of _0x5edc77)_0x50017e['markInlineFormat'](_0x4f4489,{'commandName':_0x3960('0x18'),'commandParams':[_0x5f26e6]});});}),_0x50017e[_0x3960('0xa')](_0x3960('0x19'),()=>{const _0x5d80da=this['editor']['model'],_0x2cd394=_0x5d80da[_0x3960('0x4')][_0x3960('0x2')];_0x5d80da[_0x3960('0xf')](()=>{let _0x56839a=[];if(_0x2cd394[_0x3960('0x12')])_0x56839a=[_0x2d1f00(_0x2cd394[_0x3960('0x9')](),_0x3960('0x10'),_0x2cd394[_0x3960('0x5')](_0x3960('0x10')),_0x5ce961[_0x3960('0x17')])];else _0x56839a=_0x2ca3d('linkHref',_0x2cd394[_0x3960('0x3')](),_0x5ce961['model']);for(const _0x2b6e45 of _0x56839a)_0x50017e['markInlineFormat'](_0x2b6e45,{'commandName':'unlink','commandParams':[]});});}),_0x50017e['_descriptionFactory'][_0x3960('0xb')](_0x26c563=>{const {data:_0x13cc90}=_0x26c563,_0x2d2c6b=_0x5ce961['locale'];if(_0x13cc90){if(_0x3960('0x18')==_0x13cc90[_0x3960('0x7')]){const _0x28b08c=_0x13cc90[_0x3960('0x8')][0x0];return{'type':'format','content':_0x4c3f99(_0x2d2c6b,_0x3960('0x11'),'\x22'+_0x28b08c+'\x22')};}return _0x3960('0x19')==_0x13cc90['commandName']?{'type':_0x3960('0x0'),'content':_0x4c3f99(_0x2d2c6b,_0x3960('0xe'))}:void 0x0;}});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/list
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for list feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesList extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x509f=['TodoListEditing','todoListChecked','isObject','slice','filter','listType','todo','*Outdent:*\x20%0','from','listItem','length','commandName','nextSibling','execute','plugins','List','*Change\x20to:*\x20%0','numberedList','markBlockFormat','listIndent','ListEditing','end','add','TrackChangesEditing','createPositionAt','model','element','ELEMENT_LIST_ITEM','getSelectedBlocks','before','change','indentList','registerElementLabel','commandParams','_descriptionFactory','enableCommand','ELEMENT_TODO_LIST','ELEMENT_BULLETED_LIST','format','todoList','registerDescriptionCallback','selection','push','parent','document','getAttribute','value','locale','replace','*Uncheck\x20item*','commands','has','get','*Check\x20item*','forceValue','schema','outdentList','editor','blockName','checkTodoList','previousSibling','bulletedList','checkChild','name','afterInit','ELEMENT_NUMBERED_LIST'];(function(_0x47ee56,_0x509f86){const _0x19d940=function(_0x3b302){while(--_0x3b302){_0x47ee56['push'](_0x47ee56['shift']());}};_0x19d940(++_0x509f86);}(_0x509f,0x192));const _0x19d9=function(_0x47ee56,_0x509f86){_0x47ee56=_0x47ee56-0x0;let _0x19d940=_0x509f[_0x47ee56];return _0x19d940;};import{Plugin as _0x1c2dcf}from'ckeditor5/src/core';import{getTranslation as _0x2ac641}from'../utils/common-translations';export default class st extends _0x1c2dcf{[_0x19d9('0x3a')](){const _0x248459=this[_0x19d9('0x33')],_0xc8fed7=_0x248459[_0x19d9('0x29')];if(!_0x248459[_0x19d9('0x8')][_0x19d9('0x2d')](_0x19d9('0xe')))return;const _0x4c36e0=_0x248459[_0x19d9('0x8')][_0x19d9('0x2e')](_0x19d9('0x11')),_0x1a6e3b=_0x248459['plugins'][_0x19d9('0x2d')](_0x19d9('0x3c'));function _0x2950e8(_0x336d9e){return()=>{const _0x501508=_0x248459['model'][_0x19d9('0x26')][_0x19d9('0x23')],_0x536d51=_0x248459[_0x19d9('0x2c')][_0x19d9('0x2e')](_0x336d9e);if(_0x536d51['value'])return void _0x248459[_0x19d9('0x7')]('paragraph',{});const _0x649074=_0x336d9e[_0x19d9('0x3f')](0x0,-0x4),_0x2c8bcf=function(_0x1bea52,_0x26cd56,_0x1b3cf6){let _0x429634=Array[_0x19d9('0x2')](_0x1bea52)['filter'](_0x5c9b89=>function(_0x16c210,_0x41f8c3){return _0x41f8c3[_0x19d9('0x38')](_0x16c210[_0x19d9('0x25')],'listItem')&&!_0x41f8c3[_0x19d9('0x3e')](_0x16c210);}(_0x5c9b89,_0x1b3cf6));_0x429634=_0x429634['filter'](_0x2d5a79=>!_0x2d5a79['is'](_0x19d9('0x14'),'listItem')||_0x2d5a79[_0x19d9('0x27')](_0x19d9('0x41'))!=_0x26cd56);const _0xc31b0d=new Set();for(const _0x3a99a4 of _0x429634)_0x3a99a4['is'](_0x19d9('0x14'),_0x19d9('0x3'))?_0xc31b0d[_0x19d9('0x10')](ne(_0x3a99a4)):_0xc31b0d[_0x19d9('0x10')](_0x3a99a4);return Array[_0x19d9('0x2')](_0xc31b0d);}(_0x501508[_0x19d9('0x16')](),_0x649074,_0x248459[_0x19d9('0x13')][_0x19d9('0x31')]);_0x248459[_0x19d9('0x13')][_0x19d9('0x18')](()=>{for(const _0x42a46d of _0x2c8bcf)_0x4c36e0['markBlockFormat'](_0x42a46d,{'commandName':_0x336d9e,'commandParams':[{'forceValue':!_0x536d51[_0x19d9('0x28')]}],'formatGroupId':_0x19d9('0x34')},oe(_0x42a46d));});};}function _0x26eec8(_0x16ae24){return()=>{const _0x2e9dcc=function(_0x37e60f){let _0x22da65=Array[_0x19d9('0x2')](_0x37e60f);const _0x4df7df=_0x22da65['findIndex'](_0x53dd8a=>_0x19d9('0x3')!=_0x53dd8a[_0x19d9('0x39')]);return _0x4df7df>-0x1&&(_0x22da65=_0x22da65[_0x19d9('0x3f')](0x0,_0x4df7df)),_0x22da65;}(_0x248459[_0x19d9('0x13')][_0x19d9('0x26')][_0x19d9('0x23')][_0x19d9('0x16')]()),_0x37bf3a=_0x248459[_0x19d9('0x13')]['createRange'](_0x248459[_0x19d9('0x13')][_0x19d9('0x12')](_0x2e9dcc[0x0],_0x19d9('0x17')),_0x248459[_0x19d9('0x13')][_0x19d9('0x12')](_0x2e9dcc[_0x2e9dcc[_0x19d9('0x4')]-0x1],_0x19d9('0xf')));_0x248459['model'][_0x19d9('0x18')](()=>{_0x4c36e0[_0x19d9('0xc')](_0x37bf3a,{'commandName':_0x16ae24,'commandParams':[],'formatGroupId':_0x19d9('0xd')},function(_0x2bd25d){const _0x6eb6ff=new Set();for(const _0x5051d1 of _0x2bd25d){let _0x6beb57=_0x5051d1[_0x19d9('0x6')];for(;_0x6beb57&&_0x6beb57['getAttribute'](_0x19d9('0xd'))>_0x5051d1[_0x19d9('0x27')]('listIndent');)_0x6eb6ff[_0x19d9('0x10')](_0x6beb57),_0x6beb57=_0x6beb57[_0x19d9('0x6')];}return Array['from'](_0x6eb6ff);}(_0x2e9dcc));});};}_0x4c36e0['enableCommand'](_0x19d9('0xb'),_0x2950e8('numberedList')),_0x4c36e0[_0x19d9('0x1d')]('bulletedList',_0x2950e8(_0x19d9('0x37'))),_0x1a6e3b&&_0x4c36e0[_0x19d9('0x1d')]('todoList',_0x2950e8(_0x19d9('0x21'))),_0x4c36e0[_0x19d9('0x1d')](_0x19d9('0x19'),_0x26eec8('indentList')),_0x4c36e0[_0x19d9('0x1d')](_0x19d9('0x32'),_0x26eec8(_0x19d9('0x32'))),_0x1a6e3b&&_0x4c36e0[_0x19d9('0x1d')]('checkTodoList',()=>{const _0x20a3c7=_0x248459[_0x19d9('0x2c')][_0x19d9('0x2e')](_0x19d9('0x35')),_0x3dec6b=Array[_0x19d9('0x2')](_0x20a3c7['_selectedElements']);_0x3dec6b[_0x19d9('0x40')](_0x299d14=>_0x299d14[_0x19d9('0x27')](_0x19d9('0x3d'))!=_0x20a3c7[_0x19d9('0x28')]),_0x248459[_0x19d9('0x13')][_0x19d9('0x18')](()=>{for(const _0x1e8415 of _0x3dec6b)_0x4c36e0[_0x19d9('0xc')](_0x1e8415,{'commandName':_0x19d9('0x35'),'commandParams':[{'forceValue':!_0x20a3c7[_0x19d9('0x28')]}]});});}),_0x4c36e0[_0x19d9('0x1c')][_0x19d9('0x1a')]('listItem',_0x541df2=>_0x2ac641(_0xc8fed7,_0x19d9('0x15'),_0x541df2)),_0x4c36e0[_0x19d9('0x1c')][_0x19d9('0x22')](_0xb46207=>{const {data:_0x206b33}=_0xb46207;if(_0x206b33){if('numberedList'==_0x206b33[_0x19d9('0x5')]||_0x19d9('0x37')==_0x206b33['commandName']||_0x19d9('0x21')==_0x206b33[_0x19d9('0x5')])switch(_0x206b33[_0x19d9('0x5')][_0x19d9('0x2a')](_0x19d9('0x9'),'')){case'bulleted':return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x1f')));case'numbered':return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x3b')));case _0x19d9('0x0'):return _0x17864d(_0x2ac641(_0xc8fed7,_0x19d9('0x1e')));}if('indentList'==_0x206b33['commandName'])return{'type':'format','content':_0x2ac641(_0xc8fed7,'*Indent:*\x20%0',_0x2ac641(_0xc8fed7,_0x19d9('0x15')))};if('outdentList'==_0x206b33[_0x19d9('0x5')])return{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x1'),_0x2ac641(_0xc8fed7,'ELEMENT_LIST_ITEM'))};if(_0x19d9('0x35')==_0x206b33[_0x19d9('0x5')])return _0x206b33[_0x19d9('0x1b')][0x0][_0x19d9('0x30')]?{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x2f'))}:{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0x2b'))};}function _0x17864d(_0x38c404){return{'type':_0x19d9('0x20'),'content':_0x2ac641(_0xc8fed7,_0x19d9('0xa'),_0x38c404)};}});}}function ne(_0xc17bb0){const _0x5a05cc=_0xc17bb0[_0x19d9('0x27')](_0x19d9('0xd'));if(0x0==_0x5a05cc)return _0xc17bb0;let _0x43a0d1=_0xc17bb0;for(;_0xc17bb0['previousSibling']&&_0xc17bb0[_0x19d9('0x36')]['is'](_0x19d9('0x14'),'listItem');){const _0x43b3ee=_0xc17bb0[_0x19d9('0x36')][_0x19d9('0x27')](_0x19d9('0xd'));if(_0x43b3ee==_0x5a05cc)_0x43a0d1=_0xc17bb0[_0x19d9('0x36')];else{if(_0x43b3ee<_0x5a05cc)break;}_0xc17bb0=_0xc17bb0[_0x19d9('0x36')];}return _0x43a0d1;}function oe(_0x234e5c){const _0x3110fb=[];if(_0x234e5c['is'](_0x19d9('0x14'),_0x19d9('0x3'))&&_0x234e5c[_0x19d9('0x27')]('listIndent')>0x0){let _0x51d563=_0x234e5c[_0x19d9('0x6')];for(;_0x51d563&&_0x19d9('0x3')==_0x51d563[_0x19d9('0x39')]&&_0x51d563[_0x19d9('0x27')](_0x19d9('0xd'))==_0x234e5c[_0x19d9('0x27')](_0x19d9('0xd'));)_0x3110fb[_0x19d9('0x24')](_0x51d563),_0x51d563=_0x51d563[_0x19d9('0x6')];}return _0x3110fb;}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/listproperties
|
|
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 list properties feature.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesListProperties 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 _0x971b=['enableCommand','ListPropertiesEditing','change','model','filter','ListUtils','TrackChangesEditing','getSelectedBlocks','forward','afterInit','getSiblingNodes','document','markMultiRangeBlockFormat','toUpperCase','*Format:*\x20set\x20order\x20to\x20regular','numbered','get','_descriptionFactory','config','plugins','handleListStartCommand','listItem','editor','handleListStyleCommand','before','_LIST_','_getSuggestionBlocksForListStyle','format','startIndex','bind','createPositionAt','listReversed','reversed','_getTranslationKeyForListStyle','getListTypeFromListStyleType','element','_getSuggestionBlocks','listStyle','commandName','listType','type','createRange','replace','*Change\x20to:*\x20%0','selection','listStart','length','from','backward','list.properties','getLastPosition','commandParams','getFirstPosition','push','ELEMENT_','handleDescriptions','getAttribute','handleListReversedCommand','*Format:*\x20set\x20start\x20index\x20to\x20%0','locale','styles','map','registerDescriptionCallback','parent'];(function(_0x122d72,_0x971b14){const _0x17167f=function(_0x1af5e0){while(--_0x1af5e0){_0x122d72['push'](_0x122d72['shift']());}};_0x17167f(++_0x971b14);}(_0x971b,0xb0));const _0x1716=function(_0x122d72,_0x971b14){_0x122d72=_0x122d72-0x0;let _0x17167f=_0x971b[_0x122d72];return _0x17167f;};import{Plugin as _0x3b36b1}from'ckeditor5/src/core';import{getTranslation as _0x5ca6dd}from'../utils/common-translations';export default class et extends _0x3b36b1{[_0x1716('0x19')](){if(!this[_0x1716('0x26')][_0x1716('0x23')]['has'](_0x1716('0x11')))return;const _0x2b96bf=this['editor'][_0x1716('0x22')]['get'](_0x1716('0x1')),_0xff7cd6=this['editor'][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16'));_0x2b96bf[_0x1716('0xc')]&&_0xff7cd6['enableCommand'](_0x1716('0x35'),this['handleListStyleCommand'][_0x1716('0x2d')](this)),_0x2b96bf['reversed']&&_0xff7cd6[_0x1716('0x10')]('listReversed',this[_0x1716('0x9')][_0x1716('0x2d')](this)),_0x2b96bf['startIndex']&&_0xff7cd6['enableCommand'](_0x1716('0x3d'),this[_0x1716('0x24')]['bind'](this)),_0xff7cd6[_0x1716('0x21')][_0x1716('0xe')](this['handleDescriptions'][_0x1716('0x2d')](this));}[_0x1716('0x27')](_0x1f03aa,_0x3d3e39={}){const _0xba6f38=this[_0x1716('0x26')][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16')),_0x50bad6=this[_0x1716('0x2a')]();this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x12')](()=>{_0xba6f38[_0x1716('0x1c')](_0x50bad6,{'commandName':_0x1716('0x35'),'commandParams':[{'type':_0x3d3e39[_0x1716('0x38')]}],'formatGroupId':_0x1716('0x35')});});}['handleListReversedCommand'](_0x1fedba,_0x3c5e8d={}){const _0x28e796=this['editor'][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x16')),_0x60f2f1=this[_0x1716('0x34')](_0x175b4b=>_0x175b4b['is'](_0x1716('0x33'),_0x1716('0x25'))&&_0x1716('0x1f')===_0x175b4b['getAttribute']('listType'));if(_0x60f2f1[_0x1716('0x3e')]<0x1)return;const _0x4c7728=_0x60f2f1[_0x1716('0xd')](_0x2793f8=>this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x39')](this['editor'][_0x1716('0x13')]['createPositionAt'](_0x2793f8,'before'),this['editor']['model']['createPositionAt'](_0x2793f8,0x0)));this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x12')](()=>{_0x28e796[_0x1716('0x1c')](_0x4c7728,{'commandName':_0x1716('0x2f'),'commandParams':[{'reversed':_0x3c5e8d[_0x1716('0x30')]}],'formatGroupId':_0x1716('0x2f')});});}[_0x1716('0x24')](_0x36e4a0,_0x5aa169={}){const _0x18935a=this[_0x1716('0x26')]['plugins'][_0x1716('0x20')](_0x1716('0x16')),_0x15ef17=this[_0x1716('0x34')](_0x5a609e=>_0x5a609e['is'](_0x1716('0x33'),_0x1716('0x25'))&&_0x1716('0x1f')===_0x5a609e[_0x1716('0x8')](_0x1716('0x37')));if(_0x15ef17[_0x1716('0x3e')]<0x1)return;const _0x1b8397=_0x15ef17[_0x1716('0xd')](_0x1b9e84=>this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x39')](this['editor'][_0x1716('0x13')][_0x1716('0x2e')](_0x1b9e84,_0x1716('0x28')),this['editor'][_0x1716('0x13')][_0x1716('0x2e')](_0x1b9e84,0x0)));this[_0x1716('0x26')][_0x1716('0x13')]['change'](()=>{_0x18935a[_0x1716('0x1c')](_0x1b8397,{'commandName':_0x1716('0x3d'),'commandParams':[{'startIndex':_0x5aa169[_0x1716('0x2c')]}],'formatGroupId':_0x1716('0x3d')});});}[_0x1716('0x7')](_0x38df81){const _0x4bae46=this[_0x1716('0x26')][_0x1716('0xb')],{data:_0x32fd34}=_0x38df81;if(!_0x32fd34)return;let _0x1509b7,_0xb7c23f;switch(_0x32fd34[_0x1716('0x36')]){case _0x1716('0x35'):_0x1509b7=_0x1716('0x3b'),_0xb7c23f={'type':'format','content':_0x5ca6dd(_0x4bae46,_0x1509b7,_0x5ca6dd(_0x4bae46,this[_0x1716('0x31')](_0x32fd34[_0x1716('0x3')][0x0][_0x1716('0x38')])))};break;case'listReversed':_0x1509b7=_0x32fd34['commandParams'][0x0][_0x1716('0x30')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x1716('0x1e'),_0xb7c23f={'type':_0x1716('0x2b'),'content':_0x5ca6dd(_0x4bae46,_0x1509b7)};break;case'listStart':_0x1509b7=_0x1716('0xa'),_0xb7c23f={'type':_0x1716('0x2b'),'content':_0x5ca6dd(_0x4bae46,_0x1509b7,_0x32fd34[_0x1716('0x3')][0x0]['startIndex'])};}return _0xb7c23f;}[_0x1716('0x2a')](){var _0x5669cb,_0x5990b0,_0x35be3a,_0x29dfab;const _0x5cfc89=this[_0x1716('0x26')][_0x1716('0x23')][_0x1716('0x20')](_0x1716('0x15'));let _0x59bb0c=Array[_0x1716('0x3f')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x17')]());return(null===(_0x5669cb=_0x59bb0c[0x0])||void 0x0===_0x5669cb?void 0x0:_0x5669cb['is']('element',_0x1716('0x25')))&&_0x59bb0c['unshift'](..._0x5cfc89[_0x1716('0x1a')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')][_0x1716('0x3c')][_0x1716('0x4')](),_0x1716('0x0'))),(null===(_0x5990b0=_0x59bb0c[_0x59bb0c[_0x1716('0x3e')]-0x1])||void 0x0===_0x5990b0?void 0x0:_0x5990b0['is'](_0x1716('0x33'),'listItem'))&&_0x59bb0c[_0x1716('0x5')](..._0x5cfc89[_0x1716('0x1a')](this[_0x1716('0x26')][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x2')](),_0x1716('0x18'))),_0x59bb0c=[...new Set(_0x59bb0c)],(null===(_0x29dfab=null===(_0x35be3a=this['editor'][_0x1716('0x13')][_0x1716('0x1b')]['selection'][_0x1716('0x4')]())||void 0x0===_0x35be3a?void 0x0:_0x35be3a[_0x1716('0xf')])||void 0x0===_0x29dfab?void 0x0:_0x29dfab['is'](_0x1716('0x33'),_0x1716('0x25')))&&(_0x59bb0c=_0x59bb0c[_0x1716('0x14')](_0x4b969b=>_0x4b969b['is'](_0x1716('0x33'),_0x1716('0x25')))),_0x59bb0c;}[_0x1716('0x34')](_0x47dac7){const _0x49372d=this[_0x1716('0x26')]['plugins'][_0x1716('0x20')](_0x1716('0x15'));let _0x33749d=Array[_0x1716('0x3f')](this[_0x1716('0x26')]['model'][_0x1716('0x1b')][_0x1716('0x3c')][_0x1716('0x17')]())['filter'](_0x47dac7)[_0x1716('0xd')](_0x286874=>{const _0x4493e3=this[_0x1716('0x26')][_0x1716('0x13')]['createPositionAt'](_0x286874,0x0);return[..._0x49372d['getSiblingNodes'](_0x4493e3,_0x1716('0x0')),..._0x49372d[_0x1716('0x1a')](_0x4493e3,_0x1716('0x18'))];})['flat']();return _0x33749d=[...new Set(_0x33749d)],_0x33749d;}[_0x1716('0x31')](_0x2f2fbf){return _0x1716('0x6')+this[_0x1716('0x26')][_0x1716('0x23')]['get'](_0x1716('0x15'))[_0x1716('0x32')](_0x2f2fbf)[_0x1716('0x1d')]()+_0x1716('0x29')+_0x2f2fbf[_0x1716('0x1d')]()[_0x1716('0x3a')](/-/g,'_');}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mediaembed
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesMediaEmbed extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2eb9=['high','stop','options','createEmptyElement','conversion','afterInit','locale','for','get','media','MediaEmbedEditing','div','mediaEmbed','dataDowncast','registerElementLabel','attribute:url:media','_descriptionFactory','plugins','ELEMENT_MEDIA','editor','data'];(function(_0x3e4e7c,_0x2eb956){const _0x3df2a5=function(_0x787962){while(--_0x787962){_0x3e4e7c['push'](_0x3e4e7c['shift']());}};_0x3df2a5(++_0x2eb956);}(_0x2eb9,0x169));const _0x3df2=function(_0x3e4e7c,_0x2eb956){_0x3e4e7c=_0x3e4e7c-0x0;let _0x3df2a5=_0x2eb9[_0x3e4e7c];return _0x3df2a5;};import{Plugin as _0x567163}from'ckeditor5/src/core';import{getTranslation as _0x5f27c6}from'../utils/common-translations';export default class nt extends _0x567163{[_0x3df2('0x1')](){const _0x4761a4=this[_0x3df2('0xf')];if(!_0x4761a4[_0x3df2('0xd')]['has'](_0x3df2('0x6')))return;const _0x127acc=_0x4761a4[_0x3df2('0xd')][_0x3df2('0x4')]('TrackChangesEditing'),_0x3a1b12=_0x4761a4[_0x3df2('0x2')];_0x127acc['enableCommand'](_0x3df2('0x8')),_0x127acc[_0x3df2('0xc')][_0x3df2('0xa')](_0x3df2('0x5'),_0x53694d=>_0x5f27c6(_0x3a1b12,_0x3df2('0xe'),_0x53694d)),_0x4761a4[_0x3df2('0x0')][_0x3df2('0x3')](_0x3df2('0x9'))['elementToElement']({'model':'media','view':(_0x5b2cc6,{writer:_0x29838c,options:_0x12ec94})=>{if(_0x12ec94['showSuggestionHighlights'])return _0x29838c[_0x3df2('0x14')](_0x3df2('0x7'));},'converterPriority':_0x3df2('0x11')}),_0x4761a4[_0x3df2('0x10')]['downcastDispatcher']['on'](_0x3df2('0xb'),(_0x4c0bf0,_0x54d984,_0x32ae62)=>{_0x32ae62[_0x3df2('0x13')]['showSuggestionHighlights']&&_0x4c0bf0[_0x3df2('0x12')]();},{'priority':_0x3df2('0x11')});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/mention
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for mention feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesMention extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ef8=['has','mention','MentionEditing','enableCommand','TrackChangesEditing','plugins','afterInit'];(function(_0x478ca4,_0x2ef895){const _0x73f527=function(_0xa83878){while(--_0xa83878){_0x478ca4['push'](_0x478ca4['shift']());}};_0x73f527(++_0x2ef895);}(_0x2ef8,0x190));const _0x73f5=function(_0x478ca4,_0x2ef895){_0x478ca4=_0x478ca4-0x0;let _0x73f527=_0x2ef8[_0x478ca4];return _0x73f527;};import{Plugin as _0x2a4fcf}from'ckeditor5/src/core';export default class ot extends _0x2a4fcf{[_0x73f5('0x5')](){const _0x219f4a=this['editor'];_0x219f4a[_0x73f5('0x4')][_0x73f5('0x6')](_0x73f5('0x1'))&&_0x219f4a['plugins']['get'](_0x73f5('0x3'))[_0x73f5('0x2')](_0x73f5('0x0'));}}
|