@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 _0x2fcb=['fontBackgroundColor','has','get','TrackChangesEditing','enableCommand','*Reset\x20font\x20background\x20color*','*Set\x20font\x20family:*\x20%0','*Set\x20font\x20size:*\x20%0','*Reset\x20font\x20family*','fontSize.options','config','plugins','find','isCollapsed','markInlineFormat','fontSize','editor','change','fontColor','model','value','label','document','afterInit','FontFamilyEditing','commandName','fontColor.colors','toLowerCase','normalizeSizeOptions','registerDescriptionCallback','commandParams','format','FontSize','from','fontBackgroundColor.colors','getRanges','*Set\x20font\x20color:*\x20%0','FontColorEditing','_enableCommand','fontFamily','title','FontBackgroundColorEditing','_descriptionFactory'];(function(_0x5b29f0,_0x2fcbbd){const _0x3c46ba=function(_0x5ab219){while(--_0x5ab219){_0x5b29f0['push'](_0x5b29f0['shift']());}};_0x3c46ba(++_0x2fcbbd);}(_0x2fcb,0x1e3));const _0x3c46=function(_0x5b29f0,_0x2fcbbd){_0x5b29f0=_0x5b29f0-0x0;let _0x3c46ba=_0x2fcb[_0x5b29f0];return _0x3c46ba;};import{Plugin as _0x1c020f}from'ckeditor5/src/core';import{normalizeColorOptions as _0x4d050b}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x38973d}from'./utils';import{getTranslation as _0x59d17f}from'../utils/common-translations';const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':_0x3c46('0xe'),'commandName':_0x3c46('0x1d')},{'pluginName':_0x3c46('0x1b'),'commandName':_0x3c46('0x8')},{'pluginName':_0x3c46('0x1f'),'commandName':_0x3c46('0x21')}];export default class H extends _0x1c020f{[_0x3c46('0xd')](){const _0xfe38bd=this[_0x3c46('0x6')]['locale'];for(const {pluginName:_0x34b519,commandName:_0x451da6}of eo)this['editor'][_0x3c46('0x1')][_0x3c46('0x22')](_0x34b519)&&this[_0x3c46('0x1c')](_0x451da6);this['editor'][_0x3c46('0x1')][_0x3c46('0x23')](_0x3c46('0x24'))[_0x3c46('0x20')][_0x3c46('0x13')](_0x4c5aff=>{const _0x50bb89=_0xfe38bd['t'],{data:_0x371815}=_0x4c5aff;if(null!=_0x371815){if(_0x3c46('0x5')==_0x371815['commandName']){const _0x378cb4=_0x371815[_0x3c46('0x14')][0x0][_0x3c46('0xa')];if(_0x378cb4){const _0x287133=_0x50bb89(this[_0x3c46('0x6')][_0x3c46('0x1')][_0x3c46('0x23')](_0x3c46('0x16'))[_0x3c46('0x12')](this[_0x3c46('0x6')][_0x3c46('0x0')][_0x3c46('0x23')](_0x3c46('0x2a')))[_0x3c46('0x2')](_0x2d4586=>_0x2d4586[_0x3c46('0x9')]==_0x378cb4)[_0x3c46('0x1e')])[_0x3c46('0x11')]();return{'type':'format','content':_0x59d17f(_0xfe38bd,_0x3c46('0x28'),_0x287133)};}return{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,'*Reset\x20font\x20size*')};}if(_0x3c46('0x1d')==_0x371815[_0x3c46('0xf')]){const _0x359542=_0x371815['commandParams'][0x0][_0x3c46('0xa')];return _0x359542?{'type':'format','content':_0x59d17f(_0xfe38bd,_0x3c46('0x27'),_0x359542)}:{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,_0x3c46('0x29'))};}if(_0x3c46('0x8')==_0x371815[_0x3c46('0xf')]){const _0x47bf9a=_0x371815[_0x3c46('0x14')][0x0][_0x3c46('0xa')];if(_0x47bf9a){const _0x524dc2=_0x4d050b(this[_0x3c46('0x6')]['config'][_0x3c46('0x23')](_0x3c46('0x10')))[_0x3c46('0x2')](_0x5201d3=>_0x5201d3[_0x3c46('0x9')]==_0x47bf9a);let _0x5e1102=_0x47bf9a,_0x24ba80='';return _0x524dc2&&(_0x5e1102=_0x524dc2[_0x3c46('0xb')],_0x24ba80=_0x50bb89(_0x5e1102)['toLowerCase']()),{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,_0x3c46('0x1a'),_0x24ba80)['trim'](),'color':{'value':_0x47bf9a,'title':_0x24ba80||_0x5e1102}};}return{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,'*Reset\x20font\x20color*')};}if(_0x3c46('0x21')==_0x371815[_0x3c46('0xf')]){const _0x414704=_0x371815[_0x3c46('0x14')][0x0]['value'];if(_0x414704){const _0x404745=_0x4d050b(this[_0x3c46('0x6')][_0x3c46('0x0')][_0x3c46('0x23')](_0x3c46('0x18')))[_0x3c46('0x2')](_0x54f822=>_0x54f822[_0x3c46('0x9')]==_0x414704);let _0x23bf85=_0x414704,_0x20ab1a='';return _0x404745&&(_0x23bf85=_0x404745['label'],_0x20ab1a=_0x50bb89(_0x23bf85)[_0x3c46('0x11')]()),{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,'*Set\x20font\x20background\x20color:*\x20%0',_0x20ab1a)['trim'](),'color':{'value':_0x414704,'title':_0x20ab1a||_0x23bf85}};}return{'type':_0x3c46('0x15'),'content':_0x59d17f(_0xfe38bd,_0x3c46('0x26'))};}}});}['_enableCommand'](_0x584c31){const _0x31e4dc=this[_0x3c46('0x6')];_0x31e4dc[_0x3c46('0x1')][_0x3c46('0x23')](_0x3c46('0x24'))[_0x3c46('0x25')](_0x584c31,(_0x38936a,_0x4c5f21={})=>{const _0x268abd=_0x31e4dc[_0x3c46('0x9')][_0x3c46('0xc')]['selection'],_0x193ef0=_0x4c5f21['value'];_0x268abd[_0x3c46('0x3')]?_0x38936a(_0x4c5f21):_0x31e4dc[_0x3c46('0x9')][_0x3c46('0x7')](()=>{const _0x5cf883=Array[_0x3c46('0x17')](_0x268abd[_0x3c46('0x19')]());for(const _0x1edae2 of _0x5cf883){const _0x5d8854=_0x193ef0?[_0x1edae2]:_0x38973d(_0x584c31,_0x1edae2,_0x31e4dc[_0x3c46('0x9')]);for(const _0x13d875 of _0x5d8854)_0x31e4dc[_0x3c46('0x1')][_0x3c46('0x23')](_0x3c46('0x24'))[_0x3c46('0x4')](_0x13d875,{'commandName':_0x584c31,'commandParams':[{'value':_0x193ef0}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19d5=['commands','schema','selection','isCollapsed','TrackChangesEditing','plugins','normalizeSizeOptions','entries','find','getAttributeProperties','fontColor','config','*Remove\x20all\x20formatting*','getItems','locale','get','getFirstPosition','getLastPosition','markInlineFormat','fontBackgroundColor','getRanges','boolean','createSelection','isBlock','afterInit','format','modifySelection','_descriptionFactory','push','editor','length','word','backward','copyFormat','label','document','join','isFormatting','commandName','toLowerCase','charAt','fontSize.options','commandParams','pasteFormat','registerDescriptionCallback'];(function(_0x20680a,_0x19d55e){const _0x545533=function(_0x38aabc){while(--_0x38aabc){_0x20680a['push'](_0x20680a['shift']());}};_0x545533(++_0x19d55e);}(_0x19d5,0xec));const _0x5455=function(_0x20680a,_0x19d55e){_0x20680a=_0x20680a-0x0;let _0x545533=_0x19d5[_0x20680a];return _0x545533;};import{Plugin as _0x233d68}from'ckeditor5/src/core';import{normalizeColorOptions as _0x55966e}from'ckeditor5/src/ui';import{first as _0x5142ab}from'ckeditor5/src/utils';import{getTranslation as _0x4e668e}from'../utils/common-translations';export default class W extends _0x233d68{[_0x5455('0xd')](){const _0x1519ac=this[_0x5455('0x12')],_0x2c648a=_0x1519ac['model'],_0x3372d8=_0x2c648a[_0x5455('0x18')][_0x5455('0x24')],_0x4a84f1=_0x1519ac[_0x5455('0x27')][_0x5455('0x4')](_0x5455('0x26')),_0x304d1c=_0x1519ac[_0x5455('0x3')],_0x16406a=_0x1519ac[_0x5455('0x22')][_0x5455('0x4')](_0x5455('0x16')),_0x3687ed=_0x1519ac[_0x5455('0x22')][_0x5455('0x4')](_0x5455('0x20'));_0x16406a&&_0x3687ed&&(_0x4a84f1['enableCommand'](_0x5455('0x20'),(_0x2b3b70,_0xc21563={})=>{const _0x3154d0=_0xc21563;_0x2c648a['change'](()=>{const _0x2c0871=Array['from'](_0x3372d8['getRanges']()),_0x177a2c=_0x3372d8[_0x5455('0x25')]?[co(_0x2c648a,_0x3372d8)]:_0x2c0871,_0x395187=!!_0x5142ab(function*(_0x21b482,_0x245188){const _0x4eed1e=_0x133f54=>!!_0x5142ab(function*(_0x407941,_0x5f095e){for(const [_0x5d2ce8]of _0x407941['getAttributes']()){const _0x31ca3b=_0x5f095e[_0x5455('0x2b')](_0x5d2ce8);_0x31ca3b&&_0x31ca3b[_0x5455('0x1a')]&&(yield _0x5d2ce8);}}(_0x133f54,_0x245188));for(const _0x7dfc4b of _0x21b482[_0x5455('0x9')]())for(const _0x51b683 of _0x7dfc4b[_0x5455('0x2')]())!_0x245188[_0x5455('0xc')](_0x51b683)&&_0x4eed1e(_0x51b683)&&(yield _0x51b683);for(const _0x1ca862 of _0x21b482['getSelectedBlocks']())_0x4eed1e(_0x1ca862)&&(yield _0x1ca862);_0x4eed1e(_0x21b482)&&(yield _0x21b482);}(_0x3372d8,_0x2c648a[_0x5455('0x23')]));if(_0x395187||0x0!==Object['keys'](_0x3154d0)[_0x5455('0x13')])for(const _0xfc2c88 of _0x177a2c)_0x4a84f1[_0x5455('0x7')](_0xfc2c88,{'commandName':_0x5455('0x20'),'commandParams':[_0x3154d0]});});}),_0x4a84f1[_0x5455('0x10')][_0x5455('0x21')](_0x1caa78=>{const {data:_0x2427a7}=_0x1caa78;if(_0x2427a7&&_0x5455('0x20')===_0x2427a7[_0x5455('0x1b')]){const _0x2b630f=[],_0x2f7628=_0x2427a7[_0x5455('0x1f')][0x0];for(const [_0x222733,_0x47b401]of Object[_0x5455('0x29')](_0x2f7628))_0x2b630f[_0x5455('0x11')](io(_0x1519ac,_0x222733,_0x47b401));return _0x2b630f[_0x5455('0x13')]?{'type':_0x5455('0xe'),'content':_0x4e668e(_0x304d1c,'*Set\x20format\x20to:*\x20%0',_0x2b630f[_0x5455('0x19')](',\x20'))}:{'type':_0x5455('0xe'),'content':_0x4e668e(_0x304d1c,_0x5455('0x1'))};}}),_0x1519ac['plugins'][_0x5455('0x4')]('TrackChangesEditing')['enableCommand'](_0x5455('0x16')));}}function co(_0x14bbdd,_0x1b8a3a){const _0x5c0697=_0x14bbdd[_0x5455('0xb')](_0x1b8a3a);_0x14bbdd[_0x5455('0xf')](_0x5c0697,{'unit':_0x5455('0x14'),'direction':_0x5455('0x15')});const _0x302b21=_0x5c0697[_0x5455('0x5')]();_0x14bbdd[_0x5455('0xf')](_0x5c0697,{'unit':_0x5455('0x14'),'direction':'forward'});const _0xc23c72=_0x5c0697[_0x5455('0x6')]();return _0x14bbdd['createRange'](_0x302b21,_0xc23c72);}function io(_0x5615eb,_0x342539,_0x37d421){const _0xd67c78=_0x5615eb[_0x5455('0x3')]['t'],_0x27ce3b=_0x342539['split'](/(?=[A-Z])/)[_0x5455('0x19')]('\x20'),_0x54af30=_0xd67c78(_0x27ce3b[_0x5455('0x1d')](0x0)['toUpperCase']()+_0x27ce3b['slice'](0x1))[_0x5455('0x1c')]();if(_0x5455('0xa')==typeof _0x37d421)return _0x54af30;if(_0x5455('0x2c')===_0x342539||_0x5455('0x8')===_0x342539){const _0x493249=_0x55966e(_0x5615eb[_0x5455('0x0')][_0x5455('0x4')]('fontColor.colors'))[_0x5455('0x2a')](_0x1c0590=>_0x1c0590['model']==_0x37d421);return _0x54af30+'\x20('+(_0x493249?_0xd67c78(_0x493249[_0x5455('0x17')])['toLowerCase']():_0x37d421)+')';}if('fontSize'===_0x342539&&isNaN(parseFloat(_0x37d421))){const _0x58cec2=_0x5615eb[_0x5455('0x27')][_0x5455('0x4')]('FontSize')[_0x5455('0x28')](_0x5615eb[_0x5455('0x0')][_0x5455('0x4')](_0x5455('0x1e')))['find'](_0x283437=>_0x283437['model']==_0x37d421);return _0x54af30+'\x20('+(_0x58cec2?_0xd67c78(_0x58cec2['title'])[_0x5455('0x1c')]():_0x37d421)+')';}return _0x54af30+'\x20('+_0x37d421+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dec=['checkChild','_descriptionFactory','title','HeadingEditing','formatBlock','afterInit','ELEMENT_HEADING_CUSTOM','has','from','format','document','filter','get','find','match','registerDescriptionCallback','commandName','model','isObject','markBlockFormat','getSelectedBlocks','TrackChangesEditing','selection','name','value','editor','heading.options','ELEMENT_HEADING','paragraph','plugins','registerElementLabel','*Change\x20to:*\x20%0','parent','heading'];(function(_0x2bcaa5,_0x5dec4f){const _0xe1158e=function(_0xf4557b){while(--_0xf4557b){_0x2bcaa5['push'](_0x2bcaa5['shift']());}};_0xe1158e(++_0x5dec4f);}(_0x5dec,0x11c));const _0xe115=function(_0x2bcaa5,_0x5dec4f){_0x2bcaa5=_0x2bcaa5-0x0;let _0xe1158e=_0x5dec[_0x2bcaa5];return _0xe1158e;};import{Plugin as _0x4a53a6}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3f36a2}from'./utils';import{getTranslation as _0x210fc3}from'../utils/common-translations';export default class J extends _0x4a53a6{[_0xe115('0x1b')](){const _0x240135=this['editor'],_0x4f3c02=_0x240135['locale'],_0x3e4808=_0x240135['config']['get'](_0xe115('0xe'));if(!_0x240135[_0xe115('0x11')][_0xe115('0x1d')](_0xe115('0x19')))return;const _0x9429fd=_0x240135[_0xe115('0x11')][_0xe115('0x0')](_0xe115('0x9'));_0x9429fd['enableCommand'](_0xe115('0x15'),(_0xa7ccc6,_0x5793c1)=>{const _0x331225=_0x5793c1[_0xe115('0xc')],_0x21f520=Array[_0xe115('0x1e')](this[_0xe115('0xd')][_0xe115('0x5')][_0xe115('0x20')][_0xe115('0xa')][_0xe115('0x8')]())[_0xe115('0x21')](_0x14cddf=>function(_0x502b89,_0x56d06f,_0x54819c){return _0x54819c[_0xe115('0x16')](_0x502b89[_0xe115('0x14')],_0x56d06f)&&!_0x54819c[_0xe115('0x6')](_0x502b89)&&_0x502b89[_0xe115('0xb')]!=_0x56d06f;}(_0x14cddf,_0x331225,this['editor'][_0xe115('0x5')]['schema']));_0x240135['model']['change'](()=>{for(const _0x193345 of _0x21f520)_0x9429fd[_0xe115('0x7')](_0x193345,{'commandName':_0xe115('0x15'),'commandParams':[_0x5793c1],'formatGroupId':'blockName'},_0x3f36a2(_0x193345));});});for(const _0x54bc1e of _0x3e4808)_0xe115('0x10')!=_0x54bc1e[_0xe115('0x5')]&&_0x9429fd[_0xe115('0x17')][_0xe115('0x12')](_0x54bc1e[_0xe115('0x5')],_0x3a1218=>{const _0x5489c6=nn(_0x54bc1e['model']);return null!==_0x5489c6?_0x472198(_0x3a1218,_0x5489c6):_0x292491(_0x3a1218,_0x54bc1e[_0xe115('0x18')]);});function _0x472198(_0x57d3e2,_0x2a2f71){return _0x210fc3(_0x4f3c02,_0xe115('0xf'),[_0x57d3e2,_0x2a2f71]);}function _0x292491(_0x40fc63,_0x1dc083){return _0x210fc3(_0x4f3c02,_0xe115('0x1c'),[_0x40fc63,_0x1dc083]);}_0x9429fd[_0xe115('0x17')][_0xe115('0x3')](_0x20f06b=>{const {type:_0x3f8745,data:_0x14197e}=_0x20f06b;if(_0xe115('0x1a')==_0x3f8745&&_0x14197e&&'heading'==_0x14197e[_0xe115('0x4')]){const _0xb1be5c=_0x14197e['commandParams'][0x0][_0xe115('0xc')],_0x3172e9=nn(_0xb1be5c);if(null!==_0x3172e9)return{'type':_0xe115('0x1f'),'content':_0x210fc3(_0x4f3c02,_0xe115('0x13'),_0x472198(0x1,_0x3172e9))};const _0x2ae94b=_0x3e4808[_0xe115('0x1')](_0x50a074=>_0x50a074[_0xe115('0x5')]===_0xb1be5c)[_0xe115('0x18')];return{'type':_0xe115('0x1f'),'content':_0x210fc3(_0x4f3c02,_0xe115('0x13'),_0x292491(0x1,_0x2ae94b))};}});}}function nn(_0x4b56ec){const _0x2505bb=_0x4b56ec[_0xe115('0x2')](/^heading(\d+)$/);return _0x2505bb?_0x2505bb[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x272a=['format','config','commandName','TrackChangesEditing','HighlightEditing','isCollapsed','getAttribute','*Set\x20highlight:*\x20%0','toLowerCase','markInlineFormat','enableCommand','getFirstPosition','highlight.options','highlight','title','value','push','createRange','color','get','backward','model','getRanges','change','hasAttribute','item','plugins','formatInline','locale','_descriptionFactory','find','has','registerDescriptionCallback'];(function(_0x3268c1,_0x272ad0){const _0x3ce410=function(_0x5c9f84){while(--_0x5c9f84){_0x3268c1['push'](_0x3268c1['shift']());}};_0x3ce410(++_0x272ad0);}(_0x272a,0x137));const _0x3ce4=function(_0x3268c1,_0x272ad0){_0x3268c1=_0x3268c1-0x0;let _0x3ce410=_0x272a[_0x3268c1];return _0x3ce410;};import{Plugin as _0x2f5e52}from'ckeditor5/src/core';import{getTranslation as _0x552cbd}from'../utils/common-translations';import{getRangesWithAttribute as _0x599f33}from'./utils';export default class K extends _0x2f5e52{['afterInit'](){const _0x2802e1=this['editor'];if(!_0x2802e1['plugins'][_0x3ce4('0x11')](_0x3ce4('0x17')))return;const _0x16074c=_0x2802e1[_0x3ce4('0xc')]['get'](_0x3ce4('0x16'));_0x16074c[_0x3ce4('0x1d')](_0x3ce4('0x20'),(_0x22c39f,_0x33e90d={})=>{const _0x1a8ca6=_0x2802e1[_0x3ce4('0x7')]['document']['selection'],_0xc343da=_0x1a8ca6['getAttribute'](_0x3ce4('0x20'));let _0x2fc16c=_0x33e90d[_0x3ce4('0x1')],_0x3fdb8c=[];if(_0x1a8ca6[_0x3ce4('0x18')]){const _0x26eb02=_0x1a8ca6[_0x3ce4('0x1e')]();if(!_0x1a8ca6[_0x3ce4('0xa')](_0x3ce4('0x20')))return void _0x22c39f(_0x33e90d);{const _0x51ddb3=_0x124d05=>_0x124d05[_0x3ce4('0xb')][_0x3ce4('0x19')](_0x3ce4('0x20'))===_0xc343da,_0x55f9b9=_0x26eb02['getLastMatchingPosition'](_0x51ddb3,{'direction':_0x3ce4('0x6')}),_0x43e870=_0x26eb02['getLastMatchingPosition'](_0x51ddb3);_0x3fdb8c=[_0x2802e1['model'][_0x3ce4('0x3')](_0x55f9b9,_0x43e870)],_0x2fc16c==_0xc343da&&(_0x2fc16c=null);}}else for(const _0x489740 of _0x1a8ca6[_0x3ce4('0x8')]())_0x2fc16c?_0x3fdb8c['push'](_0x489740):_0x3fdb8c[_0x3ce4('0x2')](..._0x599f33(_0x3ce4('0x20'),_0x489740,_0x2802e1[_0x3ce4('0x7')]));_0x2802e1[_0x3ce4('0x7')][_0x3ce4('0x9')](()=>{for(const _0x551b0b of _0x3fdb8c)_0x16074c[_0x3ce4('0x1c')](_0x551b0b,{'commandName':'highlight','commandParams':[{'value':_0x2fc16c}]});});});const _0x344d91=_0x2802e1[_0x3ce4('0xe')];_0x16074c[_0x3ce4('0xf')][_0x3ce4('0x12')](_0x4f40a5=>{const {type:_0x403c5d,data:_0x2810c6}=_0x4f40a5;if(_0x3ce4('0xd')==_0x403c5d&&_0x2810c6&&_0x3ce4('0x20')==_0x2810c6[_0x3ce4('0x15')]){const _0x36339c=_0x344d91['t'],_0x2e3ccf=_0x2810c6['commandParams'][0x0][_0x3ce4('0x1')];if(_0x2e3ccf){const _0x9532d8=_0x2802e1[_0x3ce4('0x14')][_0x3ce4('0x5')](_0x3ce4('0x1f'))[_0x3ce4('0x10')](_0x1cf3f3=>_0x1cf3f3['model']==_0x2e3ccf),_0x457778=_0x36339c(_0x9532d8[_0x3ce4('0x0')])[_0x3ce4('0x1b')]();return{'type':_0x3ce4('0x13'),'content':_0x552cbd(_0x344d91,_0x3ce4('0x1a'),_0x457778),'color':{'value':_0x9532d8[_0x3ce4('0x4')],'title':_0x9532d8[_0x3ce4('0x0')]}};}return{'type':_0x3ce4('0x13'),'content':_0x552cbd(_0x344d91,'*Remove\x20highlight*',_0x552cbd(_0x344d91,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fc8=['TrackChangesEditing','createContainerElement','createEmptyElement','afterInit','editor','has','elementToStructure','plugins','horizontalLine','ELEMENT_HORIZONTAL_LINE','registerElementLabel','addClass','dataDowncast','get','_descriptionFactory','ck-horizontal-line','for','conversion','locale','insert'];(function(_0x38524e,_0x4fc8d7){const _0x503401=function(_0x413d11){while(--_0x413d11){_0x38524e['push'](_0x38524e['shift']());}};_0x503401(++_0x4fc8d7);}(_0x4fc8,0x150));const _0x5034=function(_0x38524e,_0x4fc8d7){_0x38524e=_0x38524e-0x0;let _0x503401=_0x4fc8[_0x38524e];return _0x503401;};import{Plugin as _0x3f5450}from'ckeditor5/src/core';import{getTranslation as _0x4c3e2f}from'../utils/common-translations';export default class Q extends _0x3f5450{[_0x5034('0x7')](){const _0xa9358b=this[_0x5034('0x8')];if(!_0xa9358b['plugins'][_0x5034('0x9')]('HorizontalLineEditing'))return;_0xa9358b[_0x5034('0xb')][_0x5034('0x11')](_0x5034('0x4'))['enableCommand'](_0x5034('0xc'));const _0x137338=_0xa9358b['plugins'][_0x5034('0x11')](_0x5034('0x4')),_0x3ea49b=_0xa9358b[_0x5034('0x2')];_0x137338[_0x5034('0x12')][_0x5034('0xe')](_0x5034('0xc'),_0x2bf883=>_0x4c3e2f(_0x3ea49b,_0x5034('0xd'),_0x2bf883)),_0xa9358b[_0x5034('0x1')][_0x5034('0x0')](_0x5034('0x10'))[_0x5034('0xa')]({'model':_0x5034('0xc'),'view':(_0x3b07cf,{writer:_0xa82c67,options:_0x1d0aa1})=>{if(!_0x1d0aa1['showSuggestionHighlights'])return null;const _0x2edded=_0xa82c67[_0x5034('0x5')]('div'),_0x2edd16=_0xa82c67[_0x5034('0x6')]('hr');return _0xa82c67[_0x5034('0xf')](_0x5034('0x13'),_0x2edded),_0xa82c67[_0x5034('0x3')](_0xa82c67['createPositionAt'](_0x2edded,0x0),_0x2edd16),_0x2edded;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f52=['editor','change','rawHtml','rawHtmlApi','value','get','commandName','HtmlEmbed','getCustomProperty','registerDescriptionCallback','model','afterInit','_descriptionFactory','enableCommand','TrackChangesEditing','view','htmlEmbed','markBlockFormat','ELEMENT_HTML_EMBED','element','*Change\x20%0\x20content*','cancel','plugins','selection'];(function(_0x439e0e,_0x1f528c){const _0x34aad8=function(_0x2fd4c5){while(--_0x2fd4c5){_0x439e0e['push'](_0x439e0e['shift']());}};_0x34aad8(++_0x1f528c);}(_0x1f52,0x180));const _0x34aa=function(_0x439e0e,_0x1f528c){_0x439e0e=_0x439e0e-0x0;let _0x34aad8=_0x1f52[_0x439e0e];return _0x34aad8;};import{Plugin as _0x53072a}from'ckeditor5/src/core';import{getTranslation as _0x3afad1}from'../utils/common-translations';export default class V extends _0x53072a{[_0x34aa('0xb')](){const _0xcd2866=this[_0x34aa('0x0')];if(!_0xcd2866[_0x34aa('0x16')]['has'](_0x34aa('0x7')))return;const _0xba8dfa=_0xcd2866[_0x34aa('0x16')][_0x34aa('0x5')](_0x34aa('0xe')),_0x50ac1e=_0xcd2866['locale'],_0x4f7bc0=_0xcd2866['editing'][_0x34aa('0xf')]['document'][_0x34aa('0x17')];_0xba8dfa['_descriptionFactory']['registerElementLabel'](_0x34aa('0x2'),_0x25054a=>_0x3afad1(_0x50ac1e,_0x34aa('0x12'),_0x25054a)),_0xcd2866[_0x34aa('0x16')][_0x34aa('0x5')](_0x34aa('0xe'))[_0x34aa('0xd')]('htmlEmbed',(_0x4f0efc,_0x4436e2)=>{const _0x57615d=_0xcd2866[_0x34aa('0xa')],_0x1a0dce=_0x57615d['document']['selection'];_0x57615d[_0x34aa('0x1')](()=>{const _0xeeea7f=function(_0x1d0101){const _0xdc8fc3=_0x1d0101['getSelectedElement']();if(_0xdc8fc3&&_0xdc8fc3['is'](_0x34aa('0x13'),'rawHtml'))return _0x1d0101['getSelectedElement']();return null;}(_0x1a0dce);if(!_0xeeea7f)return void _0x4f0efc(null);const _0x5e9e91=_0xeeea7f['getAttribute'](_0x34aa('0x4'))||'';if(void 0x0===_0x4436e2)return;if(_0x4436e2===_0x5e9e91)return;_0xba8dfa[_0x34aa('0x11')](_0xeeea7f,{'commandName':_0x34aa('0x10'),'commandParams':[_0x4436e2]}),_0x4f7bc0['getSelectedElement']()[_0x34aa('0x8')](_0x34aa('0x3'))[_0x34aa('0x15')]();});}),_0xba8dfa[_0x34aa('0xc')][_0x34aa('0x9')](_0x3201ad=>{const {data:_0x4c1f8a}=_0x3201ad;if(_0x4c1f8a&&'htmlEmbed'==_0x4c1f8a[_0x34aa('0x6')]){const _0x27f7e6=_0x3afad1(_0x50ac1e,_0x34aa('0x12'));return{'type':'format','content':_0x3afad1(_0x50ac1e,_0x34aa('0x14'),_0x27f7e6)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45b1=['refresh','imageStylePostApply','imageStylePreApply','ImageUtils','fromPosition','find','ImageCaptionEditing','commands','value','width','nodeBefore','hasAttribute','end','join','ImageUploadEditing','insertion','change','isCollapsed','forceDefaultExecution','format','locale','getSuggestion','side','detach','Users','editor','isEqual','getFirstRange','markInlineFormat','imageTextAlternative','filter','element','imageStyle','convertBlockImageToInline','forward','forEach','getSuggestionCallback','ImageStyleEditing','next','getChangedMarkers','alt','subType','nodeAfter','imageTypeInline','newValue','commandReversedParams','isBefore','markDeletion','length','isOwn','createRange','type','has','isIntersecting','getContainedElement','chain','isBlockImage','uploadImage','ELEMENT_CAPTION','registerDescriptionCallback','formatBlock','model','commandName','*Reset\x20image\x20width*','document','previous','title','from','schema','ImageResize','markInsertion','toPrevious','registerCustomCallback','insertImage','newRange','author','_suggestionFactory','formatInline','name','discard','imageCaption','backward','_descriptionFactory','hasSuggestion','getCaptionFromImageModelElement','ELEMENT_INLINE_IMAGE','convertInlineImageToBlock','start','accept','get','selection','ImageCaptionUtils','isInContent','discardSuggestion','imageTypeBlock','getAttribute','differ','caption','registerPostFixer','createRangeOn','Block\x20image\x20to\x20inline\x20image','head','getNearestSelectionRange','_splitMarkerName','*Set\x20image\x20text\x20alternative:*\x20%0','toNext','markBlockFormat','imageInline','_findSuggestions','deletion','Inline\x20image\x20to\x20block\x20image','removeObject','findIndex','commandParams','enableCommand','plugins','registerElementLabel','afterInit','ImageTextAlternativeEditing','addObject','getClosestSelectedImageElement','toLowerCase','imageBlock','resizeImage'];(function(_0x3572a9,_0x45b127){const _0xd23f1f=function(_0x1cb504){while(--_0x1cb504){_0x3572a9['push'](_0x3572a9['shift']());}};_0xd23f1f(++_0x45b127);}(_0x45b1,0x144));const _0xd23f=function(_0x3572a9,_0x45b127){_0x3572a9=_0x3572a9-0x0;let _0xd23f1f=_0x45b1[_0x3572a9];return _0xd23f1f;};import{Plugin as _0x2f2855}from'ckeditor5/src/core';import{LivePosition as _0x134432}from'ckeditor5/src/engine';import{uid as _0x42afa2}from'ckeditor5/src/utils';import{getTranslation as _0x219b76}from'../utils/common-translations';export default class X extends _0x2f2855{[_0xd23f('0x29')](){const _0x5aa00d=this[_0xd23f('0x49')];if(!_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')]('ImageEditing'))return;const _0xbcffc0=_0x5aa00d['plugins'][_0xd23f('0xd')]('TrackChangesEditing'),_0x23e2fe=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0x33')),_0x18b236={},_0x451128=_0x5aa00d[_0xd23f('0x44')];if(_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x79')),_0xbcffc0[_0xd23f('0x6')]['registerElementLabel'](_0xd23f('0x2e'),_0x318a4a=>_0x219b76(_0x451128,'ELEMENT_IMAGE',_0x318a4a)),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x28')](_0xd23f('0x1f'),_0x5e7c57=>_0x219b76(_0x451128,_0xd23f('0x9'),_0x5e7c57)),_0xbcffc0[_0xd23f('0x6')]['registerElementLabel'](_0xd23f('0x15'),()=>_0x219b76(_0x451128,_0xd23f('0x6a'))),_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')](_0xd23f('0x3e'))&&_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x69')),_0x5aa00d[_0xd23f('0x27')]['has']('ImageBlockEditing')&&_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')]('ImageInlineEditing')&&(_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x5b'),(_0x149e59,_0x296b13)=>{const _0x1e1a80=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')]['selection']);_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x1e1a80,{'commandName':_0xd23f('0x5b'),'commandParams':[_0x296b13]},[],_0xd23f('0x51'));});}),_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x12'),(_0x4b5ecf,_0x324014)=>{_0x5aa00d[_0xd23f('0x6d')]['change'](_0x361173=>{let _0x41ec65=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x515fc9=_0x361173[_0xd23f('0x17')](_0x41ec65);const _0x4c5509=_0x134432[_0xd23f('0x34')](_0x515fc9['start'],_0xd23f('0x77')),_0x33abbd=_0x134432[_0xd23f('0x34')](_0x515fc9[_0xd23f('0x3c')],_0xd23f('0x1d'));_0xbcffc0[_0xd23f('0x42')](()=>_0x4b5ecf(_0x324014)),_0x41ec65=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0xe')]),_0x515fc9=_0x361173[_0xd23f('0x17')](_0x41ec65);const _0x10357d=_0x361173['createRange'](_0x4c5509,_0x33abbd);_0x4c5509[_0xd23f('0x47')](),_0x33abbd['detach'](),_0xbcffc0[_0xd23f('0x1e')](_0x41ec65,{'commandName':_0xd23f('0x5b'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x10357d[_0xd23f('0xb')][_0xd23f('0x5e')](_0x515fc9[_0xd23f('0xb')])&&_0xbcffc0[_0xd23f('0x76')](_0x361173['createRange'](_0x10357d[_0xd23f('0xb')],_0x515fc9[_0xd23f('0xb')]),'convertInlineImageToBlock'),_0x515fc9['end'][_0xd23f('0x5e')](_0x10357d[_0xd23f('0x3c')])&&_0xbcffc0[_0xd23f('0x76')](_0x361173[_0xd23f('0x62')](_0x515fc9['end'],_0x10357d[_0xd23f('0x3c')]),_0xd23f('0xa'));});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatBlock',_0xd23f('0xa'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),'accept',()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),_0xd23f('0x3'),_0xbcffc0[_0xd23f('0x0')]['getSuggestionCallback']('formatBlock','',_0xd23f('0xc'))),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x3f'),_0xd23f('0xa'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion',_0xd23f('0xa'),'discard',([_0x2ae4cf])=>{const _0x141921=_0xbcffc0['_suggestionFactory']['getSuggestionCallback'](_0xd23f('0x3f'),'','discard');let _0x406abd=_0x2ae4cf[_0xd23f('0xb')],_0x538b7d=_0x2ae4cf[_0xd23f('0x3c')];const _0x3947c2=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x74')][_0xd23f('0x1a')](_0x406abd,_0xd23f('0x5')),_0x31fc4a=_0x5aa00d['model'][_0xd23f('0x74')][_0xd23f('0x1a')](_0x538b7d,_0xd23f('0x52'));_0x3947c2[_0xd23f('0x41')]&&(_0x406abd=_0x3947c2[_0xd23f('0xb')]),_0x31fc4a[_0xd23f('0x41')]&&(_0x538b7d=_0x31fc4a[_0xd23f('0x3c')]),_0x141921([_0x5aa00d['model']['createRange'](_0x406abd,_0x538b7d)]);}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),_0xd23f('0x67'),_0x57e560),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion','convertInlineImageToBlock',_0xd23f('0x67'),_0x57e560)),_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')](_0xd23f('0x36'))&&(_0xbcffc0[_0xd23f('0x26')]('toggleImageCaption',(_0x21a2a5,_0x4d99a7)=>{const _0x3da954=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0xf'));let _0x1df2ab=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x48d310=_0x3da954[_0xd23f('0x8')](_0x1df2ab);_0x5aa00d['model'][_0xd23f('0x40')](()=>{if(_0x48d310)return void _0xbcffc0[_0xd23f('0x5f')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x48d310));const _0x77fcf=_0x23e2fe[_0xd23f('0x68')](_0x1df2ab);_0x21a2a5(_0x4d99a7),_0x1df2ab=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x48d310=_0x3da954[_0xd23f('0x8')](_0x1df2ab),_0xbcffc0[_0xd23f('0x76')](_0x5aa00d[_0xd23f('0x6d')]['createRangeOn'](_0x48d310),_0x77fcf?null:_0xd23f('0x4'));});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion','imageCaption',_0xd23f('0x67'),_0x57e560)),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x55'))){_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x50'),(_0x23b51d,_0x4574cc)=>{const _0x2e29da=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0x48'))['me'],_0x36e96d=_0x5aa00d[_0xd23f('0x37')][_0xd23f('0xd')](_0xd23f('0x50'));let _0x159637=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d['model'][_0xd23f('0x70')][_0xd23f('0xe')]),_0x57a307=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x159637),_0x343b72=_0x36e96d['value'];if(_0x343b72==_0x4574cc[_0xd23f('0x38')])return;const _0x124a04={'commandName':_0xd23f('0x50'),'commandParams':[_0x4574cc],'formatGroupId':_0x42afa2()};_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{if(_0xbcffc0['getSuggestions']()[_0xd23f('0x4e')](_0x37ae3f=>_0x37ae3f[_0xd23f('0x10')]&&_0x2e29da==_0x37ae3f[_0xd23f('0x7b')]&&(_0xd23f('0x6c')==_0x37ae3f['type']||_0xd23f('0x1')==_0x37ae3f[_0xd23f('0x63')])&&('imageStylePreApply'==_0x37ae3f[_0xd23f('0x59')]||_0xd23f('0x31')==_0x37ae3f['subType'])&&_0x37ae3f[_0xd23f('0x4b')]()['isEqual'](_0x57a307))[_0xd23f('0x53')](_0x3396ec=>_0xbcffc0['discardSuggestion'](_0x3396ec[_0xd23f('0x19')])),_0x159637=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0xe')]),_0x57a307=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x159637),_0x36e96d[_0xd23f('0x30')](),_0x5aa00d['commands']['get'](_0xd23f('0x5b'))['refresh'](),_0x5aa00d[_0xd23f('0x37')][_0xd23f('0xd')](_0xd23f('0x12'))[_0xd23f('0x30')](),_0x343b72=_0x36e96d[_0xd23f('0x38')],_0x343b72!=_0x4574cc[_0xd23f('0x38')])return _0x23e2fe['isInlineImage'](_0x159637)&&_0x36e96d['shouldConvertImageType'](_0x4574cc[_0xd23f('0x38')],_0x159637)?(_0x23b51d(_0x4574cc),_0x159637=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),void _0xbcffc0[_0xd23f('0x1e')](_0x159637,{..._0x124a04,'commandReversedParams':[{'value':_0x343b72||null}]},[],_0xd23f('0x32'))):void(_0x23e2fe[_0xd23f('0x68')](_0x159637)?_0xbcffc0[_0xd23f('0x1e')](_0x159637,_0x124a04,[],_0xd23f('0x31')):_0xbcffc0[_0xd23f('0x4c')](_0x57a307,_0x124a04,_0xd23f('0x31')));});});for(const _0x548334 of _0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')]('ImageStyleEditing')['normalizedStyles'])_0x18b236[_0x548334[_0xd23f('0x2')]]=_0x548334[_0xd23f('0x72')][_0xd23f('0x2d')]();_0xbcffc0[_0xd23f('0x0')]['registerCustomCallback']('formatBlock',_0xd23f('0x32'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd23f('0x31'),'join',()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatInline',_0xd23f('0x31'),'join',()=>!0x1),_0xbcffc0['_suggestionFactory'][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0x32'),_0xd23f('0xc'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatBlock',_0xd23f('0x32'),_0xd23f('0x3'),(_0x39151d,_0x8f3408)=>{_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x54')](_0xd23f('0x6c'),'',_0xd23f('0xc'))(_0x39151d,{'commandName':_0x8f3408[_0xd23f('0x6e')],'commandParams':_0x8f3408[_0xd23f('0x5d')]});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0x32'),'chain',_0x57e560);}const _0x16eff1=[{'type':_0xd23f('0x6c'),'subType':_0xd23f('0x32')},{'type':_0xd23f('0x3f'),'subType':_0xd23f('0x4')},{'type':_0xd23f('0x6c'),'subType':_0xd23f('0xa')},{'type':_0xd23f('0x3f'),'subType':_0xd23f('0xa')}];function _0x5a0dba(_0x555b6f,_0x417c97){const _0x2b59aa=_0x16eff1[_0xd23f('0x24')](({type:_0x192bb9,subType:_0x3fdd4e})=>_0x555b6f[_0xd23f('0x63')]==_0x192bb9&&_0x555b6f[_0xd23f('0x59')]==_0x3fdd4e),_0xc65f84=_0x16eff1['findIndex'](({type:_0x10b34b,subType:_0x463448})=>_0x417c97['type']==_0x10b34b&&_0x417c97[_0xd23f('0x59')]==_0x463448);if(_0x2b59aa<0x0||_0xc65f84<0x0)return!0x1;const _0x604379=_0x555b6f[_0xd23f('0x4b')](),_0x273bd4=_0x417c97[_0xd23f('0x4b')]();if((0x0==_0x2b59aa||0x1==_0x2b59aa)&&0x2==_0xc65f84&&_0x604379[_0xd23f('0x65')](_0x273bd4))return!0x0;if(0x2==_0x2b59aa&&0x3==_0xc65f84){const _0x2f9fbb=_0xbcffc0[_0xd23f('0x20')](_0x604379,_0xd23f('0x3f'))[_0xd23f('0x4e')](({suggestion:_0x2a8eeb,meta:_0x52ecb0})=>_0x52ecb0[_0xd23f('0x61')]&&_0xd23f('0xa')==_0x2a8eeb[_0xd23f('0x59')]);if(_0x2f9fbb[_0xd23f('0x60')]>0x1&&_0x273bd4[_0xd23f('0x3c')][_0xd23f('0x4a')](_0x604379[_0xd23f('0xb')]))return!0x0;if(0x1==_0x2f9fbb[_0xd23f('0x60')]&&(_0x604379[_0xd23f('0xb')][_0xd23f('0x4a')](_0x273bd4['end'])||_0x604379[_0xd23f('0x3c')][_0xd23f('0x4a')](_0x273bd4['start'])))return!0x0;}if(0x3==_0x2b59aa&&0x3==_0xc65f84&&_0x604379[_0xd23f('0xb')][_0xd23f('0x5e')](_0x273bd4[_0xd23f('0xb')])){const _0x542335=_0x604379[_0xd23f('0x3c')][_0xd23f('0x5a')],_0x13b0a4=_0x273bd4[_0xd23f('0xb')][_0xd23f('0x3a')];return _0x23e2fe[_0xd23f('0x68')](_0x542335)&&_0x542335===_0x13b0a4;}return!0x1;}function _0x57e560(_0x96258c,_0x13c582){return _0x5a0dba(_0x96258c,_0x13c582)?[_0x96258c,_0x13c582]:_0x5a0dba(_0x13c582,_0x96258c)?[_0x13c582,_0x96258c]:null;}_0x5aa00d['model'][_0xd23f('0x70')][_0xd23f('0x16')](()=>{let _0x3465a7=!0x1;const _0x76b118=Array[_0xd23f('0x73')](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0x14')][_0xd23f('0x57')]());for(const {name:_0x21f61d,data:_0x1d9b5a}of _0x76b118){const {group:_0x5ef33e,type:_0x5ba13d,subType:_0x356cca,id:_0x2b1651}=_0xbcffc0[_0xd23f('0x1b')](_0x21f61d);if('suggestion'==_0x5ef33e&&_0xbcffc0[_0xd23f('0x7')](_0x2b1651)){if(_0xd23f('0x6c')==_0x5ba13d&&(_0xd23f('0x32')==_0x356cca||_0xd23f('0x31')==_0x356cca)){const _0x2e6637=_0xbcffc0[_0xd23f('0x45')](_0x2b1651);if(_0x1d9b5a[_0xd23f('0x7a')]){const _0xd480f5=_0x2e6637[_0xd23f('0x4b')]()[_0xd23f('0x66')]();if(_0x23e2fe[_0xd23f('0x68')](_0xd480f5))continue;_0xbcffc0[_0xd23f('0x11')](_0x2e6637),_0x3465a7=!0x0;}}if(_0xd23f('0x3f')==_0x5ba13d&&_0xd23f('0x4')==_0x356cca&&!_0x1d9b5a[_0xd23f('0x7a')]){const _0x3b0c60=_0xbcffc0[_0xd23f('0x45')](_0x2b1651);_0x3b0c60[_0xd23f('0x56')]&&_0x3b0c60[_0xd23f('0x56')]['isInContent']&&(_0xbcffc0[_0xd23f('0x11')](_0x3b0c60[_0xd23f('0x56')]),_0x3465a7=!0x0);}}}return _0x3465a7;}),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x75'))&&_0xbcffc0[_0xd23f('0x26')]('resizeImage',(_0x368c6f,_0x39854c)=>{const _0x3f0bf4=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]);_0x3f0bf4['getAttribute'](_0xd23f('0x39'))!=_0x39854c[_0xd23f('0x39')]&&_0x5aa00d[_0xd23f('0x6d')]['change'](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x3f0bf4,{'commandName':_0xd23f('0x2f'),'commandParams':[_0x39854c]});});}),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x2a'))&&_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x4d'),(_0x3f5e42,_0x42439e)=>{const _0x1c205d=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]);(_0x1c205d[_0xd23f('0x3b')]('alt')?_0x1c205d[_0xd23f('0x13')](_0xd23f('0x58')):'')!=_0x42439e[_0xd23f('0x5c')]&&_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x1c205d,{'commandName':_0xd23f('0x4d'),'commandParams':[_0x42439e]});});}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0xb69789=>{if(!!_0x16eff1[_0xd23f('0x35')](({type:_0x567bb5,subType:_0x5304cc})=>_0xb69789[_0xd23f('0x63')]==_0x567bb5&&_0xb69789[_0xd23f('0x59')]==_0x5304cc))return _0xb69789[_0xd23f('0x71')]?{}:void 0x0;}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x3efb3d=>{if(_0xd23f('0x3f')==_0x3efb3d[_0xd23f('0x63')]||_0xd23f('0x21')==_0x3efb3d['type']){const _0x20054f=_0x3efb3d[_0xd23f('0x66')]();if(_0x20054f&&_0x20054f['is'](_0xd23f('0x4f'),_0xd23f('0x15')))return{'type':_0xd23f('0x3f')==_0x3efb3d[_0xd23f('0x63')]?_0xd23f('0x2b'):_0xd23f('0x23'),'element':_0x20054f,'quantity':0x1};}}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x408345=>_0xd23f('0x6c')==_0x408345[_0xd23f('0x63')]&&_0xd23f('0xa')==_0x408345[_0xd23f('0x59')]?{'type':_0xd23f('0x43'),'content':_0xd23f('0x22')}:'formatBlock'==_0x408345[_0xd23f('0x63')]&&_0xd23f('0x51')==_0x408345[_0xd23f('0x59')]?{'type':_0xd23f('0x43'),'content':_0xd23f('0x18')}:void 0x0),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x27a055=>{const {data:_0x2b4545}=_0x27a055;if(_0x2b4545){if(_0xd23f('0x50')==_0x2b4545['commandName']){const _0x45779d=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x38')];return _0x3c33bd(_0xd23f('0x46')===_0x45779d?_0x219b76(_0x451128,'FORMAT_SIDE_IMAGE'):_0x18b236[_0x45779d]||_0x45779d);}if(_0xd23f('0x4d')==_0x2b4545[_0xd23f('0x6e')]){const _0xb4d707=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x5c')];return _0xb4d707?{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,_0xd23f('0x1c'),'\x22'+_0xb4d707+'\x22')}:{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Remove\x20image\x20text\x20alternative*')};}if(_0xd23f('0x2f')==_0x2b4545['commandName']){const _0x33d7e6=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x39')];return _0x33d7e6?{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Set\x20image\x20width:*\x20%0',_0x33d7e6)}:{'type':'format','content':_0x219b76(_0x451128,_0xd23f('0x6f'))};}}function _0x3c33bd(_0x40ee65){return{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Format:*\x20%0',_0x40ee65)};}});}}
|
|
23
|
+
const _0x4161=['convertBlockImageToInline','*Set\x20image\x20width:*\x20%0','ImageInlineEditing','element','commandName','formatInline','model','side','getSuggestions','removeObject','hasSuggestion','isEqual','findIndex','imageBlock','nodeAfter','suggestion','shouldConvertImageType','*Format:*\x20%0','commandReversedParams','isOwn','Block\x20image\x20to\x20inline\x20image','convertInlineImageToBlock','_findSuggestions','_descriptionFactory','registerCustomCallback','end','imageStylePostApply','previous','newValue','name','plugins','has','getSuggestionCallback','getFirstRange','type','imageTypeInline','ImageEditing','TrackChangesEditing','_splitMarkerName','value','insertImage','markBlockFormat','nodeBefore','commandParams','toNext','imageCaption','ELEMENT_INLINE_IMAGE','getNearestSelectionRange','find','accept','start','chain','subType','schema','getCaptionFromImageModelElement','resizeImage','alt','refresh','newRange','backward','next','enableCommand','discard','document','formatBlock','ELEMENT_IMAGE','_suggestionFactory','createRangeOn','markInsertion','isBefore','join','ImageTextAlternativeEditing','forEach','filter','author','ELEMENT_CAPTION','isInContent','editor','get','selection','ImageCaptionUtils','isCollapsed','afterInit','imageStyle','length','registerElementLabel','*Set\x20image\x20text\x20alternative:*\x20%0','discardSuggestion','title','FORMAT_SIDE_IMAGE','imageStylePreApply','hasAttribute','uploadImage','createRange','getAttribute','getContainedElement','getSuggestion','isInlineImage','ImageStyleEditing','commands','ImageBlockEditing','getChangedMarkers','imageTextAlternative','getClosestSelectedImageElement','forward','ImageUtils','registerDescriptionCallback','change','caption','insertion','head','isIntersecting','ImageUploadEditing','format','normalizedStyles','width','isBlockImage'];(function(_0x161bc4,_0x416113){const _0x25547a=function(_0x578199){while(--_0x578199){_0x161bc4['push'](_0x161bc4['shift']());}};_0x25547a(++_0x416113);}(_0x4161,0xc0));const _0x2554=function(_0x161bc4,_0x416113){_0x161bc4=_0x161bc4-0x0;let _0x25547a=_0x4161[_0x161bc4];return _0x25547a;};import{Plugin as _0x167ba9}from'ckeditor5/src/core';import{LivePosition as _0x1174ea}from'ckeditor5/src/engine';import{uid as _0x471a56}from'ckeditor5/src/utils';import{getTranslation as _0x40c7fb}from'../utils/common-translations';export default class X extends _0x167ba9{[_0x2554('0x7')](){const _0x322b02=this[_0x2554('0x2')];if(!_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x4e')))return;const _0x3ee166=_0x322b02['plugins'][_0x2554('0x3')](_0x2554('0x4f')),_0x5b4b0e=_0x322b02[_0x2554('0x48')][_0x2554('0x3')](_0x2554('0x1e')),_0x3f4e23={},_0x370200=_0x322b02['locale'];if(_0x3ee166[_0x2554('0x67')](_0x2554('0x52')),_0x3ee166['_descriptionFactory'][_0x2554('0xa')](_0x2554('0x37'),_0x401ea0=>_0x40c7fb(_0x370200,_0x2554('0x6b'),_0x401ea0)),_0x3ee166[_0x2554('0x41')][_0x2554('0xa')]('imageInline',_0x9fbf05=>_0x40c7fb(_0x370200,_0x2554('0x58'),_0x9fbf05)),_0x3ee166[_0x2554('0x41')][_0x2554('0xa')](_0x2554('0x21'),()=>_0x40c7fb(_0x370200,_0x2554('0x0'))),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x25'))&&_0x3ee166[_0x2554('0x67')](_0x2554('0x11')),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x19'))&&_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x2c'))&&(_0x3ee166[_0x2554('0x67')](_0x2554('0x4d'),(_0x179aff,_0x5602bc)=>{const _0x3b4b77=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]);_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x3b4b77,{'commandName':_0x2554('0x4d'),'commandParams':[_0x5602bc]},[],_0x2554('0x2a'));});}),_0x3ee166['enableCommand']('imageTypeBlock',(_0x2b2779,_0x3258d9)=>{_0x322b02['model'][_0x2554('0x20')](_0x2024dd=>{let _0x43b73c=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]),_0x2fb2a6=_0x2024dd['createRangeOn'](_0x43b73c);const _0x1f7122=_0x1174ea['fromPosition'](_0x2fb2a6[_0x2554('0x5c')],'toPrevious'),_0x97da0=_0x1174ea['fromPosition'](_0x2fb2a6[_0x2554('0x43')],_0x2554('0x56'));_0x3ee166['forceDefaultExecution'](()=>_0x2b2779(_0x3258d9)),_0x43b73c=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x2fb2a6=_0x2024dd[_0x2554('0x6d')](_0x43b73c);const _0x5f3c09=_0x2024dd['createRange'](_0x1f7122,_0x97da0);_0x1f7122['detach'](),_0x97da0['detach'](),_0x3ee166['markBlockFormat'](_0x43b73c,{'commandName':_0x2554('0x4d'),'commandParams':[]},[],_0x2554('0x3f')),_0x5f3c09[_0x2554('0x5c')]['isBefore'](_0x2fb2a6[_0x2554('0x5c')])&&_0x3ee166[_0x2554('0x6e')](_0x2024dd[_0x2554('0x12')](_0x5f3c09['start'],_0x2fb2a6[_0x2554('0x5c')]),_0x2554('0x3f')),_0x2fb2a6['end'][_0x2554('0x6f')](_0x5f3c09[_0x2554('0x43')])&&_0x3ee166[_0x2554('0x6e')](_0x2024dd[_0x2554('0x12')](_0x2fb2a6['end'],_0x5f3c09['end']),_0x2554('0x3f'));});}),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback']('formatBlock',_0x2554('0x3f'),_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),'accept',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),_0x2554('0x68'),_0x3ee166[_0x2554('0x6c')]['getSuggestionCallback']('formatBlock','',_0x2554('0x5b'))),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback'](_0x2554('0x22'),_0x2554('0x3f'),'join',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x22'),_0x2554('0x3f'),_0x2554('0x68'),([_0x4f367b])=>{const _0x2b15d2=_0x3ee166[_0x2554('0x6c')][_0x2554('0x4a')](_0x2554('0x22'),'',_0x2554('0x68'));let _0x44a44f=_0x4f367b[_0x2554('0x5c')],_0x44062a=_0x4f367b[_0x2554('0x43')];const _0x1efefe=_0x322b02[_0x2554('0x30')][_0x2554('0x5f')][_0x2554('0x59')](_0x44a44f,_0x2554('0x65')),_0x150897=_0x322b02[_0x2554('0x30')][_0x2554('0x5f')][_0x2554('0x59')](_0x44062a,_0x2554('0x1d'));_0x1efefe[_0x2554('0x6')]&&(_0x44a44f=_0x1efefe[_0x2554('0x5c')]),_0x150897['isCollapsed']&&(_0x44062a=_0x150897[_0x2554('0x43')]),_0x2b15d2([_0x322b02[_0x2554('0x30')][_0x2554('0x12')](_0x44a44f,_0x44062a)]);}),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),_0x2554('0x5d'),_0x1e8562),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')]('insertion',_0x2554('0x3f'),_0x2554('0x5d'),_0x1e8562)),_0x322b02[_0x2554('0x48')][_0x2554('0x49')]('ImageCaptionEditing')&&(_0x3ee166[_0x2554('0x67')]('toggleImageCaption',(_0x3aef66,_0x55ce75)=>{const _0x3f8412=_0x322b02['plugins'][_0x2554('0x3')](_0x2554('0x5'));let _0x227541=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')][_0x2554('0x69')]['selection']),_0x1f7e71=_0x3f8412[_0x2554('0x60')](_0x227541);_0x322b02['model'][_0x2554('0x20')](()=>{if(_0x1f7e71)return void _0x3ee166['markDeletion'](_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x1f7e71));const _0x31adbe=_0x5b4b0e[_0x2554('0x29')](_0x227541);_0x3aef66(_0x55ce75),_0x227541=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document']['selection']),_0x1f7e71=_0x3f8412[_0x2554('0x60')](_0x227541),_0x3ee166[_0x2554('0x6e')](_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x1f7e71),_0x31adbe?null:_0x2554('0x57'));});}),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback'](_0x2554('0x22'),_0x2554('0x57'),_0x2554('0x5d'),_0x1e8562)),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x17'))){_0x3ee166['enableCommand'](_0x2554('0x8'),(_0x10d6ef,_0xc549e)=>{const _0x17255f=_0x322b02['plugins'][_0x2554('0x3')]('Users')['me'],_0x264324=_0x322b02[_0x2554('0x18')][_0x2554('0x3')](_0x2554('0x8'));let _0x34e918=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x258f3b=_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x34e918),_0x41756=_0x264324['value'];if(_0x41756==_0xc549e[_0x2554('0x51')])return;const _0x451b18={'commandName':_0x2554('0x8'),'commandParams':[_0xc549e],'formatGroupId':_0x471a56()};_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{if(_0x3ee166[_0x2554('0x32')]()[_0x2554('0x73')](_0x4bd5bd=>_0x4bd5bd[_0x2554('0x1')]&&_0x17255f==_0x4bd5bd[_0x2554('0x74')]&&(_0x2554('0x6a')==_0x4bd5bd[_0x2554('0x4c')]||_0x2554('0x2f')==_0x4bd5bd['type'])&&('imageStylePreApply'==_0x4bd5bd[_0x2554('0x5e')]||_0x2554('0x44')==_0x4bd5bd['subType'])&&_0x4bd5bd['getFirstRange']()[_0x2554('0x35')](_0x258f3b))[_0x2554('0x72')](_0x4b55a1=>_0x3ee166[_0x2554('0xc')](_0x4b55a1[_0x2554('0x23')])),_0x34e918=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x258f3b=_0x322b02[_0x2554('0x30')]['createRangeOn'](_0x34e918),_0x264324[_0x2554('0x63')](),_0x322b02[_0x2554('0x18')][_0x2554('0x3')](_0x2554('0x4d'))['refresh'](),_0x322b02['commands'][_0x2554('0x3')]('imageTypeBlock')[_0x2554('0x63')](),_0x41756=_0x264324[_0x2554('0x51')],_0x41756!=_0xc549e[_0x2554('0x51')])return _0x5b4b0e[_0x2554('0x16')](_0x34e918)&&_0x264324[_0x2554('0x3a')](_0xc549e[_0x2554('0x51')],_0x34e918)?(_0x10d6ef(_0xc549e),_0x34e918=_0x5b4b0e[_0x2554('0x1c')](_0x322b02['model'][_0x2554('0x69')][_0x2554('0x4')]),void _0x3ee166['markBlockFormat'](_0x34e918,{..._0x451b18,'commandReversedParams':[{'value':_0x41756||null}]},[],_0x2554('0xf'))):void(_0x5b4b0e[_0x2554('0x29')](_0x34e918)?_0x3ee166[_0x2554('0x53')](_0x34e918,_0x451b18,[],_0x2554('0x44')):_0x3ee166['markInlineFormat'](_0x258f3b,_0x451b18,_0x2554('0x44')));});});for(const _0xf101de of _0x322b02[_0x2554('0x48')]['get']('ImageStyleEditing')[_0x2554('0x27')])_0x3f4e23[_0xf101de[_0x2554('0x47')]]=_0xf101de[_0x2554('0xd')]['toLowerCase']();_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),'imageStylePreApply',_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x44'),'join',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x2f'),_0x2554('0x44'),_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0xf'),_0x2554('0x5b'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')]('formatBlock',_0x2554('0xf'),_0x2554('0x68'),(_0x191f64,_0x260a41)=>{_0x3ee166[_0x2554('0x6c')][_0x2554('0x4a')](_0x2554('0x6a'),'',_0x2554('0x5b'))(_0x191f64,{'commandName':_0x260a41[_0x2554('0x2e')],'commandParams':_0x260a41[_0x2554('0x3c')]});}),_0x3ee166['_suggestionFactory'][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0xf'),_0x2554('0x5d'),_0x1e8562);}const _0x355a4d=[{'type':'formatBlock','subType':_0x2554('0xf')},{'type':_0x2554('0x22'),'subType':_0x2554('0x57')},{'type':_0x2554('0x6a'),'subType':_0x2554('0x3f')},{'type':_0x2554('0x22'),'subType':'convertInlineImageToBlock'}];function _0x42f9e5(_0x3d9765,_0x2f612b){const _0x3ca2ed=_0x355a4d[_0x2554('0x36')](({type:_0x1db37c,subType:_0x8dd270})=>_0x3d9765[_0x2554('0x4c')]==_0x1db37c&&_0x3d9765[_0x2554('0x5e')]==_0x8dd270),_0x1f9096=_0x355a4d['findIndex'](({type:_0x57e5ab,subType:_0x232ac3})=>_0x2f612b[_0x2554('0x4c')]==_0x57e5ab&&_0x2f612b[_0x2554('0x5e')]==_0x232ac3);if(_0x3ca2ed<0x0||_0x1f9096<0x0)return!0x1;const _0x1457c2=_0x3d9765[_0x2554('0x4b')](),_0xa3a313=_0x2f612b[_0x2554('0x4b')]();if((0x0==_0x3ca2ed||0x1==_0x3ca2ed)&&0x2==_0x1f9096&&_0x1457c2[_0x2554('0x24')](_0xa3a313))return!0x0;if(0x2==_0x3ca2ed&&0x3==_0x1f9096){const _0x5b8495=_0x3ee166[_0x2554('0x40')](_0x1457c2,'insertion')[_0x2554('0x73')](({suggestion:_0x19aae5,meta:_0x2d3c2c})=>_0x2d3c2c[_0x2554('0x3d')]&&_0x2554('0x3f')==_0x19aae5['subType']);if(_0x5b8495[_0x2554('0x9')]>0x1&&_0xa3a313[_0x2554('0x43')]['isEqual'](_0x1457c2[_0x2554('0x5c')]))return!0x0;if(0x1==_0x5b8495[_0x2554('0x9')]&&(_0x1457c2[_0x2554('0x5c')][_0x2554('0x35')](_0xa3a313[_0x2554('0x43')])||_0x1457c2[_0x2554('0x43')][_0x2554('0x35')](_0xa3a313[_0x2554('0x5c')])))return!0x0;}if(0x3==_0x3ca2ed&&0x3==_0x1f9096&&_0x1457c2[_0x2554('0x5c')]['isBefore'](_0xa3a313[_0x2554('0x5c')])){const _0x42fe2e=_0x1457c2['end'][_0x2554('0x38')],_0x1f3e03=_0xa3a313[_0x2554('0x5c')][_0x2554('0x54')];return _0x5b4b0e[_0x2554('0x29')](_0x42fe2e)&&_0x42fe2e===_0x1f3e03;}return!0x1;}function _0x1e8562(_0x1cbc32,_0x5e3cae){return _0x42f9e5(_0x1cbc32,_0x5e3cae)?[_0x1cbc32,_0x5e3cae]:_0x42f9e5(_0x5e3cae,_0x1cbc32)?[_0x5e3cae,_0x1cbc32]:null;}_0x322b02['model'][_0x2554('0x69')]['registerPostFixer'](()=>{let _0x89ed9f=!0x1;const _0x2cf41c=Array['from'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')]['differ'][_0x2554('0x1a')]());for(const {name:_0x450ca5,data:_0x219fef}of _0x2cf41c){const {group:_0x19bb01,type:_0x5179b1,subType:_0x485c02,id:_0x50c5db}=_0x3ee166[_0x2554('0x50')](_0x450ca5);if(_0x2554('0x39')==_0x19bb01&&_0x3ee166[_0x2554('0x34')](_0x50c5db)){if(_0x2554('0x6a')==_0x5179b1&&(_0x2554('0xf')==_0x485c02||_0x2554('0x44')==_0x485c02)){const _0x3e2fc1=_0x3ee166[_0x2554('0x15')](_0x50c5db);if(_0x219fef[_0x2554('0x64')]){const _0x1e2016=_0x3e2fc1[_0x2554('0x4b')]()[_0x2554('0x14')]();if(_0x5b4b0e[_0x2554('0x29')](_0x1e2016))continue;_0x3ee166[_0x2554('0xc')](_0x3e2fc1),_0x89ed9f=!0x0;}}if(_0x2554('0x22')==_0x5179b1&&_0x2554('0x57')==_0x485c02&&!_0x219fef[_0x2554('0x64')]){const _0x5e806d=_0x3ee166[_0x2554('0x15')](_0x50c5db);_0x5e806d[_0x2554('0x66')]&&_0x5e806d[_0x2554('0x66')][_0x2554('0x1')]&&(_0x3ee166['discardSuggestion'](_0x5e806d['next']),_0x89ed9f=!0x0);}}}return _0x89ed9f;}),_0x322b02[_0x2554('0x48')][_0x2554('0x49')]('ImageResize')&&_0x3ee166[_0x2554('0x67')](_0x2554('0x61'),(_0x330722,_0x56ddbe)=>{const _0x152152=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]);_0x152152[_0x2554('0x13')]('width')!=_0x56ddbe['width']&&_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x152152,{'commandName':_0x2554('0x61'),'commandParams':[_0x56ddbe]});});}),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x71'))&&_0x3ee166['enableCommand'](_0x2554('0x1b'),(_0x44a0d7,_0x4d8e2d)=>{const _0x5183f0=_0x5b4b0e[_0x2554('0x1c')](_0x322b02['model'][_0x2554('0x69')][_0x2554('0x4')]);(_0x5183f0[_0x2554('0x10')](_0x2554('0x62'))?_0x5183f0[_0x2554('0x13')](_0x2554('0x62')):'')!=_0x4d8e2d[_0x2554('0x46')]&&_0x322b02['model'][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x5183f0,{'commandName':_0x2554('0x1b'),'commandParams':[_0x4d8e2d]});});}),_0x3ee166['_descriptionFactory']['registerDescriptionCallback'](_0x41cc61=>{if(!!_0x355a4d[_0x2554('0x5a')](({type:_0x2fdca3,subType:_0xb56d57})=>_0x41cc61['type']==_0x2fdca3&&_0x41cc61[_0x2554('0x5e')]==_0xb56d57))return _0x41cc61[_0x2554('0x45')]?{}:void 0x0;}),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0xb4e06=>{if(_0x2554('0x22')==_0xb4e06[_0x2554('0x4c')]||'deletion'==_0xb4e06[_0x2554('0x4c')]){const _0x599ff9=_0xb4e06['getContainedElement']();if(_0x599ff9&&_0x599ff9['is'](_0x2554('0x2d'),'caption'))return{'type':_0x2554('0x22')==_0xb4e06[_0x2554('0x4c')]?'addObject':_0x2554('0x33'),'element':_0x599ff9,'quantity':0x1};}}),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0x5472e2=>_0x2554('0x6a')==_0x5472e2[_0x2554('0x4c')]&&'convertInlineImageToBlock'==_0x5472e2[_0x2554('0x5e')]?{'type':_0x2554('0x26'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x2554('0x6a')==_0x5472e2[_0x2554('0x4c')]&&_0x2554('0x2a')==_0x5472e2[_0x2554('0x5e')]?{'type':_0x2554('0x26'),'content':_0x2554('0x3e')}:void 0x0),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0x9960de=>{const {data:_0x3306b9}=_0x9960de;if(_0x3306b9){if(_0x2554('0x8')==_0x3306b9[_0x2554('0x2e')]){const _0x10f3e8=_0x3306b9[_0x2554('0x55')][0x0][_0x2554('0x51')];return _0x117364(_0x2554('0x31')===_0x10f3e8?_0x40c7fb(_0x370200,_0x2554('0xe')):_0x3f4e23[_0x10f3e8]||_0x10f3e8);}if(_0x2554('0x1b')==_0x3306b9[_0x2554('0x2e')]){const _0x118e05=_0x3306b9[_0x2554('0x55')][0x0][_0x2554('0x46')];return _0x118e05?{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0xb'),'\x22'+_0x118e05+'\x22')}:{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2554('0x61')==_0x3306b9[_0x2554('0x2e')]){const _0x1d17fd=_0x3306b9['commandParams'][0x0][_0x2554('0x28')];return _0x1d17fd?{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0x2b'),_0x1d17fd)}:{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,'*Reset\x20image\x20width*')};}}function _0x117364(_0x497500){return{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0x3b'),_0x497500)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4292=['selection','afterInit','discard','_suggestionFactory','source','commandName','handleSuggestionDescription','locale','registerCustomCallback','accept','_descriptionFactory','getAttribute','getSuggestionCallback','has','model','getSelectedElement','author','enableCommand','replaceImageSource','ImageEditing','*Format:*\x20replace\x20image\x20URL','editor','change','getContainedElement','registerDescriptionCallback','get','formatBlock','getSuggestions','plugins','handleReplaceImageCommand'];(function(_0x39d68d,_0x4292be){const _0x3ded0a=function(_0x968c8e){while(--_0x968c8e){_0x39d68d['push'](_0x39d68d['shift']());}};_0x3ded0a(++_0x4292be);}(_0x4292,0x157));const _0x3ded=function(_0x39d68d,_0x4292be){_0x39d68d=_0x39d68d-0x0;let _0x3ded0a=_0x4292[_0x39d68d];return _0x3ded0a;};import{Plugin as _0x4ba061}from'ckeditor5/src/core';import{getTranslation as _0x3e4cc0}from'../utils/common-translations';export default class Y extends _0x4ba061{[_0x3ded('0x12')](){if(!this[_0x3ded('0x8')]['plugins'][_0x3ded('0x0')](_0x3ded('0x6')))return;const _0x2af91d=this[_0x3ded('0x8')][_0x3ded('0xf')][_0x3ded('0xc')]('TrackChangesEditing');_0x2af91d[_0x3ded('0x4')]('replaceImageSource',(_0x5118d8,_0x6c082d)=>this[_0x3ded('0x10')](_0x5118d8,_0x6c082d)),_0x2af91d[_0x3ded('0x14')][_0x3ded('0x19')]('formatBlock','replaceImageSource',_0x3ded('0x1a'),_0x2af91d[_0x3ded('0x14')]['getSuggestionCallback'](_0x3ded('0xd'),null,_0x3ded('0x13'))),_0x2af91d[_0x3ded('0x14')][_0x3ded('0x19')](_0x3ded('0xd'),_0x3ded('0x5'),_0x3ded('0x13'),_0x2af91d[_0x3ded('0x14')][_0x3ded('0x1d')](_0x3ded('0xd'),null,'accept')),_0x2af91d[_0x3ded('0x1b')][_0x3ded('0xb')](_0x52ca74=>this[_0x3ded('0x17')](_0x52ca74));}[_0x3ded('0x10')](_0x39d318,_0x597075){const _0x3b44bd=this[_0x3ded('0x8')][_0x3ded('0xf')][_0x3ded('0xc')]('TrackChangesEditing'),_0x1d058f=this['editor'][_0x3ded('0x1')]['document'][_0x3ded('0x11')][_0x3ded('0x2')]();this[_0x3ded('0x8')][_0x3ded('0x1')][_0x3ded('0x9')](()=>{let _0x532497=_0x1d058f[_0x3ded('0x1c')]('src');const _0x242822=this[_0x3ded('0x8')][_0x3ded('0xf')]['get']('Users')['me'];for(const _0x570807 of _0x3b44bd[_0x3ded('0xe')]({'skipNotAttached':!0x0})){const _0x33a754=_0x570807[_0x3ded('0xa')]();if(_0x3ded('0x5')===_0x570807['subType']&&_0x33a754===_0x1d058f){_0x570807[_0x3ded('0x3')]!==_0x242822&&_0x570807[_0x3ded('0x13')](),_0x532497=_0x570807['data']['commandParams'][0x0][_0x3ded('0x15')];break;}}_0x39d318(_0x597075),_0x3b44bd['markBlockFormat'](_0x1d058f,{'commandName':'replaceImageSource','commandParams':[{'source':_0x532497}]},[],'replaceImageSource');});}[_0x3ded('0x17')](_0x1d8067){const {data:_0x3587d8}=_0x1d8067;if(_0x3587d8&&'replaceImageSource'===_0x3587d8[_0x3ded('0x16')]){const _0x16a95e=_0x3ded('0x7');return{'type':'format','content':_0x3e4cc0(this[_0x3ded('0x8')][_0x3ded('0x18')],_0x16a95e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ec=['Users','trackChanges','listenTo','enableCommand','afterInit','value','plugins','forEach','importWord','bind','commands','high','_handleImportedData','lowest','get','track_changes','_trackChangesValueDuringImport','TrackChangesEditing','_trackChangesExecuted','dataInsert','execute','editor','_setSuggestionData'];(function(_0x218ecf,_0x16ec6f){const _0x35b5cd=function(_0x313a7e){while(--_0x313a7e){_0x218ecf['push'](_0x218ecf['shift']());}};_0x35b5cd(++_0x16ec6f);}(_0x16ec,0xf1));const _0x35b5=function(_0x218ecf,_0x16ec6f){_0x218ecf=_0x218ecf-0x0;let _0x35b5cd=_0x16ec[_0x218ecf];return _0x35b5cd;};import{Plugin as _0x58a281}from'ckeditor5/src/core';export default class Z extends _0x58a281{constructor(_0x575dce){super(_0x575dce),this['_trackChangesValueDuringImport']=!0x1,this[_0x35b5('0x7')]=!0x1;}[_0x35b5('0x10')](){const _0x57eb3b=this[_0x35b5('0xa')],_0x4824f2=_0x57eb3b[_0x35b5('0x16')][_0x35b5('0x3')](_0x35b5('0x14')),_0x465fbc=_0x57eb3b[_0x35b5('0x16')][_0x35b5('0x3')](_0x35b5('0xd'));_0x4824f2&&(_0x4824f2['on'](_0x35b5('0x9'),(_0x2f2703,[,_0x4c60da])=>{this[_0x35b5('0x5')]=_0x465fbc[_0x35b5('0x11')],_0x4c60da['collaboration_features'][_0x35b5('0x4')]=!this[_0x35b5('0x5')];},{'priority':_0x35b5('0x0')}),this[_0x35b5('0xe')](_0x4824f2,_0x35b5('0x8'),this[_0x35b5('0x1')][_0x35b5('0x15')](this)),this['listenTo'](_0x4824f2,_0x35b5('0x8'),()=>{this[_0x35b5('0x7')]&&(_0x465fbc[_0x35b5('0x9')](),this[_0x35b5('0x7')]=!0x1);},{'priority':_0x35b5('0x2')}),_0x57eb3b['plugins'][_0x35b5('0x3')](_0x35b5('0x6'))[_0x35b5('0xf')](_0x35b5('0x14')));}['_handleImportedData'](_0x522538,_0x263d62){const {suggestions:_0x311e44}=_0x263d62,_0x39ee17=this[_0x35b5('0xa')][_0x35b5('0x16')]['get'](_0x35b5('0xd')),_0x3d3938=_0x39ee17[_0x35b5('0x11')];this[_0x35b5('0x5')]!==_0x3d3938&&(_0x39ee17['execute'](),this[_0x35b5('0x7')]=!0x0),_0x311e44&&_0x311e44[_0x35b5('0x13')](({id:_0x178f42,type:_0x46c7b0,author:_0x224383,created_at:_0x4b738f})=>{const _0x372157={'id':_0x178f42,'type':_0x46c7b0,'authorId':this[_0x35b5('0xa')][_0x35b5('0x12')][_0x35b5('0x3')](_0x35b5('0xc'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x224383,'createdAt':_0x4b738f?new Date(_0x4b738f):new Date(),'source':'importWord'}}};this[_0x35b5('0xa')][_0x35b5('0x12')][_0x35b5('0x3')](_0x35b5('0x6'))[_0x35b5('0xb')](_0x372157);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12a3=['*Outdent:*\x20%0','model','indentBlock','get','plugins','outdent','locale','from','has','*Indent:*\x20%0','markBlockFormat','enableCommand','indent','_descriptionFactory','TrackChangesEditing','afterInit','getItemLabel','document','getSelectedBlocks','outdentBlock','commandName','editor','checkAttribute','schema','format','IndentEditing'];(function(_0x77baf8,_0x12a335){const _0x5209d9=function(_0x15062f){while(--_0x15062f){_0x77baf8['push'](_0x77baf8['shift']());}};_0x5209d9(++_0x12a335);}(_0x12a3,0x83));const _0x5209=function(_0x77baf8,_0x12a335){_0x77baf8=_0x77baf8-0x0;let _0x5209d9=_0x12a3[_0x77baf8];return _0x5209d9;};import{Plugin as _0x239bae}from'ckeditor5/src/core';import{getTranslation as _0x3260d9}from'../utils/common-translations';export default class tt extends _0x239bae{[_0x5209('0xe')](){const _0x32123c=this[_0x5209('0x14')],_0x81eaab=_0x32123c[_0x5209('0x3')][_0x5209('0x2')](_0x5209('0xd'));_0x32123c[_0x5209('0x3')]['has'](_0x5209('0x18'))&&(_0x81eaab[_0x5209('0xa')](_0x5209('0xb')),_0x81eaab[_0x5209('0xa')](_0x5209('0x4')));const _0x27f59c=_0x32123c[_0x5209('0x5')];if(_0x32123c['plugins'][_0x5209('0x7')]('IndentBlock')){for(const _0x36d267 of[_0x5209('0x1'),_0x5209('0x12')])_0x81eaab[_0x5209('0xa')](_0x36d267,()=>{const _0x56d437=Array[_0x5209('0x6')](this['editor'][_0x5209('0x0')][_0x5209('0x10')]['selection'][_0x5209('0x11')]())['filter'](_0x40bfe3=>this['editor'][_0x5209('0x0')][_0x5209('0x16')][_0x5209('0x15')](_0x40bfe3,'blockIndent'));_0x32123c[_0x5209('0x0')]['change'](()=>{for(const _0x4b96ab of _0x56d437)_0x81eaab[_0x5209('0x9')](_0x4b96ab,{'commandName':_0x36d267,'commandParams':[{'value':''}],'formatGroupId':_0x5209('0x1')});});});_0x81eaab[_0x5209('0xc')]['registerDescriptionCallback'](_0x2d99c6=>{const {data:_0x21bab8}=_0x2d99c6;if(!_0x21bab8)return;if(_0x5209('0x1')!=_0x21bab8[_0x5209('0x13')]&&_0x5209('0x12')!=_0x21bab8['commandName'])return;const _0x1daf90=_0x2d99c6['getItems']()[0x0],_0x2e023e=_0x81eaab['_descriptionFactory'][_0x5209('0xf')](_0x1daf90);return'indentBlock'==_0x21bab8[_0x5209('0x13')]?{'type':_0x5209('0x17'),'content':_0x3260d9(_0x27f59c,_0x5209('0x8'),_0x2e023e)}:_0x5209('0x12')==_0x21bab8[_0x5209('0x13')]?{'type':_0x5209('0x17'),'content':_0x3260d9(_0x27f59c,_0x5209('0x19'),_0x2e023e)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x83f0=['TrackChangesEditing','editor'];(function(_0x2b8dde,_0x83f080){var _0xe73a3f=function(_0x4878e6){while(--_0x4878e6){_0x2b8dde['push'](_0x2b8dde['shift']());}};_0xe73a3f(++_0x83f080);}(_0x83f0,0x11b));var _0xe73a=function(_0x2b8dde,_0x83f080){_0x2b8dde=_0x2b8dde-0x0;var _0xe73a3f=_0x83f0[_0x2b8dde];return _0xe73a3f;};import{Plugin as _0x3a2aa4}from'ckeditor5/src/core';import{Input as _0x1c4e9b}from'ckeditor5/src/typing';export default class it extends _0x3a2aa4{static get['requires'](){return[_0x1c4e9b];}['init'](){this[_0xe73a('0x0')]['plugins']['get'](_0xe73a('0x1'))['enableCommand']('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e4e=['document','model','linkHref','plugins','unlink','registerDescriptionCallback','format','get','afterInit','*Set\x20link:*\x20%0','change','enableCommand','link','getAttribute','TrackChangesEditing','markInlineFormat','commandName','getFirstPosition','locale','getFirstRange','commandParams','getRanges','*Remove\x20link*','isCollapsed','LinkEditing'];(function(_0x457523,_0x3e4e37){const _0x9824d1=function(_0x58d80d){while(--_0x58d80d){_0x457523['push'](_0x457523['shift']());}};_0x9824d1(++_0x3e4e37);}(_0x3e4e,0x188));const _0x9824=function(_0x457523,_0x3e4e37){_0x457523=_0x457523-0x0;let _0x9824d1=_0x3e4e[_0x457523];return _0x9824d1;};import{Plugin as _0x55c7a4}from'ckeditor5/src/core';import{findAttributeRange as _0x40c888}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x4709bb}from'./utils';import{getTranslation as _0x9197b2}from'../utils/common-translations';export default class et extends _0x55c7a4{[_0x9824('0x10')](){const _0x11b740=this['editor'];if(!_0x11b740[_0x9824('0xb')]['has'](_0x9824('0x7')))return;const _0xdb21b9=_0x11b740[_0x9824('0xb')][_0x9824('0xf')](_0x9824('0x16'));_0xdb21b9[_0x9824('0x13')]('link',(_0x206d04,_0x3e9e64)=>{const _0x4ced8a=_0x11b740[_0x9824('0x9')]['document']['selection'];let _0x185aca=[];if(_0x4ced8a[_0x9824('0x6')]){if(!_0x4ced8a['hasAttribute'](_0x9824('0xa')))return void _0x206d04(_0x3e9e64);{const _0x54ea13=_0x40c888(_0x4ced8a['getFirstPosition'](),_0x9824('0xa'),_0x4ced8a[_0x9824('0x15')](_0x9824('0xa')),_0x11b740['model']);_0x185aca=[_0x54ea13];}}else _0x185aca=Array['from'](_0x4ced8a[_0x9824('0x4')]());_0x11b740['model'][_0x9824('0x12')](()=>{for(const _0x3ce17b of _0x185aca)_0xdb21b9['markInlineFormat'](_0x3ce17b,{'commandName':_0x9824('0x14'),'commandParams':[_0x3e9e64]});});}),_0xdb21b9[_0x9824('0x13')](_0x9824('0xc'),()=>{const _0x3beb01=this['editor'][_0x9824('0x9')],_0x2573b5=_0x3beb01[_0x9824('0x8')]['selection'];_0x3beb01[_0x9824('0x12')](()=>{let _0x9b4270=[];if(_0x2573b5['isCollapsed'])_0x9b4270=[_0x40c888(_0x2573b5[_0x9824('0x0')](),_0x9824('0xa'),_0x2573b5[_0x9824('0x15')](_0x9824('0xa')),_0x11b740['model'])];else _0x9b4270=_0x4709bb(_0x9824('0xa'),_0x2573b5[_0x9824('0x2')](),_0x11b740[_0x9824('0x9')]);for(const _0x2cbf34 of _0x9b4270)_0xdb21b9[_0x9824('0x17')](_0x2cbf34,{'commandName':_0x9824('0xc'),'commandParams':[]});});}),_0xdb21b9['_descriptionFactory'][_0x9824('0xd')](_0x4c6efc=>{const {data:_0xa139ff}=_0x4c6efc,_0xb230a2=_0x11b740[_0x9824('0x1')];if(_0xa139ff){if(_0x9824('0x14')==_0xa139ff[_0x9824('0x18')]){const _0x10e796=_0xa139ff[_0x9824('0x3')][0x0];return{'type':_0x9824('0xe'),'content':_0x9197b2(_0xb230a2,_0x9824('0x11'),'\x22'+_0x10e796+'\x22')};}return'unlink'==_0xa139ff[_0x9824('0x18')]?{'type':_0x9824('0xe'),'content':_0x9197b2(_0xb230a2,_0x9824('0x5'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e0d=['change','checkTodoList','_selectedElements','before','slice','*Change\x20to:*\x20%0','add','listIndent','has','plugins','schema','todoList','from','todo','commandName','*Indent:*\x20%0','blockName','model','registerDescriptionCallback','isObject','List','listType','format','value','nextSibling','commandParams','getSelectedBlocks','markBlockFormat','registerElementLabel','ELEMENT_TODO_LIST','*Uncheck\x20item*','forceValue','get','outdentList','numberedList','locale','*Check\x20item*','commands','TodoListEditing','ELEMENT_LIST_ITEM','element','selection','name','afterInit','enableCommand','_descriptionFactory','replace','getAttribute','previousSibling','checkChild','bulletedList','document','todoListChecked','filter','listItem','indentList','createPositionAt'];(function(_0x3a6ea7,_0x1e0d02){const _0x4c28a6=function(_0x3cc26f){while(--_0x3cc26f){_0x3a6ea7['push'](_0x3a6ea7['shift']());}};_0x4c28a6(++_0x1e0d02);}(_0x1e0d,0x159));const _0x4c28=function(_0x3a6ea7,_0x1e0d02){_0x3a6ea7=_0x3a6ea7-0x0;let _0x4c28a6=_0x1e0d[_0x3a6ea7];return _0x4c28a6;};import{Plugin as _0x162dae}from'ckeditor5/src/core';import{getTranslation as _0x177cae}from'../utils/common-translations';export default class nt extends _0x162dae{[_0x4c28('0x28')](){const _0x4d39b9=this['editor'],_0x5b9b40=_0x4d39b9[_0x4c28('0x20')];if(!_0x4d39b9[_0x4c28('0x6')][_0x4c28('0x5')]('ListEditing'))return;const _0xa1f7aa=_0x4d39b9[_0x4c28('0x6')][_0x4c28('0x1d')]('TrackChangesEditing'),_0x293004=_0x4d39b9[_0x4c28('0x6')][_0x4c28('0x5')](_0x4c28('0x23'));function _0x5496d1(_0x46d9da){return()=>{const _0x28553a=_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x30')][_0x4c28('0x26')],_0x4f99da=_0x4d39b9[_0x4c28('0x22')][_0x4c28('0x1d')](_0x46d9da);if(_0x4f99da['value'])return void _0x4d39b9['execute']('paragraph',{});const _0x1885ec=_0x46d9da[_0x4c28('0x1')](0x0,-0x4),_0x1f531c=function(_0x266977,_0x1112fd,_0xdb9d32){let _0x4e914e=Array[_0x4c28('0x9')](_0x266977)[_0x4c28('0x32')](_0x5bcba6=>function(_0x25689a,_0x5c8422){return _0x5c8422[_0x4c28('0x2e')](_0x25689a['parent'],_0x4c28('0x33'))&&!_0x5c8422[_0x4c28('0x10')](_0x25689a);}(_0x5bcba6,_0xdb9d32));_0x4e914e=_0x4e914e[_0x4c28('0x32')](_0xde1adb=>!_0xde1adb['is']('element',_0x4c28('0x33'))||_0xde1adb['getAttribute'](_0x4c28('0x12'))!=_0x1112fd);const _0x13ef97=new Set();for(const _0x54186c of _0x4e914e)_0x54186c['is'](_0x4c28('0x25'),_0x4c28('0x33'))?_0x13ef97[_0x4c28('0x3')](ne(_0x54186c)):_0x13ef97[_0x4c28('0x3')](_0x54186c);return Array[_0x4c28('0x9')](_0x13ef97);}(_0x28553a['getSelectedBlocks'](),_0x1885ec,_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x7')]);_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x36')](()=>{for(const _0x3c1697 of _0x1f531c)_0xa1f7aa[_0x4c28('0x18')](_0x3c1697,{'commandName':_0x46d9da,'commandParams':[{'forceValue':!_0x4f99da['value']}],'formatGroupId':_0x4c28('0xd')},oe(_0x3c1697));});};}function _0x460d69(_0x4d974a){return()=>{const _0x169f86=function(_0x48d42a){let _0x49c673=Array[_0x4c28('0x9')](_0x48d42a);const _0x191767=_0x49c673['findIndex'](_0x5a0e9e=>_0x4c28('0x33')!=_0x5a0e9e[_0x4c28('0x27')]);return _0x191767>-0x1&&(_0x49c673=_0x49c673[_0x4c28('0x1')](0x0,_0x191767)),_0x49c673;}(_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x30')][_0x4c28('0x26')][_0x4c28('0x17')]()),_0x811767=_0x4d39b9[_0x4c28('0xe')]['createRange'](_0x4d39b9[_0x4c28('0xe')]['createPositionAt'](_0x169f86[0x0],_0x4c28('0x0')),_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x35')](_0x169f86[_0x169f86['length']-0x1],'end'));_0x4d39b9['model'][_0x4c28('0x36')](()=>{_0xa1f7aa[_0x4c28('0x18')](_0x811767,{'commandName':_0x4d974a,'commandParams':[],'formatGroupId':_0x4c28('0x4')},function(_0x625a69){const _0x35de73=new Set();for(const _0x42bb09 of _0x625a69){let _0x1e25a7=_0x42bb09[_0x4c28('0x15')];for(;_0x1e25a7&&_0x1e25a7[_0x4c28('0x2c')](_0x4c28('0x4'))>_0x42bb09[_0x4c28('0x2c')](_0x4c28('0x4'));)_0x35de73[_0x4c28('0x3')](_0x1e25a7),_0x1e25a7=_0x1e25a7[_0x4c28('0x15')];}return Array[_0x4c28('0x9')](_0x35de73);}(_0x169f86));});};}_0xa1f7aa[_0x4c28('0x29')](_0x4c28('0x1f'),_0x5496d1(_0x4c28('0x1f'))),_0xa1f7aa[_0x4c28('0x29')](_0x4c28('0x2f'),_0x5496d1(_0x4c28('0x2f'))),_0x293004&&_0xa1f7aa[_0x4c28('0x29')](_0x4c28('0x8'),_0x5496d1(_0x4c28('0x8'))),_0xa1f7aa[_0x4c28('0x29')](_0x4c28('0x34'),_0x460d69(_0x4c28('0x34'))),_0xa1f7aa[_0x4c28('0x29')]('outdentList',_0x460d69(_0x4c28('0x1e'))),_0x293004&&_0xa1f7aa[_0x4c28('0x29')]('checkTodoList',()=>{const _0x228ad8=_0x4d39b9[_0x4c28('0x22')][_0x4c28('0x1d')]('checkTodoList'),_0x447e81=Array[_0x4c28('0x9')](_0x228ad8[_0x4c28('0x38')]);_0x447e81['filter'](_0x1ee87d=>_0x1ee87d['getAttribute'](_0x4c28('0x31'))!=_0x228ad8[_0x4c28('0x14')]),_0x4d39b9[_0x4c28('0xe')][_0x4c28('0x36')](()=>{for(const _0x7f1d of _0x447e81)_0xa1f7aa[_0x4c28('0x18')](_0x7f1d,{'commandName':_0x4c28('0x37'),'commandParams':[{'forceValue':!_0x228ad8[_0x4c28('0x14')]}]});});}),_0xa1f7aa['_descriptionFactory'][_0x4c28('0x19')]('listItem',_0x461e8d=>_0x177cae(_0x5b9b40,_0x4c28('0x24'),_0x461e8d)),_0xa1f7aa[_0x4c28('0x2a')][_0x4c28('0xf')](_0x537103=>{const {data:_0x304831}=_0x537103;if(_0x304831){if(_0x4c28('0x1f')==_0x304831['commandName']||_0x4c28('0x2f')==_0x304831[_0x4c28('0xb')]||'todoList'==_0x304831['commandName'])switch(_0x304831[_0x4c28('0xb')][_0x4c28('0x2b')](_0x4c28('0x11'),'')){case'bulleted':return _0x19b62a(_0x177cae(_0x5b9b40,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19b62a(_0x177cae(_0x5b9b40,'ELEMENT_NUMBERED_LIST'));case _0x4c28('0xa'):return _0x19b62a(_0x177cae(_0x5b9b40,_0x4c28('0x1a')));}if(_0x4c28('0x34')==_0x304831[_0x4c28('0xb')])return{'type':_0x4c28('0x13'),'content':_0x177cae(_0x5b9b40,_0x4c28('0xc'),_0x177cae(_0x5b9b40,_0x4c28('0x24')))};if('outdentList'==_0x304831['commandName'])return{'type':_0x4c28('0x13'),'content':_0x177cae(_0x5b9b40,'*Outdent:*\x20%0',_0x177cae(_0x5b9b40,_0x4c28('0x24')))};if(_0x4c28('0x37')==_0x304831[_0x4c28('0xb')])return _0x304831[_0x4c28('0x16')][0x0][_0x4c28('0x1c')]?{'type':'format','content':_0x177cae(_0x5b9b40,_0x4c28('0x21'))}:{'type':_0x4c28('0x13'),'content':_0x177cae(_0x5b9b40,_0x4c28('0x1b'))};}function _0x19b62a(_0x3570e3){return{'type':_0x4c28('0x13'),'content':_0x177cae(_0x5b9b40,_0x4c28('0x2'),_0x3570e3)};}});}}function ne(_0x1b0203){const _0x287fc6=_0x1b0203[_0x4c28('0x2c')]('listIndent');if(0x0==_0x287fc6)return _0x1b0203;let _0x52ee14=_0x1b0203;for(;_0x1b0203[_0x4c28('0x2d')]&&_0x1b0203[_0x4c28('0x2d')]['is'](_0x4c28('0x25'),_0x4c28('0x33'));){const _0x3474df=_0x1b0203['previousSibling'][_0x4c28('0x2c')](_0x4c28('0x4'));if(_0x3474df==_0x287fc6)_0x52ee14=_0x1b0203[_0x4c28('0x2d')];else{if(_0x3474df<_0x287fc6)break;}_0x1b0203=_0x1b0203[_0x4c28('0x2d')];}return _0x52ee14;}function oe(_0x1a4e5d){const _0x445666=[];if(_0x1a4e5d['is'](_0x4c28('0x25'),_0x4c28('0x33'))&&_0x1a4e5d[_0x4c28('0x2c')]('listIndent')>0x0){let _0x454df3=_0x1a4e5d[_0x4c28('0x15')];for(;_0x454df3&&'listItem'==_0x454df3[_0x4c28('0x27')]&&_0x454df3[_0x4c28('0x2c')](_0x4c28('0x4'))==_0x1a4e5d[_0x4c28('0x2c')](_0x4c28('0x4'));)_0x445666['push'](_0x454df3),_0x454df3=_0x454df3[_0x4c28('0x15')];}return _0x445666;}
|