@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231130.0 → 0.0.0-nightly-20231202.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 _0xd3ca=['TrackChangesEditing','has','toLowerCase','formatInline','_registerLegacyDescription','*Set\x20font\x20family:*\x20%0','label','*Set\x20font\x20size:*\x20%0','value','*Set\x20font\x20color:*\x20%0','*Reset\x20font\x20background\x20color*','registerDescriptionCallback','get','fontFamily','afterInit','FontSizeEditing','editor','config','model','trim','*Set\x20font\x20background\x20color:*\x20%0','FORMAT_FONT_BACKGROUND','_descriptionFactory','type','find','fontSize','FontSize','fontBackgroundColor','registerAttributeLabel','format','fontBackgroundColor.colors','commandParams','fontColor','locale','*Reset\x20font\x20size*','commandName','FORMAT_FONT_SIZE','plugins','title','FontBackgroundColorEditing'];(function(_0x55fd77,_0xd3caee){const _0x1e6e84=function(_0x2b7404){while(--_0x2b7404){_0x55fd77['push'](_0x55fd77['shift']());}};_0x1e6e84(++_0xd3caee);}(_0xd3ca,0x1cd));const _0x1e6e=function(_0x55fd77,_0xd3caee){_0x55fd77=_0x55fd77-0x0;let _0x1e6e84=_0xd3ca[_0x55fd77];return _0x1e6e84;};import{Plugin as _0x3cc20f}from'ckeditor5/src/core';import{normalizeColorOptions as _0x46ca6e}from'ckeditor5/src/ui';import{getTranslation as _0x136c1d}from'../utils/common-translations';const ro=[{'pluginName':_0x1e6e('0x22'),'commandName':_0x1e6e('0x4')},{'pluginName':'FontFamilyEditing','commandName':_0x1e6e('0x20')},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':_0x1e6e('0x12'),'commandName':_0x1e6e('0x6')}];export default class K extends _0x3cc20f{[_0x1e6e('0x21')](){const _0x38cca1=this['editor'][_0x1e6e('0xc')],_0x1963b0=this[_0x1e6e('0x23')][_0x1e6e('0x10')][_0x1e6e('0x1f')](_0x1e6e('0x13'));for(const {pluginName:_0x56605f,commandName:_0x3dc5e1}of ro)this[_0x1e6e('0x23')][_0x1e6e('0x10')][_0x1e6e('0x14')](_0x56605f)&&_0x1963b0['_enableDefaultAttributesIntegration'](_0x3dc5e1,[_0x3dc5e1]);_0x38cca1['t'],(_0x1963b0[_0x1e6e('0x1')][_0x1e6e('0x7')]('fontSize',_0x136c1d(_0x38cca1,_0x1e6e('0xf'))),_0x1963b0['_descriptionFactory'][_0x1e6e('0x7')]('fontFamily',_0x136c1d(_0x38cca1,'FORMAT_FONT_FAMILY')),_0x1963b0[_0x1e6e('0x1')]['registerAttributeLabel'](_0x1e6e('0xb'),_0x136c1d(_0x38cca1,'FORMAT_FONT_COLOR')),_0x1963b0[_0x1e6e('0x1')][_0x1e6e('0x7')](_0x1e6e('0x6'),_0x136c1d(_0x38cca1,_0x1e6e('0x0'))),this['_registerLegacyDescription']());}[_0x1e6e('0x17')](){const _0x31267f=this['editor'],_0x22c54c=_0x31267f[_0x1e6e('0xc')];_0x31267f[_0x1e6e('0x10')]['get']('TrackChangesEditing')[_0x1e6e('0x1')][_0x1e6e('0x1e')](_0x2ee7d8=>{const _0x2319dc=_0x22c54c['t'];if(_0x1e6e('0x16')!=_0x2ee7d8[_0x1e6e('0x2')])return;const {data:_0x33944a}=_0x2ee7d8;if(null!=_0x33944a){if(_0x1e6e('0x4')==_0x33944a[_0x1e6e('0xe')]){const _0x3454d5=_0x33944a[_0x1e6e('0xa')][0x0][_0x1e6e('0x1b')];if(_0x3454d5){const _0x4b39e4=_0x2319dc(this[_0x1e6e('0x23')][_0x1e6e('0x10')]['get'](_0x1e6e('0x5'))['normalizeSizeOptions'](this[_0x1e6e('0x23')]['config'][_0x1e6e('0x1f')]('fontSize.options'))[_0x1e6e('0x3')](_0x3fb5a6=>_0x3fb5a6[_0x1e6e('0x25')]==_0x3454d5)[_0x1e6e('0x11')])[_0x1e6e('0x15')]();return{'type':_0x1e6e('0x8'),'content':_0x136c1d(_0x22c54c,_0x1e6e('0x1a'),_0x4b39e4)};}return{'type':'format','content':_0x136c1d(_0x22c54c,_0x1e6e('0xd'))};}if(_0x1e6e('0x20')==_0x33944a['commandName']){const _0x32583a=_0x33944a['commandParams'][0x0][_0x1e6e('0x1b')];return _0x32583a?{'type':_0x1e6e('0x8'),'content':_0x136c1d(_0x22c54c,_0x1e6e('0x18'),_0x32583a)}:{'type':'format','content':_0x136c1d(_0x22c54c,'*Reset\x20font\x20family*')};}if(_0x1e6e('0xb')==_0x33944a[_0x1e6e('0xe')]){const _0x33bb97=_0x33944a['commandParams'][0x0]['value'];if(_0x33bb97){const _0x9a3afd=_0x46ca6e(this['editor'][_0x1e6e('0x24')][_0x1e6e('0x1f')]('fontColor.colors'))[_0x1e6e('0x3')](_0x3d3f9e=>_0x3d3f9e[_0x1e6e('0x25')]==_0x33bb97);let _0x5a538a=_0x33bb97,_0x31a188='';return _0x9a3afd&&(_0x5a538a=_0x9a3afd[_0x1e6e('0x19')],_0x31a188=_0x2319dc(_0x5a538a)[_0x1e6e('0x15')]()),{'type':_0x1e6e('0x8'),'content':_0x136c1d(_0x22c54c,_0x1e6e('0x1c'),_0x31a188)[_0x1e6e('0x26')](),'color':{'value':_0x33bb97,'title':_0x31a188||_0x5a538a}};}return{'type':'format','content':_0x136c1d(_0x22c54c,'*Reset\x20font\x20color*')};}if(_0x1e6e('0x6')==_0x33944a[_0x1e6e('0xe')]){const _0x7fc2f3=_0x33944a[_0x1e6e('0xa')][0x0]['value'];if(_0x7fc2f3){const _0x3b3b7e=_0x46ca6e(this[_0x1e6e('0x23')][_0x1e6e('0x24')]['get'](_0x1e6e('0x9')))[_0x1e6e('0x3')](_0x1be7fe=>_0x1be7fe['model']==_0x7fc2f3);let _0x441356=_0x7fc2f3,_0x3fbdbd='';return _0x3b3b7e&&(_0x441356=_0x3b3b7e[_0x1e6e('0x19')],_0x3fbdbd=_0x2319dc(_0x441356)[_0x1e6e('0x15')]()),{'type':_0x1e6e('0x8'),'content':_0x136c1d(_0x22c54c,_0x1e6e('0x27'),_0x3fbdbd)['trim'](),'color':{'value':_0x7fc2f3,'title':_0x3fbdbd||_0x441356}};}return{'type':_0x1e6e('0x8'),'content':_0x136c1d(_0x22c54c,_0x1e6e('0x1d'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21d2=['boolean','_descriptionFactory','*Remove\x20all\x20formatting*','fontSize','formatBlock','enableCommand','title','config','normalizeSizeOptions','_registerLegacyDescription','FontSize','join','afterInit','model','fontColor.colors','plugins','formatInline','editor','get','split','locale','_enableDefaultAttributesIntegration','toLowerCase','fontSize.options','pasteFormat','push','find','TrackChangesEditing','commandParams','commands','format','length','slice','type','toUpperCase','copyFormat'];(function(_0x1be750,_0x21d2df){const _0x27b21d=function(_0x296342){while(--_0x296342){_0x1be750['push'](_0x1be750['shift']());}};_0x27b21d(++_0x21d2df);}(_0x21d2,0xd9));const _0x27b2=function(_0x1be750,_0x21d2df){_0x1be750=_0x1be750-0x0;let _0x27b21d=_0x21d2[_0x1be750];return _0x27b21d;};import{Plugin as _0x592be}from'ckeditor5/src/core';import{normalizeColorOptions as _0x327aec}from'ckeditor5/src/ui';import{getTranslation as _0x3e9ec5}from'../utils/common-translations';export default class Q extends _0x592be{[_0x27b2('0xb')](){const _0xe6285b=this[_0x27b2('0x10')],_0x1c8cb7=_0xe6285b['plugins'][_0x27b2('0x11')](_0x27b2('0x1a')),_0x22f6bd=_0xe6285b[_0x27b2('0x1c')][_0x27b2('0x11')](_0x27b2('0x22')),_0x44dd8c=_0xe6285b[_0x27b2('0x1c')]['get'](_0x27b2('0x17'));_0x22f6bd&&_0x44dd8c&&(_0x1c8cb7[_0x27b2('0x14')](_0x27b2('0x17')),_0x1c8cb7[_0x27b2('0x4')]('copyFormat'),this[_0x27b2('0x8')]());}[_0x27b2('0x8')](){const _0x863214=this[_0x27b2('0x10')],_0x303e4f=_0x863214[_0x27b2('0x13')];_0x863214[_0x27b2('0xe')][_0x27b2('0x11')](_0x27b2('0x1a'))[_0x27b2('0x0')]['registerDescriptionCallback'](_0x359d66=>{if(_0x27b2('0x3')!=_0x359d66[_0x27b2('0x20')]&&_0x27b2('0xf')!=_0x359d66[_0x27b2('0x20')])return;const {data:_0x1bb369}=_0x359d66;if(_0x1bb369&&_0x27b2('0x17')===_0x1bb369['commandName']){const _0x3b0bf2=[],_0x3baa7a=_0x1bb369[_0x27b2('0x1b')][0x0];for(const [_0x4f0641,_0x49ffb1]of Object['entries'](_0x3baa7a))_0x3b0bf2[_0x27b2('0x18')](ao(_0x863214,_0x4f0641,_0x49ffb1));return _0x3b0bf2[_0x27b2('0x1e')]?{'type':_0x27b2('0x1d'),'content':_0x3e9ec5(_0x303e4f,'*Set\x20format\x20to:*\x20%0',_0x3b0bf2[_0x27b2('0xa')](',\x20'))}:{'type':_0x27b2('0x1d'),'content':_0x3e9ec5(_0x303e4f,_0x27b2('0x1'))};}});}}function ao(_0x7579bd,_0x54bfc0,_0x320741){const _0x384655=_0x7579bd[_0x27b2('0x13')]['t'],_0x236646=_0x54bfc0[_0x27b2('0x12')](/(?=[A-Z])/)[_0x27b2('0xa')]('\x20'),_0x1e0625=_0x384655(_0x236646['charAt'](0x0)[_0x27b2('0x21')]()+_0x236646[_0x27b2('0x1f')](0x1))[_0x27b2('0x15')]();if(_0x27b2('0x23')==typeof _0x320741)return _0x1e0625;if('fontColor'===_0x54bfc0||'fontBackgroundColor'===_0x54bfc0){const _0x9cb12a=_0x327aec(_0x7579bd[_0x27b2('0x6')][_0x27b2('0x11')](_0x27b2('0xd')))['find'](_0x2f8fed=>_0x2f8fed['model']==_0x320741);return _0x1e0625+'\x20('+(_0x9cb12a?_0x384655(_0x9cb12a['label'])[_0x27b2('0x15')]():_0x320741)+')';}if(_0x27b2('0x2')===_0x54bfc0&&isNaN(parseFloat(_0x320741))){const _0x1ec420=_0x7579bd[_0x27b2('0xe')][_0x27b2('0x11')](_0x27b2('0x9'))[_0x27b2('0x7')](_0x7579bd['config']['get'](_0x27b2('0x16')))[_0x27b2('0x19')](_0x56e5a2=>_0x56e5a2[_0x27b2('0xc')]==_0x320741);return _0x1e0625+'\x20('+(_0x1ec420?_0x384655(_0x1ec420[_0x27b2('0x5')])[_0x27b2('0x15')]():_0x320741)+')';}return _0x1e0625+'\x20('+_0x320741+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28c8=['TrackChangesEditing','*Change\x20to:*\x20%0','afterInit','commandName','model','has','type','ELEMENT_HEADING_CUSTOM','editor','registerElementLabel','format','plugins','_enableDefaultAttributesIntegration','get','heading','match','view','find','_registerLegacyDescription','_headingOptions','locale','HeadingEditing','_descriptionFactory','ELEMENT_HEADING','heading.options','value'];(function(_0x5a4c07,_0x28c8ca){const _0x4ab6b3=function(_0x5ba63d){while(--_0x5ba63d){_0x5a4c07['push'](_0x5a4c07['shift']());}};_0x4ab6b3(++_0x28c8ca);}(_0x28c8,0x1df));const _0x4ab6=function(_0x5a4c07,_0x28c8ca){_0x5a4c07=_0x5a4c07-0x0;let _0x4ab6b3=_0x28c8[_0x5a4c07];return _0x4ab6b3;};import{Plugin as _0x21ad7f}from'ckeditor5/src/core';import{getTranslation as _0x5b99bc}from'../utils/common-translations';export default class X extends _0x21ad7f{[_0x4ab6('0x11')](){const _0x1eb7a7=this['editor'];if(!_0x1eb7a7[_0x4ab6('0x0')][_0x4ab6('0x14')](_0x4ab6('0xa')))return;this[_0x4ab6('0x8')]=_0x1eb7a7['config'][_0x4ab6('0x2')](_0x4ab6('0xd'));const _0x454fe9=_0x1eb7a7[_0x4ab6('0x9')],_0x56f5d6=_0x1eb7a7[_0x4ab6('0x0')]['get'](_0x4ab6('0xf'));_0x56f5d6[_0x4ab6('0x1')](_0x4ab6('0x3'));for(const _0x4fadca of this[_0x4ab6('0x8')])'paragraph'!=_0x4fadca['model']&&_0x56f5d6[_0x4ab6('0xb')][_0x4ab6('0x18')](_0x4fadca[_0x4ab6('0x13')],_0x14ba08=>{const _0x5dc1ca=this['_getHeadingLevel'](_0x4fadca[_0x4ab6('0x13')]);return null!==_0x5dc1ca?_0x2b2939(_0x14ba08,_0x5dc1ca):_0x2436b4(_0x14ba08,_0x4fadca['title']);});function _0x2b2939(_0x4ae40b,_0x5c28cf){return _0x5b99bc(_0x454fe9,_0x4ab6('0xc'),[_0x4ae40b,_0x5c28cf]);}function _0x2436b4(_0x74275c,_0x3ee2d4){return _0x5b99bc(_0x454fe9,_0x4ab6('0x16'),[_0x74275c,_0x3ee2d4]);}this['_registerLegacyDescription']();}[_0x4ab6('0x7')](){const _0x2d1b35=this[_0x4ab6('0x17')],_0x3a4bee=_0x2d1b35[_0x4ab6('0x9')];function _0x15a694(_0x127975,_0x58e26b){return _0x5b99bc(_0x3a4bee,'ELEMENT_HEADING_CUSTOM',[_0x127975,_0x58e26b]);}_0x2d1b35[_0x4ab6('0x0')][_0x4ab6('0x2')]('TrackChangesEditing')[_0x4ab6('0xb')]['registerDescriptionCallback'](_0x40918f=>{if('formatBlock'!=_0x40918f[_0x4ab6('0x15')])return;const {data:_0x39d975}=_0x40918f;if(_0x39d975&&'heading'==_0x39d975[_0x4ab6('0x12')]){const _0xb80864=_0x39d975['commandParams'][0x0][_0x4ab6('0xe')],_0x36e127=this['_getHeadingLevel'](_0xb80864);if(null!==_0x36e127)return{'type':_0x4ab6('0x19'),'content':_0x5b99bc(_0x3a4bee,_0x4ab6('0x10'),(_0x50d647=0x1,_0x32f5f0=_0x36e127,_0x5b99bc(_0x3a4bee,_0x4ab6('0xc'),[_0x50d647,_0x32f5f0])))};const _0x1dff52=this['_headingOptions'][_0x4ab6('0x6')](_0x44a079=>_0x44a079[_0x4ab6('0x13')]===_0xb80864)['title'];return{'type':_0x4ab6('0x19'),'content':_0x5b99bc(_0x3a4bee,'*Change\x20to:*\x20%0',_0x15a694(0x1,_0x1dff52))};}var _0x50d647,_0x32f5f0;});}['_getHeadingLevel'](_0x57c591){var _0x5ea1ce,_0x18df2b;const _0x361045=_0x57c591[_0x4ab6('0x4')](/^heading(\d+)/);if(_0x361045)return _0x361045[0x1];const _0xaa147e=null===(_0x5ea1ce=this[_0x4ab6('0x8')])||void 0x0===_0x5ea1ce?void 0x0:_0x5ea1ce[_0x4ab6('0x6')](_0x3973c5=>_0x3973c5[_0x4ab6('0x13')]==_0x57c591);if(_0xaa147e&&_0xaa147e[_0x4ab6('0x5')]){const _0x54a712=_0xaa147e[_0x4ab6('0x5')],_0x343c7f=(null!==(_0x18df2b=_0x54a712['name'])&&void 0x0!==_0x18df2b?_0x18df2b:_0x54a712)['match'](/^h(\d+)/);if(_0x343c7f)return _0x343c7f[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1256=['get','HighlightEditing','color','type','*Remove\x20highlight*','commandName','TrackChangesEditing','find','afterInit','model','value','highlight','*Set\x20highlight:*\x20%0','format','FORMAT_HIGHLIGHT','registerAttributeLabel','plugins','has','highlight.options','_registerLegacyDescription','editor','_descriptionFactory','title','formatInline','commandParams'];(function(_0x538de5,_0x1256ed){const _0x559cbc=function(_0x39605d){while(--_0x39605d){_0x538de5['push'](_0x538de5['shift']());}};_0x559cbc(++_0x1256ed);}(_0x1256,0x1c3));const _0x559c=function(_0x538de5,_0x1256ed){_0x538de5=_0x538de5-0x0;let _0x559cbc=_0x1256[_0x538de5];return _0x559cbc;};import{Plugin as _0x202eca}from'ckeditor5/src/core';import{getTranslation as _0x52d7d8}from'../utils/common-translations';export default class Y extends _0x202eca{[_0x559c('0x7')](){const _0x3a3108=this[_0x559c('0x13')];if(!_0x3a3108[_0x559c('0xf')][_0x559c('0x10')](_0x559c('0x0')))return;const _0x54d1e3=_0x3a3108['plugins'][_0x559c('0x18')](_0x559c('0x5')),_0x236bae=_0x3a3108['locale'];_0x54d1e3['_enableDefaultAttributesIntegration'](_0x559c('0xa'),['highlight']),_0x54d1e3['_descriptionFactory'][_0x559c('0xe')](_0x559c('0xa'),_0x52d7d8(_0x236bae,_0x559c('0xd'))),this[_0x559c('0x12')]();}[_0x559c('0x12')](){const _0x1a92ad=this[_0x559c('0x13')],_0x2256a9=_0x1a92ad['locale'];_0x1a92ad[_0x559c('0xf')][_0x559c('0x18')](_0x559c('0x5'))[_0x559c('0x14')]['registerDescriptionCallback'](_0x29a959=>{if(_0x559c('0x16')!=_0x29a959[_0x559c('0x2')])return;const {data:_0x354db9}=_0x29a959;if(_0x354db9&&_0x559c('0xa')==_0x354db9[_0x559c('0x4')]){const _0x519885=_0x2256a9['t'],_0x8b9f4=_0x354db9[_0x559c('0x17')][0x0][_0x559c('0x9')];if(_0x8b9f4){const _0x506650=_0x1a92ad['config']['get'](_0x559c('0x11'))[_0x559c('0x6')](_0x3b1b2d=>_0x3b1b2d[_0x559c('0x8')]==_0x8b9f4),_0x59ae86=_0x519885(_0x506650[_0x559c('0x15')])['toLowerCase']();return{'type':_0x559c('0xc'),'content':_0x52d7d8(_0x2256a9,_0x559c('0xb'),_0x59ae86),'color':{'value':_0x506650[_0x559c('0x1')],'title':_0x506650[_0x559c('0x15')]}};}return{'type':_0x559c('0xc'),'content':_0x52d7d8(_0x2256a9,_0x559c('0x3'),_0x52d7d8(_0x2256a9,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c0d=['div','showSuggestionHighlights','elementToStructure','enableCommand','_descriptionFactory','registerElementLabel','get','HorizontalLineEditing','horizontalLine','has','plugins','createPositionAt','createContainerElement','dataDowncast','ck-horizontal-line','addClass','for','TrackChangesEditing'];(function(_0x468f7e,_0x2c0d4f){const _0x1da5fc=function(_0x5c58d4){while(--_0x5c58d4){_0x468f7e['push'](_0x468f7e['shift']());}};_0x1da5fc(++_0x2c0d4f);}(_0x2c0d,0x18c));const _0x1da5=function(_0x468f7e,_0x2c0d4f){_0x468f7e=_0x468f7e-0x0;let _0x1da5fc=_0x2c0d[_0x468f7e];return _0x1da5fc;};import{Plugin as _0x39a342}from'ckeditor5/src/core';import{getTranslation as _0x43a169}from'../utils/common-translations';export default class Z extends _0x39a342{['afterInit'](){const _0x571a61=this['editor'];if(!_0x571a61['plugins'][_0x1da5('0x9')](_0x1da5('0x7')))return;_0x571a61[_0x1da5('0xa')]['get'](_0x1da5('0x11'))[_0x1da5('0x3')](_0x1da5('0x8'));const _0x85f52d=_0x571a61['plugins'][_0x1da5('0x6')](_0x1da5('0x11')),_0x2e76cf=_0x571a61['locale'];_0x85f52d[_0x1da5('0x4')][_0x1da5('0x5')](_0x1da5('0x8'),_0x1987b1=>_0x43a169(_0x2e76cf,'ELEMENT_HORIZONTAL_LINE',_0x1987b1)),_0x571a61['conversion'][_0x1da5('0x10')](_0x1da5('0xd'))[_0x1da5('0x2')]({'model':_0x1da5('0x8'),'view':(_0xd1bd84,{writer:_0x530c1b,options:_0x15e773})=>{if(!_0x15e773[_0x1da5('0x1')])return null;const _0x4be524=_0x530c1b[_0x1da5('0xc')](_0x1da5('0x0')),_0xad9c29=_0x530c1b['createEmptyElement']('hr');return _0x530c1b[_0x1da5('0xf')](_0x1da5('0xe'),_0x4be524),_0x530c1b['insert'](_0x530c1b[_0x1da5('0xb')](_0x4be524,0x0),_0xad9c29),_0x4be524;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b01=['_enableDefaultAttributesIntegration','TrackChangesEditing','registerDescriptionCallback','attribute','*Change\x20%0\x20content*','format','value','_descriptionFactory','ELEMENT_HTML_EMBED','element','plugins','getFirstRange','rawHtml','editor','htmlEmbed','locale','key','registerElementLabel','get','commandName','nodeAfter','HtmlEmbed','formatBlock','_registerLegacyDescription','has','start','type'];(function(_0x4ef7cb,_0x5b012c){const _0x34b028=function(_0x203941){while(--_0x203941){_0x4ef7cb['push'](_0x4ef7cb['shift']());}};_0x34b028(++_0x5b012c);}(_0x5b01,0x1b0));const _0x34b0=function(_0x4ef7cb,_0x5b012c){_0x4ef7cb=_0x4ef7cb-0x0;let _0x34b028=_0x5b01[_0x4ef7cb];return _0x34b028;};import{Plugin as _0x49bb9a}from'ckeditor5/src/core';import{getTranslation as _0x18dc28}from'../utils/common-translations';export default class tt extends _0x49bb9a{['afterInit'](){const _0x2fa2e9=this[_0x34b0('0xd')];if(!_0x2fa2e9[_0x34b0('0xa')][_0x34b0('0x18')](_0x34b0('0x15')))return;const _0x402637=_0x2fa2e9['plugins'][_0x34b0('0x12')](_0x34b0('0x1')),_0x3cd278=_0x2fa2e9['locale'];_0x402637['_descriptionFactory'][_0x34b0('0x11')](_0x34b0('0xc'),_0x5641fc=>_0x18dc28(_0x3cd278,'ELEMENT_HTML_EMBED',_0x5641fc)),_0x402637[_0x34b0('0x0')](_0x34b0('0xe'),[],[_0x34b0('0x6')]),_0x402637[_0x34b0('0x7')][_0x34b0('0x2')](_0x472955=>{if(_0x34b0('0x3')!=_0x472955[_0x34b0('0x1a')])return;const {data:_0x29c1b8}=_0x472955;if(_0x29c1b8&&_0x34b0('0x6')==_0x29c1b8[_0x34b0('0x10')]&&_0x472955[_0x34b0('0xb')]()[_0x34b0('0x19')][_0x34b0('0x14')]['is'](_0x34b0('0x9'),_0x34b0('0xc'))){const _0x55a727=_0x18dc28(_0x3cd278,_0x34b0('0x8'));return{'type':_0x34b0('0x5'),'content':_0x18dc28(_0x3cd278,_0x34b0('0x4'),_0x55a727)};}}),this['_registerLegacyDescription']();}[_0x34b0('0x17')](){const _0x43891c=this[_0x34b0('0xd')],_0x3cbc55=_0x43891c[_0x34b0('0xf')];_0x43891c['plugins'][_0x34b0('0x12')]('TrackChangesEditing')['_descriptionFactory'][_0x34b0('0x2')](_0x5e69e5=>{if(_0x34b0('0x16')!=_0x5e69e5[_0x34b0('0x1a')])return;const {data:_0xb6414f}=_0x5e69e5;if(_0xb6414f&&_0x34b0('0xe')==_0xb6414f[_0x34b0('0x13')]){const _0x438e73=_0x18dc28(_0x3cbc55,_0x34b0('0x8'));return{'type':_0x34b0('0x5'),'content':_0x18dc28(_0x3cbc55,'*Change\x20%0\x20content*',_0x438e73)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4432=['subType','registerElementLabel','getNearestSelectionRange','find','forward','model','newValue','createRange','previous','selection','join','markDeletion','imageTextAlternative','format','afterInit','commandParams','FORMAT_IMAGE_SIZE','ImageTextAlternativeEditing','imageTypeInline','isEqual','addObject','_enableDefaultAttributesIntegration','ELEMENT_INLINE_IMAGE','isBefore','key','locale','isCollapsed','length','commandName','change','toNext','formatInline','ELEMENT_CAPTION','Inline\x20image\x20to\x20block\x20image','registerDescriptionCallback','element','_descriptionFactory','getSuggestionCallback','isIntersecting','forceDefaultExecution','isOwn','formatBlock','nodeBefore','resizeImage','alt','*Remove\x20image\x20text\x20alternative*','accept','imageStylePreApply','convertBlockImageToInline','registerCustomCallback','get','editor','TrackChangesEditing','discard','ImageEditing','isBlockImage','ImageBlockEditing','nodeAfter','markBlockFormat','imageCaption','createRangeOn','has','backward','chain','ImageUploadEditing','schema','_registerLegacyDescription','insertion','uploadImage','*Set\x20image\x20width:*\x20%0','ELEMENT_IMAGE','convertInlineImageToBlock','_findSuggestions','imageTypeBlock','getContainedElement','imageInline','start','getFirstRange','ImageCaptionUtils','Block\x20image\x20to\x20inline\x20image','markInsertion','plugins','_suggestionFactory','detach','findIndex','fromPosition','*Set\x20image\x20text\x20alternative:*\x20%0','type','resizedWidth','caption','ImageInlineEditing','document','getCaptionFromImageModelElement','insertImage','removeObject','enableCommand','end','getClosestSelectedImageElement'];(function(_0x172fa1,_0x443299){const _0x59b3c0=function(_0x5b3ef4){while(--_0x5b3ef4){_0x172fa1['push'](_0x172fa1['shift']());}};_0x59b3c0(++_0x443299);}(_0x4432,0xc5));const _0x59b3=function(_0x172fa1,_0x443299){_0x172fa1=_0x172fa1-0x0;let _0x59b3c0=_0x4432[_0x172fa1];return _0x59b3c0;};import{Plugin as _0x229c32}from'ckeditor5/src/core';import{LivePosition as _0x4a1b7d}from'ckeditor5/src/engine';import{getTranslation as _0x25c499}from'../utils/common-translations';export default class it extends _0x229c32{[_0x59b3('0xd')](){const _0x1bbf9e=this[_0x59b3('0x32')];if(!_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x3c')](_0x59b3('0x35')))return;const _0x21dae2=_0x1bbf9e['plugins']['get'](_0x59b3('0x33')),_0x314e01=_0x1bbf9e[_0x59b3('0x50')]['get']('ImageUtils'),_0x1dc190=_0x1bbf9e[_0x59b3('0x18')];_0x21dae2[_0x59b3('0x5e')](_0x59b3('0x5c')),_0x21dae2[_0x59b3('0x23')][_0x59b3('0x0')]('imageBlock',_0xba049c=>_0x25c499(_0x1dc190,_0x59b3('0x45'),_0xba049c)),_0x21dae2[_0x59b3('0x23')][_0x59b3('0x0')](_0x59b3('0x4a'),_0x40c46f=>_0x25c499(_0x1dc190,_0x59b3('0x15'),_0x40c46f)),_0x21dae2[_0x59b3('0x23')]['registerElementLabel'](_0x59b3('0x58'),()=>_0x25c499(_0x1dc190,_0x59b3('0x1f'))),_0x1bbf9e['plugins']['has'](_0x59b3('0x3f'))&&_0x21dae2['enableCommand'](_0x59b3('0x43')),_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x3c')](_0x59b3('0x37'))&&_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x3c')](_0x59b3('0x59'))&&(_0x21dae2[_0x59b3('0x5e')]('imageTypeInline',(_0x1b989f,_0x5ac89d)=>{const _0x5837b7=_0x314e01[_0x59b3('0x60')](_0x1bbf9e['model']['document'][_0x59b3('0x8')]);_0x1bbf9e[_0x59b3('0x4')]['change'](()=>{_0x21dae2[_0x59b3('0x39')](_0x5837b7,{'commandName':_0x59b3('0x11'),'commandParams':[_0x5ac89d]},[],_0x59b3('0x2f'));});}),_0x21dae2[_0x59b3('0x5e')](_0x59b3('0x48'),(_0x26d94b,_0x513d69)=>{_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x1c')](_0x13a037=>{let _0x325f9=_0x314e01[_0x59b3('0x60')](_0x1bbf9e['model'][_0x59b3('0x5a')][_0x59b3('0x8')]),_0x36bc14=_0x13a037[_0x59b3('0x3b')](_0x325f9);const _0x4d2705=_0x4a1b7d['fromPosition'](_0x36bc14['start'],'toPrevious'),_0x127f2d=_0x4a1b7d[_0x59b3('0x54')](_0x36bc14[_0x59b3('0x5f')],_0x59b3('0x1d'));_0x21dae2[_0x59b3('0x26')](()=>_0x26d94b(_0x513d69)),_0x325f9=_0x314e01[_0x59b3('0x60')](_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x5a')][_0x59b3('0x8')]),_0x36bc14=_0x13a037[_0x59b3('0x3b')](_0x325f9);const _0x33d4a8=_0x13a037[_0x59b3('0x6')](_0x4d2705,_0x127f2d);_0x4d2705[_0x59b3('0x52')](),_0x127f2d[_0x59b3('0x52')](),_0x21dae2['markBlockFormat'](_0x325f9,{'commandName':_0x59b3('0x11'),'commandParams':[_0x513d69]},[],_0x59b3('0x46')),_0x33d4a8[_0x59b3('0x4b')][_0x59b3('0x16')](_0x36bc14[_0x59b3('0x4b')])&&_0x21dae2[_0x59b3('0x4f')](_0x13a037[_0x59b3('0x6')](_0x33d4a8[_0x59b3('0x4b')],_0x36bc14[_0x59b3('0x4b')]),'convertInlineImageToBlock'),_0x36bc14[_0x59b3('0x5f')][_0x59b3('0x16')](_0x33d4a8['end'])&&_0x21dae2[_0x59b3('0x4f')](_0x13a037[_0x59b3('0x6')](_0x36bc14[_0x59b3('0x5f')],_0x33d4a8[_0x59b3('0x5f')]),_0x59b3('0x46'));});}),_0x21dae2[_0x59b3('0x51')]['registerCustomCallback'](_0x59b3('0x28'),_0x59b3('0x46'),_0x59b3('0x9'),()=>!0x1),_0x21dae2[_0x59b3('0x51')]['registerCustomCallback']('formatBlock',_0x59b3('0x46'),_0x59b3('0x2d'),()=>!0x1),_0x21dae2['_suggestionFactory'][_0x59b3('0x30')](_0x59b3('0x28'),_0x59b3('0x46'),_0x59b3('0x34'),_0x21dae2['_suggestionFactory'][_0x59b3('0x24')](_0x59b3('0x28'),'','accept')),_0x21dae2[_0x59b3('0x51')][_0x59b3('0x30')](_0x59b3('0x42'),_0x59b3('0x46'),_0x59b3('0x9'),()=>!0x1),_0x21dae2[_0x59b3('0x51')][_0x59b3('0x30')](_0x59b3('0x42'),_0x59b3('0x46'),_0x59b3('0x34'),([_0x306ef6])=>{const _0x3dc675=_0x21dae2[_0x59b3('0x51')][_0x59b3('0x24')]('insertion','','discard');let _0x426f27=_0x306ef6['start'],_0x309f87=_0x306ef6[_0x59b3('0x5f')];const _0x14a73c=_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x40')][_0x59b3('0x1')](_0x426f27,_0x59b3('0x3d')),_0x50d913=_0x1bbf9e[_0x59b3('0x4')]['schema'][_0x59b3('0x1')](_0x309f87,_0x59b3('0x3'));_0x14a73c[_0x59b3('0x19')]&&(_0x426f27=_0x14a73c[_0x59b3('0x4b')]),_0x50d913[_0x59b3('0x19')]&&(_0x309f87=_0x50d913[_0x59b3('0x5f')]),_0x3dc675([_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x6')](_0x426f27,_0x309f87)]);}),_0x21dae2[_0x59b3('0x51')][_0x59b3('0x30')]('formatBlock','convertInlineImageToBlock','chain',_0x3cd496),_0x21dae2[_0x59b3('0x51')][_0x59b3('0x30')](_0x59b3('0x42'),_0x59b3('0x46'),_0x59b3('0x3e'),_0x3cd496)),_0x1bbf9e['plugins'][_0x59b3('0x3c')]('ImageCaptionEditing')&&(_0x21dae2[_0x59b3('0x5e')]('toggleImageCaption',(_0x160726,_0x17f84d)=>{const _0x2ae189=_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x31')](_0x59b3('0x4d'));let _0x99915d=_0x314e01[_0x59b3('0x60')](_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x5a')][_0x59b3('0x8')]),_0x1f4e75=_0x2ae189[_0x59b3('0x5b')](_0x99915d);_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x1c')](()=>{if(_0x1f4e75)return void _0x21dae2[_0x59b3('0xa')](_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x3b')](_0x1f4e75));const _0x9aa82c=_0x314e01[_0x59b3('0x36')](_0x99915d);_0x160726(_0x17f84d),_0x99915d=_0x314e01[_0x59b3('0x60')](_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x5a')]['selection']),_0x1f4e75=_0x2ae189['getCaptionFromImageModelElement'](_0x99915d),_0x21dae2[_0x59b3('0x4f')](_0x1bbf9e[_0x59b3('0x4')][_0x59b3('0x3b')](_0x1f4e75),_0x9aa82c?null:_0x59b3('0x3a'));});}),_0x21dae2['_suggestionFactory'][_0x59b3('0x30')](_0x59b3('0x42'),_0x59b3('0x3a'),'chain',_0x3cd496));const _0x355e81=[{'type':'formatBlock','subType':_0x59b3('0x2e')},{'type':_0x59b3('0x42'),'subType':_0x59b3('0x3a')},{'type':_0x59b3('0x28'),'subType':_0x59b3('0x46')},{'type':_0x59b3('0x42'),'subType':_0x59b3('0x46')}];function _0x5b0b63(_0x4280b3,_0x390c17){const _0x6ad1d8=_0x355e81['findIndex'](({type:_0x109679,subType:_0x5cbff2})=>_0x4280b3[_0x59b3('0x56')]==_0x109679&&_0x4280b3[_0x59b3('0x61')]==_0x5cbff2),_0x70926=_0x355e81[_0x59b3('0x53')](({type:_0x39772b,subType:_0x2bce19})=>_0x390c17['type']==_0x39772b&&_0x390c17[_0x59b3('0x61')]==_0x2bce19);if(_0x6ad1d8<0x0||_0x70926<0x0)return!0x1;const _0x32cfe4=_0x4280b3[_0x59b3('0x4c')](),_0x2c7e9a=_0x390c17[_0x59b3('0x4c')]();if((0x0==_0x6ad1d8||0x1==_0x6ad1d8)&&0x2==_0x70926&&_0x32cfe4[_0x59b3('0x25')](_0x2c7e9a))return!0x0;if(0x2==_0x6ad1d8&&0x3==_0x70926){const _0x46fc3a=_0x21dae2[_0x59b3('0x47')](_0x32cfe4,'insertion')['filter'](({suggestion:_0x17ec63,meta:_0x4fbc35})=>_0x4fbc35[_0x59b3('0x27')]&&_0x59b3('0x46')==_0x17ec63[_0x59b3('0x61')]);if(_0x46fc3a[_0x59b3('0x1a')]>0x1&&_0x2c7e9a[_0x59b3('0x5f')]['isEqual'](_0x32cfe4[_0x59b3('0x4b')]))return!0x0;if(0x1==_0x46fc3a[_0x59b3('0x1a')]&&(_0x32cfe4[_0x59b3('0x4b')][_0x59b3('0x12')](_0x2c7e9a['end'])||_0x32cfe4[_0x59b3('0x5f')][_0x59b3('0x12')](_0x2c7e9a['start'])))return!0x0;}if(0x3==_0x6ad1d8&&0x3==_0x70926&&_0x32cfe4['start'][_0x59b3('0x16')](_0x2c7e9a['start'])){const _0x2313ac=_0x32cfe4[_0x59b3('0x5f')][_0x59b3('0x38')],_0x114168=_0x2c7e9a[_0x59b3('0x4b')][_0x59b3('0x29')];return _0x314e01[_0x59b3('0x36')](_0x2313ac)&&_0x2313ac===_0x114168;}return!0x1;}function _0x3cd496(_0x53bb73,_0x1b33bc){return _0x5b0b63(_0x53bb73,_0x1b33bc)?[_0x53bb73,_0x1b33bc]:_0x5b0b63(_0x1b33bc,_0x53bb73)?[_0x1b33bc,_0x53bb73]:null;}_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x3c')]('ImageResize')&&(_0x21dae2[_0x59b3('0x14')](_0x59b3('0x2a'),[],[_0x59b3('0x57')]),_0x21dae2[_0x59b3('0x23')]['registerAttributeLabel'](_0x59b3('0x57'),_0x25c499(_0x1dc190,_0x59b3('0xf')))),_0x1bbf9e[_0x59b3('0x50')][_0x59b3('0x3c')](_0x59b3('0x10'))&&_0x21dae2[_0x59b3('0x14')](_0x59b3('0xb'),[],[_0x59b3('0x2b')]),_0x21dae2[_0x59b3('0x23')][_0x59b3('0x21')](_0x3e0e50=>{if(!!_0x355e81[_0x59b3('0x2')](({type:_0x2f5307,subType:_0x28fdc5})=>_0x3e0e50[_0x59b3('0x56')]==_0x2f5307&&_0x3e0e50[_0x59b3('0x61')]==_0x28fdc5))return _0x3e0e50[_0x59b3('0x7')]?{}:void 0x0;}),_0x21dae2[_0x59b3('0x23')]['registerDescriptionCallback'](_0x52fa00=>{if(_0x59b3('0x42')==_0x52fa00[_0x59b3('0x56')]||'deletion'==_0x52fa00[_0x59b3('0x56')]){const _0x4de58b=_0x52fa00[_0x59b3('0x49')]();if(_0x4de58b&&_0x4de58b['is'](_0x59b3('0x22'),'caption'))return{'type':_0x59b3('0x42')==_0x52fa00[_0x59b3('0x56')]?_0x59b3('0x13'):_0x59b3('0x5d'),'element':_0x4de58b,'quantity':0x1};}}),_0x21dae2[_0x59b3('0x23')][_0x59b3('0x21')](_0x3028df=>'formatBlock'==_0x3028df['type']&&_0x59b3('0x46')==_0x3028df[_0x59b3('0x61')]?{'type':_0x59b3('0xc'),'content':_0x59b3('0x20')}:_0x59b3('0x28')==_0x3028df[_0x59b3('0x56')]&&'convertBlockImageToInline'==_0x3028df[_0x59b3('0x61')]?{'type':_0x59b3('0xc'),'content':_0x59b3('0x4e')}:void 0x0),_0x21dae2[_0x59b3('0x23')][_0x59b3('0x21')](_0x58441f=>{if('attribute'!=_0x58441f[_0x59b3('0x56')])return;const {data:_0x5ebeeb}=_0x58441f;if(!_0x5ebeeb||_0x59b3('0x2b')!=_0x5ebeeb[_0x59b3('0x17')])return;const _0x3d0ac1=_0x5ebeeb[_0x59b3('0x5')];return _0x3d0ac1?{'type':_0x59b3('0xc'),'content':_0x25c499(_0x1dc190,_0x59b3('0x55'),'\x22'+_0x3d0ac1+'\x22')}:{'type':'format','content':_0x25c499(_0x1dc190,_0x59b3('0x2c'))};}),this['_registerLegacyDescription']();}[_0x59b3('0x41')](){const _0x233df6=this[_0x59b3('0x32')],_0x53177b=_0x233df6[_0x59b3('0x18')];_0x233df6['plugins'][_0x59b3('0x31')](_0x59b3('0x33'))['_descriptionFactory'][_0x59b3('0x21')](_0x87d24=>{if(_0x59b3('0x28')!=_0x87d24['type']&&_0x59b3('0x1e')!=_0x87d24[_0x59b3('0x56')])return;const {data:_0x55ac92}=_0x87d24;if(_0x55ac92){if(_0x59b3('0xb')==_0x55ac92[_0x59b3('0x1b')]){const _0x1fd6fe=_0x55ac92[_0x59b3('0xe')][0x0]['newValue'];return _0x1fd6fe?{'type':_0x59b3('0xc'),'content':_0x25c499(_0x53177b,_0x59b3('0x55'),'\x22'+_0x1fd6fe+'\x22')}:{'type':'format','content':_0x25c499(_0x53177b,_0x59b3('0x2c'))};}if(_0x59b3('0x2a')==_0x55ac92[_0x59b3('0x1b')]){const _0x12d5ac=_0x55ac92[_0x59b3('0xe')][0x0]['width'];return _0x12d5ac?{'type':_0x59b3('0xc'),'content':_0x25c499(_0x53177b,_0x59b3('0x44'),_0x12d5ac)}:{'type':_0x59b3('0xc'),'content':_0x25c499(_0x53177b,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x39ee=['createRange','registerDescriptionCallback','isBlockImage','previous','isIntersecting','*Remove\x20image\x20text\x20alternative*','deletion','alt','*Set\x20image\x20width:*\x20%0','model','_registerLegacyDescription','ImageEditing','type','toPrevious','getCaptionFromImageModelElement','isOwn','key','isEqual','subType','get','convertBlockImageToInline','findIndex','uploadImage','Block\x20image\x20to\x20inline\x20image','newValue','markDeletion','ImageUploadEditing','ELEMENT_INLINE_IMAGE','find','_findSuggestions','FORMAT_IMAGE_SIZE','join','chain','removeObject','Inline\x20image\x20to\x20block\x20image','getClosestSelectedImageElement','format','isBefore','document','formatInline','registerAttributeLabel','markInsertion','nodeAfter','getContainedElement','imageTypeInline','getFirstRange','ELEMENT_CAPTION','commandParams','selection','forward','schema','toggleImageCaption','isCollapsed','resizedWidth','ELEMENT_IMAGE','addObject','_descriptionFactory','imageTypeBlock','width','registerCustomCallback','imageCaption','imageTextAlternative','registerElementLabel','ImageResize','createRangeOn','enableCommand','_suggestionFactory','insertImage','caption','fromPosition','ImageCaptionUtils','end','plugins','insertion','change','_enableDefaultAttributesIntegration','convertInlineImageToBlock','detach','getNearestSelectionRange','markBlockFormat','ImageUtils','length','ImageInlineEditing','commandName','imageStylePreApply','locale','formatBlock','has','getSuggestionCallback','discard','accept','TrackChangesEditing','start','ImageTextAlternativeEditing'];(function(_0x373b9e,_0x39ee8d){const _0x51dbc7=function(_0x582243){while(--_0x582243){_0x373b9e['push'](_0x373b9e['shift']());}};_0x51dbc7(++_0x39ee8d);}(_0x39ee,0x14c));const _0x51db=function(_0x373b9e,_0x39ee8d){_0x373b9e=_0x373b9e-0x0;let _0x51dbc7=_0x39ee[_0x373b9e];return _0x51dbc7;};import{Plugin as _0x45a6f6}from'ckeditor5/src/core';import{LivePosition as _0x7ebbf1}from'ckeditor5/src/engine';import{getTranslation as _0x2ad2c4}from'../utils/common-translations';export default class it extends _0x45a6f6{['afterInit'](){const _0x29035a=this['editor'];if(!_0x29035a[_0x51db('0x16')]['has'](_0x51db('0x37')))return;const _0x1cd7ca=_0x29035a['plugins'][_0x51db('0x3f')](_0x51db('0x29')),_0x226cf5=_0x29035a[_0x51db('0x16')][_0x51db('0x3f')](_0x51db('0x1e')),_0x401199=_0x29035a[_0x51db('0x23')];_0x1cd7ca['enableCommand'](_0x51db('0x11')),_0x1cd7ca[_0x51db('0x6')][_0x51db('0xc')]('imageBlock',_0x219721=>_0x2ad2c4(_0x401199,_0x51db('0x4'),_0x219721)),_0x1cd7ca['_descriptionFactory']['registerElementLabel']('imageInline',_0x5645cc=>_0x2ad2c4(_0x401199,_0x51db('0x47'),_0x5645cc)),_0x1cd7ca['_descriptionFactory'][_0x51db('0xc')](_0x51db('0x12'),()=>_0x2ad2c4(_0x401199,_0x51db('0x5a'))),_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0x46'))&&_0x1cd7ca[_0x51db('0xf')](_0x51db('0x42')),_0x29035a[_0x51db('0x16')][_0x51db('0x25')]('ImageBlockEditing')&&_0x29035a['plugins']['has'](_0x51db('0x20'))&&(_0x1cd7ca[_0x51db('0xf')](_0x51db('0x58'),(_0x38151a,_0x38384f)=>{const _0x534c2f=_0x226cf5[_0x51db('0x4f')](_0x29035a[_0x51db('0x35')][_0x51db('0x52')]['selection']);_0x29035a['model'][_0x51db('0x18')](()=>{_0x1cd7ca[_0x51db('0x1d')](_0x534c2f,{'commandName':_0x51db('0x58'),'commandParams':[_0x38384f]},[],_0x51db('0x40'));});}),_0x1cd7ca[_0x51db('0xf')](_0x51db('0x7'),(_0xa52912,_0x1c9f2b)=>{_0x29035a[_0x51db('0x35')][_0x51db('0x18')](_0x5f7be2=>{let _0x5d7e30=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')]['document'][_0x51db('0x5c')]),_0x36b9bd=_0x5f7be2[_0x51db('0xe')](_0x5d7e30);const _0x5cb986=_0x7ebbf1[_0x51db('0x13')](_0x36b9bd[_0x51db('0x2a')],_0x51db('0x39')),_0x2844a9=_0x7ebbf1[_0x51db('0x13')](_0x36b9bd[_0x51db('0x15')],'toNext');_0x1cd7ca['forceDefaultExecution'](()=>_0xa52912(_0x1c9f2b)),_0x5d7e30=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')][_0x51db('0x52')][_0x51db('0x5c')]),_0x36b9bd=_0x5f7be2['createRangeOn'](_0x5d7e30);const _0x417224=_0x5f7be2[_0x51db('0x2c')](_0x5cb986,_0x2844a9);_0x5cb986[_0x51db('0x1b')](),_0x2844a9[_0x51db('0x1b')](),_0x1cd7ca[_0x51db('0x1d')](_0x5d7e30,{'commandName':_0x51db('0x58'),'commandParams':[_0x1c9f2b]},[],_0x51db('0x1a')),_0x417224['start']['isBefore'](_0x36b9bd['start'])&&_0x1cd7ca[_0x51db('0x55')](_0x5f7be2[_0x51db('0x2c')](_0x417224[_0x51db('0x2a')],_0x36b9bd['start']),_0x51db('0x1a')),_0x36b9bd[_0x51db('0x15')]['isBefore'](_0x417224[_0x51db('0x15')])&&_0x1cd7ca[_0x51db('0x55')](_0x5f7be2[_0x51db('0x2c')](_0x36b9bd[_0x51db('0x15')],_0x417224[_0x51db('0x15')]),_0x51db('0x1a'));});}),_0x1cd7ca[_0x51db('0x10')]['registerCustomCallback'](_0x51db('0x24'),_0x51db('0x1a'),'join',()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x24'),_0x51db('0x1a'),_0x51db('0x28'),()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')]('formatBlock',_0x51db('0x1a'),_0x51db('0x27'),_0x1cd7ca['_suggestionFactory'][_0x51db('0x26')](_0x51db('0x24'),'',_0x51db('0x28'))),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),_0x51db('0x1a'),_0x51db('0x4b'),()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),_0x51db('0x1a'),_0x51db('0x27'),([_0x293a70])=>{const _0x1b4bea=_0x1cd7ca['_suggestionFactory']['getSuggestionCallback'](_0x51db('0x17'),'',_0x51db('0x27'));let _0x422133=_0x293a70[_0x51db('0x2a')],_0x222e0a=_0x293a70[_0x51db('0x15')];const _0x552de9=_0x29035a[_0x51db('0x35')][_0x51db('0x0')][_0x51db('0x1c')](_0x422133,'backward'),_0x4062a9=_0x29035a[_0x51db('0x35')]['schema']['getNearestSelectionRange'](_0x222e0a,_0x51db('0x5d'));_0x552de9[_0x51db('0x2')]&&(_0x422133=_0x552de9['start']),_0x4062a9[_0x51db('0x2')]&&(_0x222e0a=_0x4062a9[_0x51db('0x15')]),_0x1b4bea([_0x29035a['model'][_0x51db('0x2c')](_0x422133,_0x222e0a)]);}),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x24'),_0x51db('0x1a'),_0x51db('0x4c'),_0x3765d0),_0x1cd7ca['_suggestionFactory'][_0x51db('0x9')]('insertion',_0x51db('0x1a'),_0x51db('0x4c'),_0x3765d0)),_0x29035a['plugins'][_0x51db('0x25')]('ImageCaptionEditing')&&(_0x1cd7ca[_0x51db('0xf')](_0x51db('0x1'),(_0x4527bb,_0x529e0e)=>{const _0x2196da=_0x29035a['plugins'][_0x51db('0x3f')](_0x51db('0x14'));let _0x4c94a0=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')]['document']['selection']),_0x2ddb24=_0x2196da['getCaptionFromImageModelElement'](_0x4c94a0);_0x29035a[_0x51db('0x35')][_0x51db('0x18')](()=>{if(_0x2ddb24)return void _0x1cd7ca[_0x51db('0x45')](_0x29035a[_0x51db('0x35')][_0x51db('0xe')](_0x2ddb24));const _0x47d856=_0x226cf5[_0x51db('0x2e')](_0x4c94a0);_0x4527bb(_0x529e0e),_0x4c94a0=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')][_0x51db('0x52')]['selection']),_0x2ddb24=_0x2196da[_0x51db('0x3a')](_0x4c94a0),_0x1cd7ca[_0x51db('0x55')](_0x29035a['model']['createRangeOn'](_0x2ddb24),_0x47d856?null:_0x51db('0xa'));});}),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),'imageCaption',_0x51db('0x4c'),_0x3765d0));const _0x3c9a19=[{'type':_0x51db('0x24'),'subType':_0x51db('0x22')},{'type':_0x51db('0x17'),'subType':_0x51db('0xa')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x51db('0x17'),'subType':_0x51db('0x1a')}];function _0x44a73b(_0x122eef,_0x4f18ea){const _0x4ec76c=_0x3c9a19[_0x51db('0x41')](({type:_0x4d3979,subType:_0x5bb8a2})=>_0x122eef[_0x51db('0x38')]==_0x4d3979&&_0x122eef[_0x51db('0x3e')]==_0x5bb8a2),_0x320998=_0x3c9a19[_0x51db('0x41')](({type:_0x2fe27c,subType:_0x4ff4e7})=>_0x4f18ea[_0x51db('0x38')]==_0x2fe27c&&_0x4f18ea['subType']==_0x4ff4e7);if(_0x4ec76c<0x0||_0x320998<0x0)return!0x1;const _0x269791=_0x122eef[_0x51db('0x59')](),_0x322eb6=_0x4f18ea[_0x51db('0x59')]();if((0x0==_0x4ec76c||0x1==_0x4ec76c)&&0x2==_0x320998&&_0x269791[_0x51db('0x30')](_0x322eb6))return!0x0;if(0x2==_0x4ec76c&&0x3==_0x320998){const _0x5d30b8=_0x1cd7ca[_0x51db('0x49')](_0x269791,_0x51db('0x17'))['filter'](({suggestion:_0x2d7a6c,meta:_0x130265})=>_0x130265[_0x51db('0x3b')]&&_0x51db('0x1a')==_0x2d7a6c['subType']);if(_0x5d30b8[_0x51db('0x1f')]>0x1&&_0x322eb6[_0x51db('0x15')][_0x51db('0x3d')](_0x269791['start']))return!0x0;if(0x1==_0x5d30b8[_0x51db('0x1f')]&&(_0x269791[_0x51db('0x2a')][_0x51db('0x3d')](_0x322eb6[_0x51db('0x15')])||_0x269791['end'][_0x51db('0x3d')](_0x322eb6[_0x51db('0x2a')])))return!0x0;}if(0x3==_0x4ec76c&&0x3==_0x320998&&_0x269791[_0x51db('0x2a')][_0x51db('0x51')](_0x322eb6['start'])){const _0x585661=_0x269791[_0x51db('0x15')][_0x51db('0x56')],_0x42dd70=_0x322eb6[_0x51db('0x2a')]['nodeBefore'];return _0x226cf5[_0x51db('0x2e')](_0x585661)&&_0x585661===_0x42dd70;}return!0x1;}function _0x3765d0(_0x28a510,_0x29684e){return _0x44a73b(_0x28a510,_0x29684e)?[_0x28a510,_0x29684e]:_0x44a73b(_0x29684e,_0x28a510)?[_0x29684e,_0x28a510]:null;}_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0xd'))&&(_0x1cd7ca['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x51db('0x3')]),_0x1cd7ca['_descriptionFactory'][_0x51db('0x54')](_0x51db('0x3'),_0x2ad2c4(_0x401199,_0x51db('0x4a')))),_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0x2b'))&&_0x1cd7ca[_0x51db('0x19')]('imageTextAlternative',[],['alt']),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x585265=>{if(!!_0x3c9a19[_0x51db('0x48')](({type:_0x4c5b62,subType:_0x280b71})=>_0x585265[_0x51db('0x38')]==_0x4c5b62&&_0x585265[_0x51db('0x3e')]==_0x280b71))return _0x585265[_0x51db('0x2f')]?{}:void 0x0;}),_0x1cd7ca['_descriptionFactory']['registerDescriptionCallback'](_0x4c98ba=>{if(_0x51db('0x17')==_0x4c98ba[_0x51db('0x38')]||_0x51db('0x32')==_0x4c98ba[_0x51db('0x38')]){const _0x58db67=_0x4c98ba[_0x51db('0x57')]();if(_0x58db67&&_0x58db67['is']('element','caption'))return{'type':_0x51db('0x17')==_0x4c98ba['type']?_0x51db('0x5'):_0x51db('0x4d'),'element':_0x58db67,'quantity':0x1};}}),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x237dd2=>_0x51db('0x24')==_0x237dd2[_0x51db('0x38')]&&_0x51db('0x1a')==_0x237dd2['subType']?{'type':_0x51db('0x50'),'content':_0x51db('0x4e')}:_0x51db('0x24')==_0x237dd2[_0x51db('0x38')]&&_0x51db('0x40')==_0x237dd2[_0x51db('0x3e')]?{'type':'format','content':_0x51db('0x43')}:void 0x0),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x2b7b77=>{if('attribute'!=_0x2b7b77[_0x51db('0x38')])return;const {data:_0x487ddf}=_0x2b7b77;if(!_0x487ddf||_0x51db('0x33')!=_0x487ddf[_0x51db('0x3c')])return;const _0x43485f=_0x487ddf[_0x51db('0x44')];return _0x43485f?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x401199,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43485f+'\x22')}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x401199,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x51db('0x36')]();}[_0x51db('0x36')](){const _0x3b75b9=this['editor'],_0x4baa4e=_0x3b75b9[_0x51db('0x23')];_0x3b75b9[_0x51db('0x16')]['get'](_0x51db('0x29'))['_descriptionFactory'][_0x51db('0x2d')](_0x1667c5=>{if(_0x51db('0x24')!=_0x1667c5[_0x51db('0x38')]&&_0x51db('0x53')!=_0x1667c5[_0x51db('0x38')])return;const {data:_0x3cfcdd}=_0x1667c5;if(_0x3cfcdd){if(_0x51db('0xb')==_0x3cfcdd[_0x51db('0x21')]){const _0x8453a5=_0x3cfcdd['commandParams'][0x0]['newValue'];return _0x8453a5?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8453a5+'\x22')}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,_0x51db('0x31'))};}if('resizeImage'==_0x3cfcdd[_0x51db('0x21')]){const _0xcc34c3=_0x3cfcdd[_0x51db('0x5b')][0x0][_0x51db('0x8')];return _0xcc34c3?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,_0x51db('0x34'),_0xcc34c3)}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4839=['formatBlock','format','*Format:*\x20replace\x20image\x20URL','key','registerDescriptionCallback','_enableDefaultAttributesIntegration','src','_descriptionFactory','plugins','newValue','commandName','discard','*Replace\x20image\x20URL*','replaceImageSource','_suggestionFactory','editor','get','has','type','oldValue','formatInline','accept','_registerLegacyDescription','attribute','TrackChangesEditing','locale','registerCustomCallback','_handleLegacySuggestions','getSuggestionCallback'];(function(_0x523042,_0x48392c){const _0x187527=function(_0x4974d6){while(--_0x4974d6){_0x523042['push'](_0x523042['shift']());}};_0x187527(++_0x48392c);}(_0x4839,0x79));const _0x1875=function(_0x523042,_0x48392c){_0x523042=_0x523042-0x0;let _0x187527=_0x4839[_0x523042];return _0x187527;};import{Plugin as _0x45f363}from'ckeditor5/src/core';import{getTranslation as _0x5701ad}from'../utils/common-translations';export default class et extends _0x45f363{['afterInit'](){if(!this[_0x1875('0xa')][_0x1875('0x3')][_0x1875('0xc')]('ImageEditing'))return;const _0x4f2533=this[_0x1875('0xa')][_0x1875('0x14')],_0x5e29c2=this[_0x1875('0xa')][_0x1875('0x3')][_0x1875('0xb')](_0x1875('0x13'));_0x5e29c2[_0x1875('0x0')]('replaceImageSource',[],[_0x1875('0x1')]),_0x5e29c2['_descriptionFactory'][_0x1875('0x1c')](_0x39a9ec=>{if(_0x1875('0x12')!=_0x39a9ec[_0x1875('0xd')])return;const {data:_0x1e231e}=_0x39a9ec;return _0x1e231e&&_0x1875('0x1')==_0x1e231e[_0x1875('0x1b')]?_0x1e231e[_0x1875('0x4')]&&_0x1e231e[_0x1875('0xe')]?{'type':_0x1875('0x19'),'content':_0x5701ad(_0x4f2533,_0x1875('0x7'))}:{'type':_0x1875('0x19'),'content':''}:void 0x0;}),this[_0x1875('0x16')]();}[_0x1875('0x16')](){const _0x36d3a5=this[_0x1875('0xa')][_0x1875('0x3')]['get'](_0x1875('0x13'));_0x36d3a5[_0x1875('0x9')][_0x1875('0x15')](_0x1875('0x18'),_0x1875('0x8'),_0x1875('0x10'),_0x36d3a5[_0x1875('0x9')]['getSuggestionCallback'](_0x1875('0x18'),null,'discard')),_0x36d3a5['_suggestionFactory'][_0x1875('0x15')](_0x1875('0x18'),_0x1875('0x8'),_0x1875('0x6'),_0x36d3a5[_0x1875('0x9')][_0x1875('0x17')]('formatBlock',null,'accept')),this['_registerLegacyDescription']();}[_0x1875('0x11')](){const _0x4095e1=this['editor'],_0x4be911=_0x4095e1[_0x1875('0x14')];_0x4095e1[_0x1875('0x3')]['get']('TrackChangesEditing')[_0x1875('0x2')][_0x1875('0x1c')](_0x4e6867=>{if('formatBlock'!=_0x4e6867[_0x1875('0xd')]&&_0x1875('0xf')!=_0x4e6867[_0x1875('0xd')])return;const {data:_0x4e2eac}=_0x4e6867;if(!_0x4e2eac||_0x1875('0x8')!=_0x4e2eac[_0x1875('0x5')])return;return{'type':_0x1875('0x19'),'content':_0x5701ad(_0x4be911,_0x1875('0x1a'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36d8=['subType','ImageStyleEditing','suggestion','isBefore','plugins','_descriptionFactory','getSuggestion','hasSuggestion','locale','type','name','get','TrackChangesEditing','document','isInlineImage','formatBlock','*Format:*\x20%0','isIntersecting','getClosestSelectedImageElement','title','has','commandParams','chain','normalizedStyles','forEach','Users','editor','registerPostFixer','getSuggestionCallback','commandReversedParams','_findSuggestions','getContainedElement','isBlockImage','registerCustomCallback','isEqual','imageTypeInline','findIndex','change','from','_suggestionFactory','format','filter','imageStyle','isOwn','registerDescriptionCallback','_registerLegacyDescription','markInlineFormat','commandName','getFirstRange','getChangedMarkers','imageStylePostApply','imageCaption','FORMAT_SIDE_IMAGE','next','differ','isInContent','value','model','end','commands','getSuggestions','convertInlineImageToBlock','toLowerCase','start','_splitMarkerName','discard','createRangeOn','nodeAfter','length','formatInline','refresh','shouldConvertImageType','imageTypeBlock','accept','join','afterInit','discardSuggestion','setImageNaturalSizeAttributes','side','newRange','insertion','author','ImageUtils','imageStylePreApply','selection'];(function(_0xa5559a,_0x36d8fa){const _0x317d6=function(_0x447167){while(--_0x447167){_0xa5559a['push'](_0xa5559a['shift']());}};_0x317d6(++_0x36d8fa);}(_0x36d8,0x8f));const _0x317d=function(_0xa5559a,_0x36d8fa){_0xa5559a=_0xa5559a-0x0;let _0x317d6=_0x36d8[_0xa5559a];return _0x317d6;};import{Plugin as _0x5b9596}from'ckeditor5/src/core';import{uid as _0x1824d2}from'ckeditor5/src/utils';import{getTranslation as _0x4f1306}from'../utils/common-translations';export default class nt extends _0x5b9596{[_0x317d('0x11')](){const _0x1e6a71=this[_0x317d('0x35')];if(!_0x1e6a71[_0x317d('0x1f')][_0x317d('0x2f')](_0x317d('0x1c')))return;const _0x175c91=_0x1e6a71[_0x317d('0x1f')]['get'](_0x317d('0x27')),_0x2e94ce=_0x1e6a71[_0x317d('0x1f')][_0x317d('0x26')](_0x317d('0x18')),_0x158ab9={};_0x175c91['enableCommand'](_0x317d('0x45'),(_0x1459ac,_0x462e93)=>{const _0x3e26bc=_0x1e6a71['plugins'][_0x317d('0x26')](_0x317d('0x34'))['me'],_0x16cad3=_0x1e6a71[_0x317d('0x1')][_0x317d('0x26')](_0x317d('0x45'));let _0x5b5193=_0x2e94ce['getClosestSelectedImageElement'](_0x1e6a71[_0x317d('0x54')][_0x317d('0x28')][_0x317d('0x1a')]),_0x73cc59=_0x1e6a71[_0x317d('0x54')][_0x317d('0x8')](_0x5b5193),_0x4d6fcd=_0x16cad3[_0x317d('0x53')];if(_0x4d6fcd==_0x462e93['value'])return;const _0x2de21d={'commandName':'imageStyle','commandParams':[_0x462e93],'formatGroupId':_0x1824d2()};_0x1e6a71[_0x317d('0x54')][_0x317d('0x40')](()=>{if(_0x175c91[_0x317d('0x2')]()['filter'](_0x2537e9=>_0x2537e9[_0x317d('0x52')]&&_0x3e26bc==_0x2537e9[_0x317d('0x17')]&&(_0x317d('0x2a')==_0x2537e9[_0x317d('0x24')]||_0x317d('0xb')==_0x2537e9[_0x317d('0x24')])&&(_0x317d('0x19')==_0x2537e9[_0x317d('0x1b')]||_0x317d('0x4d')==_0x2537e9[_0x317d('0x1b')])&&_0x2537e9[_0x317d('0x4b')]()['isEqual'](_0x73cc59))[_0x317d('0x33')](_0x10a193=>_0x175c91[_0x317d('0x12')](_0x10a193['head'])),_0x5b5193=_0x2e94ce[_0x317d('0x2d')](_0x1e6a71[_0x317d('0x54')][_0x317d('0x28')][_0x317d('0x1a')]),_0x73cc59=_0x1e6a71[_0x317d('0x54')][_0x317d('0x8')](_0x5b5193),_0x16cad3[_0x317d('0xc')](),_0x1e6a71[_0x317d('0x1')]['get'](_0x317d('0x3e'))['refresh'](),_0x1e6a71['commands'][_0x317d('0x26')](_0x317d('0xe'))[_0x317d('0xc')](),_0x4d6fcd=_0x16cad3[_0x317d('0x53')],_0x4d6fcd!=_0x462e93[_0x317d('0x53')])return _0x2e94ce[_0x317d('0x29')](_0x5b5193)&&_0x16cad3[_0x317d('0xd')](_0x462e93[_0x317d('0x53')],_0x5b5193)?(_0x1459ac({..._0x462e93,'setImageSizes':!0x1}),_0x5b5193=_0x2e94ce['getClosestSelectedImageElement'](_0x1e6a71['model']['document']['selection']),void _0x175c91['markBlockFormat'](_0x5b5193,{..._0x2de21d,'commandReversedParams':[{'value':_0x4d6fcd||null,'setImageSizes':!0x1}]},[],_0x317d('0x19'))):void(_0x2e94ce[_0x317d('0x3b')](_0x5b5193)?_0x175c91['markBlockFormat'](_0x5b5193,_0x2de21d,[],_0x317d('0x4d')):_0x175c91[_0x317d('0x49')](_0x73cc59,_0x2de21d,_0x317d('0x4d')));});});for(const _0x14f8cb of _0x1e6a71[_0x317d('0x1f')][_0x317d('0x26')](_0x317d('0x1c'))[_0x317d('0x32')])_0x158ab9[_0x14f8cb[_0x317d('0x25')]]=_0x14f8cb[_0x317d('0x2e')][_0x317d('0x4')]();_0x175c91[_0x317d('0x42')]['registerCustomCallback'](_0x317d('0x2a'),_0x317d('0x19'),'join',()=>!0x1),_0x175c91[_0x317d('0x42')][_0x317d('0x3c')](_0x317d('0x2a'),_0x317d('0x4d'),'join',()=>!0x1),_0x175c91['_suggestionFactory']['registerCustomCallback'](_0x317d('0xb'),'imageStylePostApply',_0x317d('0x10'),()=>!0x1),_0x175c91[_0x317d('0x42')][_0x317d('0x3c')](_0x317d('0x2a'),_0x317d('0x19'),_0x317d('0xf'),([_0x214d5b])=>{_0x2e94ce[_0x317d('0x13')](_0x214d5b[_0x317d('0x3a')]());}),_0x175c91[_0x317d('0x42')][_0x317d('0x3c')](_0x317d('0x2a'),_0x317d('0x19'),_0x317d('0x7'),(_0x419495,_0x531fef)=>{_0x175c91[_0x317d('0x42')][_0x317d('0x37')](_0x317d('0x2a'),'','accept')(_0x419495,{'commandName':_0x531fef[_0x317d('0x4a')],'commandParams':_0x531fef[_0x317d('0x38')]});}),_0x175c91[_0x317d('0x42')][_0x317d('0x3c')]('formatBlock',_0x317d('0x19'),_0x317d('0x31'),function(_0x3ae533,_0x19cae8){if(_0x518ff0(_0x3ae533,_0x19cae8))return[_0x3ae533,_0x19cae8];if(_0x518ff0(_0x19cae8,_0x3ae533))return[_0x19cae8,_0x3ae533];return null;});const _0x4a553a=[{'type':_0x317d('0x2a'),'subType':_0x317d('0x19')},{'type':_0x317d('0x16'),'subType':_0x317d('0x4e')},{'type':_0x317d('0x2a'),'subType':_0x317d('0x3')},{'type':_0x317d('0x16'),'subType':'convertInlineImageToBlock'}];function _0x518ff0(_0x1f46ab,_0x5dea40){const _0x1f135a=_0x4a553a[_0x317d('0x3f')](({type:_0x4700e3,subType:_0x5cd02f})=>_0x1f46ab[_0x317d('0x24')]==_0x4700e3&&_0x1f46ab['subType']==_0x5cd02f),_0x5081d5=_0x4a553a[_0x317d('0x3f')](({type:_0x6316b,subType:_0x5d4b60})=>_0x5dea40[_0x317d('0x24')]==_0x6316b&&_0x5dea40[_0x317d('0x1b')]==_0x5d4b60);if(_0x1f135a<0x0||_0x5081d5<0x0)return!0x1;const _0x1b203d=_0x1f46ab[_0x317d('0x4b')](),_0xa10c23=_0x5dea40[_0x317d('0x4b')]();if((0x0==_0x1f135a||0x1==_0x1f135a)&&0x2==_0x5081d5&&_0x1b203d[_0x317d('0x2c')](_0xa10c23))return!0x0;if(0x2==_0x1f135a&&0x3==_0x5081d5){const _0x163cc8=_0x175c91[_0x317d('0x39')](_0x1b203d,'insertion')[_0x317d('0x44')](({suggestion:_0x16d543,meta:_0x2df035})=>_0x2df035[_0x317d('0x46')]&&_0x317d('0x3')==_0x16d543[_0x317d('0x1b')]);if(_0x163cc8[_0x317d('0xa')]>0x1&&_0xa10c23[_0x317d('0x0')]['isEqual'](_0x1b203d[_0x317d('0x5')]))return!0x0;if(0x1==_0x163cc8[_0x317d('0xa')]&&(_0x1b203d[_0x317d('0x5')][_0x317d('0x3d')](_0xa10c23[_0x317d('0x0')])||_0x1b203d['end']['isEqual'](_0xa10c23['start'])))return!0x0;}if(0x3==_0x1f135a&&0x3==_0x5081d5&&_0x1b203d[_0x317d('0x5')][_0x317d('0x1e')](_0xa10c23[_0x317d('0x5')])){const _0x41b8c1=_0x1b203d[_0x317d('0x0')][_0x317d('0x9')],_0x54acd0=_0xa10c23[_0x317d('0x5')]['nodeBefore'];return _0x2e94ce[_0x317d('0x3b')](_0x41b8c1)&&_0x41b8c1===_0x54acd0;}return!0x1;}_0x1e6a71[_0x317d('0x54')][_0x317d('0x28')][_0x317d('0x36')](()=>{let _0xa8597a=!0x1;const _0x5673e3=Array[_0x317d('0x41')](_0x1e6a71['model'][_0x317d('0x28')][_0x317d('0x51')][_0x317d('0x4c')]());for(const {name:_0x243b79,data:_0x4d97de}of _0x5673e3){const {group:_0x304f01,type:_0x55b1b1,subType:_0x3320a6,id:_0x418fde}=_0x175c91[_0x317d('0x6')](_0x243b79);if(_0x317d('0x1d')==_0x304f01&&_0x175c91[_0x317d('0x22')](_0x418fde)){if(_0x317d('0x2a')==_0x55b1b1&&(_0x317d('0x19')==_0x3320a6||'imageStylePostApply'==_0x3320a6)){const _0x17f5e2=_0x175c91['getSuggestion'](_0x418fde);if(_0x4d97de['newRange']){const _0xb4f61c=_0x17f5e2[_0x317d('0x4b')]()[_0x317d('0x3a')]();if(_0x2e94ce[_0x317d('0x3b')](_0xb4f61c))continue;_0x175c91[_0x317d('0x12')](_0x17f5e2),_0xa8597a=!0x0;}}if(_0x317d('0x16')==_0x55b1b1&&_0x317d('0x4e')==_0x3320a6&&!_0x4d97de[_0x317d('0x15')]){const _0x14c768=_0x175c91[_0x317d('0x21')](_0x418fde);_0x14c768[_0x317d('0x50')]&&_0x14c768[_0x317d('0x50')]['isInContent']&&(_0x175c91['discardSuggestion'](_0x14c768['next']),_0xa8597a=!0x0);}}}return _0xa8597a;}),this[_0x317d('0x48')](_0x158ab9);}[_0x317d('0x48')](_0x35b9e4){const _0x418a58=this['editor'],_0x930645=_0x418a58[_0x317d('0x23')];_0x418a58[_0x317d('0x1f')][_0x317d('0x26')](_0x317d('0x27'))[_0x317d('0x20')][_0x317d('0x47')](_0x4e11fa=>{if(_0x317d('0x2a')!=_0x4e11fa['type']&&_0x317d('0xb')!=_0x4e11fa[_0x317d('0x24')])return;const {data:_0x2e4dbb}=_0x4e11fa;if(!_0x2e4dbb||_0x317d('0x45')!=_0x2e4dbb['commandName'])return;const _0x49d8d7=_0x2e4dbb[_0x317d('0x30')][0x0][_0x317d('0x53')];return _0x4e9580(_0x317d('0x14')===_0x49d8d7?_0x4f1306(_0x930645,_0x317d('0x4f')):_0x35b9e4[_0x49d8d7]||_0x49d8d7);function _0x4e9580(_0x8b399e){return{'type':_0x317d('0x43'),'content':_0x4f1306(_0x930645,_0x317d('0x2b'),_0x8b399e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x330d=['dataInsert','_trackChangesValueDuringImport','forEach','_trackChangesExecuted','value','importWord','get','execute','_handleImportedData','lowest','collaboration_features','commands','editor','TrackChangesEditing','plugins','listenTo','trackChanges','track_changes'];(function(_0x342f11,_0x330d6b){const _0xab9c16=function(_0x5743f3){while(--_0x5743f3){_0x342f11['push'](_0x342f11['shift']());}};_0xab9c16(++_0x330d6b);}(_0x330d,0x13f));const _0xab9c=function(_0x342f11,_0x330d6b){_0x342f11=_0x342f11-0x0;let _0xab9c16=_0x330d[_0x342f11];return _0xab9c16;};import{Plugin as _0x581c15}from'ckeditor5/src/core';export default class st extends _0x581c15{constructor(_0xd80359){super(_0xd80359),this[_0xab9c('0x6')]=!0x1,this[_0xab9c('0x8')]=!0x1;}['afterInit'](){const _0x8fe565=this[_0xab9c('0x11')],_0x5714d7=_0x8fe565['commands'][_0xab9c('0xb')](_0xab9c('0xa')),_0x43414a=_0x8fe565[_0xab9c('0x10')]['get'](_0xab9c('0x3'));_0x5714d7&&(_0x5714d7['on'](_0xab9c('0xc'),(_0xfd8584,[,_0x54b2b5])=>{this[_0xab9c('0x6')]=_0x43414a[_0xab9c('0x9')],_0x54b2b5[_0xab9c('0xf')][_0xab9c('0x4')]=!this[_0xab9c('0x6')];},{'priority':'high'}),this[_0xab9c('0x2')](_0x5714d7,_0xab9c('0x5'),this[_0xab9c('0xd')]['bind'](this)),this[_0xab9c('0x2')](_0x5714d7,_0xab9c('0x5'),()=>{this[_0xab9c('0x8')]&&(_0x43414a[_0xab9c('0xc')](),this[_0xab9c('0x8')]=!0x1);},{'priority':_0xab9c('0xe')}),_0x8fe565[_0xab9c('0x1')][_0xab9c('0xb')](_0xab9c('0x0'))['enableCommand'](_0xab9c('0xa')));}['_handleImportedData'](_0x2760d5,_0x44e14c){const {suggestions:_0xcf9a27}=_0x44e14c,_0x42c4c1=this['editor']['commands'][_0xab9c('0xb')](_0xab9c('0x3')),_0x154cdd=_0x42c4c1[_0xab9c('0x9')];this[_0xab9c('0x6')]!==_0x154cdd&&(_0x42c4c1['execute'](),this['_trackChangesExecuted']=!0x0),_0xcf9a27&&_0xcf9a27[_0xab9c('0x7')](({id:_0x13462c,type:_0x456075,author:_0x5fdcb3,created_at:_0x4ef213})=>{const _0x1e9450={'id':_0x13462c,'type':_0x456075,'authorId':this[_0xab9c('0x11')][_0xab9c('0x1')][_0xab9c('0xb')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5fdcb3,'createdAt':_0x4ef213?new Date(_0x4ef213):new Date(),'source':_0xab9c('0xa')}}};this[_0xab9c('0x11')][_0xab9c('0x1')][_0xab9c('0xb')](_0xab9c('0x0'))['_setSuggestionData'](_0x1e9450);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2372=['outdentBlock','type','afterInit','registerAttributeLabel','indentBlock','editor','IndentEditing','plugins','blockIndent','registerDescriptionCallback','get','commandName','getItemLabel','outdent','FORMAT_INDENT','_descriptionFactory','format','_registerLegacyDescription','TrackChangesEditing','*Outdent:*\x20%0','_enableDefaultAttributesIntegration','enableCommand','locale','has','IndentBlock','getItems'];(function(_0x53e392,_0x2372f7){const _0x176579=function(_0x3c0997){while(--_0x3c0997){_0x53e392['push'](_0x53e392['shift']());}};_0x176579(++_0x2372f7);}(_0x2372,0x1c4));const _0x1765=function(_0x53e392,_0x2372f7){_0x53e392=_0x53e392-0x0;let _0x176579=_0x2372[_0x53e392];return _0x176579;};import{Plugin as _0x2d1224}from'ckeditor5/src/core';import{getTranslation as _0x1c4ee6}from'../utils/common-translations';export default class ot extends _0x2d1224{[_0x1765('0x12')](){const _0x53d73f=this[_0x1765('0x15')],_0x149df9=_0x53d73f[_0x1765('0x17')][_0x1765('0x0')](_0x1765('0x8'));if(_0x53d73f[_0x1765('0x17')][_0x1765('0xd')](_0x1765('0x16'))&&(_0x149df9['enableCommand']('indent'),_0x149df9[_0x1765('0xb')](_0x1765('0x3'))),_0x53d73f[_0x1765('0x17')][_0x1765('0xd')](_0x1765('0xe')))for(const _0x24eaa0 of[_0x1765('0x14'),_0x1765('0x10')])_0x149df9[_0x1765('0xa')](_0x24eaa0);const _0x25b159=_0x53d73f[_0x1765('0xc')];_0x149df9['_registerBlockAttribute']('blockIndent'),_0x149df9[_0x1765('0x5')][_0x1765('0x13')](_0x1765('0x18'),_0x1c4ee6(_0x25b159,_0x1765('0x4'))),this[_0x1765('0x7')]();}[_0x1765('0x7')](){const _0x31a47f=this[_0x1765('0x15')],_0x23d119=_0x31a47f[_0x1765('0xc')],_0x294b1b=_0x31a47f[_0x1765('0x17')][_0x1765('0x0')]('TrackChangesEditing');_0x294b1b[_0x1765('0x5')][_0x1765('0x19')](_0x386339=>{if('formatBlock'!=_0x386339[_0x1765('0x11')])return;const {data:_0x5663a1}=_0x386339;if(!_0x5663a1)return;if('indentBlock'!=_0x5663a1[_0x1765('0x1')]&&_0x1765('0x10')!=_0x5663a1[_0x1765('0x1')])return;const _0x5c6184=_0x386339[_0x1765('0xf')]()[0x0],_0x2af949=_0x294b1b[_0x1765('0x5')][_0x1765('0x2')](_0x5c6184);return _0x1765('0x14')==_0x5663a1['commandName']?{'type':_0x1765('0x6'),'content':_0x1c4ee6(_0x23d119,'*Indent:*\x20%0',_0x2af949)}:_0x1765('0x10')==_0x5663a1[_0x1765('0x1')]?{'type':_0x1765('0x6'),'content':_0x1c4ee6(_0x23d119,_0x1765('0x9'),_0x2af949)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1378=['init','plugins','get','input','TrackChangesEditing','editor'];(function(_0x522508,_0x1378c9){var _0x23b107=function(_0x313413){while(--_0x313413){_0x522508['push'](_0x522508['shift']());}};_0x23b107(++_0x1378c9);}(_0x1378,0x1bd));var _0x23b1=function(_0x522508,_0x1378c9){_0x522508=_0x522508-0x0;var _0x23b107=_0x1378[_0x522508];return _0x23b107;};import{Plugin as _0x1d122a}from'ckeditor5/src/core';import{Input as _0x4cc9ef}from'ckeditor5/src/typing';export default class rt extends _0x1d122a{static get['requires'](){return[_0x4cc9ef];}[_0x23b1('0x5')](){this[_0x23b1('0x4')][_0x23b1('0x0')][_0x23b1('0x1')](_0x23b1('0x3'))['enableCommand'](_0x23b1('0x2'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcf45=['*Remove\x20link*','registerDescriptionCallback','key','TrackChangesEditing','commandParams','attribute','link\x20(','formatInline','toLowerCase','*Set\x20link:*\x20%0','commands','link','has','commandName','_descriptionFactory','get','type','editor','map','plugins','unlink','linkHref','format'];(function(_0x4fba26,_0xcf4578){const _0x128ac0=function(_0x57d194){while(--_0x57d194){_0x4fba26['push'](_0x4fba26['shift']());}};_0x128ac0(++_0xcf4578);}(_0xcf45,0x1b3));const _0x128a=function(_0x4fba26,_0xcf4578){_0x4fba26=_0x4fba26-0x0;let _0x128ac0=_0xcf45[_0x4fba26];return _0x128ac0;};import{Plugin as _0x234706}from'ckeditor5/src/core';import{getTranslation as _0x517165}from'../utils/common-translations';export default class at extends _0x234706{['afterInit'](){const _0x8d0aa8=this[_0x128a('0x13')];if(!_0x8d0aa8[_0x128a('0x15')][_0x128a('0xe')]('LinkEditing'))return;const _0x2ca8db=_0x8d0aa8[_0x128a('0x15')][_0x128a('0x11')](_0x128a('0x5')),_0x3f420b=_0x8d0aa8[_0x128a('0xc')]['get'](_0x128a('0xd'));_0x2ca8db['_enableDefaultAttributesIntegration'](_0x128a('0xd'),[_0x128a('0x0'),..._0x3f420b['manualDecorators'][_0x128a('0x14')](_0x192ae3=>_0x192ae3['id'])]),_0x2ca8db['_enableDefaultAttributesIntegration'](_0x128a('0x16'));for(const _0x1280f6 of _0x3f420b['manualDecorators'])_0x2ca8db['_descriptionFactory']['registerAttributeLabel'](_0x1280f6['id'],_0x128a('0x8')+_0x1280f6['label'][_0x128a('0xa')]()+')');_0x2ca8db[_0x128a('0x10')][_0x128a('0x3')](_0x112f4e=>{if(_0x128a('0x7')!=_0x112f4e['type'])return;const {data:_0x302173}=_0x112f4e;if(!_0x302173||_0x128a('0x0')!=_0x302173[_0x128a('0x4')])return;const _0x1313b7=_0x302173['newValue'],_0x2f3c3b=_0x8d0aa8['locale'];return{'type':_0x128a('0x1'),'content':null==_0x1313b7?_0x517165(_0x2f3c3b,_0x128a('0x2')):_0x517165(_0x2f3c3b,_0x128a('0xb'),'\x22'+_0x1313b7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x121ce6=this[_0x128a('0x13')],_0x1f1e90=_0x121ce6['locale'];_0x121ce6[_0x128a('0x15')]['get'](_0x128a('0x5'))['_descriptionFactory'][_0x128a('0x3')](_0x1aff94=>{if(_0x128a('0x9')!=_0x1aff94[_0x128a('0x12')])return;const {data:_0x49e514}=_0x1aff94;if(_0x49e514){if(_0x128a('0xd')==_0x49e514[_0x128a('0xf')]){const _0x1df2a1=_0x49e514[_0x128a('0x6')][0x0];return{'type':_0x128a('0x1'),'content':_0x517165(_0x1f1e90,_0x128a('0xb'),'\x22'+_0x1df2a1+'\x22')};}return _0x128a('0x16')==_0x49e514['commandName']?{'type':'format','content':_0x517165(_0x1f1e90,'*Remove\x20link*')}:void 0x0;}});}}
|