@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231125.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 _0x3950=['get','FORMAT_FONT_SIZE','FontSize','*Set\x20font\x20background\x20color:*\x20%0','config','locale','FontFamilyEditing','trim','_descriptionFactory','fontSize','*Set\x20font\x20color:*\x20%0','commandName','FORMAT_FONT_BACKGROUND','TrackChangesEditing','toLowerCase','fontColor','afterInit','format','registerAttributeLabel','normalizeSizeOptions','fontBackgroundColor','*Reset\x20font\x20family*','model','_registerLegacyDescription','FontColorEditing','fontBackgroundColor.colors','commandParams','value','*Set\x20font\x20family:*\x20%0','editor','FontBackgroundColorEditing','_enableDefaultAttributesIntegration','FORMAT_FONT_FAMILY','*Reset\x20font\x20size*','FontSizeEditing','fontFamily','find','label','fontSize.options','plugins'];(function(_0x37b6ae,_0x395007){const _0xf1a2fc=function(_0x3b1375){while(--_0x3b1375){_0x37b6ae['push'](_0x37b6ae['shift']());}};_0xf1a2fc(++_0x395007);}(_0x3950,0x14e));const _0xf1a2=function(_0x37b6ae,_0x395007){_0x37b6ae=_0x37b6ae-0x0;let _0xf1a2fc=_0x3950[_0x37b6ae];return _0xf1a2fc;};import{Plugin as _0x39f988}from'ckeditor5/src/core';import{normalizeColorOptions as _0x44ad26}from'ckeditor5/src/ui';import{getTranslation as _0x5ef994}from'../utils/common-translations';const ro=[{'pluginName':_0xf1a2('0x14'),'commandName':_0xf1a2('0x23')},{'pluginName':_0xf1a2('0x20'),'commandName':_0xf1a2('0x15')},{'pluginName':_0xf1a2('0xa'),'commandName':_0xf1a2('0x1')},{'pluginName':_0xf1a2('0x10'),'commandName':_0xf1a2('0x6')}];export default class J extends _0x39f988{[_0xf1a2('0x2')](){const _0x33772c=this['editor'][_0xf1a2('0x1f')],_0x2aec5e=this[_0xf1a2('0xf')][_0xf1a2('0x19')][_0xf1a2('0x1a')](_0xf1a2('0x27'));for(const {pluginName:_0x5cf1b0,commandName:_0x3203bd}of ro)this[_0xf1a2('0xf')][_0xf1a2('0x19')]['has'](_0x5cf1b0)&&_0x2aec5e[_0xf1a2('0x11')](_0x3203bd,[_0x3203bd]);_0x33772c['t'],(_0x2aec5e[_0xf1a2('0x22')][_0xf1a2('0x4')](_0xf1a2('0x23'),_0x5ef994(_0x33772c,_0xf1a2('0x1b'))),_0x2aec5e['_descriptionFactory']['registerAttributeLabel']('fontFamily',_0x5ef994(_0x33772c,_0xf1a2('0x12'))),_0x2aec5e['_descriptionFactory'][_0xf1a2('0x4')](_0xf1a2('0x1'),_0x5ef994(_0x33772c,'FORMAT_FONT_COLOR')),_0x2aec5e['_descriptionFactory'][_0xf1a2('0x4')]('fontBackgroundColor',_0x5ef994(_0x33772c,_0xf1a2('0x26'))),this[_0xf1a2('0x9')]());}[_0xf1a2('0x9')](){const _0x46cd2b=this[_0xf1a2('0xf')],_0x349c57=_0x46cd2b[_0xf1a2('0x1f')];_0x46cd2b['plugins'][_0xf1a2('0x1a')](_0xf1a2('0x27'))[_0xf1a2('0x22')]['registerDescriptionCallback'](_0x16df84=>{const _0x2893ec=_0x349c57['t'];if('formatInline'!=_0x16df84['type'])return;const {data:_0x1810ef}=_0x16df84;if(null!=_0x1810ef){if('fontSize'==_0x1810ef[_0xf1a2('0x25')]){const _0x49e410=_0x1810ef[_0xf1a2('0xc')][0x0][_0xf1a2('0xd')];if(_0x49e410){const _0x10daed=_0x2893ec(this['editor'][_0xf1a2('0x19')][_0xf1a2('0x1a')](_0xf1a2('0x1c'))[_0xf1a2('0x5')](this[_0xf1a2('0xf')][_0xf1a2('0x1e')][_0xf1a2('0x1a')](_0xf1a2('0x18')))[_0xf1a2('0x16')](_0x158627=>_0x158627['model']==_0x49e410)['title'])[_0xf1a2('0x0')]();return{'type':_0xf1a2('0x3'),'content':_0x5ef994(_0x349c57,'*Set\x20font\x20size:*\x20%0',_0x10daed)};}return{'type':_0xf1a2('0x3'),'content':_0x5ef994(_0x349c57,_0xf1a2('0x13'))};}if(_0xf1a2('0x15')==_0x1810ef['commandName']){const _0x3f2254=_0x1810ef[_0xf1a2('0xc')][0x0]['value'];return _0x3f2254?{'type':'format','content':_0x5ef994(_0x349c57,_0xf1a2('0xe'),_0x3f2254)}:{'type':_0xf1a2('0x3'),'content':_0x5ef994(_0x349c57,_0xf1a2('0x7'))};}if(_0xf1a2('0x1')==_0x1810ef[_0xf1a2('0x25')]){const _0x2e252f=_0x1810ef[_0xf1a2('0xc')][0x0]['value'];if(_0x2e252f){const _0x1203fe=_0x44ad26(this['editor'][_0xf1a2('0x1e')]['get']('fontColor.colors'))[_0xf1a2('0x16')](_0x461548=>_0x461548[_0xf1a2('0x8')]==_0x2e252f);let _0x148496=_0x2e252f,_0x1a16e3='';return _0x1203fe&&(_0x148496=_0x1203fe[_0xf1a2('0x17')],_0x1a16e3=_0x2893ec(_0x148496)[_0xf1a2('0x0')]()),{'type':_0xf1a2('0x3'),'content':_0x5ef994(_0x349c57,_0xf1a2('0x24'),_0x1a16e3)[_0xf1a2('0x21')](),'color':{'value':_0x2e252f,'title':_0x1a16e3||_0x148496}};}return{'type':'format','content':_0x5ef994(_0x349c57,'*Reset\x20font\x20color*')};}if(_0xf1a2('0x6')==_0x1810ef[_0xf1a2('0x25')]){const _0x16d266=_0x1810ef[_0xf1a2('0xc')][0x0][_0xf1a2('0xd')];if(_0x16d266){const _0x127868=_0x44ad26(this[_0xf1a2('0xf')][_0xf1a2('0x1e')][_0xf1a2('0x1a')](_0xf1a2('0xb')))[_0xf1a2('0x16')](_0x2fbb38=>_0x2fbb38[_0xf1a2('0x8')]==_0x16d266);let _0x2d6f1b=_0x16d266,_0xc8017d='';return _0x127868&&(_0x2d6f1b=_0x127868[_0xf1a2('0x17')],_0xc8017d=_0x2893ec(_0x2d6f1b)[_0xf1a2('0x0')]()),{'type':'format','content':_0x5ef994(_0x349c57,_0xf1a2('0x1d'),_0xc8017d)[_0xf1a2('0x21')](),'color':{'value':_0x16d266,'title':_0xc8017d||_0x2d6f1b}};}return{'type':'format','content':_0x5ef994(_0x349c57,'*Reset\x20font\x20background\x20color*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4731=['plugins','entries','split','fontSize.options','*Remove\x20all\x20formatting*','TrackChangesEditing','fontSize','FontSize','join','boolean','formatInline','format','editor','fontColor.colors','_enableDefaultAttributesIntegration','charAt','locale','get','type','commands','model','normalizeSizeOptions','*Set\x20format\x20to:*\x20%0','commandName','pasteFormat','afterInit','commandParams','slice','label','fontBackgroundColor','toUpperCase','fontColor','_registerLegacyDescription','formatBlock','copyFormat','length','config','toLowerCase','push'];(function(_0x50b799,_0x473174){const _0x2acf6a=function(_0x52ea97){while(--_0x52ea97){_0x50b799['push'](_0x50b799['shift']());}};_0x2acf6a(++_0x473174);}(_0x4731,0x1b7));const _0x2acf=function(_0x50b799,_0x473174){_0x50b799=_0x50b799-0x0;let _0x2acf6a=_0x4731[_0x50b799];return _0x2acf6a;};import{Plugin as _0x5d093b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x162de4}from'ckeditor5/src/ui';import{getTranslation as _0x146a6a}from'../utils/common-translations';export default class Q extends _0x5d093b{[_0x2acf('0xf')](){const _0x2a0fd0=this[_0x2acf('0x2')],_0x1c812b=_0x2a0fd0[_0x2acf('0x1d')][_0x2acf('0x7')](_0x2acf('0x22')),_0x2a11eb=_0x2a0fd0[_0x2acf('0x9')][_0x2acf('0x7')](_0x2acf('0x18')),_0x28d89b=_0x2a0fd0['commands'][_0x2acf('0x7')]('pasteFormat');_0x2a11eb&&_0x28d89b&&(_0x1c812b[_0x2acf('0x4')](_0x2acf('0xe')),_0x1c812b['enableCommand'](_0x2acf('0x18')),this[_0x2acf('0x16')]());}[_0x2acf('0x16')](){const _0x4863f9=this['editor'],_0x57a5e8=_0x4863f9[_0x2acf('0x6')];_0x4863f9['plugins'][_0x2acf('0x7')]('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1b6c83=>{if(_0x2acf('0x17')!=_0x1b6c83[_0x2acf('0x8')]&&_0x2acf('0x0')!=_0x1b6c83[_0x2acf('0x8')])return;const {data:_0x49065b}=_0x1b6c83;if(_0x49065b&&_0x2acf('0xe')===_0x49065b[_0x2acf('0xd')]){const _0x172116=[],_0x2b0431=_0x49065b[_0x2acf('0x10')][0x0];for(const [_0x3ae41b,_0xcc6c6]of Object[_0x2acf('0x1e')](_0x2b0431))_0x172116[_0x2acf('0x1c')](ao(_0x4863f9,_0x3ae41b,_0xcc6c6));return _0x172116[_0x2acf('0x19')]?{'type':_0x2acf('0x1'),'content':_0x146a6a(_0x57a5e8,_0x2acf('0xc'),_0x172116[_0x2acf('0x25')](',\x20'))}:{'type':'format','content':_0x146a6a(_0x57a5e8,_0x2acf('0x21'))};}});}}function ao(_0x21dd69,_0x4d2e60,_0x36a408){const _0x5d8250=_0x21dd69[_0x2acf('0x6')]['t'],_0x244c37=_0x4d2e60[_0x2acf('0x1f')](/(?=[A-Z])/)[_0x2acf('0x25')]('\x20'),_0x31f36d=_0x5d8250(_0x244c37[_0x2acf('0x5')](0x0)[_0x2acf('0x14')]()+_0x244c37[_0x2acf('0x11')](0x1))['toLowerCase']();if(_0x2acf('0x26')==typeof _0x36a408)return _0x31f36d;if(_0x2acf('0x15')===_0x4d2e60||_0x2acf('0x13')===_0x4d2e60){const _0x49cc16=_0x162de4(_0x21dd69[_0x2acf('0x1a')]['get'](_0x2acf('0x3')))['find'](_0x14c746=>_0x14c746[_0x2acf('0xa')]==_0x36a408);return _0x31f36d+'\x20('+(_0x49cc16?_0x5d8250(_0x49cc16[_0x2acf('0x12')])['toLowerCase']():_0x36a408)+')';}if(_0x2acf('0x23')===_0x4d2e60&&isNaN(parseFloat(_0x36a408))){const _0x48ead8=_0x21dd69[_0x2acf('0x1d')]['get'](_0x2acf('0x24'))[_0x2acf('0xb')](_0x21dd69[_0x2acf('0x1a')][_0x2acf('0x7')](_0x2acf('0x20')))['find'](_0x547e61=>_0x547e61[_0x2acf('0xa')]==_0x36a408);return _0x31f36d+'\x20('+(_0x48ead8?_0x5d8250(_0x48ead8['title'])[_0x2acf('0x1b')]():_0x36a408)+')';}return _0x31f36d+'\x20('+_0x36a408+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xda43=['name','_getHeadingLevel','plugins','locale','_descriptionFactory','HeadingEditing','editor','has','ELEMENT_HEADING_CUSTOM','heading','afterInit','_enableDefaultAttributesIntegration','get','model','TrackChangesEditing','paragraph','title','_registerLegacyDescription','match','type','registerElementLabel','ELEMENT_HEADING','_headingOptions','*Change\x20to:*\x20%0','commandName','format','find'];(function(_0xe97d8e,_0xda43e9){const _0x5f1ff4=function(_0x56f7a5){while(--_0x56f7a5){_0xe97d8e['push'](_0xe97d8e['shift']());}};_0x5f1ff4(++_0xda43e9);}(_0xda43,0xa1));const _0x5f1f=function(_0xe97d8e,_0xda43e9){_0xe97d8e=_0xe97d8e-0x0;let _0x5f1ff4=_0xda43[_0xe97d8e];return _0x5f1ff4;};import{Plugin as _0x2412f4}from'ckeditor5/src/core';import{getTranslation as _0x2ebfa1}from'../utils/common-translations';export default class X extends _0x2412f4{[_0x5f1f('0xb')](){const _0x11b317=this['editor'];if(!_0x11b317[_0x5f1f('0x3')][_0x5f1f('0x8')](_0x5f1f('0x6')))return;this['_headingOptions']=_0x11b317['config']['get']('heading.options');const _0x13d863=_0x11b317[_0x5f1f('0x4')],_0x56c0ac=_0x11b317[_0x5f1f('0x3')][_0x5f1f('0xd')](_0x5f1f('0xf'));_0x56c0ac[_0x5f1f('0xc')](_0x5f1f('0xa'));for(const _0x51c9ae of this[_0x5f1f('0x17')])_0x5f1f('0x10')!=_0x51c9ae[_0x5f1f('0xe')]&&_0x56c0ac[_0x5f1f('0x5')][_0x5f1f('0x15')](_0x51c9ae[_0x5f1f('0xe')],_0x2868e5=>{const _0x110459=this['_getHeadingLevel'](_0x51c9ae['model']);return null!==_0x110459?_0x11b503(_0x2868e5,_0x110459):_0x32e601(_0x2868e5,_0x51c9ae[_0x5f1f('0x11')]);});function _0x11b503(_0x239b89,_0xf3dea6){return _0x2ebfa1(_0x13d863,_0x5f1f('0x16'),[_0x239b89,_0xf3dea6]);}function _0x32e601(_0x3c9273,_0x1b23ba){return _0x2ebfa1(_0x13d863,'ELEMENT_HEADING_CUSTOM',[_0x3c9273,_0x1b23ba]);}this[_0x5f1f('0x12')]();}[_0x5f1f('0x12')](){const _0x43f017=this[_0x5f1f('0x7')],_0x1e2c2f=_0x43f017[_0x5f1f('0x4')];function _0x4f16b1(_0x287306,_0x41157e){return _0x2ebfa1(_0x1e2c2f,_0x5f1f('0x9'),[_0x287306,_0x41157e]);}_0x43f017[_0x5f1f('0x3')]['get'](_0x5f1f('0xf'))[_0x5f1f('0x5')]['registerDescriptionCallback'](_0xdd7de2=>{if('formatBlock'!=_0xdd7de2[_0x5f1f('0x14')])return;const {data:_0x212cc7}=_0xdd7de2;if(_0x212cc7&&_0x5f1f('0xa')==_0x212cc7[_0x5f1f('0x19')]){const _0x554012=_0x212cc7['commandParams'][0x0]['value'],_0x7ee6f=this[_0x5f1f('0x2')](_0x554012);if(null!==_0x7ee6f)return{'type':_0x5f1f('0x1a'),'content':_0x2ebfa1(_0x1e2c2f,_0x5f1f('0x18'),(_0x4a5ef4=0x1,_0x14121f=_0x7ee6f,_0x2ebfa1(_0x1e2c2f,_0x5f1f('0x16'),[_0x4a5ef4,_0x14121f])))};const _0xd0073=this[_0x5f1f('0x17')][_0x5f1f('0x0')](_0x1ea6d1=>_0x1ea6d1[_0x5f1f('0xe')]===_0x554012)[_0x5f1f('0x11')];return{'type':_0x5f1f('0x1a'),'content':_0x2ebfa1(_0x1e2c2f,'*Change\x20to:*\x20%0',_0x4f16b1(0x1,_0xd0073))};}var _0x4a5ef4,_0x14121f;});}['_getHeadingLevel'](_0x1149ee){var _0x4cf673,_0x632873;const _0x501269=_0x1149ee[_0x5f1f('0x13')](/^heading(\d+)/);if(_0x501269)return _0x501269[0x1];const _0x160ba5=null===(_0x4cf673=this['_headingOptions'])||void 0x0===_0x4cf673?void 0x0:_0x4cf673['find'](_0x1e6aa2=>_0x1e6aa2[_0x5f1f('0xe')]==_0x1149ee);if(_0x160ba5&&_0x160ba5['view']){const _0x13507f=_0x160ba5['view'],_0x428e35=(null!==(_0x632873=_0x13507f[_0x5f1f('0x1')])&&void 0x0!==_0x632873?_0x632873:_0x13507f)['match'](/^h(\d+)/);if(_0x428e35)return _0x428e35[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c7a=['*Set\x20highlight:*\x20%0','title','commandParams','HighlightEditing','color','TrackChangesEditing','highlight','type','_descriptionFactory','has','commandName','format','registerDescriptionCallback','get','highlight.options','*Remove\x20highlight*','locale','config','registerAttributeLabel','plugins','model','afterInit','FORMAT_HIGHLIGHT','editor','_registerLegacyDescription','formatInline'];(function(_0x5ec45d,_0x1c7ae6){const _0x2e2e39=function(_0x26c720){while(--_0x26c720){_0x5ec45d['push'](_0x5ec45d['shift']());}};_0x2e2e39(++_0x1c7ae6);}(_0x1c7a,0x1f2));const _0x2e2e=function(_0x5ec45d,_0x1c7ae6){_0x5ec45d=_0x5ec45d-0x0;let _0x2e2e39=_0x1c7a[_0x5ec45d];return _0x2e2e39;};import{Plugin as _0x2d1c65}from'ckeditor5/src/core';import{getTranslation as _0x3b1d27}from'../utils/common-translations';export default class Y extends _0x2d1c65{[_0x2e2e('0x11')](){const _0x1bdc2a=this['editor'];if(!_0x1bdc2a[_0x2e2e('0xf')][_0x2e2e('0x5')](_0x2e2e('0x19')))return;const _0x29ca2a=_0x1bdc2a[_0x2e2e('0xf')][_0x2e2e('0x9')]('TrackChangesEditing'),_0x1f5a50=_0x1bdc2a[_0x2e2e('0xc')];_0x29ca2a['_enableDefaultAttributesIntegration'](_0x2e2e('0x2'),['highlight']),_0x29ca2a[_0x2e2e('0x4')][_0x2e2e('0xe')]('highlight',_0x3b1d27(_0x1f5a50,_0x2e2e('0x12'))),this[_0x2e2e('0x14')]();}[_0x2e2e('0x14')](){const _0x20d866=this[_0x2e2e('0x13')],_0x58ce0c=_0x20d866[_0x2e2e('0xc')];_0x20d866[_0x2e2e('0xf')][_0x2e2e('0x9')](_0x2e2e('0x1'))['_descriptionFactory'][_0x2e2e('0x8')](_0x3702dc=>{if(_0x2e2e('0x15')!=_0x3702dc[_0x2e2e('0x3')])return;const {data:_0x38d01e}=_0x3702dc;if(_0x38d01e&&'highlight'==_0x38d01e[_0x2e2e('0x6')]){const _0x4fc932=_0x58ce0c['t'],_0x5b507f=_0x38d01e[_0x2e2e('0x18')][0x0]['value'];if(_0x5b507f){const _0x1980e3=_0x20d866[_0x2e2e('0xd')]['get'](_0x2e2e('0xa'))['find'](_0x59cb22=>_0x59cb22[_0x2e2e('0x10')]==_0x5b507f),_0x425814=_0x4fc932(_0x1980e3[_0x2e2e('0x17')])['toLowerCase']();return{'type':_0x2e2e('0x7'),'content':_0x3b1d27(_0x58ce0c,_0x2e2e('0x16'),_0x425814),'color':{'value':_0x1980e3[_0x2e2e('0x0')],'title':_0x1980e3[_0x2e2e('0x17')]}};}return{'type':'format','content':_0x3b1d27(_0x58ce0c,_0x2e2e('0xb'),_0x3b1d27(_0x58ce0c,_0x2e2e('0x12')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37a4=['div','conversion','editor','enableCommand','for','has','showSuggestionHighlights','dataDowncast','locale','createEmptyElement','ck-horizontal-line','insert','afterInit','TrackChangesEditing','ELEMENT_HORIZONTAL_LINE','_descriptionFactory','get','horizontalLine','HorizontalLineEditing','plugins','createContainerElement','elementToStructure','createPositionAt','registerElementLabel','addClass','high'];(function(_0x15423e,_0x37a449){const _0x3e7df3=function(_0x5cf3c2){while(--_0x5cf3c2){_0x15423e['push'](_0x15423e['shift']());}};_0x3e7df3(++_0x37a449);}(_0x37a4,0xbd));const _0x3e7d=function(_0x15423e,_0x37a449){_0x15423e=_0x15423e-0x0;let _0x3e7df3=_0x37a4[_0x15423e];return _0x3e7df3;};import{Plugin as _0x3b5299}from'ckeditor5/src/core';import{getTranslation as _0x13b200}from'../utils/common-translations';export default class Z extends _0x3b5299{[_0x3e7d('0x5')](){const _0x3c4dcd=this[_0x3e7d('0x15')];if(!_0x3c4dcd[_0x3e7d('0xc')][_0x3e7d('0x18')](_0x3e7d('0xb')))return;_0x3c4dcd['plugins'][_0x3e7d('0x9')]('TrackChangesEditing')[_0x3e7d('0x16')](_0x3e7d('0xa'));const _0x27b579=_0x3c4dcd['plugins'][_0x3e7d('0x9')](_0x3e7d('0x6')),_0x4a422d=_0x3c4dcd[_0x3e7d('0x1')];_0x27b579[_0x3e7d('0x8')][_0x3e7d('0x10')](_0x3e7d('0xa'),_0x91b460=>_0x13b200(_0x4a422d,_0x3e7d('0x7'),_0x91b460)),_0x3c4dcd[_0x3e7d('0x14')][_0x3e7d('0x17')](_0x3e7d('0x0'))[_0x3e7d('0xe')]({'model':'horizontalLine','view':(_0x2e6043,{writer:_0x2a799f,options:_0x521d8f})=>{if(!_0x521d8f[_0x3e7d('0x19')])return null;const _0x13d5a7=_0x2a799f[_0x3e7d('0xd')](_0x3e7d('0x13')),_0x23cc43=_0x2a799f[_0x3e7d('0x2')]('hr');return _0x2a799f[_0x3e7d('0x11')](_0x3e7d('0x3'),_0x13d5a7),_0x2a799f[_0x3e7d('0x4')](_0x2a799f[_0x3e7d('0xf')](_0x13d5a7,0x0),_0x23cc43),_0x13d5a7;},'converterPriority':_0x3e7d('0x12')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a10=['_descriptionFactory','TrackChangesEditing','rawHtml','get','editor','nodeAfter','HtmlEmbed','*Change\x20%0\x20content*','ELEMENT_HTML_EMBED','format','locale','plugins','_registerLegacyDescription','element','registerDescriptionCallback','htmlEmbed','getFirstRange','start','key','commandName','afterInit','value'];(function(_0x105122,_0x4a1010){const _0x5691ae=function(_0x4eac28){while(--_0x4eac28){_0x105122['push'](_0x105122['shift']());}};_0x5691ae(++_0x4a1010);}(_0x4a10,0x68));const _0x5691=function(_0x105122,_0x4a1010){_0x105122=_0x105122-0x0;let _0x5691ae=_0x4a10[_0x105122];return _0x5691ae;};import{Plugin as _0x48b4b1}from'ckeditor5/src/core';import{getTranslation as _0x238c8d}from'../utils/common-translations';export default class tt extends _0x48b4b1{[_0x5691('0x4')](){const _0x1fd604=this['editor'];if(!_0x1fd604[_0x5691('0x11')]['has'](_0x5691('0xc')))return;const _0x1fd72f=_0x1fd604[_0x5691('0x11')][_0x5691('0x9')](_0x5691('0x7')),_0x269113=_0x1fd604[_0x5691('0x10')];_0x1fd72f[_0x5691('0x6')]['registerElementLabel'](_0x5691('0x8'),_0x2bfa65=>_0x238c8d(_0x269113,'ELEMENT_HTML_EMBED',_0x2bfa65)),_0x1fd72f['_enableDefaultAttributesIntegration'](_0x5691('0x15'),[],[_0x5691('0x5')]),_0x1fd72f[_0x5691('0x6')]['registerDescriptionCallback'](_0x4c4c5c=>{if('attribute'!=_0x4c4c5c['type'])return;const {data:_0x406841}=_0x4c4c5c;if(_0x406841&&_0x5691('0x5')==_0x406841[_0x5691('0x2')]&&_0x4c4c5c[_0x5691('0x0')]()[_0x5691('0x1')][_0x5691('0xb')]['is'](_0x5691('0x13'),'rawHtml')){const _0x2012ba=_0x238c8d(_0x269113,'ELEMENT_HTML_EMBED');return{'type':_0x5691('0xf'),'content':_0x238c8d(_0x269113,_0x5691('0xd'),_0x2012ba)};}}),this[_0x5691('0x12')]();}['_registerLegacyDescription'](){const _0x2e4ad2=this[_0x5691('0xa')],_0x5091de=_0x2e4ad2['locale'];_0x2e4ad2[_0x5691('0x11')][_0x5691('0x9')](_0x5691('0x7'))[_0x5691('0x6')][_0x5691('0x14')](_0x3d7ad5=>{if('formatBlock'!=_0x3d7ad5['type'])return;const {data:_0x5c6b7d}=_0x3d7ad5;if(_0x5c6b7d&&_0x5691('0x15')==_0x5c6b7d[_0x5691('0x3')]){const _0x5b4917=_0x238c8d(_0x5091de,_0x5691('0xe'));return{'type':_0x5691('0xf'),'content':_0x238c8d(_0x5091de,'*Change\x20%0\x20content*',_0x5b4917)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2ac7=['nodeAfter','createRange','selection','_registerLegacyDescription','change','*Remove\x20image\x20text\x20alternative*','imageStylePreApply','insertion','schema','*Reset\x20image\x20width*','isEqual','ImageUploadEditing','discard','backward','removeObject','isCollapsed','ImageResize','toggleImageCaption','detach','find','registerDescriptionCallback','imageTextAlternative','filter','caption','locale','ImageEditing','end','imageCaption','getCaptionFromImageModelElement','convertBlockImageToInline','_suggestionFactory','isBlockImage','model','markBlockFormat','nodeBefore','editor','getSuggestionCallback','isBefore','length','getFirstRange','resizedWidth','registerElementLabel','key','format','getNearestSelectionRange','insertImage','getClosestSelectedImageElement','imageInline','start','deletion','type','addObject','get','formatBlock','ELEMENT_CAPTION','isIntersecting','commandParams','alt','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','imageTypeInline','_descriptionFactory','imageBlock','width','ImageInlineEditing','plugins','ELEMENT_IMAGE','ImageUtils','Inline\x20image\x20to\x20block\x20image','_enableDefaultAttributesIntegration','*Set\x20image\x20width:*\x20%0','afterInit','ELEMENT_INLINE_IMAGE','toPrevious','fromPosition','formatInline','subType','accept','chain','resizeImage','enableCommand','join','ImageCaptionEditing','element','TrackChangesEditing','document','markInsertion','registerCustomCallback','convertInlineImageToBlock','Block\x20image\x20to\x20inline\x20image','createRangeOn','has','isOwn','ImageTextAlternativeEditing'];(function(_0x1ad947,_0x2ac71d){const _0x568bf4=function(_0x2565ca){while(--_0x2565ca){_0x1ad947['push'](_0x1ad947['shift']());}};_0x568bf4(++_0x2ac71d);}(_0x2ac7,0xd4));const _0x568b=function(_0x1ad947,_0x2ac71d){_0x1ad947=_0x1ad947-0x0;let _0x568bf4=_0x2ac7[_0x1ad947];return _0x568bf4;};import{Plugin as _0x518bb2}from'ckeditor5/src/core';import{LivePosition as _0x509f5b}from'ckeditor5/src/engine';import{getTranslation as _0x180804}from'../utils/common-translations';export default class it extends _0x518bb2{[_0x568b('0x2f')](){const _0x411a2a=this[_0x568b('0xb')];if(!_0x411a2a[_0x568b('0x29')][_0x568b('0x43')](_0x568b('0x1')))return;const _0x7bcdc5=_0x411a2a[_0x568b('0x29')][_0x568b('0x1c')]('TrackChangesEditing'),_0x2ef852=_0x411a2a['plugins'][_0x568b('0x1c')](_0x568b('0x2b')),_0x179211=_0x411a2a[_0x568b('0x0')];_0x7bcdc5[_0x568b('0x38')](_0x568b('0x15')),_0x7bcdc5[_0x568b('0x25')][_0x568b('0x11')](_0x568b('0x26'),_0x41b697=>_0x180804(_0x179211,_0x568b('0x2a'),_0x41b697)),_0x7bcdc5['_descriptionFactory'][_0x568b('0x11')](_0x568b('0x17'),_0x184823=>_0x180804(_0x179211,_0x568b('0x30'),_0x184823)),_0x7bcdc5[_0x568b('0x25')][_0x568b('0x11')](_0x568b('0x5d'),()=>_0x180804(_0x179211,_0x568b('0x1e'))),_0x411a2a[_0x568b('0x29')][_0x568b('0x43')](_0x568b('0x51'))&&_0x7bcdc5[_0x568b('0x38')]('uploadImage'),_0x411a2a[_0x568b('0x29')][_0x568b('0x43')]('ImageBlockEditing')&&_0x411a2a[_0x568b('0x29')][_0x568b('0x43')](_0x568b('0x28'))&&(_0x7bcdc5[_0x568b('0x38')](_0x568b('0x24'),(_0x9f1d5d,_0x27ea3a)=>{const _0x292531=_0x2ef852[_0x568b('0x16')](_0x411a2a['model'][_0x568b('0x3d')][_0x568b('0x48')]);_0x411a2a['model'][_0x568b('0x4a')](()=>{_0x7bcdc5[_0x568b('0x9')](_0x292531,{'commandName':_0x568b('0x24'),'commandParams':[_0x27ea3a]},[],_0x568b('0x5'));});}),_0x7bcdc5[_0x568b('0x38')]('imageTypeBlock',(_0x295c66,_0x14fd82)=>{_0x411a2a[_0x568b('0x8')][_0x568b('0x4a')](_0x3bc132=>{let _0x2c4538=_0x2ef852['getClosestSelectedImageElement'](_0x411a2a['model'][_0x568b('0x3d')]['selection']),_0x6f26=_0x3bc132[_0x568b('0x42')](_0x2c4538);const _0x17c22e=_0x509f5b[_0x568b('0x32')](_0x6f26['start'],_0x568b('0x31')),_0x7435e3=_0x509f5b[_0x568b('0x32')](_0x6f26[_0x568b('0x2')],'toNext');_0x7bcdc5['forceDefaultExecution'](()=>_0x295c66(_0x14fd82)),_0x2c4538=_0x2ef852[_0x568b('0x16')](_0x411a2a['model'][_0x568b('0x3d')][_0x568b('0x48')]),_0x6f26=_0x3bc132['createRangeOn'](_0x2c4538);const _0x5557af=_0x3bc132[_0x568b('0x47')](_0x17c22e,_0x7435e3);_0x17c22e[_0x568b('0x58')](),_0x7435e3['detach'](),_0x7bcdc5[_0x568b('0x9')](_0x2c4538,{'commandName':'imageTypeInline','commandParams':[_0x14fd82]},[],_0x568b('0x40')),_0x5557af[_0x568b('0x18')]['isBefore'](_0x6f26[_0x568b('0x18')])&&_0x7bcdc5['markInsertion'](_0x3bc132[_0x568b('0x47')](_0x5557af[_0x568b('0x18')],_0x6f26[_0x568b('0x18')]),_0x568b('0x40')),_0x6f26[_0x568b('0x2')][_0x568b('0xd')](_0x5557af[_0x568b('0x2')])&&_0x7bcdc5[_0x568b('0x3e')](_0x3bc132['createRange'](_0x6f26['end'],_0x5557af['end']),'convertInlineImageToBlock');});}),_0x7bcdc5[_0x568b('0x6')]['registerCustomCallback'](_0x568b('0x1d'),_0x568b('0x40'),'join',()=>!0x1),_0x7bcdc5['_suggestionFactory'][_0x568b('0x3f')]('formatBlock',_0x568b('0x40'),'accept',()=>!0x1),_0x7bcdc5['_suggestionFactory'][_0x568b('0x3f')](_0x568b('0x1d'),_0x568b('0x40'),_0x568b('0x52'),_0x7bcdc5[_0x568b('0x6')][_0x568b('0xc')](_0x568b('0x1d'),'',_0x568b('0x35'))),_0x7bcdc5[_0x568b('0x6')][_0x568b('0x3f')](_0x568b('0x4d'),'convertInlineImageToBlock',_0x568b('0x39'),()=>!0x1),_0x7bcdc5[_0x568b('0x6')]['registerCustomCallback'](_0x568b('0x4d'),_0x568b('0x40'),_0x568b('0x52'),([_0x42e1ca])=>{const _0x40c67d=_0x7bcdc5[_0x568b('0x6')]['getSuggestionCallback']('insertion','',_0x568b('0x52'));let _0x2e3999=_0x42e1ca[_0x568b('0x18')],_0x5a4e79=_0x42e1ca[_0x568b('0x2')];const _0x45bcdc=_0x411a2a[_0x568b('0x8')][_0x568b('0x4e')][_0x568b('0x14')](_0x2e3999,_0x568b('0x53')),_0x53b5ed=_0x411a2a[_0x568b('0x8')]['schema']['getNearestSelectionRange'](_0x5a4e79,'forward');_0x45bcdc['isCollapsed']&&(_0x2e3999=_0x45bcdc[_0x568b('0x18')]),_0x53b5ed[_0x568b('0x55')]&&(_0x5a4e79=_0x53b5ed[_0x568b('0x2')]),_0x40c67d([_0x411a2a['model'][_0x568b('0x47')](_0x2e3999,_0x5a4e79)]);}),_0x7bcdc5[_0x568b('0x6')][_0x568b('0x3f')](_0x568b('0x1d'),_0x568b('0x40'),_0x568b('0x36'),_0x476433),_0x7bcdc5[_0x568b('0x6')][_0x568b('0x3f')]('insertion','convertInlineImageToBlock','chain',_0x476433)),_0x411a2a[_0x568b('0x29')][_0x568b('0x43')](_0x568b('0x3a'))&&(_0x7bcdc5[_0x568b('0x38')](_0x568b('0x57'),(_0x2a5d60,_0x330db8)=>{const _0x1556b3=_0x411a2a[_0x568b('0x29')][_0x568b('0x1c')]('ImageCaptionUtils');let _0x421f85=_0x2ef852[_0x568b('0x16')](_0x411a2a[_0x568b('0x8')][_0x568b('0x3d')][_0x568b('0x48')]),_0x28797b=_0x1556b3[_0x568b('0x4')](_0x421f85);_0x411a2a[_0x568b('0x8')][_0x568b('0x4a')](()=>{if(_0x28797b)return void _0x7bcdc5[_0x568b('0x23')](_0x411a2a['model'][_0x568b('0x42')](_0x28797b));const _0x4ddca1=_0x2ef852[_0x568b('0x7')](_0x421f85);_0x2a5d60(_0x330db8),_0x421f85=_0x2ef852['getClosestSelectedImageElement'](_0x411a2a[_0x568b('0x8')][_0x568b('0x3d')][_0x568b('0x48')]),_0x28797b=_0x1556b3['getCaptionFromImageModelElement'](_0x421f85),_0x7bcdc5[_0x568b('0x3e')](_0x411a2a[_0x568b('0x8')][_0x568b('0x42')](_0x28797b),_0x4ddca1?null:_0x568b('0x3'));});}),_0x7bcdc5[_0x568b('0x6')][_0x568b('0x3f')](_0x568b('0x4d'),_0x568b('0x3'),_0x568b('0x36'),_0x476433));const _0xeb3dc4=[{'type':'formatBlock','subType':_0x568b('0x4c')},{'type':_0x568b('0x4d'),'subType':_0x568b('0x3')},{'type':'formatBlock','subType':_0x568b('0x40')},{'type':_0x568b('0x4d'),'subType':_0x568b('0x40')}];function _0x5c1e6d(_0x353de6,_0x7cedc3){const _0x1e37ad=_0xeb3dc4['findIndex'](({type:_0x5b469e,subType:_0x1b91eb})=>_0x353de6[_0x568b('0x1a')]==_0x5b469e&&_0x353de6[_0x568b('0x34')]==_0x1b91eb),_0x3020d2=_0xeb3dc4['findIndex'](({type:_0x289038,subType:_0x343409})=>_0x7cedc3[_0x568b('0x1a')]==_0x289038&&_0x7cedc3[_0x568b('0x34')]==_0x343409);if(_0x1e37ad<0x0||_0x3020d2<0x0)return!0x1;const _0x1c1aa4=_0x353de6[_0x568b('0xf')](),_0x480f2b=_0x7cedc3[_0x568b('0xf')]();if((0x0==_0x1e37ad||0x1==_0x1e37ad)&&0x2==_0x3020d2&&_0x1c1aa4[_0x568b('0x1f')](_0x480f2b))return!0x0;if(0x2==_0x1e37ad&&0x3==_0x3020d2){const _0x531962=_0x7bcdc5['_findSuggestions'](_0x1c1aa4,_0x568b('0x4d'))[_0x568b('0x5c')](({suggestion:_0x2cb7e0,meta:_0x220c05})=>_0x220c05[_0x568b('0x44')]&&_0x568b('0x40')==_0x2cb7e0[_0x568b('0x34')]);if(_0x531962[_0x568b('0xe')]>0x1&&_0x480f2b[_0x568b('0x2')][_0x568b('0x50')](_0x1c1aa4[_0x568b('0x18')]))return!0x0;if(0x1==_0x531962[_0x568b('0xe')]&&(_0x1c1aa4[_0x568b('0x18')][_0x568b('0x50')](_0x480f2b[_0x568b('0x2')])||_0x1c1aa4[_0x568b('0x2')][_0x568b('0x50')](_0x480f2b[_0x568b('0x18')])))return!0x0;}if(0x3==_0x1e37ad&&0x3==_0x3020d2&&_0x1c1aa4[_0x568b('0x18')][_0x568b('0xd')](_0x480f2b[_0x568b('0x18')])){const _0x1674e8=_0x1c1aa4[_0x568b('0x2')][_0x568b('0x46')],_0x1d9805=_0x480f2b[_0x568b('0x18')][_0x568b('0xa')];return _0x2ef852[_0x568b('0x7')](_0x1674e8)&&_0x1674e8===_0x1d9805;}return!0x1;}function _0x476433(_0x4a4a1e,_0x58d73e){return _0x5c1e6d(_0x4a4a1e,_0x58d73e)?[_0x4a4a1e,_0x58d73e]:_0x5c1e6d(_0x58d73e,_0x4a4a1e)?[_0x58d73e,_0x4a4a1e]:null;}_0x411a2a[_0x568b('0x29')][_0x568b('0x43')](_0x568b('0x56'))&&(_0x7bcdc5['_enableDefaultAttributesIntegration'](_0x568b('0x37'),[],[_0x568b('0x10')]),_0x7bcdc5['_descriptionFactory']['registerAttributeLabel'](_0x568b('0x10'),_0x180804(_0x179211,'FORMAT_IMAGE_SIZE'))),_0x411a2a['plugins'][_0x568b('0x43')](_0x568b('0x45'))&&_0x7bcdc5[_0x568b('0x2d')](_0x568b('0x5b'),[],[_0x568b('0x21')]),_0x7bcdc5[_0x568b('0x25')][_0x568b('0x5a')](_0x272145=>{if(!!_0xeb3dc4[_0x568b('0x59')](({type:_0x10c6a1,subType:_0x332853})=>_0x272145[_0x568b('0x1a')]==_0x10c6a1&&_0x272145['subType']==_0x332853))return _0x272145['previous']?{}:void 0x0;}),_0x7bcdc5[_0x568b('0x25')]['registerDescriptionCallback'](_0x20391a=>{if(_0x568b('0x4d')==_0x20391a[_0x568b('0x1a')]||_0x568b('0x19')==_0x20391a[_0x568b('0x1a')]){const _0x132a14=_0x20391a['getContainedElement']();if(_0x132a14&&_0x132a14['is'](_0x568b('0x3b'),_0x568b('0x5d')))return{'type':_0x568b('0x4d')==_0x20391a[_0x568b('0x1a')]?_0x568b('0x1b'):_0x568b('0x54'),'element':_0x132a14,'quantity':0x1};}}),_0x7bcdc5[_0x568b('0x25')]['registerDescriptionCallback'](_0xeec8e8=>'formatBlock'==_0xeec8e8[_0x568b('0x1a')]&&'convertInlineImageToBlock'==_0xeec8e8[_0x568b('0x34')]?{'type':_0x568b('0x13'),'content':_0x568b('0x2c')}:_0x568b('0x1d')==_0xeec8e8[_0x568b('0x1a')]&&_0x568b('0x5')==_0xeec8e8[_0x568b('0x34')]?{'type':_0x568b('0x13'),'content':_0x568b('0x41')}:void 0x0),_0x7bcdc5['_descriptionFactory'][_0x568b('0x5a')](_0x642119=>{if('attribute'!=_0x642119[_0x568b('0x1a')])return;const {data:_0x1e5642}=_0x642119;if(!_0x1e5642||_0x568b('0x21')!=_0x1e5642[_0x568b('0x12')])return;const _0x365260=_0x1e5642['newValue'];return _0x365260?{'type':_0x568b('0x13'),'content':_0x180804(_0x179211,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x365260+'\x22')}:{'type':_0x568b('0x13'),'content':_0x180804(_0x179211,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x568b('0x49')]();}[_0x568b('0x49')](){const _0x2a92f5=this[_0x568b('0xb')],_0x26de10=_0x2a92f5[_0x568b('0x0')];_0x2a92f5[_0x568b('0x29')][_0x568b('0x1c')](_0x568b('0x3c'))['_descriptionFactory'][_0x568b('0x5a')](_0x1951fd=>{if(_0x568b('0x1d')!=_0x1951fd[_0x568b('0x1a')]&&_0x568b('0x33')!=_0x1951fd[_0x568b('0x1a')])return;const {data:_0x256e3e}=_0x1951fd;if(_0x256e3e){if(_0x568b('0x5b')==_0x256e3e['commandName']){const _0x47a49e=_0x256e3e[_0x568b('0x20')][0x0]['newValue'];return _0x47a49e?{'type':_0x568b('0x13'),'content':_0x180804(_0x26de10,_0x568b('0x22'),'\x22'+_0x47a49e+'\x22')}:{'type':_0x568b('0x13'),'content':_0x180804(_0x26de10,_0x568b('0x4b'))};}if(_0x568b('0x37')==_0x256e3e['commandName']){const _0x3ed313=_0x256e3e['commandParams'][0x0][_0x568b('0x27')];return _0x3ed313?{'type':_0x568b('0x13'),'content':_0x180804(_0x26de10,_0x568b('0x2e'),_0x3ed313)}:{'type':_0x568b('0x13'),'content':_0x180804(_0x26de10,_0x568b('0x4f'))};}}});}}
|
|
23
|
+
const _0x4979=['document','element','registerDescriptionCallback','Inline\x20image\x20to\x20block\x20image','find','_descriptionFactory','toNext','_enableDefaultAttributesIntegration','editor','resizeImage','imageInline','model','TrackChangesEditing','detach','commandName','has','alt','discard','addObject','ImageResize','fromPosition','ImageCaptionEditing','key','start','accept','registerAttributeLabel','toPrevious','isEqual','registerElementLabel','type','markDeletion','findIndex','attribute','schema','markBlockFormat','nodeBefore','get','convertInlineImageToBlock','change','ImageUtils','format','getCaptionFromImageModelElement','uploadImage','FORMAT_IMAGE_SIZE','createRange','locale','width','registerCustomCallback','isCollapsed','previous','ImageEditing','filter','getFirstRange','*Set\x20image\x20width:*\x20%0','imageTypeInline','imageTextAlternative','newValue','*Reset\x20image\x20width*','insertion','_suggestionFactory','_registerLegacyDescription','insertImage','toggleImageCaption','getClosestSelectedImageElement','enableCommand','Block\x20image\x20to\x20inline\x20image','isIntersecting','markInsertion','ImageInlineEditing','isOwn','resizedWidth','createRangeOn','imageCaption','getContainedElement','getSuggestionCallback','end','chain','forceDefaultExecution','deletion','isBefore','commandParams','imageTypeBlock','getNearestSelectionRange','afterInit','selection','ELEMENT_CAPTION','plugins','subType','forward','ImageBlockEditing','formatBlock','ELEMENT_INLINE_IMAGE','isBlockImage','convertBlockImageToInline','ELEMENT_IMAGE'];(function(_0x22f587,_0x4979c1){const _0x26f6d2=function(_0x3edcfd){while(--_0x3edcfd){_0x22f587['push'](_0x22f587['shift']());}};_0x26f6d2(++_0x4979c1);}(_0x4979,0xf6));const _0x26f6=function(_0x22f587,_0x4979c1){_0x22f587=_0x22f587-0x0;let _0x26f6d2=_0x4979[_0x22f587];return _0x26f6d2;};import{Plugin as _0x562589}from'ckeditor5/src/core';import{LivePosition as _0x3651de}from'ckeditor5/src/engine';import{getTranslation as _0x135b77}from'../utils/common-translations';export default class it extends _0x562589{[_0x26f6('0x1b')](){const _0x3f77e9=this['editor'];if(!_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x59')))return;const _0x539555=_0x3f77e9['plugins']['get'](_0x26f6('0x33')),_0x5e96b0=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x4e')),_0x47de15=_0x3f77e9['locale'];_0x539555[_0x26f6('0x8')](_0x26f6('0x5')),_0x539555[_0x26f6('0x2c')][_0x26f6('0x43')]('imageBlock',_0x6594d0=>_0x135b77(_0x47de15,_0x26f6('0x26'),_0x6594d0)),_0x539555[_0x26f6('0x2c')]['registerElementLabel'](_0x26f6('0x31'),_0x1cd6df=>_0x135b77(_0x47de15,_0x26f6('0x23'),_0x1cd6df)),_0x539555['_descriptionFactory'][_0x26f6('0x43')]('caption',()=>_0x135b77(_0x47de15,_0x26f6('0x1d'))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageUploadEditing')&&_0x539555[_0x26f6('0x8')](_0x26f6('0x51')),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x21'))&&_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0xc'))&&(_0x539555[_0x26f6('0x8')]('imageTypeInline',(_0x50ca87,_0x5dedbe)=>{const _0x8047d4=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9['model'][_0x26f6('0x27')]['selection']);_0x3f77e9['model'][_0x26f6('0x4d')](()=>{_0x539555[_0x26f6('0x49')](_0x8047d4,{'commandName':_0x26f6('0x5d'),'commandParams':[_0x5dedbe]},[],'convertBlockImageToInline');});}),_0x539555['enableCommand'](_0x26f6('0x19'),(_0x455e5a,_0x255010)=>{_0x3f77e9['model'][_0x26f6('0x4d')](_0xc9215b=>{let _0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')]['document'][_0x26f6('0x1c')]),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x1ef236=_0x3651de['fromPosition'](_0x248460[_0x26f6('0x3e')],_0x26f6('0x41')),_0x4f0229=_0x3651de[_0x26f6('0x3b')](_0x248460[_0x26f6('0x13')],_0x26f6('0x2d'));_0x539555[_0x26f6('0x15')](()=>_0x455e5a(_0x255010)),_0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x50da98=_0xc9215b[_0x26f6('0x53')](_0x1ef236,_0x4f0229);_0x1ef236[_0x26f6('0x34')](),_0x4f0229['detach'](),_0x539555[_0x26f6('0x49')](_0x51a647,{'commandName':'imageTypeInline','commandParams':[_0x255010]},[],_0x26f6('0x4c')),_0x50da98[_0x26f6('0x3e')][_0x26f6('0x17')](_0x248460['start'])&&_0x539555[_0x26f6('0xb')](_0xc9215b[_0x26f6('0x53')](_0x50da98[_0x26f6('0x3e')],_0x248460[_0x26f6('0x3e')]),'convertInlineImageToBlock'),_0x248460[_0x26f6('0x13')][_0x26f6('0x17')](_0x50da98[_0x26f6('0x13')])&&_0x539555[_0x26f6('0xb')](_0xc9215b['createRange'](_0x248460[_0x26f6('0x13')],_0x50da98['end']),_0x26f6('0x4c'));});}),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),_0x26f6('0x3f'),()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('formatBlock',_0x26f6('0x4c'),_0x26f6('0x38'),_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x22'),'',_0x26f6('0x3f'))),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x2'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),'discard',([_0x449daf])=>{const _0x2efafd=_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x2'),'',_0x26f6('0x38'));let _0x5a2bac=_0x449daf['start'],_0x2b87a9=_0x449daf[_0x26f6('0x13')];const _0x4fb2fc=_0x3f77e9[_0x26f6('0x32')]['schema'][_0x26f6('0x1a')](_0x5a2bac,'backward'),_0x315462=_0x3f77e9['model'][_0x26f6('0x48')][_0x26f6('0x1a')](_0x2b87a9,_0x26f6('0x20'));_0x4fb2fc[_0x26f6('0x57')]&&(_0x5a2bac=_0x4fb2fc[_0x26f6('0x3e')]),_0x315462['isCollapsed']&&(_0x2b87a9=_0x315462[_0x26f6('0x13')]),_0x2efafd([_0x3f77e9[_0x26f6('0x32')]['createRange'](_0x5a2bac,_0x2b87a9)]);}),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x22'),'convertInlineImageToBlock',_0x26f6('0x14'),_0xddebe),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),_0x26f6('0x14'),_0xddebe)),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x3c'))&&(_0x539555['enableCommand'](_0x26f6('0x6'),(_0x5154d2,_0x661516)=>{const _0x1299b6=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')]('ImageCaptionUtils');let _0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9['model'][_0x26f6('0x27')][_0x26f6('0x1c')]),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66);_0x3f77e9[_0x26f6('0x32')]['change'](()=>{if(_0x475bf4)return void _0x539555[_0x26f6('0x45')](_0x3f77e9[_0x26f6('0x32')]['createRangeOn'](_0x475bf4));const _0x4af9af=_0x5e96b0[_0x26f6('0x24')](_0x1e2c66);_0x5154d2(_0x661516),_0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66),_0x539555[_0x26f6('0xb')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0xf')](_0x475bf4),_0x4af9af?null:_0x26f6('0x10'));});}),_0x539555[_0x26f6('0x3')]['registerCustomCallback'](_0x26f6('0x2'),_0x26f6('0x10'),'chain',_0xddebe));const _0x53ab6f=[{'type':_0x26f6('0x22'),'subType':'imageStylePreApply'},{'type':_0x26f6('0x2'),'subType':'imageCaption'},{'type':_0x26f6('0x22'),'subType':_0x26f6('0x4c')},{'type':_0x26f6('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1eb605(_0x2fec63,_0x2bdc19){const _0x34cd19=_0x53ab6f[_0x26f6('0x46')](({type:_0x11c3c9,subType:_0x54c68f})=>_0x2fec63[_0x26f6('0x44')]==_0x11c3c9&&_0x2fec63['subType']==_0x54c68f),_0x347e60=_0x53ab6f[_0x26f6('0x46')](({type:_0x23a390,subType:_0x1fbc72})=>_0x2bdc19[_0x26f6('0x44')]==_0x23a390&&_0x2bdc19[_0x26f6('0x1f')]==_0x1fbc72);if(_0x34cd19<0x0||_0x347e60<0x0)return!0x1;const _0x4ed09b=_0x2fec63[_0x26f6('0x5b')](),_0x8bd15f=_0x2bdc19[_0x26f6('0x5b')]();if((0x0==_0x34cd19||0x1==_0x34cd19)&&0x2==_0x347e60&&_0x4ed09b[_0x26f6('0xa')](_0x8bd15f))return!0x0;if(0x2==_0x34cd19&&0x3==_0x347e60){const _0xda7e29=_0x539555['_findSuggestions'](_0x4ed09b,_0x26f6('0x2'))[_0x26f6('0x5a')](({suggestion:_0x4fc7af,meta:_0x18c157})=>_0x18c157[_0x26f6('0xd')]&&_0x26f6('0x4c')==_0x4fc7af[_0x26f6('0x1f')]);if(_0xda7e29['length']>0x1&&_0x8bd15f['end'][_0x26f6('0x42')](_0x4ed09b[_0x26f6('0x3e')]))return!0x0;if(0x1==_0xda7e29['length']&&(_0x4ed09b[_0x26f6('0x3e')][_0x26f6('0x42')](_0x8bd15f[_0x26f6('0x13')])||_0x4ed09b[_0x26f6('0x13')][_0x26f6('0x42')](_0x8bd15f['start'])))return!0x0;}if(0x3==_0x34cd19&&0x3==_0x347e60&&_0x4ed09b['start'][_0x26f6('0x17')](_0x8bd15f[_0x26f6('0x3e')])){const _0xae6e51=_0x4ed09b['end']['nodeAfter'],_0x529acf=_0x8bd15f[_0x26f6('0x3e')][_0x26f6('0x4a')];return _0x5e96b0[_0x26f6('0x24')](_0xae6e51)&&_0xae6e51===_0x529acf;}return!0x1;}function _0xddebe(_0x343935,_0x47850f){return _0x1eb605(_0x343935,_0x47850f)?[_0x343935,_0x47850f]:_0x1eb605(_0x47850f,_0x343935)?[_0x47850f,_0x343935]:null;}_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x3a'))&&(_0x539555['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x26f6('0xe')]),_0x539555[_0x26f6('0x2c')][_0x26f6('0x40')](_0x26f6('0xe'),_0x135b77(_0x47de15,_0x26f6('0x52')))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageTextAlternativeEditing')&&_0x539555[_0x26f6('0x2e')](_0x26f6('0x5e'),[],[_0x26f6('0x37')]),_0x539555['_descriptionFactory'][_0x26f6('0x29')](_0x4cf4e2=>{if(!!_0x53ab6f[_0x26f6('0x2b')](({type:_0x5e187c,subType:_0x2faece})=>_0x4cf4e2['type']==_0x5e187c&&_0x4cf4e2[_0x26f6('0x1f')]==_0x2faece))return _0x4cf4e2[_0x26f6('0x58')]?{}:void 0x0;}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x41059b=>{if(_0x26f6('0x2')==_0x41059b[_0x26f6('0x44')]||_0x26f6('0x16')==_0x41059b[_0x26f6('0x44')]){const _0x531e29=_0x41059b[_0x26f6('0x11')]();if(_0x531e29&&_0x531e29['is'](_0x26f6('0x28'),'caption'))return{'type':_0x26f6('0x2')==_0x41059b['type']?_0x26f6('0x39'):'removeObject','element':_0x531e29,'quantity':0x1};}}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x49644b=>_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x4c')==_0x49644b['subType']?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x2a')}:_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x25')==_0x49644b[_0x26f6('0x1f')]?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x9')}:void 0x0),_0x539555[_0x26f6('0x2c')]['registerDescriptionCallback'](_0x16bb43=>{if(_0x26f6('0x47')!=_0x16bb43['type'])return;const {data:_0x531b99}=_0x16bb43;if(!_0x531b99||_0x26f6('0x37')!=_0x531b99[_0x26f6('0x3d')])return;const _0x4b9277=_0x531b99[_0x26f6('0x0')];return _0x4b9277?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x47de15,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b9277+'\x22')}:{'type':'format','content':_0x135b77(_0x47de15,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x26f6('0x4')]();}[_0x26f6('0x4')](){const _0x204311=this[_0x26f6('0x2f')],_0x18dfdd=_0x204311[_0x26f6('0x54')];_0x204311[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x33'))[_0x26f6('0x2c')][_0x26f6('0x29')](_0x3c3402=>{if(_0x26f6('0x22')!=_0x3c3402[_0x26f6('0x44')]&&'formatInline'!=_0x3c3402['type'])return;const {data:_0xac90b6}=_0x3c3402;if(_0xac90b6){if('imageTextAlternative'==_0xac90b6[_0x26f6('0x35')]){const _0xda9578=_0xac90b6['commandParams'][0x0][_0x26f6('0x0')];return _0xda9578?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xda9578+'\x22')}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Remove\x20image\x20text\x20alternative*')};}if(_0x26f6('0x30')==_0xac90b6['commandName']){const _0x32ce1f=_0xac90b6[_0x26f6('0x18')][0x0][_0x26f6('0x55')];return _0x32ce1f?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x5c'),_0x32ce1f)}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x1'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b6d=['*Replace\x20image\x20URL*','src','get','locale','format','_descriptionFactory','_registerLegacyDescription','afterInit','registerCustomCallback','getSuggestionCallback','newValue','_enableDefaultAttributesIntegration','plugins','attribute','registerDescriptionCallback','_suggestionFactory','commandName','TrackChangesEditing','replaceImageSource','editor','key','has','discard','type','formatBlock'];(function(_0x1aa002,_0x2b6dd0){const _0x224d78=function(_0x305b17){while(--_0x305b17){_0x1aa002['push'](_0x1aa002['shift']());}};_0x224d78(++_0x2b6dd0);}(_0x2b6d,0xd3));const _0x224d=function(_0x1aa002,_0x2b6dd0){_0x1aa002=_0x1aa002-0x0;let _0x224d78=_0x2b6d[_0x1aa002];return _0x224d78;};import{Plugin as _0xdd4455}from'ckeditor5/src/core';import{getTranslation as _0x31d8a2}from'../utils/common-translations';export default class et extends _0xdd4455{[_0x224d('0x15')](){if(!this[_0x224d('0x8')][_0x224d('0x1')][_0x224d('0xa')]('ImageEditing'))return;const _0x22b241=this['editor'][_0x224d('0x11')],_0x2758a6=this[_0x224d('0x8')][_0x224d('0x1')][_0x224d('0x10')](_0x224d('0x6'));_0x2758a6[_0x224d('0x0')]('replaceImageSource',[],[_0x224d('0xf')]),_0x2758a6[_0x224d('0x13')]['registerDescriptionCallback'](_0x34b983=>{if(_0x224d('0x2')!=_0x34b983[_0x224d('0xc')])return;const {data:_0x1fc74b}=_0x34b983;return _0x1fc74b&&'src'==_0x1fc74b[_0x224d('0x9')]?_0x1fc74b[_0x224d('0x18')]&&_0x1fc74b['oldValue']?{'type':_0x224d('0x12'),'content':_0x31d8a2(_0x22b241,_0x224d('0xe'))}:{'type':_0x224d('0x12'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3de918=this[_0x224d('0x8')][_0x224d('0x1')]['get'](_0x224d('0x6'));_0x3de918[_0x224d('0x4')][_0x224d('0x16')](_0x224d('0xd'),_0x224d('0x7'),'accept',_0x3de918[_0x224d('0x4')][_0x224d('0x17')](_0x224d('0xd'),null,_0x224d('0xb'))),_0x3de918[_0x224d('0x4')][_0x224d('0x16')]('formatBlock',_0x224d('0x7'),_0x224d('0xb'),_0x3de918[_0x224d('0x4')][_0x224d('0x17')](_0x224d('0xd'),null,'accept')),this[_0x224d('0x14')]();}[_0x224d('0x14')](){const _0x40967e=this[_0x224d('0x8')],_0x3e8055=_0x40967e['locale'];_0x40967e[_0x224d('0x1')][_0x224d('0x10')](_0x224d('0x6'))[_0x224d('0x13')][_0x224d('0x3')](_0x20c14a=>{if(_0x224d('0xd')!=_0x20c14a[_0x224d('0xc')]&&'formatInline'!=_0x20c14a[_0x224d('0xc')])return;const {data:_0x4ae36e}=_0x20c14a;return _0x4ae36e&&_0x224d('0x7')===_0x4ae36e[_0x224d('0x5')]?{'type':_0x224d('0x12'),'content':_0x31d8a2(_0x3e8055,_0x224d('0xe'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x65ff=['author','discard','imageStylePreApply','filter','head','FORMAT_SIDE_IMAGE','formatInline','getSuggestionCallback','refresh','length','imageStyle','shouldConvertImageType','insertion','side','normalizedStyles','getContainedElement','getSuggestions','differ','getClosestSelectedImageElement','name','findIndex','markInlineFormat','imageTypeInline','_findSuggestions','model','commandName','createRangeOn','afterInit','commands','value','TrackChangesEditing','_suggestionFactory','Users','convertInlineImageToBlock','get','_registerLegacyDescription','formatBlock','locale','editor','chain','hasSuggestion','_splitMarkerName','isBlockImage','isEqual','markBlockFormat','title','imageCaption','isIntersecting','_descriptionFactory','ImageStyleEditing','subType','isOwn','start','join','imageStylePostApply','plugins','next','registerPostFixer','change','commandParams','registerCustomCallback','end','ImageUtils','document','from','getFirstRange','getSuggestion','accept','type','isBefore','toLowerCase','discardSuggestion','selection','newRange','*Format:*\x20%0','suggestion'];(function(_0x80a8,_0x65ffa9){const _0x41036f=function(_0x406162){while(--_0x406162){_0x80a8['push'](_0x80a8['shift']());}};_0x41036f(++_0x65ffa9);}(_0x65ff,0x64));const _0x4103=function(_0x80a8,_0x65ffa9){_0x80a8=_0x80a8-0x0;let _0x41036f=_0x65ff[_0x80a8];return _0x41036f;};import{Plugin as _0x7faf1c}from'ckeditor5/src/core';import{uid as _0x206e9e}from'ckeditor5/src/utils';import{getTranslation as _0x2dca4a}from'../utils/common-translations';export default class nt extends _0x7faf1c{[_0x4103('0x3')](){const _0x586567=this[_0x4103('0xe')];if(!_0x586567[_0x4103('0x1f')]['has'](_0x4103('0x19')))return;const _0x1b836a=_0x586567['plugins'][_0x4103('0xa')](_0x4103('0x6')),_0x77d33e=_0x586567[_0x4103('0x1f')][_0x4103('0xa')](_0x4103('0x26')),_0x1d72b7={};_0x1b836a['enableCommand'](_0x4103('0x3e'),(_0x370c6f,_0x1beb9a)=>{const _0x53fab8=_0x586567[_0x4103('0x1f')][_0x4103('0xa')](_0x4103('0x8'))['me'],_0x2c8a4e=_0x586567[_0x4103('0x4')][_0x4103('0xa')](_0x4103('0x3e'));let _0x3e9596=_0x77d33e[_0x4103('0x46')](_0x586567[_0x4103('0x0')]['document']['selection']),_0x25c703=_0x586567[_0x4103('0x0')][_0x4103('0x2')](_0x3e9596),_0x2c0d4e=_0x2c8a4e['value'];if(_0x2c0d4e==_0x1beb9a[_0x4103('0x5')])return;const _0x38c3e4={'commandName':_0x4103('0x3e'),'commandParams':[_0x1beb9a],'formatGroupId':_0x206e9e()};_0x586567[_0x4103('0x0')][_0x4103('0x22')](()=>{if(_0x1b836a[_0x4103('0x44')]()[_0x4103('0x37')](_0x327f60=>_0x327f60['isInContent']&&_0x53fab8==_0x327f60[_0x4103('0x34')]&&('formatBlock'==_0x327f60['type']||'formatInline'==_0x327f60[_0x4103('0x2c')])&&(_0x4103('0x36')==_0x327f60[_0x4103('0x1a')]||_0x4103('0x1e')==_0x327f60[_0x4103('0x1a')])&&_0x327f60['getFirstRange']()['isEqual'](_0x25c703))['forEach'](_0x22f26a=>_0x1b836a[_0x4103('0x2f')](_0x22f26a[_0x4103('0x38')])),_0x3e9596=_0x77d33e[_0x4103('0x46')](_0x586567['model']['document'][_0x4103('0x30')]),_0x25c703=_0x586567['model'][_0x4103('0x2')](_0x3e9596),_0x2c8a4e[_0x4103('0x3c')](),_0x586567[_0x4103('0x4')][_0x4103('0xa')](_0x4103('0x4a'))['refresh'](),_0x586567[_0x4103('0x4')][_0x4103('0xa')]('imageTypeBlock')['refresh'](),_0x2c0d4e=_0x2c8a4e[_0x4103('0x5')],_0x2c0d4e!=_0x1beb9a[_0x4103('0x5')])return _0x77d33e['isInlineImage'](_0x3e9596)&&_0x2c8a4e[_0x4103('0x3f')](_0x1beb9a[_0x4103('0x5')],_0x3e9596)?(_0x370c6f({..._0x1beb9a,'setImageSizes':!0x1}),_0x3e9596=_0x77d33e[_0x4103('0x46')](_0x586567[_0x4103('0x0')]['document'][_0x4103('0x30')]),void _0x1b836a[_0x4103('0x14')](_0x3e9596,{..._0x38c3e4,'commandReversedParams':[{'value':_0x2c0d4e||null,'setImageSizes':!0x1}]},[],_0x4103('0x36'))):void(_0x77d33e[_0x4103('0x12')](_0x3e9596)?_0x1b836a[_0x4103('0x14')](_0x3e9596,_0x38c3e4,[],_0x4103('0x1e')):_0x1b836a[_0x4103('0x49')](_0x25c703,_0x38c3e4,_0x4103('0x1e')));});});for(const _0x23dbf7 of _0x586567[_0x4103('0x1f')][_0x4103('0xa')](_0x4103('0x19'))[_0x4103('0x42')])_0x1d72b7[_0x23dbf7[_0x4103('0x47')]]=_0x23dbf7[_0x4103('0x15')][_0x4103('0x2e')]();_0x1b836a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4103('0x36'),_0x4103('0x1d'),()=>!0x1),_0x1b836a[_0x4103('0x7')][_0x4103('0x24')](_0x4103('0xc'),_0x4103('0x1e'),_0x4103('0x1d'),()=>!0x1),_0x1b836a[_0x4103('0x7')][_0x4103('0x24')]('formatInline',_0x4103('0x1e'),_0x4103('0x1d'),()=>!0x1),_0x1b836a[_0x4103('0x7')][_0x4103('0x24')](_0x4103('0xc'),_0x4103('0x36'),_0x4103('0x2b'),([_0x34154c])=>{_0x77d33e['setImageNaturalSizeAttributes'](_0x34154c['getContainedElement']());}),_0x1b836a[_0x4103('0x7')][_0x4103('0x24')](_0x4103('0xc'),_0x4103('0x36'),_0x4103('0x35'),(_0x1685d9,_0x5384f8)=>{_0x1b836a[_0x4103('0x7')][_0x4103('0x3b')](_0x4103('0xc'),'','accept')(_0x1685d9,{'commandName':_0x5384f8[_0x4103('0x1')],'commandParams':_0x5384f8['commandReversedParams']});}),_0x1b836a['_suggestionFactory'][_0x4103('0x24')]('formatBlock',_0x4103('0x36'),_0x4103('0xf'),function(_0x1b6ed9,_0x1d1f41){if(_0x2c7a25(_0x1b6ed9,_0x1d1f41))return[_0x1b6ed9,_0x1d1f41];if(_0x2c7a25(_0x1d1f41,_0x1b6ed9))return[_0x1d1f41,_0x1b6ed9];return null;});const _0x3a7012=[{'type':'formatBlock','subType':_0x4103('0x36')},{'type':'insertion','subType':_0x4103('0x16')},{'type':_0x4103('0xc'),'subType':_0x4103('0x9')},{'type':_0x4103('0x40'),'subType':_0x4103('0x9')}];function _0x2c7a25(_0x28a198,_0x5c954d){const _0x5520c6=_0x3a7012[_0x4103('0x48')](({type:_0x46f69b,subType:_0x108d79})=>_0x28a198['type']==_0x46f69b&&_0x28a198['subType']==_0x108d79),_0x32aa82=_0x3a7012[_0x4103('0x48')](({type:_0x4a94f2,subType:_0x2b7e69})=>_0x5c954d[_0x4103('0x2c')]==_0x4a94f2&&_0x5c954d['subType']==_0x2b7e69);if(_0x5520c6<0x0||_0x32aa82<0x0)return!0x1;const _0x3d3a49=_0x28a198[_0x4103('0x29')](),_0x5b1a18=_0x5c954d[_0x4103('0x29')]();if((0x0==_0x5520c6||0x1==_0x5520c6)&&0x2==_0x32aa82&&_0x3d3a49[_0x4103('0x17')](_0x5b1a18))return!0x0;if(0x2==_0x5520c6&&0x3==_0x32aa82){const _0x1f3d23=_0x1b836a[_0x4103('0x4b')](_0x3d3a49,_0x4103('0x40'))[_0x4103('0x37')](({suggestion:_0x3e9e05,meta:_0x56a9b7})=>_0x56a9b7[_0x4103('0x1b')]&&_0x4103('0x9')==_0x3e9e05['subType']);if(_0x1f3d23[_0x4103('0x3d')]>0x1&&_0x5b1a18[_0x4103('0x25')][_0x4103('0x13')](_0x3d3a49['start']))return!0x0;if(0x1==_0x1f3d23[_0x4103('0x3d')]&&(_0x3d3a49[_0x4103('0x1c')][_0x4103('0x13')](_0x5b1a18[_0x4103('0x25')])||_0x3d3a49[_0x4103('0x25')][_0x4103('0x13')](_0x5b1a18['start'])))return!0x0;}if(0x3==_0x5520c6&&0x3==_0x32aa82&&_0x3d3a49[_0x4103('0x1c')][_0x4103('0x2d')](_0x5b1a18[_0x4103('0x1c')])){const _0x51af5a=_0x3d3a49['end']['nodeAfter'],_0x861387=_0x5b1a18[_0x4103('0x1c')]['nodeBefore'];return _0x77d33e[_0x4103('0x12')](_0x51af5a)&&_0x51af5a===_0x861387;}return!0x1;}_0x586567[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x21')](()=>{let _0x275997=!0x1;const _0x398a2d=Array[_0x4103('0x28')](_0x586567[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x45')]['getChangedMarkers']());for(const {name:_0x4d40f6,data:_0x2d90f9}of _0x398a2d){const {group:_0x18d45c,type:_0x230b03,subType:_0x53259f,id:_0x11e4bb}=_0x1b836a[_0x4103('0x11')](_0x4d40f6);if(_0x4103('0x33')==_0x18d45c&&_0x1b836a[_0x4103('0x10')](_0x11e4bb)){if('formatBlock'==_0x230b03&&(_0x4103('0x36')==_0x53259f||'imageStylePostApply'==_0x53259f)){const _0x48f5a8=_0x1b836a[_0x4103('0x2a')](_0x11e4bb);if(_0x2d90f9[_0x4103('0x31')]){const _0x8274f8=_0x48f5a8['getFirstRange']()[_0x4103('0x43')]();if(_0x77d33e[_0x4103('0x12')](_0x8274f8))continue;_0x1b836a['discardSuggestion'](_0x48f5a8),_0x275997=!0x0;}}if('insertion'==_0x230b03&&_0x4103('0x16')==_0x53259f&&!_0x2d90f9[_0x4103('0x31')]){const _0x9a8c20=_0x1b836a[_0x4103('0x2a')](_0x11e4bb);_0x9a8c20[_0x4103('0x20')]&&_0x9a8c20[_0x4103('0x20')]['isInContent']&&(_0x1b836a['discardSuggestion'](_0x9a8c20[_0x4103('0x20')]),_0x275997=!0x0);}}}return _0x275997;}),this['_registerLegacyDescription'](_0x1d72b7);}[_0x4103('0xb')](_0x2e79c2){const _0x3c210f=this['editor'],_0x5d6890=_0x3c210f[_0x4103('0xd')];_0x3c210f[_0x4103('0x1f')][_0x4103('0xa')]('TrackChangesEditing')[_0x4103('0x18')]['registerDescriptionCallback'](_0x1494cd=>{if(_0x4103('0xc')!=_0x1494cd[_0x4103('0x2c')]&&_0x4103('0x3a')!=_0x1494cd[_0x4103('0x2c')])return;const {data:_0x9efdb4}=_0x1494cd;if(!_0x9efdb4||_0x4103('0x3e')!=_0x9efdb4[_0x4103('0x1')])return;const _0x56e850=_0x9efdb4[_0x4103('0x23')][0x0][_0x4103('0x5')];return _0x25d475(_0x4103('0x41')===_0x56e850?_0x2dca4a(_0x5d6890,_0x4103('0x39')):_0x2e79c2[_0x56e850]||_0x56e850);function _0x25d475(_0x49a2a2){return{'type':'format','content':_0x2dca4a(_0x5d6890,_0x4103('0x32'),_0x49a2a2)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f38=['editor','trackChanges','afterInit','plugins','dataInsert','high','_setSuggestionData','collaboration_features','lowest','execute','get','importWord','_trackChangesValueDuringImport','_trackChangesExecuted','commands','TrackChangesEditing','_handleImportedData','value','bind','enableCommand','listenTo'];(function(_0x4b11c0,_0x5f38cb){const _0x172941=function(_0x3f4842){while(--_0x3f4842){_0x4b11c0['push'](_0x4b11c0['shift']());}};_0x172941(++_0x5f38cb);}(_0x5f38,0x19f));const _0x1729=function(_0x4b11c0,_0x5f38cb){_0x4b11c0=_0x4b11c0-0x0;let _0x172941=_0x5f38[_0x4b11c0];return _0x172941;};import{Plugin as _0x575e5d}from'ckeditor5/src/core';export default class st extends _0x575e5d{constructor(_0x2dcd37){super(_0x2dcd37),this[_0x1729('0x11')]=!0x1,this[_0x1729('0x12')]=!0x1;}[_0x1729('0x7')](){const _0x1577fd=this[_0x1729('0x5')],_0x1e1e02=_0x1577fd['commands'][_0x1729('0xf')](_0x1729('0x10')),_0x4bf74d=_0x1577fd[_0x1729('0x13')][_0x1729('0xf')](_0x1729('0x6'));_0x1e1e02&&(_0x1e1e02['on']('execute',(_0x2600ad,[,_0x372395])=>{this[_0x1729('0x11')]=_0x4bf74d[_0x1729('0x1')],_0x372395[_0x1729('0xc')]['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':_0x1729('0xa')}),this[_0x1729('0x4')](_0x1e1e02,_0x1729('0x9'),this[_0x1729('0x0')][_0x1729('0x2')](this)),this[_0x1729('0x4')](_0x1e1e02,'dataInsert',()=>{this[_0x1729('0x12')]&&(_0x4bf74d[_0x1729('0xe')](),this[_0x1729('0x12')]=!0x1);},{'priority':_0x1729('0xd')}),_0x1577fd['plugins'][_0x1729('0xf')](_0x1729('0x14'))[_0x1729('0x3')](_0x1729('0x10')));}[_0x1729('0x0')](_0x1d69b2,_0x849d3a){const {suggestions:_0x5ce7ad}=_0x849d3a,_0x481d2f=this[_0x1729('0x5')][_0x1729('0x13')][_0x1729('0xf')]('trackChanges'),_0x1b097f=_0x481d2f[_0x1729('0x1')];this[_0x1729('0x11')]!==_0x1b097f&&(_0x481d2f['execute'](),this[_0x1729('0x12')]=!0x0),_0x5ce7ad&&_0x5ce7ad['forEach'](({id:_0x3de82b,type:_0x2cf363,author:_0x21075c,created_at:_0x5a50c8})=>{const _0x4c4c21={'id':_0x3de82b,'type':_0x2cf363,'authorId':this[_0x1729('0x5')]['plugins'][_0x1729('0xf')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x21075c,'createdAt':_0x5a50c8?new Date(_0x5a50c8):new Date(),'source':_0x1729('0x10')}}};this[_0x1729('0x5')][_0x1729('0x8')][_0x1729('0xf')](_0x1729('0x14'))[_0x1729('0xb')](_0x4c4c21);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19f9=['has','enableCommand','indentBlock','*Indent:*\x20%0','locale','TrackChangesEditing','getItems','plugins','_enableDefaultAttributesIntegration','outdentBlock','outdent','registerDescriptionCallback','editor','commandName','indent','_registerBlockAttribute','get','blockIndent','registerAttributeLabel','IndentEditing','formatBlock','format','*Outdent:*\x20%0','IndentBlock','_registerLegacyDescription','getItemLabel','_descriptionFactory'];(function(_0x2a61fc,_0x19f97c){const _0x3cfa2b=function(_0x57f2f4){while(--_0x57f2f4){_0x2a61fc['push'](_0x2a61fc['shift']());}};_0x3cfa2b(++_0x19f97c);}(_0x19f9,0x116));const _0x3cfa=function(_0x2a61fc,_0x19f97c){_0x2a61fc=_0x2a61fc-0x0;let _0x3cfa2b=_0x19f9[_0x2a61fc];return _0x3cfa2b;};import{Plugin as _0x5cc0fc}from'ckeditor5/src/core';import{getTranslation as _0x434d65}from'../utils/common-translations';export default class ot extends _0x5cc0fc{['afterInit'](){const _0x134640=this['editor'],_0xa690f1=_0x134640[_0x3cfa('0x1a')][_0x3cfa('0x8')](_0x3cfa('0x18'));if(_0x134640[_0x3cfa('0x1a')][_0x3cfa('0x13')](_0x3cfa('0xb'))&&(_0xa690f1['enableCommand'](_0x3cfa('0x6')),_0xa690f1[_0x3cfa('0x14')](_0x3cfa('0x2'))),_0x134640[_0x3cfa('0x1a')][_0x3cfa('0x13')](_0x3cfa('0xf')))for(const _0x58d973 of[_0x3cfa('0x15'),'outdentBlock'])_0xa690f1[_0x3cfa('0x0')](_0x58d973);const _0x19e9ef=_0x134640[_0x3cfa('0x17')];_0xa690f1[_0x3cfa('0x7')]('blockIndent'),_0xa690f1[_0x3cfa('0x12')][_0x3cfa('0xa')](_0x3cfa('0x9'),_0x434d65(_0x19e9ef,'FORMAT_INDENT')),this[_0x3cfa('0x10')]();}[_0x3cfa('0x10')](){const _0x4852d9=this[_0x3cfa('0x4')],_0x3251e1=_0x4852d9['locale'],_0x425f88=_0x4852d9['plugins'][_0x3cfa('0x8')](_0x3cfa('0x18'));_0x425f88[_0x3cfa('0x12')][_0x3cfa('0x3')](_0x2a0e4a=>{if(_0x3cfa('0xc')!=_0x2a0e4a['type'])return;const {data:_0x55510b}=_0x2a0e4a;if(!_0x55510b)return;if('indentBlock'!=_0x55510b[_0x3cfa('0x5')]&&_0x3cfa('0x1')!=_0x55510b[_0x3cfa('0x5')])return;const _0x4c866e=_0x2a0e4a[_0x3cfa('0x19')]()[0x0],_0x48a776=_0x425f88[_0x3cfa('0x12')][_0x3cfa('0x11')](_0x4c866e);return'indentBlock'==_0x55510b[_0x3cfa('0x5')]?{'type':_0x3cfa('0xd'),'content':_0x434d65(_0x3251e1,_0x3cfa('0x16'),_0x48a776)}:_0x3cfa('0x1')==_0x55510b[_0x3cfa('0x5')]?{'type':_0x3cfa('0xd'),'content':_0x434d65(_0x3251e1,_0x3cfa('0xe'),_0x48a776)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21e5=['get','input','plugins','TrackChangesEditing','editor','enableCommand'];(function(_0x4af3b9,_0x21e560){var _0x2e9e20=function(_0x181eb1){while(--_0x181eb1){_0x4af3b9['push'](_0x4af3b9['shift']());}};_0x2e9e20(++_0x21e560);}(_0x21e5,0x19f));var _0x2e9e=function(_0x4af3b9,_0x21e560){_0x4af3b9=_0x4af3b9-0x0;var _0x2e9e20=_0x21e5[_0x4af3b9];return _0x2e9e20;};import{Plugin as _0x8f0f8b}from'ckeditor5/src/core';import{Input as _0x10545b}from'ckeditor5/src/typing';export default class rt extends _0x8f0f8b{static get['requires'](){return[_0x10545b];}['init'](){this[_0x2e9e('0x3')][_0x2e9e('0x1')][_0x2e9e('0x5')](_0x2e9e('0x2'))[_0x2e9e('0x4')](_0x2e9e('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11d6=['_registerLegacyDescription','get','registerAttributeLabel','plugins','formatInline','*Remove\x20link*','format','_descriptionFactory','commands','commandParams','toLowerCase','has','LinkEditing','unlink','registerDescriptionCallback','_enableDefaultAttributesIntegration','link','manualDecorators','map','commandName','linkHref','*Set\x20link:*\x20%0','editor','type','TrackChangesEditing','locale','label'];(function(_0x3fff6a,_0x11d6a2){const _0x3857b1=function(_0x1be355){while(--_0x1be355){_0x3fff6a['push'](_0x3fff6a['shift']());}};_0x3857b1(++_0x11d6a2);}(_0x11d6,0x171));const _0x3857=function(_0x3fff6a,_0x11d6a2){_0x3fff6a=_0x3fff6a-0x0;let _0x3857b1=_0x11d6[_0x3fff6a];return _0x3857b1;};import{Plugin as _0x5c8369}from'ckeditor5/src/core';import{getTranslation as _0x18a30f}from'../utils/common-translations';export default class at extends _0x5c8369{['afterInit'](){const _0x179f8b=this[_0x3857('0x4')];if(!_0x179f8b[_0x3857('0xc')][_0x3857('0x14')](_0x3857('0x15')))return;const _0x131111=_0x179f8b[_0x3857('0xc')]['get'](_0x3857('0x6')),_0x35bee3=_0x179f8b[_0x3857('0x11')][_0x3857('0xa')]('link');_0x131111[_0x3857('0x18')](_0x3857('0x19'),[_0x3857('0x2'),..._0x35bee3[_0x3857('0x1a')][_0x3857('0x0')](_0x99d0d7=>_0x99d0d7['id'])]),_0x131111['_enableDefaultAttributesIntegration'](_0x3857('0x16'));for(const _0x3dceba of _0x35bee3[_0x3857('0x1a')])_0x131111[_0x3857('0x10')][_0x3857('0xb')](_0x3dceba['id'],'link\x20('+_0x3dceba[_0x3857('0x8')][_0x3857('0x13')]()+')');_0x131111['_descriptionFactory'][_0x3857('0x17')](_0x851a32=>{if('attribute'!=_0x851a32['type'])return;const {data:_0x59314f}=_0x851a32;if(!_0x59314f||_0x3857('0x2')!=_0x59314f['key'])return;const _0x395cd4=_0x59314f['newValue'],_0x42135c=_0x179f8b[_0x3857('0x7')];return{'type':_0x3857('0xf'),'content':_0x395cd4?_0x18a30f(_0x42135c,_0x3857('0x3'),'\x22'+_0x395cd4+'\x22'):_0x18a30f(_0x42135c,_0x3857('0xe'))};}),this[_0x3857('0x9')]();}[_0x3857('0x9')](){const _0x133668=this['editor'],_0x20f52d=_0x133668['locale'];_0x133668['plugins'][_0x3857('0xa')](_0x3857('0x6'))[_0x3857('0x10')][_0x3857('0x17')](_0x3a5542=>{if(_0x3857('0xd')!=_0x3a5542[_0x3857('0x5')])return;const {data:_0x39ebfe}=_0x3a5542;if(_0x39ebfe){if(_0x3857('0x19')==_0x39ebfe[_0x3857('0x1')]){const _0x37dc9c=_0x39ebfe[_0x3857('0x12')][0x0];return{'type':_0x3857('0xf'),'content':_0x18a30f(_0x20f52d,_0x3857('0x3'),'\x22'+_0x37dc9c+'\x22')};}return _0x3857('0x16')==_0x39ebfe[_0x3857('0x1')]?{'type':'format','content':_0x18a30f(_0x20f52d,_0x3857('0xe'))}:void 0x0;}});}}
|