@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230801.0 → 0.0.0-nightly-20230803.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.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/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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/imagereplace.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/listproperties.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/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cc3=['*Reset\x20font\x20color*','fontBackgroundColor.colors','has','editor','value','label','*Set\x20font\x20background\x20color:*\x20%0','*Reset\x20font\x20background\x20color*','FontFamilyEditing','trim','*Set\x20font\x20color:*\x20%0','document','config','fontSize.options','fontColor','fontColor.colors','commandParams','find','plugins','fontSize','get','*Reset\x20font\x20family*','normalizeSizeOptions','FontSizeEditing','fontFamily','model','TrackChangesEditing','locale','_enableCommand','fontBackgroundColor','registerDescriptionCallback','format','toLowerCase','afterInit','*Set\x20font\x20size:*\x20%0','_descriptionFactory','FontColorEditing','from','commandName','FontSize','change'];(function(_0x24ec9f,_0x1cc381){const _0x31cf6b=function(_0x4d380a){while(--_0x4d380a){_0x24ec9f['push'](_0x24ec9f['shift']());}};_0x31cf6b(++_0x1cc381);}(_0x1cc3,0xff));const _0x31cf=function(_0x24ec9f,_0x1cc381){_0x24ec9f=_0x24ec9f-0x0;let _0x31cf6b=_0x1cc3[_0x24ec9f];return _0x31cf6b;};import{Plugin as _0xaa0175}from'ckeditor5/src/core';import{normalizeColorOptions as _0x28f84a}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x37a457}from'./utils';import{getTranslation as _0x3d308d}from'../utils/common-translations';const Zt=[{'pluginName':_0x31cf('0xe'),'commandName':_0x31cf('0xa')},{'pluginName':_0x31cf('0x28'),'commandName':_0x31cf('0xf')},{'pluginName':_0x31cf('0x1b'),'commandName':_0x31cf('0x5')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x31cf('0x14')}];export default class H extends _0xaa0175{[_0x31cf('0x18')](){const _0x3102cc=this[_0x31cf('0x23')][_0x31cf('0x12')];for(const {pluginName:_0x4e02be,commandName:_0x12a663}of Zt)this['editor'][_0x31cf('0x9')][_0x31cf('0x22')](_0x4e02be)&&this[_0x31cf('0x13')](_0x12a663);this[_0x31cf('0x23')]['plugins'][_0x31cf('0xb')](_0x31cf('0x11'))[_0x31cf('0x1a')][_0x31cf('0x15')](_0x3bc79c=>{const _0x19ac19=_0x3102cc['t'],{data:_0x231e76}=_0x3bc79c;if(null!=_0x231e76){if(_0x31cf('0xa')==_0x231e76[_0x31cf('0x1d')]){const _0xa26dda=_0x231e76[_0x31cf('0x7')][0x0][_0x31cf('0x24')];if(_0xa26dda){const _0x39de7c=_0x19ac19(this[_0x31cf('0x23')][_0x31cf('0x9')][_0x31cf('0xb')](_0x31cf('0x1e'))[_0x31cf('0xd')](this[_0x31cf('0x23')][_0x31cf('0x3')][_0x31cf('0xb')](_0x31cf('0x4')))[_0x31cf('0x8')](_0x5a8ba9=>_0x5a8ba9[_0x31cf('0x10')]==_0xa26dda)['title'])[_0x31cf('0x17')]();return{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,_0x31cf('0x19'),_0x39de7c)};}return{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,'*Reset\x20font\x20size*')};}if(_0x31cf('0xf')==_0x231e76[_0x31cf('0x1d')]){const _0x2f8903=_0x231e76['commandParams'][0x0][_0x31cf('0x24')];return _0x2f8903?{'type':'format','content':_0x3d308d(_0x3102cc,'*Set\x20font\x20family:*\x20%0',_0x2f8903)}:{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,_0x31cf('0xc'))};}if('fontColor'==_0x231e76['commandName']){const _0x262449=_0x231e76[_0x31cf('0x7')][0x0][_0x31cf('0x24')];if(_0x262449){const _0x5d102c=_0x28f84a(this[_0x31cf('0x23')]['config']['get'](_0x31cf('0x6')))[_0x31cf('0x8')](_0x57e24d=>_0x57e24d[_0x31cf('0x10')]==_0x262449);let _0x36601=_0x262449,_0x3eff81='';return _0x5d102c&&(_0x36601=_0x5d102c['label'],_0x3eff81=_0x19ac19(_0x36601)[_0x31cf('0x17')]()),{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,_0x31cf('0x1'),_0x3eff81)[_0x31cf('0x0')](),'color':{'value':_0x262449,'title':_0x3eff81||_0x36601}};}return{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,_0x31cf('0x20'))};}if(_0x31cf('0x14')==_0x231e76[_0x31cf('0x1d')]){const _0xdec3d=_0x231e76[_0x31cf('0x7')][0x0]['value'];if(_0xdec3d){const _0x3a6cf2=_0x28f84a(this['editor'][_0x31cf('0x3')][_0x31cf('0xb')](_0x31cf('0x21')))[_0x31cf('0x8')](_0x1f73d6=>_0x1f73d6['model']==_0xdec3d);let _0x3addd9=_0xdec3d,_0x4497dd='';return _0x3a6cf2&&(_0x3addd9=_0x3a6cf2[_0x31cf('0x25')],_0x4497dd=_0x19ac19(_0x3addd9)[_0x31cf('0x17')]()),{'type':'format','content':_0x3d308d(_0x3102cc,_0x31cf('0x26'),_0x4497dd)[_0x31cf('0x0')](),'color':{'value':_0xdec3d,'title':_0x4497dd||_0x3addd9}};}return{'type':_0x31cf('0x16'),'content':_0x3d308d(_0x3102cc,_0x31cf('0x27'))};}}});}['_enableCommand'](_0x183996){const _0x859baf=this['editor'];_0x859baf['plugins'][_0x31cf('0xb')](_0x31cf('0x11'))['enableCommand'](_0x183996,(_0x35796c,_0x1c4772={})=>{const _0x3b91af=_0x859baf[_0x31cf('0x10')][_0x31cf('0x2')]['selection'],_0x57eca0=_0x1c4772[_0x31cf('0x24')];_0x3b91af['isCollapsed']?_0x35796c(_0x1c4772):_0x859baf[_0x31cf('0x10')][_0x31cf('0x1f')](()=>{const _0x2e50ae=Array[_0x31cf('0x1c')](_0x3b91af['getRanges']());for(const _0x2d6c1a of _0x2e50ae){const _0x48d66c=_0x57eca0?[_0x2d6c1a]:_0x37a457(_0x183996,_0x2d6c1a,_0x859baf[_0x31cf('0x10')]);for(const _0x57d635 of _0x48d66c)_0x859baf['plugins'][_0x31cf('0xb')]('TrackChangesEditing')['markInlineFormat'](_0x57d635,{'commandName':_0x183996,'commandParams':[{'value':_0x57eca0}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a7=['copyFormat','isBlock','isCollapsed','entries','forward','getLastPosition','get','normalizeSizeOptions','fontBackgroundColor','modifySelection','split','toUpperCase','isFormatting','keys','TrackChangesEditing','pasteFormat','getAttributeProperties','word','FontSize','document','getRanges','enableCommand','fontSize','fontSize.options','editor','commands','join','getSelectedBlocks','backward','config','getFirstPosition','getItems','*Remove\x20all\x20formatting*','label','schema','*Set\x20format\x20to:*\x20%0','getAttributes','createRange','selection','format','from','slice','model','commandParams','length','toLowerCase','locale','charAt','markInlineFormat','createSelection','afterInit'];(function(_0x41457c,_0x39a71a){const _0x4ce903=function(_0x3c77aa){while(--_0x3c77aa){_0x41457c['push'](_0x41457c['shift']());}};_0x4ce903(++_0x39a71a);}(_0x39a7,0x176));const _0x4ce9=function(_0x41457c,_0x39a71a){_0x41457c=_0x41457c-0x0;let _0x4ce903=_0x39a7[_0x41457c];return _0x4ce903;};import{Plugin as _0x219cd3}from'ckeditor5/src/core';import{normalizeColorOptions as _0x17158a}from'ckeditor5/src/ui';import{first as _0x35a607}from'ckeditor5/src/utils';import{getTranslation as _0xcb31f1}from'../utils/common-translations';export default class W extends _0x219cd3{[_0x4ce9('0x21')](){const _0x5af478=this[_0x4ce9('0x7')],_0xae12ec=_0x5af478[_0x4ce9('0x19')],_0x3b0d8b=_0xae12ec[_0x4ce9('0x2')][_0x4ce9('0x15')],_0x15fd5a=_0x5af478['plugins'][_0x4ce9('0x28')](_0x4ce9('0x30')),_0x1bd663=_0x5af478[_0x4ce9('0x1d')],_0x58b260=_0x5af478[_0x4ce9('0x8')][_0x4ce9('0x28')](_0x4ce9('0x22')),_0x2c0723=_0x5af478['commands'][_0x4ce9('0x28')](_0x4ce9('0x31'));_0x58b260&&_0x2c0723&&(_0x15fd5a['enableCommand'](_0x4ce9('0x31'),(_0x4b7674,_0x5c1e14={})=>{const _0x2df388=_0x5c1e14;_0xae12ec['change'](()=>{const _0x3b08fa=Array[_0x4ce9('0x17')](_0x3b0d8b[_0x4ce9('0x3')]()),_0x178b4a=_0x3b0d8b[_0x4ce9('0x24')]?[ro(_0xae12ec,_0x3b0d8b)]:_0x3b08fa,_0x5b7e67=!!_0x35a607(function*(_0x2083ee,_0x47c3f0){const _0x2868f4=_0x480699=>!!_0x35a607(function*(_0x43ec07,_0x54f1d2){for(const [_0x231cf5]of _0x43ec07[_0x4ce9('0x13')]()){const _0x6fa39e=_0x54f1d2[_0x4ce9('0x32')](_0x231cf5);_0x6fa39e&&_0x6fa39e[_0x4ce9('0x2e')]&&(yield _0x231cf5);}}(_0x480699,_0x47c3f0));for(const _0x1285cb of _0x2083ee[_0x4ce9('0x3')]())for(const _0x5a154c of _0x1285cb[_0x4ce9('0xe')]())!_0x47c3f0[_0x4ce9('0x23')](_0x5a154c)&&_0x2868f4(_0x5a154c)&&(yield _0x5a154c);for(const _0x1cfdd1 of _0x2083ee[_0x4ce9('0xa')]())_0x2868f4(_0x1cfdd1)&&(yield _0x1cfdd1);_0x2868f4(_0x2083ee)&&(yield _0x2083ee);}(_0x3b0d8b,_0xae12ec[_0x4ce9('0x11')]));if(_0x5b7e67||0x0!==Object[_0x4ce9('0x2f')](_0x2df388)[_0x4ce9('0x1b')])for(const _0x473838 of _0x178b4a)_0x15fd5a[_0x4ce9('0x1f')](_0x473838,{'commandName':_0x4ce9('0x31'),'commandParams':[_0x2df388]});});}),_0x15fd5a['_descriptionFactory']['registerDescriptionCallback'](_0xdd0787=>{const {data:_0x32e55a}=_0xdd0787;if(_0x32e55a&&'pasteFormat'===_0x32e55a['commandName']){const _0x92085a=[],_0xb39a28=_0x32e55a[_0x4ce9('0x1a')][0x0];for(const [_0x4ce585,_0x5f25af]of Object[_0x4ce9('0x25')](_0xb39a28))_0x92085a['push'](no(_0x5af478,_0x4ce585,_0x5f25af));return _0x92085a[_0x4ce9('0x1b')]?{'type':_0x4ce9('0x16'),'content':_0xcb31f1(_0x1bd663,_0x4ce9('0x12'),_0x92085a[_0x4ce9('0x9')](',\x20'))}:{'type':_0x4ce9('0x16'),'content':_0xcb31f1(_0x1bd663,_0x4ce9('0xf'))};}}),_0x5af478['plugins'][_0x4ce9('0x28')](_0x4ce9('0x30'))[_0x4ce9('0x4')]('copyFormat'));}}function ro(_0x72be3c,_0x3f420d){const _0x2cfa35=_0x72be3c[_0x4ce9('0x20')](_0x3f420d);_0x72be3c['modifySelection'](_0x2cfa35,{'unit':'word','direction':_0x4ce9('0xb')});const _0x50ad5d=_0x2cfa35[_0x4ce9('0xd')]();_0x72be3c[_0x4ce9('0x2b')](_0x2cfa35,{'unit':_0x4ce9('0x0'),'direction':_0x4ce9('0x26')});const _0x3c793f=_0x2cfa35[_0x4ce9('0x27')]();return _0x72be3c[_0x4ce9('0x14')](_0x50ad5d,_0x3c793f);}function no(_0x43df49,_0x1dbc15,_0x2e1b10){const _0x32c2d2=_0x43df49[_0x4ce9('0x1d')]['t'],_0x316453=_0x1dbc15[_0x4ce9('0x2c')](/(?=[A-Z])/)[_0x4ce9('0x9')]('\x20'),_0x1f6273=_0x32c2d2(_0x316453[_0x4ce9('0x1e')](0x0)[_0x4ce9('0x2d')]()+_0x316453[_0x4ce9('0x18')](0x1))[_0x4ce9('0x1c')]();if('boolean'==typeof _0x2e1b10)return _0x1f6273;if('fontColor'===_0x1dbc15||_0x4ce9('0x2a')===_0x1dbc15){const _0x1dd6f7=_0x17158a(_0x43df49[_0x4ce9('0xc')][_0x4ce9('0x28')]('fontColor.colors'))['find'](_0x24a166=>_0x24a166[_0x4ce9('0x19')]==_0x2e1b10);return _0x1f6273+'\x20('+(_0x1dd6f7?_0x32c2d2(_0x1dd6f7[_0x4ce9('0x10')])[_0x4ce9('0x1c')]():_0x2e1b10)+')';}if(_0x4ce9('0x5')===_0x1dbc15&&isNaN(parseFloat(_0x2e1b10))){const _0x2bc153=_0x43df49['plugins'][_0x4ce9('0x28')](_0x4ce9('0x1'))[_0x4ce9('0x29')](_0x43df49[_0x4ce9('0xc')]['get'](_0x4ce9('0x6')))['find'](_0x568387=>_0x568387[_0x4ce9('0x19')]==_0x2e1b10);return _0x1f6273+'\x20('+(_0x2bc153?_0x32c2d2(_0x2bc153['title'])[_0x4ce9('0x1c')]():_0x2e1b10)+')';}return _0x1f6273+'\x20('+_0x2e1b10+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b09=['title','name','paragraph','from','heading','enableCommand','plugins','getSelectedBlocks','get','parent','_descriptionFactory','commandParams','heading.options','model','schema','match','checkChild','ELEMENT_HEADING','*Change\x20to:*\x20%0','change','commandName','afterInit','editor','format','markBlockFormat','formatBlock','blockName','TrackChangesEditing'];(function(_0x39406e,_0x1b0959){const _0x12f46c=function(_0x39eb26){while(--_0x39eb26){_0x39406e['push'](_0x39406e['shift']());}};_0x12f46c(++_0x1b0959);}(_0x1b09,0x154));const _0x12f4=function(_0x39406e,_0x1b0959){_0x39406e=_0x39406e-0x0;let _0x12f46c=_0x1b09[_0x39406e];return _0x12f46c;};import{Plugin as _0x1fa652}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x40be3d}from'./utils';import{getTranslation as _0x2690f2}from'../utils/common-translations';export default class J extends _0x1fa652{[_0x12f4('0x11')](){const _0x544b83=this['editor'],_0x114dbd=_0x544b83['locale'],_0x5ddc3c=_0x544b83['config'][_0x12f4('0x4')](_0x12f4('0x8'));if(!_0x544b83[_0x12f4('0x2')]['has']('HeadingEditing'))return;const _0x34cac9=_0x544b83[_0x12f4('0x2')][_0x12f4('0x4')](_0x12f4('0x17'));_0x34cac9[_0x12f4('0x1')](_0x12f4('0x0'),(_0x4d2bd9,_0x45974d)=>{const _0x20f95c=_0x45974d['value'],_0x13a6a7=Array[_0x12f4('0x1b')](this['editor'][_0x12f4('0x9')]['document']['selection'][_0x12f4('0x3')]())['filter'](_0x519920=>function(_0x1b9971,_0x55352d,_0x16def3){return _0x16def3[_0x12f4('0xc')](_0x1b9971[_0x12f4('0x5')],_0x55352d)&&!_0x16def3['isObject'](_0x1b9971)&&_0x1b9971[_0x12f4('0x19')]!=_0x55352d;}(_0x519920,_0x20f95c,this[_0x12f4('0x12')][_0x12f4('0x9')][_0x12f4('0xa')]));_0x544b83[_0x12f4('0x9')][_0x12f4('0xf')](()=>{for(const _0x4d75df of _0x13a6a7)_0x34cac9[_0x12f4('0x14')](_0x4d75df,{'commandName':'heading','commandParams':[_0x45974d],'formatGroupId':_0x12f4('0x16')},_0x40be3d(_0x4d75df));});});for(const _0x134cee of _0x5ddc3c)_0x12f4('0x1a')!=_0x134cee['model']&&_0x34cac9[_0x12f4('0x6')]['registerElementLabel'](_0x134cee[_0x12f4('0x9')],_0x190805=>{const _0x3c493c=nn(_0x134cee[_0x12f4('0x9')]);return null!==_0x3c493c?_0x2657c5(_0x190805,_0x3c493c):_0x31d441(_0x190805,_0x134cee['title']);});function _0x2657c5(_0x512226,_0x37ba20){return _0x2690f2(_0x114dbd,_0x12f4('0xd'),[_0x512226,_0x37ba20]);}function _0x31d441(_0x5b33b7,_0x26a6db){return _0x2690f2(_0x114dbd,'ELEMENT_HEADING_CUSTOM',[_0x5b33b7,_0x26a6db]);}_0x34cac9['_descriptionFactory']['registerDescriptionCallback'](_0x25832e=>{const {type:_0x1b9634,data:_0x19ced5}=_0x25832e;if(_0x12f4('0x15')==_0x1b9634&&_0x19ced5&&'heading'==_0x19ced5[_0x12f4('0x10')]){const _0x9efbec=_0x19ced5[_0x12f4('0x7')][0x0]['value'],_0x3dc791=nn(_0x9efbec);if(null!==_0x3dc791)return{'type':_0x12f4('0x13'),'content':_0x2690f2(_0x114dbd,_0x12f4('0xe'),_0x2657c5(0x1,_0x3dc791))};const _0x342cc2=_0x5ddc3c['find'](_0x1f36df=>_0x1f36df[_0x12f4('0x9')]===_0x9efbec)[_0x12f4('0x18')];return{'type':_0x12f4('0x13'),'content':_0x2690f2(_0x114dbd,_0x12f4('0xe'),_0x31d441(0x1,_0x342cc2))};}});}}function nn(_0x1d1e1a){const _0x5b1f08=_0x1d1e1a[_0x12f4('0xb')](/^heading(\d+)$/);return _0x5b1f08?_0x5b1f08[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21d0=['HighlightEditing','getRanges','document','model','enableCommand','commandName','plugins','config','FORMAT_HIGHLIGHT','find','format','value','has','getFirstPosition','push','backward','commandParams','isCollapsed','getAttribute','get','TrackChangesEditing','color','*Set\x20highlight:*\x20%0','highlight.options','_descriptionFactory','*Remove\x20highlight*','afterInit','editor','highlight','title','change','markInlineFormat'];(function(_0x386f55,_0x21d0ab){const _0x5051dd=function(_0x2221e2){while(--_0x2221e2){_0x386f55['push'](_0x386f55['shift']());}};_0x5051dd(++_0x21d0ab);}(_0x21d0,0x151));const _0x5051=function(_0x386f55,_0x21d0ab){_0x386f55=_0x386f55-0x0;let _0x5051dd=_0x21d0[_0x386f55];return _0x5051dd;};import{Plugin as _0x591ef4}from'ckeditor5/src/core';import{getTranslation as _0x40c5db}from'../utils/common-translations';import{getRangesWithAttribute as _0x43148f}from'./utils';export default class K extends _0x591ef4{[_0x5051('0x9')](){const _0x51a029=this[_0x5051('0xa')];if(!_0x51a029[_0x5051('0x15')][_0x5051('0x1b')](_0x5051('0xf')))return;const _0x1481f4=_0x51a029[_0x5051('0x15')][_0x5051('0x2')](_0x5051('0x3'));_0x1481f4[_0x5051('0x13')]('highlight',(_0x23edb0,_0x54828a={})=>{const _0x5b9f89=_0x51a029[_0x5051('0x12')][_0x5051('0x11')]['selection'],_0x50bb55=_0x5b9f89[_0x5051('0x1')](_0x5051('0xb'));let _0x15d3d0=_0x54828a[_0x5051('0x1a')],_0x15c0b1=[];if(_0x5b9f89[_0x5051('0x0')]){const _0x3c795a=_0x5b9f89[_0x5051('0x1c')]();if(!_0x5b9f89['hasAttribute'](_0x5051('0xb')))return void _0x23edb0(_0x54828a);{const _0x22f69e=_0x2b93a6=>_0x2b93a6['item'][_0x5051('0x1')]('highlight')===_0x50bb55,_0x4a16a6=_0x3c795a['getLastMatchingPosition'](_0x22f69e,{'direction':_0x5051('0x1e')}),_0x4309d8=_0x3c795a['getLastMatchingPosition'](_0x22f69e);_0x15c0b1=[_0x51a029[_0x5051('0x12')]['createRange'](_0x4a16a6,_0x4309d8)],_0x15d3d0==_0x50bb55&&(_0x15d3d0=null);}}else for(const _0x13ac01 of _0x5b9f89[_0x5051('0x10')]())_0x15d3d0?_0x15c0b1[_0x5051('0x1d')](_0x13ac01):_0x15c0b1['push'](..._0x43148f(_0x5051('0xb'),_0x13ac01,_0x51a029[_0x5051('0x12')]));_0x51a029['model'][_0x5051('0xd')](()=>{for(const _0x195ae1 of _0x15c0b1)_0x1481f4[_0x5051('0xe')](_0x195ae1,{'commandName':_0x5051('0xb'),'commandParams':[{'value':_0x15d3d0}]});});});const _0x257d2b=_0x51a029['locale'];_0x1481f4[_0x5051('0x7')]['registerDescriptionCallback'](_0x4acf3b=>{const {type:_0x6ba910,data:_0x598eb2}=_0x4acf3b;if('formatInline'==_0x6ba910&&_0x598eb2&&_0x5051('0xb')==_0x598eb2[_0x5051('0x14')]){const _0x55849=_0x257d2b['t'],_0x3ff521=_0x598eb2[_0x5051('0x1f')][0x0][_0x5051('0x1a')];if(_0x3ff521){const _0xb2399c=_0x51a029[_0x5051('0x16')][_0x5051('0x2')](_0x5051('0x6'))[_0x5051('0x18')](_0xe7afbf=>_0xe7afbf[_0x5051('0x12')]==_0x3ff521),_0x4e0f97=_0x55849(_0xb2399c[_0x5051('0xc')])['toLowerCase']();return{'type':'format','content':_0x40c5db(_0x257d2b,_0x5051('0x5'),_0x4e0f97),'color':{'value':_0xb2399c[_0x5051('0x4')],'title':_0xb2399c['title']}};}return{'type':_0x5051('0x19'),'content':_0x40c5db(_0x257d2b,_0x5051('0x8'),_0x40c5db(_0x257d2b,_0x5051('0x17')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x338b=['get','conversion','createEmptyElement','editor','_descriptionFactory','for','ELEMENT_HORIZONTAL_LINE','div','plugins','horizontalLine','createPositionAt','addClass','showSuggestionHighlights','afterInit','enableCommand','TrackChangesEditing','has','locale'];(function(_0x40ed3d,_0x338b53){const _0x55102a=function(_0x593c67){while(--_0x593c67){_0x40ed3d['push'](_0x40ed3d['shift']());}};_0x55102a(++_0x338b53);}(_0x338b,0x174));const _0x5510=function(_0x40ed3d,_0x338b53){_0x40ed3d=_0x40ed3d-0x0;let _0x55102a=_0x338b[_0x40ed3d];return _0x55102a;};import{Plugin as _0x40879a}from'ckeditor5/src/core';import{getTranslation as _0x3494e4}from'../utils/common-translations';export default class Q extends _0x40879a{[_0x5510('0x1')](){const _0x3b6bab=this[_0x5510('0x9')];if(!_0x3b6bab[_0x5510('0xe')][_0x5510('0x4')]('HorizontalLineEditing'))return;_0x3b6bab[_0x5510('0xe')][_0x5510('0x6')](_0x5510('0x3'))[_0x5510('0x2')](_0x5510('0xf'));const _0x51461b=_0x3b6bab['plugins'][_0x5510('0x6')](_0x5510('0x3')),_0x34a5c0=_0x3b6bab[_0x5510('0x5')];_0x51461b[_0x5510('0xa')]['registerElementLabel'](_0x5510('0xf'),_0x1ed9d5=>_0x3494e4(_0x34a5c0,_0x5510('0xc'),_0x1ed9d5)),_0x3b6bab[_0x5510('0x7')][_0x5510('0xb')]('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48c35e,{writer:_0x31c800,options:_0x56c864})=>{if(!_0x56c864[_0x5510('0x0')])return null;const _0x2f2fa2=_0x31c800['createContainerElement'](_0x5510('0xd')),_0x72edba=_0x31c800[_0x5510('0x8')]('hr');return _0x31c800[_0x5510('0x11')]('ck-horizontal-line',_0x2f2fa2),_0x31c800['insert'](_0x31c800[_0x5510('0x10')](_0x2f2fa2,0x0),_0x72edba),_0x2f2fa2;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c3d=['plugins','element','getCustomProperty','selection','getAttribute','has','markBlockFormat','format','editor','document','htmlEmbed','registerElementLabel','cancel','model','get','ELEMENT_HTML_EMBED','editing','getSelectedElement','rawHtmlApi','value','*Change\x20%0\x20content*','TrackChangesEditing','rawHtml','enableCommand','_descriptionFactory'];(function(_0x4ec358,_0x2c3dcc){const _0x3d0b68=function(_0x5329f8){while(--_0x5329f8){_0x4ec358['push'](_0x4ec358['shift']());}};_0x3d0b68(++_0x2c3dcc);}(_0x2c3d,0x1af));const _0x3d0b=function(_0x4ec358,_0x2c3dcc){_0x4ec358=_0x4ec358-0x0;let _0x3d0b68=_0x2c3d[_0x4ec358];return _0x3d0b68;};import{Plugin as _0x52da3b}from'ckeditor5/src/core';import{getTranslation as _0x57bb95}from'../utils/common-translations';export default class V extends _0x52da3b{['afterInit'](){const _0x39208a=this[_0x3d0b('0x2')];if(!_0x39208a[_0x3d0b('0x13')][_0x3d0b('0x18')]('HtmlEmbed'))return;const _0x2f43f6=_0x39208a[_0x3d0b('0x13')]['get']('TrackChangesEditing'),_0x4e9601=_0x39208a['locale'],_0x202eb2=_0x39208a[_0x3d0b('0xa')]['view']['document'][_0x3d0b('0x16')];_0x2f43f6[_0x3d0b('0x12')][_0x3d0b('0x5')]('rawHtml',_0x2d9a7b=>_0x57bb95(_0x4e9601,_0x3d0b('0x9'),_0x2d9a7b)),_0x39208a[_0x3d0b('0x13')][_0x3d0b('0x8')](_0x3d0b('0xf'))[_0x3d0b('0x11')](_0x3d0b('0x4'),(_0x3100a7,_0x5a7955)=>{const _0xa3a3d=_0x39208a[_0x3d0b('0x7')],_0x50391c=_0xa3a3d[_0x3d0b('0x3')][_0x3d0b('0x16')];_0xa3a3d['change'](()=>{const _0x4e56f3=function(_0x25c006){const _0x5258e1=_0x25c006[_0x3d0b('0xb')]();if(_0x5258e1&&_0x5258e1['is'](_0x3d0b('0x14'),_0x3d0b('0x10')))return _0x25c006['getSelectedElement']();return null;}(_0x50391c);if(!_0x4e56f3)return void _0x3100a7(null);const _0xf87bb7=_0x4e56f3[_0x3d0b('0x17')](_0x3d0b('0xd'))||'';if(void 0x0===_0x5a7955)return;if(_0x5a7955===_0xf87bb7)return;_0x2f43f6[_0x3d0b('0x0')](_0x4e56f3,{'commandName':'htmlEmbed','commandParams':[_0x5a7955]}),_0x202eb2[_0x3d0b('0xb')]()[_0x3d0b('0x15')](_0x3d0b('0xc'))[_0x3d0b('0x6')]();});}),_0x2f43f6[_0x3d0b('0x12')]['registerDescriptionCallback'](_0x3a725f=>{const {data:_0x246fe1}=_0x3a725f;if(_0x246fe1&&_0x3d0b('0x4')==_0x246fe1['commandName']){const _0x456bb8=_0x57bb95(_0x4e9601,_0x3d0b('0x9'));return{'type':_0x3d0b('0x1'),'content':_0x57bb95(_0x4e9601,_0x3d0b('0xe'),_0x456bb8)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d6e=['commandParams','imageStylePostApply','from','imageStyle','start','accept','value','convertBlockImageToInline','imageInline','ELEMENT_INLINE_IMAGE','editor','commandName','model','ImageBlockEditing','createRange','getSuggestions','getCaptionFromImageModelElement','afterInit','format','nodeBefore','hasSuggestion','resizeImage','get','createRangeOn','getNearestSelectionRange','imageCaption','*Reset\x20image\x20width*','find','chain','commands','width','isInlineImage','getContainedElement','removeObject','ImageEditing','subType','getChangedMarkers','_descriptionFactory','element','imageTextAlternative','registerElementLabel','type','getFirstRange','join','head','filter','*Remove\x20image\x20text\x20alternative*','alt','detach','imageStylePreApply','ImageUtils','isBlockImage','ImageUploadEditing','ImageCaptionEditing','markBlockFormat','discardSuggestion','formatInline','selection','uploadImage','change','registerCustomCallback','*Set\x20image\x20text\x20alternative:*\x20%0','imageTypeBlock','getClosestSelectedImageElement','ImageCaptionUtils','_findSuggestions','markDeletion','fromPosition','forward','length','getAttribute','addObject','document','plugins','_suggestionFactory','insertion','isBefore','newRange','forceDefaultExecution','locale','findIndex','imageBlock','caption','getSuggestion','forEach','insertImage','previous','formatBlock','_splitMarkerName','markInlineFormat','side','imageTypeInline','discard','TrackChangesEditing','isEqual','isInContent','*Format:*\x20%0','refresh','isCollapsed','registerPostFixer','newValue','nodeAfter','next','Users','isOwn','ELEMENT_IMAGE','Inline\x20image\x20to\x20block\x20image','markInsertion','toggleImageCaption','schema','toNext','author','hasAttribute','has','normalizedStyles','registerDescriptionCallback','ImageStyleEditing','ELEMENT_CAPTION','enableCommand','Block\x20image\x20to\x20inline\x20image','name','ImageResize','end','convertInlineImageToBlock','getSuggestionCallback'];(function(_0x3d5f71,_0x2d6ee7){const _0x2246c6=function(_0x202591){while(--_0x202591){_0x3d5f71['push'](_0x3d5f71['shift']());}};_0x2246c6(++_0x2d6ee7);}(_0x2d6e,0x166));const _0x2246=function(_0x3d5f71,_0x2d6ee7){_0x3d5f71=_0x3d5f71-0x0;let _0x2246c6=_0x2d6e[_0x3d5f71];return _0x2246c6;};import{Plugin as _0x4f1995}from'ckeditor5/src/core';import{LivePosition as _0x391dda}from'ckeditor5/src/engine';import{uid as _0xc67b00}from'ckeditor5/src/utils';import{getTranslation as _0x32febd}from'../utils/common-translations';export default class X extends _0x4f1995{[_0x2246('0x22')](){const _0x3728f8=this[_0x2246('0x1b')];if(!_0x3728f8[_0x2246('0x5a')][_0x2246('0x5')](_0x2246('0x33')))return;const _0x102ce0=_0x3728f8[_0x2246('0x5a')]['get'](_0x2246('0x6e')),_0x26bd56=_0x3728f8['plugins'][_0x2246('0x27')](_0x2246('0x43')),_0xb30955={},_0x7ca646=_0x3728f8[_0x2246('0x60')];if(_0x102ce0[_0x2246('0xa')](_0x2246('0x66')),_0x102ce0['_descriptionFactory'][_0x2246('0x39')](_0x2246('0x62'),_0x4de913=>_0x32febd(_0x7ca646,_0x2246('0x7a'),_0x4de913)),_0x102ce0[_0x2246('0x36')][_0x2246('0x39')](_0x2246('0x19'),_0x385f8c=>_0x32febd(_0x7ca646,_0x2246('0x1a'),_0x385f8c)),_0x102ce0[_0x2246('0x36')]['registerElementLabel'](_0x2246('0x63'),()=>_0x32febd(_0x7ca646,_0x2246('0x9'))),_0x3728f8['plugins'][_0x2246('0x5')](_0x2246('0x45'))&&_0x102ce0[_0x2246('0xa')](_0x2246('0x4b')),_0x3728f8[_0x2246('0x5a')][_0x2246('0x5')](_0x2246('0x1e'))&&_0x3728f8[_0x2246('0x5a')][_0x2246('0x5')]('ImageInlineEditing')&&(_0x102ce0[_0x2246('0xa')](_0x2246('0x6c'),(_0x30dfad,_0x134a21)=>{const _0x3ed0ab=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')][_0x2246('0x4a')]);_0x3728f8[_0x2246('0x1d')][_0x2246('0x4c')](()=>{_0x102ce0[_0x2246('0x47')](_0x3ed0ab,{'commandName':_0x2246('0x6c'),'commandParams':[_0x134a21]},[],_0x2246('0x18'));});}),_0x102ce0[_0x2246('0xa')](_0x2246('0x4f'),(_0x32f14b,_0x30b1ad)=>{_0x3728f8[_0x2246('0x1d')][_0x2246('0x4c')](_0x4f42a4=>{let _0x1cf18a=_0x26bd56[_0x2246('0x50')](_0x3728f8['model'][_0x2246('0x59')][_0x2246('0x4a')]),_0x5e184f=_0x4f42a4[_0x2246('0x28')](_0x1cf18a);const _0x2132dd=_0x391dda['fromPosition'](_0x5e184f[_0x2246('0x15')],'toPrevious'),_0x1b530e=_0x391dda[_0x2246('0x54')](_0x5e184f[_0x2246('0xe')],_0x2246('0x2'));_0x102ce0[_0x2246('0x5f')](()=>_0x32f14b(_0x30b1ad)),_0x1cf18a=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')][_0x2246('0x4a')]),_0x5e184f=_0x4f42a4[_0x2246('0x28')](_0x1cf18a);const _0x4b0ec0=_0x4f42a4[_0x2246('0x1f')](_0x2132dd,_0x1b530e);_0x2132dd[_0x2246('0x41')](),_0x1b530e[_0x2246('0x41')](),_0x102ce0[_0x2246('0x47')](_0x1cf18a,{'commandName':_0x2246('0x6c'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x4b0ec0[_0x2246('0x15')]['isBefore'](_0x5e184f[_0x2246('0x15')])&&_0x102ce0[_0x2246('0x7c')](_0x4f42a4[_0x2246('0x1f')](_0x4b0ec0[_0x2246('0x15')],_0x5e184f['start']),'convertInlineImageToBlock'),_0x5e184f['end'][_0x2246('0x5d')](_0x4b0ec0[_0x2246('0xe')])&&_0x102ce0[_0x2246('0x7c')](_0x4f42a4[_0x2246('0x1f')](_0x5e184f[_0x2246('0xe')],_0x4b0ec0[_0x2246('0xe')]),_0x2246('0xf'));});}),_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')]('formatBlock',_0x2246('0xf'),_0x2246('0x3c'),()=>{}),_0x102ce0[_0x2246('0x5b')]['registerCustomCallback']('formatBlock',_0x2246('0xf'),_0x2246('0x16'),()=>{}),_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')](_0x2246('0x68'),_0x2246('0xf'),_0x2246('0x6d'),_0x102ce0[_0x2246('0x5b')][_0x2246('0x10')]('formatBlock','',_0x2246('0x16'))),_0x102ce0['_suggestionFactory']['registerCustomCallback'](_0x2246('0x5c'),_0x2246('0xf'),_0x2246('0x3c'),()=>{}),_0x102ce0[_0x2246('0x5b')]['registerCustomCallback'](_0x2246('0x5c'),_0x2246('0xf'),_0x2246('0x6d'),([_0x54de83])=>{const _0x5c4359=_0x102ce0[_0x2246('0x5b')][_0x2246('0x10')](_0x2246('0x5c'),'','discard');let _0x23212f=_0x54de83['start'],_0x5eab19=_0x54de83['end'];const _0x48843f=_0x3728f8['model'][_0x2246('0x1')][_0x2246('0x29')](_0x23212f,'backward'),_0x231c38=_0x3728f8[_0x2246('0x1d')][_0x2246('0x1')][_0x2246('0x29')](_0x5eab19,_0x2246('0x55'));_0x48843f[_0x2246('0x73')]&&(_0x23212f=_0x48843f[_0x2246('0x15')]),_0x231c38[_0x2246('0x73')]&&(_0x5eab19=_0x231c38[_0x2246('0xe')]),_0x5c4359([_0x3728f8['model'][_0x2246('0x1f')](_0x23212f,_0x5eab19)]);}),_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')](_0x2246('0x68'),_0x2246('0xf'),'chain',_0x54966f),_0x102ce0[_0x2246('0x5b')]['registerCustomCallback'](_0x2246('0x5c'),_0x2246('0xf'),'chain',_0x54966f)),_0x3728f8['plugins']['has'](_0x2246('0x46'))&&(_0x102ce0['enableCommand'](_0x2246('0x0'),(_0x409609,_0xaefdf8)=>{const _0x43bfb3=_0x3728f8['plugins'][_0x2246('0x27')](_0x2246('0x51'));let _0x24e876=_0x26bd56['getClosestSelectedImageElement'](_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')][_0x2246('0x4a')]),_0x1f37ca=_0x43bfb3[_0x2246('0x21')](_0x24e876);_0x3728f8['model'][_0x2246('0x4c')](()=>{if(_0x1f37ca)return void _0x102ce0[_0x2246('0x53')](_0x3728f8[_0x2246('0x1d')][_0x2246('0x28')](_0x1f37ca));const _0x5541e1=_0x26bd56[_0x2246('0x44')](_0x24e876);_0x409609(_0xaefdf8),_0x24e876=_0x26bd56[_0x2246('0x50')](_0x3728f8['model'][_0x2246('0x59')][_0x2246('0x4a')]),_0x1f37ca=_0x43bfb3[_0x2246('0x21')](_0x24e876),_0x102ce0['markInsertion'](_0x3728f8[_0x2246('0x1d')][_0x2246('0x28')](_0x1f37ca),_0x5541e1?null:_0x2246('0x2a'));});}),_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')](_0x2246('0x5c'),_0x2246('0x2a'),_0x2246('0x2d'),_0x54966f)),_0x3728f8['plugins'][_0x2246('0x5')](_0x2246('0x8'))){_0x102ce0[_0x2246('0xa')]('imageStyle',(_0x571927,_0x49435c)=>{const _0x4f0011=_0x3728f8[_0x2246('0x5a')][_0x2246('0x27')](_0x2246('0x78'))['me'],_0x5bbcd2=_0x3728f8[_0x2246('0x2e')]['get'](_0x2246('0x14'));let _0x1e64d8=_0x26bd56[_0x2246('0x50')](_0x3728f8['model'][_0x2246('0x59')][_0x2246('0x4a')]),_0x59b620=_0x3728f8[_0x2246('0x1d')][_0x2246('0x28')](_0x1e64d8),_0x10e354=_0x5bbcd2[_0x2246('0x17')];if(_0x10e354==_0x49435c[_0x2246('0x17')])return;const _0x5f31c8={'commandName':_0x2246('0x14'),'commandParams':[_0x49435c],'formatGroupId':_0xc67b00()};_0x3728f8[_0x2246('0x1d')][_0x2246('0x4c')](()=>{if(_0x102ce0[_0x2246('0x20')]()[_0x2246('0x3e')](_0x566c7b=>_0x566c7b['isInContent']&&_0x4f0011==_0x566c7b[_0x2246('0x3')]&&(_0x2246('0x68')==_0x566c7b[_0x2246('0x3a')]||'formatInline'==_0x566c7b['type'])&&(_0x2246('0x42')==_0x566c7b[_0x2246('0x34')]||_0x2246('0x12')==_0x566c7b[_0x2246('0x34')])&&_0x566c7b[_0x2246('0x3b')]()[_0x2246('0x6f')](_0x59b620))[_0x2246('0x65')](_0x20065f=>_0x102ce0[_0x2246('0x48')](_0x20065f[_0x2246('0x3d')])),_0x1e64d8=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')]['selection']),_0x59b620=_0x3728f8[_0x2246('0x1d')][_0x2246('0x28')](_0x1e64d8),_0x5bbcd2[_0x2246('0x72')](),_0x3728f8[_0x2246('0x2e')][_0x2246('0x27')](_0x2246('0x6c'))[_0x2246('0x72')](),_0x3728f8[_0x2246('0x2e')]['get']('imageTypeBlock')[_0x2246('0x72')](),_0x10e354=_0x5bbcd2[_0x2246('0x17')],_0x10e354!=_0x49435c['value'])return _0x26bd56[_0x2246('0x30')](_0x1e64d8)&&_0x5bbcd2['shouldConvertImageType'](_0x49435c[_0x2246('0x17')],_0x1e64d8)?(_0x571927(_0x49435c),_0x1e64d8=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')]['document'][_0x2246('0x4a')]),void _0x102ce0['markBlockFormat'](_0x1e64d8,{..._0x5f31c8,'commandReversedParams':[{'value':_0x10e354||null}]},[],_0x2246('0x42'))):void(_0x26bd56[_0x2246('0x44')](_0x1e64d8)?_0x102ce0[_0x2246('0x47')](_0x1e64d8,_0x5f31c8,[],'imageStylePostApply'):_0x102ce0[_0x2246('0x6a')](_0x59b620,_0x5f31c8,'imageStylePostApply'));});});for(const _0x2e37c2 of _0x3728f8[_0x2246('0x5a')][_0x2246('0x27')](_0x2246('0x8'))[_0x2246('0x6')])_0xb30955[_0x2e37c2[_0x2246('0xc')]]=_0x2e37c2['title']['toLowerCase']();_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')]('formatBlock',_0x2246('0x42'),_0x2246('0x3c'),()=>{}),_0x102ce0['_suggestionFactory'][_0x2246('0x4d')]('formatBlock','imageStylePostApply',_0x2246('0x3c'),()=>{}),_0x102ce0['_suggestionFactory'][_0x2246('0x4d')](_0x2246('0x49'),_0x2246('0x12'),'join',()=>{}),_0x102ce0[_0x2246('0x5b')]['registerCustomCallback'](_0x2246('0x68'),_0x2246('0x42'),_0x2246('0x16'),()=>{}),_0x102ce0[_0x2246('0x5b')]['registerCustomCallback'](_0x2246('0x68'),_0x2246('0x42'),_0x2246('0x6d'),(_0x1890dd,_0x5286a6)=>{_0x102ce0[_0x2246('0x5b')][_0x2246('0x10')](_0x2246('0x68'),'',_0x2246('0x16'))(_0x1890dd,{'commandName':_0x5286a6[_0x2246('0x1c')],'commandParams':_0x5286a6['commandReversedParams']});}),_0x102ce0[_0x2246('0x5b')][_0x2246('0x4d')](_0x2246('0x68'),_0x2246('0x42'),'chain',_0x54966f);}const _0x128098=[{'type':_0x2246('0x68'),'subType':'imageStylePreApply'},{'type':_0x2246('0x5c'),'subType':'imageCaption'},{'type':_0x2246('0x68'),'subType':'convertInlineImageToBlock'},{'type':_0x2246('0x5c'),'subType':_0x2246('0xf')}];function _0x337e87(_0x358b5f,_0x34b438){const _0x39257e=_0x128098[_0x2246('0x61')](({type:_0x45716c,subType:_0x4f765e})=>_0x358b5f[_0x2246('0x3a')]==_0x45716c&&_0x358b5f['subType']==_0x4f765e),_0x4cc933=_0x128098['findIndex'](({type:_0x341452,subType:_0x3d7e98})=>_0x34b438[_0x2246('0x3a')]==_0x341452&&_0x34b438['subType']==_0x3d7e98);if(_0x39257e<0x0||_0x4cc933<0x0)return!0x1;const _0x402afa=_0x358b5f[_0x2246('0x3b')](),_0x370a5a=_0x34b438[_0x2246('0x3b')]();if((0x0==_0x39257e||0x1==_0x39257e)&&0x2==_0x4cc933&&_0x402afa['isIntersecting'](_0x370a5a))return!0x0;if(0x2==_0x39257e&&0x3==_0x4cc933){const _0x46259b=_0x102ce0[_0x2246('0x52')](_0x402afa,'insertion')[_0x2246('0x3e')](({suggestion:_0x967ef4,meta:_0x3f38a2})=>_0x3f38a2[_0x2246('0x79')]&&_0x2246('0xf')==_0x967ef4[_0x2246('0x34')]);if(_0x46259b[_0x2246('0x56')]>0x1&&_0x370a5a[_0x2246('0xe')][_0x2246('0x6f')](_0x402afa['start']))return!0x0;if(0x1==_0x46259b[_0x2246('0x56')]&&(_0x402afa[_0x2246('0x15')][_0x2246('0x6f')](_0x370a5a[_0x2246('0xe')])||_0x402afa['end']['isEqual'](_0x370a5a[_0x2246('0x15')])))return!0x0;}if(0x3==_0x39257e&&0x3==_0x4cc933&&_0x402afa[_0x2246('0x15')][_0x2246('0x5d')](_0x370a5a[_0x2246('0x15')])){const _0x1a7957=_0x402afa[_0x2246('0xe')][_0x2246('0x76')],_0x456f2d=_0x370a5a[_0x2246('0x15')][_0x2246('0x24')];return _0x26bd56['isBlockImage'](_0x1a7957)&&_0x1a7957===_0x456f2d;}return!0x1;}function _0x54966f(_0x38d3e8,_0x59a40c){return _0x337e87(_0x38d3e8,_0x59a40c)?[_0x38d3e8,_0x59a40c]:_0x337e87(_0x59a40c,_0x38d3e8)?[_0x59a40c,_0x38d3e8]:null;}_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')][_0x2246('0x74')](()=>{let _0x3ee9a5=!0x1;const _0x15ab0a=Array[_0x2246('0x13')](_0x3728f8['model']['document']['differ'][_0x2246('0x35')]());for(const {name:_0x3e4c8b,data:_0x2ba337}of _0x15ab0a){const {group:_0x34bddb,type:_0xfde5e1,subType:_0xcfc605,id:_0x5b25c5}=_0x102ce0[_0x2246('0x69')](_0x3e4c8b);if('suggestion'==_0x34bddb&&_0x102ce0[_0x2246('0x25')](_0x5b25c5)){if(_0x2246('0x68')==_0xfde5e1&&(_0x2246('0x42')==_0xcfc605||'imageStylePostApply'==_0xcfc605)){const _0x466669=_0x102ce0['getSuggestion'](_0x5b25c5);if(_0x2ba337[_0x2246('0x5e')]){const _0x361b19=_0x466669[_0x2246('0x3b')]()[_0x2246('0x31')]();if(_0x26bd56[_0x2246('0x44')](_0x361b19))continue;_0x102ce0[_0x2246('0x48')](_0x466669),_0x3ee9a5=!0x0;}}if(_0x2246('0x5c')==_0xfde5e1&&_0x2246('0x2a')==_0xcfc605&&!_0x2ba337[_0x2246('0x5e')]){const _0x58eb7b=_0x102ce0[_0x2246('0x64')](_0x5b25c5);_0x58eb7b['next']&&_0x58eb7b[_0x2246('0x77')][_0x2246('0x70')]&&(_0x102ce0[_0x2246('0x48')](_0x58eb7b[_0x2246('0x77')]),_0x3ee9a5=!0x0);}}}return _0x3ee9a5;}),_0x3728f8[_0x2246('0x5a')][_0x2246('0x5')](_0x2246('0xd'))&&_0x102ce0['enableCommand'](_0x2246('0x26'),(_0xbf85cb,_0x15d0f1)=>{const _0x178ac1=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')][_0x2246('0x59')][_0x2246('0x4a')]);_0x178ac1[_0x2246('0x57')](_0x2246('0x2f'))!=_0x15d0f1[_0x2246('0x2f')]&&_0x3728f8[_0x2246('0x1d')]['change'](()=>{_0x102ce0[_0x2246('0x47')](_0x178ac1,{'commandName':_0x2246('0x26'),'commandParams':[_0x15d0f1]});});}),_0x3728f8[_0x2246('0x5a')]['has']('ImageTextAlternativeEditing')&&_0x102ce0[_0x2246('0xa')](_0x2246('0x38'),(_0x4485c6,_0x38374e)=>{const _0x27613f=_0x26bd56[_0x2246('0x50')](_0x3728f8[_0x2246('0x1d')]['document'][_0x2246('0x4a')]);(_0x27613f[_0x2246('0x4')](_0x2246('0x40'))?_0x27613f[_0x2246('0x57')](_0x2246('0x40')):'')!=_0x38374e[_0x2246('0x75')]&&_0x3728f8[_0x2246('0x1d')]['change'](()=>{_0x102ce0['markBlockFormat'](_0x27613f,{'commandName':_0x2246('0x38'),'commandParams':[_0x38374e]});});}),_0x102ce0[_0x2246('0x36')]['registerDescriptionCallback'](_0x56bdc5=>{if(!!_0x128098[_0x2246('0x2c')](({type:_0x2ae4a6,subType:_0x4242ea})=>_0x56bdc5[_0x2246('0x3a')]==_0x2ae4a6&&_0x56bdc5[_0x2246('0x34')]==_0x4242ea))return _0x56bdc5[_0x2246('0x67')]?{}:void 0x0;}),_0x102ce0[_0x2246('0x36')][_0x2246('0x7')](_0x4576f3=>{if(_0x2246('0x5c')==_0x4576f3[_0x2246('0x3a')]||'deletion'==_0x4576f3[_0x2246('0x3a')]){const _0x52797b=_0x4576f3['getContainedElement']();if(_0x52797b&&_0x52797b['is'](_0x2246('0x37'),'caption'))return{'type':_0x2246('0x5c')==_0x4576f3[_0x2246('0x3a')]?_0x2246('0x58'):_0x2246('0x32'),'element':_0x52797b,'quantity':0x1};}}),_0x102ce0[_0x2246('0x36')][_0x2246('0x7')](_0x3ea86e=>'formatBlock'==_0x3ea86e[_0x2246('0x3a')]&&'convertInlineImageToBlock'==_0x3ea86e[_0x2246('0x34')]?{'type':'format','content':_0x2246('0x7b')}:_0x2246('0x68')==_0x3ea86e[_0x2246('0x3a')]&&_0x2246('0x18')==_0x3ea86e[_0x2246('0x34')]?{'type':_0x2246('0x23'),'content':_0x2246('0xb')}:void 0x0),_0x102ce0[_0x2246('0x36')][_0x2246('0x7')](_0x15c574=>{const {data:_0x22a296}=_0x15c574;if(_0x22a296){if(_0x2246('0x14')==_0x22a296[_0x2246('0x1c')]){const _0x4d4cdf=_0x22a296[_0x2246('0x11')][0x0]['value'];return _0x14dd62(_0x2246('0x6b')===_0x4d4cdf?_0x32febd(_0x7ca646,'FORMAT_SIDE_IMAGE'):_0xb30955[_0x4d4cdf]||_0x4d4cdf);}if(_0x2246('0x38')==_0x22a296[_0x2246('0x1c')]){const _0x15b75b=_0x22a296[_0x2246('0x11')][0x0]['newValue'];return _0x15b75b?{'type':_0x2246('0x23'),'content':_0x32febd(_0x7ca646,_0x2246('0x4e'),'\x22'+_0x15b75b+'\x22')}:{'type':_0x2246('0x23'),'content':_0x32febd(_0x7ca646,_0x2246('0x3f'))};}if(_0x2246('0x26')==_0x22a296[_0x2246('0x1c')]){const _0x406e3d=_0x22a296[_0x2246('0x11')][0x0][_0x2246('0x2f')];return _0x406e3d?{'type':'format','content':_0x32febd(_0x7ca646,'*Set\x20image\x20width:*\x20%0',_0x406e3d)}:{'type':_0x2246('0x23'),'content':_0x32febd(_0x7ca646,_0x2246('0x2b'))};}}function _0x14dd62(_0x34ec9f){return{'type':_0x2246('0x23'),'content':_0x32febd(_0x7ca646,_0x2246('0x71'),_0x34ec9f)};}});}}
|
|
23
|
+
const _0x21da=['Inline\x20image\x20to\x20block\x20image','start','end','differ','has','registerPostFixer','_splitMarkerName','caption','enableCommand','deletion','locale','ELEMENT_INLINE_IMAGE','format','FORMAT_SIDE_IMAGE','toNext','isBefore','suggestion','commandName','hasAttribute','ImageTextAlternativeEditing','backward','getClosestSelectedImageElement','convertInlineImageToBlock','imageStylePreApply','isCollapsed','markInsertion','getSuggestions','commandReversedParams','*Remove\x20image\x20text\x20alternative*','toLowerCase','createRangeOn','forward','name','value','imageTypeBlock','imageInline','toPrevious','schema','getSuggestion','isEqual','ImageEditing','ImageInlineEditing','addObject','type','formatBlock','markBlockFormat','side','removeObject','*Reset\x20image\x20width*','ImageBlockEditing','detach','ImageStyleEditing','document','from','isOwn','accept','commandParams','chain','refresh','formatInline','length','discardSuggestion','normalizedStyles','imageStyle','title','afterInit','getCaptionFromImageModelElement','element','filter','previous','convertBlockImageToInline','*Set\x20image\x20width:*\x20%0','ImageUploadEditing','newValue','imageTextAlternative','head','*Format:*\x20%0','_descriptionFactory','getAttribute','join','isBlockImage','registerCustomCallback','discard','commands','get','newRange','selection','plugins','toggleImageCaption','imageTypeInline','getContainedElement','registerDescriptionCallback','subType','alt','nodeAfter','author','getNearestSelectionRange','model','registerElementLabel','resizeImage','isInContent','insertion','change','next','width','*Set\x20image\x20text\x20alternative:*\x20%0','_suggestionFactory','shouldConvertImageType','editor','imageStylePostApply','createRange','getFirstRange','isInlineImage','imageCaption','forEach','getSuggestionCallback'];(function(_0x4cb067,_0x21da2e){const _0x44d9b7=function(_0xb75d0b){while(--_0xb75d0b){_0x4cb067['push'](_0x4cb067['shift']());}};_0x44d9b7(++_0x21da2e);}(_0x21da,0x1a6));const _0x44d9=function(_0x4cb067,_0x21da2e){_0x4cb067=_0x4cb067-0x0;let _0x44d9b7=_0x21da[_0x4cb067];return _0x44d9b7;};import{Plugin as _0x26c2b6}from'ckeditor5/src/core';import{LivePosition as _0x26ca4e}from'ckeditor5/src/engine';import{uid as _0x1b447b}from'ckeditor5/src/utils';import{getTranslation as _0x33a3b3}from'../utils/common-translations';export default class X extends _0x26c2b6{[_0x44d9('0x6b')](){const _0x362471=this[_0x44d9('0x22')];if(!_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')](_0x44d9('0x52')))return;const _0x21c43e=_0x362471[_0x44d9('0xd')][_0x44d9('0xa')]('TrackChangesEditing'),_0xc579f3=_0x362471[_0x44d9('0xd')][_0x44d9('0xa')]('ImageUtils'),_0x330256={},_0x5d3307=_0x362471[_0x44d9('0x34')];if(_0x21c43e[_0x44d9('0x32')]('insertImage'),_0x21c43e[_0x44d9('0x3')][_0x44d9('0x18')]('imageBlock',_0x25ae2e=>_0x33a3b3(_0x5d3307,'ELEMENT_IMAGE',_0x25ae2e)),_0x21c43e['_descriptionFactory']['registerElementLabel'](_0x44d9('0x4d'),_0x1859c7=>_0x33a3b3(_0x5d3307,_0x44d9('0x35'),_0x1859c7)),_0x21c43e[_0x44d9('0x3')][_0x44d9('0x18')](_0x44d9('0x31'),()=>_0x33a3b3(_0x5d3307,'ELEMENT_CAPTION')),_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')](_0x44d9('0x72'))&&_0x21c43e[_0x44d9('0x32')]('uploadImage'),_0x362471[_0x44d9('0xd')]['has'](_0x44d9('0x5b'))&&_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')](_0x44d9('0x53'))&&(_0x21c43e[_0x44d9('0x32')](_0x44d9('0xf'),(_0x123485,_0x4da4c2)=>{const _0x45c524=_0xc579f3['getClosestSelectedImageElement'](_0x362471['model']['document'][_0x44d9('0xc')]);_0x362471[_0x44d9('0x17')][_0x44d9('0x1c')](()=>{_0x21c43e['markBlockFormat'](_0x45c524,{'commandName':_0x44d9('0xf'),'commandParams':[_0x4da4c2]},[],_0x44d9('0x70'));});}),_0x21c43e[_0x44d9('0x32')](_0x44d9('0x4c'),(_0x54d770,_0x1fb40d)=>{_0x362471['model'][_0x44d9('0x1c')](_0x1adeba=>{let _0x1215d2=_0xc579f3[_0x44d9('0x3f')](_0x362471[_0x44d9('0x17')]['document']['selection']),_0x4720c3=_0x1adeba['createRangeOn'](_0x1215d2);const _0x1564f6=_0x26ca4e['fromPosition'](_0x4720c3['start'],_0x44d9('0x4e')),_0x275ed3=_0x26ca4e['fromPosition'](_0x4720c3[_0x44d9('0x2c')],_0x44d9('0x38'));_0x21c43e['forceDefaultExecution'](()=>_0x54d770(_0x1fb40d)),_0x1215d2=_0xc579f3[_0x44d9('0x3f')](_0x362471['model'][_0x44d9('0x5e')][_0x44d9('0xc')]),_0x4720c3=_0x1adeba[_0x44d9('0x48')](_0x1215d2);const _0x2403b5=_0x1adeba[_0x44d9('0x24')](_0x1564f6,_0x275ed3);_0x1564f6[_0x44d9('0x5c')](),_0x275ed3[_0x44d9('0x5c')](),_0x21c43e['markBlockFormat'](_0x1215d2,{'commandName':'imageTypeInline','commandParams':[]},[],_0x44d9('0x40')),_0x2403b5[_0x44d9('0x2b')]['isBefore'](_0x4720c3[_0x44d9('0x2b')])&&_0x21c43e[_0x44d9('0x43')](_0x1adeba[_0x44d9('0x24')](_0x2403b5[_0x44d9('0x2b')],_0x4720c3[_0x44d9('0x2b')]),_0x44d9('0x40')),_0x4720c3[_0x44d9('0x2c')]['isBefore'](_0x2403b5[_0x44d9('0x2c')])&&_0x21c43e[_0x44d9('0x43')](_0x1adeba['createRange'](_0x4720c3[_0x44d9('0x2c')],_0x2403b5[_0x44d9('0x2c')]),'convertInlineImageToBlock');});}),_0x21c43e[_0x44d9('0x20')][_0x44d9('0x7')]('formatBlock',_0x44d9('0x40'),_0x44d9('0x5'),()=>{}),_0x21c43e[_0x44d9('0x20')][_0x44d9('0x7')](_0x44d9('0x56'),'convertInlineImageToBlock','accept',()=>{}),_0x21c43e['_suggestionFactory'][_0x44d9('0x7')](_0x44d9('0x56'),_0x44d9('0x40'),_0x44d9('0x8'),_0x21c43e[_0x44d9('0x20')]['getSuggestionCallback'](_0x44d9('0x56'),'',_0x44d9('0x61'))),_0x21c43e[_0x44d9('0x20')]['registerCustomCallback']('insertion',_0x44d9('0x40'),_0x44d9('0x5'),()=>{}),_0x21c43e[_0x44d9('0x20')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x44d9('0x8'),([_0x5890cb])=>{const _0x34b9fb=_0x21c43e[_0x44d9('0x20')][_0x44d9('0x29')]('insertion','',_0x44d9('0x8'));let _0x5503de=_0x5890cb[_0x44d9('0x2b')],_0x21d95e=_0x5890cb[_0x44d9('0x2c')];const _0x54e1d3=_0x362471[_0x44d9('0x17')][_0x44d9('0x4f')][_0x44d9('0x16')](_0x5503de,_0x44d9('0x3e')),_0x1a14f0=_0x362471['model'][_0x44d9('0x4f')][_0x44d9('0x16')](_0x21d95e,_0x44d9('0x49'));_0x54e1d3[_0x44d9('0x42')]&&(_0x5503de=_0x54e1d3[_0x44d9('0x2b')]),_0x1a14f0[_0x44d9('0x42')]&&(_0x21d95e=_0x1a14f0['end']),_0x34b9fb([_0x362471[_0x44d9('0x17')]['createRange'](_0x5503de,_0x21d95e)]);}),_0x21c43e['_suggestionFactory'][_0x44d9('0x7')](_0x44d9('0x56'),_0x44d9('0x40'),_0x44d9('0x63'),_0xfc879c),_0x21c43e[_0x44d9('0x20')][_0x44d9('0x7')]('insertion','convertInlineImageToBlock',_0x44d9('0x63'),_0xfc879c)),_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')]('ImageCaptionEditing')&&(_0x21c43e[_0x44d9('0x32')](_0x44d9('0xe'),(_0x523d5b,_0x21f5e4)=>{const _0x4fa5ce=_0x362471[_0x44d9('0xd')]['get']('ImageCaptionUtils');let _0x26be89=_0xc579f3[_0x44d9('0x3f')](_0x362471['model'][_0x44d9('0x5e')][_0x44d9('0xc')]),_0x17e42b=_0x4fa5ce[_0x44d9('0x6c')](_0x26be89);_0x362471[_0x44d9('0x17')][_0x44d9('0x1c')](()=>{if(_0x17e42b)return void _0x21c43e['markDeletion'](_0x362471[_0x44d9('0x17')]['createRangeOn'](_0x17e42b));const _0x39efc4=_0xc579f3[_0x44d9('0x6')](_0x26be89);_0x523d5b(_0x21f5e4),_0x26be89=_0xc579f3[_0x44d9('0x3f')](_0x362471[_0x44d9('0x17')][_0x44d9('0x5e')][_0x44d9('0xc')]),_0x17e42b=_0x4fa5ce[_0x44d9('0x6c')](_0x26be89),_0x21c43e[_0x44d9('0x43')](_0x362471[_0x44d9('0x17')][_0x44d9('0x48')](_0x17e42b),_0x39efc4?null:'imageCaption');});}),_0x21c43e['_suggestionFactory'][_0x44d9('0x7')](_0x44d9('0x1b'),_0x44d9('0x27'),_0x44d9('0x63'),_0xfc879c)),_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')]('ImageStyleEditing')){_0x21c43e['enableCommand'](_0x44d9('0x69'),(_0x237a2f,_0x854634)=>{const _0x25632e=_0x362471['plugins']['get']('Users')['me'],_0x205496=_0x362471[_0x44d9('0x9')][_0x44d9('0xa')](_0x44d9('0x69'));let _0x4c60d8=_0xc579f3[_0x44d9('0x3f')](_0x362471[_0x44d9('0x17')]['document'][_0x44d9('0xc')]),_0x2d6458=_0x362471[_0x44d9('0x17')][_0x44d9('0x48')](_0x4c60d8),_0xe0f9c=_0x205496['value'];if(_0xe0f9c==_0x854634[_0x44d9('0x4b')])return;const _0x316ac4={'commandName':_0x44d9('0x69'),'commandParams':[_0x854634],'formatGroupId':_0x1b447b()};_0x362471[_0x44d9('0x17')]['change'](()=>{if(_0x21c43e[_0x44d9('0x44')]()[_0x44d9('0x6e')](_0x5571ab=>_0x5571ab[_0x44d9('0x1a')]&&_0x25632e==_0x5571ab[_0x44d9('0x15')]&&(_0x44d9('0x56')==_0x5571ab[_0x44d9('0x55')]||_0x44d9('0x65')==_0x5571ab[_0x44d9('0x55')])&&(_0x44d9('0x41')==_0x5571ab[_0x44d9('0x12')]||_0x44d9('0x23')==_0x5571ab['subType'])&&_0x5571ab[_0x44d9('0x25')]()['isEqual'](_0x2d6458))[_0x44d9('0x28')](_0x5b539e=>_0x21c43e[_0x44d9('0x67')](_0x5b539e[_0x44d9('0x1')])),_0x4c60d8=_0xc579f3[_0x44d9('0x3f')](_0x362471[_0x44d9('0x17')][_0x44d9('0x5e')]['selection']),_0x2d6458=_0x362471['model'][_0x44d9('0x48')](_0x4c60d8),_0x205496[_0x44d9('0x64')](),_0x362471[_0x44d9('0x9')][_0x44d9('0xa')]('imageTypeInline')[_0x44d9('0x64')](),_0x362471[_0x44d9('0x9')][_0x44d9('0xa')]('imageTypeBlock')[_0x44d9('0x64')](),_0xe0f9c=_0x205496[_0x44d9('0x4b')],_0xe0f9c!=_0x854634[_0x44d9('0x4b')])return _0xc579f3[_0x44d9('0x26')](_0x4c60d8)&&_0x205496[_0x44d9('0x21')](_0x854634[_0x44d9('0x4b')],_0x4c60d8)?(_0x237a2f(_0x854634),_0x4c60d8=_0xc579f3[_0x44d9('0x3f')](_0x362471['model'][_0x44d9('0x5e')][_0x44d9('0xc')]),void _0x21c43e['markBlockFormat'](_0x4c60d8,{..._0x316ac4,'commandReversedParams':[{'value':_0xe0f9c||null}]},[],_0x44d9('0x41'))):void(_0xc579f3[_0x44d9('0x6')](_0x4c60d8)?_0x21c43e[_0x44d9('0x57')](_0x4c60d8,_0x316ac4,[],_0x44d9('0x23')):_0x21c43e['markInlineFormat'](_0x2d6458,_0x316ac4,'imageStylePostApply'));});});for(const _0x471ea3 of _0x362471[_0x44d9('0xd')][_0x44d9('0xa')](_0x44d9('0x5d'))[_0x44d9('0x68')])_0x330256[_0x471ea3[_0x44d9('0x4a')]]=_0x471ea3[_0x44d9('0x6a')][_0x44d9('0x47')]();_0x21c43e['_suggestionFactory'][_0x44d9('0x7')](_0x44d9('0x56'),_0x44d9('0x41'),'join',()=>{}),_0x21c43e[_0x44d9('0x20')][_0x44d9('0x7')](_0x44d9('0x56'),_0x44d9('0x23'),_0x44d9('0x5'),()=>{}),_0x21c43e[_0x44d9('0x20')][_0x44d9('0x7')]('formatInline',_0x44d9('0x23'),_0x44d9('0x5'),()=>{}),_0x21c43e[_0x44d9('0x20')]['registerCustomCallback'](_0x44d9('0x56'),'imageStylePreApply',_0x44d9('0x61'),()=>{}),_0x21c43e[_0x44d9('0x20')]['registerCustomCallback'](_0x44d9('0x56'),_0x44d9('0x41'),_0x44d9('0x8'),(_0x3823a0,_0x14fad1)=>{_0x21c43e['_suggestionFactory'][_0x44d9('0x29')](_0x44d9('0x56'),'',_0x44d9('0x61'))(_0x3823a0,{'commandName':_0x14fad1[_0x44d9('0x3b')],'commandParams':_0x14fad1[_0x44d9('0x45')]});}),_0x21c43e[_0x44d9('0x20')]['registerCustomCallback'](_0x44d9('0x56'),_0x44d9('0x41'),_0x44d9('0x63'),_0xfc879c);}const _0x523407=[{'type':_0x44d9('0x56'),'subType':_0x44d9('0x41')},{'type':'insertion','subType':_0x44d9('0x27')},{'type':_0x44d9('0x56'),'subType':_0x44d9('0x40')},{'type':_0x44d9('0x1b'),'subType':'convertInlineImageToBlock'}];function _0x121ad5(_0x4def0d,_0x3821a4){const _0x1c4b93=_0x523407['findIndex'](({type:_0x3b7d5e,subType:_0x2f9ec7})=>_0x4def0d[_0x44d9('0x55')]==_0x3b7d5e&&_0x4def0d[_0x44d9('0x12')]==_0x2f9ec7),_0x2741ea=_0x523407['findIndex'](({type:_0x4fd4ce,subType:_0x29d928})=>_0x3821a4[_0x44d9('0x55')]==_0x4fd4ce&&_0x3821a4[_0x44d9('0x12')]==_0x29d928);if(_0x1c4b93<0x0||_0x2741ea<0x0)return!0x1;const _0x20e21c=_0x4def0d[_0x44d9('0x25')](),_0x52b492=_0x3821a4['getFirstRange']();if((0x0==_0x1c4b93||0x1==_0x1c4b93)&&0x2==_0x2741ea&&_0x20e21c['isIntersecting'](_0x52b492))return!0x0;if(0x2==_0x1c4b93&&0x3==_0x2741ea){const _0x21e154=_0x21c43e['_findSuggestions'](_0x20e21c,_0x44d9('0x1b'))['filter'](({suggestion:_0x1069ab,meta:_0x15d968})=>_0x15d968[_0x44d9('0x60')]&&_0x44d9('0x40')==_0x1069ab[_0x44d9('0x12')]);if(_0x21e154[_0x44d9('0x66')]>0x1&&_0x52b492['end'][_0x44d9('0x51')](_0x20e21c[_0x44d9('0x2b')]))return!0x0;if(0x1==_0x21e154[_0x44d9('0x66')]&&(_0x20e21c['start'][_0x44d9('0x51')](_0x52b492[_0x44d9('0x2c')])||_0x20e21c[_0x44d9('0x2c')][_0x44d9('0x51')](_0x52b492[_0x44d9('0x2b')])))return!0x0;}if(0x3==_0x1c4b93&&0x3==_0x2741ea&&_0x20e21c[_0x44d9('0x2b')][_0x44d9('0x39')](_0x52b492[_0x44d9('0x2b')])){const _0x33ef40=_0x20e21c[_0x44d9('0x2c')][_0x44d9('0x14')],_0x3b6260=_0x52b492[_0x44d9('0x2b')]['nodeBefore'];return _0xc579f3[_0x44d9('0x6')](_0x33ef40)&&_0x33ef40===_0x3b6260;}return!0x1;}function _0xfc879c(_0x16415a,_0x44ae2d){return _0x121ad5(_0x16415a,_0x44ae2d)?[_0x16415a,_0x44ae2d]:_0x121ad5(_0x44ae2d,_0x16415a)?[_0x44ae2d,_0x16415a]:null;}_0x362471[_0x44d9('0x17')]['document'][_0x44d9('0x2f')](()=>{let _0x6e346b=!0x1;const _0xb47479=Array[_0x44d9('0x5f')](_0x362471['model'][_0x44d9('0x5e')][_0x44d9('0x2d')]['getChangedMarkers']());for(const {name:_0x522806,data:_0x1f9781}of _0xb47479){const {group:_0x596e9e,type:_0x4f100e,subType:_0xbf609b,id:_0x219f33}=_0x21c43e[_0x44d9('0x30')](_0x522806);if(_0x44d9('0x3a')==_0x596e9e&&_0x21c43e['hasSuggestion'](_0x219f33)){if(_0x44d9('0x56')==_0x4f100e&&(_0x44d9('0x41')==_0xbf609b||_0x44d9('0x23')==_0xbf609b)){const _0x34b5d9=_0x21c43e[_0x44d9('0x50')](_0x219f33);if(_0x1f9781[_0x44d9('0xb')]){const _0x4f3adf=_0x34b5d9['getFirstRange']()[_0x44d9('0x10')]();if(_0xc579f3[_0x44d9('0x6')](_0x4f3adf))continue;_0x21c43e['discardSuggestion'](_0x34b5d9),_0x6e346b=!0x0;}}if('insertion'==_0x4f100e&&'imageCaption'==_0xbf609b&&!_0x1f9781['newRange']){const _0x30628f=_0x21c43e[_0x44d9('0x50')](_0x219f33);_0x30628f[_0x44d9('0x1d')]&&_0x30628f[_0x44d9('0x1d')]['isInContent']&&(_0x21c43e['discardSuggestion'](_0x30628f[_0x44d9('0x1d')]),_0x6e346b=!0x0);}}}return _0x6e346b;}),_0x362471[_0x44d9('0xd')][_0x44d9('0x2e')]('ImageResize')&&_0x21c43e[_0x44d9('0x32')]('resizeImage',(_0x45af27,_0x14cd67)=>{const _0x334212=_0xc579f3[_0x44d9('0x3f')](_0x362471[_0x44d9('0x17')][_0x44d9('0x5e')][_0x44d9('0xc')]);_0x334212['getAttribute'](_0x44d9('0x1e'))!=_0x14cd67[_0x44d9('0x1e')]&&_0x362471[_0x44d9('0x17')][_0x44d9('0x1c')](()=>{_0x21c43e[_0x44d9('0x57')](_0x334212,{'commandName':_0x44d9('0x19'),'commandParams':[_0x14cd67]});});}),_0x362471[_0x44d9('0xd')]['has'](_0x44d9('0x3d'))&&_0x21c43e[_0x44d9('0x32')](_0x44d9('0x0'),(_0x14b88a,_0x2877a9)=>{const _0x555305=_0xc579f3['getClosestSelectedImageElement'](_0x362471[_0x44d9('0x17')]['document'][_0x44d9('0xc')]);(_0x555305[_0x44d9('0x3c')](_0x44d9('0x13'))?_0x555305[_0x44d9('0x4')](_0x44d9('0x13')):'')!=_0x2877a9[_0x44d9('0x73')]&&_0x362471[_0x44d9('0x17')][_0x44d9('0x1c')](()=>{_0x21c43e[_0x44d9('0x57')](_0x555305,{'commandName':_0x44d9('0x0'),'commandParams':[_0x2877a9]});});}),_0x21c43e[_0x44d9('0x3')][_0x44d9('0x11')](_0x88419=>{if(!!_0x523407['find'](({type:_0x14e891,subType:_0x9bc125})=>_0x88419[_0x44d9('0x55')]==_0x14e891&&_0x88419[_0x44d9('0x12')]==_0x9bc125))return _0x88419[_0x44d9('0x6f')]?{}:void 0x0;}),_0x21c43e['_descriptionFactory'][_0x44d9('0x11')](_0x27b3e4=>{if(_0x44d9('0x1b')==_0x27b3e4[_0x44d9('0x55')]||_0x44d9('0x33')==_0x27b3e4[_0x44d9('0x55')]){const _0x3b48cb=_0x27b3e4[_0x44d9('0x10')]();if(_0x3b48cb&&_0x3b48cb['is'](_0x44d9('0x6d'),'caption'))return{'type':_0x44d9('0x1b')==_0x27b3e4[_0x44d9('0x55')]?_0x44d9('0x54'):_0x44d9('0x59'),'element':_0x3b48cb,'quantity':0x1};}}),_0x21c43e[_0x44d9('0x3')][_0x44d9('0x11')](_0x358c18=>_0x44d9('0x56')==_0x358c18[_0x44d9('0x55')]&&_0x44d9('0x40')==_0x358c18[_0x44d9('0x12')]?{'type':_0x44d9('0x36'),'content':_0x44d9('0x2a')}:_0x44d9('0x56')==_0x358c18[_0x44d9('0x55')]&&_0x44d9('0x70')==_0x358c18[_0x44d9('0x12')]?{'type':_0x44d9('0x36'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x21c43e[_0x44d9('0x3')][_0x44d9('0x11')](_0x4ee2f1=>{const {data:_0x4c3929}=_0x4ee2f1;if(_0x4c3929){if('imageStyle'==_0x4c3929['commandName']){const _0x59006d=_0x4c3929[_0x44d9('0x62')][0x0][_0x44d9('0x4b')];return _0x5504a2(_0x44d9('0x58')===_0x59006d?_0x33a3b3(_0x5d3307,_0x44d9('0x37')):_0x330256[_0x59006d]||_0x59006d);}if('imageTextAlternative'==_0x4c3929[_0x44d9('0x3b')]){const _0x3d0323=_0x4c3929['commandParams'][0x0][_0x44d9('0x73')];return _0x3d0323?{'type':_0x44d9('0x36'),'content':_0x33a3b3(_0x5d3307,_0x44d9('0x1f'),'\x22'+_0x3d0323+'\x22')}:{'type':_0x44d9('0x36'),'content':_0x33a3b3(_0x5d3307,_0x44d9('0x46'))};}if(_0x44d9('0x19')==_0x4c3929[_0x44d9('0x3b')]){const _0x414ae7=_0x4c3929[_0x44d9('0x62')][0x0][_0x44d9('0x1e')];return _0x414ae7?{'type':_0x44d9('0x36'),'content':_0x33a3b3(_0x5d3307,_0x44d9('0x71'),_0x414ae7)}:{'type':_0x44d9('0x36'),'content':_0x33a3b3(_0x5d3307,_0x44d9('0x5a'))};}}function _0x5504a2(_0x20ee14){return{'type':'format','content':_0x33a3b3(_0x5d3307,_0x44d9('0x2'),_0x20ee14)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d2f=['author','plugins','document','getSelectedElement','change','getContainedElement','get','registerCustomCallback','getSuggestions','model','src','replaceImageSource','markBlockFormat','discard','getAttribute','commandName','enableCommand','*Format:*\x20replace\x20image\x20URL','TrackChangesEditing','_suggestionFactory','format','formatBlock','Users','selection','editor','handleReplaceImageCommand','getSuggestionCallback','handleSuggestionDescription','data','afterInit','source','_descriptionFactory'];(function(_0x17c00a,_0x1d2fa6){const _0xa1469=function(_0x464c30){while(--_0x464c30){_0x17c00a['push'](_0x17c00a['shift']());}};_0xa1469(++_0x1d2fa6);}(_0x1d2f,0xc7));const _0xa146=function(_0x17c00a,_0x1d2fa6){_0x17c00a=_0x17c00a-0x0;let _0xa1469=_0x1d2f[_0x17c00a];return _0xa1469;};import{Plugin as _0x159117}from'ckeditor5/src/core';import{getTranslation as _0x2eff56}from'../utils/common-translations';export default class Y extends _0x159117{[_0xa146('0x16')](){if(!this['editor'][_0xa146('0x1a')]['has']('ImageEditing'))return;const _0x4d2919=this[_0xa146('0x11')]['plugins'][_0xa146('0x1f')]('TrackChangesEditing');_0x4d2919[_0xa146('0x9')]('replaceImageSource',(_0x3bfc91,_0xf15c76)=>this[_0xa146('0x12')](_0x3bfc91,_0xf15c76)),_0x4d2919[_0xa146('0xc')][_0xa146('0x0')](_0xa146('0xe'),'replaceImageSource','accept',_0x4d2919[_0xa146('0xc')][_0xa146('0x13')](_0xa146('0xe'),null,_0xa146('0x6'))),_0x4d2919[_0xa146('0xc')][_0xa146('0x0')]('formatBlock','replaceImageSource','discard',_0x4d2919[_0xa146('0xc')][_0xa146('0x13')](_0xa146('0xe'),null,'accept')),_0x4d2919[_0xa146('0x18')]['registerDescriptionCallback'](_0x2ba626=>this['handleSuggestionDescription'](_0x2ba626));}[_0xa146('0x12')](_0x16615c,_0x160879){const _0x11f476=this[_0xa146('0x11')][_0xa146('0x1a')][_0xa146('0x1f')](_0xa146('0xb')),_0x51b1b7=this[_0xa146('0x11')][_0xa146('0x2')][_0xa146('0x1b')][_0xa146('0x10')][_0xa146('0x1c')]();this[_0xa146('0x11')]['model'][_0xa146('0x1d')](()=>{let _0x49880b=_0x51b1b7[_0xa146('0x7')](_0xa146('0x3'));const _0x3a0b10=this[_0xa146('0x11')][_0xa146('0x1a')][_0xa146('0x1f')](_0xa146('0xf'))['me'];for(const _0x265ed9 of _0x11f476[_0xa146('0x1')]({'skipNotAttached':!0x0})){const _0x190d36=_0x265ed9[_0xa146('0x1e')]();if('replaceImageSource'===_0x265ed9['subType']&&_0x190d36===_0x51b1b7){_0x265ed9[_0xa146('0x19')]!==_0x3a0b10&&_0x265ed9[_0xa146('0x6')](),_0x49880b=_0x265ed9[_0xa146('0x15')]['commandParams'][0x0][_0xa146('0x17')];break;}}_0x16615c(_0x160879),_0x11f476[_0xa146('0x5')](_0x51b1b7,{'commandName':_0xa146('0x4'),'commandParams':[{'source':_0x49880b}]},[],_0xa146('0x4'));});}[_0xa146('0x14')](_0x499309){const {data:_0x150650}=_0x499309;if(_0x150650&&_0xa146('0x4')===_0x150650[_0xa146('0x8')]){const _0x4225a1=_0xa146('0xa');return{'type':_0xa146('0xd'),'content':_0x2eff56(this['editor']['locale'],_0x4225a1)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18fd=['_trackChangesValueDuringImport','execute','enableCommand','plugins','dataInsert','Users','value','track_changes','editor','_trackChangesExecuted','TrackChangesEditing','listenTo','trackChanges','afterInit','collaboration_features','commands','importWord','lowest','high','get'];(function(_0x11fddb,_0x18fdde){const _0x3d8088=function(_0x235d33){while(--_0x235d33){_0x11fddb['push'](_0x11fddb['shift']());}};_0x3d8088(++_0x18fdde);}(_0x18fd,0xaf));const _0x3d80=function(_0x11fddb,_0x18fdde){_0x11fddb=_0x11fddb-0x0;let _0x3d8088=_0x18fd[_0x11fddb];return _0x3d8088;};import{Plugin as _0x4a8509}from'ckeditor5/src/core';export default class Z extends _0x4a8509{constructor(_0x52225b){super(_0x52225b),this[_0x3d80('0x5')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x3d80('0x12')](){const _0x439b9e=this[_0x3d80('0xd')],_0x137456=_0x439b9e[_0x3d80('0x0')][_0x3d80('0x4')](_0x3d80('0x1')),_0x332233=_0x439b9e[_0x3d80('0x0')][_0x3d80('0x4')](_0x3d80('0x11'));_0x137456&&(_0x137456['on'](_0x3d80('0x6'),(_0x1525d5,[,_0x2c9907])=>{this[_0x3d80('0x5')]=_0x332233[_0x3d80('0xb')],_0x2c9907[_0x3d80('0x13')][_0x3d80('0xc')]=!this[_0x3d80('0x5')];},{'priority':_0x3d80('0x3')}),this[_0x3d80('0x10')](_0x137456,_0x3d80('0x9'),this['_handleImportedData']['bind'](this)),this[_0x3d80('0x10')](_0x137456,_0x3d80('0x9'),()=>{this[_0x3d80('0xe')]&&(_0x332233[_0x3d80('0x6')](),this[_0x3d80('0xe')]=!0x1);},{'priority':_0x3d80('0x2')}),_0x439b9e[_0x3d80('0x8')][_0x3d80('0x4')](_0x3d80('0xf'))[_0x3d80('0x7')](_0x3d80('0x1')));}['_handleImportedData'](_0x198c82,_0x2cdd9b){const {suggestions:_0x4af292}=_0x2cdd9b,_0x5a176b=this['editor']['commands']['get'](_0x3d80('0x11')),_0x4e74c1=_0x5a176b[_0x3d80('0xb')];this[_0x3d80('0x5')]!==_0x4e74c1&&(_0x5a176b['execute'](),this[_0x3d80('0xe')]=!0x0),_0x4af292&&_0x4af292['forEach'](({id:_0x36df5e,type:_0x8862ba,author:_0x29018d,created_at:_0xe49194})=>{const _0x33bd2e={'id':_0x36df5e,'type':_0x8862ba,'authorId':this[_0x3d80('0xd')][_0x3d80('0x8')][_0x3d80('0x4')](_0x3d80('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x29018d,'createdAt':_0xe49194?new Date(_0xe49194):new Date(),'source':'importWord'}}};this['editor'][_0x3d80('0x8')]['get'](_0x3d80('0xf'))['_setSuggestionData'](_0x33bd2e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5113=['getItems','enableCommand','blockIndent','IndentEditing','afterInit','format','commandName','outdentBlock','markBlockFormat','from','getItemLabel','selection','document','model','change','getSelectedBlocks','indent','has','indentBlock','registerDescriptionCallback','get','plugins'];(function(_0x3c88ff,_0x5113e4){const _0x3fabcf=function(_0x2ea254){while(--_0x2ea254){_0x3c88ff['push'](_0x3c88ff['shift']());}};_0x3fabcf(++_0x5113e4);}(_0x5113,0x162));const _0x3fab=function(_0x3c88ff,_0x5113e4){_0x3c88ff=_0x3c88ff-0x0;let _0x3fabcf=_0x5113[_0x3c88ff];return _0x3fabcf;};import{Plugin as _0x7da8f}from'ckeditor5/src/core';import{getTranslation as _0x31ead4}from'../utils/common-translations';export default class tt extends _0x7da8f{[_0x3fab('0x2')](){const _0x485636=this['editor'],_0x5952b1=_0x485636[_0x3fab('0x13')][_0x3fab('0x12')]('TrackChangesEditing');_0x485636[_0x3fab('0x13')]['has'](_0x3fab('0x1'))&&(_0x5952b1[_0x3fab('0x15')](_0x3fab('0xe')),_0x5952b1[_0x3fab('0x15')]('outdent'));const _0x1b3c3b=_0x485636['locale'];if(_0x485636['plugins'][_0x3fab('0xf')]('IndentBlock')){for(const _0x49668d of[_0x3fab('0x10'),'outdentBlock'])_0x5952b1[_0x3fab('0x15')](_0x49668d,()=>{const _0x15216c=Array[_0x3fab('0x7')](this['editor'][_0x3fab('0xb')][_0x3fab('0xa')][_0x3fab('0x9')][_0x3fab('0xd')]())['filter'](_0x4e54bf=>this['editor'][_0x3fab('0xb')]['schema']['checkAttribute'](_0x4e54bf,_0x3fab('0x0')));_0x485636[_0x3fab('0xb')][_0x3fab('0xc')](()=>{for(const _0x77e988 of _0x15216c)_0x5952b1[_0x3fab('0x6')](_0x77e988,{'commandName':_0x49668d,'commandParams':[{'value':''}],'formatGroupId':_0x3fab('0x10')});});});_0x5952b1['_descriptionFactory'][_0x3fab('0x11')](_0xb1a492=>{const {data:_0x3ebe3f}=_0xb1a492;if(!_0x3ebe3f)return;if('indentBlock'!=_0x3ebe3f[_0x3fab('0x4')]&&_0x3fab('0x5')!=_0x3ebe3f['commandName'])return;const _0xd4a426=_0xb1a492[_0x3fab('0x14')]()[0x0],_0xb9a444=_0x5952b1['_descriptionFactory'][_0x3fab('0x8')](_0xd4a426);return _0x3fab('0x10')==_0x3ebe3f['commandName']?{'type':_0x3fab('0x3'),'content':_0x31ead4(_0x1b3c3b,'*Indent:*\x20%0',_0xb9a444)}:_0x3fab('0x5')==_0x3ebe3f['commandName']?{'type':_0x3fab('0x3'),'content':_0x31ead4(_0x1b3c3b,'*Outdent:*\x20%0',_0xb9a444)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x54ba=['editor','input','init','TrackChangesEditing','enableCommand','requires','get'];(function(_0x4434d7,_0x54baf3){var _0x50ff43=function(_0x573448){while(--_0x573448){_0x4434d7['push'](_0x4434d7['shift']());}};_0x50ff43(++_0x54baf3);}(_0x54ba,0x182));var _0x50ff=function(_0x4434d7,_0x54baf3){_0x4434d7=_0x4434d7-0x0;var _0x50ff43=_0x54ba[_0x4434d7];return _0x50ff43;};import{Plugin as _0x2e9911}from'ckeditor5/src/core';import{Input as _0x393bc0}from'ckeditor5/src/typing';export default class it extends _0x2e9911{static get[_0x50ff('0x4')](){return[_0x393bc0];}[_0x50ff('0x1')](){this[_0x50ff('0x6')]['plugins'][_0x50ff('0x5')](_0x50ff('0x2'))[_0x50ff('0x3')](_0x50ff('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3235=['link','editor','from','commandName','registerDescriptionCallback','format','locale','getFirstPosition','enableCommand','selection','getAttribute','LinkEditing','plugins','change','_descriptionFactory','linkHref','markInlineFormat','afterInit','has','isCollapsed','*Set\x20link:*\x20%0','*Remove\x20link*','getFirstRange','unlink','hasAttribute','TrackChangesEditing','model','document'];(function(_0x48115a,_0x323548){const _0x2305e0=function(_0x4c8c17){while(--_0x4c8c17){_0x48115a['push'](_0x48115a['shift']());}};_0x2305e0(++_0x323548);}(_0x3235,0x76));const _0x2305=function(_0x48115a,_0x323548){_0x48115a=_0x48115a-0x0;let _0x2305e0=_0x3235[_0x48115a];return _0x2305e0;};import{Plugin as _0x31268a}from'ckeditor5/src/core';import{findAttributeRange as _0x55201e}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x47a20a}from'./utils';import{getTranslation as _0x48aec1}from'../utils/common-translations';export default class et extends _0x31268a{[_0x2305('0xb')](){const _0x111aa4=this[_0x2305('0x17')];if(!_0x111aa4['plugins'][_0x2305('0xc')](_0x2305('0x5')))return;const _0x4080f4=_0x111aa4[_0x2305('0x6')]['get'](_0x2305('0x13'));_0x4080f4[_0x2305('0x2')](_0x2305('0x16'),(_0x25a5e8,_0x3c03c7)=>{const _0x4abcd3=_0x111aa4[_0x2305('0x14')]['document'][_0x2305('0x3')];let _0x5eaeef=[];if(_0x4abcd3[_0x2305('0xd')]){if(!_0x4abcd3[_0x2305('0x12')](_0x2305('0x9')))return void _0x25a5e8(_0x3c03c7);{const _0x130809=_0x55201e(_0x4abcd3[_0x2305('0x1')](),_0x2305('0x9'),_0x4abcd3[_0x2305('0x4')]('linkHref'),_0x111aa4[_0x2305('0x14')]);_0x5eaeef=[_0x130809];}}else _0x5eaeef=Array[_0x2305('0x18')](_0x4abcd3['getRanges']());_0x111aa4[_0x2305('0x14')][_0x2305('0x7')](()=>{for(const _0x38f138 of _0x5eaeef)_0x4080f4['markInlineFormat'](_0x38f138,{'commandName':_0x2305('0x16'),'commandParams':[_0x3c03c7]});});}),_0x4080f4[_0x2305('0x2')](_0x2305('0x11'),()=>{const _0x40f94c=this[_0x2305('0x17')][_0x2305('0x14')],_0x295824=_0x40f94c[_0x2305('0x15')][_0x2305('0x3')];_0x40f94c['change'](()=>{let _0x578997=[];if(_0x295824[_0x2305('0xd')])_0x578997=[_0x55201e(_0x295824['getFirstPosition'](),_0x2305('0x9'),_0x295824['getAttribute'](_0x2305('0x9')),_0x111aa4[_0x2305('0x14')])];else _0x578997=_0x47a20a(_0x2305('0x9'),_0x295824[_0x2305('0x10')](),_0x111aa4[_0x2305('0x14')]);for(const _0x101763 of _0x578997)_0x4080f4[_0x2305('0xa')](_0x101763,{'commandName':'unlink','commandParams':[]});});}),_0x4080f4[_0x2305('0x8')][_0x2305('0x1a')](_0x489d17=>{const {data:_0x3ced81}=_0x489d17,_0x4ca60c=_0x111aa4[_0x2305('0x0')];if(_0x3ced81){if(_0x2305('0x16')==_0x3ced81[_0x2305('0x19')]){const _0x1d1167=_0x3ced81['commandParams'][0x0];return{'type':_0x2305('0x1b'),'content':_0x48aec1(_0x4ca60c,_0x2305('0xe'),'\x22'+_0x1d1167+'\x22')};}return'unlink'==_0x3ced81[_0x2305('0x19')]?{'type':'format','content':_0x48aec1(_0x4ca60c,_0x2305('0xf'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x197d=['ELEMENT_NUMBERED_LIST','ELEMENT_BULLETED_LIST','indentList','commands','paragraph','previousSibling','afterInit','nextSibling','TodoListEditing','filter','slice','todo','listType','TrackChangesEditing','get','*Indent:*\x20%0','ELEMENT_TODO_LIST','*Outdent:*\x20%0','todoList','listItem','execute','numberedList','listIndent','parent','_descriptionFactory','blockName','checkChild','*Check\x20item*','markBlockFormat','ELEMENT_LIST_ITEM','commandName','List','bulletedList','plugins','selection','enableCommand','forceValue','getAttribute','todoListChecked','commandParams','name','locale','push','outdentList','checkTodoList','isObject','element','schema','document','_selectedElements','*Uncheck\x20item*','getSelectedBlocks','add','numbered','model','has','findIndex','format','value','change','*Change\x20to:*\x20%0','from','createPositionAt','registerDescriptionCallback'];(function(_0x230c6d,_0x197da0){const _0x393996=function(_0x97bc4b){while(--_0x97bc4b){_0x230c6d['push'](_0x230c6d['shift']());}};_0x393996(++_0x197da0);}(_0x197d,0xf7));const _0x3939=function(_0x230c6d,_0x197da0){_0x230c6d=_0x230c6d-0x0;let _0x393996=_0x197d[_0x230c6d];return _0x393996;};import{Plugin as _0x431bfc}from'ckeditor5/src/core';import{getTranslation as _0x3a3a02}from'../utils/common-translations';export default class st extends _0x431bfc{[_0x3939('0xf')](){const _0x5a4c47=this['editor'],_0x259e63=_0x5a4c47[_0x3939('0x32')];if(!_0x5a4c47[_0x3939('0x2a')][_0x3939('0x0')]('ListEditing'))return;const _0x43e47d=_0x5a4c47[_0x3939('0x2a')][_0x3939('0x17')](_0x3939('0x16')),_0x461513=_0x5a4c47[_0x3939('0x2a')]['has'](_0x3939('0x11'));function _0x1e5d1e(_0x51fcff){return()=>{const _0x147000=_0x5a4c47[_0x3939('0x3f')][_0x3939('0x39')][_0x3939('0x2b')],_0x43e3d9=_0x5a4c47[_0x3939('0xc')][_0x3939('0x17')](_0x51fcff);if(_0x43e3d9[_0x3939('0x3')])return void _0x5a4c47[_0x3939('0x1d')](_0x3939('0xd'),{});const _0x480f94=_0x51fcff[_0x3939('0x13')](0x0,-0x4),_0x3c5baf=function(_0xdd0987,_0x59baca,_0x214cb7){let _0x2e8153=Array[_0x3939('0x6')](_0xdd0987)['filter'](_0x949dde=>function(_0x56a165,_0x34f124){return _0x34f124[_0x3939('0x23')](_0x56a165[_0x3939('0x20')],_0x3939('0x1c'))&&!_0x34f124[_0x3939('0x36')](_0x56a165);}(_0x949dde,_0x214cb7));_0x2e8153=_0x2e8153[_0x3939('0x12')](_0x3ce04e=>!_0x3ce04e['is']('element',_0x3939('0x1c'))||_0x3ce04e[_0x3939('0x2e')](_0x3939('0x15'))!=_0x59baca);const _0x14ec43=new Set();for(const _0x2388b9 of _0x2e8153)_0x2388b9['is'](_0x3939('0x37'),_0x3939('0x1c'))?_0x14ec43['add'](ne(_0x2388b9)):_0x14ec43['add'](_0x2388b9);return Array[_0x3939('0x6')](_0x14ec43);}(_0x147000[_0x3939('0x3c')](),_0x480f94,_0x5a4c47['model'][_0x3939('0x38')]);_0x5a4c47[_0x3939('0x3f')][_0x3939('0x4')](()=>{for(const _0x5a7b42 of _0x3c5baf)_0x43e47d[_0x3939('0x25')](_0x5a7b42,{'commandName':_0x51fcff,'commandParams':[{'forceValue':!_0x43e3d9[_0x3939('0x3')]}],'formatGroupId':_0x3939('0x22')},oe(_0x5a7b42));});};}function _0x534350(_0x1da8b5){return()=>{const _0x1ac7c5=function(_0x957140){let _0x16e2fb=Array[_0x3939('0x6')](_0x957140);const _0xc9cbce=_0x16e2fb[_0x3939('0x1')](_0x3127a9=>_0x3939('0x1c')!=_0x3127a9[_0x3939('0x31')]);return _0xc9cbce>-0x1&&(_0x16e2fb=_0x16e2fb[_0x3939('0x13')](0x0,_0xc9cbce)),_0x16e2fb;}(_0x5a4c47[_0x3939('0x3f')][_0x3939('0x39')][_0x3939('0x2b')][_0x3939('0x3c')]()),_0x133083=_0x5a4c47['model']['createRange'](_0x5a4c47[_0x3939('0x3f')][_0x3939('0x7')](_0x1ac7c5[0x0],'before'),_0x5a4c47[_0x3939('0x3f')][_0x3939('0x7')](_0x1ac7c5[_0x1ac7c5['length']-0x1],'end'));_0x5a4c47[_0x3939('0x3f')][_0x3939('0x4')](()=>{_0x43e47d[_0x3939('0x25')](_0x133083,{'commandName':_0x1da8b5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x343d0c){const _0x352752=new Set();for(const _0x50941a of _0x343d0c){let _0x324702=_0x50941a[_0x3939('0x10')];for(;_0x324702&&_0x324702[_0x3939('0x2e')](_0x3939('0x1f'))>_0x50941a[_0x3939('0x2e')](_0x3939('0x1f'));)_0x352752[_0x3939('0x3d')](_0x324702),_0x324702=_0x324702[_0x3939('0x10')];}return Array[_0x3939('0x6')](_0x352752);}(_0x1ac7c5));});};}_0x43e47d[_0x3939('0x2c')](_0x3939('0x1e'),_0x1e5d1e('numberedList')),_0x43e47d[_0x3939('0x2c')](_0x3939('0x29'),_0x1e5d1e('bulletedList')),_0x461513&&_0x43e47d['enableCommand'](_0x3939('0x1b'),_0x1e5d1e(_0x3939('0x1b'))),_0x43e47d[_0x3939('0x2c')](_0x3939('0xb'),_0x534350(_0x3939('0xb'))),_0x43e47d[_0x3939('0x2c')](_0x3939('0x34'),_0x534350(_0x3939('0x34'))),_0x461513&&_0x43e47d['enableCommand'](_0x3939('0x35'),()=>{const _0x4f68e1=_0x5a4c47[_0x3939('0xc')][_0x3939('0x17')](_0x3939('0x35')),_0x233fcc=Array[_0x3939('0x6')](_0x4f68e1[_0x3939('0x3a')]);_0x233fcc['filter'](_0x975c7d=>_0x975c7d[_0x3939('0x2e')](_0x3939('0x2f'))!=_0x4f68e1[_0x3939('0x3')]),_0x5a4c47[_0x3939('0x3f')][_0x3939('0x4')](()=>{for(const _0x51e190 of _0x233fcc)_0x43e47d[_0x3939('0x25')](_0x51e190,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f68e1[_0x3939('0x3')]}]});});}),_0x43e47d[_0x3939('0x21')]['registerElementLabel']('listItem',_0x570930=>_0x3a3a02(_0x259e63,_0x3939('0x26'),_0x570930)),_0x43e47d[_0x3939('0x21')][_0x3939('0x8')](_0x23e644=>{const {data:_0x5f2cbd}=_0x23e644;if(_0x5f2cbd){if('numberedList'==_0x5f2cbd[_0x3939('0x27')]||_0x3939('0x29')==_0x5f2cbd[_0x3939('0x27')]||_0x3939('0x1b')==_0x5f2cbd[_0x3939('0x27')])switch(_0x5f2cbd['commandName']['replace'](_0x3939('0x28'),'')){case'bulleted':return _0x84412d(_0x3a3a02(_0x259e63,_0x3939('0xa')));case _0x3939('0x3e'):return _0x84412d(_0x3a3a02(_0x259e63,_0x3939('0x9')));case _0x3939('0x14'):return _0x84412d(_0x3a3a02(_0x259e63,_0x3939('0x19')));}if(_0x3939('0xb')==_0x5f2cbd[_0x3939('0x27')])return{'type':_0x3939('0x2'),'content':_0x3a3a02(_0x259e63,_0x3939('0x18'),_0x3a3a02(_0x259e63,'ELEMENT_LIST_ITEM'))};if(_0x3939('0x34')==_0x5f2cbd['commandName'])return{'type':_0x3939('0x2'),'content':_0x3a3a02(_0x259e63,_0x3939('0x1a'),_0x3a3a02(_0x259e63,_0x3939('0x26')))};if(_0x3939('0x35')==_0x5f2cbd[_0x3939('0x27')])return _0x5f2cbd[_0x3939('0x30')][0x0][_0x3939('0x2d')]?{'type':'format','content':_0x3a3a02(_0x259e63,_0x3939('0x24'))}:{'type':_0x3939('0x2'),'content':_0x3a3a02(_0x259e63,_0x3939('0x3b'))};}function _0x84412d(_0x1937bb){return{'type':_0x3939('0x2'),'content':_0x3a3a02(_0x259e63,_0x3939('0x5'),_0x1937bb)};}});}}function ne(_0x123267){const _0xdb423c=_0x123267[_0x3939('0x2e')](_0x3939('0x1f'));if(0x0==_0xdb423c)return _0x123267;let _0x275f9f=_0x123267;for(;_0x123267[_0x3939('0xe')]&&_0x123267[_0x3939('0xe')]['is'](_0x3939('0x37'),_0x3939('0x1c'));){const _0x50de2b=_0x123267[_0x3939('0xe')]['getAttribute']('listIndent');if(_0x50de2b==_0xdb423c)_0x275f9f=_0x123267[_0x3939('0xe')];else{if(_0x50de2b<_0xdb423c)break;}_0x123267=_0x123267['previousSibling'];}return _0x275f9f;}function oe(_0x53da53){const _0x54e804=[];if(_0x53da53['is'](_0x3939('0x37'),'listItem')&&_0x53da53[_0x3939('0x2e')](_0x3939('0x1f'))>0x0){let _0x1cf3e9=_0x53da53[_0x3939('0x10')];for(;_0x1cf3e9&&_0x3939('0x1c')==_0x1cf3e9[_0x3939('0x31')]&&_0x1cf3e9['getAttribute'](_0x3939('0x1f'))==_0x53da53[_0x3939('0x2e')]('listIndent');)_0x54e804[_0x3939('0x33')](_0x1cf3e9),_0x1cf3e9=_0x1cf3e9[_0x3939('0x10')];}return _0x54e804;}
|