@ckeditor/ckeditor5-track-changes 35.2.0 → 35.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f62=['get','subType','getClosestSelectedImageElement','isBlockImage','normalizedStyles','ImageUploadEditing','imageTextAlternative','backward','markDeletion','getFirstRange','alt','imageTypeInline','author','ImageTextAlternativeEditing','model','isInContent','getSuggestions','nodeAfter','newValue','_suggestionFactory','length','convertBlockImageToInline','name','ImageUtils','element','join','schema','Users','isIntersecting','discard','imageStyle','ELEMENT_IMAGE','addObject','*Set\x20image\x20width:*\x20%0','selection','locale','previous','ELEMENT_CAPTION','start','markInlineFormat','getAttribute','side','registerElementLabel','TrackChangesEditing','toNext','markBlockFormat','title','insertion','newRange','fromPosition','createRangeOn','isBefore','imageStylePostApply','filter','*Reset\x20image\x20width*','ImageResize','forEach','commandParams','change','*Format:*\x20%0','*Set\x20image\x20text\x20alternative:*\x20%0','afterInit','formatBlock','ImageInlineEditing','plugins','end','getContainedElement','getSuggestionCallback','ImageStyleEditing','suggestion','hasAttribute','isOwn','ImageCaptionUtils','refresh','registerCustomCallback','document','forward','removeObject','getNearestSelectionRange','getCaptionFromImageModelElement','isEqual','find','resizeImage','commands','_descriptionFactory','commandReversedParams','next','isCollapsed','format','getChangedMarkers','enableCommand','commandName','Inline\x20image\x20to\x20block\x20image','discardSuggestion','forceDefaultExecution','detach','ImageCaptionEditing','width','chain','registerDescriptionCallback','_findSuggestions','convertInlineImageToBlock','ELEMENT_INLINE_IMAGE','formatInline','createRange','findIndex','caption','Block\x20image\x20to\x20inline\x20image','accept','*Remove\x20image\x20text\x20alternative*','markInsertion','imageTypeBlock','ImageEditing','value','head','imageStylePreApply','getSuggestion','imageCaption','type','has'];(function(_0x25abc9,_0x4f6255){const _0x4399f3=function(_0x1269dd){while(--_0x1269dd){_0x25abc9['push'](_0x25abc9['shift']());}};_0x4399f3(++_0x4f6255);}(_0x4f62,0x102));const _0x4399=function(_0x25abc9,_0x4f6255){_0x25abc9=_0x25abc9-0x0;let _0x4399f3=_0x4f62[_0x25abc9];return _0x4399f3;};import{Plugin as _0x59457e}from'ckeditor5/src/core';import{LivePosition as _0x2ada7a}from'ckeditor5/src/engine';import{uid as _0x2d0bd2}from'ckeditor5/src/utils';import{getTranslation as _0x27528b}from'../utils/common-translations';export default class V extends _0x59457e{[_0x4399('0x2b')](){const _0x4a7357=this['editor'];if(!_0x4a7357[_0x4399('0x2e')]['has'](_0x4399('0x5e')))return;const _0x2bca1c=_0x4a7357[_0x4399('0x2e')][_0x4399('0x66')](_0x4399('0x19')),_0x4f0c03=_0x4a7357[_0x4399('0x2e')][_0x4399('0x66')](_0x4399('0x5')),_0x1b39e2={},_0x1958ac=_0x4a7357[_0x4399('0x11')];if(_0x2bca1c['enableCommand']('insertImage'),_0x2bca1c[_0x4399('0x42')]['registerElementLabel']('imageBlock',_0x5bdb4a=>_0x27528b(_0x1958ac,_0x4399('0xd'),_0x5bdb4a)),_0x2bca1c[_0x4399('0x42')][_0x4399('0x18')]('imageInline',_0x27f5eb=>_0x27528b(_0x1958ac,_0x4399('0x54'),_0x27f5eb)),_0x2bca1c[_0x4399('0x42')][_0x4399('0x18')](_0x4399('0x58'),_0x27528b(_0x1958ac,_0x4399('0x13'))),_0x4a7357[_0x4399('0x2e')][_0x4399('0x65')](_0x4399('0x6b'))&&_0x2bca1c['enableCommand']('uploadImage'),_0x4a7357[_0x4399('0x2e')][_0x4399('0x65')]('ImageBlockEditing')&&_0x4a7357['plugins']['has'](_0x4399('0x2d'))&&(_0x2bca1c[_0x4399('0x48')](_0x4399('0x71'),(_0x167ed7,_0x5bcadd)=>{const _0x227412=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')][_0x4399('0x10')]);_0x4a7357[_0x4399('0x74')][_0x4399('0x28')](()=>{_0x2bca1c[_0x4399('0x1b')](_0x227412,{'commandName':_0x4399('0x71'),'commandParams':[_0x5bcadd]},[],_0x4399('0x3'));});}),_0x2bca1c[_0x4399('0x48')](_0x4399('0x5d'),(_0x4b1993,_0x1c1ad7)=>{_0x4a7357[_0x4399('0x74')][_0x4399('0x28')](_0x7c1e2b=>{let _0x4c0f38=_0x4f0c03['getClosestSelectedImageElement'](_0x4a7357['model'][_0x4399('0x39')][_0x4399('0x10')]),_0xb00c21=_0x7c1e2b['createRangeOn'](_0x4c0f38);const _0x599976=_0x2ada7a[_0x4399('0x1f')](_0xb00c21['start'],'toPrevious'),_0x338c8a=_0x2ada7a[_0x4399('0x1f')](_0xb00c21[_0x4399('0x2f')],_0x4399('0x1a'));_0x2bca1c[_0x4399('0x4c')](()=>_0x4b1993(_0x1c1ad7)),_0x4c0f38=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')][_0x4399('0x10')]),_0xb00c21=_0x7c1e2b['createRangeOn'](_0x4c0f38);const _0x3c3db3=_0x7c1e2b[_0x4399('0x56')](_0x599976,_0x338c8a);_0x599976[_0x4399('0x4d')](),_0x338c8a[_0x4399('0x4d')](),_0x2bca1c['markBlockFormat'](_0x4c0f38,{'commandName':'imageTypeInline'},[],'convertInlineImageToBlock'),_0x3c3db3[_0x4399('0x14')]['isBefore'](_0xb00c21[_0x4399('0x14')])&&_0x2bca1c[_0x4399('0x5c')](_0x7c1e2b['createRange'](_0x3c3db3[_0x4399('0x14')],_0xb00c21[_0x4399('0x14')]),'convertInlineImageToBlock'),_0xb00c21[_0x4399('0x2f')][_0x4399('0x21')](_0x3c3db3[_0x4399('0x2f')])&&_0x2bca1c[_0x4399('0x5c')](_0x7c1e2b[_0x4399('0x56')](_0xb00c21[_0x4399('0x2f')],_0x3c3db3[_0x4399('0x2f')]),'convertInlineImageToBlock');});}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x2c'),'convertInlineImageToBlock','join',()=>{}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x2c'),_0x4399('0x53'),'accept',()=>{}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x2c'),_0x4399('0x53'),_0x4399('0xb'),_0x2bca1c['_suggestionFactory'][_0x4399('0x31')](_0x4399('0x2c'),'',_0x4399('0x5a'))),_0x2bca1c[_0x4399('0x1')]['registerCustomCallback']('insertion',_0x4399('0x53'),_0x4399('0x7'),()=>{}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')]('insertion',_0x4399('0x53'),_0x4399('0xb'),([_0x3c7f55])=>{const _0x1c54d6=_0x2bca1c[_0x4399('0x1')][_0x4399('0x31')]('insertion','',_0x4399('0xb'));let _0x1e6b14=_0x3c7f55[_0x4399('0x14')],_0x5eaf3c=_0x3c7f55[_0x4399('0x2f')];const _0x170795=_0x4a7357[_0x4399('0x74')]['schema'][_0x4399('0x3c')](_0x1e6b14,_0x4399('0x6d')),_0x54cb51=_0x4a7357[_0x4399('0x74')][_0x4399('0x8')][_0x4399('0x3c')](_0x5eaf3c,_0x4399('0x3a'));_0x170795[_0x4399('0x45')]&&(_0x1e6b14=_0x170795[_0x4399('0x14')]),_0x54cb51['isCollapsed']&&(_0x5eaf3c=_0x54cb51[_0x4399('0x2f')]),_0x1c54d6([_0x4a7357[_0x4399('0x74')][_0x4399('0x56')](_0x1e6b14,_0x5eaf3c)]);}),_0x2bca1c['_suggestionFactory'][_0x4399('0x38')](_0x4399('0x2c'),'convertInlineImageToBlock','chain',_0x54a3ae),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x1d'),_0x4399('0x53'),_0x4399('0x50'),_0x54a3ae)),_0x4a7357[_0x4399('0x2e')][_0x4399('0x65')](_0x4399('0x4e'))&&(_0x2bca1c[_0x4399('0x48')]('toggleImageCaption',(_0x4e6ec4,_0x376ffb)=>{const _0x1d2290=_0x4a7357[_0x4399('0x2e')][_0x4399('0x66')](_0x4399('0x36'));let _0x481463=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')]['document']['selection']),_0x23b5e1=_0x1d2290[_0x4399('0x3d')](_0x481463);_0x4a7357[_0x4399('0x74')][_0x4399('0x28')](()=>{if(_0x23b5e1)return void _0x2bca1c[_0x4399('0x6e')](_0x4a7357['model']['createRangeOn'](_0x23b5e1));const _0xa3b49d=_0x4f0c03[_0x4399('0x69')](_0x481463);_0x4e6ec4(_0x376ffb),_0x481463=_0x4f0c03['getClosestSelectedImageElement'](_0x4a7357['model'][_0x4399('0x39')]['selection']),_0x23b5e1=_0x1d2290[_0x4399('0x3d')](_0x481463),_0x2bca1c['markInsertion'](_0x4a7357[_0x4399('0x74')][_0x4399('0x20')](_0x23b5e1),_0xa3b49d?null:'imageCaption');});}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x1d'),_0x4399('0x63'),_0x4399('0x50'),_0x54a3ae)),_0x4a7357[_0x4399('0x2e')][_0x4399('0x65')]('ImageStyleEditing')){_0x2bca1c[_0x4399('0x48')]('imageStyle',(_0x37288b,_0x34b96d)=>{const _0xc81bfb=_0x4a7357['plugins'][_0x4399('0x66')](_0x4399('0x9'))['me'],_0x1068d3=_0x4a7357[_0x4399('0x41')][_0x4399('0x66')](_0x4399('0xc'));let _0x1420a4=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')][_0x4399('0x10')]),_0x1f78e5=_0x4a7357[_0x4399('0x74')][_0x4399('0x20')](_0x1420a4),_0x10bbef=_0x1068d3[_0x4399('0x5f')];if(_0x10bbef==_0x34b96d[_0x4399('0x5f')])return;const _0x3fcb54={'commandName':_0x4399('0xc'),'commandParams':[_0x34b96d],'formatGroupId':_0x2d0bd2()};_0x4a7357[_0x4399('0x74')][_0x4399('0x28')](()=>{if(_0x2bca1c[_0x4399('0x76')]()[_0x4399('0x23')](_0x2b0229=>_0x2b0229[_0x4399('0x75')]&&_0xc81bfb==_0x2b0229[_0x4399('0x72')]&&(_0x4399('0x2c')==_0x2b0229['type']||_0x4399('0x55')==_0x2b0229['type'])&&(_0x4399('0x61')==_0x2b0229[_0x4399('0x67')]||'imageStylePostApply'==_0x2b0229[_0x4399('0x67')])&&_0x2b0229['getFirstRange']()[_0x4399('0x3e')](_0x1f78e5))[_0x4399('0x26')](_0x1718c7=>_0x2bca1c['discardSuggestion'](_0x1718c7[_0x4399('0x60')])),_0x1420a4=_0x4f0c03['getClosestSelectedImageElement'](_0x4a7357['model'][_0x4399('0x39')][_0x4399('0x10')]),_0x1f78e5=_0x4a7357[_0x4399('0x74')]['createRangeOn'](_0x1420a4),_0x1068d3[_0x4399('0x37')](),_0x4a7357[_0x4399('0x41')][_0x4399('0x66')](_0x4399('0x71'))[_0x4399('0x37')](),_0x4a7357['commands'][_0x4399('0x66')]('imageTypeBlock')[_0x4399('0x37')](),_0x10bbef=_0x1068d3[_0x4399('0x5f')],_0x10bbef!=_0x34b96d[_0x4399('0x5f')])return _0x4f0c03['isInlineImage'](_0x1420a4)&&_0x1068d3['shouldConvertImageType'](_0x34b96d['value'],_0x1420a4)?(_0x37288b(_0x34b96d),_0x1420a4=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')]['selection']),void _0x2bca1c['markBlockFormat'](_0x1420a4,{..._0x3fcb54,'commandReversedParams':[{'value':_0x10bbef||null}]},[],'imageStylePreApply')):void(_0x4f0c03[_0x4399('0x69')](_0x1420a4)?_0x2bca1c[_0x4399('0x1b')](_0x1420a4,_0x3fcb54,[],'imageStylePostApply'):_0x2bca1c[_0x4399('0x15')](_0x1f78e5,_0x3fcb54,_0x4399('0x22')));});});for(const _0x39bca2 of _0x4a7357[_0x4399('0x2e')]['get'](_0x4399('0x32'))[_0x4399('0x6a')])_0x1b39e2[_0x39bca2['name']]=_0x39bca2[_0x4399('0x1c')]['toLowerCase']();_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')]('formatBlock',_0x4399('0x61'),_0x4399('0x7'),()=>{}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x2c'),_0x4399('0x22'),'join',()=>{}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x55'),_0x4399('0x22'),_0x4399('0x7'),()=>{}),_0x2bca1c[_0x4399('0x1')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x4399('0x5a'),()=>{}),_0x2bca1c[_0x4399('0x1')]['registerCustomCallback'](_0x4399('0x2c'),_0x4399('0x61'),_0x4399('0xb'),(_0x12a2ac,_0xbea106)=>{_0x2bca1c[_0x4399('0x1')]['getSuggestionCallback']('formatBlock','',_0x4399('0x5a'))(_0x12a2ac,{'commandName':_0xbea106['commandName'],'commandParams':_0xbea106[_0x4399('0x43')]});}),_0x2bca1c[_0x4399('0x1')][_0x4399('0x38')](_0x4399('0x2c'),_0x4399('0x61'),'chain',_0x54a3ae);}const _0x560c95=[{'type':'formatBlock','subType':_0x4399('0x61')},{'type':_0x4399('0x1d'),'subType':_0x4399('0x63')},{'type':_0x4399('0x2c'),'subType':_0x4399('0x53')},{'type':'insertion','subType':_0x4399('0x53')}];function _0x102d2f(_0x230a35,_0x29253e){const _0x2aab99=_0x560c95[_0x4399('0x57')](({type:_0x579fac,subType:_0xf9d383})=>_0x230a35[_0x4399('0x64')]==_0x579fac&&_0x230a35[_0x4399('0x67')]==_0xf9d383),_0x17dbc5=_0x560c95[_0x4399('0x57')](({type:_0x4fba21,subType:_0x30ac92})=>_0x29253e[_0x4399('0x64')]==_0x4fba21&&_0x29253e[_0x4399('0x67')]==_0x30ac92);if(_0x2aab99<0x0||_0x17dbc5<0x0)return!0x1;const _0x452204=_0x230a35['getFirstRange'](),_0x175968=_0x29253e[_0x4399('0x6f')]();if((0x0==_0x2aab99||0x1==_0x2aab99)&&0x2==_0x17dbc5&&_0x452204[_0x4399('0xa')](_0x175968))return!0x0;if(0x2==_0x2aab99&&0x3==_0x17dbc5){const _0x4c03e9=_0x2bca1c[_0x4399('0x52')](_0x452204,_0x4399('0x1d'))[_0x4399('0x23')](({suggestion:_0x220bf7,meta:_0x479f9f})=>_0x479f9f[_0x4399('0x35')]&&_0x4399('0x53')==_0x220bf7[_0x4399('0x67')]);if(_0x4c03e9[_0x4399('0x2')]>0x1&&_0x175968[_0x4399('0x2f')][_0x4399('0x3e')](_0x452204[_0x4399('0x14')]))return!0x0;if(0x1==_0x4c03e9[_0x4399('0x2')]&&(_0x452204[_0x4399('0x14')][_0x4399('0x3e')](_0x175968[_0x4399('0x2f')])||_0x452204[_0x4399('0x2f')][_0x4399('0x3e')](_0x175968[_0x4399('0x14')])))return!0x0;}if(0x3==_0x2aab99&&0x3==_0x17dbc5&&_0x452204[_0x4399('0x14')][_0x4399('0x21')](_0x175968[_0x4399('0x14')])){const _0x3948d3=_0x452204['end'][_0x4399('0x77')],_0x2dfd4d=_0x175968[_0x4399('0x14')]['nodeBefore'];return _0x4f0c03[_0x4399('0x69')](_0x3948d3)&&_0x3948d3===_0x2dfd4d;}return!0x1;}function _0x54a3ae(_0x3fee28,_0x1c4de1){return _0x102d2f(_0x3fee28,_0x1c4de1)?[_0x3fee28,_0x1c4de1]:_0x102d2f(_0x1c4de1,_0x3fee28)?[_0x1c4de1,_0x3fee28]:null;}_0x4a7357[_0x4399('0x74')][_0x4399('0x39')]['registerPostFixer'](()=>{let _0x30d61f=!0x1;const _0x260604=Array['from'](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')]['differ'][_0x4399('0x47')]());for(const {name:_0x248655,data:_0x32804c}of _0x260604){const {group:_0x1886e8,type:_0x4d2f38,subType:_0x47f3a1,id:_0x18b314}=_0x2bca1c['_splitMarkerName'](_0x248655);if(_0x4399('0x33')==_0x1886e8&&_0x2bca1c['hasSuggestion'](_0x18b314)){if(_0x4399('0x2c')==_0x4d2f38&&(_0x4399('0x61')==_0x47f3a1||_0x4399('0x22')==_0x47f3a1)){const _0x52c710=_0x2bca1c[_0x4399('0x62')](_0x18b314);if(_0x32804c[_0x4399('0x1e')]){const _0x557a85=_0x52c710[_0x4399('0x6f')]()[_0x4399('0x30')]();if(_0x4f0c03[_0x4399('0x69')](_0x557a85))continue;_0x2bca1c[_0x4399('0x4b')](_0x52c710),_0x30d61f=!0x0;}}if(_0x4399('0x1d')==_0x4d2f38&&_0x4399('0x63')==_0x47f3a1&&!_0x32804c[_0x4399('0x1e')]){const _0x8212ad=_0x2bca1c[_0x4399('0x62')](_0x18b314);_0x8212ad[_0x4399('0x44')]&&_0x8212ad[_0x4399('0x44')][_0x4399('0x75')]&&(_0x2bca1c['discardSuggestion'](_0x8212ad[_0x4399('0x44')]),_0x30d61f=!0x0);}}}return _0x30d61f;}),_0x4a7357[_0x4399('0x2e')]['has'](_0x4399('0x25'))&&_0x2bca1c[_0x4399('0x48')]('resizeImage',(_0x484b08,_0xa22323)=>{const _0x743d33=_0x4f0c03[_0x4399('0x68')](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')][_0x4399('0x10')]);_0x743d33[_0x4399('0x16')]('width')!=_0xa22323[_0x4399('0x4f')]&&_0x4a7357['model'][_0x4399('0x28')](()=>{_0x2bca1c[_0x4399('0x1b')](_0x743d33,{'commandName':_0x4399('0x40'),'commandParams':[_0xa22323]});});}),_0x4a7357['plugins'][_0x4399('0x65')](_0x4399('0x73'))&&_0x2bca1c[_0x4399('0x48')](_0x4399('0x6c'),(_0x3e14ce,_0x13c326)=>{const _0x24cade=_0x4f0c03['getClosestSelectedImageElement'](_0x4a7357[_0x4399('0x74')][_0x4399('0x39')][_0x4399('0x10')]);(_0x24cade[_0x4399('0x34')]('alt')?_0x24cade[_0x4399('0x16')](_0x4399('0x70')):'')!=_0x13c326['newValue']&&_0x4a7357[_0x4399('0x74')][_0x4399('0x28')](()=>{_0x2bca1c[_0x4399('0x1b')](_0x24cade,{'commandName':'imageTextAlternative','commandParams':[_0x13c326]});});}),_0x2bca1c[_0x4399('0x42')][_0x4399('0x51')](_0x29314f=>{if(!!_0x560c95[_0x4399('0x3f')](({type:_0x1c3756,subType:_0x287130})=>_0x29314f[_0x4399('0x64')]==_0x1c3756&&_0x29314f['subType']==_0x287130))return _0x29314f[_0x4399('0x12')]?{}:void 0x0;}),_0x2bca1c[_0x4399('0x42')][_0x4399('0x51')](_0x5066e5=>{if(_0x4399('0x1d')==_0x5066e5['type']||'deletion'==_0x5066e5['type']){const _0x2e07d0=_0x5066e5[_0x4399('0x30')]();if(_0x2e07d0&&_0x2e07d0['is'](_0x4399('0x6'),_0x4399('0x58')))return{'type':'insertion'==_0x5066e5[_0x4399('0x64')]?_0x4399('0xe'):_0x4399('0x3b'),'name':_0x2e07d0[_0x4399('0x4')],'quantity':0x1};}}),_0x2bca1c[_0x4399('0x42')][_0x4399('0x51')](_0x182b42=>'formatBlock'==_0x182b42[_0x4399('0x64')]&&_0x4399('0x53')==_0x182b42[_0x4399('0x67')]?{'type':_0x4399('0x46'),'content':_0x4399('0x4a')}:_0x4399('0x2c')==_0x182b42[_0x4399('0x64')]&&_0x4399('0x3')==_0x182b42[_0x4399('0x67')]?{'type':_0x4399('0x46'),'content':_0x4399('0x59')}:void 0x0),_0x2bca1c[_0x4399('0x42')][_0x4399('0x51')](_0x577b69=>{const {data:_0x5d20a6}=_0x577b69;if(_0x5d20a6){if(_0x4399('0xc')==_0x5d20a6[_0x4399('0x49')]){const _0x1611a9=_0x5d20a6[_0x4399('0x27')][0x0]['value'];return _0x28af1c(_0x4399('0x17')===_0x1611a9?_0x27528b(_0x1958ac,'FORMAT_SIDE_IMAGE'):_0x1b39e2[_0x1611a9]||_0x1611a9);}if('imageTextAlternative'==_0x5d20a6[_0x4399('0x49')]){const _0x3de107=_0x5d20a6[_0x4399('0x27')][0x0][_0x4399('0x0')];return _0x3de107?{'type':_0x4399('0x46'),'content':_0x27528b(_0x1958ac,_0x4399('0x2a'),'\x22'+_0x3de107+'\x22')}:{'type':_0x4399('0x46'),'content':_0x27528b(_0x1958ac,_0x4399('0x5b'))};}if(_0x4399('0x40')==_0x5d20a6[_0x4399('0x49')]){const _0x3fba71=_0x5d20a6[_0x4399('0x27')][0x0][_0x4399('0x4f')];return _0x3fba71?{'type':'format','content':_0x27528b(_0x1958ac,_0x4399('0xf'),_0x3fba71)}:{'type':_0x4399('0x46'),'content':_0x27528b(_0x1958ac,_0x4399('0x24'))};}}function _0x28af1c(_0x598557){return{'type':_0x4399('0x46'),'content':_0x27528b(_0x1958ac,_0x4399('0x29'),_0x598557)};}});}}
|
|
23
|
+
const _0x32fb=['caption','getChangedMarkers','isCollapsed','element','format','locale','insertImage','shouldConvertImageType','convertBlockImageToInline','accept','find','isOwn','isEqual','imageTextAlternative','type','afterInit','toLowerCase','insertion','alt','ImageInlineEditing','registerElementLabel','toNext','model','getSuggestion','toggleImageCaption','_suggestionFactory','hasSuggestion','ELEMENT_CAPTION','ImageEditing','forceDefaultExecution','getSuggestions','nodeBefore','newValue','toPrevious','convertInlineImageToBlock','subType','next','plugins','getContainedElement','getClosestSelectedImageElement','differ','imageTypeInline','chain','ImageTextAlternativeEditing','TrackChangesEditing','normalizedStyles','imageStyle','hasAttribute','ImageCaptionUtils','discard','value','schema','change','formatInline','ImageResize','get','author','*Set\x20image\x20text\x20alternative:*\x20%0','removeObject','imageStylePreApply','filter','detach','FORMAT_SIDE_IMAGE','ImageCaptionEditing','registerDescriptionCallback','forward','resizeImage','formatBlock','selection','width','commandName','from','name','end','backward','markDeletion','enableCommand','start','isBlockImage','commandReversedParams','discardSuggestion','registerCustomCallback','isInlineImage','ELEMENT_INLINE_IMAGE','commands','title','ImageUploadEditing','getFirstRange','head','newRange','getCaptionFromImageModelElement','imageTypeBlock','*Set\x20image\x20width:*\x20%0','findIndex','isIntersecting','isBefore','_descriptionFactory','getNearestSelectionRange','refresh','Block\x20image\x20to\x20inline\x20image','forEach','has','_splitMarkerName','deletion','ImageBlockEditing','markBlockFormat','markInsertion','length','*Remove\x20image\x20text\x20alternative*','getAttribute','commandParams','document','createRange','getSuggestionCallback','uploadImage','fromPosition','imageCaption','imageStylePostApply','createRangeOn','*Format:*\x20%0','join','editor','Users'];(function(_0x45859e,_0x32fb56){const _0x4f7e66=function(_0x4463af){while(--_0x4463af){_0x45859e['push'](_0x45859e['shift']());}};_0x4f7e66(++_0x32fb56);}(_0x32fb,0x188));const _0x4f7e=function(_0x45859e,_0x32fb56){_0x45859e=_0x45859e-0x0;let _0x4f7e66=_0x32fb[_0x45859e];return _0x4f7e66;};import{Plugin as _0x366461}from'ckeditor5/src/core';import{LivePosition as _0x39a704}from'ckeditor5/src/engine';import{uid as _0x10b714}from'ckeditor5/src/utils';import{getTranslation as _0x287344}from'../utils/common-translations';export default class V extends _0x366461{[_0x4f7e('0x73')](){const _0x336125=this[_0x4f7e('0x62')];if(!_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x5')))return;const _0x19635b=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x15')),_0x3cdd56=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageUtils'),_0x14d6b5={},_0x58c14a=_0x336125[_0x4f7e('0x69')];if(_0x19635b['enableCommand'](_0x4f7e('0x6a')),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageBlock',_0x4f7fbc=>_0x287344(_0x58c14a,'ELEMENT_IMAGE',_0x4f7fbc)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageInline',_0x2ae673=>_0x287344(_0x58c14a,_0x4f7e('0x3c'),_0x2ae673)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')](_0x4f7e('0x64'),_0x287344(_0x58c14a,_0x4f7e('0x4'))),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x3f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x5b')),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x51'))&&_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x77'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x12'),(_0x29d8b1,_0x379907)=>{const _0x202126=_0x3cdd56['getClosestSelectedImageElement'](_0x336125['model']['document'][_0x4f7e('0x2d')]);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x202126,{'commandName':_0x4f7e('0x12'),'commandParams':[_0x379907]},[],_0x4f7e('0x6c'));});}),_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x44'),(_0x1c45f7,_0x2712f6)=>{_0x336125['model']['change'](_0x26aea2=>{let _0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['selection']),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x1b9107=_0x39a704[_0x4f7e('0x5c')](_0xf251d[_0x4f7e('0x36')],_0x4f7e('0xa')),_0xe031c0=_0x39a704['fromPosition'](_0xf251d[_0x4f7e('0x32')],_0x4f7e('0x79'));_0x19635b[_0x4f7e('0x6')](()=>_0x1c45f7(_0x2712f6)),_0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x58f377=_0x26aea2['createRange'](_0x1b9107,_0xe031c0);_0x1b9107[_0x4f7e('0x26')](),_0xe031c0['detach'](),_0x19635b[_0x4f7e('0x52')](_0xeafe58,{'commandName':_0x4f7e('0x12')},[],_0x4f7e('0xb')),_0x58f377[_0x4f7e('0x36')][_0x4f7e('0x48')](_0xf251d['start'])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0x58f377[_0x4f7e('0x36')],_0xf251d[_0x4f7e('0x36')]),_0x4f7e('0xb')),_0xf251d[_0x4f7e('0x32')][_0x4f7e('0x48')](_0x58f377[_0x4f7e('0x32')])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0xf251d[_0x4f7e('0x32')],_0x58f377[_0x4f7e('0x32')]),_0x4f7e('0xb'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),_0x4f7e('0x6d'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x1a'),_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'','accept')),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),'join',()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('insertion',_0x4f7e('0xb'),'discard',([_0x324da6])=>{const _0x21e25d=_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x5a')](_0x4f7e('0x75'),'','discard');let _0xc6efdf=_0x324da6['start'],_0x311fb3=_0x324da6[_0x4f7e('0x32')];const _0x20d476=_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1c')]['getNearestSelectionRange'](_0xc6efdf,_0x4f7e('0x33')),_0x14cb28=_0x336125['model'][_0x4f7e('0x1c')][_0x4f7e('0x4a')](_0x311fb3,_0x4f7e('0x2a'));_0x20d476[_0x4f7e('0x66')]&&(_0xc6efdf=_0x20d476['start']),_0x14cb28[_0x4f7e('0x66')]&&(_0x311fb3=_0x14cb28[_0x4f7e('0x32')]),_0x21e25d([_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x59')](_0xc6efdf,_0x311fb3)]);}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),'chain',_0x16e386),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x28'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x1'),(_0x386394,_0x1b9548)=>{const _0x1e7c86=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x19'));let _0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x1f6f52)return void _0x19635b[_0x4f7e('0x34')](_0x336125['model']['createRangeOn'](_0x1f6f52));const _0x219cc5=_0x3cdd56[_0x4f7e('0x37')](_0x1d5524);_0x386394(_0x1b9548),_0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524),_0x19635b[_0x4f7e('0x53')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x5f')](_0x1f6f52),_0x219cc5?null:_0x4f7e('0x5d'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0x5d'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')]('ImageStyleEditing')){_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x17'),(_0x10857e,_0x4017e7)=>{const _0x1726cb=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x63'))['me'],_0x3de232=_0x336125['commands'][_0x4f7e('0x20')](_0x4f7e('0x17'));let _0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125[_0x4f7e('0x7a')]['createRangeOn'](_0x5ea5dd),_0x3747d9=_0x3de232[_0x4f7e('0x1b')];if(_0x3747d9==_0x4017e7[_0x4f7e('0x1b')])return;const _0x346cab={'commandName':_0x4f7e('0x17'),'commandParams':[_0x4017e7],'formatGroupId':_0x10b714()};_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x19635b[_0x4f7e('0x7')]()['filter'](_0x53c3a3=>_0x53c3a3['isInContent']&&_0x1726cb==_0x53c3a3[_0x4f7e('0x21')]&&('formatBlock'==_0x53c3a3[_0x4f7e('0x72')]||_0x4f7e('0x1e')==_0x53c3a3[_0x4f7e('0x72')])&&(_0x4f7e('0x24')==_0x53c3a3[_0x4f7e('0xc')]||_0x4f7e('0x5e')==_0x53c3a3[_0x4f7e('0xc')])&&_0x53c3a3[_0x4f7e('0x40')]()[_0x4f7e('0x70')](_0x32828b))[_0x4f7e('0x4d')](_0xde448=>_0x19635b[_0x4f7e('0x39')](_0xde448[_0x4f7e('0x41')])),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125['model'][_0x4f7e('0x5f')](_0x5ea5dd),_0x3de232['refresh'](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x12'))[_0x4f7e('0x4b')](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x44'))[_0x4f7e('0x4b')](),_0x3747d9=_0x3de232[_0x4f7e('0x1b')],_0x3747d9!=_0x4017e7['value'])return _0x3cdd56[_0x4f7e('0x3b')](_0x5ea5dd)&&_0x3de232[_0x4f7e('0x6b')](_0x4017e7['value'],_0x5ea5dd)?(_0x10857e(_0x4017e7),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document']['selection']),void _0x19635b[_0x4f7e('0x52')](_0x5ea5dd,{..._0x346cab,'commandReversedParams':[{'value':_0x3747d9||null}]},[],_0x4f7e('0x24'))):void(_0x3cdd56[_0x4f7e('0x37')](_0x5ea5dd)?_0x19635b[_0x4f7e('0x52')](_0x5ea5dd,_0x346cab,[],_0x4f7e('0x5e')):_0x19635b['markInlineFormat'](_0x32828b,_0x346cab,'imageStylePostApply'));});});for(const _0xa2e26d of _0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageStyleEditing')[_0x4f7e('0x16')])_0x14d6b5[_0xa2e26d[_0x4f7e('0x31')]]=_0xa2e26d[_0x4f7e('0x3e')][_0x4f7e('0x74')]();_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'imageStylePreApply',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')]['registerCustomCallback']('formatBlock',_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x1e'),_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),'accept',()=>{}),_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),_0x4f7e('0x1a'),(_0x47b3a8,_0x1965f6)=>{_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'',_0x4f7e('0x6d'))(_0x47b3a8,{'commandName':_0x1965f6['commandName'],'commandParams':_0x1965f6[_0x4f7e('0x38')]});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('formatBlock','imageStylePreApply',_0x4f7e('0x13'),_0x16e386);}const _0x4bdeff=[{'type':_0x4f7e('0x2c'),'subType':_0x4f7e('0x24')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0x5d')},{'type':'formatBlock','subType':_0x4f7e('0xb')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0xb')}];function _0x105f27(_0x1fe7ca,_0x1c4873){const _0x34ac64=_0x4bdeff[_0x4f7e('0x46')](({type:_0x35250c,subType:_0x3e4c33})=>_0x1fe7ca[_0x4f7e('0x72')]==_0x35250c&&_0x1fe7ca[_0x4f7e('0xc')]==_0x3e4c33),_0xb67a10=_0x4bdeff[_0x4f7e('0x46')](({type:_0x3d0b10,subType:_0x1806d3})=>_0x1c4873[_0x4f7e('0x72')]==_0x3d0b10&&_0x1c4873[_0x4f7e('0xc')]==_0x1806d3);if(_0x34ac64<0x0||_0xb67a10<0x0)return!0x1;const _0xa8e9f4=_0x1fe7ca[_0x4f7e('0x40')](),_0x2b466b=_0x1c4873[_0x4f7e('0x40')]();if((0x0==_0x34ac64||0x1==_0x34ac64)&&0x2==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x47')](_0x2b466b))return!0x0;if(0x2==_0x34ac64&&0x3==_0xb67a10){const _0x40ec63=_0x19635b['_findSuggestions'](_0xa8e9f4,'insertion')[_0x4f7e('0x25')](({suggestion:_0x2f4d4b,meta:_0x61dd9c})=>_0x61dd9c[_0x4f7e('0x6f')]&&'convertInlineImageToBlock'==_0x2f4d4b[_0x4f7e('0xc')]);if(_0x40ec63[_0x4f7e('0x54')]>0x1&&_0x2b466b[_0x4f7e('0x32')][_0x4f7e('0x70')](_0xa8e9f4[_0x4f7e('0x36')]))return!0x0;if(0x1==_0x40ec63[_0x4f7e('0x54')]&&(_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x32')])||_0xa8e9f4[_0x4f7e('0x32')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x36')])))return!0x0;}if(0x3==_0x34ac64&&0x3==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x48')](_0x2b466b[_0x4f7e('0x36')])){const _0x5f19c7=_0xa8e9f4[_0x4f7e('0x32')]['nodeAfter'],_0x557b11=_0x2b466b[_0x4f7e('0x36')][_0x4f7e('0x8')];return _0x3cdd56[_0x4f7e('0x37')](_0x5f19c7)&&_0x5f19c7===_0x557b11;}return!0x1;}function _0x16e386(_0x1f659b,_0x3dd4ad){return _0x105f27(_0x1f659b,_0x3dd4ad)?[_0x1f659b,_0x3dd4ad]:_0x105f27(_0x3dd4ad,_0x1f659b)?[_0x3dd4ad,_0x1f659b]:null;}_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['registerPostFixer'](()=>{let _0x1ff5e3=!0x1;const _0x168fa1=Array[_0x4f7e('0x30')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x11')][_0x4f7e('0x65')]());for(const {name:_0xf55de,data:_0x589b6d}of _0x168fa1){const {group:_0x14fdea,type:_0x16abd4,subType:_0x343c1f,id:_0xfbc40e}=_0x19635b[_0x4f7e('0x4f')](_0xf55de);if('suggestion'==_0x14fdea&&_0x19635b[_0x4f7e('0x3')](_0xfbc40e)){if(_0x4f7e('0x2c')==_0x16abd4&&('imageStylePreApply'==_0x343c1f||_0x4f7e('0x5e')==_0x343c1f)){const _0x2f5803=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);if(_0x589b6d['newRange']){const _0x3ba72f=_0x2f5803[_0x4f7e('0x40')]()[_0x4f7e('0xf')]();if(_0x3cdd56[_0x4f7e('0x37')](_0x3ba72f))continue;_0x19635b['discardSuggestion'](_0x2f5803),_0x1ff5e3=!0x0;}}if(_0x4f7e('0x75')==_0x16abd4&&_0x4f7e('0x5d')==_0x343c1f&&!_0x589b6d[_0x4f7e('0x42')]){const _0x568384=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);_0x568384[_0x4f7e('0xd')]&&_0x568384[_0x4f7e('0xd')]['isInContent']&&(_0x19635b[_0x4f7e('0x39')](_0x568384[_0x4f7e('0xd')]),_0x1ff5e3=!0x0);}}}return _0x1ff5e3;}),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x1f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x2b'),(_0x122352,_0x3222c1)=>{const _0x1ec58e=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]);_0x1ec58e[_0x4f7e('0x56')](_0x4f7e('0x2e'))!=_0x3222c1[_0x4f7e('0x2e')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x1ec58e,{'commandName':_0x4f7e('0x2b'),'commandParams':[_0x3222c1]});});}),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x14'))&&_0x19635b['enableCommand'](_0x4f7e('0x71'),(_0x1f28cf,_0x13877e)=>{const _0xe90501=_0x3cdd56['getClosestSelectedImageElement'](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]);(_0xe90501[_0x4f7e('0x18')](_0x4f7e('0x76'))?_0xe90501[_0x4f7e('0x56')](_0x4f7e('0x76')):'')!=_0x13877e[_0x4f7e('0x9')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b['markBlockFormat'](_0xe90501,{'commandName':_0x4f7e('0x71'),'commandParams':[_0x13877e]});});}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x3928e8=>{if(!!_0x4bdeff[_0x4f7e('0x6e')](({type:_0x434350,subType:_0x345660})=>_0x3928e8[_0x4f7e('0x72')]==_0x434350&&_0x3928e8[_0x4f7e('0xc')]==_0x345660))return _0x3928e8['previous']?{}:void 0x0;}),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x29')](_0x1da52b=>{if('insertion'==_0x1da52b['type']||_0x4f7e('0x50')==_0x1da52b['type']){const _0x1efe38=_0x1da52b[_0x4f7e('0xf')]();if(_0x1efe38&&_0x1efe38['is'](_0x4f7e('0x67'),'caption'))return{'type':_0x4f7e('0x75')==_0x1da52b[_0x4f7e('0x72')]?'addObject':_0x4f7e('0x23'),'name':_0x1efe38['name'],'quantity':0x1};}}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x5e29eb=>'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0xb')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0x6c')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':_0x4f7e('0x4c')}:void 0x0),_0x19635b['_descriptionFactory']['registerDescriptionCallback'](_0x4bc9c9=>{const {data:_0x17bc1c}=_0x4bc9c9;if(_0x17bc1c){if(_0x4f7e('0x17')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x170f9c=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x1b')];return _0x26a6b1('side'===_0x170f9c?_0x287344(_0x58c14a,_0x4f7e('0x27')):_0x14d6b5[_0x170f9c]||_0x170f9c);}if(_0x4f7e('0x71')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x5644e9=_0x17bc1c['commandParams'][0x0]['newValue'];return _0x5644e9?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x22'),'\x22'+_0x5644e9+'\x22')}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x55'))};}if('resizeImage'==_0x17bc1c[_0x4f7e('0x2f')]){const _0x3afe17=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x2e')];return _0x3afe17?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x45'),_0x3afe17)}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,'*Reset\x20image\x20width*')};}}function _0x26a6b1(_0x362371){return{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x60'),_0x362371)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37ee=['get','bind','editor','_trackChangesValueDuringImport','value','afterInit','plugins','dataInsert','listenTo','Users','importWord','_setSuggestionData','commands','forEach','high','trackChanges','_handleImportedData','collaboration_features','_trackChangesExecuted','execute','enableCommand','TrackChangesEditing'];(function(_0x395eaa,_0x37eed5){const _0x2f4e25=function(_0x421ba0){while(--_0x421ba0){_0x395eaa['push'](_0x395eaa['shift']());}};_0x2f4e25(++_0x37eed5);}(_0x37ee,0x155));const _0x2f4e=function(_0x395eaa,_0x37eed5){_0x395eaa=_0x395eaa-0x0;let _0x2f4e25=_0x37ee[_0x395eaa];return _0x2f4e25;};import{Plugin as _0x465ca7}from'ckeditor5/src/core';import _0x4805ea from'../trackchangesediting';export default class X extends _0x465ca7{constructor(_0x46a17e){super(_0x46a17e),this[_0x2f4e('0xe')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x2f4e('0x10')](){const _0x4a3d36=this[_0x2f4e('0xd')],_0x138985=_0x4a3d36[_0x2f4e('0x1')][_0x2f4e('0xb')]('importWord'),_0x8ebfe=_0x4a3d36[_0x2f4e('0x1')][_0x2f4e('0xb')](_0x2f4e('0x4'));_0x138985&&(_0x138985['on'](_0x2f4e('0x8'),(_0x47ffc6,[,_0x53c234])=>{this[_0x2f4e('0xe')]=_0x8ebfe[_0x2f4e('0xf')],_0x53c234[_0x2f4e('0x6')]['track_changes']=!this[_0x2f4e('0xe')];},{'priority':_0x2f4e('0x3')}),this[_0x2f4e('0x13')](_0x138985,_0x2f4e('0x12'),this[_0x2f4e('0x5')][_0x2f4e('0xc')](this)),this['listenTo'](_0x138985,_0x2f4e('0x12'),()=>{this[_0x2f4e('0x7')]&&(_0x8ebfe[_0x2f4e('0x8')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a3d36[_0x2f4e('0x11')][_0x2f4e('0xb')](_0x2f4e('0xa'))[_0x2f4e('0x9')](_0x2f4e('0x15')));}[_0x2f4e('0x5')](_0xda4801,_0x405150){const {suggestions:_0x2b7017}=_0x405150,_0x3b10a4=this['editor'][_0x2f4e('0x1')]['get'](_0x2f4e('0x4')),_0xba9f89=_0x3b10a4['value'];this[_0x2f4e('0xe')]!==_0xba9f89&&(_0x3b10a4['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b7017&&_0x2b7017[_0x2f4e('0x2')](({id:_0x5570da,type:_0x3c8712,author:_0x179635,created_at:_0x96f0b0})=>{const _0x2c1ba6={'id':_0x5570da,'type':_0x3c8712,'authorId':this['editor']['plugins'][_0x2f4e('0xb')](_0x2f4e('0x14'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x179635,'createdAt':_0x96f0b0?new Date(_0x96f0b0):new Date()}}};this[_0x2f4e('0xd')][_0x2f4e('0x11')][_0x2f4e('0xb')](_0x4805ea)[_0x2f4e('0x0')](_0x2c1ba6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x403e=['from','selection','getItemLabel','registerDescriptionCallback','filter','IndentBlock','*Outdent:*\x20%0','commandName','schema','indent','TrackChangesEditing','enableCommand','*Indent:*\x20%0','document','indentBlock','get','plugins','checkAttribute','has','markBlockFormat','name','getSelectedBlocks','model','editor','outdentBlock'];(function(_0x3b6481,_0x403e21){const _0x28eeab=function(_0x3b6215){while(--_0x3b6215){_0x3b6481['push'](_0x3b6481['shift']());}};_0x28eeab(++_0x403e21);}(_0x403e,0x15d));const _0x28ee=function(_0x3b6481,_0x403e21){_0x3b6481=_0x3b6481-0x0;let _0x28eeab=_0x403e[_0x3b6481];return _0x28eeab;};import{Plugin as _0x189074}from'ckeditor5/src/core';import{getTranslation as _0x1a30f7}from'../utils/common-translations';export default class Y extends _0x189074{['afterInit'](){const _0x4bbddf=this[_0x28ee('0x18')],_0x53468e=_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x10')](_0x28ee('0xb'));_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x13')]('IndentEditing')&&(_0x53468e['enableCommand'](_0x28ee('0xa')),_0x53468e[_0x28ee('0xc')]('outdent'));const _0x18e96b=_0x4bbddf['locale'];if(_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x13')](_0x28ee('0x6'))){for(const _0x2fd3f9 of[_0x28ee('0xf'),'outdentBlock'])_0x53468e[_0x28ee('0xc')](_0x2fd3f9,()=>{const _0x2fa2f2=Array[_0x28ee('0x1')](this[_0x28ee('0x18')][_0x28ee('0x17')][_0x28ee('0xe')][_0x28ee('0x2')][_0x28ee('0x16')]())[_0x28ee('0x5')](_0x5525bf=>this[_0x28ee('0x18')][_0x28ee('0x17')][_0x28ee('0x9')][_0x28ee('0x12')](_0x5525bf,'blockIndent'));_0x4bbddf[_0x28ee('0x17')]['change'](()=>{for(const _0xd6ac12 of _0x2fa2f2)_0x53468e[_0x28ee('0x14')](_0xd6ac12,{'commandName':_0x2fd3f9,'commandParams':[{'value':''}],'formatGroupId':_0x28ee('0xf')});});});_0x53468e['_descriptionFactory'][_0x28ee('0x4')](_0x26b6b9=>{const {data:_0x8581c1}=_0x26b6b9;if(!_0x8581c1)return;if(_0x28ee('0xf')!=_0x8581c1[_0x28ee('0x8')]&&_0x28ee('0x0')!=_0x8581c1['commandName'])return;const _0x8649e6=_0x26b6b9['getItems']()[0x0],_0x47ae45=_0x53468e['_descriptionFactory'][_0x28ee('0x3')](_0x8649e6[_0x28ee('0x15')]);return _0x28ee('0xf')==_0x8581c1[_0x28ee('0x8')]?{'type':'format','content':_0x1a30f7(_0x18e96b,_0x28ee('0xd'),_0x47ae45)}:'outdentBlock'==_0x8581c1[_0x28ee('0x8')]?{'type':'format','content':_0x1a30f7(_0x18e96b,_0x28ee('0x7'),_0x47ae45)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25ce=['get','enableCommand','plugins','requires','init','TrackChangesEditing','editor'];(function(_0x17b287,_0x25cef7){var _0x13beef=function(_0x4a5cd5){while(--_0x4a5cd5){_0x17b287['push'](_0x17b287['shift']());}};_0x13beef(++_0x25cef7);}(_0x25ce,0xc7));var _0x13be=function(_0x17b287,_0x25cef7){_0x17b287=_0x17b287-0x0;var _0x13beef=_0x25ce[_0x17b287];return _0x13beef;};import{Plugin as _0x14df64}from'ckeditor5/src/core';import{Input as _0x46cfc8}from'ckeditor5/src/typing';export default class Z extends _0x14df64{static get[_0x13be('0x0')](){return[_0x46cfc8];}[_0x13be('0x1')](){this[_0x13be('0x3')][_0x13be('0x6')][_0x13be('0x4')](_0x13be('0x2'))[_0x13be('0x5')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5beb=['_descriptionFactory','getFirstRange','commandParams','commandName','has','markInlineFormat','getRanges','enableCommand','hasAttribute','linkHref','getFirstPosition','TrackChangesEditing','getAttribute','unlink','get','link','selection','model','format','*Set\x20link:*\x20%0','locale','isCollapsed','LinkEditing','change','from'];(function(_0x115c8a,_0x5bebe9){const _0x20c41b=function(_0x180e8b){while(--_0x180e8b){_0x115c8a['push'](_0x115c8a['shift']());}};_0x20c41b(++_0x5bebe9);}(_0x5beb,0xac));const _0x20c4=function(_0x115c8a,_0x5bebe9){_0x115c8a=_0x115c8a-0x0;let _0x20c41b=_0x5beb[_0x115c8a];return _0x20c41b;};import{Plugin as _0x34dad7}from'ckeditor5/src/core';import{findAttributeRange as _0x9ff71e}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x34f079}from'./utils';import{getTranslation as _0x30adfc}from'../utils/common-translations';export default class tt extends _0x34dad7{['afterInit'](){const _0x102555=this['editor'];if(!_0x102555['plugins'][_0x20c4('0x7')](_0x20c4('0x0')))return;const _0x33bafc=_0x102555['plugins'][_0x20c4('0x11')](_0x20c4('0xe'));_0x33bafc['enableCommand']('link',(_0x50d0fd,_0x87db9b)=>{const _0x4bc388=_0x102555[_0x20c4('0x14')]['document'][_0x20c4('0x13')];let _0x557dc1=[];if(_0x4bc388['isCollapsed']){if(!_0x4bc388[_0x20c4('0xb')]('linkHref'))return void _0x50d0fd(_0x87db9b);{const _0x1e15a0=_0x9ff71e(_0x4bc388[_0x20c4('0xd')](),_0x20c4('0xc'),_0x4bc388[_0x20c4('0xf')](_0x20c4('0xc')),_0x102555[_0x20c4('0x14')]);_0x557dc1=[_0x1e15a0];}}else _0x557dc1=Array[_0x20c4('0x2')](_0x4bc388[_0x20c4('0x9')]());_0x102555[_0x20c4('0x14')][_0x20c4('0x1')](()=>{for(const _0x35cadd of _0x557dc1)_0x33bafc[_0x20c4('0x8')](_0x35cadd,{'commandName':'link','commandParams':[_0x87db9b]});});}),_0x33bafc[_0x20c4('0xa')](_0x20c4('0x10'),()=>{const _0x2f80c8=this['editor'][_0x20c4('0x14')],_0x285508=_0x2f80c8['document'][_0x20c4('0x13')];_0x2f80c8[_0x20c4('0x1')](()=>{let _0x46a7c1=[];if(_0x285508[_0x20c4('0x18')])_0x46a7c1=[_0x9ff71e(_0x285508[_0x20c4('0xd')](),_0x20c4('0xc'),_0x285508[_0x20c4('0xf')](_0x20c4('0xc')),_0x102555[_0x20c4('0x14')])];else _0x46a7c1=_0x34f079(_0x20c4('0xc'),_0x285508[_0x20c4('0x4')](),_0x102555['model']);for(const _0x3e2a97 of _0x46a7c1)_0x33bafc[_0x20c4('0x8')](_0x3e2a97,{'commandName':_0x20c4('0x10'),'commandParams':[]});});}),_0x33bafc[_0x20c4('0x3')]['registerDescriptionCallback'](_0x983d6b=>{const {data:_0x4e46ee}=_0x983d6b,_0x27efeb=_0x102555[_0x20c4('0x17')];if(_0x4e46ee){if(_0x20c4('0x12')==_0x4e46ee[_0x20c4('0x6')]){const _0x1dd3ef=_0x4e46ee[_0x20c4('0x5')][0x0];return{'type':'format','content':_0x30adfc(_0x27efeb,_0x20c4('0x16'),'\x22'+_0x1dd3ef+'\x22')};}return'unlink'==_0x4e46ee[_0x20c4('0x6')]?{'type':_0x20c4('0x15'),'content':_0x30adfc(_0x27efeb,'*Remove\x20link*')}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ef1=['afterInit','List','push','findIndex','execute','*Indent:*\x20%0','model','enableCommand','before','locale','listItem','add','*Check\x20item*','checkChild','getAttribute','commands','outdentList','checkTodoList','listIndent','ELEMENT_LIST_ITEM','registerElementLabel','ELEMENT_TODO_LIST','nextSibling','indentList','slice','TodoListEditing','numbered','previousSibling','todoList','from','plugins','*Outdent:*\x20%0','*Change\x20to:*\x20%0','length','numberedList','end','createPositionAt','markBlockFormat','ELEMENT_BULLETED_LIST','schema','document','element','filter','parent','commandName','ELEMENT_NUMBERED_LIST','createRange','isObject','selection','TrackChangesEditing','bulletedList','has','value','name','*Uncheck\x20item*','editor','change','getSelectedBlocks','get','replace','_descriptionFactory','listType','format','todo','bulleted'];(function(_0x55181f,_0x1ef158){const _0x1b5e82=function(_0x361b49){while(--_0x361b49){_0x55181f['push'](_0x55181f['shift']());}};_0x1b5e82(++_0x1ef158);}(_0x1ef1,0x1c9));const _0x1b5e=function(_0x55181f,_0x1ef158){_0x55181f=_0x55181f-0x0;let _0x1b5e82=_0x1ef1[_0x55181f];return _0x1b5e82;};import{Plugin as _0x198dfa}from'ckeditor5/src/core';import{getTranslation as _0x468a31}from'../utils/common-translations';export default class it extends _0x198dfa{[_0x1b5e('0x3f')](){const _0x2f0a21=this[_0x1b5e('0x35')],_0x4da39c=_0x2f0a21[_0x1b5e('0x7')];if(!_0x2f0a21['plugins'][_0x1b5e('0x31')]('ListEditing'))return;const _0x4d9a22=_0x2f0a21[_0x1b5e('0x1c')][_0x1b5e('0x38')](_0x1b5e('0x2f')),_0xf9c406=_0x2f0a21[_0x1b5e('0x1c')][_0x1b5e('0x31')](_0x1b5e('0x17'));function _0x33f0b2(_0x13ee22){return()=>{const _0x2524c9=_0x2f0a21[_0x1b5e('0x4')][_0x1b5e('0x26')][_0x1b5e('0x2e')],_0x23623b=_0x2f0a21[_0x1b5e('0xd')][_0x1b5e('0x38')](_0x13ee22);if(_0x23623b['value'])return void _0x2f0a21[_0x1b5e('0x2')]('paragraph',{});const _0x1e0ac5=_0x13ee22[_0x1b5e('0x16')](0x0,-0x4),_0x37c949=function(_0x1335be,_0x5c2146,_0x25b8f8){let _0x31d274=Array[_0x1b5e('0x1b')](_0x1335be)['filter'](_0x12fc53=>function(_0x3137dd,_0x2b15b0){return _0x2b15b0[_0x1b5e('0xb')](_0x3137dd[_0x1b5e('0x29')],_0x1b5e('0x8'))&&!_0x2b15b0[_0x1b5e('0x2d')](_0x3137dd);}(_0x12fc53,_0x25b8f8));_0x31d274=_0x31d274['filter'](_0x2db417=>!_0x2db417['is'](_0x1b5e('0x27'),'listItem')||_0x2db417[_0x1b5e('0xc')](_0x1b5e('0x3b'))!=_0x5c2146);const _0x2e7344=new Set();for(const _0x51288e of _0x31d274)_0x51288e['is']('element',_0x1b5e('0x8'))?_0x2e7344[_0x1b5e('0x9')](Lt(_0x51288e)):_0x2e7344[_0x1b5e('0x9')](_0x51288e);return Array[_0x1b5e('0x1b')](_0x2e7344);}(_0x2524c9[_0x1b5e('0x37')](),_0x1e0ac5,_0x2f0a21['model'][_0x1b5e('0x25')]);_0x2f0a21[_0x1b5e('0x4')]['change'](()=>{for(const _0x158f37 of _0x37c949)_0x4d9a22[_0x1b5e('0x23')](_0x158f37,{'commandName':_0x13ee22,'commandParams':[{'forceValue':!_0x23623b[_0x1b5e('0x32')]}],'formatGroupId':'blockName'},Mt(_0x158f37));});};}function _0x30e908(_0x4e7aa7){return()=>{const _0x46b8bc=function(_0x50b1d2){const _0x322f04=(_0x50b1d2=Array[_0x1b5e('0x1b')](_0x50b1d2))[_0x1b5e('0x1')](_0x5ce71e=>'listItem'!=_0x5ce71e[_0x1b5e('0x33')]);return _0x322f04>-0x1&&(_0x50b1d2=_0x50b1d2[_0x1b5e('0x16')](0x0,_0x322f04)),_0x50b1d2;}(_0x2f0a21[_0x1b5e('0x4')]['document']['selection'][_0x1b5e('0x37')]()),_0x379ec6=_0x2f0a21[_0x1b5e('0x4')][_0x1b5e('0x2c')](_0x2f0a21[_0x1b5e('0x4')][_0x1b5e('0x22')](_0x46b8bc[0x0],_0x1b5e('0x6')),_0x2f0a21[_0x1b5e('0x4')][_0x1b5e('0x22')](_0x46b8bc[_0x46b8bc[_0x1b5e('0x1f')]-0x1],_0x1b5e('0x21')));_0x2f0a21[_0x1b5e('0x4')][_0x1b5e('0x36')](()=>{_0x4d9a22[_0x1b5e('0x23')](_0x379ec6,{'commandName':_0x4e7aa7,'commandParams':[],'formatGroupId':_0x1b5e('0x10')},function(_0x307af8){const _0x4a216b=new Set();for(const _0x1f29e6 of _0x307af8){let _0x49b281=_0x1f29e6[_0x1b5e('0x14')];for(;_0x49b281&&_0x49b281[_0x1b5e('0xc')]('listIndent')>_0x1f29e6['getAttribute'](_0x1b5e('0x10'));)_0x4a216b[_0x1b5e('0x9')](_0x49b281),_0x49b281=_0x49b281[_0x1b5e('0x14')];}return Array[_0x1b5e('0x1b')](_0x4a216b);}(_0x46b8bc));});};}_0x4d9a22[_0x1b5e('0x5')]('numberedList',_0x33f0b2(_0x1b5e('0x20'))),_0x4d9a22[_0x1b5e('0x5')](_0x1b5e('0x30'),_0x33f0b2(_0x1b5e('0x30'))),_0xf9c406&&_0x4d9a22[_0x1b5e('0x5')](_0x1b5e('0x1a'),_0x33f0b2(_0x1b5e('0x1a'))),_0x4d9a22[_0x1b5e('0x5')]('indentList',_0x30e908(_0x1b5e('0x15'))),_0x4d9a22['enableCommand'](_0x1b5e('0xe'),_0x30e908('outdentList')),_0xf9c406&&_0x4d9a22[_0x1b5e('0x5')](_0x1b5e('0xf'),()=>{const _0x5af438=_0x2f0a21[_0x1b5e('0xd')]['get'](_0x1b5e('0xf')),_0x22858a=Array[_0x1b5e('0x1b')](_0x5af438['_selectedElements']);_0x22858a[_0x1b5e('0x28')](_0x1f84b5=>_0x1f84b5[_0x1b5e('0xc')]('todoListChecked')!=_0x5af438['value']),_0x2f0a21[_0x1b5e('0x4')]['change'](()=>{for(const _0x129cd5 of _0x22858a)_0x4d9a22[_0x1b5e('0x23')](_0x129cd5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5af438[_0x1b5e('0x32')]}]});});}),_0x4d9a22[_0x1b5e('0x3a')][_0x1b5e('0x12')](_0x1b5e('0x8'),_0x47e5a8=>_0x468a31(_0x4da39c,_0x1b5e('0x11'),_0x47e5a8)),_0x4d9a22[_0x1b5e('0x3a')]['registerDescriptionCallback'](_0x1b5d23=>{const {data:_0x5df955}=_0x1b5d23;if(_0x5df955){if('numberedList'==_0x5df955[_0x1b5e('0x2a')]||_0x1b5e('0x30')==_0x5df955[_0x1b5e('0x2a')]||_0x1b5e('0x1a')==_0x5df955[_0x1b5e('0x2a')])switch(_0x5df955[_0x1b5e('0x2a')][_0x1b5e('0x39')](_0x1b5e('0x40'),'')){case _0x1b5e('0x3e'):return _0x39fe47(_0x468a31(_0x4da39c,_0x1b5e('0x24')));case _0x1b5e('0x18'):return _0x39fe47(_0x468a31(_0x4da39c,_0x1b5e('0x2b')));case _0x1b5e('0x3d'):return _0x39fe47(_0x468a31(_0x4da39c,_0x1b5e('0x13')));}if(_0x1b5e('0x15')==_0x5df955['commandName'])return{'type':'format','content':_0x468a31(_0x4da39c,_0x1b5e('0x3'),_0x468a31(_0x4da39c,_0x1b5e('0x11')))};if('outdentList'==_0x5df955[_0x1b5e('0x2a')])return{'type':_0x1b5e('0x3c'),'content':_0x468a31(_0x4da39c,_0x1b5e('0x1d'),_0x468a31(_0x4da39c,'ELEMENT_LIST_ITEM'))};if(_0x1b5e('0xf')==_0x5df955[_0x1b5e('0x2a')])return _0x5df955['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x468a31(_0x4da39c,_0x1b5e('0xa'))}:{'type':'format','content':_0x468a31(_0x4da39c,_0x1b5e('0x34'))};}function _0x39fe47(_0x2570aa){return{'type':'format','content':_0x468a31(_0x4da39c,_0x1b5e('0x1e'),_0x2570aa)};}});}}function Lt(_0x21333e){const _0x4036a2=_0x21333e[_0x1b5e('0xc')](_0x1b5e('0x10'));if(0x0==_0x4036a2)return _0x21333e;let _0x412b79=_0x21333e;for(;_0x21333e[_0x1b5e('0x19')]&&_0x21333e[_0x1b5e('0x19')]['is'](_0x1b5e('0x27'),_0x1b5e('0x8'));){const _0x25d845=_0x21333e['previousSibling'][_0x1b5e('0xc')](_0x1b5e('0x10'));if(_0x25d845==_0x4036a2)_0x412b79=_0x21333e[_0x1b5e('0x19')];else{if(_0x25d845<_0x4036a2)break;}_0x21333e=_0x21333e[_0x1b5e('0x19')];}return _0x412b79;}function Mt(_0x5be3d2){const _0x2a7198=[];if(_0x5be3d2['is']('element','listItem')&&_0x5be3d2[_0x1b5e('0xc')](_0x1b5e('0x10'))>0x0){let _0x19f65c=_0x5be3d2[_0x1b5e('0x14')];for(;_0x19f65c&&_0x1b5e('0x8')==_0x19f65c[_0x1b5e('0x33')]&&_0x19f65c['getAttribute'](_0x1b5e('0x10'))==_0x5be3d2[_0x1b5e('0xc')](_0x1b5e('0x10'));)_0x2a7198[_0x1b5e('0x0')](_0x19f65c),_0x19f65c=_0x19f65c[_0x1b5e('0x14')];}return _0x2a7198;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53d9=['showSuggestionHighlights','high','locale','ELEMENT_MEDIA','enableCommand','stop','createEmptyElement','get','downcastDispatcher','div','_descriptionFactory','editor','elementToElement','media','data','MediaEmbedEditing','attribute:url:media','options','has','TrackChangesEditing','plugins','conversion','mediaEmbed'];(function(_0xd31ec3,_0x53d908){const _0xc59768=function(_0x223336){while(--_0x223336){_0xd31ec3['push'](_0xd31ec3['shift']());}};_0xc59768(++_0x53d908);}(_0x53d9,0x9b));const _0xc597=function(_0xd31ec3,_0x53d908){_0xd31ec3=_0xd31ec3-0x0;let _0xc59768=_0x53d9[_0xd31ec3];return _0xc59768;};import{Plugin as _0xda7f4}from'ckeditor5/src/core';import{getTranslation as _0x34c3cd}from'../utils/common-translations';export default class st extends _0xda7f4{['afterInit'](){const _0x4dc2d0=this[_0xc597('0x11')];if(!_0x4dc2d0[_0xc597('0x3')][_0xc597('0x1')](_0xc597('0x15')))return;const _0x5b230c=_0x4dc2d0[_0xc597('0x3')][_0xc597('0xd')](_0xc597('0x2')),_0x551a9c=_0x4dc2d0[_0xc597('0x8')];_0x5b230c[_0xc597('0xa')](_0xc597('0x5')),_0x5b230c[_0xc597('0x10')]['registerElementLabel'](_0xc597('0x13'),_0x285ace=>_0x34c3cd(_0x551a9c,_0xc597('0x9'),_0x285ace)),_0x4dc2d0[_0xc597('0x4')]['for']('dataDowncast')[_0xc597('0x12')]({'model':_0xc597('0x13'),'view':(_0x1b0d62,{writer:_0x51aa46,options:_0x4dd9c3})=>{if(_0x4dd9c3[_0xc597('0x6')])return _0x51aa46[_0xc597('0xc')](_0xc597('0xf'));},'converterPriority':_0xc597('0x7')}),_0x4dc2d0[_0xc597('0x14')][_0xc597('0xe')]['on'](_0xc597('0x16'),(_0x64550d,_0x2c6520,_0x22c8e1)=>{_0x22c8e1[_0xc597('0x0')][_0xc597('0x6')]&&_0x64550d[_0xc597('0xb')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ce4=['plugins','TrackChangesEditing','get','editor','enableCommand','mention','afterInit'];(function(_0x2770f2,_0x1ce427){const _0x88180a=function(_0x10de2e){while(--_0x10de2e){_0x2770f2['push'](_0x2770f2['shift']());}};_0x88180a(++_0x1ce427);}(_0x1ce4,0x109));const _0x8818=function(_0x2770f2,_0x1ce427){_0x2770f2=_0x2770f2-0x0;let _0x88180a=_0x1ce4[_0x2770f2];return _0x88180a;};import{Plugin as _0x3dcf03}from'ckeditor5/src/core';export default class et extends _0x3dcf03{[_0x8818('0x0')](){const _0x286581=this[_0x8818('0x4')];_0x286581[_0x8818('0x1')]['has']('MentionEditing')&&_0x286581['plugins'][_0x8818('0x3')](_0x8818('0x2'))[_0x8818('0x5')](_0x8818('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x210d=['locale','editor','PageBreakEditing','ELEMENT_PAGE_BREAK','registerElementLabel','get','afterInit','has','pageBreak','TrackChangesEditing','plugins'];(function(_0x21c4ca,_0x210d57){const _0x17570d=function(_0x48f9e5){while(--_0x48f9e5){_0x21c4ca['push'](_0x21c4ca['shift']());}};_0x17570d(++_0x210d57);}(_0x210d,0xf1));const _0x1757=function(_0x21c4ca,_0x210d57){_0x21c4ca=_0x21c4ca-0x0;let _0x17570d=_0x210d[_0x21c4ca];return _0x17570d;};import{Plugin as _0x178bbc}from'ckeditor5/src/core';import{getTranslation as _0x2f4b1a}from'../utils/common-translations';export default class nt extends _0x178bbc{[_0x1757('0x7')](){const _0x2bf2cf=this[_0x1757('0x2')];if(!_0x2bf2cf[_0x1757('0x0')][_0x1757('0x8')](_0x1757('0x3')))return;_0x2bf2cf[_0x1757('0x0')][_0x1757('0x6')](_0x1757('0xa'))['enableCommand']('pageBreak');const _0x43afd3=_0x2bf2cf['plugins'][_0x1757('0x6')](_0x1757('0xa')),_0x11698d=_0x2bf2cf[_0x1757('0x1')];_0x43afd3['_descriptionFactory'][_0x1757('0x5')](_0x1757('0x9'),_0x5220a2=>_0x2f4b1a(_0x11698d,_0x1757('0x4'),_0x5220a2));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x587e=['end','checkChild','*Change\x20to:*\x20%0','commandName','consume','locale','span','filter','start','getItemLabel','model','ELEMENT_PARAGRAPH','mapper','parent','get','document','ck-suggestion-marker-split','consumable','insert','highest','markBlockFormat','insertion','afterInit','enableCommand','getSelectedBlocks','type','includes','selection','*Insert:*\x20%0','markerRange','nodeAfter','_descriptionFactory','createUIElement','ck-suggestion-marker--active','schema','isBlock','getFirstRange','has','isTouching','activeMarkers','addMarker:suggestion:insertion','bindElementToMarker','editor','name','markerName','showSuggestionHighlights','$text','editing','Paragraph','writer','blockName','insertParagraph','paragraph','isLimit','plugins','registerDescriptionCallback','from','change','TrackChangesEditing'];(function(_0x1f1e1c,_0x587efa){const _0x532b36=function(_0x3f7442){while(--_0x3f7442){_0x1f1e1c['push'](_0x1f1e1c['shift']());}};_0x532b36(++_0x587efa);}(_0x587e,0xe6));const _0x532b=function(_0x1f1e1c,_0x587efa){_0x1f1e1c=_0x1f1e1c-0x0;let _0x532b36=_0x587e[_0x1f1e1c];return _0x532b36;};import{Plugin as _0x56b23c}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xacd984}from'./utils';import{getTranslation as _0x320cc3}from'../utils/common-translations';export default class ot extends _0x56b23c{[_0x532b('0x1c')](){const _0x3b45a4=this[_0x532b('0x30')];if(!_0x3b45a4[_0x532b('0x1')][_0x532b('0x2b')](_0x532b('0x36')))return;const _0x249c69=_0x3b45a4[_0x532b('0xb')],_0x1e37ab=_0x3b45a4[_0x532b('0x1')]['get'](_0x532b('0x5'));_0x1e37ab[_0x532b('0x25')]['registerElementLabel']('paragraph',_0x35d147=>_0x320cc3(_0x249c69,_0x532b('0x11'),_0x35d147)),_0x1e37ab[_0x532b('0x1d')](_0x532b('0x3a'),(_0x28e8d0,_0x57ab38={})=>{const _0x4ee290=_0x3b45a4[_0x532b('0x10')][_0x532b('0x15')],_0x32c082=_0x57ab38[_0x532b('0x21')]||_0x4ee290['selection'],_0x43e0a5=Array[_0x532b('0x3')](_0x32c082[_0x532b('0x1e')]())[_0x532b('0xd')](_0x374766=>function(_0x30fd51,_0x40a97a){return _0x40a97a[_0x532b('0x7')](_0x30fd51[_0x532b('0x13')],_0x532b('0x3a'))&&!_0x40a97a['isObject'](_0x30fd51)&&'paragraph'!=_0x30fd51[_0x532b('0x31')];}(_0x374766,this[_0x532b('0x30')][_0x532b('0x10')][_0x532b('0x28')]));_0x3b45a4[_0x532b('0x10')][_0x532b('0x4')](()=>{for(const _0x33908 of _0x43e0a5)_0x1e37ab[_0x532b('0x1a')](_0x33908,{'commandName':_0x532b('0x3a'),'commandParams':[],'formatGroupId':_0x532b('0x38')},_0xacd984(_0x33908));});}),_0x1e37ab[_0x532b('0x25')][_0x532b('0x2')](_0x5b6890=>{const {data:_0xe515c3}=_0x5b6890;if(_0xe515c3&&_0x532b('0x3a')==_0xe515c3[_0x532b('0x9')])return{'type':'format','content':_0x320cc3(_0x249c69,_0x532b('0x8'),_0x320cc3(_0x249c69,_0x532b('0x11')))};}),_0x1e37ab[_0x532b('0x1d')](_0x532b('0x39')),_0x3b45a4[_0x532b('0x35')]['downcastDispatcher']['on'](_0x532b('0x2e'),tr(_0x3b45a4),{'priority':_0x532b('0x19')}),_0x3b45a4['data']['downcastDispatcher']['on'](_0x532b('0x2e'),(_0x4a06e6,_0x4389dc,_0x48b4f9)=>{_0x48b4f9['options'][_0x532b('0x33')]&&tr(_0x3b45a4,{'showActiveMarker':!0x1})(_0x4a06e6,_0x4389dc,_0x48b4f9);},{'priority':'highest'});const _0x26677f=_0x1e37ab['_descriptionFactory'];_0x26677f['registerDescriptionCallback'](_0x53dc98=>{if(_0x532b('0x1b')!==_0x53dc98[_0x532b('0x1f')])return;const {start:_0x121271,end:_0x4f0c37}=_0x53dc98[_0x532b('0x2a')]();if(!_0x121271[_0x532b('0x2c')](_0x4f0c37)||!_0x121271[_0x532b('0x24')])return;const _0x59b8b2=_0x3b45a4[_0x532b('0x10')][_0x532b('0x28')],_0x2c5ac9=_0x121271[_0x532b('0x24')];return _0x59b8b2[_0x532b('0x29')](_0x2c5ac9)&&!_0x59b8b2[_0x532b('0x0')](_0x2c5ac9)&&_0x59b8b2[_0x532b('0x7')](_0x2c5ac9,_0x532b('0x34'))?{'type':_0x532b('0x1b'),'content':_0x320cc3(_0x249c69,_0x532b('0x22'),_0x26677f[_0x532b('0xf')](_0x2c5ac9['name'],0x1))}:void 0x0;});}}function tr(_0x230ba6,{showActiveMarker:_0x5ded78=!0x0}={}){return(_0x518391,_0x4a2be1,_0x1588e4)=>{const _0x43eec6=_0x230ba6[_0x532b('0x1')][_0x532b('0x14')]('TrackChangesEditing'),_0x2500be=_0x4a2be1['markerRange'][_0x532b('0xe')],_0x221643=_0x4a2be1[_0x532b('0x23')][_0x532b('0x6')],_0x3cc7db=_0x230ba6[_0x532b('0x10')]['schema'];if(!_0x2500be['isTouching'](_0x221643)||!_0x2500be[_0x532b('0x24')])return;const _0x1a80cb=_0x2500be[_0x532b('0x24')];if(_0x3cc7db[_0x532b('0x29')](_0x1a80cb)&&!_0x3cc7db[_0x532b('0x0')](_0x1a80cb)&&_0x3cc7db[_0x532b('0x7')](_0x1a80cb,_0x532b('0x34'))){if(!_0x1588e4[_0x532b('0x17')][_0x532b('0xa')](_0x4a2be1[_0x532b('0x23')],_0x518391['name']))return;const _0x45446a=_0x1588e4['writer'][_0x532b('0x26')](_0x532b('0xc'),{'class':_0x532b('0x16')}),_0x4cc2ef=_0x1588e4[_0x532b('0x12')]['toViewPosition'](_0x221643);_0x5ded78&&_0x43eec6[_0x532b('0x2d')][_0x532b('0x20')](_0x4a2be1[_0x532b('0x32')])&&_0x1588e4[_0x532b('0x37')]['addClass'](_0x532b('0x27'),_0x45446a),_0x1588e4[_0x532b('0x37')][_0x532b('0x18')](_0x4cc2ef,_0x45446a),_0x1588e4[_0x532b('0x12')][_0x532b('0x2f')](_0x45446a,_0x4a2be1[_0x532b('0x32')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c84=['selection','RemoveFormatEditing','get','format','*Remove\x20all\x20formatting*','removeFormat','getAttributes','registerDescriptionCallback','model','isFormatting','getRanges','isCollapsed','getItems','plugins','enableCommand','from','_descriptionFactory','schema','locale','change','has'];(function(_0x5c660e,_0x1c84e0){const _0x1f9306=function(_0x5e4d6e){while(--_0x5e4d6e){_0x5c660e['push'](_0x5c660e['shift']());}};_0x1f9306(++_0x1c84e0);}(_0x1c84,0x1e8));const _0x1f93=function(_0x5c660e,_0x1c84e0){_0x5c660e=_0x5c660e-0x0;let _0x1f9306=_0x1c84[_0x5c660e];return _0x1f9306;};import{Plugin as _0x1a629c}from'ckeditor5/src/core';import{getTranslation as _0x492f37}from'../utils/common-translations';export default class rt extends _0x1a629c{['afterInit'](){const _0x2a60a0=this['editor'];if(!_0x2a60a0[_0x1f93('0x8')][_0x1f93('0xf')](_0x1f93('0x11')))return;const _0xce57a4=_0x2a60a0[_0x1f93('0x8')][_0x1f93('0x12')]('TrackChangesEditing');_0xce57a4[_0x1f93('0x9')](_0x1f93('0x0'),_0x5f9e1d=>{const _0x54d4d1=_0x2a60a0[_0x1f93('0x3')]['document'][_0x1f93('0x10')];_0x54d4d1[_0x1f93('0x6')]?_0x5f9e1d():_0x2a60a0[_0x1f93('0x3')][_0x1f93('0xe')](()=>{const _0x2a2721=Array[_0x1f93('0xa')](_0x54d4d1[_0x1f93('0x5')]());for(const _0x31b4a8 of _0x2a2721)for(const _0xd58445 of _0x31b4a8[_0x1f93('0x7')]())ro(_0xd58445,_0x2a60a0['model'][_0x1f93('0xc')])&&_0xce57a4['markInlineFormat'](_0x2a60a0[_0x1f93('0x3')]['createRangeOn'](_0xd58445),{'commandName':'removeFormat','commandParams':[]});});}),_0xce57a4[_0x1f93('0xb')][_0x1f93('0x2')](_0x423476=>{const {data:_0x1d9009}=_0x423476;if(_0x1d9009&&'removeFormat'==_0x1d9009['commandName'])return{'type':_0x1f93('0x13'),'content':_0x492f37(_0x2a60a0[_0x1f93('0xd')],_0x1f93('0x14'))};});}}function ro(_0x2685b0,_0x257ce7){for(const [_0x22714c]of _0x2685b0[_0x1f93('0x1')]()){const _0x256c45=_0x257ce7['getAttributeProperties'](_0x22714c);if(_0x256c45&&_0x256c45[_0x1f93('0x4')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f2=['TrackChangesEditing','discardSelectedSuggestions','discardAllSuggestions','goToNextRestrictedEditingException','goToPreviousRestrictedEditingException','has','acceptSelectedSuggestions','acceptAllSuggestions','afterInit','acceptSuggestion','discardSuggestion','plugins','RestrictedEditingModeEditing','enableCommand'];(function(_0x499498,_0x41f252){const _0x954be5=function(_0xf82e5d){while(--_0xf82e5d){_0x499498['push'](_0x499498['shift']());}};_0x954be5(++_0x41f252);}(_0x41f2,0x199));const _0x954b=function(_0x499498,_0x41f252){_0x499498=_0x499498-0x0;let _0x954be5=_0x41f2[_0x499498];return _0x954be5;};import{Plugin as _0x307339}from'ckeditor5/src/core';export default class at extends _0x307339{[_0x954b('0x5')](){const _0x201365=this['editor'];if(!_0x201365[_0x954b('0x8')][_0x954b('0x2')](_0x954b('0x9')))return;const _0x4cbdb5=_0x201365['plugins']['get'](_0x954b('0xb'));_0x4cbdb5[_0x954b('0xa')](_0x954b('0x1')),_0x4cbdb5[_0x954b('0xa')](_0x954b('0x0'));const _0x35c669=_0x201365[_0x954b('0x8')]['get']('RestrictedEditingModeEditing');_0x35c669[_0x954b('0xa')]('trackChanges'),_0x35c669[_0x954b('0xa')](_0x954b('0x6')),_0x35c669['enableCommand'](_0x954b('0x7')),_0x35c669[_0x954b('0xa')](_0x954b('0x4')),_0x35c669[_0x954b('0xa')](_0x954b('0xd')),_0x35c669[_0x954b('0xa')](_0x954b('0x3')),_0x35c669[_0x954b('0xa')](_0x954b('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2db5=['createUIElement','addMarker:suggestion:deletion','activeMarkers','createPositionBefore','editor','locale','toViewPosition','downcastDispatcher','high','ck-suggestion-marker-','showSuggestionHighlights','merge','TrackChangesEditing','options','init','name','model','registerElementLabel','softBreak','get','mapper','writer','markerName','bindElementToMarker','insert','enableCommand','addMarker:suggestion','editing','addClass','span','_descriptionFactory','markerRange','element','includes','deletion','requires','getItems','plugins','addMarker:suggestion:insertion','split'];(function(_0x218f3e,_0x2db536){const _0x1c0998=function(_0x1fab6e){while(--_0x1fab6e){_0x218f3e['push'](_0x218f3e['shift']());}};_0x1c0998(++_0x2db536);}(_0x2db5,0xf1));const _0x1c09=function(_0x218f3e,_0x2db536){_0x218f3e=_0x218f3e-0x0;let _0x1c0998=_0x2db5[_0x218f3e];return _0x1c0998;};import{Plugin as _0x2e41ac}from'ckeditor5/src/core';import{ShiftEnter as _0x139726}from'ckeditor5/src/enter';import{getTranslation as _0x14fe87}from'../utils/common-translations';export default class ct extends _0x2e41ac{static get[_0x1c09('0x22')](){return[_0x139726];}[_0x1c09('0xd')](){const _0x3f9ca3=this[_0x1c09('0x3')],_0x178aef=_0x3f9ca3[_0x1c09('0x24')][_0x1c09('0x12')](_0x1c09('0xb'));_0x178aef[_0x1c09('0x18')]('shiftEnter'),_0x3f9ca3['editing'][_0x1c09('0x6')]['on'](_0x1c09('0x25'),re(_0x3f9ca3),{'priority':'high'}),_0x3f9ca3[_0x1c09('0x1a')][_0x1c09('0x6')]['on'](_0x1c09('0x0'),re(_0x3f9ca3),{'priority':_0x1c09('0x7')}),_0x3f9ca3['data'][_0x1c09('0x6')]['on'](_0x1c09('0x19'),(_0x2dc2fe,_0x3f8c72,_0x1b4d97)=>{_0x1b4d97[_0x1c09('0xc')][_0x1c09('0x9')]&&re(_0x3f9ca3,{'showActiveMarker':!0x1})(_0x2dc2fe,_0x3f8c72,_0x1b4d97);}),_0x178aef[_0x1c09('0x1d')][_0x1c09('0x10')]('softBreak',_0x108d37=>_0x14fe87(_0x3f9ca3[_0x1c09('0x4')],'ELEMENT_LINE_BREAK',_0x108d37));}}function re(_0x51bfd8,{showActiveMarker:_0x497280=!0x0}={}){return(_0x495b0c,_0x158517,_0x4905d9)=>{const _0x13b7e2=_0x51bfd8[_0x1c09('0x24')]['get'](_0x1c09('0xb'));if(!_0x4905d9['consumable']['test'](_0x158517['markerRange'],_0x495b0c[_0x1c09('0xe')]))return;const _0x499574=_0x51bfd8[_0x1c09('0xf')];for(const _0x31b894 of _0x158517[_0x1c09('0x1e')][_0x1c09('0x23')]()){if(!_0x31b894['is'](_0x1c09('0x1f'),_0x1c09('0x11')))continue;const _0x59e22f=_0x1c09('0x21')==_0x158517[_0x1c09('0x15')][_0x1c09('0x26')](':')[0x1]?_0x1c09('0xa'):'split',_0x4c0e32=_0x4905d9[_0x1c09('0x14')][_0x1c09('0x27')](_0x1c09('0x1c'),{'class':_0x1c09('0x8')+_0x59e22f}),_0x4b2aaf=_0x4905d9[_0x1c09('0x13')][_0x1c09('0x5')](_0x499574[_0x1c09('0x2')](_0x31b894));_0x497280&&_0x13b7e2[_0x1c09('0x1')][_0x1c09('0x20')](_0x158517[_0x1c09('0x15')])&&_0x4905d9[_0x1c09('0x14')][_0x1c09('0x1b')]('ck-suggestion-marker--active',_0x4c0e32),_0x4905d9[_0x1c09('0x14')][_0x1c09('0x17')](_0x4b2aaf,_0x4c0e32),_0x4905d9[_0x1c09('0x13')][_0x1c09('0x16')](_0x4c0e32,_0x158517[_0x1c09('0x15')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1431=['_descriptionFactory','restrictedEditingException','has','forceValue','plugins','value','FORMAT_RESTRICTED_DISABLED','TrackChangesEditing','commandName','selection','StandardEditingModeEditing','markInlineFormat','getRanges','from','get','enableCommand','format','registerDescriptionCallback','isCollapsed','commands','change'];(function(_0x454f84,_0x14316a){const _0x328c86=function(_0x37d84e){while(--_0x37d84e){_0x454f84['push'](_0x454f84['shift']());}};_0x328c86(++_0x14316a);}(_0x1431,0x187));const _0x328c=function(_0x454f84,_0x14316a){_0x454f84=_0x454f84-0x0;let _0x328c86=_0x1431[_0x454f84];return _0x328c86;};import{Plugin as _0x48ae97}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x535dde}from'./utils';import{getTranslation as _0xaf6829}from'../utils/common-translations';export default class ht extends _0x48ae97{['afterInit'](){const _0x222aca=this['editor'],_0x26e7cb=_0x222aca['model'],_0x139a6f=_0x222aca['locale'];if(!_0x222aca[_0x328c('0xc')][_0x328c('0xa')](_0x328c('0x12')))return;const _0xf09c31=_0x222aca['plugins']['get'](_0x328c('0xf')),_0x52f4cc=_0x328c('0x9'),_0x4a774f=_0x222aca[_0x328c('0x6')][_0x328c('0x1')](_0x52f4cc);_0xf09c31[_0x328c('0x2')](_0x52f4cc,(_0x40c715,_0x14afd2={})=>{const _0x3f6ae9=_0x26e7cb['document'][_0x328c('0x11')];if(_0x3f6ae9[_0x328c('0x5')])return void _0x40c715(_0x14afd2);const _0x42ea8a=void 0x0!==_0x14afd2[_0x328c('0xb')]?_0x14afd2[_0x328c('0xb')]:!_0x4a774f[_0x328c('0xd')];_0x26e7cb[_0x328c('0x7')](()=>{const _0x116f60=Array[_0x328c('0x0')](_0x3f6ae9[_0x328c('0x14')]());for(const _0x4d4784 of _0x116f60){const _0x78693d=_0x42ea8a?[_0x4d4784]:_0x535dde(_0x52f4cc,_0x4d4784,_0x26e7cb);for(const _0x106b0c of _0x78693d)_0xf09c31[_0x328c('0x13')](_0x106b0c,{'commandName':_0x52f4cc,'commandParams':[{'forceValue':_0x42ea8a}]});}});}),_0xf09c31[_0x328c('0x8')][_0x328c('0x4')](_0x529af4=>{const {data:_0xb29716}=_0x529af4;if(_0xb29716&&_0xb29716[_0x328c('0x10')]==_0x52f4cc)return _0xb29716['commandParams'][0x0][_0x328c('0xb')]?{'type':_0x328c('0x3'),'content':_0xaf6829(_0x139a6f,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x328c('0x3'),'content':_0xaf6829(_0x139a6f,_0x328c('0xe'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cb6=['plugins','name','enableCommand','editor','change','element','createRangeOn','markBlockFormat','model','toLowerCase','config','includes','has','value','selection','styleName','inline','enabledStyles','block','add','*Format:*\x20%0','forceValue','locale','getStyleDefinition','style.definitions','modelElements','afterInit','every','*Remove\x20format:*\x20%0','style','getItems','push','commandName','_descriptionFactory','from','isBlock','find','getRangesWithClasses','get','Style','classes','registerDescriptionCallback','getDefinitionsForView','getRanges','format','commandParams','style:'];(function(_0x4859dd,_0x2cb6b8){const _0x35dfee=function(_0x5462d8){while(--_0x5462d8){_0x4859dd['push'](_0x4859dd['shift']());}};_0x35dfee(++_0x2cb6b8);}(_0x2cb6,0x194));const _0x35df=function(_0x4859dd,_0x2cb6b8){_0x4859dd=_0x4859dd-0x0;let _0x35dfee=_0x2cb6[_0x4859dd];return _0x35dfee;};import{Plugin as _0x4b3bbc}from'ckeditor5/src/core';import{normalizeConfig as _0x45f3dc}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x137c9c}from'../utils/common-translations';export default class ut extends _0x4b3bbc{[_0x35df('0x2d')](){const _0x272fd1=this[_0x35df('0x16')];if(!_0x272fd1[_0x35df('0x13')][_0x35df('0x1f')](_0x35df('0xb')))return;const _0x2f25f3=_0x272fd1['commands'][_0x35df('0xa')](_0x35df('0x1')),_0xa8d41e=_0x272fd1['plugins']['get']('TrackChangesEditing'),_0x414bb3=_0x272fd1[_0x35df('0x29')],_0x4200ad=_0x272fd1[_0x35df('0x13')][_0x35df('0xa')]('DataSchema'),_0x4726d1=_0x45f3dc(_0x4200ad,_0x272fd1[_0x35df('0x1d')][_0x35df('0xa')](_0x35df('0x2b')));_0xa8d41e[_0x35df('0x15')](_0x35df('0x1'),(_0x550eec,{styleName:_0x344ead})=>{const _0xe0be16=_0x272fd1['model']['document'][_0x35df('0x21')],_0x16235d=this['getStyleDefinition'](_0x344ead,_0x4726d1);if(!_0x16235d)return;if(!_0x2f25f3[_0x35df('0x24')]['includes'](_0x344ead))return;if(_0xe0be16['isCollapsed']&&!_0x16235d['isBlock'])return void _0x550eec({'styleName':_0x344ead});const _0x5aff31=!_0x2f25f3[_0x35df('0x20')][_0x35df('0x1e')](_0x16235d[_0x35df('0x14')]);if(_0x16235d[_0x35df('0x7')]){const _0x3face3=function(_0xde6c6e,_0x38f660){const _0x4f59bc=new Set();for(const _0x571566 of _0xde6c6e){const _0x487654=_0x571566['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x465bf8 of _0x487654)if(_0x38f660[_0x35df('0x1e')](_0x465bf8['name'])){_0x4f59bc[_0x35df('0x26')](_0x465bf8);break;}}return _0x4f59bc;}(_0xe0be16['getSelectedBlocks'](),_0x16235d[_0x35df('0x2c')]);_0x272fd1[_0x35df('0x1b')][_0x35df('0x17')](()=>{for(const _0x445634 of _0x3face3)_0xa8d41e[_0x35df('0x1a')](_0x445634,{'commandName':_0x35df('0x1'),'commandParams':[{'styleName':_0x344ead,'forceValue':_0x5aff31}],'formatGroupId':_0x35df('0x12')+_0x344ead});});}else{let _0x112b50=Array[_0x35df('0x6')](_0xe0be16[_0x35df('0xf')]());if(!_0x5aff31){const _0x1b3a4d=Array[_0x35df('0x6')](_0x4200ad[_0x35df('0xe')](_0x16235d[_0x35df('0x18')],!0x1))[0x0][_0x35df('0x1b')],_0x3ba494=[];for(const _0x926792 of _0x112b50){const _0x2729ea=this[_0x35df('0x9')](_0x272fd1[_0x35df('0x1b')],_0x926792,_0x16235d[_0x35df('0xc')],_0x1b3a4d);_0x3ba494[_0x35df('0x3')](..._0x2729ea);}_0x112b50=_0x3ba494;}_0x272fd1['model'][_0x35df('0x17')](()=>{for(const _0x360532 of _0x112b50)_0xa8d41e['markInlineFormat'](_0x360532,{'commandName':_0x35df('0x1'),'commandParams':[{'styleName':_0x344ead,'forceValue':_0x5aff31}]});});}}),_0xa8d41e[_0x35df('0x5')][_0x35df('0xd')](_0x5bd6b8=>{const {data:_0x505b87}=_0x5bd6b8;if(_0x505b87&&_0x35df('0x1')===_0x505b87[_0x35df('0x4')])return _0x505b87[_0x35df('0x11')][0x0][_0x35df('0x28')]?{'type':_0x35df('0x10'),'content':_0x137c9c(_0x414bb3,_0x35df('0x27'),_0x505b87[_0x35df('0x11')][0x0][_0x35df('0x22')][_0x35df('0x1c')]())}:{'type':_0x35df('0x10'),'content':_0x137c9c(_0x414bb3,_0x35df('0x0'),_0x505b87[_0x35df('0x11')][0x0][_0x35df('0x22')][_0x35df('0x1c')]())};});}[_0x35df('0x2a')](_0x191bbd,_0xa872eb){let _0x332aab=_0xa872eb[_0x35df('0x25')]['find'](_0x144122=>_0x144122[_0x35df('0x14')]===_0x191bbd);return _0x332aab||(_0x332aab=_0xa872eb[_0x35df('0x23')][_0x35df('0x8')](_0x175c1e=>_0x175c1e['name']===_0x191bbd)),_0x332aab;}['getRangesWithClasses'](_0x4928d4,_0x36934a,_0x58917b,_0x3843ad){const _0x2b0d4e=[];for(const _0x724ac7 of _0x36934a[_0x35df('0x2')]()){const _0x747ef8=_0x724ac7['getAttribute'](_0x3843ad);_0x747ef8&&(_0x58917b[_0x35df('0x2e')](_0x566d8a=>_0x747ef8['classes']['includes'](_0x566d8a))&&_0x2b0d4e[_0x35df('0x3')](_0x4928d4[_0x35df('0x19')](_0x724ac7)));}return _0x2b0d4e;}}
|