@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.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 _0x31a7=['FORMAT_FONT_FAMILY','FontFamilyEditing','*Reset\x20font\x20color*','locale','format','registerAttributeLabel','_enableDefaultAttributesIntegration','value','FontColorEditing','*Reset\x20font\x20background\x20color*','toLowerCase','_registerLegacyDescription','FORMAT_FONT_SIZE','FontSizeEditing','config','TrackChangesEditing','editor','fontColor','commandName','commandParams','FORMAT_FONT_COLOR','afterInit','find','label','registerDescriptionCallback','FORMAT_FONT_BACKGROUND','_descriptionFactory','fontSize','fontFamily','plugins','title','FontBackgroundColorEditing','*Set\x20font\x20background\x20color:*\x20%0','fontBackgroundColor','trim','*Reset\x20font\x20size*','get','fontBackgroundColor.colors','model','*Reset\x20font\x20family*','type'];(function(_0x467a0c,_0x31a745){const _0x145d4=function(_0x11e564){while(--_0x11e564){_0x467a0c['push'](_0x467a0c['shift']());}};_0x145d4(++_0x31a745);}(_0x31a7,0x18c));const _0x145d=function(_0x467a0c,_0x31a745){_0x467a0c=_0x467a0c-0x0;let _0x145d4=_0x31a7[_0x467a0c];return _0x145d4;};import{Plugin as _0x58d171}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x4b9dfc}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b4ead}from'../utils/common-translations.js';const ro=[{'pluginName':_0x145d('0x1b'),'commandName':_0x145d('0x0')},{'pluginName':_0x145d('0xf'),'commandName':'fontFamily'},{'pluginName':_0x145d('0x16'),'commandName':_0x145d('0x1f')},{'pluginName':_0x145d('0x4'),'commandName':_0x145d('0x6')}];export default class K extends _0x58d171{[_0x145d('0x23')](){const _0x2d1a4c=this[_0x145d('0x1e')][_0x145d('0x11')],_0x1697a2=this[_0x145d('0x1e')][_0x145d('0x2')][_0x145d('0x9')](_0x145d('0x1d'));for(const {pluginName:_0x5a643d,commandName:_0x56b845}of ro)this[_0x145d('0x1e')][_0x145d('0x2')]['has'](_0x5a643d)&&_0x1697a2[_0x145d('0x14')](_0x56b845,[_0x56b845]);_0x2d1a4c['t'],(_0x1697a2[_0x145d('0x28')]['registerAttributeLabel'](_0x145d('0x0'),_0x3b4ead(_0x2d1a4c,_0x145d('0x1a'))),_0x1697a2['_descriptionFactory']['registerAttributeLabel']('fontFamily',_0x3b4ead(_0x2d1a4c,_0x145d('0xe'))),_0x1697a2[_0x145d('0x28')][_0x145d('0x13')](_0x145d('0x1f'),_0x3b4ead(_0x2d1a4c,_0x145d('0x22'))),_0x1697a2[_0x145d('0x28')][_0x145d('0x13')](_0x145d('0x6'),_0x3b4ead(_0x2d1a4c,_0x145d('0x27'))),this[_0x145d('0x19')]());}[_0x145d('0x19')](){const _0x233d4e=this['editor'],_0x59aa59=_0x233d4e[_0x145d('0x11')];_0x233d4e['plugins'][_0x145d('0x9')](_0x145d('0x1d'))[_0x145d('0x28')][_0x145d('0x26')](_0x4c694c=>{const _0x4c18b8=_0x59aa59['t'];if('formatInline'!=_0x4c694c[_0x145d('0xd')])return;const {data:_0x2d05ea}=_0x4c694c;if(null!=_0x2d05ea){if(_0x145d('0x0')==_0x2d05ea['commandName']){const _0x347e85=_0x2d05ea[_0x145d('0x21')][0x0][_0x145d('0x15')];if(_0x347e85){const _0x493339=_0x4c18b8(this[_0x145d('0x1e')][_0x145d('0x2')]['get']('FontSize')['normalizeSizeOptions'](this['editor'][_0x145d('0x1c')]['get']('fontSize.options'))[_0x145d('0x24')](_0x1710a4=>_0x1710a4['model']==_0x347e85)[_0x145d('0x3')])[_0x145d('0x18')]();return{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,'*Set\x20font\x20size:*\x20%0',_0x493339)};}return{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,_0x145d('0x8'))};}if(_0x145d('0x1')==_0x2d05ea[_0x145d('0x20')]){const _0xd2c084=_0x2d05ea['commandParams'][0x0][_0x145d('0x15')];return _0xd2c084?{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,'*Set\x20font\x20family:*\x20%0',_0xd2c084)}:{'type':'format','content':_0x3b4ead(_0x59aa59,_0x145d('0xc'))};}if(_0x145d('0x1f')==_0x2d05ea[_0x145d('0x20')]){const _0x3f8099=_0x2d05ea[_0x145d('0x21')][0x0]['value'];if(_0x3f8099){const _0x415692=_0x4b9dfc(this[_0x145d('0x1e')][_0x145d('0x1c')][_0x145d('0x9')]('fontColor.colors'))[_0x145d('0x24')](_0x5c36a0=>_0x5c36a0[_0x145d('0xb')]==_0x3f8099);let _0x1b74bb=_0x3f8099,_0x4d3200='';return _0x415692&&(_0x1b74bb=_0x415692[_0x145d('0x25')],_0x4d3200=_0x4c18b8(_0x1b74bb)[_0x145d('0x18')]()),{'type':'format','content':_0x3b4ead(_0x59aa59,'*Set\x20font\x20color:*\x20%0',_0x4d3200)[_0x145d('0x7')](),'color':{'value':_0x3f8099,'title':_0x4d3200||_0x1b74bb}};}return{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,_0x145d('0x10'))};}if(_0x145d('0x6')==_0x2d05ea[_0x145d('0x20')]){const _0x4145b7=_0x2d05ea[_0x145d('0x21')][0x0][_0x145d('0x15')];if(_0x4145b7){const _0x1f83b5=_0x4b9dfc(this[_0x145d('0x1e')][_0x145d('0x1c')][_0x145d('0x9')](_0x145d('0xa')))[_0x145d('0x24')](_0x4cc7c0=>_0x4cc7c0[_0x145d('0xb')]==_0x4145b7);let _0x10924b=_0x4145b7,_0x25e79a='';return _0x1f83b5&&(_0x10924b=_0x1f83b5[_0x145d('0x25')],_0x25e79a=_0x4c18b8(_0x10924b)[_0x145d('0x18')]()),{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,_0x145d('0x5'),_0x25e79a)[_0x145d('0x7')](),'color':{'value':_0x4145b7,'title':_0x25e79a||_0x10924b}};}return{'type':_0x145d('0x12'),'content':_0x3b4ead(_0x59aa59,_0x145d('0x17'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4baa=['formatInline','_descriptionFactory','format','commandName','model','TrackChangesEditing','normalizeSizeOptions','label','toUpperCase','slice','fontBackgroundColor','join','afterInit','fontSize','*Set\x20format\x20to:*\x20%0','find','type','plugins','toLowerCase','editor','length','get','push','copyFormat','fontColor','fontSize.options','pasteFormat','config','formatBlock','commands','title','registerDescriptionCallback','entries','locale','enableCommand','_registerLegacyDescription','split'];(function(_0x4df82f,_0x4baa5c){const _0x1f8b7c=function(_0x22f614){while(--_0x22f614){_0x4df82f['push'](_0x4df82f['shift']());}};_0x1f8b7c(++_0x4baa5c);}(_0x4baa,0x1ab));const _0x1f8b=function(_0x4df82f,_0x4baa5c){_0x4df82f=_0x4df82f-0x0;let _0x1f8b7c=_0x4baa[_0x4df82f];return _0x1f8b7c;};import{Plugin as _0x3f82b0}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x5834ff}from'ckeditor5/src/ui.js';import{getTranslation as _0x684f5a}from'../utils/common-translations.js';export default class Q extends _0x3f82b0{[_0x1f8b('0x1d')](){const _0x571124=this['editor'],_0xe21a08=_0x571124['plugins'][_0x1f8b('0x1')](_0x1f8b('0x16')),_0x53e94f=_0x571124['commands'][_0x1f8b('0x1')](_0x1f8b('0x3')),_0xb1c962=_0x571124[_0x1f8b('0x9')][_0x1f8b('0x1')]('pasteFormat');_0x53e94f&&_0xb1c962&&(_0xe21a08['_enableDefaultAttributesIntegration'](_0x1f8b('0x6')),_0xe21a08[_0x1f8b('0xe')]('copyFormat'),this[_0x1f8b('0xf')]());}[_0x1f8b('0xf')](){const _0x1195b4=this[_0x1f8b('0x24')],_0x1f3957=_0x1195b4[_0x1f8b('0xd')];_0x1195b4[_0x1f8b('0x22')][_0x1f8b('0x1')](_0x1f8b('0x16'))[_0x1f8b('0x12')][_0x1f8b('0xb')](_0x523e4b=>{if(_0x1f8b('0x8')!=_0x523e4b['type']&&_0x1f8b('0x11')!=_0x523e4b[_0x1f8b('0x21')])return;const {data:_0x4c0616}=_0x523e4b;if(_0x4c0616&&_0x1f8b('0x6')===_0x4c0616[_0x1f8b('0x14')]){const _0x4f9577=[],_0xda5c6c=_0x4c0616['commandParams'][0x0];for(const [_0x4270af,_0x41ab99]of Object[_0x1f8b('0xc')](_0xda5c6c))_0x4f9577[_0x1f8b('0x2')](so(_0x1195b4,_0x4270af,_0x41ab99));return _0x4f9577[_0x1f8b('0x0')]?{'type':_0x1f8b('0x13'),'content':_0x684f5a(_0x1f3957,_0x1f8b('0x1f'),_0x4f9577[_0x1f8b('0x1c')](',\x20'))}:{'type':'format','content':_0x684f5a(_0x1f3957,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d4aad,_0x3043f4,_0x5a0e80){const _0x34db82=_0x5d4aad[_0x1f8b('0xd')]['t'],_0x561045=_0x3043f4[_0x1f8b('0x10')](/(?=[A-Z])/)[_0x1f8b('0x1c')]('\x20'),_0x2a3e93=_0x34db82(_0x561045['charAt'](0x0)[_0x1f8b('0x19')]()+_0x561045[_0x1f8b('0x1a')](0x1))['toLowerCase']();if('boolean'==typeof _0x5a0e80)return _0x2a3e93;if(_0x1f8b('0x4')===_0x3043f4||_0x1f8b('0x1b')===_0x3043f4){const _0x4d4568=_0x5834ff(_0x5d4aad[_0x1f8b('0x7')][_0x1f8b('0x1')]('fontColor.colors'))[_0x1f8b('0x20')](_0x2a112e=>_0x2a112e[_0x1f8b('0x15')]==_0x5a0e80);return _0x2a3e93+'\x20('+(_0x4d4568?_0x34db82(_0x4d4568[_0x1f8b('0x18')])[_0x1f8b('0x23')]():_0x5a0e80)+')';}if(_0x1f8b('0x1e')===_0x3043f4&&isNaN(parseFloat(_0x5a0e80))){const _0x1a700c=_0x5d4aad[_0x1f8b('0x22')][_0x1f8b('0x1')]('FontSize')[_0x1f8b('0x17')](_0x5d4aad[_0x1f8b('0x7')][_0x1f8b('0x1')](_0x1f8b('0x5')))[_0x1f8b('0x20')](_0x171da0=>_0x171da0['model']==_0x5a0e80);return _0x2a3e93+'\x20('+(_0x1a700c?_0x34db82(_0x1a700c[_0x1f8b('0xa')])[_0x1f8b('0x23')]():_0x5a0e80)+')';}return _0x2a3e93+'\x20('+_0x5a0e80+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a93=['editor','format','config','title','heading','heading.options','ELEMENT_HEADING_CUSTOM','_descriptionFactory','commandName','plugins','paragraph','TrackChangesEditing','match','has','ELEMENT_HEADING','registerElementLabel','_registerLegacyDescription','*Change\x20to:*\x20%0','name','find','locale','_getHeadingLevel','_enableDefaultAttributesIntegration','value','type','get','view','_headingOptions','afterInit','formatBlock','HeadingEditing','commandParams','model'];(function(_0x4647ce,_0x2a93fb){const _0x3ae2b7=function(_0x571271){while(--_0x571271){_0x4647ce['push'](_0x4647ce['shift']());}};_0x3ae2b7(++_0x2a93fb);}(_0x2a93,0x18b));const _0x3ae2=function(_0x4647ce,_0x2a93fb){_0x4647ce=_0x4647ce-0x0;let _0x3ae2b7=_0x2a93[_0x4647ce];return _0x3ae2b7;};import{Plugin as _0xac5db7}from'ckeditor5/src/core.js';import{getTranslation as _0x5ad8f1}from'../utils/common-translations.js';export default class X extends _0xac5db7{[_0x3ae2('0x1d')](){const _0x32d53=this[_0x3ae2('0x1')];if(!_0x32d53[_0x3ae2('0xa')][_0x3ae2('0xe')](_0x3ae2('0x1f')))return;this['_headingOptions']=_0x32d53[_0x3ae2('0x3')][_0x3ae2('0x1a')](_0x3ae2('0x6'));const _0xbab17b=_0x32d53[_0x3ae2('0x15')],_0x292baf=_0x32d53[_0x3ae2('0xa')][_0x3ae2('0x1a')](_0x3ae2('0xc'));_0x292baf[_0x3ae2('0x17')](_0x3ae2('0x5'));for(const _0x2c4e2c of this[_0x3ae2('0x1c')])_0x3ae2('0xb')!=_0x2c4e2c[_0x3ae2('0x0')]&&_0x292baf[_0x3ae2('0x8')][_0x3ae2('0x10')](_0x2c4e2c[_0x3ae2('0x0')],_0x296ad6=>{const _0x9da67c=this[_0x3ae2('0x16')](_0x2c4e2c[_0x3ae2('0x0')]);return null!==_0x9da67c?_0xb33da(_0x296ad6,_0x9da67c):_0x1a9379(_0x296ad6,_0x2c4e2c[_0x3ae2('0x4')]);});function _0xb33da(_0x5367af,_0x20418e){return _0x5ad8f1(_0xbab17b,_0x3ae2('0xf'),[_0x5367af,_0x20418e]);}function _0x1a9379(_0x15e7ad,_0x37a128){return _0x5ad8f1(_0xbab17b,_0x3ae2('0x7'),[_0x15e7ad,_0x37a128]);}this[_0x3ae2('0x11')]();}[_0x3ae2('0x11')](){const _0x3a405f=this[_0x3ae2('0x1')],_0x31993c=_0x3a405f[_0x3ae2('0x15')];function _0x1bdd2a(_0x15b058,_0x17cbd4){return _0x5ad8f1(_0x31993c,_0x3ae2('0x7'),[_0x15b058,_0x17cbd4]);}_0x3a405f['plugins']['get'](_0x3ae2('0xc'))[_0x3ae2('0x8')]['registerDescriptionCallback'](_0x228df2=>{if(_0x3ae2('0x1e')!=_0x228df2[_0x3ae2('0x19')])return;const {data:_0x522564}=_0x228df2;if(_0x522564&&'heading'==_0x522564[_0x3ae2('0x9')]){const _0x55a8e3=_0x522564[_0x3ae2('0x20')][0x0][_0x3ae2('0x18')],_0x389c49=this[_0x3ae2('0x16')](_0x55a8e3);if(null!==_0x389c49)return{'type':_0x3ae2('0x2'),'content':_0x5ad8f1(_0x31993c,_0x3ae2('0x12'),(_0x5d4955=0x1,_0x527dff=_0x389c49,_0x5ad8f1(_0x31993c,_0x3ae2('0xf'),[_0x5d4955,_0x527dff])))};const _0x3859c5=this['_headingOptions'][_0x3ae2('0x14')](_0x3c7e51=>_0x3c7e51[_0x3ae2('0x0')]===_0x55a8e3)[_0x3ae2('0x4')];return{'type':_0x3ae2('0x2'),'content':_0x5ad8f1(_0x31993c,_0x3ae2('0x12'),_0x1bdd2a(0x1,_0x3859c5))};}var _0x5d4955,_0x527dff;});}[_0x3ae2('0x16')](_0x4c6083){var _0x374f86,_0x2f0957;const _0xb0d120=_0x4c6083[_0x3ae2('0xd')](/^heading(\d+)/);if(_0xb0d120)return _0xb0d120[0x1];const _0x422627=null===(_0x374f86=this[_0x3ae2('0x1c')])||void 0x0===_0x374f86?void 0x0:_0x374f86[_0x3ae2('0x14')](_0x5edfa7=>_0x5edfa7[_0x3ae2('0x0')]==_0x4c6083);if(_0x422627&&_0x422627[_0x3ae2('0x1b')]){const _0x9b588e=_0x422627[_0x3ae2('0x1b')],_0x7e2cde=(null!==(_0x2f0957=_0x9b588e[_0x3ae2('0x13')])&&void 0x0!==_0x2f0957?_0x2f0957:_0x9b588e)['match'](/^h(\d+)/);if(_0x7e2cde)return _0x7e2cde[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4930=['_enableDefaultAttributesIntegration','formatInline','FORMAT_HIGHLIGHT','_descriptionFactory','model','afterInit','has','highlight','color','config','format','commandName','title','plugins','highlight.options','HighlightEditing','find','*Remove\x20highlight*','TrackChangesEditing','registerAttributeLabel','_registerLegacyDescription','get','editor','*Set\x20highlight:*\x20%0'];(function(_0x7b9a68,_0x493000){const _0x3ecf09=function(_0x1d249f){while(--_0x1d249f){_0x7b9a68['push'](_0x7b9a68['shift']());}};_0x3ecf09(++_0x493000);}(_0x4930,0x84));const _0x3ecf=function(_0x7b9a68,_0x493000){_0x7b9a68=_0x7b9a68-0x0;let _0x3ecf09=_0x4930[_0x7b9a68];return _0x3ecf09;};import{Plugin as _0x588761}from'ckeditor5/src/core.js';import{getTranslation as _0x18c1f8}from'../utils/common-translations.js';export default class Y extends _0x588761{[_0x3ecf('0x11')](){const _0x423d31=this[_0x3ecf('0xa')];if(!_0x423d31[_0x3ecf('0x1')][_0x3ecf('0x12')](_0x3ecf('0x3')))return;const _0x29d317=_0x423d31[_0x3ecf('0x1')][_0x3ecf('0x9')](_0x3ecf('0x6')),_0xa22249=_0x423d31['locale'];_0x29d317[_0x3ecf('0xc')](_0x3ecf('0x13'),[_0x3ecf('0x13')]),_0x29d317[_0x3ecf('0xf')][_0x3ecf('0x7')]('highlight',_0x18c1f8(_0xa22249,_0x3ecf('0xe'))),this[_0x3ecf('0x8')]();}[_0x3ecf('0x8')](){const _0xc1ac68=this[_0x3ecf('0xa')],_0x357a54=_0xc1ac68['locale'];_0xc1ac68['plugins'][_0x3ecf('0x9')](_0x3ecf('0x6'))[_0x3ecf('0xf')]['registerDescriptionCallback'](_0x38ae8e=>{if(_0x3ecf('0xd')!=_0x38ae8e['type'])return;const {data:_0x4f0385}=_0x38ae8e;if(_0x4f0385&&_0x3ecf('0x13')==_0x4f0385[_0x3ecf('0x17')]){const _0x4e5fc8=_0x357a54['t'],_0x40ce56=_0x4f0385['commandParams'][0x0]['value'];if(_0x40ce56){const _0x37e0bd=_0xc1ac68[_0x3ecf('0x15')][_0x3ecf('0x9')](_0x3ecf('0x2'))[_0x3ecf('0x4')](_0x53acb7=>_0x53acb7[_0x3ecf('0x10')]==_0x40ce56),_0x44cdba=_0x4e5fc8(_0x37e0bd[_0x3ecf('0x0')])['toLowerCase']();return{'type':_0x3ecf('0x16'),'content':_0x18c1f8(_0x357a54,_0x3ecf('0xb'),_0x44cdba),'color':{'value':_0x37e0bd[_0x3ecf('0x14')],'title':_0x37e0bd[_0x3ecf('0x0')]}};}return{'type':_0x3ecf('0x16'),'content':_0x18c1f8(_0x357a54,_0x3ecf('0x5'),_0x18c1f8(_0x357a54,_0x3ecf('0xe')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e00=['horizontalLine','conversion','ck-horizontal-line','ELEMENT_HORIZONTAL_LINE','insert','dataDowncast','showSuggestionHighlights','createEmptyElement','div','enableCommand','locale','get','high','HorizontalLineEditing','afterInit','_descriptionFactory','plugins','createPositionAt','has'];(function(_0xddc055,_0x1e00eb){const _0x536a03=function(_0x3f10cf){while(--_0x3f10cf){_0xddc055['push'](_0xddc055['shift']());}};_0x536a03(++_0x1e00eb);}(_0x1e00,0x9e));const _0x536a=function(_0xddc055,_0x1e00eb){_0xddc055=_0xddc055-0x0;let _0x536a03=_0x1e00[_0xddc055];return _0x536a03;};import{Plugin as _0x1c4991}from'ckeditor5/src/core.js';import{getTranslation as _0x236888}from'../utils/common-translations.js';export default class Z extends _0x1c4991{[_0x536a('0x8')](){const _0x3ce8b5=this['editor'];if(!_0x3ce8b5[_0x536a('0xa')][_0x536a('0xc')](_0x536a('0x7')))return;_0x3ce8b5['plugins'][_0x536a('0x5')]('TrackChangesEditing')[_0x536a('0x3')](_0x536a('0xd'));const _0x436b05=_0x3ce8b5['plugins']['get']('TrackChangesEditing'),_0x2aa625=_0x3ce8b5[_0x536a('0x4')];_0x436b05[_0x536a('0x9')]['registerElementLabel'](_0x536a('0xd'),_0x21c700=>_0x236888(_0x2aa625,_0x536a('0x10'),_0x21c700)),_0x3ce8b5[_0x536a('0xe')]['for'](_0x536a('0x12'))['elementToStructure']({'model':_0x536a('0xd'),'view':(_0x3b0312,{writer:_0x57e68c,options:_0x4b6c52})=>{if(!_0x4b6c52[_0x536a('0x0')])return null;const _0x5f527f=_0x57e68c['createContainerElement'](_0x536a('0x2')),_0x5ca689=_0x57e68c[_0x536a('0x1')]('hr');return _0x57e68c['addClass'](_0x536a('0xf'),_0x5f527f),_0x57e68c[_0x536a('0x11')](_0x57e68c[_0x536a('0xb')](_0x5f527f,0x0),_0x5ca689),_0x5f527f;},'converterPriority':_0x536a('0x6')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaacd=['attribute','commandName','locale','rawHtml','plugins','HtmlEmbed','start','_descriptionFactory','TrackChangesEditing','getFirstRange','format','get','type','*Change\x20%0\x20content*','nodeAfter','htmlEmbed','value','ELEMENT_HTML_EMBED','formatBlock','editor','registerDescriptionCallback','_enableDefaultAttributesIntegration','has'];(function(_0x2596e8,_0xaacd92){const _0x11c975=function(_0x224ba2){while(--_0x224ba2){_0x2596e8['push'](_0x2596e8['shift']());}};_0x11c975(++_0xaacd92);}(_0xaacd,0x102));const _0x11c9=function(_0x2596e8,_0xaacd92){_0x2596e8=_0x2596e8-0x0;let _0x11c975=_0xaacd[_0x2596e8];return _0x11c975;};import{Plugin as _0x26a4f3}from'ckeditor5/src/core.js';import{getTranslation as _0x3a9458}from'../utils/common-translations.js';export default class tt extends _0x26a4f3{['afterInit'](){const _0x1cd0ed=this[_0x11c9('0xe')];if(!_0x1cd0ed[_0x11c9('0x16')][_0x11c9('0x11')](_0x11c9('0x0')))return;const _0x376d01=_0x1cd0ed['plugins'][_0x11c9('0x6')](_0x11c9('0x3')),_0x120df4=_0x1cd0ed[_0x11c9('0x14')];_0x376d01[_0x11c9('0x2')]['registerElementLabel'](_0x11c9('0x15'),_0xb6614b=>_0x3a9458(_0x120df4,_0x11c9('0xc'),_0xb6614b)),_0x376d01[_0x11c9('0x10')](_0x11c9('0xa'),[],['value']),_0x376d01['_descriptionFactory'][_0x11c9('0xf')](_0x35d613=>{if(_0x11c9('0x12')!=_0x35d613[_0x11c9('0x7')])return;const {data:_0x26f758}=_0x35d613;if(_0x26f758&&_0x11c9('0xb')==_0x26f758['key']&&_0x35d613[_0x11c9('0x4')]()[_0x11c9('0x1')][_0x11c9('0x9')]['is']('element',_0x11c9('0x15'))){const _0x36ff49=_0x3a9458(_0x120df4,_0x11c9('0xc'));return{'type':_0x11c9('0x5'),'content':_0x3a9458(_0x120df4,'*Change\x20%0\x20content*',_0x36ff49)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58623f=this[_0x11c9('0xe')],_0x4d9c39=_0x58623f[_0x11c9('0x14')];_0x58623f[_0x11c9('0x16')][_0x11c9('0x6')](_0x11c9('0x3'))[_0x11c9('0x2')][_0x11c9('0xf')](_0x201c92=>{if(_0x11c9('0xd')!=_0x201c92[_0x11c9('0x7')])return;const {data:_0xb85015}=_0x201c92;if(_0xb85015&&'htmlEmbed'==_0xb85015[_0x11c9('0x13')]){const _0x51420b=_0x3a9458(_0x4d9c39,_0x11c9('0xc'));return{'type':_0x11c9('0x5'),'content':_0x3a9458(_0x4d9c39,_0x11c9('0x8'),_0x51420b)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e70=['_enableDefaultAttributesIntegration','fromPosition','uploadImage','forward','plugins','*Set\x20image\x20text\x20alternative:*\x20%0','imageTextAlternative','toNext','imageInline','editor','model','key','isBefore','registerDescriptionCallback','ImageResize','isIntersecting','markBlockFormat','discard','accept','getContainedElement','ELEMENT_IMAGE','formatInline','convertInlineImageToBlock','end','*Remove\x20image\x20text\x20alternative*','enableCommand','getClosestSelectedImageElement','ELEMENT_CAPTION','insertImage','detach','backward','document','ImageCaptionUtils','markInsertion','registerCustomCallback','getCaptionFromImageModelElement','convertBlockImageToInline','_descriptionFactory','formatBlock','caption','registerElementLabel','FORMAT_IMAGE_SIZE','element','schema','chain','nodeBefore','start','length','createRange','isBlockImage','isEqual','ImageCaptionEditing','locale','ImageInlineEditing','insertion','ImageEditing','*Reset\x20image\x20width*','imageTypeInline','ImageUploadEditing','commandParams','isCollapsed','findIndex','*Set\x20image\x20width:*\x20%0','markDeletion','Block\x20image\x20to\x20inline\x20image','getNearestSelectionRange','imageCaption','_suggestionFactory','nodeAfter','TrackChangesEditing','resizedWidth','find','removeObject','change','forceDefaultExecution','ImageBlockEditing','isOwn','type','get','imageTypeBlock','join','format','afterInit','addObject','resizeImage','registerAttributeLabel','imageBlock','toggleImageCaption','getFirstRange','ImageTextAlternativeEditing','has','commandName','selection','newValue','filter','subType'];(function(_0x48ba33,_0x1e70d2){const _0x5afa94=function(_0x193328){while(--_0x193328){_0x48ba33['push'](_0x48ba33['shift']());}};_0x5afa94(++_0x1e70d2);}(_0x1e70,0x195));const _0x5afa=function(_0x48ba33,_0x1e70d2){_0x48ba33=_0x48ba33-0x0;let _0x5afa94=_0x1e70[_0x48ba33];return _0x5afa94;};import{Plugin as _0x4b6fba}from'ckeditor5/src/core.js';import{LivePosition as _0x4acceb}from'ckeditor5/src/engine.js';import{getTranslation as _0x3d5353}from'../utils/common-translations.js';export default class it extends _0x4b6fba{[_0x5afa('0x3d')](){const _0x46a663=this[_0x5afa('0x54')];if(!_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x22')))return;const _0x8ca15b=_0x46a663['plugins'][_0x5afa('0x39')](_0x5afa('0x30')),_0x275dec=_0x46a663[_0x5afa('0x4f')][_0x5afa('0x39')]('ImageUtils'),_0x51482e=_0x46a663[_0x5afa('0x1f')];_0x8ca15b[_0x5afa('0x4')](_0x5afa('0x7')),_0x8ca15b[_0x5afa('0x10')]['registerElementLabel'](_0x5afa('0x41'),_0x1e1149=>_0x3d5353(_0x51482e,_0x5afa('0x5f'),_0x1e1149)),_0x8ca15b[_0x5afa('0x10')][_0x5afa('0x13')](_0x5afa('0x53'),_0x293752=>_0x3d5353(_0x51482e,'ELEMENT_INLINE_IMAGE',_0x293752)),_0x8ca15b['_descriptionFactory']['registerElementLabel'](_0x5afa('0x12'),()=>_0x3d5353(_0x51482e,_0x5afa('0x6'))),_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x25'))&&_0x8ca15b[_0x5afa('0x4')](_0x5afa('0x4d')),_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x36'))&&_0x46a663['plugins'][_0x5afa('0x45')](_0x5afa('0x20'))&&(_0x8ca15b[_0x5afa('0x4')](_0x5afa('0x24'),(_0x12e9fc,_0x3271e0)=>{const _0x581b07=_0x275dec[_0x5afa('0x5')](_0x46a663[_0x5afa('0x55')]['document'][_0x5afa('0x47')]);_0x46a663[_0x5afa('0x55')]['change'](()=>{_0x8ca15b[_0x5afa('0x5b')](_0x581b07,{'commandName':_0x5afa('0x24'),'commandParams':[_0x3271e0]},[],_0x5afa('0xf'));});}),_0x8ca15b['enableCommand'](_0x5afa('0x3a'),(_0x29f9e8,_0x49ac24)=>{_0x46a663[_0x5afa('0x55')][_0x5afa('0x34')](_0x4f08ae=>{let _0xc5592a=_0x275dec[_0x5afa('0x5')](_0x46a663[_0x5afa('0x55')]['document'][_0x5afa('0x47')]),_0x222202=_0x4f08ae['createRangeOn'](_0xc5592a);const _0x274c60=_0x4acceb['fromPosition'](_0x222202[_0x5afa('0x19')],'toPrevious'),_0x1adc1c=_0x4acceb[_0x5afa('0x4c')](_0x222202[_0x5afa('0x2')],_0x5afa('0x52'));_0x8ca15b[_0x5afa('0x35')](()=>_0x29f9e8(_0x49ac24)),_0xc5592a=_0x275dec[_0x5afa('0x5')](_0x46a663[_0x5afa('0x55')][_0x5afa('0xa')][_0x5afa('0x47')]),_0x222202=_0x4f08ae['createRangeOn'](_0xc5592a);const _0xe77986=_0x4f08ae[_0x5afa('0x1b')](_0x274c60,_0x1adc1c);_0x274c60[_0x5afa('0x8')](),_0x1adc1c['detach'](),_0x8ca15b[_0x5afa('0x5b')](_0xc5592a,{'commandName':_0x5afa('0x24'),'commandParams':[_0x49ac24]},[],_0x5afa('0x1')),_0xe77986[_0x5afa('0x19')][_0x5afa('0x57')](_0x222202['start'])&&_0x8ca15b[_0x5afa('0xc')](_0x4f08ae[_0x5afa('0x1b')](_0xe77986[_0x5afa('0x19')],_0x222202['start']),_0x5afa('0x1')),_0x222202[_0x5afa('0x2')][_0x5afa('0x57')](_0xe77986[_0x5afa('0x2')])&&_0x8ca15b[_0x5afa('0xc')](_0x4f08ae['createRange'](_0x222202['end'],_0xe77986[_0x5afa('0x2')]),'convertInlineImageToBlock');});}),_0x8ca15b[_0x5afa('0x2e')][_0x5afa('0xd')](_0x5afa('0x11'),_0x5afa('0x1'),_0x5afa('0x3b'),()=>!0x1),_0x8ca15b[_0x5afa('0x2e')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x5afa('0x5d'),()=>!0x1),_0x8ca15b['_suggestionFactory']['registerCustomCallback'](_0x5afa('0x11'),_0x5afa('0x1'),_0x5afa('0x5c'),_0x8ca15b['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x5afa('0x5d'))),_0x8ca15b[_0x5afa('0x2e')][_0x5afa('0xd')](_0x5afa('0x21'),_0x5afa('0x1'),'join',()=>!0x1),_0x8ca15b[_0x5afa('0x2e')][_0x5afa('0xd')]('insertion',_0x5afa('0x1'),_0x5afa('0x5c'),([_0x13b618])=>{const _0x56269e=_0x8ca15b[_0x5afa('0x2e')]['getSuggestionCallback'](_0x5afa('0x21'),'',_0x5afa('0x5c'));let _0x45f4a9=_0x13b618[_0x5afa('0x19')],_0x3489a1=_0x13b618[_0x5afa('0x2')];const _0x42b1fb=_0x46a663['model'][_0x5afa('0x16')][_0x5afa('0x2c')](_0x45f4a9,_0x5afa('0x9')),_0x418553=_0x46a663[_0x5afa('0x55')][_0x5afa('0x16')][_0x5afa('0x2c')](_0x3489a1,_0x5afa('0x4e'));_0x42b1fb[_0x5afa('0x27')]&&(_0x45f4a9=_0x42b1fb[_0x5afa('0x19')]),_0x418553[_0x5afa('0x27')]&&(_0x3489a1=_0x418553['end']),_0x56269e([_0x46a663[_0x5afa('0x55')][_0x5afa('0x1b')](_0x45f4a9,_0x3489a1)]);}),_0x8ca15b['_suggestionFactory'][_0x5afa('0xd')](_0x5afa('0x11'),_0x5afa('0x1'),_0x5afa('0x17'),_0x536476),_0x8ca15b[_0x5afa('0x2e')][_0x5afa('0xd')](_0x5afa('0x21'),_0x5afa('0x1'),_0x5afa('0x17'),_0x536476)),_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x1e'))&&(_0x8ca15b[_0x5afa('0x4')](_0x5afa('0x42'),(_0x21cee6,_0x2af622)=>{const _0x70f0f5=_0x46a663[_0x5afa('0x4f')][_0x5afa('0x39')](_0x5afa('0xb'));let _0x31b12b=_0x275dec[_0x5afa('0x5')](_0x46a663[_0x5afa('0x55')]['document'][_0x5afa('0x47')]),_0x5844c1=_0x70f0f5[_0x5afa('0xe')](_0x31b12b);_0x46a663['model'][_0x5afa('0x34')](()=>{if(_0x5844c1)return void _0x8ca15b[_0x5afa('0x2a')](_0x46a663[_0x5afa('0x55')]['createRangeOn'](_0x5844c1));const _0x555ff8=_0x275dec[_0x5afa('0x1c')](_0x31b12b);_0x21cee6(_0x2af622),_0x31b12b=_0x275dec[_0x5afa('0x5')](_0x46a663[_0x5afa('0x55')]['document'][_0x5afa('0x47')]),_0x5844c1=_0x70f0f5[_0x5afa('0xe')](_0x31b12b),_0x8ca15b[_0x5afa('0xc')](_0x46a663[_0x5afa('0x55')]['createRangeOn'](_0x5844c1),_0x555ff8?null:_0x5afa('0x2d'));});}),_0x8ca15b[_0x5afa('0x2e')]['registerCustomCallback'](_0x5afa('0x21'),'imageCaption',_0x5afa('0x17'),_0x536476));const _0x2555bb=[{'type':_0x5afa('0x11'),'subType':'imageStylePreApply'},{'type':_0x5afa('0x21'),'subType':_0x5afa('0x2d')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':_0x5afa('0x1')}];function _0x4cda43(_0x555706,_0x5214eb){const _0x3d141b=_0x2555bb[_0x5afa('0x28')](({type:_0x5eefac,subType:_0x6ef827})=>_0x555706[_0x5afa('0x38')]==_0x5eefac&&_0x555706[_0x5afa('0x4a')]==_0x6ef827),_0xd57159=_0x2555bb['findIndex'](({type:_0x33ab78,subType:_0xa89f87})=>_0x5214eb[_0x5afa('0x38')]==_0x33ab78&&_0x5214eb[_0x5afa('0x4a')]==_0xa89f87);if(_0x3d141b<0x0||_0xd57159<0x0)return!0x1;const _0x5a16ca=_0x555706[_0x5afa('0x43')](),_0x2caa19=_0x5214eb[_0x5afa('0x43')]();if((0x0==_0x3d141b||0x1==_0x3d141b)&&0x2==_0xd57159&&_0x5a16ca[_0x5afa('0x5a')](_0x2caa19))return!0x0;if(0x2==_0x3d141b&&0x3==_0xd57159){const _0x1fe9ed=_0x8ca15b['_findSuggestions'](_0x5a16ca,'insertion')[_0x5afa('0x49')](({suggestion:_0x395351,meta:_0x17feab})=>_0x17feab[_0x5afa('0x37')]&&_0x5afa('0x1')==_0x395351['subType']);if(_0x1fe9ed[_0x5afa('0x1a')]>0x1&&_0x2caa19[_0x5afa('0x2')][_0x5afa('0x1d')](_0x5a16ca[_0x5afa('0x19')]))return!0x0;if(0x1==_0x1fe9ed[_0x5afa('0x1a')]&&(_0x5a16ca['start'][_0x5afa('0x1d')](_0x2caa19['end'])||_0x5a16ca[_0x5afa('0x2')][_0x5afa('0x1d')](_0x2caa19[_0x5afa('0x19')])))return!0x0;}if(0x3==_0x3d141b&&0x3==_0xd57159&&_0x5a16ca['start'][_0x5afa('0x57')](_0x2caa19[_0x5afa('0x19')])){const _0x344013=_0x5a16ca[_0x5afa('0x2')][_0x5afa('0x2f')],_0x423b11=_0x2caa19[_0x5afa('0x19')][_0x5afa('0x18')];return _0x275dec[_0x5afa('0x1c')](_0x344013)&&_0x344013===_0x423b11;}return!0x1;}function _0x536476(_0x73e451,_0x234b76){return _0x4cda43(_0x73e451,_0x234b76)?[_0x73e451,_0x234b76]:_0x4cda43(_0x234b76,_0x73e451)?[_0x234b76,_0x73e451]:null;}_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x59'))&&(_0x8ca15b[_0x5afa('0x4b')](_0x5afa('0x3f'),[],[_0x5afa('0x31')]),_0x8ca15b[_0x5afa('0x10')][_0x5afa('0x40')](_0x5afa('0x31'),_0x3d5353(_0x51482e,_0x5afa('0x14')))),_0x46a663[_0x5afa('0x4f')][_0x5afa('0x45')](_0x5afa('0x44'))&&_0x8ca15b['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x8ca15b[_0x5afa('0x10')][_0x5afa('0x58')](_0x29e4b5=>{if(!!_0x2555bb[_0x5afa('0x32')](({type:_0x306abf,subType:_0x16d73d})=>_0x29e4b5[_0x5afa('0x38')]==_0x306abf&&_0x29e4b5[_0x5afa('0x4a')]==_0x16d73d))return _0x29e4b5['previous']?{}:void 0x0;}),_0x8ca15b['_descriptionFactory'][_0x5afa('0x58')](_0x416f3c=>{if('insertion'==_0x416f3c[_0x5afa('0x38')]||'deletion'==_0x416f3c[_0x5afa('0x38')]){const _0x426c39=_0x416f3c[_0x5afa('0x5e')]();if(_0x426c39&&_0x426c39['is'](_0x5afa('0x15'),_0x5afa('0x12')))return{'type':'insertion'==_0x416f3c[_0x5afa('0x38')]?_0x5afa('0x3e'):_0x5afa('0x33'),'element':_0x426c39,'quantity':0x1};}}),_0x8ca15b[_0x5afa('0x10')][_0x5afa('0x58')](_0x55bf5a=>_0x5afa('0x11')==_0x55bf5a['type']&&'convertInlineImageToBlock'==_0x55bf5a[_0x5afa('0x4a')]?{'type':_0x5afa('0x3c'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x5afa('0x11')==_0x55bf5a['type']&&_0x5afa('0xf')==_0x55bf5a['subType']?{'type':_0x5afa('0x3c'),'content':_0x5afa('0x2b')}:void 0x0),_0x8ca15b[_0x5afa('0x10')][_0x5afa('0x58')](_0x5b0e6b=>{if('attribute'!=_0x5b0e6b['type'])return;const {data:_0x2b046f}=_0x5b0e6b;if(!_0x2b046f||'alt'!=_0x2b046f[_0x5afa('0x56')])return;const _0x4fd2f8=_0x2b046f['newValue'];return _0x4fd2f8?{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x51482e,_0x5afa('0x50'),'\x22'+_0x4fd2f8+'\x22')}:{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x51482e,_0x5afa('0x3'))};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468348=this[_0x5afa('0x54')],_0x3090af=_0x468348['locale'];_0x468348['plugins'][_0x5afa('0x39')](_0x5afa('0x30'))[_0x5afa('0x10')][_0x5afa('0x58')](_0x4ede55=>{if(_0x5afa('0x11')!=_0x4ede55[_0x5afa('0x38')]&&_0x5afa('0x0')!=_0x4ede55[_0x5afa('0x38')])return;const {data:_0x43297a}=_0x4ede55;if(_0x43297a){if(_0x5afa('0x51')==_0x43297a[_0x5afa('0x46')]){const _0x429d7e=_0x43297a[_0x5afa('0x26')][0x0][_0x5afa('0x48')];return _0x429d7e?{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x3090af,_0x5afa('0x50'),'\x22'+_0x429d7e+'\x22')}:{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x3090af,_0x5afa('0x3'))};}if('resizeImage'==_0x43297a[_0x5afa('0x46')]){const _0x11d25c=_0x43297a[_0x5afa('0x26')][0x0]['width'];return _0x11d25c?{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x3090af,_0x5afa('0x29'),_0x11d25c)}:{'type':_0x5afa('0x3c'),'content':_0x3d5353(_0x3090af,_0x5afa('0x23'))};}}});}}
|
|
23
|
+
const _0x4d89=['attribute','fromPosition','_registerLegacyDescription','isOwn','isIntersecting','toPrevious','get','ELEMENT_INLINE_IMAGE','createRange','_findSuggestions','getClosestSelectedImageElement','removeObject','isCollapsed','markBlockFormat','nodeAfter','_descriptionFactory','selection','FORMAT_IMAGE_SIZE','locale','toNext','schema','toggleImageCaption','afterInit','newValue','formatBlock','*Set\x20image\x20width:*\x20%0','change','getFirstRange','_suggestionFactory','chain','end','forceDefaultExecution','imageCaption','key','*Set\x20image\x20text\x20alternative:*\x20%0','detach','imageStylePreApply','ImageTextAlternativeEditing','findIndex','ImageBlockEditing','enableCommand','registerDescriptionCallback','formatInline','has','ImageCaptionUtils','width','convertInlineImageToBlock','imageBlock','isBlockImage','type','markDeletion','find','element','imageTextAlternative','ImageResize','Block\x20image\x20to\x20inline\x20image','insertion','document','*Remove\x20image\x20text\x20alternative*','model','discard','ImageEditing','caption','ELEMENT_CAPTION','deletion','imageTypeInline','commandParams','convertBlockImageToInline','addObject','markInsertion','TrackChangesEditing','format','isBefore','alt','registerCustomCallback','ImageUploadEditing','registerElementLabel','getContainedElement','getSuggestionCallback','resizeImage','commandName','createRangeOn','join','start','_enableDefaultAttributesIntegration','getNearestSelectionRange','previous','plugins','registerAttributeLabel','editor','subType','filter','accept','isEqual','ImageCaptionEditing','Inline\x20image\x20to\x20block\x20image','length','getCaptionFromImageModelElement','resizedWidth','ImageInlineEditing'];(function(_0x310f3b,_0x4d89b4){const _0x1e5313=function(_0x3759ca){while(--_0x3759ca){_0x310f3b['push'](_0x310f3b['shift']());}};_0x1e5313(++_0x4d89b4);}(_0x4d89,0x132));const _0x1e53=function(_0x310f3b,_0x4d89b4){_0x310f3b=_0x310f3b-0x0;let _0x1e5313=_0x4d89[_0x310f3b];return _0x1e5313;};import{Plugin as _0x3086a4}from'ckeditor5/src/core.js';import{LivePosition as _0x3c61b8}from'ckeditor5/src/engine.js';import{getTranslation as _0x4f2c6f}from'../utils/common-translations.js';export default class it extends _0x3086a4{[_0x1e53('0x10')](){const _0x2eaff2=this[_0x1e53('0x53')];if(!_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x37')))return;const _0x57ef7e=_0x2eaff2[_0x1e53('0x51')]['get']('TrackChangesEditing'),_0xc43c26=_0x2eaff2['plugins'][_0x1e53('0x0')]('ImageUtils'),_0x514854=_0x2eaff2['locale'];_0x57ef7e['enableCommand']('insertImage'),_0x57ef7e[_0x1e53('0x9')][_0x1e53('0x46')](_0x1e53('0x29'),_0x2c060e=>_0x4f2c6f(_0x514854,'ELEMENT_IMAGE',_0x2c060e)),_0x57ef7e['_descriptionFactory'][_0x1e53('0x46')]('imageInline',_0x136ca4=>_0x4f2c6f(_0x514854,_0x1e53('0x1'),_0x136ca4)),_0x57ef7e[_0x1e53('0x9')][_0x1e53('0x46')](_0x1e53('0x38'),()=>_0x4f2c6f(_0x514854,_0x1e53('0x39'))),_0x2eaff2['plugins'][_0x1e53('0x25')](_0x1e53('0x45'))&&_0x57ef7e['enableCommand']('uploadImage'),_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x21'))&&_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x5d'))&&(_0x57ef7e[_0x1e53('0x22')](_0x1e53('0x3b'),(_0x1653d7,_0xd071ab)=>{const _0x3aca48=_0xc43c26[_0x1e53('0x4')](_0x2eaff2['model'][_0x1e53('0x33')]['selection']);_0x2eaff2[_0x1e53('0x35')][_0x1e53('0x14')](()=>{_0x57ef7e[_0x1e53('0x7')](_0x3aca48,{'commandName':'imageTypeInline','commandParams':[_0xd071ab]},[],'convertBlockImageToInline');});}),_0x57ef7e['enableCommand']('imageTypeBlock',(_0x99f933,_0x2d48c6)=>{_0x2eaff2[_0x1e53('0x35')]['change'](_0x572ad1=>{let _0x1660a9=_0xc43c26[_0x1e53('0x4')](_0x2eaff2[_0x1e53('0x35')][_0x1e53('0x33')][_0x1e53('0xa')]),_0x1eb9e6=_0x572ad1['createRangeOn'](_0x1660a9);const _0x33c35a=_0x3c61b8[_0x1e53('0x5f')](_0x1eb9e6[_0x1e53('0x4d')],_0x1e53('0x63')),_0x2a2616=_0x3c61b8[_0x1e53('0x5f')](_0x1eb9e6[_0x1e53('0x18')],_0x1e53('0xd'));_0x57ef7e[_0x1e53('0x19')](()=>_0x99f933(_0x2d48c6)),_0x1660a9=_0xc43c26[_0x1e53('0x4')](_0x2eaff2[_0x1e53('0x35')]['document'][_0x1e53('0xa')]),_0x1eb9e6=_0x572ad1[_0x1e53('0x4b')](_0x1660a9);const _0x4f78d7=_0x572ad1[_0x1e53('0x2')](_0x33c35a,_0x2a2616);_0x33c35a[_0x1e53('0x1d')](),_0x2a2616[_0x1e53('0x1d')](),_0x57ef7e[_0x1e53('0x7')](_0x1660a9,{'commandName':_0x1e53('0x3b'),'commandParams':[_0x2d48c6]},[],_0x1e53('0x28')),_0x4f78d7['start']['isBefore'](_0x1eb9e6[_0x1e53('0x4d')])&&_0x57ef7e['markInsertion'](_0x572ad1[_0x1e53('0x2')](_0x4f78d7[_0x1e53('0x4d')],_0x1eb9e6[_0x1e53('0x4d')]),_0x1e53('0x28')),_0x1eb9e6[_0x1e53('0x18')][_0x1e53('0x42')](_0x4f78d7[_0x1e53('0x18')])&&_0x57ef7e[_0x1e53('0x3f')](_0x572ad1[_0x1e53('0x2')](_0x1eb9e6[_0x1e53('0x18')],_0x4f78d7[_0x1e53('0x18')]),'convertInlineImageToBlock');});}),_0x57ef7e[_0x1e53('0x16')]['registerCustomCallback'](_0x1e53('0x12'),_0x1e53('0x28'),_0x1e53('0x4c'),()=>!0x1),_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x44')](_0x1e53('0x12'),_0x1e53('0x28'),_0x1e53('0x56'),()=>!0x1),_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x44')](_0x1e53('0x12'),_0x1e53('0x28'),_0x1e53('0x36'),_0x57ef7e[_0x1e53('0x16')]['getSuggestionCallback'](_0x1e53('0x12'),'',_0x1e53('0x56'))),_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x44')](_0x1e53('0x32'),_0x1e53('0x28'),_0x1e53('0x4c'),()=>!0x1),_0x57ef7e[_0x1e53('0x16')]['registerCustomCallback'](_0x1e53('0x32'),_0x1e53('0x28'),'discard',([_0x5a66f0])=>{const _0x650455=_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x48')]('insertion','',_0x1e53('0x36'));let _0x2c1b87=_0x5a66f0[_0x1e53('0x4d')],_0x4bb605=_0x5a66f0[_0x1e53('0x18')];const _0x5b07e4=_0x2eaff2[_0x1e53('0x35')][_0x1e53('0xe')][_0x1e53('0x4f')](_0x2c1b87,'backward'),_0x1f3dac=_0x2eaff2['model'][_0x1e53('0xe')][_0x1e53('0x4f')](_0x4bb605,'forward');_0x5b07e4['isCollapsed']&&(_0x2c1b87=_0x5b07e4[_0x1e53('0x4d')]),_0x1f3dac[_0x1e53('0x6')]&&(_0x4bb605=_0x1f3dac[_0x1e53('0x18')]),_0x650455([_0x2eaff2[_0x1e53('0x35')][_0x1e53('0x2')](_0x2c1b87,_0x4bb605)]);}),_0x57ef7e['_suggestionFactory'][_0x1e53('0x44')](_0x1e53('0x12'),_0x1e53('0x28'),_0x1e53('0x17'),_0x5fb7d4),_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x44')]('insertion',_0x1e53('0x28'),_0x1e53('0x17'),_0x5fb7d4)),_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x58'))&&(_0x57ef7e[_0x1e53('0x22')](_0x1e53('0xf'),(_0x3cbe1a,_0x3fbdee)=>{const _0x4d85e0=_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x0')](_0x1e53('0x26'));let _0x448a4d=_0xc43c26[_0x1e53('0x4')](_0x2eaff2['model'][_0x1e53('0x33')][_0x1e53('0xa')]),_0x2dbc72=_0x4d85e0['getCaptionFromImageModelElement'](_0x448a4d);_0x2eaff2[_0x1e53('0x35')][_0x1e53('0x14')](()=>{if(_0x2dbc72)return void _0x57ef7e[_0x1e53('0x2c')](_0x2eaff2['model'][_0x1e53('0x4b')](_0x2dbc72));const _0x1c014e=_0xc43c26[_0x1e53('0x2a')](_0x448a4d);_0x3cbe1a(_0x3fbdee),_0x448a4d=_0xc43c26[_0x1e53('0x4')](_0x2eaff2[_0x1e53('0x35')][_0x1e53('0x33')]['selection']),_0x2dbc72=_0x4d85e0[_0x1e53('0x5b')](_0x448a4d),_0x57ef7e[_0x1e53('0x3f')](_0x2eaff2['model'][_0x1e53('0x4b')](_0x2dbc72),_0x1c014e?null:_0x1e53('0x1a'));});}),_0x57ef7e[_0x1e53('0x16')][_0x1e53('0x44')]('insertion',_0x1e53('0x1a'),_0x1e53('0x17'),_0x5fb7d4));const _0x1b5163=[{'type':_0x1e53('0x12'),'subType':_0x1e53('0x1e')},{'type':_0x1e53('0x32'),'subType':'imageCaption'},{'type':_0x1e53('0x12'),'subType':_0x1e53('0x28')},{'type':_0x1e53('0x32'),'subType':'convertInlineImageToBlock'}];function _0x323990(_0x286204,_0x46cae1){const _0x337e09=_0x1b5163[_0x1e53('0x20')](({type:_0x116a81,subType:_0x384970})=>_0x286204['type']==_0x116a81&&_0x286204[_0x1e53('0x54')]==_0x384970),_0x1458c0=_0x1b5163[_0x1e53('0x20')](({type:_0x382678,subType:_0x2d9465})=>_0x46cae1['type']==_0x382678&&_0x46cae1[_0x1e53('0x54')]==_0x2d9465);if(_0x337e09<0x0||_0x1458c0<0x0)return!0x1;const _0x506d76=_0x286204[_0x1e53('0x15')](),_0x443e2e=_0x46cae1[_0x1e53('0x15')]();if((0x0==_0x337e09||0x1==_0x337e09)&&0x2==_0x1458c0&&_0x506d76[_0x1e53('0x62')](_0x443e2e))return!0x0;if(0x2==_0x337e09&&0x3==_0x1458c0){const _0x930c9b=_0x57ef7e[_0x1e53('0x3')](_0x506d76,_0x1e53('0x32'))[_0x1e53('0x55')](({suggestion:_0x2a927b,meta:_0x4e0dfa})=>_0x4e0dfa[_0x1e53('0x61')]&&'convertInlineImageToBlock'==_0x2a927b[_0x1e53('0x54')]);if(_0x930c9b[_0x1e53('0x5a')]>0x1&&_0x443e2e[_0x1e53('0x18')][_0x1e53('0x57')](_0x506d76['start']))return!0x0;if(0x1==_0x930c9b['length']&&(_0x506d76[_0x1e53('0x4d')]['isEqual'](_0x443e2e[_0x1e53('0x18')])||_0x506d76['end'][_0x1e53('0x57')](_0x443e2e[_0x1e53('0x4d')])))return!0x0;}if(0x3==_0x337e09&&0x3==_0x1458c0&&_0x506d76[_0x1e53('0x4d')][_0x1e53('0x42')](_0x443e2e['start'])){const _0xf5e74c=_0x506d76[_0x1e53('0x18')][_0x1e53('0x8')],_0x51f5ec=_0x443e2e[_0x1e53('0x4d')]['nodeBefore'];return _0xc43c26[_0x1e53('0x2a')](_0xf5e74c)&&_0xf5e74c===_0x51f5ec;}return!0x1;}function _0x5fb7d4(_0x15606e,_0x55d5c5){return _0x323990(_0x15606e,_0x55d5c5)?[_0x15606e,_0x55d5c5]:_0x323990(_0x55d5c5,_0x15606e)?[_0x55d5c5,_0x15606e]:null;}_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x30'))&&(_0x57ef7e[_0x1e53('0x4e')](_0x1e53('0x49'),[],[_0x1e53('0x5c')]),_0x57ef7e[_0x1e53('0x9')][_0x1e53('0x52')](_0x1e53('0x5c'),_0x4f2c6f(_0x514854,_0x1e53('0xb')))),_0x2eaff2[_0x1e53('0x51')][_0x1e53('0x25')](_0x1e53('0x1f'))&&_0x57ef7e[_0x1e53('0x4e')](_0x1e53('0x2f'),[],['alt']),_0x57ef7e[_0x1e53('0x9')][_0x1e53('0x23')](_0x2eb62b=>{if(!!_0x1b5163[_0x1e53('0x2d')](({type:_0x5e542f,subType:_0x468ef7})=>_0x2eb62b[_0x1e53('0x2b')]==_0x5e542f&&_0x2eb62b[_0x1e53('0x54')]==_0x468ef7))return _0x2eb62b[_0x1e53('0x50')]?{}:void 0x0;}),_0x57ef7e['_descriptionFactory'][_0x1e53('0x23')](_0x1ae9ec=>{if(_0x1e53('0x32')==_0x1ae9ec[_0x1e53('0x2b')]||_0x1e53('0x3a')==_0x1ae9ec[_0x1e53('0x2b')]){const _0x1a058a=_0x1ae9ec[_0x1e53('0x47')]();if(_0x1a058a&&_0x1a058a['is'](_0x1e53('0x2e'),_0x1e53('0x38')))return{'type':_0x1e53('0x32')==_0x1ae9ec['type']?_0x1e53('0x3e'):_0x1e53('0x5'),'element':_0x1a058a,'quantity':0x1};}}),_0x57ef7e[_0x1e53('0x9')][_0x1e53('0x23')](_0x2f3ae1=>_0x1e53('0x12')==_0x2f3ae1[_0x1e53('0x2b')]&&_0x1e53('0x28')==_0x2f3ae1[_0x1e53('0x54')]?{'type':'format','content':_0x1e53('0x59')}:_0x1e53('0x12')==_0x2f3ae1[_0x1e53('0x2b')]&&_0x1e53('0x3d')==_0x2f3ae1[_0x1e53('0x54')]?{'type':'format','content':_0x1e53('0x31')}:void 0x0),_0x57ef7e[_0x1e53('0x9')]['registerDescriptionCallback'](_0x605cf1=>{if(_0x1e53('0x5e')!=_0x605cf1[_0x1e53('0x2b')])return;const {data:_0x1c36fd}=_0x605cf1;if(!_0x1c36fd||_0x1e53('0x43')!=_0x1c36fd[_0x1e53('0x1b')])return;const _0x4141cc=_0x1c36fd[_0x1e53('0x11')];return _0x4141cc?{'type':_0x1e53('0x41'),'content':_0x4f2c6f(_0x514854,_0x1e53('0x1c'),'\x22'+_0x4141cc+'\x22')}:{'type':_0x1e53('0x41'),'content':_0x4f2c6f(_0x514854,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x1e53('0x60')]();}['_registerLegacyDescription'](){const _0x24e101=this[_0x1e53('0x53')],_0x4169d7=_0x24e101[_0x1e53('0xc')];_0x24e101[_0x1e53('0x51')][_0x1e53('0x0')](_0x1e53('0x40'))[_0x1e53('0x9')][_0x1e53('0x23')](_0x1160ce=>{if(_0x1e53('0x12')!=_0x1160ce['type']&&_0x1e53('0x24')!=_0x1160ce['type'])return;const {data:_0x23773e}=_0x1160ce;if(_0x23773e){if(_0x1e53('0x2f')==_0x23773e[_0x1e53('0x4a')]){const _0x422b38=_0x23773e[_0x1e53('0x3c')][0x0][_0x1e53('0x11')];return _0x422b38?{'type':_0x1e53('0x41'),'content':_0x4f2c6f(_0x4169d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x422b38+'\x22')}:{'type':_0x1e53('0x41'),'content':_0x4f2c6f(_0x4169d7,_0x1e53('0x34'))};}if('resizeImage'==_0x23773e[_0x1e53('0x4a')]){const _0x1da71f=_0x23773e[_0x1e53('0x3c')][0x0][_0x1e53('0x27')];return _0x1da71f?{'type':_0x1e53('0x41'),'content':_0x4f2c6f(_0x4169d7,_0x1e53('0x13'),_0x1da71f)}:{'type':'format','content':_0x4f2c6f(_0x4169d7,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58d2=['_descriptionFactory','getSuggestionCallback','afterInit','format','discard','TrackChangesEditing','get','locale','_registerLegacyDescription','_enableDefaultAttributesIntegration','attribute','key','editor','formatBlock','_suggestionFactory','formatInline','*Format:*\x20replace\x20image\x20URL','newValue','_handleLegacySuggestions','registerDescriptionCallback','oldValue','has','src','accept','replaceImageSource','plugins','registerCustomCallback','type','commandName'];(function(_0x410972,_0x58d2c6){const _0x1c9294=function(_0x368bec){while(--_0x368bec){_0x410972['push'](_0x410972['shift']());}};_0x1c9294(++_0x58d2c6);}(_0x58d2,0x75));const _0x1c92=function(_0x410972,_0x58d2c6){_0x410972=_0x410972-0x0;let _0x1c9294=_0x58d2[_0x410972];return _0x1c9294;};import{Plugin as _0x2dc0dc}from'ckeditor5/src/core.js';import{getTranslation as _0x2a308b}from'../utils/common-translations.js';export default class et extends _0x2dc0dc{[_0x1c92('0x1')](){if(!this[_0x1c92('0xb')]['plugins'][_0x1c92('0x14')]('ImageEditing'))return;const _0x58d7bf=this[_0x1c92('0xb')][_0x1c92('0x6')],_0x2151f5=this[_0x1c92('0xb')][_0x1c92('0x18')][_0x1c92('0x5')]('TrackChangesEditing');_0x2151f5[_0x1c92('0x8')](_0x1c92('0x17'),[],[_0x1c92('0x15')]),_0x2151f5[_0x1c92('0x1c')][_0x1c92('0x12')](_0x595bae=>{if(_0x1c92('0x9')!=_0x595bae[_0x1c92('0x1a')])return;const {data:_0x403f11}=_0x595bae;return _0x403f11&&_0x1c92('0x15')==_0x403f11[_0x1c92('0xa')]?_0x403f11[_0x1c92('0x10')]&&_0x403f11[_0x1c92('0x13')]?{'type':_0x1c92('0x2'),'content':_0x2a308b(_0x58d7bf,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this[_0x1c92('0x11')]();}['_handleLegacySuggestions'](){const _0x3196b4=this[_0x1c92('0xb')][_0x1c92('0x18')][_0x1c92('0x5')]('TrackChangesEditing');_0x3196b4[_0x1c92('0xd')][_0x1c92('0x19')](_0x1c92('0xc'),_0x1c92('0x17'),'accept',_0x3196b4[_0x1c92('0xd')][_0x1c92('0x0')]('formatBlock',null,'discard')),_0x3196b4[_0x1c92('0xd')]['registerCustomCallback'](_0x1c92('0xc'),_0x1c92('0x17'),_0x1c92('0x3'),_0x3196b4['_suggestionFactory']['getSuggestionCallback'](_0x1c92('0xc'),null,_0x1c92('0x16'))),this[_0x1c92('0x7')]();}[_0x1c92('0x7')](){const _0x45cda0=this[_0x1c92('0xb')],_0x1d497c=_0x45cda0['locale'];_0x45cda0[_0x1c92('0x18')][_0x1c92('0x5')](_0x1c92('0x4'))['_descriptionFactory'][_0x1c92('0x12')](_0x19ed93=>{if('formatBlock'!=_0x19ed93[_0x1c92('0x1a')]&&_0x1c92('0xe')!=_0x19ed93[_0x1c92('0x1a')])return;const {data:_0x13d350}=_0x19ed93;if(!_0x13d350||_0x1c92('0x17')!=_0x13d350[_0x1c92('0x1b')])return;return{'type':'format','content':_0x2a308b(_0x1d497c,_0x1c92('0xf'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14d6=['normalizedStyles','document','markBlockFormat','isBlockImage','getChangedMarkers','registerDescriptionCallback','toLowerCase','imageTypeInline','length','_registerLegacyDescription','enableCommand','isEqual','accept','getClosestSelectedImageElement','join','discardSuggestion','plugins','markInlineFormat','editor','discard','imageTypeBlock','hasSuggestion','subType','commandName','FORMAT_SIDE_IMAGE','type','start','registerPostFixer','newRange','filter','value','head','imageCaption','imageStyle','end','convertInlineImageToBlock','formatInline','shouldConvertImageType','nodeAfter','isInlineImage','commands','findIndex','get','refresh','registerCustomCallback','ImageStyleEditing','imageStylePostApply','model','getFirstRange','ImageUtils','insertion','_findSuggestions','createRangeOn','chain','_descriptionFactory','getSuggestion','TrackChangesEditing','locale','change','name','differ','nodeBefore','isBefore','title','formatBlock','selection','imageStylePreApply','next','from','getSuggestionCallback','_suggestionFactory','getContainedElement'];(function(_0x2b7797,_0x14d670){const _0x3962e5=function(_0x50349d){while(--_0x50349d){_0x2b7797['push'](_0x2b7797['shift']());}};_0x3962e5(++_0x14d670);}(_0x14d6,0x11a));const _0x3962=function(_0x2b7797,_0x14d670){_0x2b7797=_0x2b7797-0x0;let _0x3962e5=_0x14d6[_0x2b7797];return _0x3962e5;};import{Plugin as _0x3a09c0}from'ckeditor5/src/core.js';import{uid as _0x383e2c}from'ckeditor5/src/utils.js';import{getTranslation as _0x22ce94}from'../utils/common-translations.js';export default class st extends _0x3a09c0{['afterInit'](){const _0x1f87ff=this[_0x3962('0x18')];if(!_0x1f87ff[_0x3962('0x16')]['has'](_0x3962('0x33')))return;const _0x4fef19=_0x1f87ff[_0x3962('0x16')][_0x3962('0x30')](_0x3962('0x3e')),_0x3d67fe=_0x1f87ff[_0x3962('0x16')]['get'](_0x3962('0x37')),_0x4d9d5e={};_0x4fef19[_0x3962('0x10')](_0x3962('0x27'),(_0x17c591,_0x5ef4b6)=>{const _0x318692=_0x1f87ff['plugins']['get']('Users')['me'],_0x432537=_0x1f87ff[_0x3962('0x2e')][_0x3962('0x30')](_0x3962('0x27'));let _0x329c1c=_0x3d67fe[_0x3962('0x13')](_0x1f87ff[_0x3962('0x35')][_0x3962('0x7')][_0x3962('0x47')]),_0x27e8be=_0x1f87ff[_0x3962('0x35')][_0x3962('0x3a')](_0x329c1c),_0x30242a=_0x432537[_0x3962('0x24')];if(_0x30242a==_0x5ef4b6[_0x3962('0x24')])return;const _0x33cbe0={'commandName':_0x3962('0x27'),'commandParams':[_0x5ef4b6],'formatGroupId':_0x383e2c()};_0x1f87ff[_0x3962('0x35')][_0x3962('0x40')](()=>{if(_0x4fef19['getSuggestions']()[_0x3962('0x23')](_0x44b57d=>_0x44b57d['isInContent']&&_0x318692==_0x44b57d['author']&&(_0x3962('0x46')==_0x44b57d[_0x3962('0x1f')]||'formatInline'==_0x44b57d['type'])&&('imageStylePreApply'==_0x44b57d['subType']||_0x3962('0x34')==_0x44b57d[_0x3962('0x1c')])&&_0x44b57d[_0x3962('0x36')]()[_0x3962('0x11')](_0x27e8be))['forEach'](_0x38d043=>_0x4fef19['discardSuggestion'](_0x38d043[_0x3962('0x25')])),_0x329c1c=_0x3d67fe[_0x3962('0x13')](_0x1f87ff[_0x3962('0x35')][_0x3962('0x7')][_0x3962('0x47')]),_0x27e8be=_0x1f87ff[_0x3962('0x35')][_0x3962('0x3a')](_0x329c1c),_0x432537[_0x3962('0x31')](),_0x1f87ff[_0x3962('0x2e')]['get'](_0x3962('0xd'))['refresh'](),_0x1f87ff['commands'][_0x3962('0x30')](_0x3962('0x1a'))['refresh'](),_0x30242a=_0x432537['value'],_0x30242a!=_0x5ef4b6[_0x3962('0x24')])return _0x3d67fe[_0x3962('0x2d')](_0x329c1c)&&_0x432537[_0x3962('0x2b')](_0x5ef4b6[_0x3962('0x24')],_0x329c1c)?(_0x17c591({..._0x5ef4b6,'setImageSizes':!0x1}),_0x329c1c=_0x3d67fe[_0x3962('0x13')](_0x1f87ff[_0x3962('0x35')]['document'][_0x3962('0x47')]),void _0x4fef19[_0x3962('0x8')](_0x329c1c,{..._0x33cbe0,'commandReversedParams':[{'value':_0x30242a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d67fe[_0x3962('0x9')](_0x329c1c)?_0x4fef19[_0x3962('0x8')](_0x329c1c,_0x33cbe0,[],_0x3962('0x34')):_0x4fef19[_0x3962('0x17')](_0x27e8be,_0x33cbe0,_0x3962('0x34')));});});for(const _0x329427 of _0x1f87ff[_0x3962('0x16')][_0x3962('0x30')](_0x3962('0x33'))[_0x3962('0x6')])_0x4d9d5e[_0x329427[_0x3962('0x41')]]=_0x329427[_0x3962('0x45')][_0x3962('0xc')]();_0x4fef19[_0x3962('0x4')][_0x3962('0x32')]('formatBlock',_0x3962('0x0'),'join',()=>!0x1),_0x4fef19['_suggestionFactory']['registerCustomCallback'](_0x3962('0x46'),'imageStylePostApply',_0x3962('0x14'),()=>!0x1),_0x4fef19['_suggestionFactory'][_0x3962('0x32')](_0x3962('0x2a'),'imageStylePostApply',_0x3962('0x14'),()=>!0x1),_0x4fef19[_0x3962('0x4')][_0x3962('0x32')](_0x3962('0x46'),_0x3962('0x0'),_0x3962('0x12'),([_0x5d752b])=>{_0x3d67fe['setImageNaturalSizeAttributes'](_0x5d752b[_0x3962('0x5')]());}),_0x4fef19['_suggestionFactory'][_0x3962('0x32')](_0x3962('0x46'),_0x3962('0x0'),_0x3962('0x19'),(_0xad903e,_0xf85ee3)=>{_0x4fef19['_suggestionFactory'][_0x3962('0x3')](_0x3962('0x46'),'',_0x3962('0x12'))(_0xad903e,{'commandName':_0xf85ee3[_0x3962('0x1d')],'commandParams':_0xf85ee3['commandReversedParams']});}),_0x4fef19['_suggestionFactory'][_0x3962('0x32')](_0x3962('0x46'),_0x3962('0x0'),_0x3962('0x3b'),function(_0x9dd2ce,_0x21fa5b){if(_0x22b43f(_0x9dd2ce,_0x21fa5b))return[_0x9dd2ce,_0x21fa5b];if(_0x22b43f(_0x21fa5b,_0x9dd2ce))return[_0x21fa5b,_0x9dd2ce];return null;});const _0x312f75=[{'type':'formatBlock','subType':_0x3962('0x0')},{'type':_0x3962('0x38'),'subType':'imageCaption'},{'type':_0x3962('0x46'),'subType':_0x3962('0x29')},{'type':_0x3962('0x38'),'subType':'convertInlineImageToBlock'}];function _0x22b43f(_0x10fe43,_0x5a0fb0){const _0x1f0f6a=_0x312f75[_0x3962('0x2f')](({type:_0x41aa49,subType:_0x5ecf65})=>_0x10fe43[_0x3962('0x1f')]==_0x41aa49&&_0x10fe43['subType']==_0x5ecf65),_0x5c4c0e=_0x312f75[_0x3962('0x2f')](({type:_0x4a7663,subType:_0x1ffb32})=>_0x5a0fb0[_0x3962('0x1f')]==_0x4a7663&&_0x5a0fb0[_0x3962('0x1c')]==_0x1ffb32);if(_0x1f0f6a<0x0||_0x5c4c0e<0x0)return!0x1;const _0x43529c=_0x10fe43[_0x3962('0x36')](),_0xb0d73d=_0x5a0fb0[_0x3962('0x36')]();if((0x0==_0x1f0f6a||0x1==_0x1f0f6a)&&0x2==_0x5c4c0e&&_0x43529c['isIntersecting'](_0xb0d73d))return!0x0;if(0x2==_0x1f0f6a&&0x3==_0x5c4c0e){const _0x3aee44=_0x4fef19[_0x3962('0x39')](_0x43529c,_0x3962('0x38'))[_0x3962('0x23')](({suggestion:_0x4ccfab,meta:_0xc69244})=>_0xc69244['isOwn']&&'convertInlineImageToBlock'==_0x4ccfab[_0x3962('0x1c')]);if(_0x3aee44[_0x3962('0xe')]>0x1&&_0xb0d73d[_0x3962('0x28')][_0x3962('0x11')](_0x43529c[_0x3962('0x20')]))return!0x0;if(0x1==_0x3aee44[_0x3962('0xe')]&&(_0x43529c[_0x3962('0x20')][_0x3962('0x11')](_0xb0d73d['end'])||_0x43529c['end'][_0x3962('0x11')](_0xb0d73d[_0x3962('0x20')])))return!0x0;}if(0x3==_0x1f0f6a&&0x3==_0x5c4c0e&&_0x43529c[_0x3962('0x20')][_0x3962('0x44')](_0xb0d73d[_0x3962('0x20')])){const _0x1fc8b5=_0x43529c[_0x3962('0x28')][_0x3962('0x2c')],_0x61302d=_0xb0d73d[_0x3962('0x20')][_0x3962('0x43')];return _0x3d67fe['isBlockImage'](_0x1fc8b5)&&_0x1fc8b5===_0x61302d;}return!0x1;}_0x1f87ff[_0x3962('0x35')]['document'][_0x3962('0x21')](()=>{let _0x27c6ac=!0x1;const _0x518a19=Array[_0x3962('0x2')](_0x1f87ff[_0x3962('0x35')]['document'][_0x3962('0x42')][_0x3962('0xa')]());for(const {name:_0x5ca35c,data:_0x10750a}of _0x518a19){const {group:_0x333f6b,type:_0x16276e,subType:_0x452c49,id:_0x553665}=_0x4fef19['_splitMarkerName'](_0x5ca35c);if('suggestion'==_0x333f6b&&_0x4fef19[_0x3962('0x1b')](_0x553665)){if(_0x3962('0x46')==_0x16276e&&(_0x3962('0x0')==_0x452c49||_0x3962('0x34')==_0x452c49)){const _0x346a27=_0x4fef19[_0x3962('0x3d')](_0x553665);if(_0x10750a[_0x3962('0x22')]){const _0x2a6900=_0x346a27[_0x3962('0x36')]()[_0x3962('0x5')]();if(_0x3d67fe[_0x3962('0x9')](_0x2a6900))continue;_0x4fef19['discardSuggestion'](_0x346a27),_0x27c6ac=!0x0;}}if(_0x3962('0x38')==_0x16276e&&_0x3962('0x26')==_0x452c49&&!_0x10750a[_0x3962('0x22')]){const _0x366596=_0x4fef19['getSuggestion'](_0x553665);_0x366596['next']&&_0x366596[_0x3962('0x1')]['isInContent']&&(_0x4fef19[_0x3962('0x15')](_0x366596[_0x3962('0x1')]),_0x27c6ac=!0x0);}}}return _0x27c6ac;}),this[_0x3962('0xf')](_0x4d9d5e);}[_0x3962('0xf')](_0x17cf62){const _0x4f98c5=this[_0x3962('0x18')],_0x34fe3a=_0x4f98c5[_0x3962('0x3f')];_0x4f98c5[_0x3962('0x16')][_0x3962('0x30')]('TrackChangesEditing')[_0x3962('0x3c')][_0x3962('0xb')](_0x4e6247=>{if(_0x3962('0x46')!=_0x4e6247[_0x3962('0x1f')]&&_0x3962('0x2a')!=_0x4e6247[_0x3962('0x1f')])return;const {data:_0x39de66}=_0x4e6247;if(!_0x39de66||_0x3962('0x27')!=_0x39de66[_0x3962('0x1d')])return;const _0x43e911=_0x39de66['commandParams'][0x0]['value'];return _0x409230('side'===_0x43e911?_0x22ce94(_0x34fe3a,_0x3962('0x1e')):_0x17cf62[_0x43e911]||_0x43e911);function _0x409230(_0x4c03f0){return{'type':'format','content':_0x22ce94(_0x34fe3a,'*Format:*\x20%0',_0x4c03f0)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x441c=['collaboration_features','Users','enableCommand','execute','dataInsert','commands','listenTo','plugins','editor','track_changes','_trackChangesValueDuringImport','high','get','_trackChangesExecuted','_handleImportedData','TrackChangesEditing','_setSuggestionData','importWord','forEach','trackChanges','lowest','value'];(function(_0x217a2d,_0x441c70){const _0x2cf141=function(_0x317c80){while(--_0x317c80){_0x217a2d['push'](_0x217a2d['shift']());}};_0x2cf141(++_0x441c70);}(_0x441c,0xf0));const _0x2cf1=function(_0x217a2d,_0x441c70){_0x217a2d=_0x217a2d-0x0;let _0x2cf141=_0x441c[_0x217a2d];return _0x2cf141;};import{Plugin as _0x428ee1}from'ckeditor5/src/core.js';export default class nt extends _0x428ee1{constructor(_0x48eb48){super(_0x48eb48),this[_0x2cf1('0xc')]=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b7d16=this[_0x2cf1('0xa')],_0x547697=_0x3b7d16[_0x2cf1('0x7')][_0x2cf1('0xe')](_0x2cf1('0x13')),_0x1193da=_0x3b7d16[_0x2cf1('0x7')][_0x2cf1('0xe')](_0x2cf1('0x15'));_0x547697&&(_0x547697['on'](_0x2cf1('0x5'),(_0xfa42,[,_0x1fbbc5])=>{this[_0x2cf1('0xc')]=_0x1193da[_0x2cf1('0x1')],_0x1fbbc5[_0x2cf1('0x2')][_0x2cf1('0xb')]=!this[_0x2cf1('0xc')];},{'priority':_0x2cf1('0xd')}),this['listenTo'](_0x547697,'dataInsert',this[_0x2cf1('0x10')]['bind'](this)),this[_0x2cf1('0x8')](_0x547697,_0x2cf1('0x6'),()=>{this[_0x2cf1('0xf')]&&(_0x1193da[_0x2cf1('0x5')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x2cf1('0x0')}),_0x3b7d16[_0x2cf1('0x9')][_0x2cf1('0xe')](_0x2cf1('0x11'))[_0x2cf1('0x4')](_0x2cf1('0x13')));}[_0x2cf1('0x10')](_0x1adcfd,_0x2649c1){const {suggestions:_0x5cc007}=_0x2649c1,_0x5f5860=this[_0x2cf1('0xa')]['commands'][_0x2cf1('0xe')](_0x2cf1('0x15')),_0x1a59f1=_0x5f5860[_0x2cf1('0x1')];this[_0x2cf1('0xc')]!==_0x1a59f1&&(_0x5f5860[_0x2cf1('0x5')](),this[_0x2cf1('0xf')]=!0x0),_0x5cc007&&_0x5cc007[_0x2cf1('0x14')](({id:_0x1f8cd9,type:_0x135968,author:_0x46649b,created_at:_0x465455})=>{const _0x211637={'id':_0x1f8cd9,'type':_0x135968,'authorId':this['editor']['plugins']['get'](_0x2cf1('0x3'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46649b,'createdAt':_0x465455?new Date(_0x465455):new Date(),'source':_0x2cf1('0x13')}}};this['editor']['plugins']['get'](_0x2cf1('0x11'))[_0x2cf1('0x12')](_0x211637);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33fb=['has','getItems','locale','enableCommand','registerAttributeLabel','indentBlock','indent','*Outdent:*\x20%0','registerDescriptionCallback','*Indent:*\x20%0','editor','_registerLegacyDescription','_descriptionFactory','blockIndent','TrackChangesEditing','outdentBlock','format','IndentBlock','outdent','afterInit','IndentEditing','FORMAT_INDENT','commandName','plugins'];(function(_0x318e19,_0x33fb85){const _0x3476b3=function(_0x4b2f9d){while(--_0x4b2f9d){_0x318e19['push'](_0x318e19['shift']());}};_0x3476b3(++_0x33fb85);}(_0x33fb,0x134));const _0x3476=function(_0x318e19,_0x33fb85){_0x318e19=_0x318e19-0x0;let _0x3476b3=_0x33fb[_0x318e19];return _0x3476b3;};import{Plugin as _0x2e29dd}from'ckeditor5/src/core.js';import{getTranslation as _0x5ab748}from'../utils/common-translations.js';export default class ot extends _0x2e29dd{[_0x3476('0x17')](){const _0x50d68c=this[_0x3476('0xe')],_0xd8a95a=_0x50d68c[_0x3476('0x3')]['get']('TrackChangesEditing');if(_0x50d68c[_0x3476('0x3')]['has'](_0x3476('0x0'))&&(_0xd8a95a[_0x3476('0x7')](_0x3476('0xa')),_0xd8a95a[_0x3476('0x7')](_0x3476('0x16'))),_0x50d68c['plugins'][_0x3476('0x4')](_0x3476('0x15')))for(const _0x5f0aa5 of['indentBlock',_0x3476('0x13')])_0xd8a95a['_enableDefaultAttributesIntegration'](_0x5f0aa5);const _0x427c44=_0x50d68c[_0x3476('0x6')];_0xd8a95a['_registerBlockAttribute'](_0x3476('0x11')),_0xd8a95a[_0x3476('0x10')][_0x3476('0x8')](_0x3476('0x11'),_0x5ab748(_0x427c44,_0x3476('0x1'))),this['_registerLegacyDescription']();}[_0x3476('0xf')](){const _0x26bfdf=this[_0x3476('0xe')],_0x39e67c=_0x26bfdf[_0x3476('0x6')],_0x57ec8f=_0x26bfdf[_0x3476('0x3')]['get'](_0x3476('0x12'));_0x57ec8f[_0x3476('0x10')][_0x3476('0xc')](_0x1f9bc9=>{if('formatBlock'!=_0x1f9bc9['type'])return;const {data:_0x3e7933}=_0x1f9bc9;if(!_0x3e7933)return;if(_0x3476('0x9')!=_0x3e7933[_0x3476('0x2')]&&_0x3476('0x13')!=_0x3e7933[_0x3476('0x2')])return;const _0x2b639d=_0x1f9bc9[_0x3476('0x5')]()[0x0],_0x4d97c5=_0x57ec8f[_0x3476('0x10')]['getItemLabel'](_0x2b639d);return _0x3476('0x9')==_0x3e7933[_0x3476('0x2')]?{'type':_0x3476('0x14'),'content':_0x5ab748(_0x39e67c,_0x3476('0xd'),_0x4d97c5)}:'outdentBlock'==_0x3e7933['commandName']?{'type':_0x3476('0x14'),'content':_0x5ab748(_0x39e67c,_0x3476('0xb'),_0x4d97c5)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d12=['plugins','enableCommand','input','requires','TrackChangesEditing','init'];(function(_0x5a46bc,_0x2d1231){var _0x270112=function(_0x1d7c3f){while(--_0x1d7c3f){_0x5a46bc['push'](_0x5a46bc['shift']());}};_0x270112(++_0x2d1231);}(_0x2d12,0x1df));var _0x2701=function(_0x5a46bc,_0x2d1231){_0x5a46bc=_0x5a46bc-0x0;var _0x270112=_0x2d12[_0x5a46bc];return _0x270112;};import{Plugin as _0x3e33d4}from'ckeditor5/src/core.js';import{Input as _0xacf545}from'ckeditor5/src/typing.js';export default class rt extends _0x3e33d4{static get[_0x2701('0x4')](){return[_0xacf545];}[_0x2701('0x0')](){this['editor'][_0x2701('0x1')]['get'](_0x2701('0x5'))[_0x2701('0x2')](_0x2701('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5739=['linkHref','TrackChangesEditing','locale','*Set\x20link:*\x20%0','formatInline','format','commands','registerDescriptionCallback','commandParams','label','editor','_enableDefaultAttributesIntegration','_registerLegacyDescription','get','attribute','LinkEditing','type','afterInit','manualDecorators','plugins','commandName','*Remove\x20link*','link','registerAttributeLabel','unlink','_descriptionFactory'];(function(_0x39777c,_0x573998){const _0xe35016=function(_0x358780){while(--_0x358780){_0x39777c['push'](_0x39777c['shift']());}};_0xe35016(++_0x573998);}(_0x5739,0x155));const _0xe350=function(_0x39777c,_0x573998){_0x39777c=_0x39777c-0x0;let _0xe35016=_0x5739[_0x39777c];return _0xe35016;};import{Plugin as _0x58d8f9}from'ckeditor5/src/core.js';import{getTranslation as _0x27b10f}from'../utils/common-translations.js';export default class at extends _0x58d8f9{[_0xe350('0xe')](){const _0x55d447=this[_0xe350('0x7')];if(!_0x55d447['plugins']['has'](_0xe350('0xc')))return;const _0x1e489c=_0x55d447[_0xe350('0x10')]['get'](_0xe350('0x18')),_0x153c01=_0x55d447[_0xe350('0x3')][_0xe350('0xa')](_0xe350('0x13'));_0x1e489c[_0xe350('0x8')]('link',[_0xe350('0x17'),..._0x153c01[_0xe350('0xf')]['map'](_0x4b92f6=>_0x4b92f6['id'])]),_0x1e489c[_0xe350('0x8')](_0xe350('0x15'));for(const _0xfae112 of _0x153c01[_0xe350('0xf')])_0x1e489c[_0xe350('0x16')][_0xe350('0x14')](_0xfae112['id'],'link\x20('+_0xfae112[_0xe350('0x6')]['toLowerCase']()+')');_0x1e489c[_0xe350('0x16')]['registerDescriptionCallback'](_0x631c79=>{if(_0xe350('0xb')!=_0x631c79[_0xe350('0xd')])return;const {data:_0x1627e6}=_0x631c79;if(!_0x1627e6||_0xe350('0x17')!=_0x1627e6['key'])return;const _0x4d6347=_0x1627e6['newValue'],_0x3421a7=_0x55d447[_0xe350('0x19')];return{'type':_0xe350('0x2'),'content':null==_0x4d6347?_0x27b10f(_0x3421a7,_0xe350('0x12')):_0x27b10f(_0x3421a7,_0xe350('0x0'),'\x22'+_0x4d6347+'\x22')};}),this[_0xe350('0x9')]();}[_0xe350('0x9')](){const _0x469b77=this[_0xe350('0x7')],_0x1a6219=_0x469b77[_0xe350('0x19')];_0x469b77['plugins'][_0xe350('0xa')](_0xe350('0x18'))[_0xe350('0x16')][_0xe350('0x4')](_0x579725=>{if(_0xe350('0x1')!=_0x579725[_0xe350('0xd')])return;const {data:_0x2abb3c}=_0x579725;if(_0x2abb3c){if(_0xe350('0x13')==_0x2abb3c[_0xe350('0x11')]){const _0x42e6bd=_0x2abb3c[_0xe350('0x5')][0x0];return{'type':_0xe350('0x2'),'content':_0x27b10f(_0x1a6219,_0xe350('0x0'),'\x22'+_0x42e6bd+'\x22')};}return _0xe350('0x15')==_0x2abb3c[_0xe350('0x11')]?{'type':_0xe350('0x2'),'content':_0x27b10f(_0x1a6219,_0xe350('0x12'))}:void 0x0;}});}}
|