@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231129.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/aiassistant.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/imagestyle.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 _0x30d3=['*Reset\x20font\x20size*','commandName','FontFamilyEditing','_descriptionFactory','afterInit','find','*Reset\x20font\x20color*','*Set\x20font\x20family:*\x20%0','*Set\x20font\x20size:*\x20%0','*Reset\x20font\x20background\x20color*','FORMAT_FONT_FAMILY','_enableDefaultAttributesIntegration','registerAttributeLabel','trim','label','plugins','value','fontBackgroundColor.colors','title','fontFamily','get','config','toLowerCase','*Set\x20font\x20color:*\x20%0','FontColorEditing','commandParams','TrackChangesEditing','FORMAT_FONT_COLOR','model','FontBackgroundColorEditing','FontSize','fontColor','fontSize.options','FontSizeEditing','_registerLegacyDescription','*Reset\x20font\x20family*','fontSize','FORMAT_FONT_SIZE','locale','type','fontBackgroundColor','editor','format','FORMAT_FONT_BACKGROUND','formatInline'];(function(_0x13a802,_0x30d373){const _0x4a3d68=function(_0x49d619){while(--_0x49d619){_0x13a802['push'](_0x13a802['shift']());}};_0x4a3d68(++_0x30d373);}(_0x30d3,0xb6));const _0x4a3d=function(_0x13a802,_0x30d373){_0x13a802=_0x13a802-0x0;let _0x4a3d68=_0x30d3[_0x13a802];return _0x4a3d68;};import{Plugin as _0x2dd3ac}from'ckeditor5/src/core';import{normalizeColorOptions as _0x222cfb}from'ckeditor5/src/ui';import{getTranslation as _0x2b1e29}from'../utils/common-translations';const ro=[{'pluginName':_0x4a3d('0x1f'),'commandName':_0x4a3d('0x22')},{'pluginName':_0x4a3d('0x0'),'commandName':_0x4a3d('0x11')},{'pluginName':_0x4a3d('0x16'),'commandName':_0x4a3d('0x1d')},{'pluginName':_0x4a3d('0x1b'),'commandName':_0x4a3d('0x26')}];export default class J extends _0x2dd3ac{[_0x4a3d('0x2')](){const _0x5bef93=this[_0x4a3d('0x27')][_0x4a3d('0x24')],_0x190d57=this[_0x4a3d('0x27')]['plugins'][_0x4a3d('0x12')](_0x4a3d('0x18'));for(const {pluginName:_0x22cffd,commandName:_0x4cc806}of ro)this['editor'][_0x4a3d('0xd')]['has'](_0x22cffd)&&_0x190d57[_0x4a3d('0x9')](_0x4cc806,[_0x4cc806]);_0x5bef93['t'],(_0x190d57[_0x4a3d('0x1')][_0x4a3d('0xa')]('fontSize',_0x2b1e29(_0x5bef93,_0x4a3d('0x23'))),_0x190d57[_0x4a3d('0x1')]['registerAttributeLabel'](_0x4a3d('0x11'),_0x2b1e29(_0x5bef93,_0x4a3d('0x8'))),_0x190d57[_0x4a3d('0x1')][_0x4a3d('0xa')](_0x4a3d('0x1d'),_0x2b1e29(_0x5bef93,_0x4a3d('0x19'))),_0x190d57[_0x4a3d('0x1')][_0x4a3d('0xa')](_0x4a3d('0x26'),_0x2b1e29(_0x5bef93,_0x4a3d('0x29'))),this[_0x4a3d('0x20')]());}[_0x4a3d('0x20')](){const _0x124413=this[_0x4a3d('0x27')],_0x294a64=_0x124413['locale'];_0x124413['plugins'][_0x4a3d('0x12')](_0x4a3d('0x18'))[_0x4a3d('0x1')]['registerDescriptionCallback'](_0x181e39=>{const _0x1c48d1=_0x294a64['t'];if(_0x4a3d('0x2a')!=_0x181e39[_0x4a3d('0x25')])return;const {data:_0x1725e1}=_0x181e39;if(null!=_0x1725e1){if('fontSize'==_0x1725e1[_0x4a3d('0x2c')]){const _0x2eb681=_0x1725e1[_0x4a3d('0x17')][0x0][_0x4a3d('0xe')];if(_0x2eb681){const _0x486f3f=_0x1c48d1(this['editor']['plugins'][_0x4a3d('0x12')](_0x4a3d('0x1c'))['normalizeSizeOptions'](this[_0x4a3d('0x27')]['config']['get'](_0x4a3d('0x1e')))[_0x4a3d('0x3')](_0xc56d80=>_0xc56d80[_0x4a3d('0x1a')]==_0x2eb681)[_0x4a3d('0x10')])['toLowerCase']();return{'type':'format','content':_0x2b1e29(_0x294a64,_0x4a3d('0x6'),_0x486f3f)};}return{'type':_0x4a3d('0x28'),'content':_0x2b1e29(_0x294a64,_0x4a3d('0x2b'))};}if('fontFamily'==_0x1725e1[_0x4a3d('0x2c')]){const _0x2c1e77=_0x1725e1[_0x4a3d('0x17')][0x0][_0x4a3d('0xe')];return _0x2c1e77?{'type':_0x4a3d('0x28'),'content':_0x2b1e29(_0x294a64,_0x4a3d('0x5'),_0x2c1e77)}:{'type':_0x4a3d('0x28'),'content':_0x2b1e29(_0x294a64,_0x4a3d('0x21'))};}if(_0x4a3d('0x1d')==_0x1725e1[_0x4a3d('0x2c')]){const _0x391f3e=_0x1725e1[_0x4a3d('0x17')][0x0]['value'];if(_0x391f3e){const _0x825779=_0x222cfb(this['editor'][_0x4a3d('0x13')][_0x4a3d('0x12')]('fontColor.colors'))[_0x4a3d('0x3')](_0x4acf68=>_0x4acf68[_0x4a3d('0x1a')]==_0x391f3e);let _0x3fb17c=_0x391f3e,_0x1c8cfb='';return _0x825779&&(_0x3fb17c=_0x825779[_0x4a3d('0xc')],_0x1c8cfb=_0x1c48d1(_0x3fb17c)[_0x4a3d('0x14')]()),{'type':_0x4a3d('0x28'),'content':_0x2b1e29(_0x294a64,_0x4a3d('0x15'),_0x1c8cfb)[_0x4a3d('0xb')](),'color':{'value':_0x391f3e,'title':_0x1c8cfb||_0x3fb17c}};}return{'type':_0x4a3d('0x28'),'content':_0x2b1e29(_0x294a64,_0x4a3d('0x4'))};}if(_0x4a3d('0x26')==_0x1725e1[_0x4a3d('0x2c')]){const _0x271900=_0x1725e1[_0x4a3d('0x17')][0x0][_0x4a3d('0xe')];if(_0x271900){const _0x238071=_0x222cfb(this['editor']['config'][_0x4a3d('0x12')](_0x4a3d('0xf')))[_0x4a3d('0x3')](_0x5863a2=>_0x5863a2['model']==_0x271900);let _0x1e4685=_0x271900,_0x7bf1d3='';return _0x238071&&(_0x1e4685=_0x238071[_0x4a3d('0xc')],_0x7bf1d3=_0x1c48d1(_0x1e4685)[_0x4a3d('0x14')]()),{'type':'format','content':_0x2b1e29(_0x294a64,'*Set\x20font\x20background\x20color:*\x20%0',_0x7bf1d3)[_0x4a3d('0xb')](),'color':{'value':_0x271900,'title':_0x7bf1d3||_0x1e4685}};}return{'type':'format','content':_0x2b1e29(_0x294a64,_0x4a3d('0x7'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40df=['fontBackgroundColor','registerDescriptionCallback','charAt','copyFormat','*Set\x20format\x20to:*\x20%0','config','plugins','split','TrackChangesEditing','FontSize','locale','model','type','editor','afterInit','_enableDefaultAttributesIntegration','slice','push','entries','commandParams','*Remove\x20all\x20formatting*','_registerLegacyDescription','enableCommand','title','normalizeSizeOptions','get','find','boolean','commands','fontSize.options','format','toUpperCase','toLowerCase','length','join','pasteFormat','formatBlock'];(function(_0x54e2f0,_0x40df01){const _0x369aee=function(_0x54a782){while(--_0x54a782){_0x54e2f0['push'](_0x54e2f0['shift']());}};_0x369aee(++_0x40df01);}(_0x40df,0x1c8));const _0x369a=function(_0x54e2f0,_0x40df01){_0x54e2f0=_0x54e2f0-0x0;let _0x369aee=_0x40df[_0x54e2f0];return _0x369aee;};import{Plugin as _0x366845}from'ckeditor5/src/core';import{normalizeColorOptions as _0x13d72f}from'ckeditor5/src/ui';import{getTranslation as _0x37e5bb}from'../utils/common-translations';export default class Q extends _0x366845{[_0x369a('0x2')](){const _0x20e41b=this['editor'],_0x541851=_0x20e41b['plugins'][_0x369a('0xd')](_0x369a('0x21')),_0x5e57f6=_0x20e41b[_0x369a('0x10')][_0x369a('0xd')]('copyFormat'),_0x12ed37=_0x20e41b[_0x369a('0x10')][_0x369a('0xd')](_0x369a('0x17'));_0x5e57f6&&_0x12ed37&&(_0x541851[_0x369a('0x3')](_0x369a('0x17')),_0x541851[_0x369a('0xa')](_0x369a('0x1c')),this['_registerLegacyDescription']());}[_0x369a('0x9')](){const _0x4a005c=this[_0x369a('0x1')],_0x5c8d14=_0x4a005c[_0x369a('0x23')];_0x4a005c[_0x369a('0x1f')][_0x369a('0xd')](_0x369a('0x21'))['_descriptionFactory'][_0x369a('0x1a')](_0x107525=>{if(_0x369a('0x18')!=_0x107525[_0x369a('0x0')]&&'formatInline'!=_0x107525[_0x369a('0x0')])return;const {data:_0x4ffe42}=_0x107525;if(_0x4ffe42&&_0x369a('0x17')===_0x4ffe42['commandName']){const _0x2cc131=[],_0x2cd77d=_0x4ffe42[_0x369a('0x7')][0x0];for(const [_0x5c7b71,_0x550456]of Object[_0x369a('0x6')](_0x2cd77d))_0x2cc131[_0x369a('0x5')](ao(_0x4a005c,_0x5c7b71,_0x550456));return _0x2cc131[_0x369a('0x15')]?{'type':_0x369a('0x12'),'content':_0x37e5bb(_0x5c8d14,_0x369a('0x1d'),_0x2cc131[_0x369a('0x16')](',\x20'))}:{'type':'format','content':_0x37e5bb(_0x5c8d14,_0x369a('0x8'))};}});}}function ao(_0x1074dc,_0x6fdf8f,_0x350909){const _0x252c15=_0x1074dc[_0x369a('0x23')]['t'],_0x26d9a1=_0x6fdf8f[_0x369a('0x20')](/(?=[A-Z])/)['join']('\x20'),_0x59a554=_0x252c15(_0x26d9a1[_0x369a('0x1b')](0x0)[_0x369a('0x13')]()+_0x26d9a1[_0x369a('0x4')](0x1))[_0x369a('0x14')]();if(_0x369a('0xf')==typeof _0x350909)return _0x59a554;if('fontColor'===_0x6fdf8f||_0x369a('0x19')===_0x6fdf8f){const _0x3bc485=_0x13d72f(_0x1074dc[_0x369a('0x1e')][_0x369a('0xd')]('fontColor.colors'))['find'](_0x5d042c=>_0x5d042c[_0x369a('0x24')]==_0x350909);return _0x59a554+'\x20('+(_0x3bc485?_0x252c15(_0x3bc485['label'])['toLowerCase']():_0x350909)+')';}if('fontSize'===_0x6fdf8f&&isNaN(parseFloat(_0x350909))){const _0x5baa0f=_0x1074dc[_0x369a('0x1f')]['get'](_0x369a('0x22'))[_0x369a('0xc')](_0x1074dc[_0x369a('0x1e')][_0x369a('0xd')](_0x369a('0x11')))[_0x369a('0xe')](_0x1a989b=>_0x1a989b[_0x369a('0x24')]==_0x350909);return _0x59a554+'\x20('+(_0x5baa0f?_0x252c15(_0x5baa0f[_0x369a('0xb')])[_0x369a('0x14')]():_0x350909)+')';}return _0x59a554+'\x20('+_0x350909+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa583=['type','ELEMENT_HEADING','view','commandParams','paragraph','registerElementLabel','_headingOptions','format','match','locale','registerDescriptionCallback','ELEMENT_HEADING_CUSTOM','heading.options','_getHeadingLevel','_enableDefaultAttributesIntegration','model','commandName','find','afterInit','has','_descriptionFactory','heading','title','editor','name','HeadingEditing','plugins','*Change\x20to:*\x20%0','TrackChangesEditing','_registerLegacyDescription','formatBlock','get','config'];(function(_0x442d6b,_0xa5830b){const _0x5bf2b4=function(_0x45614b){while(--_0x45614b){_0x442d6b['push'](_0x442d6b['shift']());}};_0x5bf2b4(++_0xa5830b);}(_0xa583,0x182));const _0x5bf2=function(_0x442d6b,_0xa5830b){_0x442d6b=_0x442d6b-0x0;let _0x5bf2b4=_0xa583[_0x442d6b];return _0x5bf2b4;};import{Plugin as _0x431b1b}from'ckeditor5/src/core';import{getTranslation as _0x5ddec3}from'../utils/common-translations';export default class X extends _0x431b1b{[_0x5bf2('0x1c')](){const _0x10e24f=this[_0x5bf2('0x0')];if(!_0x10e24f['plugins'][_0x5bf2('0x1d')](_0x5bf2('0x2')))return;this[_0x5bf2('0x10')]=_0x10e24f[_0x5bf2('0x9')][_0x5bf2('0x8')](_0x5bf2('0x16'));const _0xdb0b9c=_0x10e24f[_0x5bf2('0x13')],_0x4f0784=_0x10e24f[_0x5bf2('0x3')][_0x5bf2('0x8')](_0x5bf2('0x5'));_0x4f0784[_0x5bf2('0x18')](_0x5bf2('0x1f'));for(const _0x2dcb3d of this[_0x5bf2('0x10')])_0x5bf2('0xe')!=_0x2dcb3d[_0x5bf2('0x19')]&&_0x4f0784[_0x5bf2('0x1e')][_0x5bf2('0xf')](_0x2dcb3d[_0x5bf2('0x19')],_0x35bc96=>{const _0x42fe0a=this['_getHeadingLevel'](_0x2dcb3d[_0x5bf2('0x19')]);return null!==_0x42fe0a?_0x4cae25(_0x35bc96,_0x42fe0a):_0x277899(_0x35bc96,_0x2dcb3d['title']);});function _0x4cae25(_0x541e79,_0x58af86){return _0x5ddec3(_0xdb0b9c,_0x5bf2('0xb'),[_0x541e79,_0x58af86]);}function _0x277899(_0x5db459,_0x56f5a0){return _0x5ddec3(_0xdb0b9c,_0x5bf2('0x15'),[_0x5db459,_0x56f5a0]);}this[_0x5bf2('0x6')]();}[_0x5bf2('0x6')](){const _0x148d1c=this['editor'],_0x4be45c=_0x148d1c[_0x5bf2('0x13')];function _0xc8af6e(_0xa013f7,_0x4077b8){return _0x5ddec3(_0x4be45c,_0x5bf2('0x15'),[_0xa013f7,_0x4077b8]);}_0x148d1c[_0x5bf2('0x3')][_0x5bf2('0x8')]('TrackChangesEditing')[_0x5bf2('0x1e')][_0x5bf2('0x14')](_0x280175=>{if(_0x5bf2('0x7')!=_0x280175[_0x5bf2('0xa')])return;const {data:_0x3688f7}=_0x280175;if(_0x3688f7&&_0x5bf2('0x1f')==_0x3688f7[_0x5bf2('0x1a')]){const _0x383553=_0x3688f7[_0x5bf2('0xd')][0x0]['value'],_0x3152e3=this['_getHeadingLevel'](_0x383553);if(null!==_0x3152e3)return{'type':_0x5bf2('0x11'),'content':_0x5ddec3(_0x4be45c,_0x5bf2('0x4'),(_0x5d805e=0x1,_0x10f1f0=_0x3152e3,_0x5ddec3(_0x4be45c,_0x5bf2('0xb'),[_0x5d805e,_0x10f1f0])))};const _0x337ba=this['_headingOptions'][_0x5bf2('0x1b')](_0x22c891=>_0x22c891[_0x5bf2('0x19')]===_0x383553)[_0x5bf2('0x20')];return{'type':_0x5bf2('0x11'),'content':_0x5ddec3(_0x4be45c,_0x5bf2('0x4'),_0xc8af6e(0x1,_0x337ba))};}var _0x5d805e,_0x10f1f0;});}[_0x5bf2('0x17')](_0x6177a5){var _0x2c99aa,_0x5513c4;const _0x450e9d=_0x6177a5[_0x5bf2('0x12')](/^heading(\d+)/);if(_0x450e9d)return _0x450e9d[0x1];const _0x238dfe=null===(_0x2c99aa=this[_0x5bf2('0x10')])||void 0x0===_0x2c99aa?void 0x0:_0x2c99aa[_0x5bf2('0x1b')](_0x54655e=>_0x54655e[_0x5bf2('0x19')]==_0x6177a5);if(_0x238dfe&&_0x238dfe[_0x5bf2('0xc')]){const _0x1c8bfa=_0x238dfe[_0x5bf2('0xc')],_0x407476=(null!==(_0x5513c4=_0x1c8bfa[_0x5bf2('0x1')])&&void 0x0!==_0x5513c4?_0x5513c4:_0x1c8bfa)[_0x5bf2('0x12')](/^h(\d+)/);if(_0x407476)return _0x407476[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x350c=['FORMAT_HIGHLIGHT','*Remove\x20highlight*','editor','plugins','title','find','formatInline','afterInit','_descriptionFactory','get','commandParams','model','toLowerCase','color','locale','_registerLegacyDescription','format','highlight','commandName','HighlightEditing','type'];(function(_0x35ae04,_0x350c2a){const _0x5b2bf0=function(_0x5bc2d9){while(--_0x5bc2d9){_0x35ae04['push'](_0x35ae04['shift']());}};_0x5b2bf0(++_0x350c2a);}(_0x350c,0x145));const _0x5b2b=function(_0x35ae04,_0x350c2a){_0x35ae04=_0x35ae04-0x0;let _0x5b2bf0=_0x350c[_0x35ae04];return _0x5b2bf0;};import{Plugin as _0xcf4e80}from'ckeditor5/src/core';import{getTranslation as _0x4ee028}from'../utils/common-translations';export default class Y extends _0xcf4e80{[_0x5b2b('0x12')](){const _0x4e017a=this[_0x5b2b('0xd')];if(!_0x4e017a[_0x5b2b('0xe')]['has'](_0x5b2b('0x9')))return;const _0x220397=_0x4e017a[_0x5b2b('0xe')][_0x5b2b('0x14')]('TrackChangesEditing'),_0x3ca613=_0x4e017a['locale'];_0x220397['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x220397[_0x5b2b('0x13')]['registerAttributeLabel'](_0x5b2b('0x7'),_0x4ee028(_0x3ca613,_0x5b2b('0xb'))),this['_registerLegacyDescription']();}[_0x5b2b('0x5')](){const _0x4fd44a=this[_0x5b2b('0xd')],_0x12242f=_0x4fd44a[_0x5b2b('0x4')];_0x4fd44a['plugins'][_0x5b2b('0x14')]('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xc1a17a=>{if(_0x5b2b('0x11')!=_0xc1a17a[_0x5b2b('0xa')])return;const {data:_0x31b153}=_0xc1a17a;if(_0x31b153&&'highlight'==_0x31b153[_0x5b2b('0x8')]){const _0x28b626=_0x12242f['t'],_0xfb485a=_0x31b153[_0x5b2b('0x0')][0x0]['value'];if(_0xfb485a){const _0x295e02=_0x4fd44a['config'][_0x5b2b('0x14')]('highlight.options')[_0x5b2b('0x10')](_0x106de6=>_0x106de6[_0x5b2b('0x1')]==_0xfb485a),_0x185501=_0x28b626(_0x295e02[_0x5b2b('0xf')])[_0x5b2b('0x2')]();return{'type':_0x5b2b('0x6'),'content':_0x4ee028(_0x12242f,'*Set\x20highlight:*\x20%0',_0x185501),'color':{'value':_0x295e02[_0x5b2b('0x3')],'title':_0x295e02['title']}};}return{'type':_0x5b2b('0x6'),'content':_0x4ee028(_0x12242f,_0x5b2b('0xc'),_0x4ee028(_0x12242f,_0x5b2b('0xb')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f70=['_descriptionFactory','get','enableCommand','HorizontalLineEditing','locale','high','div','ck-horizontal-line','has','createContainerElement','horizontalLine','for','dataDowncast','plugins','afterInit','insert','ELEMENT_HORIZONTAL_LINE','createEmptyElement'];(function(_0x2aee41,_0x1f70d3){const _0x2ec629=function(_0x23d9d1){while(--_0x23d9d1){_0x2aee41['push'](_0x2aee41['shift']());}};_0x2ec629(++_0x1f70d3);}(_0x1f70,0x118));const _0x2ec6=function(_0x2aee41,_0x1f70d3){_0x2aee41=_0x2aee41-0x0;let _0x2ec629=_0x1f70[_0x2aee41];return _0x2ec629;};import{Plugin as _0x592121}from'ckeditor5/src/core';import{getTranslation as _0x2f3133}from'../utils/common-translations';export default class Z extends _0x592121{[_0x2ec6('0x4')](){const _0x9451c6=this['editor'];if(!_0x9451c6[_0x2ec6('0x3')][_0x2ec6('0x10')](_0x2ec6('0xb')))return;_0x9451c6[_0x2ec6('0x3')][_0x2ec6('0x9')]('TrackChangesEditing')[_0x2ec6('0xa')](_0x2ec6('0x0'));const _0x41528e=_0x9451c6[_0x2ec6('0x3')][_0x2ec6('0x9')]('TrackChangesEditing'),_0x37d7ae=_0x9451c6[_0x2ec6('0xc')];_0x41528e[_0x2ec6('0x8')]['registerElementLabel'](_0x2ec6('0x0'),_0x589573=>_0x2f3133(_0x37d7ae,_0x2ec6('0x6'),_0x589573)),_0x9451c6['conversion'][_0x2ec6('0x1')](_0x2ec6('0x2'))['elementToStructure']({'model':'horizontalLine','view':(_0x41ea38,{writer:_0x4e8de2,options:_0x13b64b})=>{if(!_0x13b64b['showSuggestionHighlights'])return null;const _0x2bd610=_0x4e8de2[_0x2ec6('0x11')](_0x2ec6('0xe')),_0x146fe7=_0x4e8de2[_0x2ec6('0x7')]('hr');return _0x4e8de2['addClass'](_0x2ec6('0xf'),_0x2bd610),_0x4e8de2[_0x2ec6('0x5')](_0x4e8de2['createPositionAt'](_0x2bd610,0x0),_0x146fe7),_0x2bd610;},'converterPriority':_0x2ec6('0xd')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20b4=['has','_enableDefaultAttributesIntegration','formatBlock','htmlEmbed','commandName','_registerLegacyDescription','plugins','format','registerElementLabel','ELEMENT_HTML_EMBED','editor','nodeAfter','afterInit','getFirstRange','attribute','TrackChangesEditing','key','get','element','rawHtml','value','_descriptionFactory','registerDescriptionCallback','type'];(function(_0x19dc46,_0x20b47b){const _0x25b368=function(_0x8d6236){while(--_0x8d6236){_0x19dc46['push'](_0x19dc46['shift']());}};_0x25b368(++_0x20b47b);}(_0x20b4,0xd0));const _0x25b3=function(_0x19dc46,_0x20b47b){_0x19dc46=_0x19dc46-0x0;let _0x25b368=_0x20b4[_0x19dc46];return _0x25b368;};import{Plugin as _0x5ead37}from'ckeditor5/src/core';import{getTranslation as _0x5b2b4f}from'../utils/common-translations';export default class tt extends _0x5ead37{[_0x25b3('0x14')](){const _0x134e62=this[_0x25b3('0x12')];if(!_0x134e62[_0x25b3('0xe')][_0x25b3('0x8')]('HtmlEmbed'))return;const _0x2b4c6e=_0x134e62[_0x25b3('0xe')][_0x25b3('0x1')]('TrackChangesEditing'),_0x1fdc81=_0x134e62['locale'];_0x2b4c6e['_descriptionFactory'][_0x25b3('0x10')](_0x25b3('0x3'),_0x5e672d=>_0x5b2b4f(_0x1fdc81,_0x25b3('0x11'),_0x5e672d)),_0x2b4c6e[_0x25b3('0x9')]('htmlEmbed',[],[_0x25b3('0x4')]),_0x2b4c6e[_0x25b3('0x5')][_0x25b3('0x6')](_0x2666a9=>{if(_0x25b3('0x16')!=_0x2666a9[_0x25b3('0x7')])return;const {data:_0xa78016}=_0x2666a9;if(_0xa78016&&_0x25b3('0x4')==_0xa78016[_0x25b3('0x0')]&&_0x2666a9[_0x25b3('0x15')]()['start'][_0x25b3('0x13')]['is'](_0x25b3('0x2'),_0x25b3('0x3'))){const _0x385e70=_0x5b2b4f(_0x1fdc81,'ELEMENT_HTML_EMBED');return{'type':_0x25b3('0xf'),'content':_0x5b2b4f(_0x1fdc81,'*Change\x20%0\x20content*',_0x385e70)};}}),this[_0x25b3('0xd')]();}['_registerLegacyDescription'](){const _0x33f1a1=this[_0x25b3('0x12')],_0x457e13=_0x33f1a1['locale'];_0x33f1a1[_0x25b3('0xe')][_0x25b3('0x1')](_0x25b3('0x17'))[_0x25b3('0x5')][_0x25b3('0x6')](_0x5956ed=>{if(_0x25b3('0xa')!=_0x5956ed[_0x25b3('0x7')])return;const {data:_0x518453}=_0x5956ed;if(_0x518453&&_0x25b3('0xb')==_0x518453[_0x25b3('0xc')]){const _0x398066=_0x5b2b4f(_0x457e13,'ELEMENT_HTML_EMBED');return{'type':_0x25b3('0xf'),'content':_0x5b2b4f(_0x457e13,'*Change\x20%0\x20content*',_0x398066)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4979=['document','element','registerDescriptionCallback','Inline\x20image\x20to\x20block\x20image','find','_descriptionFactory','toNext','_enableDefaultAttributesIntegration','editor','resizeImage','imageInline','model','TrackChangesEditing','detach','commandName','has','alt','discard','addObject','ImageResize','fromPosition','ImageCaptionEditing','key','start','accept','registerAttributeLabel','toPrevious','isEqual','registerElementLabel','type','markDeletion','findIndex','attribute','schema','markBlockFormat','nodeBefore','get','convertInlineImageToBlock','change','ImageUtils','format','getCaptionFromImageModelElement','uploadImage','FORMAT_IMAGE_SIZE','createRange','locale','width','registerCustomCallback','isCollapsed','previous','ImageEditing','filter','getFirstRange','*Set\x20image\x20width:*\x20%0','imageTypeInline','imageTextAlternative','newValue','*Reset\x20image\x20width*','insertion','_suggestionFactory','_registerLegacyDescription','insertImage','toggleImageCaption','getClosestSelectedImageElement','enableCommand','Block\x20image\x20to\x20inline\x20image','isIntersecting','markInsertion','ImageInlineEditing','isOwn','resizedWidth','createRangeOn','imageCaption','getContainedElement','getSuggestionCallback','end','chain','forceDefaultExecution','deletion','isBefore','commandParams','imageTypeBlock','getNearestSelectionRange','afterInit','selection','ELEMENT_CAPTION','plugins','subType','forward','ImageBlockEditing','formatBlock','ELEMENT_INLINE_IMAGE','isBlockImage','convertBlockImageToInline','ELEMENT_IMAGE'];(function(_0x22f587,_0x4979c1){const _0x26f6d2=function(_0x3edcfd){while(--_0x3edcfd){_0x22f587['push'](_0x22f587['shift']());}};_0x26f6d2(++_0x4979c1);}(_0x4979,0xf6));const _0x26f6=function(_0x22f587,_0x4979c1){_0x22f587=_0x22f587-0x0;let _0x26f6d2=_0x4979[_0x22f587];return _0x26f6d2;};import{Plugin as _0x562589}from'ckeditor5/src/core';import{LivePosition as _0x3651de}from'ckeditor5/src/engine';import{getTranslation as _0x135b77}from'../utils/common-translations';export default class it extends _0x562589{[_0x26f6('0x1b')](){const _0x3f77e9=this['editor'];if(!_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x59')))return;const _0x539555=_0x3f77e9['plugins']['get'](_0x26f6('0x33')),_0x5e96b0=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x4e')),_0x47de15=_0x3f77e9['locale'];_0x539555[_0x26f6('0x8')](_0x26f6('0x5')),_0x539555[_0x26f6('0x2c')][_0x26f6('0x43')]('imageBlock',_0x6594d0=>_0x135b77(_0x47de15,_0x26f6('0x26'),_0x6594d0)),_0x539555[_0x26f6('0x2c')]['registerElementLabel'](_0x26f6('0x31'),_0x1cd6df=>_0x135b77(_0x47de15,_0x26f6('0x23'),_0x1cd6df)),_0x539555['_descriptionFactory'][_0x26f6('0x43')]('caption',()=>_0x135b77(_0x47de15,_0x26f6('0x1d'))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageUploadEditing')&&_0x539555[_0x26f6('0x8')](_0x26f6('0x51')),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x21'))&&_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0xc'))&&(_0x539555[_0x26f6('0x8')]('imageTypeInline',(_0x50ca87,_0x5dedbe)=>{const _0x8047d4=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9['model'][_0x26f6('0x27')]['selection']);_0x3f77e9['model'][_0x26f6('0x4d')](()=>{_0x539555[_0x26f6('0x49')](_0x8047d4,{'commandName':_0x26f6('0x5d'),'commandParams':[_0x5dedbe]},[],'convertBlockImageToInline');});}),_0x539555['enableCommand'](_0x26f6('0x19'),(_0x455e5a,_0x255010)=>{_0x3f77e9['model'][_0x26f6('0x4d')](_0xc9215b=>{let _0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')]['document'][_0x26f6('0x1c')]),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x1ef236=_0x3651de['fromPosition'](_0x248460[_0x26f6('0x3e')],_0x26f6('0x41')),_0x4f0229=_0x3651de[_0x26f6('0x3b')](_0x248460[_0x26f6('0x13')],_0x26f6('0x2d'));_0x539555[_0x26f6('0x15')](()=>_0x455e5a(_0x255010)),_0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x50da98=_0xc9215b[_0x26f6('0x53')](_0x1ef236,_0x4f0229);_0x1ef236[_0x26f6('0x34')](),_0x4f0229['detach'](),_0x539555[_0x26f6('0x49')](_0x51a647,{'commandName':'imageTypeInline','commandParams':[_0x255010]},[],_0x26f6('0x4c')),_0x50da98[_0x26f6('0x3e')][_0x26f6('0x17')](_0x248460['start'])&&_0x539555[_0x26f6('0xb')](_0xc9215b[_0x26f6('0x53')](_0x50da98[_0x26f6('0x3e')],_0x248460[_0x26f6('0x3e')]),'convertInlineImageToBlock'),_0x248460[_0x26f6('0x13')][_0x26f6('0x17')](_0x50da98[_0x26f6('0x13')])&&_0x539555[_0x26f6('0xb')](_0xc9215b['createRange'](_0x248460[_0x26f6('0x13')],_0x50da98['end']),_0x26f6('0x4c'));});}),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),_0x26f6('0x3f'),()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('formatBlock',_0x26f6('0x4c'),_0x26f6('0x38'),_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x22'),'',_0x26f6('0x3f'))),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x2'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),'discard',([_0x449daf])=>{const _0x2efafd=_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x2'),'',_0x26f6('0x38'));let _0x5a2bac=_0x449daf['start'],_0x2b87a9=_0x449daf[_0x26f6('0x13')];const _0x4fb2fc=_0x3f77e9[_0x26f6('0x32')]['schema'][_0x26f6('0x1a')](_0x5a2bac,'backward'),_0x315462=_0x3f77e9['model'][_0x26f6('0x48')][_0x26f6('0x1a')](_0x2b87a9,_0x26f6('0x20'));_0x4fb2fc[_0x26f6('0x57')]&&(_0x5a2bac=_0x4fb2fc[_0x26f6('0x3e')]),_0x315462['isCollapsed']&&(_0x2b87a9=_0x315462[_0x26f6('0x13')]),_0x2efafd([_0x3f77e9[_0x26f6('0x32')]['createRange'](_0x5a2bac,_0x2b87a9)]);}),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x22'),'convertInlineImageToBlock',_0x26f6('0x14'),_0xddebe),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),_0x26f6('0x14'),_0xddebe)),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x3c'))&&(_0x539555['enableCommand'](_0x26f6('0x6'),(_0x5154d2,_0x661516)=>{const _0x1299b6=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')]('ImageCaptionUtils');let _0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9['model'][_0x26f6('0x27')][_0x26f6('0x1c')]),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66);_0x3f77e9[_0x26f6('0x32')]['change'](()=>{if(_0x475bf4)return void _0x539555[_0x26f6('0x45')](_0x3f77e9[_0x26f6('0x32')]['createRangeOn'](_0x475bf4));const _0x4af9af=_0x5e96b0[_0x26f6('0x24')](_0x1e2c66);_0x5154d2(_0x661516),_0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66),_0x539555[_0x26f6('0xb')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0xf')](_0x475bf4),_0x4af9af?null:_0x26f6('0x10'));});}),_0x539555[_0x26f6('0x3')]['registerCustomCallback'](_0x26f6('0x2'),_0x26f6('0x10'),'chain',_0xddebe));const _0x53ab6f=[{'type':_0x26f6('0x22'),'subType':'imageStylePreApply'},{'type':_0x26f6('0x2'),'subType':'imageCaption'},{'type':_0x26f6('0x22'),'subType':_0x26f6('0x4c')},{'type':_0x26f6('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1eb605(_0x2fec63,_0x2bdc19){const _0x34cd19=_0x53ab6f[_0x26f6('0x46')](({type:_0x11c3c9,subType:_0x54c68f})=>_0x2fec63[_0x26f6('0x44')]==_0x11c3c9&&_0x2fec63['subType']==_0x54c68f),_0x347e60=_0x53ab6f[_0x26f6('0x46')](({type:_0x23a390,subType:_0x1fbc72})=>_0x2bdc19[_0x26f6('0x44')]==_0x23a390&&_0x2bdc19[_0x26f6('0x1f')]==_0x1fbc72);if(_0x34cd19<0x0||_0x347e60<0x0)return!0x1;const _0x4ed09b=_0x2fec63[_0x26f6('0x5b')](),_0x8bd15f=_0x2bdc19[_0x26f6('0x5b')]();if((0x0==_0x34cd19||0x1==_0x34cd19)&&0x2==_0x347e60&&_0x4ed09b[_0x26f6('0xa')](_0x8bd15f))return!0x0;if(0x2==_0x34cd19&&0x3==_0x347e60){const _0xda7e29=_0x539555['_findSuggestions'](_0x4ed09b,_0x26f6('0x2'))[_0x26f6('0x5a')](({suggestion:_0x4fc7af,meta:_0x18c157})=>_0x18c157[_0x26f6('0xd')]&&_0x26f6('0x4c')==_0x4fc7af[_0x26f6('0x1f')]);if(_0xda7e29['length']>0x1&&_0x8bd15f['end'][_0x26f6('0x42')](_0x4ed09b[_0x26f6('0x3e')]))return!0x0;if(0x1==_0xda7e29['length']&&(_0x4ed09b[_0x26f6('0x3e')][_0x26f6('0x42')](_0x8bd15f[_0x26f6('0x13')])||_0x4ed09b[_0x26f6('0x13')][_0x26f6('0x42')](_0x8bd15f['start'])))return!0x0;}if(0x3==_0x34cd19&&0x3==_0x347e60&&_0x4ed09b['start'][_0x26f6('0x17')](_0x8bd15f[_0x26f6('0x3e')])){const _0xae6e51=_0x4ed09b['end']['nodeAfter'],_0x529acf=_0x8bd15f[_0x26f6('0x3e')][_0x26f6('0x4a')];return _0x5e96b0[_0x26f6('0x24')](_0xae6e51)&&_0xae6e51===_0x529acf;}return!0x1;}function _0xddebe(_0x343935,_0x47850f){return _0x1eb605(_0x343935,_0x47850f)?[_0x343935,_0x47850f]:_0x1eb605(_0x47850f,_0x343935)?[_0x47850f,_0x343935]:null;}_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x3a'))&&(_0x539555['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x26f6('0xe')]),_0x539555[_0x26f6('0x2c')][_0x26f6('0x40')](_0x26f6('0xe'),_0x135b77(_0x47de15,_0x26f6('0x52')))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageTextAlternativeEditing')&&_0x539555[_0x26f6('0x2e')](_0x26f6('0x5e'),[],[_0x26f6('0x37')]),_0x539555['_descriptionFactory'][_0x26f6('0x29')](_0x4cf4e2=>{if(!!_0x53ab6f[_0x26f6('0x2b')](({type:_0x5e187c,subType:_0x2faece})=>_0x4cf4e2['type']==_0x5e187c&&_0x4cf4e2[_0x26f6('0x1f')]==_0x2faece))return _0x4cf4e2[_0x26f6('0x58')]?{}:void 0x0;}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x41059b=>{if(_0x26f6('0x2')==_0x41059b[_0x26f6('0x44')]||_0x26f6('0x16')==_0x41059b[_0x26f6('0x44')]){const _0x531e29=_0x41059b[_0x26f6('0x11')]();if(_0x531e29&&_0x531e29['is'](_0x26f6('0x28'),'caption'))return{'type':_0x26f6('0x2')==_0x41059b['type']?_0x26f6('0x39'):'removeObject','element':_0x531e29,'quantity':0x1};}}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x49644b=>_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x4c')==_0x49644b['subType']?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x2a')}:_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x25')==_0x49644b[_0x26f6('0x1f')]?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x9')}:void 0x0),_0x539555[_0x26f6('0x2c')]['registerDescriptionCallback'](_0x16bb43=>{if(_0x26f6('0x47')!=_0x16bb43['type'])return;const {data:_0x531b99}=_0x16bb43;if(!_0x531b99||_0x26f6('0x37')!=_0x531b99[_0x26f6('0x3d')])return;const _0x4b9277=_0x531b99[_0x26f6('0x0')];return _0x4b9277?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x47de15,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b9277+'\x22')}:{'type':'format','content':_0x135b77(_0x47de15,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x26f6('0x4')]();}[_0x26f6('0x4')](){const _0x204311=this[_0x26f6('0x2f')],_0x18dfdd=_0x204311[_0x26f6('0x54')];_0x204311[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x33'))[_0x26f6('0x2c')][_0x26f6('0x29')](_0x3c3402=>{if(_0x26f6('0x22')!=_0x3c3402[_0x26f6('0x44')]&&'formatInline'!=_0x3c3402['type'])return;const {data:_0xac90b6}=_0x3c3402;if(_0xac90b6){if('imageTextAlternative'==_0xac90b6[_0x26f6('0x35')]){const _0xda9578=_0xac90b6['commandParams'][0x0][_0x26f6('0x0')];return _0xda9578?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xda9578+'\x22')}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Remove\x20image\x20text\x20alternative*')};}if(_0x26f6('0x30')==_0xac90b6['commandName']){const _0x32ce1f=_0xac90b6[_0x26f6('0x18')][0x0][_0x26f6('0x55')];return _0x32ce1f?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x5c'),_0x32ce1f)}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x1'))};}}});}}
|
|
23
|
+
const _0x2ffd=['_suggestionFactory','isBefore','*Set\x20image\x20text\x20alternative:*\x20%0','ImageEditing','isBlockImage','ELEMENT_IMAGE','formatInline','subType','start','caption','registerElementLabel','insertion','previous','isEqual','imageTypeInline','ImageBlockEditing','get','enableCommand','chain','getContainedElement','filter','forceDefaultExecution','*Remove\x20image\x20text\x20alternative*','end','afterInit','find','createRangeOn','*Set\x20image\x20width:*\x20%0','plugins','isCollapsed','ImageInlineEditing','formatBlock','commandParams','markDeletion','ImageUploadEditing','nodeBefore','resizeImage','_registerLegacyDescription','selection','removeObject','detach','_descriptionFactory','ImageTextAlternativeEditing','Block\x20image\x20to\x20inline\x20image','uploadImage','findIndex','registerDescriptionCallback','markInsertion','nodeAfter','imageBlock','imageCaption','toPrevious','getCaptionFromImageModelElement','registerAttributeLabel','createRange','isOwn','change','width','format','registerCustomCallback','imageTypeBlock','_findSuggestions','getClosestSelectedImageElement','convertInlineImageToBlock','accept','commandName','has','editor','discard','convertBlockImageToInline','backward','FORMAT_IMAGE_SIZE','ELEMENT_INLINE_IMAGE','ImageUtils','document','markBlockFormat','forward','type','element','deletion','imageInline','join','length','alt','schema','_enableDefaultAttributesIntegration','model','key','imageTextAlternative','TrackChangesEditing','ELEMENT_CAPTION','ImageCaptionEditing','newValue','getSuggestionCallback'];(function(_0x110404,_0x2ffd6a){const _0x977f88=function(_0x514629){while(--_0x514629){_0x110404['push'](_0x110404['shift']());}};_0x977f88(++_0x2ffd6a);}(_0x2ffd,0x68));const _0x977f=function(_0x110404,_0x2ffd6a){_0x110404=_0x110404-0x0;let _0x977f88=_0x2ffd[_0x110404];return _0x977f88;};import{Plugin as _0x501970}from'ckeditor5/src/core';import{LivePosition as _0x3fdee4}from'ckeditor5/src/engine';import{getTranslation as _0x25fe64}from'../utils/common-translations';export default class it extends _0x501970{[_0x977f('0xe')](){const _0x519b1d=this['editor'];if(!_0x519b1d['plugins'][_0x977f('0x38')](_0x977f('0x57')))return;const _0x3a40cf=_0x519b1d[_0x977f('0x12')][_0x977f('0x6')](_0x977f('0x4f')),_0x33490d=_0x519b1d[_0x977f('0x12')][_0x977f('0x6')](_0x977f('0x3f')),_0x4f7975=_0x519b1d['locale'];_0x3a40cf[_0x977f('0x7')]('insertImage'),_0x3a40cf[_0x977f('0x1f')][_0x977f('0x0')](_0x977f('0x27'),_0x48fae1=>_0x25fe64(_0x4f7975,_0x977f('0x59'),_0x48fae1)),_0x3a40cf['_descriptionFactory']['registerElementLabel'](_0x977f('0x46'),_0x4a7bee=>_0x25fe64(_0x4f7975,_0x977f('0x3e'),_0x4a7bee)),_0x3a40cf[_0x977f('0x1f')][_0x977f('0x0')]('caption',()=>_0x25fe64(_0x4f7975,_0x977f('0x50'))),_0x519b1d[_0x977f('0x12')][_0x977f('0x38')](_0x977f('0x18'))&&_0x3a40cf[_0x977f('0x7')](_0x977f('0x22')),_0x519b1d[_0x977f('0x12')][_0x977f('0x38')](_0x977f('0x5'))&&_0x519b1d[_0x977f('0x12')][_0x977f('0x38')](_0x977f('0x14'))&&(_0x3a40cf[_0x977f('0x7')](_0x977f('0x4'),(_0x54a694,_0x29b37b)=>{const _0x391784=_0x33490d[_0x977f('0x34')](_0x519b1d[_0x977f('0x4c')][_0x977f('0x40')][_0x977f('0x1c')]);_0x519b1d[_0x977f('0x4c')][_0x977f('0x2e')](()=>{_0x3a40cf[_0x977f('0x41')](_0x391784,{'commandName':_0x977f('0x4'),'commandParams':[_0x29b37b]},[],_0x977f('0x3b'));});}),_0x3a40cf[_0x977f('0x7')](_0x977f('0x32'),(_0x121471,_0x82d4b8)=>{_0x519b1d[_0x977f('0x4c')][_0x977f('0x2e')](_0x1679b8=>{let _0x3d2941=_0x33490d[_0x977f('0x34')](_0x519b1d[_0x977f('0x4c')][_0x977f('0x40')][_0x977f('0x1c')]),_0x110af3=_0x1679b8['createRangeOn'](_0x3d2941);const _0x4cfd1e=_0x3fdee4['fromPosition'](_0x110af3[_0x977f('0x5c')],_0x977f('0x29')),_0x296386=_0x3fdee4['fromPosition'](_0x110af3[_0x977f('0xd')],'toNext');_0x3a40cf[_0x977f('0xb')](()=>_0x121471(_0x82d4b8)),_0x3d2941=_0x33490d[_0x977f('0x34')](_0x519b1d['model'][_0x977f('0x40')]['selection']),_0x110af3=_0x1679b8[_0x977f('0x10')](_0x3d2941);const _0x471622=_0x1679b8[_0x977f('0x2c')](_0x4cfd1e,_0x296386);_0x4cfd1e['detach'](),_0x296386[_0x977f('0x1e')](),_0x3a40cf[_0x977f('0x41')](_0x3d2941,{'commandName':_0x977f('0x4'),'commandParams':[_0x82d4b8]},[],_0x977f('0x35')),_0x471622[_0x977f('0x5c')][_0x977f('0x55')](_0x110af3[_0x977f('0x5c')])&&_0x3a40cf[_0x977f('0x25')](_0x1679b8[_0x977f('0x2c')](_0x471622[_0x977f('0x5c')],_0x110af3[_0x977f('0x5c')]),_0x977f('0x35')),_0x110af3[_0x977f('0xd')][_0x977f('0x55')](_0x471622[_0x977f('0xd')])&&_0x3a40cf[_0x977f('0x25')](_0x1679b8[_0x977f('0x2c')](_0x110af3['end'],_0x471622[_0x977f('0xd')]),_0x977f('0x35'));});}),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x15'),_0x977f('0x35'),_0x977f('0x47'),()=>!0x1),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x15'),'convertInlineImageToBlock',_0x977f('0x36'),()=>!0x1),_0x3a40cf['_suggestionFactory'][_0x977f('0x31')]('formatBlock',_0x977f('0x35'),'discard',_0x3a40cf[_0x977f('0x54')][_0x977f('0x53')](_0x977f('0x15'),'',_0x977f('0x36'))),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x1'),_0x977f('0x35'),_0x977f('0x47'),()=>!0x1),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x1'),_0x977f('0x35'),_0x977f('0x3a'),([_0x4d1dfb])=>{const _0x338ecf=_0x3a40cf['_suggestionFactory'][_0x977f('0x53')]('insertion','',_0x977f('0x3a'));let _0x37db59=_0x4d1dfb[_0x977f('0x5c')],_0x442873=_0x4d1dfb[_0x977f('0xd')];const _0x4f7aee=_0x519b1d[_0x977f('0x4c')][_0x977f('0x4a')]['getNearestSelectionRange'](_0x37db59,_0x977f('0x3c')),_0x43f9ae=_0x519b1d[_0x977f('0x4c')][_0x977f('0x4a')]['getNearestSelectionRange'](_0x442873,_0x977f('0x42'));_0x4f7aee['isCollapsed']&&(_0x37db59=_0x4f7aee[_0x977f('0x5c')]),_0x43f9ae[_0x977f('0x13')]&&(_0x442873=_0x43f9ae[_0x977f('0xd')]),_0x338ecf([_0x519b1d['model']['createRange'](_0x37db59,_0x442873)]);}),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x15'),'convertInlineImageToBlock',_0x977f('0x8'),_0x3ea136),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x1'),_0x977f('0x35'),_0x977f('0x8'),_0x3ea136)),_0x519b1d['plugins'][_0x977f('0x38')](_0x977f('0x51'))&&(_0x3a40cf[_0x977f('0x7')]('toggleImageCaption',(_0x38886b,_0x1e3e52)=>{const _0x411d5d=_0x519b1d[_0x977f('0x12')][_0x977f('0x6')]('ImageCaptionUtils');let _0x3788a9=_0x33490d[_0x977f('0x34')](_0x519b1d[_0x977f('0x4c')]['document']['selection']),_0x75b463=_0x411d5d[_0x977f('0x2a')](_0x3788a9);_0x519b1d['model'][_0x977f('0x2e')](()=>{if(_0x75b463)return void _0x3a40cf[_0x977f('0x17')](_0x519b1d[_0x977f('0x4c')][_0x977f('0x10')](_0x75b463));const _0x76271b=_0x33490d[_0x977f('0x58')](_0x3788a9);_0x38886b(_0x1e3e52),_0x3788a9=_0x33490d['getClosestSelectedImageElement'](_0x519b1d['model'][_0x977f('0x40')][_0x977f('0x1c')]),_0x75b463=_0x411d5d[_0x977f('0x2a')](_0x3788a9),_0x3a40cf[_0x977f('0x25')](_0x519b1d[_0x977f('0x4c')][_0x977f('0x10')](_0x75b463),_0x76271b?null:_0x977f('0x28'));});}),_0x3a40cf[_0x977f('0x54')][_0x977f('0x31')](_0x977f('0x1'),_0x977f('0x28'),_0x977f('0x8'),_0x3ea136));const _0x545fea=[{'type':_0x977f('0x15'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0x977f('0x28')},{'type':_0x977f('0x15'),'subType':_0x977f('0x35')},{'type':_0x977f('0x1'),'subType':_0x977f('0x35')}];function _0x246015(_0x1aec58,_0x1285c7){const _0x34be51=_0x545fea[_0x977f('0x23')](({type:_0x33c615,subType:_0x17b933})=>_0x1aec58[_0x977f('0x43')]==_0x33c615&&_0x1aec58[_0x977f('0x5b')]==_0x17b933),_0x17763b=_0x545fea['findIndex'](({type:_0x5512cf,subType:_0x1409c1})=>_0x1285c7[_0x977f('0x43')]==_0x5512cf&&_0x1285c7['subType']==_0x1409c1);if(_0x34be51<0x0||_0x17763b<0x0)return!0x1;const _0x5c2b39=_0x1aec58['getFirstRange'](),_0x54203d=_0x1285c7['getFirstRange']();if((0x0==_0x34be51||0x1==_0x34be51)&&0x2==_0x17763b&&_0x5c2b39['isIntersecting'](_0x54203d))return!0x0;if(0x2==_0x34be51&&0x3==_0x17763b){const _0x2a7665=_0x3a40cf[_0x977f('0x33')](_0x5c2b39,_0x977f('0x1'))[_0x977f('0xa')](({suggestion:_0xd3d59a,meta:_0x1a39b1})=>_0x1a39b1[_0x977f('0x2d')]&&_0x977f('0x35')==_0xd3d59a[_0x977f('0x5b')]);if(_0x2a7665[_0x977f('0x48')]>0x1&&_0x54203d[_0x977f('0xd')][_0x977f('0x3')](_0x5c2b39[_0x977f('0x5c')]))return!0x0;if(0x1==_0x2a7665[_0x977f('0x48')]&&(_0x5c2b39[_0x977f('0x5c')][_0x977f('0x3')](_0x54203d['end'])||_0x5c2b39['end'][_0x977f('0x3')](_0x54203d[_0x977f('0x5c')])))return!0x0;}if(0x3==_0x34be51&&0x3==_0x17763b&&_0x5c2b39[_0x977f('0x5c')][_0x977f('0x55')](_0x54203d['start'])){const _0x2c4aa4=_0x5c2b39['end'][_0x977f('0x26')],_0x312ff3=_0x54203d[_0x977f('0x5c')][_0x977f('0x19')];return _0x33490d['isBlockImage'](_0x2c4aa4)&&_0x2c4aa4===_0x312ff3;}return!0x1;}function _0x3ea136(_0x42060a,_0x417919){return _0x246015(_0x42060a,_0x417919)?[_0x42060a,_0x417919]:_0x246015(_0x417919,_0x42060a)?[_0x417919,_0x42060a]:null;}_0x519b1d[_0x977f('0x12')][_0x977f('0x38')]('ImageResize')&&(_0x3a40cf['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x3a40cf[_0x977f('0x1f')][_0x977f('0x2b')]('resizedWidth',_0x25fe64(_0x4f7975,_0x977f('0x3d')))),_0x519b1d[_0x977f('0x12')][_0x977f('0x38')](_0x977f('0x20'))&&_0x3a40cf[_0x977f('0x4b')]('imageTextAlternative',[],[_0x977f('0x49')]),_0x3a40cf['_descriptionFactory']['registerDescriptionCallback'](_0x4a92ef=>{if(!!_0x545fea[_0x977f('0xf')](({type:_0x2a480a,subType:_0x11adfd})=>_0x4a92ef[_0x977f('0x43')]==_0x2a480a&&_0x4a92ef[_0x977f('0x5b')]==_0x11adfd))return _0x4a92ef[_0x977f('0x2')]?{}:void 0x0;}),_0x3a40cf['_descriptionFactory'][_0x977f('0x24')](_0x12cd0a=>{if(_0x977f('0x1')==_0x12cd0a['type']||_0x977f('0x45')==_0x12cd0a[_0x977f('0x43')]){const _0x2201bd=_0x12cd0a[_0x977f('0x9')]();if(_0x2201bd&&_0x2201bd['is'](_0x977f('0x44'),_0x977f('0x5d')))return{'type':'insertion'==_0x12cd0a['type']?'addObject':_0x977f('0x1d'),'element':_0x2201bd,'quantity':0x1};}}),_0x3a40cf[_0x977f('0x1f')]['registerDescriptionCallback'](_0x3817ec=>'formatBlock'==_0x3817ec[_0x977f('0x43')]&&_0x977f('0x35')==_0x3817ec['subType']?{'type':_0x977f('0x30'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x977f('0x15')==_0x3817ec['type']&&_0x977f('0x3b')==_0x3817ec[_0x977f('0x5b')]?{'type':_0x977f('0x30'),'content':_0x977f('0x21')}:void 0x0),_0x3a40cf[_0x977f('0x1f')][_0x977f('0x24')](_0x3f8190=>{if('attribute'!=_0x3f8190['type'])return;const {data:_0xa058e6}=_0x3f8190;if(!_0xa058e6||_0x977f('0x49')!=_0xa058e6[_0x977f('0x4d')])return;const _0x2adcb2=_0xa058e6[_0x977f('0x52')];return _0x2adcb2?{'type':_0x977f('0x30'),'content':_0x25fe64(_0x4f7975,_0x977f('0x56'),'\x22'+_0x2adcb2+'\x22')}:{'type':'format','content':_0x25fe64(_0x4f7975,_0x977f('0xc'))};}),this['_registerLegacyDescription']();}[_0x977f('0x1b')](){const _0xf3dddc=this[_0x977f('0x39')],_0x3cc55d=_0xf3dddc['locale'];_0xf3dddc[_0x977f('0x12')][_0x977f('0x6')]('TrackChangesEditing')['_descriptionFactory'][_0x977f('0x24')](_0x2c6064=>{if(_0x977f('0x15')!=_0x2c6064['type']&&_0x977f('0x5a')!=_0x2c6064[_0x977f('0x43')])return;const {data:_0x1ffbbd}=_0x2c6064;if(_0x1ffbbd){if(_0x977f('0x4e')==_0x1ffbbd['commandName']){const _0x170911=_0x1ffbbd[_0x977f('0x16')][0x0]['newValue'];return _0x170911?{'type':_0x977f('0x30'),'content':_0x25fe64(_0x3cc55d,_0x977f('0x56'),'\x22'+_0x170911+'\x22')}:{'type':_0x977f('0x30'),'content':_0x25fe64(_0x3cc55d,_0x977f('0xc'))};}if(_0x977f('0x1a')==_0x1ffbbd[_0x977f('0x37')]){const _0x39c9bc=_0x1ffbbd[_0x977f('0x16')][0x0][_0x977f('0x2f')];return _0x39c9bc?{'type':_0x977f('0x30'),'content':_0x25fe64(_0x3cc55d,_0x977f('0x11'),_0x39c9bc)}:{'type':'format','content':_0x25fe64(_0x3cc55d,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5046=['ImageEditing','*Replace\x20image\x20URL*','replaceImageSource','formatInline','formatBlock','_enableDefaultAttributesIntegration','_descriptionFactory','registerCustomCallback','plugins','oldValue','_registerLegacyDescription','src','registerDescriptionCallback','_suggestionFactory','_handleLegacySuggestions','discard','getSuggestionCallback','get','TrackChangesEditing','key','attribute','accept','commandName','locale','afterInit','editor','format'];(function(_0x5b0fad,_0x504600){const _0x197e9f=function(_0x2219a0){while(--_0x2219a0){_0x5b0fad['push'](_0x5b0fad['shift']());}};_0x197e9f(++_0x504600);}(_0x5046,0x1e2));const _0x197e=function(_0x5b0fad,_0x504600){_0x5b0fad=_0x5b0fad-0x0;let _0x197e9f=_0x5046[_0x5b0fad];return _0x197e9f;};import{Plugin as _0x514db6}from'ckeditor5/src/core';import{getTranslation as _0x2ad188}from'../utils/common-translations';export default class et extends _0x514db6{[_0x197e('0x1')](){if(!this[_0x197e('0x2')][_0x197e('0xc')]['has'](_0x197e('0x4')))return;const _0x5dfd46=this[_0x197e('0x2')][_0x197e('0x0')],_0x3c848d=this[_0x197e('0x2')]['plugins'][_0x197e('0x15')](_0x197e('0x16'));_0x3c848d[_0x197e('0x9')](_0x197e('0x6'),[],[_0x197e('0xf')]),_0x3c848d['_descriptionFactory']['registerDescriptionCallback'](_0x4ab51f=>{if(_0x197e('0x18')!=_0x4ab51f['type'])return;const {data:_0x1c3403}=_0x4ab51f;return _0x1c3403&&_0x197e('0xf')==_0x1c3403[_0x197e('0x17')]?_0x1c3403['newValue']&&_0x1c3403[_0x197e('0xd')]?{'type':_0x197e('0x3'),'content':_0x2ad188(_0x5dfd46,_0x197e('0x5'))}:{'type':'format','content':''}:void 0x0;}),this[_0x197e('0x12')]();}[_0x197e('0x12')](){const _0x29d3ef=this[_0x197e('0x2')][_0x197e('0xc')][_0x197e('0x15')](_0x197e('0x16'));_0x29d3ef[_0x197e('0x11')][_0x197e('0xb')](_0x197e('0x8'),'replaceImageSource',_0x197e('0x19'),_0x29d3ef[_0x197e('0x11')][_0x197e('0x14')]('formatBlock',null,_0x197e('0x13'))),_0x29d3ef[_0x197e('0x11')][_0x197e('0xb')](_0x197e('0x8'),'replaceImageSource',_0x197e('0x13'),_0x29d3ef[_0x197e('0x11')][_0x197e('0x14')]('formatBlock',null,'accept')),this['_registerLegacyDescription']();}[_0x197e('0xe')](){const _0x2e40a0=this[_0x197e('0x2')],_0x5df9fd=_0x2e40a0[_0x197e('0x0')];_0x2e40a0['plugins'][_0x197e('0x15')](_0x197e('0x16'))[_0x197e('0xa')][_0x197e('0x10')](_0x22b013=>{if('formatBlock'!=_0x22b013['type']&&_0x197e('0x7')!=_0x22b013['type'])return;const {data:_0x44cecd}=_0x22b013;return _0x44cecd&&_0x197e('0x6')===_0x44cecd[_0x197e('0x1a')]?{'type':_0x197e('0x3'),'content':_0x2ad188(_0x5df9fd,_0x197e('0x5'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5be6=['enableCommand','setImageNaturalSizeAttributes','newRange','editor','get','getSuggestion','imageTypeInline','imageStylePreApply','_suggestionFactory','plugins','hasSuggestion','commandName','convertInlineImageToBlock','isEqual','commandParams','chain','model','discardSuggestion','getContainedElement','createRangeOn','imageStyle','imageStylePostApply','refresh','document','next','accept','commands','isBefore','findIndex','type','registerPostFixer','_registerLegacyDescription','subType','formatBlock','afterInit','locale','FORMAT_SIDE_IMAGE','registerDescriptionCallback','TrackChangesEditing','length','getSuggestions','formatInline','end','title','normalizedStyles','change','registerCustomCallback','value','getClosestSelectedImageElement','getFirstRange','getSuggestionCallback','_splitMarkerName','author','head','start','name','isInlineImage','isInContent','ImageStyleEditing','selection','forEach','isBlockImage','insertion','join','markInlineFormat','imageCaption','filter','Users','isOwn','from','nodeBefore','imageTypeBlock','markBlockFormat','isIntersecting','commandReversedParams'];(function(_0x437d17,_0x5be64b){const _0x3fbb29=function(_0x1082ad){while(--_0x1082ad){_0x437d17['push'](_0x437d17['shift']());}};_0x3fbb29(++_0x5be64b);}(_0x5be6,0x17f));const _0x3fbb=function(_0x437d17,_0x5be64b){_0x437d17=_0x437d17-0x0;let _0x3fbb29=_0x5be6[_0x437d17];return _0x3fbb29;};import{Plugin as _0x52a5b6}from'ckeditor5/src/core';import{uid as _0x1e92b2}from'ckeditor5/src/utils';import{getTranslation as _0x548ec4}from'../utils/common-translations';export default class nt extends _0x52a5b6{[_0x3fbb('0x1a')](){const _0xddc9a3=this[_0x3fbb('0x46')];if(!_0xddc9a3[_0x3fbb('0x1')]['has'](_0x3fbb('0x32')))return;const _0x3fa4b9=_0xddc9a3[_0x3fbb('0x1')][_0x3fbb('0x47')](_0x3fbb('0x1e')),_0x623169=_0xddc9a3[_0x3fbb('0x1')][_0x3fbb('0x47')]('ImageUtils'),_0x25c545={};_0x3fa4b9[_0x3fbb('0x43')](_0x3fbb('0xc'),(_0x12eb2d,_0x4c6b13)=>{const _0xc0b605=_0xddc9a3['plugins']['get'](_0x3fbb('0x3b'))['me'],_0x26d96d=_0xddc9a3[_0x3fbb('0x12')][_0x3fbb('0x47')]('imageStyle');let _0x220a08=_0x623169[_0x3fbb('0x28')](_0xddc9a3['model'][_0x3fbb('0xf')][_0x3fbb('0x33')]),_0x232c8e=_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0xb')](_0x220a08),_0x5a891c=_0x26d96d['value'];if(_0x5a891c==_0x4c6b13[_0x3fbb('0x27')])return;const _0xfc9e19={'commandName':_0x3fbb('0xc'),'commandParams':[_0x4c6b13],'formatGroupId':_0x1e92b2()};_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0x25')](()=>{if(_0x3fa4b9[_0x3fbb('0x20')]()[_0x3fbb('0x3a')](_0x199039=>_0x199039['isInContent']&&_0xc0b605==_0x199039[_0x3fbb('0x2c')]&&('formatBlock'==_0x199039[_0x3fbb('0x15')]||_0x3fbb('0x21')==_0x199039['type'])&&(_0x3fbb('0x4a')==_0x199039['subType']||_0x3fbb('0xd')==_0x199039['subType'])&&_0x199039[_0x3fbb('0x29')]()[_0x3fbb('0x5')](_0x232c8e))[_0x3fbb('0x34')](_0xce0164=>_0x3fa4b9[_0x3fbb('0x9')](_0xce0164[_0x3fbb('0x2d')])),_0x220a08=_0x623169[_0x3fbb('0x28')](_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0xf')]['selection']),_0x232c8e=_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0xb')](_0x220a08),_0x26d96d['refresh'](),_0xddc9a3[_0x3fbb('0x12')][_0x3fbb('0x47')](_0x3fbb('0x49'))[_0x3fbb('0xe')](),_0xddc9a3[_0x3fbb('0x12')][_0x3fbb('0x47')](_0x3fbb('0x3f'))['refresh'](),_0x5a891c=_0x26d96d[_0x3fbb('0x27')],_0x5a891c!=_0x4c6b13[_0x3fbb('0x27')])return _0x623169[_0x3fbb('0x30')](_0x220a08)&&_0x26d96d['shouldConvertImageType'](_0x4c6b13[_0x3fbb('0x27')],_0x220a08)?(_0x12eb2d({..._0x4c6b13,'setImageSizes':!0x1}),_0x220a08=_0x623169[_0x3fbb('0x28')](_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0xf')][_0x3fbb('0x33')]),void _0x3fa4b9[_0x3fbb('0x40')](_0x220a08,{..._0xfc9e19,'commandReversedParams':[{'value':_0x5a891c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x623169[_0x3fbb('0x35')](_0x220a08)?_0x3fa4b9['markBlockFormat'](_0x220a08,_0xfc9e19,[],_0x3fbb('0xd')):_0x3fa4b9[_0x3fbb('0x38')](_0x232c8e,_0xfc9e19,_0x3fbb('0xd')));});});for(const _0x32fe43 of _0xddc9a3[_0x3fbb('0x1')][_0x3fbb('0x47')](_0x3fbb('0x32'))[_0x3fbb('0x24')])_0x25c545[_0x32fe43[_0x3fbb('0x2f')]]=_0x32fe43[_0x3fbb('0x23')]['toLowerCase']();_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')]('formatBlock',_0x3fbb('0x4a'),_0x3fbb('0x37'),()=>!0x1),_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')](_0x3fbb('0x19'),_0x3fbb('0xd'),_0x3fbb('0x37'),()=>!0x1),_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')](_0x3fbb('0x21'),_0x3fbb('0xd'),_0x3fbb('0x37'),()=>!0x1),_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')]('formatBlock',_0x3fbb('0x4a'),_0x3fbb('0x11'),([_0x4bf1c1])=>{_0x623169[_0x3fbb('0x44')](_0x4bf1c1[_0x3fbb('0xa')]());}),_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')](_0x3fbb('0x19'),_0x3fbb('0x4a'),'discard',(_0x521e45,_0x200558)=>{_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x2a')]('formatBlock','','accept')(_0x521e45,{'commandName':_0x200558[_0x3fbb('0x3')],'commandParams':_0x200558[_0x3fbb('0x42')]});}),_0x3fa4b9[_0x3fbb('0x0')][_0x3fbb('0x26')]('formatBlock','imageStylePreApply',_0x3fbb('0x7'),function(_0x159d9e,_0x4ea6bd){if(_0x15a32b(_0x159d9e,_0x4ea6bd))return[_0x159d9e,_0x4ea6bd];if(_0x15a32b(_0x4ea6bd,_0x159d9e))return[_0x4ea6bd,_0x159d9e];return null;});const _0x29c9f2=[{'type':_0x3fbb('0x19'),'subType':_0x3fbb('0x4a')},{'type':_0x3fbb('0x36'),'subType':_0x3fbb('0x39')},{'type':_0x3fbb('0x19'),'subType':_0x3fbb('0x4')},{'type':'insertion','subType':_0x3fbb('0x4')}];function _0x15a32b(_0x1d9c3a,_0x2f27a7){const _0x57b0ef=_0x29c9f2[_0x3fbb('0x14')](({type:_0x4afa0b,subType:_0x295db2})=>_0x1d9c3a['type']==_0x4afa0b&&_0x1d9c3a['subType']==_0x295db2),_0x5dbdeb=_0x29c9f2[_0x3fbb('0x14')](({type:_0x2133ec,subType:_0x277f06})=>_0x2f27a7[_0x3fbb('0x15')]==_0x2133ec&&_0x2f27a7[_0x3fbb('0x18')]==_0x277f06);if(_0x57b0ef<0x0||_0x5dbdeb<0x0)return!0x1;const _0x9c9773=_0x1d9c3a['getFirstRange'](),_0x3fd7a5=_0x2f27a7['getFirstRange']();if((0x0==_0x57b0ef||0x1==_0x57b0ef)&&0x2==_0x5dbdeb&&_0x9c9773[_0x3fbb('0x41')](_0x3fd7a5))return!0x0;if(0x2==_0x57b0ef&&0x3==_0x5dbdeb){const _0x343c88=_0x3fa4b9['_findSuggestions'](_0x9c9773,'insertion')['filter'](({suggestion:_0x5d7e6d,meta:_0x58a7f3})=>_0x58a7f3[_0x3fbb('0x3c')]&&_0x3fbb('0x4')==_0x5d7e6d[_0x3fbb('0x18')]);if(_0x343c88['length']>0x1&&_0x3fd7a5[_0x3fbb('0x22')]['isEqual'](_0x9c9773[_0x3fbb('0x2e')]))return!0x0;if(0x1==_0x343c88[_0x3fbb('0x1f')]&&(_0x9c9773[_0x3fbb('0x2e')][_0x3fbb('0x5')](_0x3fd7a5['end'])||_0x9c9773['end']['isEqual'](_0x3fd7a5[_0x3fbb('0x2e')])))return!0x0;}if(0x3==_0x57b0ef&&0x3==_0x5dbdeb&&_0x9c9773['start'][_0x3fbb('0x13')](_0x3fd7a5[_0x3fbb('0x2e')])){const _0x48f515=_0x9c9773[_0x3fbb('0x22')]['nodeAfter'],_0x332ce6=_0x3fd7a5[_0x3fbb('0x2e')][_0x3fbb('0x3e')];return _0x623169[_0x3fbb('0x35')](_0x48f515)&&_0x48f515===_0x332ce6;}return!0x1;}_0xddc9a3[_0x3fbb('0x8')][_0x3fbb('0xf')][_0x3fbb('0x16')](()=>{let _0x2901cc=!0x1;const _0x151c4a=Array[_0x3fbb('0x3d')](_0xddc9a3['model'][_0x3fbb('0xf')]['differ']['getChangedMarkers']());for(const {name:_0x448481,data:_0x426955}of _0x151c4a){const {group:_0x20bd6d,type:_0x82e703,subType:_0x39a8c1,id:_0x10b589}=_0x3fa4b9[_0x3fbb('0x2b')](_0x448481);if('suggestion'==_0x20bd6d&&_0x3fa4b9[_0x3fbb('0x2')](_0x10b589)){if(_0x3fbb('0x19')==_0x82e703&&(_0x3fbb('0x4a')==_0x39a8c1||_0x3fbb('0xd')==_0x39a8c1)){const _0x673d5=_0x3fa4b9[_0x3fbb('0x48')](_0x10b589);if(_0x426955[_0x3fbb('0x45')]){const _0x554290=_0x673d5['getFirstRange']()[_0x3fbb('0xa')]();if(_0x623169[_0x3fbb('0x35')](_0x554290))continue;_0x3fa4b9[_0x3fbb('0x9')](_0x673d5),_0x2901cc=!0x0;}}if(_0x3fbb('0x36')==_0x82e703&&'imageCaption'==_0x39a8c1&&!_0x426955[_0x3fbb('0x45')]){const _0x3cc6cc=_0x3fa4b9['getSuggestion'](_0x10b589);_0x3cc6cc[_0x3fbb('0x10')]&&_0x3cc6cc[_0x3fbb('0x10')][_0x3fbb('0x31')]&&(_0x3fa4b9[_0x3fbb('0x9')](_0x3cc6cc['next']),_0x2901cc=!0x0);}}}return _0x2901cc;}),this[_0x3fbb('0x17')](_0x25c545);}[_0x3fbb('0x17')](_0x2f2f6e){const _0x468a62=this[_0x3fbb('0x46')],_0x5059a9=_0x468a62[_0x3fbb('0x1b')];_0x468a62['plugins'][_0x3fbb('0x47')](_0x3fbb('0x1e'))['_descriptionFactory'][_0x3fbb('0x1d')](_0x3ef26d=>{if(_0x3fbb('0x19')!=_0x3ef26d[_0x3fbb('0x15')]&&_0x3fbb('0x21')!=_0x3ef26d[_0x3fbb('0x15')])return;const {data:_0x425a86}=_0x3ef26d;if(!_0x425a86||_0x3fbb('0xc')!=_0x425a86[_0x3fbb('0x3')])return;const _0x16475b=_0x425a86[_0x3fbb('0x6')][0x0][_0x3fbb('0x27')];return _0x53893a('side'===_0x16475b?_0x548ec4(_0x5059a9,_0x3fbb('0x1c')):_0x2f2f6e[_0x16475b]||_0x16475b);function _0x53893a(_0x25512b){return{'type':'format','content':_0x548ec4(_0x5059a9,'*Format:*\x20%0',_0x25512b)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa15b=['TrackChangesEditing','forEach','bind','editor','_trackChangesValueDuringImport','high','trackChanges','value','collaboration_features','plugins','execute','enableCommand','_trackChangesExecuted','get','track_changes','_handleImportedData','afterInit','dataInsert','commands','listenTo','_setSuggestionData','lowest','importWord'];(function(_0x37c14f,_0xa15b7c){const _0x46106a=function(_0x3254dc){while(--_0x3254dc){_0x37c14f['push'](_0x37c14f['shift']());}};_0x46106a(++_0xa15b7c);}(_0xa15b,0x14e));const _0x4610=function(_0x37c14f,_0xa15b7c){_0x37c14f=_0x37c14f-0x0;let _0x46106a=_0xa15b[_0x37c14f];return _0x46106a;};import{Plugin as _0x480cb2}from'ckeditor5/src/core';export default class st extends _0x480cb2{constructor(_0x3bd6ca){super(_0x3bd6ca),this[_0x4610('0xf')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x4610('0x4')](){const _0x1e940e=this[_0x4610('0xe')],_0x4dc38c=_0x1e940e[_0x4610('0x6')][_0x4610('0x1')](_0x4610('0xa')),_0x5155cf=_0x1e940e[_0x4610('0x6')][_0x4610('0x1')](_0x4610('0x11'));_0x4dc38c&&(_0x4dc38c['on']('execute',(_0x283785,[,_0x35551a])=>{this[_0x4610('0xf')]=_0x5155cf[_0x4610('0x12')],_0x35551a[_0x4610('0x13')][_0x4610('0x2')]=!this[_0x4610('0xf')];},{'priority':_0x4610('0x10')}),this[_0x4610('0x7')](_0x4dc38c,'dataInsert',this['_handleImportedData'][_0x4610('0xd')](this)),this[_0x4610('0x7')](_0x4dc38c,_0x4610('0x5'),()=>{this[_0x4610('0x0')]&&(_0x5155cf[_0x4610('0x15')](),this[_0x4610('0x0')]=!0x1);},{'priority':_0x4610('0x9')}),_0x1e940e[_0x4610('0x14')][_0x4610('0x1')]('TrackChangesEditing')[_0x4610('0x16')](_0x4610('0xa')));}[_0x4610('0x3')](_0x1346da,_0x87e006){const {suggestions:_0x4f3391}=_0x87e006,_0x3a7d76=this[_0x4610('0xe')][_0x4610('0x6')][_0x4610('0x1')](_0x4610('0x11')),_0x3c1712=_0x3a7d76[_0x4610('0x12')];this[_0x4610('0xf')]!==_0x3c1712&&(_0x3a7d76[_0x4610('0x15')](),this[_0x4610('0x0')]=!0x0),_0x4f3391&&_0x4f3391[_0x4610('0xc')](({id:_0x73e3e7,type:_0x5b62ca,author:_0x1f0fe0,created_at:_0x98db3c})=>{const _0x1abdc5={'id':_0x73e3e7,'type':_0x5b62ca,'authorId':this[_0x4610('0xe')]['plugins'][_0x4610('0x1')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1f0fe0,'createdAt':_0x98db3c?new Date(_0x98db3c):new Date(),'source':_0x4610('0xa')}}};this[_0x4610('0xe')][_0x4610('0x14')]['get'](_0x4610('0xb'))[_0x4610('0x8')](_0x1abdc5);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1aed=['getItemLabel','getItems','locale','plugins','FORMAT_INDENT','has','format','registerDescriptionCallback','blockIndent','IndentBlock','afterInit','_registerBlockAttribute','indent','enableCommand','indentBlock','*Indent:*\x20%0','outdentBlock','TrackChangesEditing','_enableDefaultAttributesIntegration','commandName','formatBlock','_descriptionFactory','_registerLegacyDescription','*Outdent:*\x20%0'];(function(_0x4cd685,_0x1aed1c){const _0x2ab819=function(_0x5bf3e8){while(--_0x5bf3e8){_0x4cd685['push'](_0x4cd685['shift']());}};_0x2ab819(++_0x1aed1c);}(_0x1aed,0x1a7));const _0x2ab8=function(_0x4cd685,_0x1aed1c){_0x4cd685=_0x4cd685-0x0;let _0x2ab819=_0x1aed[_0x4cd685];return _0x2ab819;};import{Plugin as _0x1eda2f}from'ckeditor5/src/core';import{getTranslation as _0x11e1f7}from'../utils/common-translations';export default class ot extends _0x1eda2f{[_0x2ab8('0x13')](){const _0x63193d=this['editor'],_0x4f002d=_0x63193d['plugins']['get']('TrackChangesEditing');if(_0x63193d['plugins'][_0x2ab8('0xe')]('IndentEditing')&&(_0x4f002d[_0x2ab8('0x16')](_0x2ab8('0x15')),_0x4f002d[_0x2ab8('0x16')]('outdent')),_0x63193d['plugins']['has'](_0x2ab8('0x12')))for(const _0x3bb27c of[_0x2ab8('0x17'),_0x2ab8('0x1')])_0x4f002d[_0x2ab8('0x3')](_0x3bb27c);const _0x52a778=_0x63193d[_0x2ab8('0xb')];_0x4f002d[_0x2ab8('0x14')](_0x2ab8('0x11')),_0x4f002d[_0x2ab8('0x6')]['registerAttributeLabel'](_0x2ab8('0x11'),_0x11e1f7(_0x52a778,_0x2ab8('0xd'))),this[_0x2ab8('0x7')]();}['_registerLegacyDescription'](){const _0x1fa110=this['editor'],_0x38ee4a=_0x1fa110[_0x2ab8('0xb')],_0x13427a=_0x1fa110[_0x2ab8('0xc')]['get'](_0x2ab8('0x2'));_0x13427a['_descriptionFactory'][_0x2ab8('0x10')](_0x10f39a=>{if(_0x2ab8('0x5')!=_0x10f39a['type'])return;const {data:_0x1e8788}=_0x10f39a;if(!_0x1e8788)return;if('indentBlock'!=_0x1e8788[_0x2ab8('0x4')]&&'outdentBlock'!=_0x1e8788['commandName'])return;const _0x2bfa3b=_0x10f39a[_0x2ab8('0xa')]()[0x0],_0xa9a4ba=_0x13427a['_descriptionFactory'][_0x2ab8('0x9')](_0x2bfa3b);return _0x2ab8('0x17')==_0x1e8788[_0x2ab8('0x4')]?{'type':_0x2ab8('0xf'),'content':_0x11e1f7(_0x38ee4a,_0x2ab8('0x0'),_0xa9a4ba)}:_0x2ab8('0x1')==_0x1e8788[_0x2ab8('0x4')]?{'type':'format','content':_0x11e1f7(_0x38ee4a,_0x2ab8('0x8'),_0xa9a4ba)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11c9=['plugins','editor','TrackChangesEditing','enableCommand','input','requires'];(function(_0x2d6d13,_0x11c931){var _0x4944db=function(_0x14c2d6){while(--_0x14c2d6){_0x2d6d13['push'](_0x2d6d13['shift']());}};_0x4944db(++_0x11c931);}(_0x11c9,0x122));var _0x4944=function(_0x2d6d13,_0x11c931){_0x2d6d13=_0x2d6d13-0x0;var _0x4944db=_0x11c9[_0x2d6d13];return _0x4944db;};import{Plugin as _0x3a6695}from'ckeditor5/src/core';import{Input as _0x21b774}from'ckeditor5/src/typing';export default class rt extends _0x3a6695{static get[_0x4944('0x3')](){return[_0x21b774];}['init'](){this[_0x4944('0x5')][_0x4944('0x4')]['get'](_0x4944('0x0'))[_0x4944('0x1')](_0x4944('0x2'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d3b=['*Remove\x20link*','registerDescriptionCallback','locale','linkHref','key','link\x20(','attribute','unlink','registerAttributeLabel','afterInit','newValue','commandParams','_enableDefaultAttributesIntegration','_descriptionFactory','get','*Set\x20link:*\x20%0','plugins','format','LinkEditing','link','toLowerCase','type','TrackChangesEditing','manualDecorators','editor','commandName'];(function(_0x7ba2a5,_0x4d3b4a){const _0x153623=function(_0x3fbe8c){while(--_0x3fbe8c){_0x7ba2a5['push'](_0x7ba2a5['shift']());}};_0x153623(++_0x4d3b4a);}(_0x4d3b,0x84));const _0x1536=function(_0x7ba2a5,_0x4d3b4a){_0x7ba2a5=_0x7ba2a5-0x0;let _0x153623=_0x4d3b[_0x7ba2a5];return _0x153623;};import{Plugin as _0x492dcd}from'ckeditor5/src/core';import{getTranslation as _0x3a0a27}from'../utils/common-translations';export default class at extends _0x492dcd{[_0x1536('0x7')](){const _0x268e8d=this['editor'];if(!_0x268e8d[_0x1536('0xe')]['has'](_0x1536('0x10')))return;const _0x2e0e9f=_0x268e8d[_0x1536('0xe')][_0x1536('0xc')](_0x1536('0x14')),_0x1c6ffe=_0x268e8d['commands'][_0x1536('0xc')]('link');_0x2e0e9f['_enableDefaultAttributesIntegration'](_0x1536('0x11'),[_0x1536('0x1'),..._0x1c6ffe[_0x1536('0x15')]['map'](_0x16bc80=>_0x16bc80['id'])]),_0x2e0e9f[_0x1536('0xa')](_0x1536('0x5'));for(const _0xc818ae of _0x1c6ffe['manualDecorators'])_0x2e0e9f[_0x1536('0xb')][_0x1536('0x6')](_0xc818ae['id'],_0x1536('0x3')+_0xc818ae['label'][_0x1536('0x12')]()+')');_0x2e0e9f['_descriptionFactory'][_0x1536('0x19')](_0x2a455f=>{if(_0x1536('0x4')!=_0x2a455f['type'])return;const {data:_0x463b44}=_0x2a455f;if(!_0x463b44||_0x1536('0x1')!=_0x463b44[_0x1536('0x2')])return;const _0x4e5dc7=_0x463b44[_0x1536('0x8')],_0x1eac07=_0x268e8d['locale'];return{'type':_0x1536('0xf'),'content':_0x4e5dc7?_0x3a0a27(_0x1eac07,_0x1536('0xd'),'\x22'+_0x4e5dc7+'\x22'):_0x3a0a27(_0x1eac07,_0x1536('0x18'))};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x288fc0=this[_0x1536('0x16')],_0x1099a2=_0x288fc0[_0x1536('0x0')];_0x288fc0[_0x1536('0xe')][_0x1536('0xc')](_0x1536('0x14'))[_0x1536('0xb')][_0x1536('0x19')](_0x548135=>{if('formatInline'!=_0x548135[_0x1536('0x13')])return;const {data:_0x47de86}=_0x548135;if(_0x47de86){if('link'==_0x47de86[_0x1536('0x17')]){const _0x28925d=_0x47de86[_0x1536('0x9')][0x0];return{'type':_0x1536('0xf'),'content':_0x3a0a27(_0x1099a2,_0x1536('0xd'),'\x22'+_0x28925d+'\x22')};}return _0x1536('0x5')==_0x47de86[_0x1536('0x17')]?{'type':_0x1536('0xf'),'content':_0x3a0a27(_0x1099a2,'*Remove\x20link*')}:void 0x0;}});}}
|