@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3d79=['findIndex','subType','nodeAfter','_suggestionFactory','*Set\x20image\x20text\x20alternative:*\x20%0','*Remove\x20image\x20text\x20alternative*','resizeImage','format','nodeBefore','markBlockFormat','ELEMENT_IMAGE','forward','forceDefaultExecution','deletion','convertBlockImageToInline','getClosestSelectedImageElement','filter','accept','registerCustomCallback','start','isCollapsed','detach','alt','addObject','markDeletion','get','ELEMENT_INLINE_IMAGE','createRange','_registerLegacyDescription','imageBlock','TrackChangesEditing','registerAttributeLabel','toggleImageCaption','change','isEqual','ImageResize','previous','registerDescriptionCallback','fromPosition','markInsertion','end','ImageUploadEditing','getSuggestionCallback','getNearestSelectionRange','toNext','formatInline','enableCommand','schema','ImageEditing','imageCaption','type','_descriptionFactory','convertInlineImageToBlock','model','removeObject','discard','commandName','_enableDefaultAttributesIntegration','element','createRangeOn','backward','isOwn','insertion','*Set\x20image\x20width:*\x20%0','resizedWidth','toPrevious','ELEMENT_CAPTION','imageTypeInline','ImageCaptionEditing','caption','newValue','imageTextAlternative','ImageInlineEditing','ImageBlockEditing','ImageTextAlternativeEditing','insertImage','has','Inline\x20image\x20to\x20block\x20image','commandParams','isIntersecting','imageInline','isBlockImage','ImageUtils','document','width','imageStylePreApply','find','selection','plugins','chain','editor','join','FORMAT_IMAGE_SIZE','length','uploadImage','registerElementLabel','locale','formatBlock','getCaptionFromImageModelElement','getFirstRange'];(function(_0x297861,_0x3d79a8){const _0x44e92b=function(_0x583c8f){while(--_0x583c8f){_0x297861['push'](_0x297861['shift']());}};_0x44e92b(++_0x3d79a8);}(_0x3d79,0x112));const _0x44e9=function(_0x297861,_0x3d79a8){_0x297861=_0x297861-0x0;let _0x44e92b=_0x3d79[_0x297861];return _0x44e92b;};import{Plugin as _0x1bcb9a}from'ckeditor5/src/core';import{LivePosition as _0x4f28e1}from'ckeditor5/src/engine';import{getTranslation as _0x23665e}from'../utils/common-translations';export default class it extends _0x1bcb9a{['afterInit'](){const _0x21d132=this[_0x44e9('0x10')];if(!_0x21d132['plugins'][_0x44e9('0x2')](_0x44e9('0x4a')))return;const _0x40feca=_0x21d132[_0x44e9('0xe')]['get']('TrackChangesEditing'),_0x59dd7b=_0x21d132['plugins'][_0x44e9('0x33')](_0x44e9('0x8')),_0x5473bd=_0x21d132[_0x44e9('0x16')];_0x40feca[_0x44e9('0x48')](_0x44e9('0x1')),_0x40feca['_descriptionFactory'][_0x44e9('0x15')](_0x44e9('0x37'),_0x98d57e=>_0x23665e(_0x5473bd,_0x44e9('0x24'),_0x98d57e)),_0x40feca['_descriptionFactory'][_0x44e9('0x15')](_0x44e9('0x6'),_0x2fa6d4=>_0x23665e(_0x5473bd,_0x44e9('0x34'),_0x2fa6d4)),_0x40feca[_0x44e9('0x4d')]['registerElementLabel'](_0x44e9('0x5f'),()=>_0x23665e(_0x5473bd,_0x44e9('0x5c'))),_0x21d132['plugins'][_0x44e9('0x2')](_0x44e9('0x43'))&&_0x40feca[_0x44e9('0x48')](_0x44e9('0x14')),_0x21d132[_0x44e9('0xe')]['has'](_0x44e9('0x63'))&&_0x21d132[_0x44e9('0xe')][_0x44e9('0x2')](_0x44e9('0x62'))&&(_0x40feca['enableCommand']('imageTypeInline',(_0x4b3b4,_0x2c28dd)=>{const _0x3fa4aa=_0x59dd7b[_0x44e9('0x29')](_0x21d132[_0x44e9('0x4f')]['document'][_0x44e9('0xd')]);_0x21d132[_0x44e9('0x4f')][_0x44e9('0x3b')](()=>{_0x40feca['markBlockFormat'](_0x3fa4aa,{'commandName':_0x44e9('0x5d'),'commandParams':[_0x2c28dd]},[],_0x44e9('0x28'));});}),_0x40feca['enableCommand']('imageTypeBlock',(_0x5cbd88,_0x40def2)=>{_0x21d132[_0x44e9('0x4f')][_0x44e9('0x3b')](_0x4a515d=>{let _0x499597=_0x59dd7b[_0x44e9('0x29')](_0x21d132[_0x44e9('0x4f')][_0x44e9('0x9')][_0x44e9('0xd')]),_0x2dc5d5=_0x4a515d[_0x44e9('0x55')](_0x499597);const _0x1e0a04=_0x4f28e1[_0x44e9('0x40')](_0x2dc5d5['start'],_0x44e9('0x5b')),_0x50f292=_0x4f28e1[_0x44e9('0x40')](_0x2dc5d5[_0x44e9('0x42')],_0x44e9('0x46'));_0x40feca[_0x44e9('0x26')](()=>_0x5cbd88(_0x40def2)),_0x499597=_0x59dd7b[_0x44e9('0x29')](_0x21d132['model']['document']['selection']),_0x2dc5d5=_0x4a515d['createRangeOn'](_0x499597);const _0x3f078f=_0x4a515d[_0x44e9('0x35')](_0x1e0a04,_0x50f292);_0x1e0a04['detach'](),_0x50f292[_0x44e9('0x2f')](),_0x40feca[_0x44e9('0x23')](_0x499597,{'commandName':_0x44e9('0x5d'),'commandParams':[_0x40def2]},[],_0x44e9('0x4e')),_0x3f078f['start']['isBefore'](_0x2dc5d5[_0x44e9('0x2d')])&&_0x40feca[_0x44e9('0x41')](_0x4a515d[_0x44e9('0x35')](_0x3f078f[_0x44e9('0x2d')],_0x2dc5d5[_0x44e9('0x2d')]),_0x44e9('0x4e')),_0x2dc5d5[_0x44e9('0x42')]['isBefore'](_0x3f078f[_0x44e9('0x42')])&&_0x40feca['markInsertion'](_0x4a515d['createRange'](_0x2dc5d5['end'],_0x3f078f['end']),'convertInlineImageToBlock');});}),_0x40feca[_0x44e9('0x1d')][_0x44e9('0x2c')](_0x44e9('0x17'),'convertInlineImageToBlock',_0x44e9('0x11'),()=>!0x1),_0x40feca[_0x44e9('0x1d')][_0x44e9('0x2c')]('formatBlock',_0x44e9('0x4e'),_0x44e9('0x2b'),()=>!0x1),_0x40feca[_0x44e9('0x1d')][_0x44e9('0x2c')](_0x44e9('0x17'),'convertInlineImageToBlock',_0x44e9('0x51'),_0x40feca[_0x44e9('0x1d')][_0x44e9('0x44')](_0x44e9('0x17'),'','accept')),_0x40feca['_suggestionFactory'][_0x44e9('0x2c')](_0x44e9('0x58'),_0x44e9('0x4e'),_0x44e9('0x11'),()=>!0x1),_0x40feca['_suggestionFactory'][_0x44e9('0x2c')](_0x44e9('0x58'),_0x44e9('0x4e'),_0x44e9('0x51'),([_0x4f1c02])=>{const _0x23e0d2=_0x40feca[_0x44e9('0x1d')][_0x44e9('0x44')](_0x44e9('0x58'),'','discard');let _0x38aae0=_0x4f1c02[_0x44e9('0x2d')],_0x131bb6=_0x4f1c02['end'];const _0x372ca3=_0x21d132[_0x44e9('0x4f')][_0x44e9('0x49')][_0x44e9('0x45')](_0x38aae0,_0x44e9('0x56')),_0x5d1bc2=_0x21d132[_0x44e9('0x4f')][_0x44e9('0x49')][_0x44e9('0x45')](_0x131bb6,_0x44e9('0x25'));_0x372ca3[_0x44e9('0x2e')]&&(_0x38aae0=_0x372ca3[_0x44e9('0x2d')]),_0x5d1bc2[_0x44e9('0x2e')]&&(_0x131bb6=_0x5d1bc2[_0x44e9('0x42')]),_0x23e0d2([_0x21d132[_0x44e9('0x4f')]['createRange'](_0x38aae0,_0x131bb6)]);}),_0x40feca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44e9('0x4e'),_0x44e9('0xf'),_0x3b15bc),_0x40feca[_0x44e9('0x1d')]['registerCustomCallback'](_0x44e9('0x58'),_0x44e9('0x4e'),'chain',_0x3b15bc)),_0x21d132[_0x44e9('0xe')]['has'](_0x44e9('0x5e'))&&(_0x40feca[_0x44e9('0x48')](_0x44e9('0x3a'),(_0x1d150f,_0x30478a)=>{const _0x1c59c4=_0x21d132[_0x44e9('0xe')]['get']('ImageCaptionUtils');let _0x4478d2=_0x59dd7b[_0x44e9('0x29')](_0x21d132[_0x44e9('0x4f')]['document'][_0x44e9('0xd')]),_0x11df47=_0x1c59c4[_0x44e9('0x18')](_0x4478d2);_0x21d132[_0x44e9('0x4f')][_0x44e9('0x3b')](()=>{if(_0x11df47)return void _0x40feca[_0x44e9('0x32')](_0x21d132[_0x44e9('0x4f')][_0x44e9('0x55')](_0x11df47));const _0x50c7cf=_0x59dd7b[_0x44e9('0x7')](_0x4478d2);_0x1d150f(_0x30478a),_0x4478d2=_0x59dd7b[_0x44e9('0x29')](_0x21d132[_0x44e9('0x4f')]['document'][_0x44e9('0xd')]),_0x11df47=_0x1c59c4['getCaptionFromImageModelElement'](_0x4478d2),_0x40feca['markInsertion'](_0x21d132[_0x44e9('0x4f')][_0x44e9('0x55')](_0x11df47),_0x50c7cf?null:_0x44e9('0x4b'));});}),_0x40feca[_0x44e9('0x1d')][_0x44e9('0x2c')](_0x44e9('0x58'),_0x44e9('0x4b'),_0x44e9('0xf'),_0x3b15bc));const _0x492c96=[{'type':'formatBlock','subType':_0x44e9('0xb')},{'type':_0x44e9('0x58'),'subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x44e9('0x58'),'subType':'convertInlineImageToBlock'}];function _0x363cd8(_0x2b77ec,_0x356bf1){const _0x4de218=_0x492c96[_0x44e9('0x1a')](({type:_0x4a6517,subType:_0x46730b})=>_0x2b77ec[_0x44e9('0x4c')]==_0x4a6517&&_0x2b77ec['subType']==_0x46730b),_0x2a65b4=_0x492c96['findIndex'](({type:_0x1c4121,subType:_0x1e6651})=>_0x356bf1[_0x44e9('0x4c')]==_0x1c4121&&_0x356bf1[_0x44e9('0x1b')]==_0x1e6651);if(_0x4de218<0x0||_0x2a65b4<0x0)return!0x1;const _0x52ff1b=_0x2b77ec['getFirstRange'](),_0x52e406=_0x356bf1[_0x44e9('0x19')]();if((0x0==_0x4de218||0x1==_0x4de218)&&0x2==_0x2a65b4&&_0x52ff1b[_0x44e9('0x5')](_0x52e406))return!0x0;if(0x2==_0x4de218&&0x3==_0x2a65b4){const _0x395cac=_0x40feca['_findSuggestions'](_0x52ff1b,_0x44e9('0x58'))[_0x44e9('0x2a')](({suggestion:_0x1e6a34,meta:_0x10f213})=>_0x10f213[_0x44e9('0x57')]&&_0x44e9('0x4e')==_0x1e6a34['subType']);if(_0x395cac[_0x44e9('0x13')]>0x1&&_0x52e406[_0x44e9('0x42')][_0x44e9('0x3c')](_0x52ff1b[_0x44e9('0x2d')]))return!0x0;if(0x1==_0x395cac[_0x44e9('0x13')]&&(_0x52ff1b[_0x44e9('0x2d')][_0x44e9('0x3c')](_0x52e406[_0x44e9('0x42')])||_0x52ff1b[_0x44e9('0x42')][_0x44e9('0x3c')](_0x52e406['start'])))return!0x0;}if(0x3==_0x4de218&&0x3==_0x2a65b4&&_0x52ff1b[_0x44e9('0x2d')]['isBefore'](_0x52e406['start'])){const _0x1c3804=_0x52ff1b[_0x44e9('0x42')][_0x44e9('0x1c')],_0x2e387d=_0x52e406['start'][_0x44e9('0x22')];return _0x59dd7b[_0x44e9('0x7')](_0x1c3804)&&_0x1c3804===_0x2e387d;}return!0x1;}function _0x3b15bc(_0x32699a,_0xbcf602){return _0x363cd8(_0x32699a,_0xbcf602)?[_0x32699a,_0xbcf602]:_0x363cd8(_0xbcf602,_0x32699a)?[_0xbcf602,_0x32699a]:null;}_0x21d132['plugins'][_0x44e9('0x2')](_0x44e9('0x3d'))&&(_0x40feca[_0x44e9('0x53')](_0x44e9('0x20'),[],[_0x44e9('0x5a')]),_0x40feca['_descriptionFactory'][_0x44e9('0x39')](_0x44e9('0x5a'),_0x23665e(_0x5473bd,_0x44e9('0x12')))),_0x21d132[_0x44e9('0xe')]['has'](_0x44e9('0x0'))&&_0x40feca[_0x44e9('0x53')]('imageTextAlternative',[],['alt']),_0x40feca[_0x44e9('0x4d')][_0x44e9('0x3f')](_0xf33599=>{if(!!_0x492c96[_0x44e9('0xc')](({type:_0xeebb34,subType:_0x51401d})=>_0xf33599[_0x44e9('0x4c')]==_0xeebb34&&_0xf33599[_0x44e9('0x1b')]==_0x51401d))return _0xf33599[_0x44e9('0x3e')]?{}:void 0x0;}),_0x40feca[_0x44e9('0x4d')][_0x44e9('0x3f')](_0x1d89a2=>{if(_0x44e9('0x58')==_0x1d89a2[_0x44e9('0x4c')]||_0x44e9('0x27')==_0x1d89a2[_0x44e9('0x4c')]){const _0x3f4d05=_0x1d89a2['getContainedElement']();if(_0x3f4d05&&_0x3f4d05['is'](_0x44e9('0x54'),_0x44e9('0x5f')))return{'type':_0x44e9('0x58')==_0x1d89a2[_0x44e9('0x4c')]?_0x44e9('0x31'):_0x44e9('0x50'),'element':_0x3f4d05,'quantity':0x1};}}),_0x40feca[_0x44e9('0x4d')][_0x44e9('0x3f')](_0x41726c=>_0x44e9('0x17')==_0x41726c[_0x44e9('0x4c')]&&'convertInlineImageToBlock'==_0x41726c['subType']?{'type':_0x44e9('0x21'),'content':_0x44e9('0x3')}:_0x44e9('0x17')==_0x41726c[_0x44e9('0x4c')]&&_0x44e9('0x28')==_0x41726c[_0x44e9('0x1b')]?{'type':_0x44e9('0x21'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x40feca[_0x44e9('0x4d')][_0x44e9('0x3f')](_0x20f4bc=>{if('attribute'!=_0x20f4bc['type'])return;const {data:_0x4833d5}=_0x20f4bc;if(!_0x4833d5||_0x44e9('0x30')!=_0x4833d5['key'])return;const _0x4225cd=_0x4833d5[_0x44e9('0x60')];return _0x4225cd?{'type':'format','content':_0x23665e(_0x5473bd,_0x44e9('0x1e'),'\x22'+_0x4225cd+'\x22')}:{'type':_0x44e9('0x21'),'content':_0x23665e(_0x5473bd,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x44e9('0x36')]();}[_0x44e9('0x36')](){const _0xa53205=this['editor'],_0x50f058=_0xa53205[_0x44e9('0x16')];_0xa53205[_0x44e9('0xe')][_0x44e9('0x33')](_0x44e9('0x38'))['_descriptionFactory']['registerDescriptionCallback'](_0x387ce9=>{if('formatBlock'!=_0x387ce9[_0x44e9('0x4c')]&&_0x44e9('0x47')!=_0x387ce9[_0x44e9('0x4c')])return;const {data:_0x226c64}=_0x387ce9;if(_0x226c64){if(_0x44e9('0x61')==_0x226c64[_0x44e9('0x52')]){const _0x59315b=_0x226c64[_0x44e9('0x4')][0x0][_0x44e9('0x60')];return _0x59315b?{'type':'format','content':_0x23665e(_0x50f058,_0x44e9('0x1e'),'\x22'+_0x59315b+'\x22')}:{'type':_0x44e9('0x21'),'content':_0x23665e(_0x50f058,_0x44e9('0x1f'))};}if('resizeImage'==_0x226c64[_0x44e9('0x52')]){const _0x52b582=_0x226c64[_0x44e9('0x4')][0x0][_0x44e9('0xa')];return _0x52b582?{'type':_0x44e9('0x21'),'content':_0x23665e(_0x50f058,_0x44e9('0x59'),_0x52b582)}:{'type':_0x44e9('0x21'),'content':_0x23665e(_0x50f058,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x3916=['filter','forward','getContainedElement','markDeletion','TrackChangesEditing','caption','getClosestSelectedImageElement','*Remove\x20image\x20text\x20alternative*','ImageEditing','discard','markBlockFormat','_suggestionFactory','convertBlockImageToInline','plugins','getSuggestionCallback','_registerLegacyDescription','nodeAfter','editor','FORMAT_IMAGE_SIZE','get','imageStylePreApply','markInsertion','chain','alt','imageTextAlternative','*Set\x20image\x20width:*\x20%0','change','accept','key','isBlockImage','ImageUploadEditing','Block\x20image\x20to\x20inline\x20image','imageInline','length','Inline\x20image\x20to\x20block\x20image','isEqual','*Set\x20image\x20text\x20alternative:*\x20%0','ELEMENT_CAPTION','ELEMENT_IMAGE','registerDescriptionCallback','convertInlineImageToBlock','toPrevious','backward','registerElementLabel','fromPosition','width','ImageUtils','join','*Reset\x20image\x20width*','schema','isBefore','previous','resizedWidth','has','toNext','attribute','imageTypeInline','imageCaption','end','_enableDefaultAttributesIntegration','registerAttributeLabel','ImageBlockEditing','getFirstRange','deletion','subType','resizeImage','newValue','registerCustomCallback','detach','commandParams','imageBlock','insertImage','type','selection','commandName','getNearestSelectionRange','formatBlock','find','toggleImageCaption','start','insertion','createRange','format','ELEMENT_INLINE_IMAGE','ImageResize','removeObject','_descriptionFactory','isCollapsed','locale','afterInit','isOwn','createRangeOn','document','getCaptionFromImageModelElement','enableCommand','model'];(function(_0x43f09c,_0x39162f){const _0x21b1d6=function(_0x16694e){while(--_0x16694e){_0x43f09c['push'](_0x43f09c['shift']());}};_0x21b1d6(++_0x39162f);}(_0x3916,0x181));const _0x21b1=function(_0x43f09c,_0x39162f){_0x43f09c=_0x43f09c-0x0;let _0x21b1d6=_0x3916[_0x43f09c];return _0x21b1d6;};import{Plugin as _0x2c0754}from'ckeditor5/src/core.js';import{LivePosition as _0x5e410b}from'ckeditor5/src/engine.js';import{getTranslation as _0x34b1cc}from'../utils/common-translations.js';export default class it extends _0x2c0754{[_0x21b1('0x58')](){const _0x34d2d6=this['editor'];if(!_0x34d2d6[_0x21b1('0xc')][_0x21b1('0x34')](_0x21b1('0x7')))return;const _0x1f746c=_0x34d2d6[_0x21b1('0xc')]['get'](_0x21b1('0x3')),_0x35990e=_0x34d2d6[_0x21b1('0xc')][_0x21b1('0x12')](_0x21b1('0x2d')),_0xc6e1a7=_0x34d2d6[_0x21b1('0x57')];_0x1f746c['enableCommand'](_0x21b1('0x46')),_0x1f746c[_0x21b1('0x55')]['registerElementLabel'](_0x21b1('0x45'),_0x969371=>_0x34b1cc(_0xc6e1a7,_0x21b1('0x25'),_0x969371)),_0x1f746c[_0x21b1('0x55')]['registerElementLabel'](_0x21b1('0x1f'),_0x5e158c=>_0x34b1cc(_0xc6e1a7,_0x21b1('0x52'),_0x5e158c)),_0x1f746c[_0x21b1('0x55')][_0x21b1('0x2a')](_0x21b1('0x4'),()=>_0x34b1cc(_0xc6e1a7,_0x21b1('0x24'))),_0x34d2d6[_0x21b1('0xc')]['has'](_0x21b1('0x1d'))&&_0x1f746c[_0x21b1('0x5d')]('uploadImage'),_0x34d2d6['plugins'][_0x21b1('0x34')](_0x21b1('0x3c'))&&_0x34d2d6[_0x21b1('0xc')]['has']('ImageInlineEditing')&&(_0x1f746c[_0x21b1('0x5d')](_0x21b1('0x37'),(_0x15a24f,_0x418b58)=>{const _0x4a2661=_0x35990e[_0x21b1('0x5')](_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x5b')][_0x21b1('0x48')]);_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x19')](()=>{_0x1f746c[_0x21b1('0x9')](_0x4a2661,{'commandName':_0x21b1('0x37'),'commandParams':[_0x418b58]},[],_0x21b1('0xb'));});}),_0x1f746c[_0x21b1('0x5d')]('imageTypeBlock',(_0x2ca1f7,_0x1903b3)=>{_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x19')](_0x2e4107=>{let _0x573405=_0x35990e['getClosestSelectedImageElement'](_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x5b')]['selection']),_0x2a3edc=_0x2e4107[_0x21b1('0x5a')](_0x573405);const _0x5d8b6e=_0x5e410b[_0x21b1('0x2b')](_0x2a3edc[_0x21b1('0x4e')],_0x21b1('0x28')),_0x4e0012=_0x5e410b[_0x21b1('0x2b')](_0x2a3edc[_0x21b1('0x39')],_0x21b1('0x35'));_0x1f746c['forceDefaultExecution'](()=>_0x2ca1f7(_0x1903b3)),_0x573405=_0x35990e[_0x21b1('0x5')](_0x34d2d6[_0x21b1('0x5e')]['document'][_0x21b1('0x48')]),_0x2a3edc=_0x2e4107['createRangeOn'](_0x573405);const _0x201534=_0x2e4107[_0x21b1('0x50')](_0x5d8b6e,_0x4e0012);_0x5d8b6e[_0x21b1('0x43')](),_0x4e0012[_0x21b1('0x43')](),_0x1f746c[_0x21b1('0x9')](_0x573405,{'commandName':_0x21b1('0x37'),'commandParams':[_0x1903b3]},[],_0x21b1('0x27')),_0x201534[_0x21b1('0x4e')][_0x21b1('0x31')](_0x2a3edc[_0x21b1('0x4e')])&&_0x1f746c['markInsertion'](_0x2e4107['createRange'](_0x201534[_0x21b1('0x4e')],_0x2a3edc[_0x21b1('0x4e')]),_0x21b1('0x27')),_0x2a3edc[_0x21b1('0x39')][_0x21b1('0x31')](_0x201534['end'])&&_0x1f746c[_0x21b1('0x14')](_0x2e4107[_0x21b1('0x50')](_0x2a3edc['end'],_0x201534['end']),'convertInlineImageToBlock');});}),_0x1f746c[_0x21b1('0xa')][_0x21b1('0x42')]('formatBlock',_0x21b1('0x27'),'join',()=>!0x1),_0x1f746c['_suggestionFactory'][_0x21b1('0x42')](_0x21b1('0x4b'),_0x21b1('0x27'),_0x21b1('0x1a'),()=>!0x1),_0x1f746c[_0x21b1('0xa')][_0x21b1('0x42')](_0x21b1('0x4b'),'convertInlineImageToBlock',_0x21b1('0x8'),_0x1f746c[_0x21b1('0xa')][_0x21b1('0xd')](_0x21b1('0x4b'),'',_0x21b1('0x1a'))),_0x1f746c[_0x21b1('0xa')]['registerCustomCallback']('insertion',_0x21b1('0x27'),_0x21b1('0x2e'),()=>!0x1),_0x1f746c[_0x21b1('0xa')]['registerCustomCallback']('insertion',_0x21b1('0x27'),_0x21b1('0x8'),([_0x43f0e1])=>{const _0x48c48e=_0x1f746c[_0x21b1('0xa')][_0x21b1('0xd')](_0x21b1('0x4f'),'',_0x21b1('0x8'));let _0x284c81=_0x43f0e1[_0x21b1('0x4e')],_0x51dbec=_0x43f0e1['end'];const _0x4b7a8c=_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x30')][_0x21b1('0x4a')](_0x284c81,_0x21b1('0x29')),_0x5659e2=_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x30')]['getNearestSelectionRange'](_0x51dbec,_0x21b1('0x0'));_0x4b7a8c[_0x21b1('0x56')]&&(_0x284c81=_0x4b7a8c[_0x21b1('0x4e')]),_0x5659e2[_0x21b1('0x56')]&&(_0x51dbec=_0x5659e2[_0x21b1('0x39')]),_0x48c48e([_0x34d2d6[_0x21b1('0x5e')]['createRange'](_0x284c81,_0x51dbec)]);}),_0x1f746c[_0x21b1('0xa')]['registerCustomCallback'](_0x21b1('0x4b'),'convertInlineImageToBlock','chain',_0x23195d),_0x1f746c['_suggestionFactory'][_0x21b1('0x42')](_0x21b1('0x4f'),_0x21b1('0x27'),_0x21b1('0x15'),_0x23195d)),_0x34d2d6[_0x21b1('0xc')][_0x21b1('0x34')]('ImageCaptionEditing')&&(_0x1f746c['enableCommand'](_0x21b1('0x4d'),(_0x54e6ef,_0x3e28f9)=>{const _0x17d109=_0x34d2d6[_0x21b1('0xc')]['get']('ImageCaptionUtils');let _0x1de55f=_0x35990e[_0x21b1('0x5')](_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x5b')][_0x21b1('0x48')]),_0x8dc296=_0x17d109[_0x21b1('0x5c')](_0x1de55f);_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x19')](()=>{if(_0x8dc296)return void _0x1f746c[_0x21b1('0x2')](_0x34d2d6[_0x21b1('0x5e')]['createRangeOn'](_0x8dc296));const _0x3d0e15=_0x35990e[_0x21b1('0x1c')](_0x1de55f);_0x54e6ef(_0x3e28f9),_0x1de55f=_0x35990e['getClosestSelectedImageElement'](_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x5b')][_0x21b1('0x48')]),_0x8dc296=_0x17d109['getCaptionFromImageModelElement'](_0x1de55f),_0x1f746c['markInsertion'](_0x34d2d6[_0x21b1('0x5e')][_0x21b1('0x5a')](_0x8dc296),_0x3d0e15?null:_0x21b1('0x38'));});}),_0x1f746c['_suggestionFactory'][_0x21b1('0x42')](_0x21b1('0x4f'),'imageCaption',_0x21b1('0x15'),_0x23195d));const _0x1dd627=[{'type':_0x21b1('0x4b'),'subType':_0x21b1('0x13')},{'type':'insertion','subType':_0x21b1('0x38')},{'type':_0x21b1('0x4b'),'subType':_0x21b1('0x27')},{'type':_0x21b1('0x4f'),'subType':_0x21b1('0x27')}];function _0x331fa0(_0x45ff87,_0x1026fe){const _0x4c252b=_0x1dd627['findIndex'](({type:_0x4b7e21,subType:_0x484b1a})=>_0x45ff87[_0x21b1('0x47')]==_0x4b7e21&&_0x45ff87[_0x21b1('0x3f')]==_0x484b1a),_0x27903d=_0x1dd627['findIndex'](({type:_0x3b90e9,subType:_0x5b50f9})=>_0x1026fe[_0x21b1('0x47')]==_0x3b90e9&&_0x1026fe[_0x21b1('0x3f')]==_0x5b50f9);if(_0x4c252b<0x0||_0x27903d<0x0)return!0x1;const _0x1bbfa5=_0x45ff87[_0x21b1('0x3d')](),_0x3e772a=_0x1026fe[_0x21b1('0x3d')]();if((0x0==_0x4c252b||0x1==_0x4c252b)&&0x2==_0x27903d&&_0x1bbfa5['isIntersecting'](_0x3e772a))return!0x0;if(0x2==_0x4c252b&&0x3==_0x27903d){const _0x28ed48=_0x1f746c['_findSuggestions'](_0x1bbfa5,'insertion')[_0x21b1('0x5f')](({suggestion:_0x329952,meta:_0x34eeed})=>_0x34eeed[_0x21b1('0x59')]&&_0x21b1('0x27')==_0x329952[_0x21b1('0x3f')]);if(_0x28ed48[_0x21b1('0x20')]>0x1&&_0x3e772a[_0x21b1('0x39')][_0x21b1('0x22')](_0x1bbfa5[_0x21b1('0x4e')]))return!0x0;if(0x1==_0x28ed48['length']&&(_0x1bbfa5[_0x21b1('0x4e')]['isEqual'](_0x3e772a[_0x21b1('0x39')])||_0x1bbfa5[_0x21b1('0x39')][_0x21b1('0x22')](_0x3e772a[_0x21b1('0x4e')])))return!0x0;}if(0x3==_0x4c252b&&0x3==_0x27903d&&_0x1bbfa5['start']['isBefore'](_0x3e772a['start'])){const _0x3c5871=_0x1bbfa5[_0x21b1('0x39')][_0x21b1('0xf')],_0x72853e=_0x3e772a[_0x21b1('0x4e')]['nodeBefore'];return _0x35990e[_0x21b1('0x1c')](_0x3c5871)&&_0x3c5871===_0x72853e;}return!0x1;}function _0x23195d(_0x2d2a92,_0xf747a){return _0x331fa0(_0x2d2a92,_0xf747a)?[_0x2d2a92,_0xf747a]:_0x331fa0(_0xf747a,_0x2d2a92)?[_0xf747a,_0x2d2a92]:null;}_0x34d2d6[_0x21b1('0xc')]['has'](_0x21b1('0x53'))&&(_0x1f746c[_0x21b1('0x3a')](_0x21b1('0x40'),[],[_0x21b1('0x33')]),_0x1f746c[_0x21b1('0x55')][_0x21b1('0x3b')](_0x21b1('0x33'),_0x34b1cc(_0xc6e1a7,_0x21b1('0x11')))),_0x34d2d6[_0x21b1('0xc')][_0x21b1('0x34')]('ImageTextAlternativeEditing')&&_0x1f746c['_enableDefaultAttributesIntegration'](_0x21b1('0x17'),[],[_0x21b1('0x16')]),_0x1f746c[_0x21b1('0x55')]['registerDescriptionCallback'](_0x3df07d=>{if(!!_0x1dd627[_0x21b1('0x4c')](({type:_0x26b9d8,subType:_0x416cdb})=>_0x3df07d[_0x21b1('0x47')]==_0x26b9d8&&_0x3df07d[_0x21b1('0x3f')]==_0x416cdb))return _0x3df07d[_0x21b1('0x32')]?{}:void 0x0;}),_0x1f746c[_0x21b1('0x55')][_0x21b1('0x26')](_0x3df30c=>{if(_0x21b1('0x4f')==_0x3df30c[_0x21b1('0x47')]||_0x21b1('0x3e')==_0x3df30c[_0x21b1('0x47')]){const _0x42266f=_0x3df30c[_0x21b1('0x1')]();if(_0x42266f&&_0x42266f['is']('element','caption'))return{'type':'insertion'==_0x3df30c[_0x21b1('0x47')]?'addObject':_0x21b1('0x54'),'element':_0x42266f,'quantity':0x1};}}),_0x1f746c['_descriptionFactory'][_0x21b1('0x26')](_0x1928a3=>_0x21b1('0x4b')==_0x1928a3[_0x21b1('0x47')]&&_0x21b1('0x27')==_0x1928a3['subType']?{'type':_0x21b1('0x51'),'content':_0x21b1('0x21')}:_0x21b1('0x4b')==_0x1928a3['type']&&_0x21b1('0xb')==_0x1928a3['subType']?{'type':'format','content':_0x21b1('0x1e')}:void 0x0),_0x1f746c['_descriptionFactory'][_0x21b1('0x26')](_0x351534=>{if(_0x21b1('0x36')!=_0x351534[_0x21b1('0x47')])return;const {data:_0x57b46d}=_0x351534;if(!_0x57b46d||_0x21b1('0x16')!=_0x57b46d[_0x21b1('0x1b')])return;const _0x67d096=_0x57b46d[_0x21b1('0x41')];return _0x67d096?{'type':_0x21b1('0x51'),'content':_0x34b1cc(_0xc6e1a7,_0x21b1('0x23'),'\x22'+_0x67d096+'\x22')}:{'type':'format','content':_0x34b1cc(_0xc6e1a7,_0x21b1('0x6'))};}),this['_registerLegacyDescription']();}[_0x21b1('0xe')](){const _0x67ea80=this[_0x21b1('0x10')],_0x3a0fce=_0x67ea80[_0x21b1('0x57')];_0x67ea80[_0x21b1('0xc')][_0x21b1('0x12')]('TrackChangesEditing')[_0x21b1('0x55')][_0x21b1('0x26')](_0x346cd3=>{if('formatBlock'!=_0x346cd3[_0x21b1('0x47')]&&'formatInline'!=_0x346cd3[_0x21b1('0x47')])return;const {data:_0x14e784}=_0x346cd3;if(_0x14e784){if('imageTextAlternative'==_0x14e784[_0x21b1('0x49')]){const _0x478c8c=_0x14e784[_0x21b1('0x44')][0x0][_0x21b1('0x41')];return _0x478c8c?{'type':'format','content':_0x34b1cc(_0x3a0fce,_0x21b1('0x23'),'\x22'+_0x478c8c+'\x22')}:{'type':_0x21b1('0x51'),'content':_0x34b1cc(_0x3a0fce,_0x21b1('0x6'))};}if('resizeImage'==_0x14e784[_0x21b1('0x49')]){const _0x3511cb=_0x14e784[_0x21b1('0x44')][0x0][_0x21b1('0x2c')];return _0x3511cb?{'type':_0x21b1('0x51'),'content':_0x34b1cc(_0x3a0fce,_0x21b1('0x18'),_0x3511cb)}:{'type':'format','content':_0x34b1cc(_0x3a0fce,_0x21b1('0x2f'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x281c=['locale','_enableDefaultAttributesIntegration','afterInit','type','has','format','editor','accept','TrackChangesEditing','_suggestionFactory','formatInline','key','formatBlock','registerDescriptionCallback','newValue','discard','src','plugins','_handleLegacySuggestions','*Format:*\x20replace\x20image\x20URL','getSuggestionCallback','_descriptionFactory','get','_registerLegacyDescription','attribute','replaceImageSource','ImageEditing','oldValue','registerCustomCallback'];(function(_0x4f9400,_0x281cc4){const _0x3fc936=function(_0x1b5d5a){while(--_0x1b5d5a){_0x4f9400['push'](_0x4f9400['shift']());}};_0x3fc936(++_0x281cc4);}(_0x281c,0x1b2));const _0x3fc9=function(_0x4f9400,_0x281cc4){_0x4f9400=_0x4f9400-0x0;let _0x3fc936=_0x281c[_0x4f9400];return _0x3fc936;};import{Plugin as _0x1c27af}from'ckeditor5/src/core.js';import{getTranslation as _0x464e24}from'../utils/common-translations.js';export default class et extends _0x1c27af{[_0x3fc9('0x3')](){if(!this['editor'][_0x3fc9('0x12')][_0x3fc9('0x5')](_0x3fc9('0x1b')))return;const _0x1a837f=this[_0x3fc9('0x7')][_0x3fc9('0x1')],_0x21b2b2=this['editor'][_0x3fc9('0x12')][_0x3fc9('0x17')](_0x3fc9('0x9'));_0x21b2b2[_0x3fc9('0x2')](_0x3fc9('0x1a'),[],[_0x3fc9('0x11')]),_0x21b2b2[_0x3fc9('0x16')][_0x3fc9('0xe')](_0x26b694=>{if(_0x3fc9('0x19')!=_0x26b694['type'])return;const {data:_0x399d2f}=_0x26b694;return _0x399d2f&&_0x3fc9('0x11')==_0x399d2f[_0x3fc9('0xc')]?_0x399d2f[_0x3fc9('0xf')]&&_0x399d2f[_0x3fc9('0x1c')]?{'type':_0x3fc9('0x6'),'content':_0x464e24(_0x1a837f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this[_0x3fc9('0x13')]();}[_0x3fc9('0x13')](){const _0xba92d9=this[_0x3fc9('0x7')][_0x3fc9('0x12')]['get'](_0x3fc9('0x9'));_0xba92d9[_0x3fc9('0xa')][_0x3fc9('0x0')]('formatBlock','replaceImageSource',_0x3fc9('0x8'),_0xba92d9[_0x3fc9('0xa')][_0x3fc9('0x15')](_0x3fc9('0xd'),null,_0x3fc9('0x10'))),_0xba92d9[_0x3fc9('0xa')]['registerCustomCallback'](_0x3fc9('0xd'),_0x3fc9('0x1a'),_0x3fc9('0x10'),_0xba92d9['_suggestionFactory'][_0x3fc9('0x15')]('formatBlock',null,_0x3fc9('0x8'))),this[_0x3fc9('0x18')]();}[_0x3fc9('0x18')](){const _0x2c7d33=this['editor'],_0x35eedc=_0x2c7d33['locale'];_0x2c7d33['plugins'][_0x3fc9('0x17')](_0x3fc9('0x9'))['_descriptionFactory'][_0x3fc9('0xe')](_0x672868=>{if(_0x3fc9('0xd')!=_0x672868[_0x3fc9('0x4')]&&_0x3fc9('0xb')!=_0x672868[_0x3fc9('0x4')])return;const {data:_0x3c7a2a}=_0x672868;if(!_0x3c7a2a||_0x3fc9('0x1a')!=_0x3c7a2a['commandName'])return;return{'type':_0x3fc9('0x6'),'content':_0x464e24(_0x35eedc,_0x3fc9('0x14'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f8=['FORMAT_SIDE_IMAGE','editor','refresh','registerCustomCallback','has','registerDescriptionCallback','ImageUtils','subType','start','name','getFirstRange','imageStylePreApply','suggestion','setImageNaturalSizeAttributes','length','join','imageStyle','getChangedMarkers','commandReversedParams','commandParams','nodeBefore','locale','afterInit','next','title','isBlockImage','differ','formatBlock','registerPostFixer','isIntersecting','from','isEqual','plugins','getSuggestion','ImageStyleEditing','imageTypeBlock','side','model','end','_findSuggestions','document','findIndex','commandName','format','getClosestSelectedImageElement','convertInlineImageToBlock','normalizedStyles','enableCommand','get','toLowerCase','value','filter','author','commands','discardSuggestion','discard','shouldConvertImageType','accept','*Format:*\x20%0','markBlockFormat','formatInline','getContainedElement','_splitMarkerName','Users','_suggestionFactory','_registerLegacyDescription','insertion','imageStylePostApply','newRange','getSuggestions','imageCaption','isInContent','isInlineImage','createRangeOn','type','_descriptionFactory','forEach','selection','getSuggestionCallback'];(function(_0x354fa6,_0x49f8bd){const _0x20656f=function(_0xce3d75){while(--_0xce3d75){_0x354fa6['push'](_0x354fa6['shift']());}};_0x20656f(++_0x49f8bd);}(_0x49f8,0x144));const _0x2065=function(_0x354fa6,_0x49f8bd){_0x354fa6=_0x354fa6-0x0;let _0x20656f=_0x49f8[_0x354fa6];return _0x20656f;};import{Plugin as _0x2b1d3b}from'ckeditor5/src/core.js';import{uid as _0x34e5cb}from'ckeditor5/src/utils.js';import{getTranslation as _0x11b346}from'../utils/common-translations.js';export default class st extends _0x2b1d3b{[_0x2065('0xe')](){const _0x803c4a=this[_0x2065('0x48')];if(!_0x803c4a[_0x2065('0x18')][_0x2065('0x4b')]('ImageStyleEditing'))return;const _0x19fb5c=_0x803c4a[_0x2065('0x18')][_0x2065('0x28')]('TrackChangesEditing'),_0x5f09c8=_0x803c4a['plugins'][_0x2065('0x28')](_0x2065('0x4d')),_0x19e01d={};_0x19fb5c[_0x2065('0x27')](_0x2065('0x8'),(_0x2f9343,_0x4acbf6)=>{const _0x444be6=_0x803c4a['plugins'][_0x2065('0x28')](_0x2065('0x37'))['me'],_0x4b160d=_0x803c4a[_0x2065('0x2d')][_0x2065('0x28')](_0x2065('0x8'));let _0x18d081=_0x5f09c8['getClosestSelectedImageElement'](_0x803c4a['model'][_0x2065('0x20')][_0x2065('0x45')]),_0x1286a5=_0x803c4a['model'][_0x2065('0x41')](_0x18d081),_0x239282=_0x4b160d[_0x2065('0x2a')];if(_0x239282==_0x4acbf6[_0x2065('0x2a')])return;const _0x502f56={'commandName':_0x2065('0x8'),'commandParams':[_0x4acbf6],'formatGroupId':_0x34e5cb()};_0x803c4a['model']['change'](()=>{if(_0x19fb5c[_0x2065('0x3d')]()[_0x2065('0x2b')](_0x65074d=>_0x65074d[_0x2065('0x3f')]&&_0x444be6==_0x65074d[_0x2065('0x2c')]&&(_0x2065('0x13')==_0x65074d[_0x2065('0x42')]||_0x2065('0x34')==_0x65074d[_0x2065('0x42')])&&(_0x2065('0x3')==_0x65074d[_0x2065('0x4e')]||_0x2065('0x3b')==_0x65074d[_0x2065('0x4e')])&&_0x65074d[_0x2065('0x2')]()[_0x2065('0x17')](_0x1286a5))[_0x2065('0x44')](_0xf7a781=>_0x19fb5c[_0x2065('0x2e')](_0xf7a781['head'])),_0x18d081=_0x5f09c8[_0x2065('0x24')](_0x803c4a[_0x2065('0x1d')][_0x2065('0x20')]['selection']),_0x1286a5=_0x803c4a['model'][_0x2065('0x41')](_0x18d081),_0x4b160d[_0x2065('0x49')](),_0x803c4a['commands'][_0x2065('0x28')]('imageTypeInline')[_0x2065('0x49')](),_0x803c4a[_0x2065('0x2d')]['get'](_0x2065('0x1b'))[_0x2065('0x49')](),_0x239282=_0x4b160d['value'],_0x239282!=_0x4acbf6[_0x2065('0x2a')])return _0x5f09c8[_0x2065('0x40')](_0x18d081)&&_0x4b160d[_0x2065('0x30')](_0x4acbf6[_0x2065('0x2a')],_0x18d081)?(_0x2f9343({..._0x4acbf6,'setImageSizes':!0x1}),_0x18d081=_0x5f09c8[_0x2065('0x24')](_0x803c4a[_0x2065('0x1d')]['document']['selection']),void _0x19fb5c[_0x2065('0x33')](_0x18d081,{..._0x502f56,'commandReversedParams':[{'value':_0x239282||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5f09c8[_0x2065('0x11')](_0x18d081)?_0x19fb5c[_0x2065('0x33')](_0x18d081,_0x502f56,[],_0x2065('0x3b')):_0x19fb5c['markInlineFormat'](_0x1286a5,_0x502f56,_0x2065('0x3b')));});});for(const _0x4d8f76 of _0x803c4a[_0x2065('0x18')][_0x2065('0x28')](_0x2065('0x1a'))[_0x2065('0x26')])_0x19e01d[_0x4d8f76[_0x2065('0x1')]]=_0x4d8f76[_0x2065('0x10')][_0x2065('0x29')]();_0x19fb5c['_suggestionFactory'][_0x2065('0x4a')](_0x2065('0x13'),_0x2065('0x3'),_0x2065('0x7'),()=>!0x1),_0x19fb5c['_suggestionFactory']['registerCustomCallback'](_0x2065('0x13'),_0x2065('0x3b'),'join',()=>!0x1),_0x19fb5c[_0x2065('0x38')][_0x2065('0x4a')](_0x2065('0x34'),_0x2065('0x3b'),'join',()=>!0x1),_0x19fb5c['_suggestionFactory'][_0x2065('0x4a')](_0x2065('0x13'),'imageStylePreApply',_0x2065('0x31'),([_0x1859df])=>{_0x5f09c8[_0x2065('0x5')](_0x1859df['getContainedElement']());}),_0x19fb5c[_0x2065('0x38')]['registerCustomCallback'](_0x2065('0x13'),_0x2065('0x3'),_0x2065('0x2f'),(_0x464c49,_0x993d74)=>{_0x19fb5c[_0x2065('0x38')][_0x2065('0x46')]('formatBlock','',_0x2065('0x31'))(_0x464c49,{'commandName':_0x993d74[_0x2065('0x22')],'commandParams':_0x993d74[_0x2065('0xa')]});}),_0x19fb5c[_0x2065('0x38')][_0x2065('0x4a')](_0x2065('0x13'),_0x2065('0x3'),'chain',function(_0x31faa6,_0x121f64){if(_0x268a0d(_0x31faa6,_0x121f64))return[_0x31faa6,_0x121f64];if(_0x268a0d(_0x121f64,_0x31faa6))return[_0x121f64,_0x31faa6];return null;});const _0x2c836d=[{'type':_0x2065('0x13'),'subType':_0x2065('0x3')},{'type':'insertion','subType':_0x2065('0x3e')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x2065('0x3a'),'subType':_0x2065('0x25')}];function _0x268a0d(_0x1394e7,_0x305114){const _0x42ed59=_0x2c836d['findIndex'](({type:_0x5e4e79,subType:_0x232ccd})=>_0x1394e7[_0x2065('0x42')]==_0x5e4e79&&_0x1394e7[_0x2065('0x4e')]==_0x232ccd),_0x97f99=_0x2c836d[_0x2065('0x21')](({type:_0x280dc5,subType:_0x115590})=>_0x305114[_0x2065('0x42')]==_0x280dc5&&_0x305114[_0x2065('0x4e')]==_0x115590);if(_0x42ed59<0x0||_0x97f99<0x0)return!0x1;const _0x2df96e=_0x1394e7[_0x2065('0x2')](),_0x34b367=_0x305114[_0x2065('0x2')]();if((0x0==_0x42ed59||0x1==_0x42ed59)&&0x2==_0x97f99&&_0x2df96e[_0x2065('0x15')](_0x34b367))return!0x0;if(0x2==_0x42ed59&&0x3==_0x97f99){const _0x1ef213=_0x19fb5c[_0x2065('0x1f')](_0x2df96e,_0x2065('0x3a'))[_0x2065('0x2b')](({suggestion:_0x576f97,meta:_0x3494a7})=>_0x3494a7['isOwn']&&_0x2065('0x25')==_0x576f97[_0x2065('0x4e')]);if(_0x1ef213['length']>0x1&&_0x34b367[_0x2065('0x1e')][_0x2065('0x17')](_0x2df96e[_0x2065('0x0')]))return!0x0;if(0x1==_0x1ef213[_0x2065('0x6')]&&(_0x2df96e[_0x2065('0x0')][_0x2065('0x17')](_0x34b367[_0x2065('0x1e')])||_0x2df96e[_0x2065('0x1e')][_0x2065('0x17')](_0x34b367['start'])))return!0x0;}if(0x3==_0x42ed59&&0x3==_0x97f99&&_0x2df96e[_0x2065('0x0')]['isBefore'](_0x34b367[_0x2065('0x0')])){const _0x2f3bef=_0x2df96e[_0x2065('0x1e')]['nodeAfter'],_0x5ae8c7=_0x34b367[_0x2065('0x0')][_0x2065('0xc')];return _0x5f09c8['isBlockImage'](_0x2f3bef)&&_0x2f3bef===_0x5ae8c7;}return!0x1;}_0x803c4a['model'][_0x2065('0x20')][_0x2065('0x14')](()=>{let _0x2f98b5=!0x1;const _0x3e6247=Array[_0x2065('0x16')](_0x803c4a[_0x2065('0x1d')][_0x2065('0x20')][_0x2065('0x12')][_0x2065('0x9')]());for(const {name:_0x2652fc,data:_0xc462ac}of _0x3e6247){const {group:_0x5985fa,type:_0x75c07b,subType:_0x6bab87,id:_0x4ccee6}=_0x19fb5c[_0x2065('0x36')](_0x2652fc);if(_0x2065('0x4')==_0x5985fa&&_0x19fb5c['hasSuggestion'](_0x4ccee6)){if(_0x2065('0x13')==_0x75c07b&&(_0x2065('0x3')==_0x6bab87||'imageStylePostApply'==_0x6bab87)){const _0x689f58=_0x19fb5c[_0x2065('0x19')](_0x4ccee6);if(_0xc462ac[_0x2065('0x3c')]){const _0x51f87b=_0x689f58[_0x2065('0x2')]()[_0x2065('0x35')]();if(_0x5f09c8[_0x2065('0x11')](_0x51f87b))continue;_0x19fb5c[_0x2065('0x2e')](_0x689f58),_0x2f98b5=!0x0;}}if('insertion'==_0x75c07b&&_0x2065('0x3e')==_0x6bab87&&!_0xc462ac['newRange']){const _0x146c2e=_0x19fb5c[_0x2065('0x19')](_0x4ccee6);_0x146c2e[_0x2065('0xf')]&&_0x146c2e[_0x2065('0xf')][_0x2065('0x3f')]&&(_0x19fb5c[_0x2065('0x2e')](_0x146c2e[_0x2065('0xf')]),_0x2f98b5=!0x0);}}}return _0x2f98b5;}),this[_0x2065('0x39')](_0x19e01d);}[_0x2065('0x39')](_0x1433c6){const _0x44521d=this[_0x2065('0x48')],_0x26ef72=_0x44521d[_0x2065('0xd')];_0x44521d[_0x2065('0x18')]['get']('TrackChangesEditing')[_0x2065('0x43')][_0x2065('0x4c')](_0x2109ea=>{if('formatBlock'!=_0x2109ea[_0x2065('0x42')]&&'formatInline'!=_0x2109ea[_0x2065('0x42')])return;const {data:_0x270676}=_0x2109ea;if(!_0x270676||'imageStyle'!=_0x270676[_0x2065('0x22')])return;const _0x439d52=_0x270676[_0x2065('0xb')][0x0][_0x2065('0x2a')];return _0xb8c4ff(_0x2065('0x1c')===_0x439d52?_0x11b346(_0x26ef72,_0x2065('0x47')):_0x1433c6[_0x439d52]||_0x439d52);function _0xb8c4ff(_0x44903c){return{'type':_0x2065('0x23'),'content':_0x11b346(_0x26ef72,_0x2065('0x32'),_0x44903c)};}});}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/importword
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the import from Word feature.
|
|
11
11
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2198=['editor','forEach','importWord','_trackChangesExecuted','dataInsert','get','_trackChangesValueDuringImport','commands','execute','_handleImportedData','listenTo','_setSuggestionData','trackChanges','TrackChangesEditing','value','plugins'];(function(_0x67e160,_0x219873){const _0x4966d5=function(_0x2cdae3){while(--_0x2cdae3){_0x67e160['push'](_0x67e160['shift']());}};_0x4966d5(++_0x219873);}(_0x2198,0x7f));const _0x4966=function(_0x67e160,_0x219873){_0x67e160=_0x67e160-0x0;let _0x4966d5=_0x2198[_0x67e160];return _0x4966d5;};import{Plugin as _0x911bbb}from'ckeditor5/src/core.js';export default class nt extends _0x911bbb{constructor(_0x14cab5){super(_0x14cab5),this[_0x4966('0x7')]=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x45c014=this[_0x4966('0x1')],_0x45b0b4=_0x45c014['commands'][_0x4966('0x6')](_0x4966('0x3')),_0x1e10d5=_0x45c014[_0x4966('0x8')]['get'](_0x4966('0xd'));_0x45b0b4&&(_0x45b0b4['on']('execute',(_0x552ab3,[,_0x5dbb47])=>{this['_trackChangesValueDuringImport']=_0x1e10d5['value'],_0x5dbb47['collaboration_features']['track_changes']=!this[_0x4966('0x7')];},{'priority':'high'}),this['listenTo'](_0x45b0b4,_0x4966('0x5'),this[_0x4966('0xa')]['bind'](this)),this[_0x4966('0xb')](_0x45b0b4,_0x4966('0x5'),()=>{this[_0x4966('0x4')]&&(_0x1e10d5[_0x4966('0x9')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x45c014[_0x4966('0x0')][_0x4966('0x6')](_0x4966('0xe'))['enableCommand'](_0x4966('0x3')));}[_0x4966('0xa')](_0x9e47f,_0x2b7fcc){const {suggestions:_0x54428b}=_0x2b7fcc,_0x35ef0d=this['editor'][_0x4966('0x8')]['get']('trackChanges'),_0x5056da=_0x35ef0d[_0x4966('0xf')];this[_0x4966('0x7')]!==_0x5056da&&(_0x35ef0d[_0x4966('0x9')](),this[_0x4966('0x4')]=!0x0),_0x54428b&&_0x54428b[_0x4966('0x2')](({id:_0x346346,type:_0x568a8d,author:_0x467e61,created_at:_0x949e70})=>{const _0xe36b75={'id':_0x346346,'type':_0x568a8d,'authorId':this[_0x4966('0x1')][_0x4966('0x0')][_0x4966('0x6')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x467e61,'createdAt':_0x949e70?new Date(_0x949e70):new Date(),'source':'importWord'}}};this[_0x4966('0x1')][_0x4966('0x0')][_0x4966('0x6')](_0x4966('0xe'))[_0x4966('0xc')](_0xe36b75);});}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/indent
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
11
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5820=['FORMAT_INDENT','enableCommand','_descriptionFactory','indent','IndentEditing','get','getItemLabel','_registerBlockAttribute','has','locale','plugins','outdent','IndentBlock','*Indent:*\x20%0','afterInit','outdentBlock','commandName','formatBlock','editor','blockIndent','registerAttributeLabel','_registerLegacyDescription','indentBlock','format'];(function(_0x5acced,_0x582002){const _0x36f211=function(_0x1889ba){while(--_0x1889ba){_0x5acced['push'](_0x5acced['shift']());}};_0x36f211(++_0x582002);}(_0x5820,0x1e1));const _0x36f2=function(_0x5acced,_0x582002){_0x5acced=_0x5acced-0x0;let _0x36f211=_0x5820[_0x5acced];return _0x36f211;};import{Plugin as _0x26bdcf}from'ckeditor5/src/core.js';import{getTranslation as _0x509018}from'../utils/common-translations.js';export default class ot extends _0x26bdcf{[_0x36f2('0xd')](){const _0x5a8d63=this[_0x36f2('0x11')],_0x38da08=_0x5a8d63[_0x36f2('0x9')][_0x36f2('0x4')]('TrackChangesEditing');if(_0x5a8d63[_0x36f2('0x9')][_0x36f2('0x7')](_0x36f2('0x3'))&&(_0x38da08[_0x36f2('0x0')](_0x36f2('0x2')),_0x38da08[_0x36f2('0x0')](_0x36f2('0xa'))),_0x5a8d63[_0x36f2('0x9')][_0x36f2('0x7')](_0x36f2('0xb')))for(const _0x440d8e of[_0x36f2('0x15'),_0x36f2('0xe')])_0x38da08['_enableDefaultAttributesIntegration'](_0x440d8e);const _0x1659e4=_0x5a8d63[_0x36f2('0x8')];_0x38da08[_0x36f2('0x6')]('blockIndent'),_0x38da08[_0x36f2('0x1')][_0x36f2('0x13')](_0x36f2('0x12'),_0x509018(_0x1659e4,_0x36f2('0x17'))),this['_registerLegacyDescription']();}[_0x36f2('0x14')](){const _0x3fd382=this['editor'],_0x3a065f=_0x3fd382[_0x36f2('0x8')],_0x4dc1dd=_0x3fd382['plugins'][_0x36f2('0x4')]('TrackChangesEditing');_0x4dc1dd[_0x36f2('0x1')]['registerDescriptionCallback'](_0x30648e=>{if(_0x36f2('0x10')!=_0x30648e['type'])return;const {data:_0x16d4a9}=_0x30648e;if(!_0x16d4a9)return;if(_0x36f2('0x15')!=_0x16d4a9[_0x36f2('0xf')]&&_0x36f2('0xe')!=_0x16d4a9[_0x36f2('0xf')])return;const _0x14c287=_0x30648e['getItems']()[0x0],_0x3fd84f=_0x4dc1dd[_0x36f2('0x1')][_0x36f2('0x5')](_0x14c287);return _0x36f2('0x15')==_0x16d4a9[_0x36f2('0xf')]?{'type':_0x36f2('0x16'),'content':_0x509018(_0x3a065f,_0x36f2('0xc'),_0x3fd84f)}:'outdentBlock'==_0x16d4a9[_0x36f2('0xf')]?{'type':_0x36f2('0x16'),'content':_0x509018(_0x3a065f,'*Outdent:*\x20%0',_0x3fd84f)}:void 0x0;});}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/inputcommand/inputcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Input } from 'ckeditor5/src/typing';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Input } from 'ckeditor5/src/typing.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
12
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x507d=['enableCommand','requires','TrackChangesEditing','init','editor','get','plugins'];(function(_0x57398c,_0x507d02){var _0x2f23cb=function(_0x151f16){while(--_0x151f16){_0x57398c['push'](_0x57398c['shift']());}};_0x2f23cb(++_0x507d02);}(_0x507d,0x7a));var _0x2f23=function(_0x57398c,_0x507d02){_0x57398c=_0x57398c-0x0;var _0x2f23cb=_0x507d[_0x57398c];return _0x2f23cb;};import{Plugin as _0xfa0624}from'ckeditor5/src/core.js';import{Input as _0x134c20}from'ckeditor5/src/typing.js';export default class rt extends _0xfa0624{static get[_0x2f23('0x5')](){return[_0x134c20];}[_0x2f23('0x0')](){this[_0x2f23('0x1')][_0x2f23('0x3')][_0x2f23('0x2')](_0x2f23('0x6'))[_0x2f23('0x4')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3337=['plugins','newValue','key','get','link\x20(','label','format','formatInline','TrackChangesEditing','locale','commands','_descriptionFactory','*Remove\x20link*','LinkEditing','*Set\x20link:*\x20%0','commandName','unlink','manualDecorators','afterInit','type','_enableDefaultAttributesIntegration','editor','registerDescriptionCallback','has','_registerLegacyDescription','link'];(function(_0x3da7d8,_0x333765){const _0x4cbf79=function(_0x44c57a){while(--_0x44c57a){_0x3da7d8['push'](_0x3da7d8['shift']());}};_0x4cbf79(++_0x333765);}(_0x3337,0x167));const _0x4cbf=function(_0x3da7d8,_0x333765){_0x3da7d8=_0x3da7d8-0x0;let _0x4cbf79=_0x3337[_0x3da7d8];return _0x4cbf79;};import{Plugin as _0x300acb}from'ckeditor5/src/core.js';import{getTranslation as _0x5d2a9f}from'../utils/common-translations.js';export default class at extends _0x300acb{[_0x4cbf('0x17')](){const _0x3329ef=this[_0x4cbf('0x0')];if(!_0x3329ef['plugins'][_0x4cbf('0x2')](_0x4cbf('0x12')))return;const _0x278ea2=_0x3329ef[_0x4cbf('0x5')][_0x4cbf('0x8')]('TrackChangesEditing'),_0x31d196=_0x3329ef[_0x4cbf('0xf')][_0x4cbf('0x8')](_0x4cbf('0x4'));_0x278ea2[_0x4cbf('0x19')](_0x4cbf('0x4'),['linkHref',..._0x31d196[_0x4cbf('0x16')]['map'](_0x1d6a8b=>_0x1d6a8b['id'])]),_0x278ea2[_0x4cbf('0x19')](_0x4cbf('0x15'));for(const _0x2b29b8 of _0x31d196[_0x4cbf('0x16')])_0x278ea2[_0x4cbf('0x10')]['registerAttributeLabel'](_0x2b29b8['id'],_0x4cbf('0x9')+_0x2b29b8[_0x4cbf('0xa')]['toLowerCase']()+')');_0x278ea2[_0x4cbf('0x10')][_0x4cbf('0x1')](_0x44f060=>{if('attribute'!=_0x44f060[_0x4cbf('0x18')])return;const {data:_0x4d9b6b}=_0x44f060;if(!_0x4d9b6b||'linkHref'!=_0x4d9b6b[_0x4cbf('0x7')])return;const _0x111f7a=_0x4d9b6b[_0x4cbf('0x6')],_0x5b2484=_0x3329ef[_0x4cbf('0xe')];return{'type':_0x4cbf('0xb'),'content':null==_0x111f7a?_0x5d2a9f(_0x5b2484,_0x4cbf('0x11')):_0x5d2a9f(_0x5b2484,_0x4cbf('0x13'),'\x22'+_0x111f7a+'\x22')};}),this[_0x4cbf('0x3')]();}[_0x4cbf('0x3')](){const _0xdf50a8=this[_0x4cbf('0x0')],_0x4aceba=_0xdf50a8[_0x4cbf('0xe')];_0xdf50a8['plugins']['get'](_0x4cbf('0xd'))[_0x4cbf('0x10')]['registerDescriptionCallback'](_0x5447fa=>{if(_0x4cbf('0xc')!=_0x5447fa[_0x4cbf('0x18')])return;const {data:_0x47aff2}=_0x5447fa;if(_0x47aff2){if(_0x4cbf('0x4')==_0x47aff2[_0x4cbf('0x14')]){const _0xbb840d=_0x47aff2['commandParams'][0x0];return{'type':_0x4cbf('0xb'),'content':_0x5d2a9f(_0x4aceba,_0x4cbf('0x13'),'\x22'+_0xbb840d+'\x22')};}return'unlink'==_0x47aff2['commandName']?{'type':_0x4cbf('0xb'),'content':_0x5d2a9f(_0x4aceba,_0x4cbf('0x11'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xef00=['plugins','type','listItem','afterInit','markBlockFormat','name','locale','forceValue','formatInline','add','indentList','end','createRange','has','ListEditing','commandParams','ELEMENT_BULLETED_LIST','*Uncheck\x20item*','formatBlock','_descriptionFactory','before','createPositionAt','checkChild','editor','*Check\x20item*','nextSibling','listType','format','commands','todoList','commandName','bulletedList','from','schema','get','previousSibling','blockName','slice','registerDescriptionCallback','checkTodoList','model','length','listIndent','element','getSelectedBlocks','ELEMENT_TODO_LIST','paragraph','ELEMENT_NUMBERED_LIST','parent','document','numberedList','value','selection','numbered','*Indent:*\x20%0','*Change\x20to:*\x20%0','enableCommand','List','change','execute','ELEMENT_LIST_ITEM','registerElementLabel','outdentList','TodoListEditing','bulleted','todoListChecked','getAttribute','filter','todo'];(function(_0x17bd15,_0xef00eb){const _0x374a4d=function(_0x30d05a){while(--_0x30d05a){_0x17bd15['push'](_0x17bd15['shift']());}};_0x374a4d(++_0xef00eb);}(_0xef00,0xc7));const _0x374a=function(_0x17bd15,_0xef00eb){_0x17bd15=_0x17bd15-0x0;let _0x374a4d=_0xef00[_0x17bd15];return _0x374a4d;};import{Plugin as _0x3051ba}from'ckeditor5/src/core.js';import{getTranslation as _0x3b5c94}from'../utils/common-translations.js';export default class ct extends _0x3051ba{[_0x374a('0xb')](){const _0x347400=this[_0x374a('0x1f')],_0x12f48e=_0x347400[_0x374a('0xe')];if(!_0x347400[_0x374a('0x8')][_0x374a('0x15')](_0x374a('0x16')))return;const _0x389e46=_0x347400[_0x374a('0x8')]['get']('TrackChangesEditing'),_0x5052e6=_0x347400['plugins'][_0x374a('0x15')](_0x374a('0x2'));function _0x130e37(_0x5bc96e){return()=>{const _0x9c7e6=_0x347400[_0x374a('0x30')][_0x374a('0x39')][_0x374a('0x3c')],_0x263f57=_0x347400[_0x374a('0x24')][_0x374a('0x2a')](_0x5bc96e);if(_0x263f57[_0x374a('0x3b')])return void _0x347400[_0x374a('0x43')](_0x374a('0x36'),{});const _0xe74ae9=_0x5bc96e[_0x374a('0x2d')](0x0,-0x4),_0x29a2b2=function(_0x70e87f,_0xfbb22e,_0x312704){let _0x4e72c6=Array[_0x374a('0x28')](_0x70e87f)[_0x374a('0x6')](_0x27ecf9=>function(_0x2c60ea,_0x5295bd){return _0x5295bd[_0x374a('0x1e')](_0x2c60ea[_0x374a('0x38')],_0x374a('0xa'))&&!_0x5295bd['isObject'](_0x2c60ea);}(_0x27ecf9,_0x312704));_0x4e72c6=_0x4e72c6[_0x374a('0x6')](_0x53b0fc=>!_0x53b0fc['is']('element',_0x374a('0xa'))||_0x53b0fc[_0x374a('0x5')](_0x374a('0x22'))!=_0xfbb22e);const _0x23d611=new Set();for(const _0x3f8450 of _0x4e72c6)_0x3f8450['is'](_0x374a('0x33'),'listItem')?_0x23d611[_0x374a('0x11')](ne(_0x3f8450)):_0x23d611['add'](_0x3f8450);return Array[_0x374a('0x28')](_0x23d611);}(_0x9c7e6[_0x374a('0x34')](),_0xe74ae9,_0x347400[_0x374a('0x30')][_0x374a('0x29')]);_0x347400[_0x374a('0x30')][_0x374a('0x42')](()=>{for(const _0x285ab6 of _0x29a2b2)_0x389e46[_0x374a('0xc')](_0x285ab6,{'commandName':_0x5bc96e,'commandParams':[{'forceValue':!_0x263f57['value']}],'formatGroupId':_0x374a('0x2c')},oe(_0x285ab6));});};}function _0x3c5e4e(_0x4ff378){return()=>{const _0x55e19d=function(_0x258c87){let _0x2a12e4=Array[_0x374a('0x28')](_0x258c87);const _0x308c3c=_0x2a12e4['findIndex'](_0x5f8f80=>_0x374a('0xa')!=_0x5f8f80[_0x374a('0xd')]);return _0x308c3c>-0x1&&(_0x2a12e4=_0x2a12e4[_0x374a('0x2d')](0x0,_0x308c3c)),_0x2a12e4;}(_0x347400[_0x374a('0x30')]['document'][_0x374a('0x3c')][_0x374a('0x34')]()),_0x4e417b=_0x347400[_0x374a('0x30')][_0x374a('0x14')](_0x347400[_0x374a('0x30')]['createPositionAt'](_0x55e19d[0x0],_0x374a('0x1c')),_0x347400[_0x374a('0x30')][_0x374a('0x1d')](_0x55e19d[_0x55e19d[_0x374a('0x31')]-0x1],_0x374a('0x13')));_0x347400[_0x374a('0x30')][_0x374a('0x42')](()=>{_0x389e46['markBlockFormat'](_0x4e417b,{'commandName':_0x4ff378,'commandParams':[],'formatGroupId':_0x374a('0x32')},function(_0x205328){const _0x6c8cdd=new Set();for(const _0x3bdea2 of _0x205328){let _0x2104f2=_0x3bdea2[_0x374a('0x21')];for(;_0x2104f2&&_0x2104f2['getAttribute'](_0x374a('0x32'))>_0x3bdea2[_0x374a('0x5')](_0x374a('0x32'));)_0x6c8cdd[_0x374a('0x11')](_0x2104f2),_0x2104f2=_0x2104f2[_0x374a('0x21')];}return Array[_0x374a('0x28')](_0x6c8cdd);}(_0x55e19d));});};}_0x389e46[_0x374a('0x40')](_0x374a('0x3a'),_0x130e37(_0x374a('0x3a'))),_0x389e46['enableCommand'](_0x374a('0x27'),_0x130e37('bulletedList')),_0x5052e6&&_0x389e46['enableCommand'](_0x374a('0x25'),_0x130e37('todoList')),_0x389e46[_0x374a('0x40')](_0x374a('0x12'),_0x3c5e4e(_0x374a('0x12'))),_0x389e46[_0x374a('0x40')]('outdentList',_0x3c5e4e(_0x374a('0x1'))),_0x5052e6&&_0x389e46[_0x374a('0x40')](_0x374a('0x2f'),()=>{const _0x2d643a=_0x347400['commands'][_0x374a('0x2a')](_0x374a('0x2f')),_0x1b1605=Array[_0x374a('0x28')](_0x2d643a['_selectedElements']);_0x1b1605[_0x374a('0x6')](_0x41e3e7=>_0x41e3e7['getAttribute'](_0x374a('0x4'))!=_0x2d643a[_0x374a('0x3b')]),_0x347400['model']['change'](()=>{for(const _0x2c2a65 of _0x1b1605)_0x389e46[_0x374a('0xc')](_0x2c2a65,{'commandName':_0x374a('0x2f'),'commandParams':[{'forceValue':!_0x2d643a['value']}]});});}),_0x389e46[_0x374a('0x1b')][_0x374a('0x0')](_0x374a('0xa'),_0x177a5a=>_0x3b5c94(_0x12f48e,'ELEMENT_LIST_ITEM',_0x177a5a)),_0x389e46[_0x374a('0x1b')][_0x374a('0x2e')](_0x3ec14d=>{if(_0x374a('0x1a')!=_0x3ec14d[_0x374a('0x9')]&&_0x374a('0x10')!=_0x3ec14d[_0x374a('0x9')])return;const {data:_0x5bb523}=_0x3ec14d;if(_0x5bb523){if(_0x374a('0x3a')==_0x5bb523[_0x374a('0x26')]||_0x374a('0x27')==_0x5bb523[_0x374a('0x26')]||_0x374a('0x25')==_0x5bb523[_0x374a('0x26')])switch(_0x5bb523[_0x374a('0x26')]['replace'](_0x374a('0x41'),'')){case _0x374a('0x3'):return _0x5556ab(_0x3b5c94(_0x12f48e,_0x374a('0x18')));case _0x374a('0x3d'):return _0x5556ab(_0x3b5c94(_0x12f48e,_0x374a('0x37')));case _0x374a('0x7'):return _0x5556ab(_0x3b5c94(_0x12f48e,_0x374a('0x35')));}if(_0x374a('0x12')==_0x5bb523[_0x374a('0x26')])return{'type':_0x374a('0x23'),'content':_0x3b5c94(_0x12f48e,_0x374a('0x3e'),_0x3b5c94(_0x12f48e,_0x374a('0x44')))};if(_0x374a('0x1')==_0x5bb523[_0x374a('0x26')])return{'type':_0x374a('0x23'),'content':_0x3b5c94(_0x12f48e,'*Outdent:*\x20%0',_0x3b5c94(_0x12f48e,_0x374a('0x44')))};if('checkTodoList'==_0x5bb523[_0x374a('0x26')])return _0x5bb523[_0x374a('0x17')][0x0][_0x374a('0xf')]?{'type':'format','content':_0x3b5c94(_0x12f48e,_0x374a('0x20'))}:{'type':'format','content':_0x3b5c94(_0x12f48e,_0x374a('0x19'))};}function _0x5556ab(_0x5b8e2){return{'type':_0x374a('0x23'),'content':_0x3b5c94(_0x12f48e,_0x374a('0x3f'),_0x5b8e2)};}});}}function ne(_0x36fe3b){const _0x1f94ad=_0x36fe3b[_0x374a('0x5')](_0x374a('0x32'));if(0x0==_0x1f94ad)return _0x36fe3b;let _0x373a47=_0x36fe3b;for(;_0x36fe3b['previousSibling']&&_0x36fe3b['previousSibling']['is'](_0x374a('0x33'),'listItem');){const _0x373cd1=_0x36fe3b[_0x374a('0x2b')]['getAttribute'](_0x374a('0x32'));if(_0x373cd1==_0x1f94ad)_0x373a47=_0x36fe3b[_0x374a('0x2b')];else{if(_0x373cd1<_0x1f94ad)break;}_0x36fe3b=_0x36fe3b[_0x374a('0x2b')];}return _0x373a47;}function oe(_0x588009){const _0x156900=[];if(_0x588009['is']('element',_0x374a('0xa'))&&_0x588009['getAttribute'](_0x374a('0x32'))>0x0){let _0x3bd5de=_0x588009[_0x374a('0x21')];for(;_0x3bd5de&&'listItem'==_0x3bd5de[_0x374a('0xd')]&&_0x3bd5de[_0x374a('0x5')](_0x374a('0x32'))==_0x588009[_0x374a('0x5')](_0x374a('0x32'));)_0x156900['push'](_0x3bd5de),_0x3bd5de=_0x3bd5de[_0x374a('0x21')];}return _0x156900;}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/listproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
12
|
* Provides track changes plugin integration for list properties feature.
|
|
13
13
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f94=['has','type','replace','formatBlock','*Format:*\x20set\x20order\x20to\x20regular','createRange','getAttribute','selection','listType','document','toUpperCase','reversed','handleListStartCommand','styles','enableCommand','format','map','getFirstPosition','*Format:*\x20set\x20start\x20index\x20to\x20%0','before','startIndex','markMultiRangeBlockFormat','handleListStyleCommand','getSiblingNodes','length','_getSuggestionBlocks','handleListReversedCommand','getListTypeFromListStyleType','from','locale','commandName','ListUtils','_getTranslationKeyForListStyle','change','getLastPosition','*Change\x20to:*\x20%0','commandParams','listReversed','filter','getSelectedBlocks','listStyle','numbered','listItem','editor','_descriptionFactory','list.properties','config','TrackChangesEditing','model','ListPropertiesEditing','forward','parent','get','registerDescriptionCallback','element','listStart','plugins','handleDescriptions','createPositionAt','push','bind','backward'];(function(_0x1b597d,_0x3f94cb){const _0x517f08=function(_0x1a6f95){while(--_0x1a6f95){_0x1b597d['push'](_0x1b597d['shift']());}};_0x517f08(++_0x3f94cb);}(_0x3f94,0xd6));const _0x517f=function(_0x1b597d,_0x3f94cb){_0x1b597d=_0x1b597d-0x0;let _0x517f08=_0x3f94[_0x1b597d];return _0x517f08;};import{Plugin as _0x5caa08}from'ckeditor5/src/core.js';import{getTranslation as _0x4ce1c8}from'../utils/common-translations.js';export default class ut extends _0x5caa08{['afterInit'](){if(!this[_0x517f('0xf')][_0x517f('0x1c')][_0x517f('0x22')](_0x517f('0x15')))return;const _0x239b2f=this[_0x517f('0xf')][_0x517f('0x12')][_0x517f('0x18')](_0x517f('0x11')),_0x42a31a=this[_0x517f('0xf')][_0x517f('0x1c')][_0x517f('0x18')](_0x517f('0x13'));_0x239b2f[_0x517f('0x2f')]&&_0x42a31a[_0x517f('0x30')](_0x517f('0xc'),this[_0x517f('0x38')][_0x517f('0x20')](this)),_0x239b2f[_0x517f('0x2d')]&&_0x42a31a[_0x517f('0x30')](_0x517f('0x9'),this[_0x517f('0x3c')]['bind'](this)),_0x239b2f[_0x517f('0x36')]&&_0x42a31a['enableCommand'](_0x517f('0x1b'),this[_0x517f('0x2e')]['bind'](this)),_0x42a31a[_0x517f('0x10')][_0x517f('0x19')](this[_0x517f('0x1d')][_0x517f('0x20')](this));}[_0x517f('0x38')](_0x4fbe83,_0x2672e2={}){const _0x1ec3df=this[_0x517f('0xf')][_0x517f('0x1c')][_0x517f('0x18')](_0x517f('0x13')),_0x169f16=this['_getSuggestionBlocksForListStyle']();this[_0x517f('0xf')]['model']['change'](()=>{_0x1ec3df['markMultiRangeBlockFormat'](_0x169f16,{'commandName':_0x517f('0xc'),'commandParams':[{'type':_0x2672e2[_0x517f('0x23')]}],'formatGroupId':_0x517f('0xc')});});}[_0x517f('0x3c')](_0x587e36,_0x574afc={}){const _0x4b25ce=this[_0x517f('0xf')][_0x517f('0x1c')][_0x517f('0x18')](_0x517f('0x13')),_0x3ba1c1=this[_0x517f('0x3b')](_0x236965=>_0x236965['is'](_0x517f('0x1a'),_0x517f('0xe'))&&_0x517f('0xd')===_0x236965[_0x517f('0x28')](_0x517f('0x2a')));if(_0x3ba1c1[_0x517f('0x3a')]<0x1)return;const _0x320dac=_0x3ba1c1['map'](_0x59e8bc=>this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x27')](this[_0x517f('0xf')][_0x517f('0x14')]['createPositionAt'](_0x59e8bc,_0x517f('0x35')),this[_0x517f('0xf')][_0x517f('0x14')]['createPositionAt'](_0x59e8bc,0x0)));this[_0x517f('0xf')]['model'][_0x517f('0x5')](()=>{_0x4b25ce[_0x517f('0x37')](_0x320dac,{'commandName':_0x517f('0x9'),'commandParams':[{'reversed':_0x574afc['reversed']}],'formatGroupId':_0x517f('0x9')});});}[_0x517f('0x2e')](_0x2436bf,_0x37b2e4={}){const _0x4d4eba=this[_0x517f('0xf')]['plugins']['get'](_0x517f('0x13')),_0x59203c=this[_0x517f('0x3b')](_0xcd0615=>_0xcd0615['is'](_0x517f('0x1a'),_0x517f('0xe'))&&'numbered'===_0xcd0615[_0x517f('0x28')](_0x517f('0x2a')));if(_0x59203c[_0x517f('0x3a')]<0x1)return;const _0x925338=_0x59203c[_0x517f('0x32')](_0x53deb0=>this['editor'][_0x517f('0x14')]['createRange'](this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x1e')](_0x53deb0,_0x517f('0x35')),this['editor'][_0x517f('0x14')][_0x517f('0x1e')](_0x53deb0,0x0)));this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x5')](()=>{_0x4d4eba['markMultiRangeBlockFormat'](_0x925338,{'commandName':_0x517f('0x1b'),'commandParams':[{'startIndex':_0x37b2e4[_0x517f('0x36')]}],'formatGroupId':_0x517f('0x1b')});});}[_0x517f('0x1d')](_0x4203aa){if(_0x517f('0x25')!=_0x4203aa['type']&&'formatInline'!=_0x4203aa[_0x517f('0x23')])return;const _0x2bdd4d=this[_0x517f('0xf')][_0x517f('0x1')],{data:_0x49cb44}=_0x4203aa;if(!_0x49cb44)return;let _0x3c4c47,_0x386103;switch(_0x49cb44[_0x517f('0x2')]){case _0x517f('0xc'):_0x3c4c47=_0x517f('0x7'),_0x386103={'type':_0x517f('0x31'),'content':_0x4ce1c8(_0x2bdd4d,_0x3c4c47,_0x4ce1c8(_0x2bdd4d,this[_0x517f('0x4')](_0x49cb44[_0x517f('0x8')][0x0][_0x517f('0x23')])))};break;case _0x517f('0x9'):_0x3c4c47=_0x49cb44['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':_0x517f('0x26'),_0x386103={'type':_0x517f('0x31'),'content':_0x4ce1c8(_0x2bdd4d,_0x3c4c47)};break;case _0x517f('0x1b'):_0x3c4c47=_0x517f('0x34'),_0x386103={'type':_0x517f('0x31'),'content':_0x4ce1c8(_0x2bdd4d,_0x3c4c47,_0x49cb44['commandParams'][0x0][_0x517f('0x36')])};}return _0x386103;}['_getSuggestionBlocksForListStyle'](){var _0x5bd5ed,_0x4eb483,_0x348b0e,_0x179f53;const _0x1f2702=this[_0x517f('0xf')]['plugins'][_0x517f('0x18')](_0x517f('0x3'));let _0x3080cd=Array[_0x517f('0x0')](this[_0x517f('0xf')][_0x517f('0x14')]['document']['selection'][_0x517f('0xb')]());return(null===(_0x5bd5ed=_0x3080cd[0x0])||void 0x0===_0x5bd5ed?void 0x0:_0x5bd5ed['is'](_0x517f('0x1a'),'listItem'))&&_0x3080cd['unshift'](..._0x1f2702[_0x517f('0x39')](this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x2b')][_0x517f('0x29')][_0x517f('0x33')](),_0x517f('0x21'))),(null===(_0x4eb483=_0x3080cd[_0x3080cd[_0x517f('0x3a')]-0x1])||void 0x0===_0x4eb483?void 0x0:_0x4eb483['is'](_0x517f('0x1a'),'listItem'))&&_0x3080cd[_0x517f('0x1f')](..._0x1f2702[_0x517f('0x39')](this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x2b')][_0x517f('0x29')][_0x517f('0x6')](),'forward')),_0x3080cd=[...new Set(_0x3080cd)],(null===(_0x179f53=null===(_0x348b0e=this[_0x517f('0xf')]['model'][_0x517f('0x2b')][_0x517f('0x29')][_0x517f('0x33')]())||void 0x0===_0x348b0e?void 0x0:_0x348b0e[_0x517f('0x17')])||void 0x0===_0x179f53?void 0x0:_0x179f53['is'](_0x517f('0x1a'),'listItem'))&&(_0x3080cd=_0x3080cd[_0x517f('0xa')](_0x31bc4b=>_0x31bc4b['is']('element','listItem'))),_0x3080cd;}[_0x517f('0x3b')](_0x37f8ca){const _0x274a49=this[_0x517f('0xf')]['plugins'][_0x517f('0x18')](_0x517f('0x3'));let _0x56b844=Array[_0x517f('0x0')](this[_0x517f('0xf')][_0x517f('0x14')]['document'][_0x517f('0x29')][_0x517f('0xb')]())[_0x517f('0xa')](_0x37f8ca)['map'](_0x453188=>{const _0x2b6bc2=this[_0x517f('0xf')][_0x517f('0x14')][_0x517f('0x1e')](_0x453188,0x0);return[..._0x274a49[_0x517f('0x39')](_0x2b6bc2,_0x517f('0x21')),..._0x274a49[_0x517f('0x39')](_0x2b6bc2,_0x517f('0x16'))];})['flat']();return _0x56b844=[...new Set(_0x56b844)],_0x56b844;}[_0x517f('0x4')](_0x2cc249){return'ELEMENT_'+this['editor']['plugins'][_0x517f('0x18')](_0x517f('0x3'))[_0x517f('0x3d')](_0x2cc249)[_0x517f('0x2c')]()+'_LIST_'+_0x2cc249['toUpperCase']()[_0x517f('0x24')](/-/g,'_');}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/mediaembed
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
|
|
11
11
|
*/
|