@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231103.0 → 0.0.0-nightly-20231105.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/LICENSE.md +3 -3
- 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/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 _0x3888=['fontSize','FontFamilyEditing','toLowerCase','FontSize','locale','*Set\x20font\x20family:*\x20%0','*Set\x20font\x20background\x20color:*\x20%0','editor','fontBackgroundColor','trim','_enableCommand','get','value','fontBackgroundColor.colors','enableCommand','commandParams','fontFamily','format','*Reset\x20font\x20background\x20color*','FontColorEditing','commandName','*Reset\x20font\x20family*','find','model','*Reset\x20font\x20size*','registerDescriptionCallback','markInlineFormat','fontSize.options','label','isCollapsed','*Set\x20font\x20size:*\x20%0','_descriptionFactory','*Reset\x20font\x20color*','TrackChangesEditing','*Set\x20font\x20color:*\x20%0','selection','from','plugins','fontColor'];(function(_0x38275b,_0x388855){const _0x1aef7e=function(_0x2919ed){while(--_0x2919ed){_0x38275b['push'](_0x38275b['shift']());}};_0x1aef7e(++_0x388855);}(_0x3888,0x150));const _0x1aef=function(_0x38275b,_0x388855){_0x38275b=_0x38275b-0x0;let _0x1aef7e=_0x3888[_0x38275b];return _0x1aef7e;};import{Plugin as _0x5c0519}from'ckeditor5/src/core';import{normalizeColorOptions as _0xcfcc5b}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x5a8c68}from'./utils';import{getTranslation as _0x34e16a}from'../utils/common-translations';const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':_0x1aef('0x10'),'commandName':_0x1aef('0x1f')},{'pluginName':_0x1aef('0x22'),'commandName':_0x1aef('0xe')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x1aef('0x17')}];export default class W extends _0x5c0519{['afterInit'](){const _0xddd866=this['editor'][_0x1aef('0x13')];for(const {pluginName:_0x5dce4d,commandName:_0x411fb7}of eo)this['editor'][_0x1aef('0xd')]['has'](_0x5dce4d)&&this['_enableCommand'](_0x411fb7);this[_0x1aef('0x16')][_0x1aef('0xd')]['get'](_0x1aef('0x9'))[_0x1aef('0x7')][_0x1aef('0x1')](_0x383bb2=>{const _0x4e1cde=_0xddd866['t'],{data:_0x16760f}=_0x383bb2;if(null!=_0x16760f){if(_0x1aef('0xf')==_0x16760f[_0x1aef('0x23')]){const _0x583e24=_0x16760f[_0x1aef('0x1e')][0x0][_0x1aef('0x1b')];if(_0x583e24){const _0xdcebb0=_0x4e1cde(this[_0x1aef('0x16')]['plugins']['get'](_0x1aef('0x12'))['normalizeSizeOptions'](this['editor']['config']['get'](_0x1aef('0x3')))[_0x1aef('0x25')](_0x5d6df8=>_0x5d6df8['model']==_0x583e24)['title'])['toLowerCase']();return{'type':_0x1aef('0x20'),'content':_0x34e16a(_0xddd866,_0x1aef('0x6'),_0xdcebb0)};}return{'type':'format','content':_0x34e16a(_0xddd866,_0x1aef('0x0'))};}if(_0x1aef('0x1f')==_0x16760f[_0x1aef('0x23')]){const _0x54298a=_0x16760f[_0x1aef('0x1e')][0x0][_0x1aef('0x1b')];return _0x54298a?{'type':'format','content':_0x34e16a(_0xddd866,_0x1aef('0x14'),_0x54298a)}:{'type':_0x1aef('0x20'),'content':_0x34e16a(_0xddd866,_0x1aef('0x24'))};}if('fontColor'==_0x16760f[_0x1aef('0x23')]){const _0x268a19=_0x16760f[_0x1aef('0x1e')][0x0][_0x1aef('0x1b')];if(_0x268a19){const _0x31ea65=_0xcfcc5b(this[_0x1aef('0x16')]['config'][_0x1aef('0x1a')]('fontColor.colors'))[_0x1aef('0x25')](_0x5459e0=>_0x5459e0['model']==_0x268a19);let _0x2b19a0=_0x268a19,_0x5e6b7b='';return _0x31ea65&&(_0x2b19a0=_0x31ea65[_0x1aef('0x4')],_0x5e6b7b=_0x4e1cde(_0x2b19a0)['toLowerCase']()),{'type':_0x1aef('0x20'),'content':_0x34e16a(_0xddd866,_0x1aef('0xa'),_0x5e6b7b)['trim'](),'color':{'value':_0x268a19,'title':_0x5e6b7b||_0x2b19a0}};}return{'type':'format','content':_0x34e16a(_0xddd866,_0x1aef('0x8'))};}if(_0x1aef('0x17')==_0x16760f[_0x1aef('0x23')]){const _0x15e564=_0x16760f[_0x1aef('0x1e')][0x0][_0x1aef('0x1b')];if(_0x15e564){const _0x5724d3=_0xcfcc5b(this['editor']['config'][_0x1aef('0x1a')](_0x1aef('0x1c')))[_0x1aef('0x25')](_0x3360e6=>_0x3360e6[_0x1aef('0x26')]==_0x15e564);let _0x5a3c6a=_0x15e564,_0x5db1ee='';return _0x5724d3&&(_0x5a3c6a=_0x5724d3[_0x1aef('0x4')],_0x5db1ee=_0x4e1cde(_0x5a3c6a)[_0x1aef('0x11')]()),{'type':_0x1aef('0x20'),'content':_0x34e16a(_0xddd866,_0x1aef('0x15'),_0x5db1ee)[_0x1aef('0x18')](),'color':{'value':_0x15e564,'title':_0x5db1ee||_0x5a3c6a}};}return{'type':'format','content':_0x34e16a(_0xddd866,_0x1aef('0x21'))};}}});}[_0x1aef('0x19')](_0x1ddafb){const _0x18556e=this[_0x1aef('0x16')];_0x18556e['plugins']['get'](_0x1aef('0x9'))[_0x1aef('0x1d')](_0x1ddafb,(_0x28f007,_0x5b80cb={})=>{const _0x155fe0=_0x18556e[_0x1aef('0x26')]['document'][_0x1aef('0xb')],_0x56cded=_0x5b80cb[_0x1aef('0x1b')];_0x155fe0[_0x1aef('0x5')]?_0x28f007(_0x5b80cb):_0x18556e[_0x1aef('0x26')]['change'](()=>{const _0x5f2307=Array[_0x1aef('0xc')](_0x155fe0['getRanges']());for(const _0x175d38 of _0x5f2307){const _0x3d0f8c=_0x56cded?[_0x175d38]:_0x5a8c68(_0x1ddafb,_0x175d38,_0x18556e[_0x1aef('0x26')]);for(const _0x35999a of _0x3d0f8c)_0x18556e['plugins']['get'](_0x1aef('0x9'))[_0x1aef('0x2')](_0x35999a,{'commandName':_0x1ddafb,'commandParams':[{'value':_0x56cded}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x338b=['selection','forward','getFirstPosition','schema','normalizeSizeOptions','pasteFormat','join','commands','word','change','TrackChangesEditing','getAttributeProperties','config','title','markInlineFormat','plugins','label','find','getAttributes','modifySelection','_descriptionFactory','locale','get','copyFormat','model','*Remove\x20all\x20formatting*','enableCommand','getSelectedBlocks','slice','push','isCollapsed','fontColor.colors','getRanges','fontColor','length','createRange','createSelection','charAt','registerDescriptionCallback','fontSize.options','isBlock','fontSize','commandName','toLowerCase','format','toUpperCase','FontSize'];(function(_0x5737e1,_0x338bff){const _0x1afdc4=function(_0x13e9af){while(--_0x13e9af){_0x5737e1['push'](_0x5737e1['shift']());}};_0x1afdc4(++_0x338bff);}(_0x338b,0x1d2));const _0x1afd=function(_0x5737e1,_0x338bff){_0x5737e1=_0x5737e1-0x0;let _0x1afdc4=_0x338b[_0x5737e1];return _0x1afdc4;};import{Plugin as _0x30f87}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1c778a}from'ckeditor5/src/ui';import{first as _0x27b05d}from'ckeditor5/src/utils';import{getTranslation as _0x37bf3c}from'../utils/common-translations';export default class J extends _0x30f87{['afterInit'](){const _0x543a4e=this['editor'],_0x32ae20=_0x543a4e['model'],_0x299350=_0x32ae20['document'][_0x1afd('0x4')],_0x15e7f4=_0x543a4e[_0x1afd('0x13')][_0x1afd('0x1a')](_0x1afd('0xe')),_0x5003cc=_0x543a4e[_0x1afd('0x19')],_0x574cb2=_0x543a4e[_0x1afd('0xb')][_0x1afd('0x1a')](_0x1afd('0x1b')),_0x4638df=_0x543a4e['commands'][_0x1afd('0x1a')]('pasteFormat');_0x574cb2&&_0x4638df&&(_0x15e7f4[_0x1afd('0x1e')](_0x1afd('0x9'),(_0x1f322e,_0x959b1a={})=>{const _0xbfae7b=_0x959b1a;_0x32ae20[_0x1afd('0xd')](()=>{const _0x1b2b22=Array['from'](_0x299350[_0x1afd('0x24')]()),_0x51873f=_0x299350[_0x1afd('0x22')]?[io(_0x32ae20,_0x299350)]:_0x1b2b22,_0x45e818=!!_0x27b05d(function*(_0x37584e,_0x1af243){const _0x5ec262=_0x1720cb=>!!_0x27b05d(function*(_0x9792c7,_0x1511cc){for(const [_0x2383a6]of _0x9792c7[_0x1afd('0x16')]()){const _0x51d443=_0x1511cc[_0x1afd('0xf')](_0x2383a6);_0x51d443&&_0x51d443['isFormatting']&&(yield _0x2383a6);}}(_0x1720cb,_0x1af243));for(const _0x2d7c70 of _0x37584e[_0x1afd('0x24')]())for(const _0x4123a3 of _0x2d7c70['getItems']())!_0x1af243[_0x1afd('0x2c')](_0x4123a3)&&_0x5ec262(_0x4123a3)&&(yield _0x4123a3);for(const _0x17061a of _0x37584e[_0x1afd('0x1f')]())_0x5ec262(_0x17061a)&&(yield _0x17061a);_0x5ec262(_0x37584e)&&(yield _0x37584e);}(_0x299350,_0x32ae20[_0x1afd('0x7')]));if(_0x45e818||0x0!==Object['keys'](_0xbfae7b)[_0x1afd('0x26')])for(const _0x384e43 of _0x51873f)_0x15e7f4[_0x1afd('0x12')](_0x384e43,{'commandName':_0x1afd('0x9'),'commandParams':[_0xbfae7b]});});}),_0x15e7f4[_0x1afd('0x18')][_0x1afd('0x2a')](_0x249500=>{const {data:_0x403248}=_0x249500;if(_0x403248&&_0x1afd('0x9')===_0x403248[_0x1afd('0x2e')]){const _0x22c00d=[],_0x43f7d5=_0x403248['commandParams'][0x0];for(const [_0x4dac9d,_0x25b3aa]of Object['entries'](_0x43f7d5))_0x22c00d[_0x1afd('0x21')](so(_0x543a4e,_0x4dac9d,_0x25b3aa));return _0x22c00d[_0x1afd('0x26')]?{'type':'format','content':_0x37bf3c(_0x5003cc,'*Set\x20format\x20to:*\x20%0',_0x22c00d[_0x1afd('0xa')](',\x20'))}:{'type':_0x1afd('0x1'),'content':_0x37bf3c(_0x5003cc,_0x1afd('0x1d'))};}}),_0x543a4e[_0x1afd('0x13')]['get']('TrackChangesEditing')['enableCommand']('copyFormat'));}}function io(_0x1b474a,_0x1abb18){const _0x1ebb62=_0x1b474a[_0x1afd('0x28')](_0x1abb18);_0x1b474a['modifySelection'](_0x1ebb62,{'unit':_0x1afd('0xc'),'direction':'backward'});const _0x50681e=_0x1ebb62[_0x1afd('0x6')]();_0x1b474a[_0x1afd('0x17')](_0x1ebb62,{'unit':_0x1afd('0xc'),'direction':_0x1afd('0x5')});const _0x171db3=_0x1ebb62['getLastPosition']();return _0x1b474a[_0x1afd('0x27')](_0x50681e,_0x171db3);}function so(_0x343504,_0x57d7bc,_0x1701dd){const _0x3014d9=_0x343504[_0x1afd('0x19')]['t'],_0x37597a=_0x57d7bc['split'](/(?=[A-Z])/)[_0x1afd('0xa')]('\x20'),_0x31e87d=_0x3014d9(_0x37597a[_0x1afd('0x29')](0x0)[_0x1afd('0x2')]()+_0x37597a[_0x1afd('0x20')](0x1))[_0x1afd('0x0')]();if('boolean'==typeof _0x1701dd)return _0x31e87d;if(_0x1afd('0x25')===_0x57d7bc||'fontBackgroundColor'===_0x57d7bc){const _0x35da13=_0x1c778a(_0x343504[_0x1afd('0x10')][_0x1afd('0x1a')](_0x1afd('0x23')))[_0x1afd('0x15')](_0x48c91e=>_0x48c91e[_0x1afd('0x1c')]==_0x1701dd);return _0x31e87d+'\x20('+(_0x35da13?_0x3014d9(_0x35da13[_0x1afd('0x14')])[_0x1afd('0x0')]():_0x1701dd)+')';}if(_0x1afd('0x2d')===_0x57d7bc&&isNaN(parseFloat(_0x1701dd))){const _0x165eb3=_0x343504[_0x1afd('0x13')]['get'](_0x1afd('0x3'))[_0x1afd('0x8')](_0x343504['config'][_0x1afd('0x1a')](_0x1afd('0x2b')))[_0x1afd('0x15')](_0x257c01=>_0x257c01[_0x1afd('0x1c')]==_0x1701dd);return _0x31e87d+'\x20('+(_0x165eb3?_0x3014d9(_0x165eb3[_0x1afd('0x11')])[_0x1afd('0x0')]():_0x1701dd)+')';}return _0x31e87d+'\x20('+_0x1701dd+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f17=['parent','model','find','from','config','blockName','afterInit','ELEMENT_HEADING','registerElementLabel','schema','plugins','HeadingEditing','getSelectedBlocks','match','title','commandParams','_descriptionFactory','checkChild','selection','get','locale','filter','value','editor','change','markBlockFormat','registerDescriptionCallback','heading','heading.options','name','format','*Change\x20to:*\x20%0','paragraph','commandName','has'];(function(_0x2f27c7,_0x5f173){const _0x4fe30b=function(_0x10dd87){while(--_0x10dd87){_0x2f27c7['push'](_0x2f27c7['shift']());}};_0x4fe30b(++_0x5f173);}(_0x5f17,0x12a));const _0x4fe3=function(_0x2f27c7,_0x5f173){_0x2f27c7=_0x2f27c7-0x0;let _0x4fe30b=_0x5f17[_0x2f27c7];return _0x4fe30b;};import{Plugin as _0x32a2c3}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x120611}from'./utils';import{getTranslation as _0x3c820b}from'../utils/common-translations';export default class K extends _0x32a2c3{[_0x4fe3('0x17')](){const _0x2de45c=this[_0x4fe3('0x5')],_0x27efb6=_0x2de45c[_0x4fe3('0x2')],_0x4d1123=_0x2de45c[_0x4fe3('0x15')][_0x4fe3('0x1')](_0x4fe3('0xa'));if(!_0x2de45c[_0x4fe3('0x1b')][_0x4fe3('0x10')](_0x4fe3('0x1c')))return;const _0x1f28f0=_0x2de45c[_0x4fe3('0x1b')]['get']('TrackChangesEditing');_0x1f28f0['enableCommand'](_0x4fe3('0x9'),(_0x2c569e,_0xf786ad)=>{const _0x3bb059=_0xf786ad[_0x4fe3('0x4')],_0x3e9422=Array[_0x4fe3('0x14')](this[_0x4fe3('0x5')][_0x4fe3('0x12')]['document'][_0x4fe3('0x0')][_0x4fe3('0x1d')]())[_0x4fe3('0x3')](_0x4a7b51=>function(_0x5dbcc9,_0xb6c9ce,_0x400467){return _0x400467[_0x4fe3('0x22')](_0x5dbcc9[_0x4fe3('0x11')],_0xb6c9ce)&&!_0x400467['isObject'](_0x5dbcc9)&&_0x5dbcc9[_0x4fe3('0xb')]!=_0xb6c9ce;}(_0x4a7b51,_0x3bb059,this['editor']['model'][_0x4fe3('0x1a')]));_0x2de45c[_0x4fe3('0x12')][_0x4fe3('0x6')](()=>{for(const _0xd52797 of _0x3e9422)_0x1f28f0[_0x4fe3('0x7')](_0xd52797,{'commandName':_0x4fe3('0x9'),'commandParams':[_0xf786ad],'formatGroupId':_0x4fe3('0x16')},_0x120611(_0xd52797));});});for(const _0x443e76 of _0x4d1123)_0x4fe3('0xe')!=_0x443e76[_0x4fe3('0x12')]&&_0x1f28f0[_0x4fe3('0x21')][_0x4fe3('0x19')](_0x443e76[_0x4fe3('0x12')],_0x511baf=>{const _0xda8fd5=nn(_0x443e76[_0x4fe3('0x12')]);return null!==_0xda8fd5?_0x4a31d3(_0x511baf,_0xda8fd5):_0x5d2f16(_0x511baf,_0x443e76[_0x4fe3('0x1f')]);});function _0x4a31d3(_0x4c6854,_0x1d3d8e){return _0x3c820b(_0x27efb6,_0x4fe3('0x18'),[_0x4c6854,_0x1d3d8e]);}function _0x5d2f16(_0x4e867c,_0x547e93){return _0x3c820b(_0x27efb6,'ELEMENT_HEADING_CUSTOM',[_0x4e867c,_0x547e93]);}_0x1f28f0[_0x4fe3('0x21')][_0x4fe3('0x8')](_0x719c64=>{const {type:_0x23bb0f,data:_0x3d61e5}=_0x719c64;if('formatBlock'==_0x23bb0f&&_0x3d61e5&&_0x4fe3('0x9')==_0x3d61e5[_0x4fe3('0xf')]){const _0xcb5996=_0x3d61e5[_0x4fe3('0x20')][0x0]['value'],_0x3418de=nn(_0xcb5996);if(null!==_0x3418de)return{'type':_0x4fe3('0xc'),'content':_0x3c820b(_0x27efb6,'*Change\x20to:*\x20%0',_0x4a31d3(0x1,_0x3418de))};const _0x4e86bc=_0x4d1123[_0x4fe3('0x13')](_0x4fb2fc=>_0x4fb2fc[_0x4fe3('0x12')]===_0xcb5996)[_0x4fe3('0x1f')];return{'type':'format','content':_0x3c820b(_0x27efb6,_0x4fe3('0xd'),_0x5d2f16(0x1,_0x4e86bc))};}});}}function nn(_0x49297f){const _0x3c58c2=_0x49297f[_0x4fe3('0x1e')](/^heading(\d+)$/);return _0x3c58c2?_0x3c58c2[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4134=['_descriptionFactory','afterInit','editor','highlight.options','markInlineFormat','value','format','locale','commandParams','color','document','registerDescriptionCallback','isCollapsed','push','has','highlight','HighlightEditing','title','model','find','plugins','getLastMatchingPosition','TrackChangesEditing','enableCommand','getAttribute','toLowerCase','FORMAT_HIGHLIGHT','item','get','config','hasAttribute','backward','commandName','getFirstPosition','getRanges'];(function(_0x26b017,_0x41342b){const _0x287646=function(_0x551c26){while(--_0x551c26){_0x26b017['push'](_0x26b017['shift']());}};_0x287646(++_0x41342b);}(_0x4134,0x6e));const _0x2876=function(_0x26b017,_0x41342b){_0x26b017=_0x26b017-0x0;let _0x287646=_0x4134[_0x26b017];return _0x287646;};import{Plugin as _0x2220f7}from'ckeditor5/src/core';import{getTranslation as _0x4e5f21}from'../utils/common-translations';import{getRangesWithAttribute as _0x482ccd}from'./utils';export default class Q extends _0x2220f7{[_0x2876('0x1f')](){const _0x57f4cc=this[_0x2876('0x20')];if(!_0x57f4cc['plugins'][_0x2876('0x9')](_0x2876('0xb')))return;const _0x5e828f=_0x57f4cc[_0x2876('0xf')][_0x2876('0x17')](_0x2876('0x11'));_0x5e828f[_0x2876('0x12')](_0x2876('0xa'),(_0x4f4792,_0x47b6cf={})=>{const _0x1ef3e7=_0x57f4cc[_0x2876('0xd')][_0x2876('0x5')]['selection'],_0x256cdc=_0x1ef3e7[_0x2876('0x13')]('highlight');let _0x546c92=_0x47b6cf[_0x2876('0x0')],_0x24d193=[];if(_0x1ef3e7[_0x2876('0x7')]){const _0x3eb446=_0x1ef3e7[_0x2876('0x1c')]();if(!_0x1ef3e7[_0x2876('0x19')]('highlight'))return void _0x4f4792(_0x47b6cf);{const _0x3a2739=_0x4e70e4=>_0x4e70e4[_0x2876('0x16')][_0x2876('0x13')]('highlight')===_0x256cdc,_0x17bc0b=_0x3eb446[_0x2876('0x10')](_0x3a2739,{'direction':_0x2876('0x1a')}),_0x38c812=_0x3eb446[_0x2876('0x10')](_0x3a2739);_0x24d193=[_0x57f4cc[_0x2876('0xd')]['createRange'](_0x17bc0b,_0x38c812)],_0x546c92==_0x256cdc&&(_0x546c92=null);}}else for(const _0x2bf4d6 of _0x1ef3e7[_0x2876('0x1d')]())_0x546c92?_0x24d193[_0x2876('0x8')](_0x2bf4d6):_0x24d193[_0x2876('0x8')](..._0x482ccd('highlight',_0x2bf4d6,_0x57f4cc['model']));_0x57f4cc['model']['change'](()=>{for(const _0xf8d0cc of _0x24d193)_0x5e828f[_0x2876('0x22')](_0xf8d0cc,{'commandName':'highlight','commandParams':[{'value':_0x546c92}]});});});const _0x3ab79f=_0x57f4cc[_0x2876('0x2')];_0x5e828f[_0x2876('0x1e')][_0x2876('0x6')](_0x1f863c=>{const {type:_0xcabcca,data:_0x2e33a3}=_0x1f863c;if('formatInline'==_0xcabcca&&_0x2e33a3&&'highlight'==_0x2e33a3[_0x2876('0x1b')]){const _0x5a9797=_0x3ab79f['t'],_0x829bc5=_0x2e33a3[_0x2876('0x3')][0x0]['value'];if(_0x829bc5){const _0x2b7a95=_0x57f4cc[_0x2876('0x18')]['get'](_0x2876('0x21'))[_0x2876('0xe')](_0x56a3d5=>_0x56a3d5[_0x2876('0xd')]==_0x829bc5),_0x51e359=_0x5a9797(_0x2b7a95['title'])[_0x2876('0x14')]();return{'type':_0x2876('0x1'),'content':_0x4e5f21(_0x3ab79f,'*Set\x20highlight:*\x20%0',_0x51e359),'color':{'value':_0x2b7a95[_0x2876('0x4')],'title':_0x2b7a95[_0x2876('0xc')]}};}return{'type':_0x2876('0x1'),'content':_0x4e5f21(_0x3ab79f,'*Remove\x20highlight*',_0x4e5f21(_0x3ab79f,_0x2876('0x15')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ca=['showSuggestionHighlights','elementToStructure','addClass','ck-horizontal-line','conversion','HorizontalLineEditing','locale','horizontalLine','for','div','createPositionAt','plugins','ELEMENT_HORIZONTAL_LINE','has','get','dataDowncast','TrackChangesEditing','afterInit','insert','createContainerElement'];(function(_0x3c745b,_0x53ca0f){const _0x34b590=function(_0x464b2a){while(--_0x464b2a){_0x3c745b['push'](_0x3c745b['shift']());}};_0x34b590(++_0x53ca0f);}(_0x53ca,0x162));const _0x34b5=function(_0x3c745b,_0x53ca0f){_0x3c745b=_0x3c745b-0x0;let _0x34b590=_0x53ca[_0x3c745b];return _0x34b590;};import{Plugin as _0x54f3c4}from'ckeditor5/src/core';import{getTranslation as _0x23cca7}from'../utils/common-translations';export default class V extends _0x54f3c4{[_0x34b5('0x3')](){const _0x2dec94=this['editor'];if(!_0x2dec94[_0x34b5('0x11')][_0x34b5('0x13')](_0x34b5('0xb')))return;_0x2dec94['plugins'][_0x34b5('0x0')](_0x34b5('0x2'))['enableCommand'](_0x34b5('0xd'));const _0x492240=_0x2dec94[_0x34b5('0x11')][_0x34b5('0x0')](_0x34b5('0x2')),_0xf57272=_0x2dec94[_0x34b5('0xc')];_0x492240['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x1b6f3d=>_0x23cca7(_0xf57272,_0x34b5('0x12'),_0x1b6f3d)),_0x2dec94[_0x34b5('0xa')][_0x34b5('0xe')](_0x34b5('0x1'))[_0x34b5('0x7')]({'model':_0x34b5('0xd'),'view':(_0x1e9fa5,{writer:_0xb5ed71,options:_0x2b134e})=>{if(!_0x2b134e[_0x34b5('0x6')])return null;const _0x36b4c0=_0xb5ed71[_0x34b5('0x5')](_0x34b5('0xf')),_0x26a61b=_0xb5ed71['createEmptyElement']('hr');return _0xb5ed71[_0x34b5('0x8')](_0x34b5('0x9'),_0x36b4c0),_0xb5ed71[_0x34b5('0x4')](_0xb5ed71[_0x34b5('0x10')](_0x36b4c0,0x0),_0x26a61b),_0x36b4c0;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6381=['registerDescriptionCallback','has','getSelectedElement','TrackChangesEditing','editing','get','_descriptionFactory','value','rawHtmlApi','change','plugins','model','selection','HtmlEmbed','getCustomProperty','locale','document','editor','cancel','element','*Change\x20%0\x20content*','htmlEmbed','rawHtml','registerElementLabel','ELEMENT_HTML_EMBED'];(function(_0x352fd0,_0x6381cb){const _0xe114a0=function(_0x5ae94f){while(--_0x5ae94f){_0x352fd0['push'](_0x352fd0['shift']());}};_0xe114a0(++_0x6381cb);}(_0x6381,0x143));const _0xe114=function(_0x352fd0,_0x6381cb){_0x352fd0=_0x352fd0-0x0;let _0xe114a0=_0x6381[_0x352fd0];return _0xe114a0;};import{Plugin as _0x574f63}from'ckeditor5/src/core';import{getTranslation as _0x431f12}from'../utils/common-translations';export default class X extends _0x574f63{['afterInit'](){const _0x382fbb=this[_0xe114('0x13')];if(!_0x382fbb[_0xe114('0xc')][_0xe114('0x3')](_0xe114('0xf')))return;const _0x568a00=_0x382fbb[_0xe114('0xc')][_0xe114('0x7')](_0xe114('0x5')),_0x475df8=_0x382fbb[_0xe114('0x11')],_0x5cb334=_0x382fbb[_0xe114('0x6')]['view'][_0xe114('0x12')][_0xe114('0xe')];_0x568a00[_0xe114('0x8')][_0xe114('0x0')]('rawHtml',_0xd3659e=>_0x431f12(_0x475df8,_0xe114('0x1'),_0xd3659e)),_0x382fbb[_0xe114('0xc')]['get'](_0xe114('0x5'))['enableCommand']('htmlEmbed',(_0x4bfd64,_0x4f9a54)=>{const _0x1c5899=_0x382fbb[_0xe114('0xd')],_0x42730e=_0x1c5899[_0xe114('0x12')][_0xe114('0xe')];_0x1c5899[_0xe114('0xb')](()=>{const _0x5785fb=function(_0x1a65e5){const _0x51890e=_0x1a65e5[_0xe114('0x4')]();if(_0x51890e&&_0x51890e['is'](_0xe114('0x15'),_0xe114('0x18')))return _0x1a65e5[_0xe114('0x4')]();return null;}(_0x42730e);if(!_0x5785fb)return void _0x4bfd64(null);const _0x93fe44=_0x5785fb['getAttribute'](_0xe114('0x9'))||'';if(void 0x0===_0x4f9a54)return;if(_0x4f9a54===_0x93fe44)return;_0x568a00['markBlockFormat'](_0x5785fb,{'commandName':'htmlEmbed','commandParams':[_0x4f9a54]}),_0x5cb334[_0xe114('0x4')]()[_0xe114('0x10')](_0xe114('0xa'))[_0xe114('0x14')]();});}),_0x568a00[_0xe114('0x8')][_0xe114('0x2')](_0x3765a6=>{const {data:_0x2e1932}=_0x3765a6;if(_0x2e1932&&_0xe114('0x17')==_0x2e1932['commandName']){const _0x92ae74=_0x431f12(_0x475df8,_0xe114('0x1'));return{'type':'format','content':_0x431f12(_0x475df8,_0xe114('0x16'),_0x92ae74)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3191=['registerElementLabel','isCollapsed','ELEMENT_IMAGE','formatInline','formatBlock','chain','*Reset\x20image\x20width*','previous','*Set\x20image\x20text\x20alternative:*\x20%0','suggestion','differ','type','getSuggestionCallback','deletion','getAttribute','addObject','insertImage','markBlockFormat','ImageTextAlternativeEditing','setImageNaturalSizeAttributes','start','isBlockImage','imageStyle','*Set\x20image\x20width:*\x20%0','ImageUtils','nodeBefore','imageStylePreApply','find','commandParams','ImageStyleEditing','convertInlineImageToBlock','format','resizeImage','*Remove\x20image\x20text\x20alternative*','detach','Block\x20image\x20to\x20inline\x20image','_splitMarkerName','accept','model','fromPosition','backward','from','refresh','editor','ELEMENT_CAPTION','imageCaption','forward','getContainedElement','alt','discard','toPrevious','FORMAT_SIDE_IMAGE','imageInline','uploadImage','selection','imageBlock','registerPostFixer','Inline\x20image\x20to\x20block\x20image','filter','Users','commandName','ImageResize','length','newValue','ELEMENT_INLINE_IMAGE','afterInit','value','change','locale','ImageUploadEditing','next','isIntersecting','plugins','getCaptionFromImageModelElement','registerCustomCallback','author','_descriptionFactory','*Format:*\x20%0','width','markInlineFormat','isOwn','isBefore','toLowerCase','isInContent','has','isEqual','nodeAfter','enableCommand','caption','title','imageTypeInline','imageTextAlternative','isInlineImage','schema','getClosestSelectedImageElement','toggleImageCaption','resizedWidth','getFirstRange','subType','join','getSuggestions','insertion','end','discardSuggestion','registerDescriptionCallback','get','commands','side','document','imageStylePostApply','name','createRangeOn','createRange','TrackChangesEditing','element','imageTypeBlock','_suggestionFactory','forceDefaultExecution','forEach','findIndex','getNearestSelectionRange','convertBlockImageToInline','markInsertion'];(function(_0x479a52,_0x3191eb){const _0x5d5f6f=function(_0x4caa22){while(--_0x4caa22){_0x479a52['push'](_0x479a52['shift']());}};_0x5d5f6f(++_0x3191eb);}(_0x3191,0x191));const _0x5d5f=function(_0x479a52,_0x3191eb){_0x479a52=_0x479a52-0x0;let _0x5d5f6f=_0x3191[_0x479a52];return _0x5d5f6f;};import{Plugin as _0x3be795}from'ckeditor5/src/core';import{LivePosition as _0xe0ca4f}from'ckeditor5/src/engine';import{uid as _0x76d123}from'ckeditor5/src/utils';import{getTranslation as _0x37c209}from'../utils/common-translations';export default class Y extends _0x3be795{[_0x5d5f('0x21')](){const _0x31a652=this[_0x5d5f('0xb')];if(!_0x31a652[_0x5d5f('0x28')]['has']('ImageEditing'))return;const _0xce346d=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x51')),_0x5b3911=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x73')),_0x4ea709={},_0x22fc11=_0x31a652[_0x5d5f('0x24')];if(_0xce346d['enableCommand'](_0x5d5f('0x6b')),_0xce346d[_0x5d5f('0x2c')]['registerElementLabel'](_0x5d5f('0x17'),_0x3da106=>_0x37c209(_0x22fc11,_0x5d5f('0x5d'),_0x3da106)),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x5b')](_0x5d5f('0x14'),_0x46a987=>_0x37c209(_0x22fc11,_0x5d5f('0x20'),_0x46a987)),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x5b')](_0x5d5f('0x38'),()=>_0x37c209(_0x22fc11,_0x5d5f('0xc'))),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x25'))&&_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x15')),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageBlockEditing')&&_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageInlineEditing')&&(_0xce346d['enableCommand']('imageTypeInline',(_0x1277ad,_0x1a5f71)=>{const _0x3b2412=_0x5b3911['getClosestSelectedImageElement'](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')]['selection']);_0x31a652[_0x5d5f('0x6')]['change'](()=>{_0xce346d['markBlockFormat'](_0x3b2412,{'commandName':_0x5d5f('0x3a'),'commandParams':[_0x1a5f71]},[],_0x5d5f('0x59'));});}),_0xce346d['enableCommand'](_0x5d5f('0x53'),(_0x33db69,_0x29a2ce)=>{_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](_0x12c7c6=>{let _0x4af0ac=_0x5b3911[_0x5d5f('0x3e')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x32cdfb=_0x12c7c6[_0x5d5f('0x4f')](_0x4af0ac);const _0x1fff5c=_0xe0ca4f[_0x5d5f('0x7')](_0x32cdfb[_0x5d5f('0x6f')],_0x5d5f('0x12')),_0x2659de=_0xe0ca4f[_0x5d5f('0x7')](_0x32cdfb[_0x5d5f('0x46')],'toNext');_0xce346d[_0x5d5f('0x55')](()=>_0x33db69(_0x29a2ce)),_0x4af0ac=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x32cdfb=_0x12c7c6[_0x5d5f('0x4f')](_0x4af0ac);const _0x5349f0=_0x12c7c6[_0x5d5f('0x50')](_0x1fff5c,_0x2659de);_0x1fff5c[_0x5d5f('0x2')](),_0x2659de[_0x5d5f('0x2')](),_0xce346d[_0x5d5f('0x6c')](_0x4af0ac,{'commandName':_0x5d5f('0x3a'),'commandParams':[_0x29a2ce]},[],_0x5d5f('0x79')),_0x5349f0[_0x5d5f('0x6f')][_0x5d5f('0x31')](_0x32cdfb[_0x5d5f('0x6f')])&&_0xce346d['markInsertion'](_0x12c7c6[_0x5d5f('0x50')](_0x5349f0[_0x5d5f('0x6f')],_0x32cdfb['start']),_0x5d5f('0x79')),_0x32cdfb[_0x5d5f('0x46')][_0x5d5f('0x31')](_0x5349f0['end'])&&_0xce346d[_0x5d5f('0x5a')](_0x12c7c6[_0x5d5f('0x50')](_0x32cdfb[_0x5d5f('0x46')],_0x5349f0[_0x5d5f('0x46')]),_0x5d5f('0x79'));});}),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x43'),()=>!0x1),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x5'),()=>!0x1),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x79'),'discard',_0xce346d['_suggestionFactory'][_0x5d5f('0x67')]('formatBlock','',_0x5d5f('0x5'))),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x45'),_0x5d5f('0x79'),'join',()=>!0x1),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback']('insertion',_0x5d5f('0x79'),_0x5d5f('0x11'),([_0x28d94e])=>{const _0x1a273d=_0xce346d[_0x5d5f('0x54')]['getSuggestionCallback'](_0x5d5f('0x45'),'',_0x5d5f('0x11'));let _0x520629=_0x28d94e[_0x5d5f('0x6f')],_0x3eeba6=_0x28d94e[_0x5d5f('0x46')];const _0x65683d=_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x3d')][_0x5d5f('0x58')](_0x520629,_0x5d5f('0x8')),_0xa7a510=_0x31a652['model']['schema'][_0x5d5f('0x58')](_0x3eeba6,_0x5d5f('0xe'));_0x65683d[_0x5d5f('0x5c')]&&(_0x520629=_0x65683d[_0x5d5f('0x6f')]),_0xa7a510[_0x5d5f('0x5c')]&&(_0x3eeba6=_0xa7a510[_0x5d5f('0x46')]),_0x1a273d([_0x31a652[_0x5d5f('0x6')]['createRange'](_0x520629,_0x3eeba6)]);}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x60'),_0x397b98),_0xce346d['_suggestionFactory']['registerCustomCallback'](_0x5d5f('0x45'),_0x5d5f('0x79'),_0x5d5f('0x60'),_0x397b98)),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageCaptionEditing')&&(_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x3f'),(_0x54e966,_0x11f568)=>{const _0x34dc2c=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')]('ImageCaptionUtils');let _0x4914da=_0x5b3911['getClosestSelectedImageElement'](_0x31a652['model']['document']['selection']),_0x14df8f=_0x34dc2c[_0x5d5f('0x29')](_0x4914da);_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{if(_0x14df8f)return void _0xce346d['markDeletion'](_0x31a652['model'][_0x5d5f('0x4f')](_0x14df8f));const _0x13fcd=_0x5b3911[_0x5d5f('0x70')](_0x4914da);_0x54e966(_0x11f568),_0x4914da=_0x5b3911['getClosestSelectedImageElement'](_0x31a652['model']['document'][_0x5d5f('0x16')]),_0x14df8f=_0x34dc2c[_0x5d5f('0x29')](_0x4914da),_0xce346d[_0x5d5f('0x5a')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4f')](_0x14df8f),_0x13fcd?null:_0x5d5f('0xd'));});}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback']('insertion',_0x5d5f('0xd'),_0x5d5f('0x60'),_0x397b98)),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x78'))){_0xce346d[_0x5d5f('0x37')]('imageStyle',(_0x2a7478,_0x422189)=>{const _0x50ed71=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x1b'))['me'],_0x539101=_0x31a652[_0x5d5f('0x4a')][_0x5d5f('0x49')](_0x5d5f('0x71'));let _0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x2bef97=_0x31a652[_0x5d5f('0x6')]['createRangeOn'](_0x4e63ee),_0x5385ba=_0x539101[_0x5d5f('0x22')];if(_0x5385ba==_0x422189[_0x5d5f('0x22')])return;const _0x1dcd1d={'commandName':'imageStyle','commandParams':[_0x422189],'formatGroupId':_0x76d123()};_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{if(_0xce346d[_0x5d5f('0x44')]()[_0x5d5f('0x1a')](_0x1d01db=>_0x1d01db[_0x5d5f('0x33')]&&_0x50ed71==_0x1d01db[_0x5d5f('0x2b')]&&(_0x5d5f('0x5f')==_0x1d01db['type']||_0x5d5f('0x5e')==_0x1d01db[_0x5d5f('0x66')])&&('imageStylePreApply'==_0x1d01db['subType']||_0x5d5f('0x4d')==_0x1d01db[_0x5d5f('0x42')])&&_0x1d01db[_0x5d5f('0x41')]()[_0x5d5f('0x35')](_0x2bef97))[_0x5d5f('0x56')](_0x3202cd=>_0xce346d[_0x5d5f('0x47')](_0x3202cd['head'])),_0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x2bef97=_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4f')](_0x4e63ee),_0x539101[_0x5d5f('0xa')](),_0x31a652[_0x5d5f('0x4a')][_0x5d5f('0x49')](_0x5d5f('0x3a'))[_0x5d5f('0xa')](),_0x31a652['commands'][_0x5d5f('0x49')](_0x5d5f('0x53'))[_0x5d5f('0xa')](),_0x5385ba=_0x539101[_0x5d5f('0x22')],_0x5385ba!=_0x422189['value'])return _0x5b3911[_0x5d5f('0x3c')](_0x4e63ee)&&_0x539101['shouldConvertImageType'](_0x422189[_0x5d5f('0x22')],_0x4e63ee)?(_0x2a7478({..._0x422189,'setImageSizes':!0x1}),_0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),void _0xce346d[_0x5d5f('0x6c')](_0x4e63ee,{..._0x1dcd1d,'commandReversedParams':[{'value':_0x5385ba||null,'setImageSizes':!0x1}]},[],_0x5d5f('0x75'))):void(_0x5b3911[_0x5d5f('0x70')](_0x4e63ee)?_0xce346d[_0x5d5f('0x6c')](_0x4e63ee,_0x1dcd1d,[],'imageStylePostApply'):_0xce346d[_0x5d5f('0x2f')](_0x2bef97,_0x1dcd1d,_0x5d5f('0x4d')));});});for(const _0x33f32d of _0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x78'))['normalizedStyles'])_0x4ea709[_0x33f32d[_0x5d5f('0x4e')]]=_0x33f32d[_0x5d5f('0x39')][_0x5d5f('0x32')]();_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),_0x5d5f('0x43'),()=>!0x1),_0xce346d['_suggestionFactory'][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x4d'),_0x5d5f('0x43'),()=>!0x1),_0xce346d['_suggestionFactory']['registerCustomCallback'](_0x5d5f('0x5e'),_0x5d5f('0x4d'),'join',()=>!0x1),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')]('formatBlock',_0x5d5f('0x75'),_0x5d5f('0x5'),([_0x53c2ff])=>{_0x5b3911[_0x5d5f('0x6e')](_0x53c2ff['getContainedElement']());}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),_0x5d5f('0x11'),(_0x5ad1f3,_0x58fc28)=>{_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x67')](_0x5d5f('0x5f'),'',_0x5d5f('0x5'))(_0x5ad1f3,{'commandName':_0x58fc28[_0x5d5f('0x1c')],'commandParams':_0x58fc28['commandReversedParams']});}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),'chain',_0x397b98);}const _0x16bbe8=[{'type':_0x5d5f('0x5f'),'subType':_0x5d5f('0x75')},{'type':_0x5d5f('0x45'),'subType':'imageCaption'},{'type':_0x5d5f('0x5f'),'subType':'convertInlineImageToBlock'},{'type':_0x5d5f('0x45'),'subType':_0x5d5f('0x79')}];function _0x4eb3fb(_0xc40c0f,_0x113d72){const _0x3dc120=_0x16bbe8['findIndex'](({type:_0x4fb1ec,subType:_0x415240})=>_0xc40c0f[_0x5d5f('0x66')]==_0x4fb1ec&&_0xc40c0f[_0x5d5f('0x42')]==_0x415240),_0x4d3571=_0x16bbe8[_0x5d5f('0x57')](({type:_0x4b85db,subType:_0x44aaf4})=>_0x113d72[_0x5d5f('0x66')]==_0x4b85db&&_0x113d72[_0x5d5f('0x42')]==_0x44aaf4);if(_0x3dc120<0x0||_0x4d3571<0x0)return!0x1;const _0x54f471=_0xc40c0f[_0x5d5f('0x41')](),_0x5e1534=_0x113d72[_0x5d5f('0x41')]();if((0x0==_0x3dc120||0x1==_0x3dc120)&&0x2==_0x4d3571&&_0x54f471[_0x5d5f('0x27')](_0x5e1534))return!0x0;if(0x2==_0x3dc120&&0x3==_0x4d3571){const _0x1dbd1f=_0xce346d['_findSuggestions'](_0x54f471,_0x5d5f('0x45'))[_0x5d5f('0x1a')](({suggestion:_0x3eb170,meta:_0x2a331e})=>_0x2a331e[_0x5d5f('0x30')]&&_0x5d5f('0x79')==_0x3eb170[_0x5d5f('0x42')]);if(_0x1dbd1f['length']>0x1&&_0x5e1534[_0x5d5f('0x46')][_0x5d5f('0x35')](_0x54f471[_0x5d5f('0x6f')]))return!0x0;if(0x1==_0x1dbd1f[_0x5d5f('0x1e')]&&(_0x54f471[_0x5d5f('0x6f')][_0x5d5f('0x35')](_0x5e1534[_0x5d5f('0x46')])||_0x54f471[_0x5d5f('0x46')]['isEqual'](_0x5e1534[_0x5d5f('0x6f')])))return!0x0;}if(0x3==_0x3dc120&&0x3==_0x4d3571&&_0x54f471[_0x5d5f('0x6f')][_0x5d5f('0x31')](_0x5e1534[_0x5d5f('0x6f')])){const _0x3e3dd8=_0x54f471[_0x5d5f('0x46')][_0x5d5f('0x36')],_0x5e7cd5=_0x5e1534[_0x5d5f('0x6f')][_0x5d5f('0x74')];return _0x5b3911[_0x5d5f('0x70')](_0x3e3dd8)&&_0x3e3dd8===_0x5e7cd5;}return!0x1;}function _0x397b98(_0x818f02,_0x5a8b32){return _0x4eb3fb(_0x818f02,_0x5a8b32)?[_0x818f02,_0x5a8b32]:_0x4eb3fb(_0x5a8b32,_0x818f02)?[_0x5a8b32,_0x818f02]:null;}_0x31a652['model']['document'][_0x5d5f('0x18')](()=>{let _0x33fe20=!0x1;const _0x36934e=Array[_0x5d5f('0x9')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x65')]['getChangedMarkers']());for(const {name:_0x18cfd2,data:_0xec04ed}of _0x36934e){const {group:_0x3de568,type:_0x37505e,subType:_0x4715cb,id:_0x5ed9d0}=_0xce346d[_0x5d5f('0x4')](_0x18cfd2);if(_0x5d5f('0x64')==_0x3de568&&_0xce346d['hasSuggestion'](_0x5ed9d0)){if('formatBlock'==_0x37505e&&(_0x5d5f('0x75')==_0x4715cb||_0x5d5f('0x4d')==_0x4715cb)){const _0x610af0=_0xce346d['getSuggestion'](_0x5ed9d0);if(_0xec04ed['newRange']){const _0x927819=_0x610af0['getFirstRange']()['getContainedElement']();if(_0x5b3911[_0x5d5f('0x70')](_0x927819))continue;_0xce346d['discardSuggestion'](_0x610af0),_0x33fe20=!0x0;}}if(_0x5d5f('0x45')==_0x37505e&&_0x5d5f('0xd')==_0x4715cb&&!_0xec04ed['newRange']){const _0x2b34a2=_0xce346d['getSuggestion'](_0x5ed9d0);_0x2b34a2[_0x5d5f('0x26')]&&_0x2b34a2[_0x5d5f('0x26')][_0x5d5f('0x33')]&&(_0xce346d[_0x5d5f('0x47')](_0x2b34a2[_0x5d5f('0x26')]),_0x33fe20=!0x0);}}}return _0x33fe20;}),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x1d'))&&_0xce346d['enableCommand'](_0x5d5f('0x0'),(_0x4c3f68,_0x18275c)=>{const _0x4075bf=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')]['document'][_0x5d5f('0x16')]);_0x4075bf['getAttribute'](_0x5d5f('0x40'))!=_0x18275c[_0x5d5f('0x2e')]&&_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{_0xce346d[_0x5d5f('0x6c')](_0x4075bf,{'commandName':_0x5d5f('0x0'),'commandParams':[_0x18275c]});});}),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x6d'))&&_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x3b'),(_0x5473ea,_0x33e6a4)=>{const _0x106691=_0x5b3911[_0x5d5f('0x3e')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x16')]);(_0x106691['hasAttribute']('alt')?_0x106691[_0x5d5f('0x69')](_0x5d5f('0x10')):'')!=_0x33e6a4[_0x5d5f('0x1f')]&&_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{_0xce346d[_0x5d5f('0x6c')](_0x106691,{'commandName':_0x5d5f('0x3b'),'commandParams':[_0x33e6a4]});});}),_0xce346d['_descriptionFactory'][_0x5d5f('0x48')](_0x358212=>{if(!!_0x16bbe8[_0x5d5f('0x76')](({type:_0x58d615,subType:_0x45188e})=>_0x358212[_0x5d5f('0x66')]==_0x58d615&&_0x358212[_0x5d5f('0x42')]==_0x45188e))return _0x358212[_0x5d5f('0x62')]?{}:void 0x0;}),_0xce346d['_descriptionFactory']['registerDescriptionCallback'](_0x2ab6b4=>{if(_0x5d5f('0x45')==_0x2ab6b4[_0x5d5f('0x66')]||_0x5d5f('0x68')==_0x2ab6b4[_0x5d5f('0x66')]){const _0x3745a5=_0x2ab6b4[_0x5d5f('0xf')]();if(_0x3745a5&&_0x3745a5['is'](_0x5d5f('0x52'),_0x5d5f('0x38')))return{'type':'insertion'==_0x2ab6b4[_0x5d5f('0x66')]?_0x5d5f('0x6a'):'removeObject','element':_0x3745a5,'quantity':0x1};}}),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x48')](_0x1cde16=>'formatBlock'==_0x1cde16[_0x5d5f('0x66')]&&_0x5d5f('0x79')==_0x1cde16[_0x5d5f('0x42')]?{'type':'format','content':_0x5d5f('0x19')}:_0x5d5f('0x5f')==_0x1cde16['type']&&_0x5d5f('0x59')==_0x1cde16[_0x5d5f('0x42')]?{'type':_0x5d5f('0x7a'),'content':_0x5d5f('0x3')}:void 0x0),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x48')](_0x1668f6=>{const {data:_0x29e8e0}=_0x1668f6;if(_0x29e8e0){if('imageStyle'==_0x29e8e0['commandName']){const _0x42c93d=_0x29e8e0[_0x5d5f('0x77')][0x0][_0x5d5f('0x22')];return _0x4b69bc(_0x5d5f('0x4b')===_0x42c93d?_0x37c209(_0x22fc11,_0x5d5f('0x13')):_0x4ea709[_0x42c93d]||_0x42c93d);}if('imageTextAlternative'==_0x29e8e0[_0x5d5f('0x1c')]){const _0x58916c=_0x29e8e0[_0x5d5f('0x77')][0x0][_0x5d5f('0x1f')];return _0x58916c?{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x63'),'\x22'+_0x58916c+'\x22')}:{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x1'))};}if(_0x5d5f('0x0')==_0x29e8e0['commandName']){const _0x7b677c=_0x29e8e0['commandParams'][0x0]['width'];return _0x7b677c?{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x72'),_0x7b677c)}:{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x61'))};}}function _0x4b69bc(_0x4d6cf1){return{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x2d'),_0x4d6cf1)};}});}}
|
|
23
|
+
const _0x4fc1=['*Set\x20image\x20width:*\x20%0','Users','isEqual','registerPostFixer','ImageCaptionUtils','newRange','length','start','enableCommand','isInlineImage','subType','TrackChangesEditing','discard','ImageUploadEditing','findIndex','has','alt','getSuggestionCallback','isInContent','chain','join','registerCustomCallback','ImageEditing','*Set\x20image\x20text\x20alternative:*\x20%0','name','toPrevious','forceDefaultExecution','getFirstRange','FORMAT_SIDE_IMAGE','ImageStyleEditing','insertImage','markInsertion','accept','imageStylePreApply','change','find','getCaptionFromImageModelElement','document','caption','getContainedElement','addObject','normalizedStyles','registerDescriptionCallback','backward','model','editor','ImageResize','isBlockImage','selection','uploadImage','end','author','toggleImageCaption','imageTextAlternative','createRange','imageStylePostApply','nodeAfter','title','differ','_suggestionFactory','isCollapsed','ImageBlockEditing','suggestion','convertBlockImageToInline','value','refresh','forward','previous','getClosestSelectedImageElement','ELEMENT_IMAGE','format','*Reset\x20image\x20width*','*Remove\x20image\x20text\x20alternative*','newValue','_descriptionFactory','from','hasSuggestion','_splitMarkerName','isBefore','deletion','registerElementLabel','setImageNaturalSizeAttributes','ImageUtils','ELEMENT_INLINE_IMAGE','commands','Block\x20image\x20to\x20inline\x20image','createRangeOn','next','markInlineFormat','type','*Format:*\x20%0','getSuggestion','shouldConvertImageType','ImageTextAlternativeEditing','side','markBlockFormat','resizeImage','element','ImageInlineEditing','commandName','commandParams','ImageCaptionEditing','nodeBefore','filter','commandReversedParams','imageInline','detach','Inline\x20image\x20to\x20block\x20image','isOwn','discardSuggestion','imageCaption','imageTypeInline','imageTypeBlock','width','resizedWidth','getAttribute','getSuggestions','getNearestSelectionRange','fromPosition','imageBlock','plugins','schema','formatInline','insertion','removeObject','get','convertInlineImageToBlock','imageStyle','formatBlock'];(function(_0x5a64ec,_0x4fc17d){const _0x3905bf=function(_0xa3838d){while(--_0xa3838d){_0x5a64ec['push'](_0x5a64ec['shift']());}};_0x3905bf(++_0x4fc17d);}(_0x4fc1,0x1e0));const _0x3905=function(_0x5a64ec,_0x4fc17d){_0x5a64ec=_0x5a64ec-0x0;let _0x3905bf=_0x4fc1[_0x5a64ec];return _0x3905bf;};import{Plugin as _0x1acaaa}from'ckeditor5/src/core';import{LivePosition as _0x3c67e8}from'ckeditor5/src/engine';import{uid as _0x49dffa}from'ckeditor5/src/utils';import{getTranslation as _0x5888c9}from'../utils/common-translations';export default class Y extends _0x1acaaa{['afterInit'](){const _0x59ac83=this[_0x3905('0x51')];if(!_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x3a')))return;const _0xef3f6f=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x2f')),_0x268378=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x76')),_0x2a90ed={},_0x16e9e3=_0x59ac83['locale'];if(_0xef3f6f[_0x3905('0x2c')](_0x3905('0x42')),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x74')](_0x3905('0x1a'),_0x56939e=>_0x5888c9(_0x16e9e3,_0x3905('0x69'),_0x56939e)),_0xef3f6f[_0x3905('0x6e')]['registerElementLabel'](_0x3905('0xc'),_0x3ec750=>_0x5888c9(_0x16e9e3,_0x3905('0x77'),_0x3ec750)),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x74')]('caption',()=>_0x5888c9(_0x16e9e3,'ELEMENT_CAPTION')),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x31'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x55')),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x61'))&&_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x5'))&&(_0xef3f6f[_0x3905('0x2c')](_0x3905('0x12'),(_0x801400,_0x2b7283)=>{const _0x397e80=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);_0x59ac83[_0x3905('0x50')]['change'](()=>{_0xef3f6f[_0x3905('0x2')](_0x397e80,{'commandName':'imageTypeInline','commandParams':[_0x2b7283]},[],_0x3905('0x63'));});}),_0xef3f6f[_0x3905('0x2c')]('imageTypeBlock',(_0x462bdd,_0x2b7e5c)=>{_0x59ac83['model'][_0x3905('0x46')](_0x35f39e=>{let _0x1a66cf=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x40a04f=_0x35f39e[_0x3905('0x7a')](_0x1a66cf);const _0x7f54e5=_0x3c67e8['fromPosition'](_0x40a04f[_0x3905('0x2b')],_0x3905('0x3d')),_0x224e4b=_0x3c67e8[_0x3905('0x19')](_0x40a04f[_0x3905('0x56')],'toNext');_0xef3f6f[_0x3905('0x3e')](()=>_0x462bdd(_0x2b7e5c)),_0x1a66cf=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x40a04f=_0x35f39e[_0x3905('0x7a')](_0x1a66cf);const _0xd84e3a=_0x35f39e[_0x3905('0x5a')](_0x7f54e5,_0x224e4b);_0x7f54e5[_0x3905('0xd')](),_0x224e4b[_0x3905('0xd')](),_0xef3f6f[_0x3905('0x2')](_0x1a66cf,{'commandName':_0x3905('0x12'),'commandParams':[_0x2b7e5c]},[],_0x3905('0x21')),_0xd84e3a[_0x3905('0x2b')]['isBefore'](_0x40a04f[_0x3905('0x2b')])&&_0xef3f6f[_0x3905('0x43')](_0x35f39e[_0x3905('0x5a')](_0xd84e3a[_0x3905('0x2b')],_0x40a04f[_0x3905('0x2b')]),_0x3905('0x21')),_0x40a04f[_0x3905('0x56')][_0x3905('0x72')](_0xd84e3a[_0x3905('0x56')])&&_0xef3f6f[_0x3905('0x43')](_0x35f39e[_0x3905('0x5a')](_0x40a04f[_0x3905('0x56')],_0xd84e3a[_0x3905('0x56')]),'convertInlineImageToBlock');});}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x21'),_0x3905('0x38'),()=>!0x1),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback']('formatBlock',_0x3905('0x21'),_0x3905('0x44'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x23'),'convertInlineImageToBlock',_0x3905('0x30'),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x35')]('formatBlock','',_0x3905('0x44'))),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x1e'),_0x3905('0x21'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x1e'),'convertInlineImageToBlock',_0x3905('0x30'),([_0x1d9f36])=>{const _0x196a0b=_0xef3f6f[_0x3905('0x5f')]['getSuggestionCallback'](_0x3905('0x1e'),'',_0x3905('0x30'));let _0xd45fd5=_0x1d9f36[_0x3905('0x2b')],_0x2c4458=_0x1d9f36[_0x3905('0x56')];const _0x4469c2=_0x59ac83[_0x3905('0x50')][_0x3905('0x1c')][_0x3905('0x18')](_0xd45fd5,_0x3905('0x4f')),_0x2ac12e=_0x59ac83[_0x3905('0x50')][_0x3905('0x1c')]['getNearestSelectionRange'](_0x2c4458,_0x3905('0x66'));_0x4469c2[_0x3905('0x60')]&&(_0xd45fd5=_0x4469c2[_0x3905('0x2b')]),_0x2ac12e[_0x3905('0x60')]&&(_0x2c4458=_0x2ac12e[_0x3905('0x56')]),_0x196a0b([_0x59ac83[_0x3905('0x50')]['createRange'](_0xd45fd5,_0x2c4458)]);}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),'convertInlineImageToBlock',_0x3905('0x37'),_0x36c311),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')]('insertion','convertInlineImageToBlock',_0x3905('0x37'),_0x36c311)),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x8'))&&(_0xef3f6f['enableCommand'](_0x3905('0x58'),(_0x376cea,_0x52f836)=>{const _0x527533=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x28'));let _0x53175d=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x19f0fb=_0x527533[_0x3905('0x48')](_0x53175d);_0x59ac83['model'][_0x3905('0x46')](()=>{if(_0x19f0fb)return void _0xef3f6f['markDeletion'](_0x59ac83[_0x3905('0x50')]['createRangeOn'](_0x19f0fb));const _0x46288a=_0x268378[_0x3905('0x53')](_0x53175d);_0x376cea(_0x52f836),_0x53175d=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x19f0fb=_0x527533[_0x3905('0x48')](_0x53175d),_0xef3f6f[_0x3905('0x43')](_0x59ac83['model'][_0x3905('0x7a')](_0x19f0fb),_0x46288a?null:'imageCaption');});}),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x1e'),_0x3905('0x11'),_0x3905('0x37'),_0x36c311)),_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x41'))){_0xef3f6f[_0x3905('0x2c')](_0x3905('0x22'),(_0x3c6893,_0x352894)=>{const _0x105424=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x25'))['me'],_0x49351d=_0x59ac83[_0x3905('0x78')][_0x3905('0x20')](_0x3905('0x22'));let _0x5c6600=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')]['selection']),_0x41e078=_0x59ac83['model'][_0x3905('0x7a')](_0x5c6600),_0x2cbce1=_0x49351d['value'];if(_0x2cbce1==_0x352894['value'])return;const _0x21ba81={'commandName':'imageStyle','commandParams':[_0x352894],'formatGroupId':_0x49dffa()};_0x59ac83[_0x3905('0x50')]['change'](()=>{if(_0xef3f6f[_0x3905('0x17')]()['filter'](_0x2a893a=>_0x2a893a[_0x3905('0x36')]&&_0x105424==_0x2a893a[_0x3905('0x57')]&&(_0x3905('0x23')==_0x2a893a[_0x3905('0x7d')]||_0x3905('0x1d')==_0x2a893a[_0x3905('0x7d')])&&(_0x3905('0x45')==_0x2a893a[_0x3905('0x2e')]||_0x3905('0x5b')==_0x2a893a[_0x3905('0x2e')])&&_0x2a893a[_0x3905('0x3f')]()[_0x3905('0x26')](_0x41e078))['forEach'](_0xde8888=>_0xef3f6f['discardSuggestion'](_0xde8888['head'])),_0x5c6600=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')]['selection']),_0x41e078=_0x59ac83[_0x3905('0x50')][_0x3905('0x7a')](_0x5c6600),_0x49351d[_0x3905('0x65')](),_0x59ac83[_0x3905('0x78')]['get'](_0x3905('0x12'))['refresh'](),_0x59ac83[_0x3905('0x78')][_0x3905('0x20')](_0x3905('0x13'))['refresh'](),_0x2cbce1=_0x49351d[_0x3905('0x64')],_0x2cbce1!=_0x352894[_0x3905('0x64')])return _0x268378[_0x3905('0x2d')](_0x5c6600)&&_0x49351d[_0x3905('0x80')](_0x352894[_0x3905('0x64')],_0x5c6600)?(_0x3c6893({..._0x352894,'setImageSizes':!0x1}),_0x5c6600=_0x268378[_0x3905('0x68')](_0x59ac83['model'][_0x3905('0x49')]['selection']),void _0xef3f6f[_0x3905('0x2')](_0x5c6600,{..._0x21ba81,'commandReversedParams':[{'value':_0x2cbce1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x268378[_0x3905('0x53')](_0x5c6600)?_0xef3f6f[_0x3905('0x2')](_0x5c6600,_0x21ba81,[],_0x3905('0x5b')):_0xef3f6f[_0x3905('0x7c')](_0x41e078,_0x21ba81,'imageStylePostApply'));});});for(const _0xf9222d of _0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x41'))[_0x3905('0x4d')])_0x2a90ed[_0xf9222d[_0x3905('0x3c')]]=_0xf9222d[_0x3905('0x5d')]['toLowerCase']();_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory']['registerCustomCallback'](_0x3905('0x23'),'imageStylePostApply','join',()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x1d'),_0x3905('0x5b'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x44'),([_0x1d4547])=>{_0x268378[_0x3905('0x75')](_0x1d4547[_0x3905('0x4b')]());}),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x23'),'imageStylePreApply',_0x3905('0x30'),(_0x839558,_0x59cdd2)=>{_0xef3f6f[_0x3905('0x5f')]['getSuggestionCallback'](_0x3905('0x23'),'',_0x3905('0x44'))(_0x839558,{'commandName':_0x59cdd2[_0x3905('0x6')],'commandParams':_0x59cdd2[_0x3905('0xb')]});}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x37'),_0x36c311);}const _0x5d5573=[{'type':_0x3905('0x23'),'subType':_0x3905('0x45')},{'type':_0x3905('0x1e'),'subType':_0x3905('0x11')},{'type':_0x3905('0x23'),'subType':'convertInlineImageToBlock'},{'type':_0x3905('0x1e'),'subType':_0x3905('0x21')}];function _0x55e172(_0xb997e5,_0x14bbcd){const _0x3afe00=_0x5d5573[_0x3905('0x32')](({type:_0x3b8c0f,subType:_0xd75512})=>_0xb997e5[_0x3905('0x7d')]==_0x3b8c0f&&_0xb997e5[_0x3905('0x2e')]==_0xd75512),_0x216da0=_0x5d5573[_0x3905('0x32')](({type:_0x12d34a,subType:_0x2045bd})=>_0x14bbcd[_0x3905('0x7d')]==_0x12d34a&&_0x14bbcd[_0x3905('0x2e')]==_0x2045bd);if(_0x3afe00<0x0||_0x216da0<0x0)return!0x1;const _0x5b8d73=_0xb997e5[_0x3905('0x3f')](),_0x3c94e0=_0x14bbcd[_0x3905('0x3f')]();if((0x0==_0x3afe00||0x1==_0x3afe00)&&0x2==_0x216da0&&_0x5b8d73['isIntersecting'](_0x3c94e0))return!0x0;if(0x2==_0x3afe00&&0x3==_0x216da0){const _0x487b25=_0xef3f6f['_findSuggestions'](_0x5b8d73,'insertion')[_0x3905('0xa')](({suggestion:_0x210f3a,meta:_0x2a52ee})=>_0x2a52ee[_0x3905('0xf')]&&'convertInlineImageToBlock'==_0x210f3a[_0x3905('0x2e')]);if(_0x487b25[_0x3905('0x2a')]>0x1&&_0x3c94e0[_0x3905('0x56')][_0x3905('0x26')](_0x5b8d73[_0x3905('0x2b')]))return!0x0;if(0x1==_0x487b25['length']&&(_0x5b8d73[_0x3905('0x2b')][_0x3905('0x26')](_0x3c94e0[_0x3905('0x56')])||_0x5b8d73[_0x3905('0x56')]['isEqual'](_0x3c94e0[_0x3905('0x2b')])))return!0x0;}if(0x3==_0x3afe00&&0x3==_0x216da0&&_0x5b8d73['start'][_0x3905('0x72')](_0x3c94e0['start'])){const _0x3c7c07=_0x5b8d73[_0x3905('0x56')][_0x3905('0x5c')],_0x3226b1=_0x3c94e0[_0x3905('0x2b')][_0x3905('0x9')];return _0x268378['isBlockImage'](_0x3c7c07)&&_0x3c7c07===_0x3226b1;}return!0x1;}function _0x36c311(_0xcad816,_0x406f5b){return _0x55e172(_0xcad816,_0x406f5b)?[_0xcad816,_0x406f5b]:_0x55e172(_0x406f5b,_0xcad816)?[_0x406f5b,_0xcad816]:null;}_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x27')](()=>{let _0x4d3cf4=!0x1;const _0x12fd90=Array[_0x3905('0x6f')](_0x59ac83['model'][_0x3905('0x49')][_0x3905('0x5e')]['getChangedMarkers']());for(const {name:_0xcb21d8,data:_0x67542f}of _0x12fd90){const {group:_0x560a1d,type:_0x447563,subType:_0x335604,id:_0x3d7d0a}=_0xef3f6f[_0x3905('0x71')](_0xcb21d8);if(_0x3905('0x62')==_0x560a1d&&_0xef3f6f[_0x3905('0x70')](_0x3d7d0a)){if(_0x3905('0x23')==_0x447563&&(_0x3905('0x45')==_0x335604||_0x3905('0x5b')==_0x335604)){const _0x175607=_0xef3f6f[_0x3905('0x7f')](_0x3d7d0a);if(_0x67542f[_0x3905('0x29')]){const _0x57a6f9=_0x175607[_0x3905('0x3f')]()[_0x3905('0x4b')]();if(_0x268378[_0x3905('0x53')](_0x57a6f9))continue;_0xef3f6f[_0x3905('0x10')](_0x175607),_0x4d3cf4=!0x0;}}if(_0x3905('0x1e')==_0x447563&&_0x3905('0x11')==_0x335604&&!_0x67542f['newRange']){const _0x237640=_0xef3f6f[_0x3905('0x7f')](_0x3d7d0a);_0x237640['next']&&_0x237640[_0x3905('0x7b')][_0x3905('0x36')]&&(_0xef3f6f[_0x3905('0x10')](_0x237640[_0x3905('0x7b')]),_0x4d3cf4=!0x0);}}}return _0x4d3cf4;}),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x52'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x3'),(_0x35a92b,_0x23cfba)=>{const _0x56d44a=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);_0x56d44a[_0x3905('0x16')](_0x3905('0x15'))!=_0x23cfba[_0x3905('0x14')]&&_0x59ac83[_0x3905('0x50')][_0x3905('0x46')](()=>{_0xef3f6f[_0x3905('0x2')](_0x56d44a,{'commandName':'resizeImage','commandParams':[_0x23cfba]});});}),_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x0'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x59'),(_0x5832a3,_0x1cf2cb)=>{const _0x4549c1=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);(_0x4549c1['hasAttribute'](_0x3905('0x34'))?_0x4549c1['getAttribute'](_0x3905('0x34')):'')!=_0x1cf2cb[_0x3905('0x6d')]&&_0x59ac83[_0x3905('0x50')][_0x3905('0x46')](()=>{_0xef3f6f[_0x3905('0x2')](_0x4549c1,{'commandName':_0x3905('0x59'),'commandParams':[_0x1cf2cb]});});}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x10d769=>{if(!!_0x5d5573[_0x3905('0x47')](({type:_0x5e4419,subType:_0x3ae3ce})=>_0x10d769[_0x3905('0x7d')]==_0x5e4419&&_0x10d769['subType']==_0x3ae3ce))return _0x10d769[_0x3905('0x67')]?{}:void 0x0;}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x3d39d3=>{if(_0x3905('0x1e')==_0x3d39d3[_0x3905('0x7d')]||_0x3905('0x73')==_0x3d39d3[_0x3905('0x7d')]){const _0x43b0fe=_0x3d39d3[_0x3905('0x4b')]();if(_0x43b0fe&&_0x43b0fe['is'](_0x3905('0x4'),_0x3905('0x4a')))return{'type':_0x3905('0x1e')==_0x3d39d3[_0x3905('0x7d')]?_0x3905('0x4c'):_0x3905('0x1f'),'element':_0x43b0fe,'quantity':0x1};}}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x48d7d7=>'formatBlock'==_0x48d7d7[_0x3905('0x7d')]&&'convertInlineImageToBlock'==_0x48d7d7[_0x3905('0x2e')]?{'type':_0x3905('0x6a'),'content':_0x3905('0xe')}:_0x3905('0x23')==_0x48d7d7['type']&&_0x3905('0x63')==_0x48d7d7['subType']?{'type':_0x3905('0x6a'),'content':_0x3905('0x79')}:void 0x0),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x4e42db=>{const {data:_0x1520ee}=_0x4e42db;if(_0x1520ee){if(_0x3905('0x22')==_0x1520ee[_0x3905('0x6')]){const _0x3cf6e9=_0x1520ee[_0x3905('0x7')][0x0][_0x3905('0x64')];return _0x49ba35(_0x3905('0x1')===_0x3cf6e9?_0x5888c9(_0x16e9e3,_0x3905('0x40')):_0x2a90ed[_0x3cf6e9]||_0x3cf6e9);}if(_0x3905('0x59')==_0x1520ee['commandName']){const _0xa98b51=_0x1520ee[_0x3905('0x7')][0x0][_0x3905('0x6d')];return _0xa98b51?{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x3b'),'\x22'+_0xa98b51+'\x22')}:{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x6c'))};}if(_0x3905('0x3')==_0x1520ee[_0x3905('0x6')]){const _0x166588=_0x1520ee['commandParams'][0x0][_0x3905('0x14')];return _0x166588?{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x24'),_0x166588)}:{'type':'format','content':_0x5888c9(_0x16e9e3,_0x3905('0x6b'))};}}function _0x49ba35(_0x4eafab){return{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x7e'),_0x4eafab)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21ce=['accept','editor','document','commandParams','replaceImageSource','afterInit','model','selection','author','registerCustomCallback','plugins','registerDescriptionCallback','*Format:*\x20replace\x20image\x20URL','getSuggestions','getSuggestionCallback','discard','data','Users','_descriptionFactory','handleSuggestionDescription','markBlockFormat','has','change','commandName','subType','src','locale','_suggestionFactory','getSelectedElement','TrackChangesEditing','formatBlock','get','handleReplaceImageCommand'];(function(_0x10911a,_0x21ced5){const _0x437467=function(_0x4a5104){while(--_0x4a5104){_0x10911a['push'](_0x10911a['shift']());}};_0x437467(++_0x21ced5);}(_0x21ce,0xa9));const _0x4374=function(_0x10911a,_0x21ced5){_0x10911a=_0x10911a-0x0;let _0x437467=_0x21ce[_0x10911a];return _0x437467;};import{Plugin as _0x26c8f6}from'ckeditor5/src/core';import{getTranslation as _0x4fa5b3}from'../utils/common-translations';export default class Z extends _0x26c8f6{[_0x4374('0x1')](){if(!this[_0x4374('0x1e')]['plugins'][_0x4374('0x11')]('ImageEditing'))return;const _0x1beeb3=this[_0x4374('0x1e')][_0x4374('0x6')][_0x4374('0x1b')](_0x4374('0x19'));_0x1beeb3['enableCommand']('replaceImageSource',(_0x250673,_0x46bb82)=>this[_0x4374('0x1c')](_0x250673,_0x46bb82)),_0x1beeb3[_0x4374('0x17')][_0x4374('0x5')](_0x4374('0x1a'),'replaceImageSource',_0x4374('0x1d'),_0x1beeb3[_0x4374('0x17')][_0x4374('0xa')](_0x4374('0x1a'),null,'discard')),_0x1beeb3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource',_0x4374('0xb'),_0x1beeb3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x4374('0x1d'))),_0x1beeb3[_0x4374('0xe')][_0x4374('0x7')](_0x1f4474=>this[_0x4374('0xf')](_0x1f4474));}[_0x4374('0x1c')](_0x26d729,_0x59053e){const _0x421276=this[_0x4374('0x1e')][_0x4374('0x6')][_0x4374('0x1b')](_0x4374('0x19')),_0xcd153b=this[_0x4374('0x1e')][_0x4374('0x2')][_0x4374('0x1f')][_0x4374('0x3')][_0x4374('0x18')]();this[_0x4374('0x1e')][_0x4374('0x2')][_0x4374('0x12')](()=>{let _0x472b24=_0xcd153b['getAttribute'](_0x4374('0x15'));const _0x4bf13d=this[_0x4374('0x1e')][_0x4374('0x6')][_0x4374('0x1b')](_0x4374('0xd'))['me'];for(const _0xe63141 of _0x421276[_0x4374('0x9')]({'skipNotAttached':!0x0})){const _0x59f299=_0xe63141['getContainedElement']();if(_0x4374('0x0')===_0xe63141[_0x4374('0x14')]&&_0x59f299===_0xcd153b){_0xe63141[_0x4374('0x4')]!==_0x4bf13d&&_0xe63141['discard'](),_0x472b24=_0xe63141[_0x4374('0xc')][_0x4374('0x20')][0x0]['source'];break;}}_0x26d729(_0x59053e),_0x421276[_0x4374('0x10')](_0xcd153b,{'commandName':_0x4374('0x0'),'commandParams':[{'source':_0x472b24}]},[],'replaceImageSource');});}[_0x4374('0xf')](_0x14dfaa){const {data:_0x9534ac}=_0x14dfaa;if(_0x9534ac&&_0x4374('0x0')===_0x9534ac[_0x4374('0x13')]){const _0x5da4c5=_0x4374('0x8');return{'type':'format','content':_0x4fa5b3(this[_0x4374('0x1e')][_0x4374('0x16')],_0x5da4c5)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6fcd=['_setSuggestionData','plugins','_trackChangesExecuted','_handleImportedData','track_changes','value','importWord','commands','enableCommand','_trackChangesValueDuringImport','editor','Users','forEach','TrackChangesEditing','trackChanges','get','execute','high','dataInsert','afterInit','listenTo'];(function(_0x34b2a9,_0x6fcdf8){const _0x3013da=function(_0x328b9c){while(--_0x328b9c){_0x34b2a9['push'](_0x34b2a9['shift']());}};_0x3013da(++_0x6fcdf8);}(_0x6fcd,0x141));const _0x3013=function(_0x34b2a9,_0x6fcdf8){_0x34b2a9=_0x34b2a9-0x0;let _0x3013da=_0x6fcd[_0x34b2a9];return _0x3013da;};import{Plugin as _0x4f1bf1}from'ckeditor5/src/core';export default class tt extends _0x4f1bf1{constructor(_0x1b4d6b){super(_0x1b4d6b),this[_0x3013('0x3')]=!0x1,this[_0x3013('0x11')]=!0x1;}[_0x3013('0xd')](){const _0x5bd4a2=this[_0x3013('0x4')],_0xaacabb=_0x5bd4a2[_0x3013('0x1')]['get'](_0x3013('0x0')),_0x2be934=_0x5bd4a2[_0x3013('0x1')]['get'](_0x3013('0x8'));_0xaacabb&&(_0xaacabb['on'](_0x3013('0xa'),(_0x21364a,[,_0x4990b6])=>{this[_0x3013('0x3')]=_0x2be934[_0x3013('0x14')],_0x4990b6['collaboration_features'][_0x3013('0x13')]=!this[_0x3013('0x3')];},{'priority':_0x3013('0xb')}),this['listenTo'](_0xaacabb,'dataInsert',this[_0x3013('0x12')]['bind'](this)),this[_0x3013('0xe')](_0xaacabb,_0x3013('0xc'),()=>{this[_0x3013('0x11')]&&(_0x2be934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5bd4a2[_0x3013('0x10')]['get'](_0x3013('0x7'))[_0x3013('0x2')](_0x3013('0x0')));}[_0x3013('0x12')](_0x3f9733,_0x4a058f){const {suggestions:_0x213bd8}=_0x4a058f,_0x3fdb0e=this['editor'][_0x3013('0x1')][_0x3013('0x9')](_0x3013('0x8')),_0xa134b0=_0x3fdb0e[_0x3013('0x14')];this[_0x3013('0x3')]!==_0xa134b0&&(_0x3fdb0e[_0x3013('0xa')](),this[_0x3013('0x11')]=!0x0),_0x213bd8&&_0x213bd8[_0x3013('0x6')](({id:_0x267854,type:_0x183168,author:_0x150a1f,created_at:_0x3d1833})=>{const _0x448229={'id':_0x267854,'type':_0x183168,'authorId':this[_0x3013('0x4')]['plugins'][_0x3013('0x9')](_0x3013('0x5'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x150a1f,'createdAt':_0x3d1833?new Date(_0x3d1833):new Date(),'source':_0x3013('0x0')}}};this['editor'][_0x3013('0x10')][_0x3013('0x9')]('TrackChangesEditing')[_0x3013('0xf')](_0x448229);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4409=['outdentBlock','getItemLabel','markBlockFormat','filter','indent','get','registerDescriptionCallback','_descriptionFactory','editor','TrackChangesEditing','IndentEditing','outdent','document','enableCommand','format','getSelectedBlocks','plugins','model','*Indent:*\x20%0','checkAttribute','has','commandName','indentBlock','blockIndent','getItems'];(function(_0x51241c,_0x440910){const _0x53ac5f=function(_0x40b56d){while(--_0x40b56d){_0x51241c['push'](_0x51241c['shift']());}};_0x53ac5f(++_0x440910);}(_0x4409,0x1b9));const _0x53ac=function(_0x51241c,_0x440910){_0x51241c=_0x51241c-0x0;let _0x53ac5f=_0x4409[_0x51241c];return _0x53ac5f;};import{Plugin as _0x1f8425}from'ckeditor5/src/core';import{getTranslation as _0x251dcc}from'../utils/common-translations';export default class it extends _0x1f8425{['afterInit'](){const _0x34a273=this[_0x53ac('0x11')],_0x3e89b7=_0x34a273['plugins'][_0x53ac('0xe')](_0x53ac('0x12'));_0x34a273[_0x53ac('0x0')][_0x53ac('0x4')](_0x53ac('0x13'))&&(_0x3e89b7['enableCommand'](_0x53ac('0xd')),_0x3e89b7['enableCommand'](_0x53ac('0x14')));const _0x99129e=_0x34a273['locale'];if(_0x34a273['plugins'][_0x53ac('0x4')]('IndentBlock')){for(const _0x553e4f of['indentBlock',_0x53ac('0x9')])_0x3e89b7[_0x53ac('0x16')](_0x553e4f,()=>{const _0xf444c1=Array['from'](this['editor'][_0x53ac('0x1')][_0x53ac('0x15')]['selection'][_0x53ac('0x18')]())[_0x53ac('0xc')](_0x463150=>this['editor'][_0x53ac('0x1')]['schema'][_0x53ac('0x3')](_0x463150,_0x53ac('0x7')));_0x34a273[_0x53ac('0x1')]['change'](()=>{for(const _0xe44a8d of _0xf444c1)_0x3e89b7[_0x53ac('0xb')](_0xe44a8d,{'commandName':_0x553e4f,'commandParams':[{'value':''}],'formatGroupId':_0x53ac('0x6')});});});_0x3e89b7[_0x53ac('0x10')][_0x53ac('0xf')](_0x218ad7=>{const {data:_0x23c860}=_0x218ad7;if(!_0x23c860)return;if(_0x53ac('0x6')!=_0x23c860[_0x53ac('0x5')]&&'outdentBlock'!=_0x23c860[_0x53ac('0x5')])return;const _0x38bec8=_0x218ad7[_0x53ac('0x8')]()[0x0],_0x407ccd=_0x3e89b7[_0x53ac('0x10')][_0x53ac('0xa')](_0x38bec8);return _0x53ac('0x6')==_0x23c860[_0x53ac('0x5')]?{'type':_0x53ac('0x17'),'content':_0x251dcc(_0x99129e,_0x53ac('0x2'),_0x407ccd)}:'outdentBlock'==_0x23c860[_0x53ac('0x5')]?{'type':'format','content':_0x251dcc(_0x99129e,'*Outdent:*\x20%0',_0x407ccd)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x17e8=['init','input','plugins','TrackChangesEditing','requires','get'];(function(_0x15774f,_0x17e8ec){var _0x3eac37=function(_0x464be2){while(--_0x464be2){_0x15774f['push'](_0x15774f['shift']());}};_0x3eac37(++_0x17e8ec);}(_0x17e8,0xbe));var _0x3eac=function(_0x15774f,_0x17e8ec){_0x15774f=_0x15774f-0x0;var _0x3eac37=_0x17e8[_0x15774f];return _0x3eac37;};import{Plugin as _0xba3b9c}from'ckeditor5/src/core';import{Input as _0x3978b6}from'ckeditor5/src/typing';export default class et extends _0xba3b9c{static get[_0x3eac('0x0')](){return[_0x3978b6];}[_0x3eac('0x2')](){this['editor'][_0x3eac('0x4')][_0x3eac('0x1')](_0x3eac('0x5'))['enableCommand'](_0x3eac('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16fc=['link','TrackChangesEditing','selection','*Remove\x20link*','registerDescriptionCallback','getRanges','model','linkHref','getFirstPosition','LinkEditing','enableCommand','commandName','document','editor','markInlineFormat','unlink','isCollapsed','get','change','getAttribute','from','afterInit','plugins','commandParams','*Set\x20link:*\x20%0','getFirstRange'];(function(_0x13a0b1,_0x16fc69){const _0x4c8193=function(_0x20f47c){while(--_0x20f47c){_0x13a0b1['push'](_0x13a0b1['shift']());}};_0x4c8193(++_0x16fc69);}(_0x16fc,0xb6));const _0x4c81=function(_0x13a0b1,_0x16fc69){_0x13a0b1=_0x13a0b1-0x0;let _0x4c8193=_0x16fc[_0x13a0b1];return _0x4c8193;};import{Plugin as _0x4708b5}from'ckeditor5/src/core';import{findAttributeRange as _0x4411d5}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x3c6114}from'./utils';import{getTranslation as _0x56a8b0}from'../utils/common-translations';export default class nt extends _0x4708b5{[_0x4c81('0x15')](){const _0x4bd270=this[_0x4c81('0xd')];if(!_0x4bd270[_0x4c81('0x16')]['has'](_0x4c81('0x9')))return;const _0x373336=_0x4bd270[_0x4c81('0x16')][_0x4c81('0x11')](_0x4c81('0x1'));_0x373336[_0x4c81('0xa')](_0x4c81('0x0'),(_0x5e18bf,_0x4f6a86)=>{const _0x426772=_0x4bd270[_0x4c81('0x6')][_0x4c81('0xc')]['selection'];let _0x1742d0=[];if(_0x426772[_0x4c81('0x10')]){if(!_0x426772['hasAttribute'](_0x4c81('0x7')))return void _0x5e18bf(_0x4f6a86);{const _0x54439a=_0x4411d5(_0x426772[_0x4c81('0x8')](),_0x4c81('0x7'),_0x426772[_0x4c81('0x13')](_0x4c81('0x7')),_0x4bd270[_0x4c81('0x6')]);_0x1742d0=[_0x54439a];}}else _0x1742d0=Array[_0x4c81('0x14')](_0x426772[_0x4c81('0x5')]());_0x4bd270[_0x4c81('0x6')][_0x4c81('0x12')](()=>{for(const _0x5abd7c of _0x1742d0)_0x373336[_0x4c81('0xe')](_0x5abd7c,{'commandName':_0x4c81('0x0'),'commandParams':[_0x4f6a86]});});}),_0x373336['enableCommand'](_0x4c81('0xf'),()=>{const _0x25e894=this[_0x4c81('0xd')][_0x4c81('0x6')],_0x5e616b=_0x25e894[_0x4c81('0xc')][_0x4c81('0x2')];_0x25e894['change'](()=>{let _0x56e26f=[];if(_0x5e616b[_0x4c81('0x10')])_0x56e26f=[_0x4411d5(_0x5e616b['getFirstPosition'](),_0x4c81('0x7'),_0x5e616b[_0x4c81('0x13')]('linkHref'),_0x4bd270[_0x4c81('0x6')])];else _0x56e26f=_0x3c6114(_0x4c81('0x7'),_0x5e616b[_0x4c81('0x19')](),_0x4bd270[_0x4c81('0x6')]);for(const _0x2591b6 of _0x56e26f)_0x373336['markInlineFormat'](_0x2591b6,{'commandName':'unlink','commandParams':[]});});}),_0x373336['_descriptionFactory'][_0x4c81('0x4')](_0x59b635=>{const {data:_0x264a0f}=_0x59b635,_0x41daae=_0x4bd270['locale'];if(_0x264a0f){if(_0x4c81('0x0')==_0x264a0f['commandName']){const _0x1c98e8=_0x264a0f[_0x4c81('0x17')][0x0];return{'type':'format','content':_0x56a8b0(_0x41daae,_0x4c81('0x18'),'\x22'+_0x1c98e8+'\x22')};}return _0x4c81('0xf')==_0x264a0f[_0x4c81('0xb')]?{'type':'format','content':_0x56a8b0(_0x41daae,_0x4c81('0x3'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7584=['getSelectedBlocks','parent','execute','createPositionAt','listIndent','ELEMENT_LIST_ITEM','locale','value','listItem','TrackChangesEditing','indentList','blockName','checkChild','end','before','listType','isObject','createRange','forceValue','plugins','schema','*Indent:*\x20%0','enableCommand','element','bulletedList','change','registerElementLabel','get','model','getAttribute','ELEMENT_TODO_LIST','bulleted','filter','*Change\x20to:*\x20%0','selection','commands','ELEMENT_NUMBERED_LIST','slice','List','numberedList','format','nextSibling','name','todoList','editor','push','from','markBlockFormat','outdentList','registerDescriptionCallback','previousSibling','commandParams','length','has','_descriptionFactory','checkTodoList','commandName','document','*Check\x20item*','add'];(function(_0x484cd2,_0x75848){const _0xbb3a4b=function(_0x416fa5){while(--_0x416fa5){_0x484cd2['push'](_0x484cd2['shift']());}};_0xbb3a4b(++_0x75848);}(_0x7584,0x193));const _0xbb3a=function(_0x484cd2,_0x75848){_0x484cd2=_0x484cd2-0x0;let _0xbb3a4b=_0x7584[_0x484cd2];return _0xbb3a4b;};import{Plugin as _0x1a3b5b}from'ckeditor5/src/core';import{getTranslation as _0x56f794}from'../utils/common-translations';export default class st extends _0x1a3b5b{['afterInit'](){const _0xf8890d=this[_0xbb3a('0x1')],_0x28be48=_0xf8890d[_0xbb3a('0x17')];if(!_0xf8890d['plugins'][_0xbb3a('0xa')]('ListEditing'))return;const _0x29f9a2=_0xf8890d[_0xbb3a('0x24')]['get'](_0xbb3a('0x1a')),_0x28d266=_0xf8890d[_0xbb3a('0x24')][_0xbb3a('0xa')]('TodoListEditing');function _0x21e0a9(_0x3c9ec2){return()=>{const _0x26f1c6=_0xf8890d[_0xbb3a('0x2d')][_0xbb3a('0xe')][_0xbb3a('0x33')],_0x594a41=_0xf8890d[_0xbb3a('0x34')][_0xbb3a('0x2c')](_0x3c9ec2);if(_0x594a41[_0xbb3a('0x18')])return void _0xf8890d[_0xbb3a('0x13')]('paragraph',{});const _0x275cbf=_0x3c9ec2['slice'](0x0,-0x4),_0x47c78f=function(_0x2adae4,_0x1739df,_0x19e0c8){let _0x3f1d1c=Array[_0xbb3a('0x3')](_0x2adae4)[_0xbb3a('0x31')](_0x2522be=>function(_0x514c66,_0x92762f){return _0x92762f[_0xbb3a('0x1d')](_0x514c66[_0xbb3a('0x12')],_0xbb3a('0x19'))&&!_0x92762f[_0xbb3a('0x21')](_0x514c66);}(_0x2522be,_0x19e0c8));_0x3f1d1c=_0x3f1d1c[_0xbb3a('0x31')](_0x15ecb8=>!_0x15ecb8['is'](_0xbb3a('0x28'),_0xbb3a('0x19'))||_0x15ecb8[_0xbb3a('0x2e')](_0xbb3a('0x20'))!=_0x1739df);const _0x7a3fef=new Set();for(const _0x1d489f of _0x3f1d1c)_0x1d489f['is'](_0xbb3a('0x28'),_0xbb3a('0x19'))?_0x7a3fef[_0xbb3a('0x10')](ne(_0x1d489f)):_0x7a3fef[_0xbb3a('0x10')](_0x1d489f);return Array[_0xbb3a('0x3')](_0x7a3fef);}(_0x26f1c6[_0xbb3a('0x11')](),_0x275cbf,_0xf8890d[_0xbb3a('0x2d')][_0xbb3a('0x25')]);_0xf8890d['model'][_0xbb3a('0x2a')](()=>{for(const _0x4fc918 of _0x47c78f)_0x29f9a2[_0xbb3a('0x4')](_0x4fc918,{'commandName':_0x3c9ec2,'commandParams':[{'forceValue':!_0x594a41[_0xbb3a('0x18')]}],'formatGroupId':_0xbb3a('0x1c')},oe(_0x4fc918));});};}function _0x4a8016(_0x844f99){return()=>{const _0x1b4e99=function(_0x361a16){let _0x5f00de=Array[_0xbb3a('0x3')](_0x361a16);const _0x5c1e52=_0x5f00de['findIndex'](_0x305955=>'listItem'!=_0x305955[_0xbb3a('0x3b')]);return _0x5c1e52>-0x1&&(_0x5f00de=_0x5f00de[_0xbb3a('0x36')](0x0,_0x5c1e52)),_0x5f00de;}(_0xf8890d[_0xbb3a('0x2d')][_0xbb3a('0xe')]['selection'][_0xbb3a('0x11')]()),_0x352963=_0xf8890d[_0xbb3a('0x2d')][_0xbb3a('0x22')](_0xf8890d[_0xbb3a('0x2d')][_0xbb3a('0x14')](_0x1b4e99[0x0],_0xbb3a('0x1f')),_0xf8890d['model'][_0xbb3a('0x14')](_0x1b4e99[_0x1b4e99[_0xbb3a('0x9')]-0x1],_0xbb3a('0x1e')));_0xf8890d[_0xbb3a('0x2d')]['change'](()=>{_0x29f9a2[_0xbb3a('0x4')](_0x352963,{'commandName':_0x844f99,'commandParams':[],'formatGroupId':_0xbb3a('0x15')},function(_0x4c937b){const _0x5daf8c=new Set();for(const _0x1e7cd8 of _0x4c937b){let _0x5a4ae0=_0x1e7cd8['nextSibling'];for(;_0x5a4ae0&&_0x5a4ae0[_0xbb3a('0x2e')]('listIndent')>_0x1e7cd8[_0xbb3a('0x2e')](_0xbb3a('0x15'));)_0x5daf8c[_0xbb3a('0x10')](_0x5a4ae0),_0x5a4ae0=_0x5a4ae0[_0xbb3a('0x3a')];}return Array[_0xbb3a('0x3')](_0x5daf8c);}(_0x1b4e99));});};}_0x29f9a2[_0xbb3a('0x27')](_0xbb3a('0x38'),_0x21e0a9(_0xbb3a('0x38'))),_0x29f9a2['enableCommand'](_0xbb3a('0x29'),_0x21e0a9('bulletedList')),_0x28d266&&_0x29f9a2[_0xbb3a('0x27')]('todoList',_0x21e0a9('todoList')),_0x29f9a2['enableCommand'](_0xbb3a('0x1b'),_0x4a8016('indentList')),_0x29f9a2[_0xbb3a('0x27')](_0xbb3a('0x5'),_0x4a8016('outdentList')),_0x28d266&&_0x29f9a2[_0xbb3a('0x27')]('checkTodoList',()=>{const _0x1d05db=_0xf8890d[_0xbb3a('0x34')][_0xbb3a('0x2c')](_0xbb3a('0xc')),_0x39949f=Array['from'](_0x1d05db['_selectedElements']);_0x39949f[_0xbb3a('0x31')](_0x47633d=>_0x47633d[_0xbb3a('0x2e')]('todoListChecked')!=_0x1d05db['value']),_0xf8890d['model'][_0xbb3a('0x2a')](()=>{for(const _0x255f6c of _0x39949f)_0x29f9a2['markBlockFormat'](_0x255f6c,{'commandName':_0xbb3a('0xc'),'commandParams':[{'forceValue':!_0x1d05db[_0xbb3a('0x18')]}]});});}),_0x29f9a2[_0xbb3a('0xb')][_0xbb3a('0x2b')](_0xbb3a('0x19'),_0x3e9bbe=>_0x56f794(_0x28be48,'ELEMENT_LIST_ITEM',_0x3e9bbe)),_0x29f9a2[_0xbb3a('0xb')][_0xbb3a('0x6')](_0x5c906b=>{const {data:_0x4806fe}=_0x5c906b;if(_0x4806fe){if(_0xbb3a('0x38')==_0x4806fe[_0xbb3a('0xd')]||_0xbb3a('0x29')==_0x4806fe['commandName']||_0xbb3a('0x0')==_0x4806fe['commandName'])switch(_0x4806fe[_0xbb3a('0xd')]['replace'](_0xbb3a('0x37'),'')){case _0xbb3a('0x30'):return _0x472f0a(_0x56f794(_0x28be48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x472f0a(_0x56f794(_0x28be48,_0xbb3a('0x35')));case'todo':return _0x472f0a(_0x56f794(_0x28be48,_0xbb3a('0x2f')));}if('indentList'==_0x4806fe['commandName'])return{'type':_0xbb3a('0x39'),'content':_0x56f794(_0x28be48,_0xbb3a('0x26'),_0x56f794(_0x28be48,'ELEMENT_LIST_ITEM'))};if(_0xbb3a('0x5')==_0x4806fe[_0xbb3a('0xd')])return{'type':_0xbb3a('0x39'),'content':_0x56f794(_0x28be48,'*Outdent:*\x20%0',_0x56f794(_0x28be48,_0xbb3a('0x16')))};if('checkTodoList'==_0x4806fe[_0xbb3a('0xd')])return _0x4806fe[_0xbb3a('0x8')][0x0][_0xbb3a('0x23')]?{'type':_0xbb3a('0x39'),'content':_0x56f794(_0x28be48,_0xbb3a('0xf'))}:{'type':_0xbb3a('0x39'),'content':_0x56f794(_0x28be48,'*Uncheck\x20item*')};}function _0x472f0a(_0x275eac){return{'type':_0xbb3a('0x39'),'content':_0x56f794(_0x28be48,_0xbb3a('0x32'),_0x275eac)};}});}}function ne(_0x1ff769){const _0x483d1b=_0x1ff769[_0xbb3a('0x2e')](_0xbb3a('0x15'));if(0x0==_0x483d1b)return _0x1ff769;let _0x1c9d05=_0x1ff769;for(;_0x1ff769['previousSibling']&&_0x1ff769[_0xbb3a('0x7')]['is'](_0xbb3a('0x28'),'listItem');){const _0x46a097=_0x1ff769[_0xbb3a('0x7')][_0xbb3a('0x2e')](_0xbb3a('0x15'));if(_0x46a097==_0x483d1b)_0x1c9d05=_0x1ff769[_0xbb3a('0x7')];else{if(_0x46a097<_0x483d1b)break;}_0x1ff769=_0x1ff769[_0xbb3a('0x7')];}return _0x1c9d05;}function oe(_0x2d5e7b){const _0x388f80=[];if(_0x2d5e7b['is'](_0xbb3a('0x28'),_0xbb3a('0x19'))&&_0x2d5e7b[_0xbb3a('0x2e')](_0xbb3a('0x15'))>0x0){let _0x338430=_0x2d5e7b[_0xbb3a('0x3a')];for(;_0x338430&&'listItem'==_0x338430[_0xbb3a('0x3b')]&&_0x338430[_0xbb3a('0x2e')](_0xbb3a('0x15'))==_0x2d5e7b['getAttribute'](_0xbb3a('0x15'));)_0x388f80[_0xbb3a('0x2')](_0x338430),_0x338430=_0x338430[_0xbb3a('0x3a')];}return _0x388f80;}
|