@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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/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 _0x2f83=['get','fontColor','registerDescriptionCallback','fontBackgroundColor.colors','*Reset\x20font\x20family*','*Set\x20font\x20color:*\x20%0','fontFamily','*Reset\x20font\x20size*','plugins','fontSize','fontBackgroundColor','has','selection','*Set\x20font\x20background\x20color:*\x20%0','label','change','editor','_enableCommand','markInlineFormat','FontColorEditing','FontBackgroundColorEditing','TrackChangesEditing','commandParams','from','config','*Set\x20font\x20family:*\x20%0','model','value','_descriptionFactory','FontFamilyEditing','enableCommand','trim','commandName','isCollapsed','find','*Reset\x20font\x20background\x20color*','toLowerCase','afterInit','format'];(function(_0x7c55f6,_0x2f83e5){const _0x4d184d=function(_0x32a6ab){while(--_0x32a6ab){_0x7c55f6['push'](_0x7c55f6['shift']());}};_0x4d184d(++_0x2f83e5);}(_0x2f83,0x84));const _0x4d18=function(_0x7c55f6,_0x2f83e5){_0x7c55f6=_0x7c55f6-0x0;let _0x4d184d=_0x2f83[_0x7c55f6];return _0x4d184d;};import{Plugin as _0x1c9faa}from'ckeditor5/src/core';import{normalizeColorOptions as _0x599cbf}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x4dbddd}from'./utils';import{getTranslation as _0x519891}from'../utils/common-translations';const eo=[{'pluginName':'FontSizeEditing','commandName':_0x4d18('0x21')},{'pluginName':_0x4d18('0xe'),'commandName':'fontFamily'},{'pluginName':_0x4d18('0x4'),'commandName':'fontColor'},{'pluginName':_0x4d18('0x5'),'commandName':_0x4d18('0x22')}];export default class W extends _0x1c9faa{[_0x4d18('0x16')](){const _0x95dbc9=this[_0x4d18('0x1')]['locale'];for(const {pluginName:_0x3fe3d4,commandName:_0x1cea84}of eo)this[_0x4d18('0x1')][_0x4d18('0x20')][_0x4d18('0x23')](_0x3fe3d4)&&this['_enableCommand'](_0x1cea84);this[_0x4d18('0x1')][_0x4d18('0x20')]['get']('TrackChangesEditing')[_0x4d18('0xd')][_0x4d18('0x1a')](_0x8486a5=>{const _0xc3584=_0x95dbc9['t'],{data:_0x2f05a6}=_0x8486a5;if(null!=_0x2f05a6){if(_0x4d18('0x21')==_0x2f05a6[_0x4d18('0x11')]){const _0xfde765=_0x2f05a6['commandParams'][0x0]['value'];if(_0xfde765){const _0x3f7d45=_0xc3584(this[_0x4d18('0x1')][_0x4d18('0x20')][_0x4d18('0x18')]('FontSize')['normalizeSizeOptions'](this[_0x4d18('0x1')][_0x4d18('0x9')]['get']('fontSize.options'))['find'](_0x29715e=>_0x29715e[_0x4d18('0xb')]==_0xfde765)['title'])[_0x4d18('0x15')]();return{'type':_0x4d18('0x17'),'content':_0x519891(_0x95dbc9,'*Set\x20font\x20size:*\x20%0',_0x3f7d45)};}return{'type':_0x4d18('0x17'),'content':_0x519891(_0x95dbc9,_0x4d18('0x1f'))};}if(_0x4d18('0x1e')==_0x2f05a6[_0x4d18('0x11')]){const _0x2b4436=_0x2f05a6['commandParams'][0x0][_0x4d18('0xc')];return _0x2b4436?{'type':'format','content':_0x519891(_0x95dbc9,_0x4d18('0xa'),_0x2b4436)}:{'type':_0x4d18('0x17'),'content':_0x519891(_0x95dbc9,_0x4d18('0x1c'))};}if(_0x4d18('0x19')==_0x2f05a6[_0x4d18('0x11')]){const _0x447344=_0x2f05a6[_0x4d18('0x7')][0x0]['value'];if(_0x447344){const _0x59aca2=_0x599cbf(this[_0x4d18('0x1')]['config'][_0x4d18('0x18')]('fontColor.colors'))[_0x4d18('0x13')](_0x359f6a=>_0x359f6a[_0x4d18('0xb')]==_0x447344);let _0x289351=_0x447344,_0x93dcb5='';return _0x59aca2&&(_0x289351=_0x59aca2[_0x4d18('0x26')],_0x93dcb5=_0xc3584(_0x289351)['toLowerCase']()),{'type':_0x4d18('0x17'),'content':_0x519891(_0x95dbc9,_0x4d18('0x1d'),_0x93dcb5)[_0x4d18('0x10')](),'color':{'value':_0x447344,'title':_0x93dcb5||_0x289351}};}return{'type':'format','content':_0x519891(_0x95dbc9,'*Reset\x20font\x20color*')};}if(_0x4d18('0x22')==_0x2f05a6[_0x4d18('0x11')]){const _0x2f80ff=_0x2f05a6[_0x4d18('0x7')][0x0][_0x4d18('0xc')];if(_0x2f80ff){const _0x2bc1b7=_0x599cbf(this[_0x4d18('0x1')][_0x4d18('0x9')][_0x4d18('0x18')](_0x4d18('0x1b')))[_0x4d18('0x13')](_0x1dc51f=>_0x1dc51f[_0x4d18('0xb')]==_0x2f80ff);let _0x112cd5=_0x2f80ff,_0x1c0961='';return _0x2bc1b7&&(_0x112cd5=_0x2bc1b7[_0x4d18('0x26')],_0x1c0961=_0xc3584(_0x112cd5)[_0x4d18('0x15')]()),{'type':_0x4d18('0x17'),'content':_0x519891(_0x95dbc9,_0x4d18('0x25'),_0x1c0961)[_0x4d18('0x10')](),'color':{'value':_0x2f80ff,'title':_0x1c0961||_0x112cd5}};}return{'type':'format','content':_0x519891(_0x95dbc9,_0x4d18('0x14'))};}}});}[_0x4d18('0x2')](_0x2b8fb0){const _0x3767ab=this[_0x4d18('0x1')];_0x3767ab[_0x4d18('0x20')][_0x4d18('0x18')](_0x4d18('0x6'))[_0x4d18('0xf')](_0x2b8fb0,(_0xf308a9,_0x220417={})=>{const _0x22ca31=_0x3767ab['model']['document'][_0x4d18('0x24')],_0x162adb=_0x220417[_0x4d18('0xc')];_0x22ca31[_0x4d18('0x12')]?_0xf308a9(_0x220417):_0x3767ab[_0x4d18('0xb')][_0x4d18('0x0')](()=>{const _0x35c044=Array[_0x4d18('0x8')](_0x22ca31['getRanges']());for(const _0xce5ba4 of _0x35c044){const _0x56638a=_0x162adb?[_0xce5ba4]:_0x4dbddd(_0x2b8fb0,_0xce5ba4,_0x3767ab[_0x4d18('0xb')]);for(const _0x25230d of _0x56638a)_0x3767ab[_0x4d18('0x20')][_0x4d18('0x18')](_0x4d18('0x6'))[_0x4d18('0x3')](_0x25230d,{'commandName':_0x2b8fb0,'commandParams':[{'value':_0x162adb}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38b9=['afterInit','find','commandParams','schema','editor','TrackChangesEditing','title','_descriptionFactory','locale','get','from','getFirstPosition','boolean','change','model','charAt','split','copyFormat','length','toLowerCase','keys','normalizeSizeOptions','slice','fontColor.colors','commands','word','getLastPosition','modifySelection','getItems','enableCommand','config','document','commandName','format','forward','plugins','join','isBlock','registerDescriptionCallback','label','isFormatting','pasteFormat','*Remove\x20all\x20formatting*','fontBackgroundColor','getRanges','getSelectedBlocks'];(function(_0x16b653,_0x38b939){const _0x4015a7=function(_0x5a3241){while(--_0x5a3241){_0x16b653['push'](_0x16b653['shift']());}};_0x4015a7(++_0x38b939);}(_0x38b9,0xc3));const _0x4015=function(_0x16b653,_0x38b939){_0x16b653=_0x16b653-0x0;let _0x4015a7=_0x38b9[_0x16b653];return _0x4015a7;};import{Plugin as _0x33e7f8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x51caf1}from'ckeditor5/src/ui';import{first as _0x11237b}from'ckeditor5/src/utils';import{getTranslation as _0x31491e}from'../utils/common-translations';export default class J extends _0x33e7f8{[_0x4015('0x23')](){const _0x410a06=this[_0x4015('0x27')],_0x7626cf=_0x410a06['model'],_0x78ffc6=_0x7626cf[_0x4015('0x14')]['selection'],_0x3ba242=_0x410a06[_0x4015('0x18')][_0x4015('0x2c')](_0x4015('0x28')),_0x4ea158=_0x410a06[_0x4015('0x2b')],_0x2a855b=_0x410a06[_0x4015('0xd')][_0x4015('0x2c')]('copyFormat'),_0x3ee418=_0x410a06[_0x4015('0xd')][_0x4015('0x2c')](_0x4015('0x1e'));_0x2a855b&&_0x3ee418&&(_0x3ba242[_0x4015('0x12')](_0x4015('0x1e'),(_0x28b8db,_0x3cb908={})=>{const _0x33043f=_0x3cb908;_0x7626cf[_0x4015('0x2')](()=>{const _0x20405c=Array[_0x4015('0x2d')](_0x78ffc6[_0x4015('0x21')]()),_0x4aab5e=_0x78ffc6['isCollapsed']?[io(_0x7626cf,_0x78ffc6)]:_0x20405c,_0xca44c2=!!_0x11237b(function*(_0x355d41,_0xbc76d4){const _0x51f49a=_0x4f4640=>!!_0x11237b(function*(_0x13b94f,_0x38a47e){for(const [_0x4e461b]of _0x13b94f['getAttributes']()){const _0xf0b396=_0x38a47e['getAttributeProperties'](_0x4e461b);_0xf0b396&&_0xf0b396[_0x4015('0x1d')]&&(yield _0x4e461b);}}(_0x4f4640,_0xbc76d4));for(const _0x4e1658 of _0x355d41[_0x4015('0x21')]())for(const _0x2bd2e of _0x4e1658[_0x4015('0x11')]())!_0xbc76d4[_0x4015('0x1a')](_0x2bd2e)&&_0x51f49a(_0x2bd2e)&&(yield _0x2bd2e);for(const _0x9a8b58 of _0x355d41[_0x4015('0x22')]())_0x51f49a(_0x9a8b58)&&(yield _0x9a8b58);_0x51f49a(_0x355d41)&&(yield _0x355d41);}(_0x78ffc6,_0x7626cf[_0x4015('0x26')]));if(_0xca44c2||0x0!==Object[_0x4015('0x9')](_0x33043f)[_0x4015('0x7')])for(const _0x35550c of _0x4aab5e)_0x3ba242['markInlineFormat'](_0x35550c,{'commandName':_0x4015('0x1e'),'commandParams':[_0x33043f]});});}),_0x3ba242[_0x4015('0x2a')][_0x4015('0x1b')](_0x54dfdd=>{const {data:_0x3e7071}=_0x54dfdd;if(_0x3e7071&&_0x4015('0x1e')===_0x3e7071[_0x4015('0x15')]){const _0x231f53=[],_0x3024f1=_0x3e7071[_0x4015('0x25')][0x0];for(const [_0x2fe5ca,_0x4d0c35]of Object['entries'](_0x3024f1))_0x231f53['push'](so(_0x410a06,_0x2fe5ca,_0x4d0c35));return _0x231f53['length']?{'type':'format','content':_0x31491e(_0x4ea158,'*Set\x20format\x20to:*\x20%0',_0x231f53['join'](',\x20'))}:{'type':_0x4015('0x16'),'content':_0x31491e(_0x4ea158,_0x4015('0x1f'))};}}),_0x410a06[_0x4015('0x18')][_0x4015('0x2c')](_0x4015('0x28'))[_0x4015('0x12')](_0x4015('0x6')));}}function io(_0x2cdbcc,_0x5b03f8){const _0x416904=_0x2cdbcc['createSelection'](_0x5b03f8);_0x2cdbcc[_0x4015('0x10')](_0x416904,{'unit':_0x4015('0xe'),'direction':'backward'});const _0x5ce8c9=_0x416904[_0x4015('0x0')]();_0x2cdbcc[_0x4015('0x10')](_0x416904,{'unit':_0x4015('0xe'),'direction':_0x4015('0x17')});const _0x3ab17e=_0x416904[_0x4015('0xf')]();return _0x2cdbcc['createRange'](_0x5ce8c9,_0x3ab17e);}function so(_0x5ca77f,_0x15287e,_0x18e678){const _0x384bb6=_0x5ca77f[_0x4015('0x2b')]['t'],_0x103430=_0x15287e[_0x4015('0x5')](/(?=[A-Z])/)[_0x4015('0x19')]('\x20'),_0x156dce=_0x384bb6(_0x103430[_0x4015('0x4')](0x0)['toUpperCase']()+_0x103430[_0x4015('0xb')](0x1))[_0x4015('0x8')]();if(_0x4015('0x1')==typeof _0x18e678)return _0x156dce;if('fontColor'===_0x15287e||_0x4015('0x20')===_0x15287e){const _0xe435ee=_0x51caf1(_0x5ca77f[_0x4015('0x13')][_0x4015('0x2c')](_0x4015('0xc')))[_0x4015('0x24')](_0x5c7fdc=>_0x5c7fdc[_0x4015('0x3')]==_0x18e678);return _0x156dce+'\x20('+(_0xe435ee?_0x384bb6(_0xe435ee[_0x4015('0x1c')])[_0x4015('0x8')]():_0x18e678)+')';}if('fontSize'===_0x15287e&&isNaN(parseFloat(_0x18e678))){const _0x695795=_0x5ca77f[_0x4015('0x18')]['get']('FontSize')[_0x4015('0xa')](_0x5ca77f[_0x4015('0x13')][_0x4015('0x2c')]('fontSize.options'))['find'](_0xf18859=>_0xf18859[_0x4015('0x3')]==_0x18e678);return _0x156dce+'\x20('+(_0x695795?_0x384bb6(_0x695795[_0x4015('0x29')])['toLowerCase']():_0x18e678)+')';}return _0x156dce+'\x20('+_0x18e678+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x728d=['*Change\x20to:*\x20%0','editor','format','value','has','registerDescriptionCallback','schema','registerElementLabel','title','ELEMENT_HEADING','match','parent','ELEMENT_HEADING_CUSTOM','commandParams','afterInit','locale','heading','filter','checkChild','_descriptionFactory','find','plugins','commandName','model','document','isObject','get','change','HeadingEditing'];(function(_0x5f4a63,_0x728df8){const _0x359ce4=function(_0x1dfe0a){while(--_0x1dfe0a){_0x5f4a63['push'](_0x5f4a63['shift']());}};_0x359ce4(++_0x728df8);}(_0x728d,0x1f4));const _0x359c=function(_0x5f4a63,_0x728df8){_0x5f4a63=_0x5f4a63-0x0;let _0x359ce4=_0x728d[_0x5f4a63];return _0x359ce4;};import{Plugin as _0x3fdd82}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2abc29}from'./utils';import{getTranslation as _0x441ad6}from'../utils/common-translations';export default class K extends _0x3fdd82{[_0x359c('0x7')](){const _0x35b25c=this[_0x359c('0x17')],_0x3550c0=_0x35b25c[_0x359c('0x8')],_0x19b12d=_0x35b25c['config'][_0x359c('0x13')]('heading.options');if(!_0x35b25c[_0x359c('0xe')][_0x359c('0x1a')](_0x359c('0x15')))return;const _0x2a29ef=_0x35b25c[_0x359c('0xe')]['get']('TrackChangesEditing');_0x2a29ef['enableCommand'](_0x359c('0x9'),(_0x140982,_0x1803da)=>{const _0x4931d7=_0x1803da[_0x359c('0x19')],_0x2f8c8e=Array['from'](this[_0x359c('0x17')]['model'][_0x359c('0x11')]['selection']['getSelectedBlocks']())[_0x359c('0xa')](_0x3eea07=>function(_0x2fe068,_0x59d65f,_0x23b416){return _0x23b416[_0x359c('0xb')](_0x2fe068[_0x359c('0x4')],_0x59d65f)&&!_0x23b416[_0x359c('0x12')](_0x2fe068)&&_0x2fe068['name']!=_0x59d65f;}(_0x3eea07,_0x4931d7,this['editor']['model'][_0x359c('0x1c')]));_0x35b25c[_0x359c('0x10')][_0x359c('0x14')](()=>{for(const _0x330ec0 of _0x2f8c8e)_0x2a29ef['markBlockFormat'](_0x330ec0,{'commandName':_0x359c('0x9'),'commandParams':[_0x1803da],'formatGroupId':'blockName'},_0x2abc29(_0x330ec0));});});for(const _0x199f11 of _0x19b12d)'paragraph'!=_0x199f11[_0x359c('0x10')]&&_0x2a29ef[_0x359c('0xc')][_0x359c('0x0')](_0x199f11[_0x359c('0x10')],_0x1332c9=>{const _0x56eead=nn(_0x199f11[_0x359c('0x10')]);return null!==_0x56eead?_0x211991(_0x1332c9,_0x56eead):_0x128060(_0x1332c9,_0x199f11[_0x359c('0x1')]);});function _0x211991(_0x215329,_0x2ab4e3){return _0x441ad6(_0x3550c0,_0x359c('0x2'),[_0x215329,_0x2ab4e3]);}function _0x128060(_0x34cf11,_0x4db779){return _0x441ad6(_0x3550c0,_0x359c('0x5'),[_0x34cf11,_0x4db779]);}_0x2a29ef['_descriptionFactory'][_0x359c('0x1b')](_0x26e9ac=>{const {type:_0x1c6cc5,data:_0x49bf8b}=_0x26e9ac;if('formatBlock'==_0x1c6cc5&&_0x49bf8b&&_0x359c('0x9')==_0x49bf8b[_0x359c('0xf')]){const _0x5a03ba=_0x49bf8b[_0x359c('0x6')][0x0]['value'],_0x4bc043=nn(_0x5a03ba);if(null!==_0x4bc043)return{'type':_0x359c('0x18'),'content':_0x441ad6(_0x3550c0,_0x359c('0x16'),_0x211991(0x1,_0x4bc043))};const _0x318d87=_0x19b12d[_0x359c('0xd')](_0x486b39=>_0x486b39[_0x359c('0x10')]===_0x5a03ba)[_0x359c('0x1')];return{'type':'format','content':_0x441ad6(_0x3550c0,_0x359c('0x16'),_0x128060(0x1,_0x318d87))};}});}}function nn(_0x2f76cf){const _0x2a6ae2=_0x2f76cf[_0x359c('0x3')](/^heading(\d+)$/);return _0x2a6ae2?_0x2a6ae2[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4264=['FORMAT_HIGHLIGHT','get','*Set\x20highlight:*\x20%0','toLowerCase','afterInit','getAttribute','value','highlight.options','plugins','enableCommand','find','backward','HighlightEditing','getLastMatchingPosition','selection','title','formatInline','getFirstPosition','TrackChangesEditing','registerDescriptionCallback','locale','markInlineFormat','commandParams','format','document','commandName','getRanges','*Remove\x20highlight*','hasAttribute','model','isCollapsed','highlight','config','has','item'];(function(_0x15a91e,_0x426457){const _0x1334de=function(_0x3f5ee0){while(--_0x3f5ee0){_0x15a91e['push'](_0x15a91e['shift']());}};_0x1334de(++_0x426457);}(_0x4264,0xbf));const _0x1334=function(_0x15a91e,_0x426457){_0x15a91e=_0x15a91e-0x0;let _0x1334de=_0x4264[_0x15a91e];return _0x1334de;};import{Plugin as _0x39c7e9}from'ckeditor5/src/core';import{getTranslation as _0x1aaa66}from'../utils/common-translations';import{getRangesWithAttribute as _0x2f997b}from'./utils';export default class Q extends _0x39c7e9{[_0x1334('0x17')](){const _0xb1c48b=this['editor'];if(!_0xb1c48b[_0x1334('0x1b')][_0x1334('0x11')](_0x1334('0x1f')))return;const _0x5e7069=_0xb1c48b[_0x1334('0x1b')][_0x1334('0x14')](_0x1334('0x2'));_0x5e7069[_0x1334('0x1c')](_0x1334('0xf'),(_0x2ecf68,_0x13c4ab={})=>{const _0x4dcbe9=_0xb1c48b[_0x1334('0xd')][_0x1334('0x8')][_0x1334('0x21')],_0x4e1c1c=_0x4dcbe9['getAttribute'](_0x1334('0xf'));let _0x2f4c0d=_0x13c4ab['value'],_0x25d241=[];if(_0x4dcbe9[_0x1334('0xe')]){const _0x4519a3=_0x4dcbe9[_0x1334('0x1')]();if(!_0x4dcbe9[_0x1334('0xc')](_0x1334('0xf')))return void _0x2ecf68(_0x13c4ab);{const _0x2b3261=_0x55e0b2=>_0x55e0b2[_0x1334('0x12')][_0x1334('0x18')](_0x1334('0xf'))===_0x4e1c1c,_0x191eea=_0x4519a3['getLastMatchingPosition'](_0x2b3261,{'direction':_0x1334('0x1e')}),_0x5bdb0c=_0x4519a3[_0x1334('0x20')](_0x2b3261);_0x25d241=[_0xb1c48b[_0x1334('0xd')]['createRange'](_0x191eea,_0x5bdb0c)],_0x2f4c0d==_0x4e1c1c&&(_0x2f4c0d=null);}}else for(const _0x156784 of _0x4dcbe9[_0x1334('0xa')]())_0x2f4c0d?_0x25d241['push'](_0x156784):_0x25d241['push'](..._0x2f997b('highlight',_0x156784,_0xb1c48b['model']));_0xb1c48b[_0x1334('0xd')]['change'](()=>{for(const _0x28bb69 of _0x25d241)_0x5e7069[_0x1334('0x5')](_0x28bb69,{'commandName':_0x1334('0xf'),'commandParams':[{'value':_0x2f4c0d}]});});});const _0x27cf10=_0xb1c48b[_0x1334('0x4')];_0x5e7069['_descriptionFactory'][_0x1334('0x3')](_0x149f05=>{const {type:_0x5d30e7,data:_0x1cd5ba}=_0x149f05;if(_0x1334('0x0')==_0x5d30e7&&_0x1cd5ba&&_0x1334('0xf')==_0x1cd5ba[_0x1334('0x9')]){const _0x25ce12=_0x27cf10['t'],_0x1d6c70=_0x1cd5ba[_0x1334('0x6')][0x0][_0x1334('0x19')];if(_0x1d6c70){const _0x5d0fb5=_0xb1c48b[_0x1334('0x10')][_0x1334('0x14')](_0x1334('0x1a'))[_0x1334('0x1d')](_0x258b1c=>_0x258b1c['model']==_0x1d6c70),_0x37d98b=_0x25ce12(_0x5d0fb5[_0x1334('0x22')])[_0x1334('0x16')]();return{'type':_0x1334('0x7'),'content':_0x1aaa66(_0x27cf10,_0x1334('0x15'),_0x37d98b),'color':{'value':_0x5d0fb5['color'],'title':_0x5d0fb5[_0x1334('0x22')]}};}return{'type':_0x1334('0x7'),'content':_0x1aaa66(_0x27cf10,_0x1334('0xb'),_0x1aaa66(_0x27cf10,_0x1334('0x13')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcabf=['conversion','ELEMENT_HORIZONTAL_LINE','_descriptionFactory','createContainerElement','has','plugins','showSuggestionHighlights','enableCommand','horizontalLine','ck-horizontal-line','addClass','HorizontalLineEditing','dataDowncast','editor','createEmptyElement','TrackChangesEditing','afterInit','for','get'];(function(_0x2efc8c,_0xcabf0c){const _0x5ee7fa=function(_0x27d091){while(--_0x27d091){_0x2efc8c['push'](_0x2efc8c['shift']());}};_0x5ee7fa(++_0xcabf0c);}(_0xcabf,0x129));const _0x5ee7=function(_0x2efc8c,_0xcabf0c){_0x2efc8c=_0x2efc8c-0x0;let _0x5ee7fa=_0xcabf[_0x2efc8c];return _0x5ee7fa;};import{Plugin as _0x215a9f}from'ckeditor5/src/core';import{getTranslation as _0xf903a2}from'../utils/common-translations';export default class V extends _0x215a9f{[_0x5ee7('0x4')](){const _0x47a4ff=this[_0x5ee7('0x1')];if(!_0x47a4ff[_0x5ee7('0xc')][_0x5ee7('0xb')](_0x5ee7('0x12')))return;_0x47a4ff['plugins'][_0x5ee7('0x6')]('TrackChangesEditing')[_0x5ee7('0xe')](_0x5ee7('0xf'));const _0x2c4d53=_0x47a4ff['plugins'][_0x5ee7('0x6')](_0x5ee7('0x3')),_0x5cf321=_0x47a4ff['locale'];_0x2c4d53[_0x5ee7('0x9')]['registerElementLabel']('horizontalLine',_0x54ac47=>_0xf903a2(_0x5cf321,_0x5ee7('0x8'),_0x54ac47)),_0x47a4ff[_0x5ee7('0x7')][_0x5ee7('0x5')](_0x5ee7('0x0'))['elementToStructure']({'model':_0x5ee7('0xf'),'view':(_0x314315,{writer:_0x40859f,options:_0x45ba7f})=>{if(!_0x45ba7f[_0x5ee7('0xd')])return null;const _0x18dd00=_0x40859f[_0x5ee7('0xa')]('div'),_0xc8bd3b=_0x40859f[_0x5ee7('0x2')]('hr');return _0x40859f[_0x5ee7('0x11')](_0x5ee7('0x10'),_0x18dd00),_0x40859f['insert'](_0x40859f['createPositionAt'](_0x18dd00,0x0),_0xc8bd3b),_0x18dd00;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2eb8=['_descriptionFactory','getSelectedElement','model','view','element','has','get','afterInit','getAttribute','document','registerElementLabel','commandName','plugins','rawHtmlApi','selection','HtmlEmbed','getCustomProperty','cancel','change','editor','ELEMENT_HTML_EMBED','TrackChangesEditing','format','rawHtml','htmlEmbed'];(function(_0x3ce7bd,_0x2eb864){const _0x3894ef=function(_0x1ccb11){while(--_0x1ccb11){_0x3ce7bd['push'](_0x3ce7bd['shift']());}};_0x3894ef(++_0x2eb864);}(_0x2eb8,0x164));const _0x3894=function(_0x3ce7bd,_0x2eb864){_0x3ce7bd=_0x3ce7bd-0x0;let _0x3894ef=_0x2eb8[_0x3ce7bd];return _0x3894ef;};import{Plugin as _0x3476fe}from'ckeditor5/src/core';import{getTranslation as _0x18ad70}from'../utils/common-translations';export default class X extends _0x3476fe{[_0x3894('0x1')](){const _0x7cdd89=this[_0x3894('0xd')];if(!_0x7cdd89[_0x3894('0x6')][_0x3894('0x18')](_0x3894('0x9')))return;const _0x2d9180=_0x7cdd89['plugins'][_0x3894('0x0')](_0x3894('0xf')),_0xce6856=_0x7cdd89['locale'],_0x5c7c9b=_0x7cdd89['editing'][_0x3894('0x16')][_0x3894('0x3')]['selection'];_0x2d9180[_0x3894('0x13')][_0x3894('0x4')](_0x3894('0x11'),_0x52e8d8=>_0x18ad70(_0xce6856,'ELEMENT_HTML_EMBED',_0x52e8d8)),_0x7cdd89['plugins'][_0x3894('0x0')](_0x3894('0xf'))['enableCommand'](_0x3894('0x12'),(_0x3deed4,_0x520388)=>{const _0x3d559a=_0x7cdd89[_0x3894('0x15')],_0x33c3c7=_0x3d559a[_0x3894('0x3')][_0x3894('0x8')];_0x3d559a[_0x3894('0xc')](()=>{const _0x4b0f6c=function(_0x148344){const _0x30a139=_0x148344[_0x3894('0x14')]();if(_0x30a139&&_0x30a139['is'](_0x3894('0x17'),_0x3894('0x11')))return _0x148344[_0x3894('0x14')]();return null;}(_0x33c3c7);if(!_0x4b0f6c)return void _0x3deed4(null);const _0x291d33=_0x4b0f6c[_0x3894('0x2')]('value')||'';if(void 0x0===_0x520388)return;if(_0x520388===_0x291d33)return;_0x2d9180['markBlockFormat'](_0x4b0f6c,{'commandName':_0x3894('0x12'),'commandParams':[_0x520388]}),_0x5c7c9b[_0x3894('0x14')]()[_0x3894('0xa')](_0x3894('0x7'))[_0x3894('0xb')]();});}),_0x2d9180[_0x3894('0x13')]['registerDescriptionCallback'](_0x890044=>{const {data:_0x598417}=_0x890044;if(_0x598417&&_0x3894('0x12')==_0x598417[_0x3894('0x5')]){const _0x5c9126=_0x18ad70(_0xce6856,_0x3894('0xe'));return{'type':_0x3894('0x10'),'content':_0x18ad70(_0xce6856,'*Change\x20%0\x20content*',_0x5c9126)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3853=['registerPostFixer','editor','imageTypeBlock','toggleImageCaption','toPrevious','ImageStyleEditing','refresh','element','schema','nodeBefore','registerCustomCallback','isInContent','markBlockFormat','imageStylePreApply','getFirstRange','isEqual','document','_splitMarkerName','selection','toNext','chain','formatBlock','formatInline','getContainedElement','newRange','removeObject','getNearestSelectionRange','next','suggestion','imageStyle','caption','isOwn','ImageTextAlternativeEditing','accept','normalizedStyles','hasAttribute','Inline\x20image\x20to\x20block\x20image','Users','side','ImageResize','insertImage','isBlockImage','*Format:*\x20%0','commandName','imageCaption','join','getAttribute','newValue','registerElementLabel','registerDescriptionCallback','ELEMENT_INLINE_IMAGE','commandParams','format','_descriptionFactory','has','forEach','commandReversedParams','ELEMENT_IMAGE','deletion','afterInit','*Set\x20image\x20text\x20alternative:*\x20%0','getSuggestions','imageTypeInline','imageStylePostApply','author','forward','*Reset\x20image\x20width*','isBefore','markDeletion','fromPosition','markInlineFormat','getClosestSelectedImageElement','start','addObject','ImageBlockEditing','toLowerCase','insertion','from','end','createRange','createRangeOn','alt','convertBlockImageToInline','hasSuggestion','forceDefaultExecution','backward','discardSuggestion','model','subType','markInsertion','locale','setImageNaturalSizeAttributes','resizedWidth','length','discard','detach','resizeImage','head','imageBlock','ImageInlineEditing','shouldConvertImageType','plugins','imageTextAlternative','getChangedMarkers','filter','commands','enableCommand','ImageCaptionEditing','findIndex','_suggestionFactory','type','change','find','nodeAfter','width','getSuggestion','get','value','ImageUtils','convertInlineImageToBlock','_findSuggestions'];(function(_0x4b5417,_0x3853ea){const _0x7b028f=function(_0x3e809c){while(--_0x3e809c){_0x4b5417['push'](_0x4b5417['shift']());}};_0x7b028f(++_0x3853ea);}(_0x3853,0x1a0));const _0x7b02=function(_0x4b5417,_0x3853ea){_0x4b5417=_0x4b5417-0x0;let _0x7b028f=_0x3853[_0x4b5417];return _0x7b028f;};import{Plugin as _0x1598b6}from'ckeditor5/src/core';import{LivePosition as _0x31b73a}from'ckeditor5/src/engine';import{uid as _0x25d07b}from'ckeditor5/src/utils';import{getTranslation as _0x3383c9}from'../utils/common-translations';export default class Y extends _0x1598b6{[_0x7b02('0x6')](){const _0x1624c8=this[_0x7b02('0x45')];if(!_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')]('ImageEditing'))return;const _0x71e9bb=_0x1624c8['plugins'][_0x7b02('0x3f')]('TrackChangesEditing'),_0x51e8e1=_0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')](_0x7b02('0x41')),_0x39d6ce={},_0x270e7b=_0x1624c8[_0x7b02('0x25')];if(_0x71e9bb['enableCommand'](_0x7b02('0x6c')),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')](_0x7b02('0x2d'),_0x4a3c08=>_0x3383c9(_0x270e7b,_0x7b02('0x4'),_0x4a3c08)),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')]('imageInline',_0x3b0eaa=>_0x3383c9(_0x270e7b,_0x7b02('0x76'),_0x3b0eaa)),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')]('caption',()=>_0x3383c9(_0x270e7b,'ELEMENT_CAPTION')),_0x1624c8['plugins'][_0x7b02('0x1')]('ImageUploadEditing')&&_0x71e9bb['enableCommand']('uploadImage'),_0x1624c8['plugins'][_0x7b02('0x1')](_0x7b02('0x15'))&&_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x2e'))&&(_0x71e9bb[_0x7b02('0x35')]('imageTypeInline',(_0xe6b321,_0x2b4632)=>{const _0x4ae276=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model']['document'][_0x7b02('0x56')]);_0x1624c8[_0x7b02('0x22')]['change'](()=>{_0x71e9bb['markBlockFormat'](_0x4ae276,{'commandName':_0x7b02('0x9'),'commandParams':[_0x2b4632]},[],_0x7b02('0x1d'));});}),_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x46'),(_0x439c6f,_0x158f88)=>{_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](_0x34aa2d=>{let _0x478a32=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['selection']),_0x59671d=_0x34aa2d[_0x7b02('0x1b')](_0x478a32);const _0x542a4e=_0x31b73a[_0x7b02('0x10')](_0x59671d[_0x7b02('0x13')],_0x7b02('0x48')),_0x2f1ba4=_0x31b73a['fromPosition'](_0x59671d[_0x7b02('0x19')],_0x7b02('0x57'));_0x71e9bb[_0x7b02('0x1f')](()=>_0x439c6f(_0x158f88)),_0x478a32=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x56')]),_0x59671d=_0x34aa2d[_0x7b02('0x1b')](_0x478a32);const _0x3d048b=_0x34aa2d['createRange'](_0x542a4e,_0x2f1ba4);_0x542a4e['detach'](),_0x2f1ba4[_0x7b02('0x2a')](),_0x71e9bb[_0x7b02('0x50')](_0x478a32,{'commandName':_0x7b02('0x9'),'commandParams':[_0x158f88]},[],_0x7b02('0x42')),_0x3d048b[_0x7b02('0x13')]['isBefore'](_0x59671d[_0x7b02('0x13')])&&_0x71e9bb[_0x7b02('0x24')](_0x34aa2d[_0x7b02('0x1a')](_0x3d048b[_0x7b02('0x13')],_0x59671d['start']),_0x7b02('0x42')),_0x59671d[_0x7b02('0x19')][_0x7b02('0xe')](_0x3d048b[_0x7b02('0x19')])&&_0x71e9bb[_0x7b02('0x24')](_0x34aa2d[_0x7b02('0x1a')](_0x59671d['end'],_0x3d048b[_0x7b02('0x19')]),_0x7b02('0x42'));});}),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback']('formatBlock',_0x7b02('0x42'),_0x7b02('0x65'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),_0x7b02('0x29'),_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x59'),'','accept')),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback'](_0x7b02('0x17'),'convertInlineImageToBlock','join',()=>!0x1),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x17'),_0x7b02('0x42'),_0x7b02('0x29'),([_0x2f7e1f])=>{const _0x49866c=_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x17'),'',_0x7b02('0x29'));let _0x8867e4=_0x2f7e1f[_0x7b02('0x13')],_0xc8009e=_0x2f7e1f[_0x7b02('0x19')];const _0x520362=_0x1624c8['model'][_0x7b02('0x4c')][_0x7b02('0x5e')](_0x8867e4,_0x7b02('0x20')),_0x1ac750=_0x1624c8['model'][_0x7b02('0x4c')][_0x7b02('0x5e')](_0xc8009e,_0x7b02('0xc'));_0x520362['isCollapsed']&&(_0x8867e4=_0x520362[_0x7b02('0x13')]),_0x1ac750['isCollapsed']&&(_0xc8009e=_0x1ac750[_0x7b02('0x19')]),_0x49866c([_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1a')](_0x8867e4,_0xc8009e)]);}),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),'chain',_0x5b5499),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')]('insertion',_0x7b02('0x42'),_0x7b02('0x58'),_0x5b5499)),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x36'))&&(_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x47'),(_0x18108f,_0x3b7996)=>{const _0x220660=_0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')]('ImageCaptionUtils');let _0x2297f4=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model'][_0x7b02('0x54')][_0x7b02('0x56')]),_0x5275c8=_0x220660['getCaptionFromImageModelElement'](_0x2297f4);_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{if(_0x5275c8)return void _0x71e9bb[_0x7b02('0xf')](_0x1624c8['model'][_0x7b02('0x1b')](_0x5275c8));const _0x129fe1=_0x51e8e1[_0x7b02('0x6d')](_0x2297f4);_0x18108f(_0x3b7996),_0x2297f4=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x56')]),_0x5275c8=_0x220660['getCaptionFromImageModelElement'](_0x2297f4),_0x71e9bb[_0x7b02('0x24')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x5275c8),_0x129fe1?null:_0x7b02('0x70'));});}),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x17'),'imageCaption',_0x7b02('0x58'),_0x5b5499)),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x49'))){_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x61'),(_0x1749fb,_0x449867)=>{const _0x17ce76=_0x1624c8[_0x7b02('0x30')]['get'](_0x7b02('0x69'))['me'],_0x1e24d1=_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')](_0x7b02('0x61'));let _0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model']['document']['selection']),_0x534f67=_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x273775),_0x343ce5=_0x1e24d1[_0x7b02('0x40')];if(_0x343ce5==_0x449867[_0x7b02('0x40')])return;const _0x3cc67b={'commandName':_0x7b02('0x61'),'commandParams':[_0x449867],'formatGroupId':_0x25d07b()};_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{if(_0x71e9bb[_0x7b02('0x8')]()[_0x7b02('0x33')](_0x44b200=>_0x44b200[_0x7b02('0x4f')]&&_0x17ce76==_0x44b200[_0x7b02('0xb')]&&(_0x7b02('0x59')==_0x44b200['type']||_0x7b02('0x5a')==_0x44b200[_0x7b02('0x39')])&&(_0x7b02('0x51')==_0x44b200['subType']||'imageStylePostApply'==_0x44b200[_0x7b02('0x23')])&&_0x44b200[_0x7b02('0x52')]()[_0x7b02('0x53')](_0x534f67))[_0x7b02('0x2')](_0x100d0c=>_0x71e9bb[_0x7b02('0x21')](_0x100d0c[_0x7b02('0x2c')])),_0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['selection']),_0x534f67=_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x273775),_0x1e24d1['refresh'](),_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')]('imageTypeInline')[_0x7b02('0x4a')](),_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')](_0x7b02('0x46'))['refresh'](),_0x343ce5=_0x1e24d1[_0x7b02('0x40')],_0x343ce5!=_0x449867[_0x7b02('0x40')])return _0x51e8e1['isInlineImage'](_0x273775)&&_0x1e24d1[_0x7b02('0x2f')](_0x449867[_0x7b02('0x40')],_0x273775)?(_0x1749fb({..._0x449867,'setImageSizes':!0x1}),_0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')]['document']['selection']),void _0x71e9bb['markBlockFormat'](_0x273775,{..._0x3cc67b,'commandReversedParams':[{'value':_0x343ce5||null,'setImageSizes':!0x1}]},[],_0x7b02('0x51'))):void(_0x51e8e1[_0x7b02('0x6d')](_0x273775)?_0x71e9bb[_0x7b02('0x50')](_0x273775,_0x3cc67b,[],_0x7b02('0xa')):_0x71e9bb[_0x7b02('0x11')](_0x534f67,_0x3cc67b,'imageStylePostApply'));});});for(const _0x36d665 of _0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')]('ImageStyleEditing')[_0x7b02('0x66')])_0x39d6ce[_0x36d665['name']]=_0x36d665['title'][_0x7b02('0x16')]();_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')]('formatBlock',_0x7b02('0x51'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0xa'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x5a'),_0x7b02('0xa'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x51'),_0x7b02('0x65'),([_0x580a89])=>{_0x51e8e1[_0x7b02('0x26')](_0x580a89[_0x7b02('0x5b')]());}),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4cb778,_0x306b34)=>{_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x59'),'',_0x7b02('0x65'))(_0x4cb778,{'commandName':_0x306b34[_0x7b02('0x6f')],'commandParams':_0x306b34[_0x7b02('0x3')]});}),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')]('formatBlock',_0x7b02('0x51'),_0x7b02('0x58'),_0x5b5499);}const _0x11ac2a=[{'type':_0x7b02('0x59'),'subType':'imageStylePreApply'},{'type':_0x7b02('0x17'),'subType':'imageCaption'},{'type':_0x7b02('0x59'),'subType':_0x7b02('0x42')},{'type':'insertion','subType':_0x7b02('0x42')}];function _0x505487(_0x54076a,_0x6489ce){const _0x2b43f0=_0x11ac2a['findIndex'](({type:_0x1c9fb2,subType:_0x40e586})=>_0x54076a['type']==_0x1c9fb2&&_0x54076a[_0x7b02('0x23')]==_0x40e586),_0x34b999=_0x11ac2a[_0x7b02('0x37')](({type:_0xc93c02,subType:_0x169685})=>_0x6489ce[_0x7b02('0x39')]==_0xc93c02&&_0x6489ce['subType']==_0x169685);if(_0x2b43f0<0x0||_0x34b999<0x0)return!0x1;const _0x1c517d=_0x54076a[_0x7b02('0x52')](),_0x3732dc=_0x6489ce[_0x7b02('0x52')]();if((0x0==_0x2b43f0||0x1==_0x2b43f0)&&0x2==_0x34b999&&_0x1c517d['isIntersecting'](_0x3732dc))return!0x0;if(0x2==_0x2b43f0&&0x3==_0x34b999){const _0x53d683=_0x71e9bb[_0x7b02('0x43')](_0x1c517d,_0x7b02('0x17'))[_0x7b02('0x33')](({suggestion:_0x1d150f,meta:_0x357a65})=>_0x357a65[_0x7b02('0x63')]&&_0x7b02('0x42')==_0x1d150f['subType']);if(_0x53d683['length']>0x1&&_0x3732dc[_0x7b02('0x19')][_0x7b02('0x53')](_0x1c517d[_0x7b02('0x13')]))return!0x0;if(0x1==_0x53d683[_0x7b02('0x28')]&&(_0x1c517d[_0x7b02('0x13')][_0x7b02('0x53')](_0x3732dc[_0x7b02('0x19')])||_0x1c517d['end'][_0x7b02('0x53')](_0x3732dc[_0x7b02('0x13')])))return!0x0;}if(0x3==_0x2b43f0&&0x3==_0x34b999&&_0x1c517d[_0x7b02('0x13')][_0x7b02('0xe')](_0x3732dc[_0x7b02('0x13')])){const _0x26def3=_0x1c517d[_0x7b02('0x19')][_0x7b02('0x3c')],_0x2d4796=_0x3732dc[_0x7b02('0x13')][_0x7b02('0x4d')];return _0x51e8e1['isBlockImage'](_0x26def3)&&_0x26def3===_0x2d4796;}return!0x1;}function _0x5b5499(_0x2a9355,_0x13ac54){return _0x505487(_0x2a9355,_0x13ac54)?[_0x2a9355,_0x13ac54]:_0x505487(_0x13ac54,_0x2a9355)?[_0x13ac54,_0x2a9355]:null;}_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x44')](()=>{let _0x911b3d=!0x1;const _0x36b732=Array[_0x7b02('0x18')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['differ'][_0x7b02('0x32')]());for(const {name:_0x1275a5,data:_0x258c24}of _0x36b732){const {group:_0x2c1366,type:_0x1e4161,subType:_0x13b1cc,id:_0x5ea40a}=_0x71e9bb[_0x7b02('0x55')](_0x1275a5);if(_0x7b02('0x60')==_0x2c1366&&_0x71e9bb[_0x7b02('0x1e')](_0x5ea40a)){if('formatBlock'==_0x1e4161&&(_0x7b02('0x51')==_0x13b1cc||_0x7b02('0xa')==_0x13b1cc)){const _0x3bdb06=_0x71e9bb[_0x7b02('0x3e')](_0x5ea40a);if(_0x258c24[_0x7b02('0x5c')]){const _0x59ccbd=_0x3bdb06[_0x7b02('0x52')]()[_0x7b02('0x5b')]();if(_0x51e8e1['isBlockImage'](_0x59ccbd))continue;_0x71e9bb[_0x7b02('0x21')](_0x3bdb06),_0x911b3d=!0x0;}}if(_0x7b02('0x17')==_0x1e4161&&_0x7b02('0x70')==_0x13b1cc&&!_0x258c24[_0x7b02('0x5c')]){const _0x521818=_0x71e9bb[_0x7b02('0x3e')](_0x5ea40a);_0x521818[_0x7b02('0x5f')]&&_0x521818[_0x7b02('0x5f')][_0x7b02('0x4f')]&&(_0x71e9bb[_0x7b02('0x21')](_0x521818['next']),_0x911b3d=!0x0);}}}return _0x911b3d;}),_0x1624c8['plugins']['has'](_0x7b02('0x6b'))&&_0x71e9bb['enableCommand'](_0x7b02('0x2b'),(_0x1ccec5,_0x1a4512)=>{const _0x441311=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model'][_0x7b02('0x54')][_0x7b02('0x56')]);_0x441311['getAttribute'](_0x7b02('0x27'))!=_0x1a4512['width']&&_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{_0x71e9bb['markBlockFormat'](_0x441311,{'commandName':_0x7b02('0x2b'),'commandParams':[_0x1a4512]});});}),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x64'))&&_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x31'),(_0xd6359e,_0x253f35)=>{const _0x4818e7=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')]['document'][_0x7b02('0x56')]);(_0x4818e7[_0x7b02('0x67')](_0x7b02('0x1c'))?_0x4818e7[_0x7b02('0x72')](_0x7b02('0x1c')):'')!=_0x253f35['newValue']&&_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{_0x71e9bb['markBlockFormat'](_0x4818e7,{'commandName':_0x7b02('0x31'),'commandParams':[_0x253f35]});});}),_0x71e9bb[_0x7b02('0x0')]['registerDescriptionCallback'](_0xb3dc60=>{if(!!_0x11ac2a[_0x7b02('0x3b')](({type:_0x2a8016,subType:_0x8bf54a})=>_0xb3dc60[_0x7b02('0x39')]==_0x2a8016&&_0xb3dc60[_0x7b02('0x23')]==_0x8bf54a))return _0xb3dc60['previous']?{}:void 0x0;}),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x75')](_0x12e533=>{if(_0x7b02('0x17')==_0x12e533[_0x7b02('0x39')]||_0x7b02('0x5')==_0x12e533[_0x7b02('0x39')]){const _0x3223dc=_0x12e533[_0x7b02('0x5b')]();if(_0x3223dc&&_0x3223dc['is'](_0x7b02('0x4b'),_0x7b02('0x62')))return{'type':_0x7b02('0x17')==_0x12e533['type']?_0x7b02('0x14'):_0x7b02('0x5d'),'element':_0x3223dc,'quantity':0x1};}}),_0x71e9bb['_descriptionFactory'][_0x7b02('0x75')](_0x347546=>'formatBlock'==_0x347546[_0x7b02('0x39')]&&_0x7b02('0x42')==_0x347546['subType']?{'type':_0x7b02('0x78'),'content':_0x7b02('0x68')}:_0x7b02('0x59')==_0x347546[_0x7b02('0x39')]&&_0x7b02('0x1d')==_0x347546[_0x7b02('0x23')]?{'type':_0x7b02('0x78'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x75')](_0x36c53f=>{const {data:_0x225ec6}=_0x36c53f;if(_0x225ec6){if('imageStyle'==_0x225ec6[_0x7b02('0x6f')]){const _0x5d3af6=_0x225ec6[_0x7b02('0x77')][0x0][_0x7b02('0x40')];return _0x41ec73(_0x7b02('0x6a')===_0x5d3af6?_0x3383c9(_0x270e7b,'FORMAT_SIDE_IMAGE'):_0x39d6ce[_0x5d3af6]||_0x5d3af6);}if(_0x7b02('0x31')==_0x225ec6['commandName']){const _0x148882=_0x225ec6['commandParams'][0x0][_0x7b02('0x73')];return _0x148882?{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,_0x7b02('0x7'),'\x22'+_0x148882+'\x22')}:{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,'*Remove\x20image\x20text\x20alternative*')};}if(_0x7b02('0x2b')==_0x225ec6['commandName']){const _0x40931c=_0x225ec6[_0x7b02('0x77')][0x0][_0x7b02('0x3d')];return _0x40931c?{'type':'format','content':_0x3383c9(_0x270e7b,'*Set\x20image\x20width:*\x20%0',_0x40931c)}:{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,_0x7b02('0xd'))};}}function _0x41ec73(_0x34b27e){return{'type':'format','content':_0x3383c9(_0x270e7b,_0x7b02('0x6e'),_0x34b27e)};}});}}
|
|
23
|
+
const _0x3956=['ImageUtils','createRange','commandParams','width','ImageCaptionUtils','convertBlockImageToInline','registerPostFixer','getSuggestionCallback','isCollapsed','refresh','getSuggestions','registerCustomCallback','locale','isInlineImage','ELEMENT_INLINE_IMAGE','resizedWidth','ELEMENT_IMAGE','markInsertion','getContainedElement','ImageUploadEditing','imageStylePreApply','FORMAT_SIDE_IMAGE','imageTypeInline','accept','imageCaption','enableCommand','commandName','head','resizeImage','model','newRange','isBlockImage','join','TrackChangesEditing','selection','registerElementLabel','isBefore','end','*Set\x20image\x20width:*\x20%0','isOwn','previous','document','*Format:*\x20%0','getSuggestion','nodeAfter','afterInit','getChangedMarkers','differ','discardSuggestion','deletion','registerDescriptionCallback','*Reset\x20image\x20width*','formatBlock','type','getNearestSelectionRange','start','getFirstRange','forward','nodeBefore','imageTextAlternative','format','from','chain','alt','imageInline','ImageResize','Inline\x20image\x20to\x20block\x20image','toPrevious','value','has','suggestion','detach','isEqual','ImageTextAlternativeEditing','insertion','getCaptionFromImageModelElement','length','formatInline','newValue','removeObject','commands','change','imageTypeBlock','_suggestionFactory','hasAttribute','next','ImageStyleEditing','createRangeOn','markBlockFormat','*Set\x20image\x20text\x20alternative:*\x20%0','editor','ImageInlineEditing','getClosestSelectedImageElement','Block\x20image\x20to\x20inline\x20image','discard','caption','plugins','isInContent','convertInlineImageToBlock','findIndex','subType','_splitMarkerName','ELEMENT_CAPTION','schema','fromPosition','side','normalizedStyles','imageStylePostApply','ImageBlockEditing','*Remove\x20image\x20text\x20alternative*','setImageNaturalSizeAttributes','forEach','getAttribute','_descriptionFactory','author','_findSuggestions','backward','get','imageStyle'];(function(_0x486869,_0x3956b8){const _0x702fe=function(_0x21f8b6){while(--_0x21f8b6){_0x486869['push'](_0x486869['shift']());}};_0x702fe(++_0x3956b8);}(_0x3956,0x194));const _0x702f=function(_0x486869,_0x3956b8){_0x486869=_0x486869-0x0;let _0x702fe=_0x3956[_0x486869];return _0x702fe;};import{Plugin as _0x5a41b6}from'ckeditor5/src/core';import{LivePosition as _0x498266}from'ckeditor5/src/engine';import{uid as _0x2215bb}from'ckeditor5/src/utils';import{getTranslation as _0x2f1f47}from'../utils/common-translations';export default class Y extends _0x5a41b6{[_0x702f('0x75')](){const _0x52def4=this[_0x702f('0x2b')];if(!_0x52def4[_0x702f('0x31')]['has']('ImageEditing'))return;const _0x25edd2=_0x52def4[_0x702f('0x31')][_0x702f('0x46')](_0x702f('0x69')),_0x4bbadb=_0x52def4[_0x702f('0x31')][_0x702f('0x46')](_0x702f('0x48')),_0x292178={},_0x2569d8=_0x52def4[_0x702f('0x54')];if(_0x25edd2[_0x702f('0x61')]('insertImage'),_0x25edd2[_0x702f('0x42')][_0x702f('0x6b')]('imageBlock',_0x3399b5=>_0x2f1f47(_0x2569d8,_0x702f('0x58'),_0x3399b5)),_0x25edd2[_0x702f('0x42')][_0x702f('0x6b')](_0x702f('0x11'),_0x2c3e61=>_0x2f1f47(_0x2569d8,_0x702f('0x56'),_0x2c3e61)),_0x25edd2[_0x702f('0x42')][_0x702f('0x6b')](_0x702f('0x30'),()=>_0x2f1f47(_0x2569d8,_0x702f('0x37'))),_0x52def4[_0x702f('0x31')]['has'](_0x702f('0x5b'))&&_0x25edd2['enableCommand']('uploadImage'),_0x52def4[_0x702f('0x31')]['has'](_0x702f('0x3d'))&&_0x52def4[_0x702f('0x31')]['has'](_0x702f('0x2c'))&&(_0x25edd2[_0x702f('0x61')](_0x702f('0x5e'),(_0x26c838,_0x419748)=>{const _0xa8c802=_0x4bbadb['getClosestSelectedImageElement'](_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x6a')]);_0x52def4[_0x702f('0x65')]['change'](()=>{_0x25edd2['markBlockFormat'](_0xa8c802,{'commandName':'imageTypeInline','commandParams':[_0x419748]},[],_0x702f('0x4d'));});}),_0x25edd2['enableCommand'](_0x702f('0x23'),(_0x55cd75,_0x145e46)=>{_0x52def4[_0x702f('0x65')][_0x702f('0x22')](_0x3fc0cc=>{let _0x295f7f=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x6a')]),_0x5dcb67=_0x3fc0cc[_0x702f('0x28')](_0x295f7f);const _0x2382e4=_0x498266[_0x702f('0x39')](_0x5dcb67['start'],_0x702f('0x14')),_0x2e7e7e=_0x498266[_0x702f('0x39')](_0x5dcb67[_0x702f('0x6d')],'toNext');_0x25edd2['forceDefaultExecution'](()=>_0x55cd75(_0x145e46)),_0x295f7f=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')]['document']['selection']),_0x5dcb67=_0x3fc0cc[_0x702f('0x28')](_0x295f7f);const _0x413dd4=_0x3fc0cc[_0x702f('0x49')](_0x2382e4,_0x2e7e7e);_0x2382e4[_0x702f('0x18')](),_0x2e7e7e['detach'](),_0x25edd2['markBlockFormat'](_0x295f7f,{'commandName':_0x702f('0x5e'),'commandParams':[_0x145e46]},[],'convertInlineImageToBlock'),_0x413dd4['start'][_0x702f('0x6c')](_0x5dcb67[_0x702f('0x8')])&&_0x25edd2[_0x702f('0x59')](_0x3fc0cc[_0x702f('0x49')](_0x413dd4[_0x702f('0x8')],_0x5dcb67[_0x702f('0x8')]),_0x702f('0x33')),_0x5dcb67[_0x702f('0x6d')][_0x702f('0x6c')](_0x413dd4[_0x702f('0x6d')])&&_0x25edd2[_0x702f('0x59')](_0x3fc0cc[_0x702f('0x49')](_0x5dcb67['end'],_0x413dd4['end']),'convertInlineImageToBlock');});}),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x33'),_0x702f('0x68'),()=>!0x1),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x33'),'accept',()=>!0x1),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x33'),_0x702f('0x2f'),_0x25edd2[_0x702f('0x24')]['getSuggestionCallback']('formatBlock','',_0x702f('0x5f'))),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x1b'),'convertInlineImageToBlock',_0x702f('0x68'),()=>!0x1),_0x25edd2[_0x702f('0x24')]['registerCustomCallback'](_0x702f('0x1b'),_0x702f('0x33'),'discard',([_0x706c19])=>{const _0x330deb=_0x25edd2[_0x702f('0x24')][_0x702f('0x4f')]('insertion','',_0x702f('0x2f'));let _0x291c37=_0x706c19[_0x702f('0x8')],_0x38ae30=_0x706c19['end'];const _0x390df2=_0x52def4[_0x702f('0x65')]['schema'][_0x702f('0x7')](_0x291c37,_0x702f('0x45')),_0x51c66f=_0x52def4['model'][_0x702f('0x38')][_0x702f('0x7')](_0x38ae30,_0x702f('0xa'));_0x390df2['isCollapsed']&&(_0x291c37=_0x390df2[_0x702f('0x8')]),_0x51c66f[_0x702f('0x50')]&&(_0x38ae30=_0x51c66f[_0x702f('0x6d')]),_0x330deb([_0x52def4[_0x702f('0x65')][_0x702f('0x49')](_0x291c37,_0x38ae30)]);}),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x33'),'chain',_0x1a0d79),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x1b'),_0x702f('0x33'),_0x702f('0xf'),_0x1a0d79)),_0x52def4['plugins']['has']('ImageCaptionEditing')&&(_0x25edd2[_0x702f('0x61')]('toggleImageCaption',(_0xbf89af,_0xa29304)=>{const _0x2d0bd3=_0x52def4[_0x702f('0x31')][_0x702f('0x46')](_0x702f('0x4c'));let _0x5e40b9=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x6a')]),_0x3ce969=_0x2d0bd3[_0x702f('0x1c')](_0x5e40b9);_0x52def4[_0x702f('0x65')][_0x702f('0x22')](()=>{if(_0x3ce969)return void _0x25edd2['markDeletion'](_0x52def4[_0x702f('0x65')]['createRangeOn'](_0x3ce969));const _0x544091=_0x4bbadb[_0x702f('0x67')](_0x5e40b9);_0xbf89af(_0xa29304),_0x5e40b9=_0x4bbadb[_0x702f('0x2d')](_0x52def4['model'][_0x702f('0x71')]['selection']),_0x3ce969=_0x2d0bd3['getCaptionFromImageModelElement'](_0x5e40b9),_0x25edd2['markInsertion'](_0x52def4[_0x702f('0x65')][_0x702f('0x28')](_0x3ce969),_0x544091?null:_0x702f('0x60'));});}),_0x25edd2['_suggestionFactory'][_0x702f('0x53')](_0x702f('0x1b'),_0x702f('0x60'),_0x702f('0xf'),_0x1a0d79)),_0x52def4['plugins'][_0x702f('0x16')](_0x702f('0x27'))){_0x25edd2['enableCommand'](_0x702f('0x47'),(_0x42ecf9,_0xfb077c)=>{const _0x8d62b6=_0x52def4[_0x702f('0x31')][_0x702f('0x46')]('Users')['me'],_0x3858e3=_0x52def4[_0x702f('0x21')]['get']('imageStyle');let _0x51fdd0=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x6a')]),_0x46ec1e=_0x52def4[_0x702f('0x65')]['createRangeOn'](_0x51fdd0),_0x5a4b7d=_0x3858e3[_0x702f('0x15')];if(_0x5a4b7d==_0xfb077c[_0x702f('0x15')])return;const _0x552a5f={'commandName':_0x702f('0x47'),'commandParams':[_0xfb077c],'formatGroupId':_0x2215bb()};_0x52def4[_0x702f('0x65')]['change'](()=>{if(_0x25edd2[_0x702f('0x52')]()['filter'](_0x21e3ac=>_0x21e3ac['isInContent']&&_0x8d62b6==_0x21e3ac[_0x702f('0x43')]&&(_0x702f('0x5')==_0x21e3ac[_0x702f('0x6')]||_0x702f('0x1e')==_0x21e3ac[_0x702f('0x6')])&&('imageStylePreApply'==_0x21e3ac[_0x702f('0x35')]||_0x702f('0x3c')==_0x21e3ac[_0x702f('0x35')])&&_0x21e3ac['getFirstRange']()[_0x702f('0x19')](_0x46ec1e))[_0x702f('0x40')](_0x513487=>_0x25edd2[_0x702f('0x1')](_0x513487[_0x702f('0x63')])),_0x51fdd0=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')]['selection']),_0x46ec1e=_0x52def4[_0x702f('0x65')]['createRangeOn'](_0x51fdd0),_0x3858e3[_0x702f('0x51')](),_0x52def4[_0x702f('0x21')][_0x702f('0x46')](_0x702f('0x5e'))[_0x702f('0x51')](),_0x52def4[_0x702f('0x21')][_0x702f('0x46')](_0x702f('0x23'))[_0x702f('0x51')](),_0x5a4b7d=_0x3858e3[_0x702f('0x15')],_0x5a4b7d!=_0xfb077c[_0x702f('0x15')])return _0x4bbadb[_0x702f('0x55')](_0x51fdd0)&&_0x3858e3['shouldConvertImageType'](_0xfb077c[_0x702f('0x15')],_0x51fdd0)?(_0x42ecf9({..._0xfb077c,'setImageSizes':!0x1}),_0x51fdd0=_0x4bbadb[_0x702f('0x2d')](_0x52def4['model'][_0x702f('0x71')]['selection']),void _0x25edd2['markBlockFormat'](_0x51fdd0,{..._0x552a5f,'commandReversedParams':[{'value':_0x5a4b7d||null,'setImageSizes':!0x1}]},[],_0x702f('0x5c'))):void(_0x4bbadb[_0x702f('0x67')](_0x51fdd0)?_0x25edd2[_0x702f('0x29')](_0x51fdd0,_0x552a5f,[],'imageStylePostApply'):_0x25edd2['markInlineFormat'](_0x46ec1e,_0x552a5f,_0x702f('0x3c')));});});for(const _0xbecd5a of _0x52def4['plugins']['get']('ImageStyleEditing')[_0x702f('0x3b')])_0x292178[_0xbecd5a['name']]=_0xbecd5a['title']['toLowerCase']();_0x25edd2['_suggestionFactory']['registerCustomCallback'](_0x702f('0x5'),_0x702f('0x5c'),'join',()=>!0x1),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x3c'),_0x702f('0x68'),()=>!0x1),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x1e'),'imageStylePostApply','join',()=>!0x1),_0x25edd2['_suggestionFactory'][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x5c'),'accept',([_0x2f3f53])=>{_0x4bbadb[_0x702f('0x3f')](_0x2f3f53[_0x702f('0x5a')]());}),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')](_0x702f('0x5'),_0x702f('0x5c'),_0x702f('0x2f'),(_0x429a55,_0x292ff9)=>{_0x25edd2['_suggestionFactory'][_0x702f('0x4f')](_0x702f('0x5'),'',_0x702f('0x5f'))(_0x429a55,{'commandName':_0x292ff9[_0x702f('0x62')],'commandParams':_0x292ff9['commandReversedParams']});}),_0x25edd2[_0x702f('0x24')][_0x702f('0x53')]('formatBlock','imageStylePreApply',_0x702f('0xf'),_0x1a0d79);}const _0x2f23f8=[{'type':'formatBlock','subType':_0x702f('0x5c')},{'type':'insertion','subType':_0x702f('0x60')},{'type':_0x702f('0x5'),'subType':'convertInlineImageToBlock'},{'type':_0x702f('0x1b'),'subType':_0x702f('0x33')}];function _0x4bd0fd(_0xe95722,_0x5edde2){const _0x318fd0=_0x2f23f8[_0x702f('0x34')](({type:_0x372097,subType:_0x33a08f})=>_0xe95722[_0x702f('0x6')]==_0x372097&&_0xe95722[_0x702f('0x35')]==_0x33a08f),_0x598608=_0x2f23f8['findIndex'](({type:_0x427702,subType:_0x84e91a})=>_0x5edde2['type']==_0x427702&&_0x5edde2[_0x702f('0x35')]==_0x84e91a);if(_0x318fd0<0x0||_0x598608<0x0)return!0x1;const _0x58c8cd=_0xe95722['getFirstRange'](),_0x53db79=_0x5edde2[_0x702f('0x9')]();if((0x0==_0x318fd0||0x1==_0x318fd0)&&0x2==_0x598608&&_0x58c8cd['isIntersecting'](_0x53db79))return!0x0;if(0x2==_0x318fd0&&0x3==_0x598608){const _0x10d3cc=_0x25edd2[_0x702f('0x44')](_0x58c8cd,_0x702f('0x1b'))['filter'](({suggestion:_0x574425,meta:_0x1a6835})=>_0x1a6835[_0x702f('0x6f')]&&_0x702f('0x33')==_0x574425['subType']);if(_0x10d3cc[_0x702f('0x1d')]>0x1&&_0x53db79[_0x702f('0x6d')][_0x702f('0x19')](_0x58c8cd['start']))return!0x0;if(0x1==_0x10d3cc[_0x702f('0x1d')]&&(_0x58c8cd[_0x702f('0x8')]['isEqual'](_0x53db79[_0x702f('0x6d')])||_0x58c8cd[_0x702f('0x6d')][_0x702f('0x19')](_0x53db79['start'])))return!0x0;}if(0x3==_0x318fd0&&0x3==_0x598608&&_0x58c8cd[_0x702f('0x8')][_0x702f('0x6c')](_0x53db79[_0x702f('0x8')])){const _0x1ef21b=_0x58c8cd[_0x702f('0x6d')][_0x702f('0x74')],_0x5c8bfe=_0x53db79['start'][_0x702f('0xb')];return _0x4bbadb[_0x702f('0x67')](_0x1ef21b)&&_0x1ef21b===_0x5c8bfe;}return!0x1;}function _0x1a0d79(_0x1f0832,_0x1c1e7d){return _0x4bd0fd(_0x1f0832,_0x1c1e7d)?[_0x1f0832,_0x1c1e7d]:_0x4bd0fd(_0x1c1e7d,_0x1f0832)?[_0x1c1e7d,_0x1f0832]:null;}_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x4e')](()=>{let _0x2b18a8=!0x1;const _0x498ae6=Array[_0x702f('0xe')](_0x52def4['model']['document'][_0x702f('0x0')][_0x702f('0x76')]());for(const {name:_0x3b10e0,data:_0x2f502f}of _0x498ae6){const {group:_0x10f240,type:_0x27bf17,subType:_0x44a8c1,id:_0x5ac816}=_0x25edd2[_0x702f('0x36')](_0x3b10e0);if(_0x702f('0x17')==_0x10f240&&_0x25edd2['hasSuggestion'](_0x5ac816)){if(_0x702f('0x5')==_0x27bf17&&(_0x702f('0x5c')==_0x44a8c1||'imageStylePostApply'==_0x44a8c1)){const _0xc404fc=_0x25edd2[_0x702f('0x73')](_0x5ac816);if(_0x2f502f[_0x702f('0x66')]){const _0x265a01=_0xc404fc[_0x702f('0x9')]()['getContainedElement']();if(_0x4bbadb[_0x702f('0x67')](_0x265a01))continue;_0x25edd2[_0x702f('0x1')](_0xc404fc),_0x2b18a8=!0x0;}}if(_0x702f('0x1b')==_0x27bf17&&_0x702f('0x60')==_0x44a8c1&&!_0x2f502f[_0x702f('0x66')]){const _0x2e27b7=_0x25edd2['getSuggestion'](_0x5ac816);_0x2e27b7[_0x702f('0x26')]&&_0x2e27b7['next'][_0x702f('0x32')]&&(_0x25edd2[_0x702f('0x1')](_0x2e27b7[_0x702f('0x26')]),_0x2b18a8=!0x0);}}}return _0x2b18a8;}),_0x52def4[_0x702f('0x31')][_0x702f('0x16')](_0x702f('0x12'))&&_0x25edd2['enableCommand'](_0x702f('0x64'),(_0x5d58a6,_0x31d535)=>{const _0x180b03=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')]['selection']);_0x180b03[_0x702f('0x41')](_0x702f('0x57'))!=_0x31d535[_0x702f('0x4b')]&&_0x52def4[_0x702f('0x65')][_0x702f('0x22')](()=>{_0x25edd2[_0x702f('0x29')](_0x180b03,{'commandName':'resizeImage','commandParams':[_0x31d535]});});}),_0x52def4['plugins'][_0x702f('0x16')](_0x702f('0x1a'))&&_0x25edd2['enableCommand'](_0x702f('0xc'),(_0x2aa521,_0x8b2056)=>{const _0x58c7f6=_0x4bbadb[_0x702f('0x2d')](_0x52def4[_0x702f('0x65')][_0x702f('0x71')][_0x702f('0x6a')]);(_0x58c7f6[_0x702f('0x25')]('alt')?_0x58c7f6[_0x702f('0x41')](_0x702f('0x10')):'')!=_0x8b2056[_0x702f('0x1f')]&&_0x52def4[_0x702f('0x65')][_0x702f('0x22')](()=>{_0x25edd2[_0x702f('0x29')](_0x58c7f6,{'commandName':_0x702f('0xc'),'commandParams':[_0x8b2056]});});}),_0x25edd2['_descriptionFactory'][_0x702f('0x3')](_0x5a322e=>{if(!!_0x2f23f8['find'](({type:_0x3559e0,subType:_0x3883c3})=>_0x5a322e[_0x702f('0x6')]==_0x3559e0&&_0x5a322e['subType']==_0x3883c3))return _0x5a322e[_0x702f('0x70')]?{}:void 0x0;}),_0x25edd2[_0x702f('0x42')][_0x702f('0x3')](_0x282518=>{if(_0x702f('0x1b')==_0x282518[_0x702f('0x6')]||_0x702f('0x2')==_0x282518[_0x702f('0x6')]){const _0x201b33=_0x282518[_0x702f('0x5a')]();if(_0x201b33&&_0x201b33['is']('element',_0x702f('0x30')))return{'type':_0x702f('0x1b')==_0x282518[_0x702f('0x6')]?'addObject':_0x702f('0x20'),'element':_0x201b33,'quantity':0x1};}}),_0x25edd2['_descriptionFactory'][_0x702f('0x3')](_0x35ae14=>_0x702f('0x5')==_0x35ae14[_0x702f('0x6')]&&_0x702f('0x33')==_0x35ae14['subType']?{'type':_0x702f('0xd'),'content':_0x702f('0x13')}:'formatBlock'==_0x35ae14['type']&&_0x702f('0x4d')==_0x35ae14[_0x702f('0x35')]?{'type':'format','content':_0x702f('0x2e')}:void 0x0),_0x25edd2[_0x702f('0x42')][_0x702f('0x3')](_0x1e56e9=>{const {data:_0x3d33bb}=_0x1e56e9;if(_0x3d33bb){if(_0x702f('0x47')==_0x3d33bb['commandName']){const _0x24c100=_0x3d33bb[_0x702f('0x4a')][0x0][_0x702f('0x15')];return _0x33f951(_0x702f('0x3a')===_0x24c100?_0x2f1f47(_0x2569d8,_0x702f('0x5d')):_0x292178[_0x24c100]||_0x24c100);}if(_0x702f('0xc')==_0x3d33bb[_0x702f('0x62')]){const _0xdf7bc5=_0x3d33bb[_0x702f('0x4a')][0x0][_0x702f('0x1f')];return _0xdf7bc5?{'type':'format','content':_0x2f1f47(_0x2569d8,_0x702f('0x2a'),'\x22'+_0xdf7bc5+'\x22')}:{'type':'format','content':_0x2f1f47(_0x2569d8,_0x702f('0x3e'))};}if(_0x702f('0x64')==_0x3d33bb[_0x702f('0x62')]){const _0x2e82b8=_0x3d33bb[_0x702f('0x4a')][0x0]['width'];return _0x2e82b8?{'type':_0x702f('0xd'),'content':_0x2f1f47(_0x2569d8,_0x702f('0x6e'),_0x2e82b8)}:{'type':_0x702f('0xd'),'content':_0x2f1f47(_0x2569d8,_0x702f('0x4'))};}}function _0x33f951(_0x4d9f6e){return{'type':'format','content':_0x2f1f47(_0x2569d8,_0x702f('0x72'),_0x4d9f6e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb8=['registerCustomCallback','getSelectedElement','src','getAttribute','*Format:*\x20replace\x20image\x20URL','enableCommand','replaceImageSource','TrackChangesEditing','plugins','model','getSuggestionCallback','has','get','markBlockFormat','discard','change','getSuggestions','accept','_suggestionFactory','handleReplaceImageCommand','locale','document','editor','getContainedElement','formatBlock','afterInit','selection'];(function(_0x337a80,_0x2fb899){const _0x445632=function(_0x51a2cb){while(--_0x51a2cb){_0x337a80['push'](_0x337a80['shift']());}};_0x445632(++_0x2fb899);}(_0x2fb8,0x13c));const _0x4456=function(_0x337a80,_0x2fb899){_0x337a80=_0x337a80-0x0;let _0x445632=_0x2fb8[_0x337a80];return _0x445632;};import{Plugin as _0x44c82c}from'ckeditor5/src/core';import{getTranslation as _0x22a0df}from'../utils/common-translations';export default class Z extends _0x44c82c{[_0x4456('0x6')](){if(!this[_0x4456('0x3')][_0x4456('0x10')][_0x4456('0x13')]('ImageEditing'))return;const _0x2f0eef=this['editor'][_0x4456('0x10')][_0x4456('0x14')](_0x4456('0xf'));_0x2f0eef[_0x4456('0xd')](_0x4456('0xe'),(_0x97d167,_0x3a7fe9)=>this[_0x4456('0x0')](_0x97d167,_0x3a7fe9)),_0x2f0eef[_0x4456('0x1a')][_0x4456('0x8')]('formatBlock','replaceImageSource',_0x4456('0x19'),_0x2f0eef[_0x4456('0x1a')][_0x4456('0x12')](_0x4456('0x5'),null,_0x4456('0x16'))),_0x2f0eef['_suggestionFactory'][_0x4456('0x8')]('formatBlock',_0x4456('0xe'),_0x4456('0x16'),_0x2f0eef[_0x4456('0x1a')]['getSuggestionCallback'](_0x4456('0x5'),null,'accept')),_0x2f0eef['_descriptionFactory']['registerDescriptionCallback'](_0x18125b=>this['handleSuggestionDescription'](_0x18125b));}[_0x4456('0x0')](_0x5d3a71,_0x455641){const _0x34b71e=this[_0x4456('0x3')][_0x4456('0x10')][_0x4456('0x14')](_0x4456('0xf')),_0x1c52ac=this['editor'][_0x4456('0x11')][_0x4456('0x2')][_0x4456('0x7')][_0x4456('0x9')]();this[_0x4456('0x3')][_0x4456('0x11')][_0x4456('0x17')](()=>{let _0x4875db=_0x1c52ac[_0x4456('0xb')](_0x4456('0xa'));const _0xa5b287=this[_0x4456('0x3')]['plugins'][_0x4456('0x14')]('Users')['me'];for(const _0x2c9d4d of _0x34b71e[_0x4456('0x18')]({'skipNotAttached':!0x0})){const _0x11727b=_0x2c9d4d[_0x4456('0x4')]();if(_0x4456('0xe')===_0x2c9d4d['subType']&&_0x11727b===_0x1c52ac){_0x2c9d4d['author']!==_0xa5b287&&_0x2c9d4d[_0x4456('0x16')](),_0x4875db=_0x2c9d4d['data']['commandParams'][0x0]['source'];break;}}_0x5d3a71(_0x455641),_0x34b71e[_0x4456('0x15')](_0x1c52ac,{'commandName':_0x4456('0xe'),'commandParams':[{'source':_0x4875db}]},[],_0x4456('0xe'));});}['handleSuggestionDescription'](_0x4a0d5d){const {data:_0x5d427c}=_0x4a0d5d;if(_0x5d427c&&_0x4456('0xe')===_0x5d427c['commandName']){const _0x5e985d=_0x4456('0xc');return{'type':'format','content':_0x22a0df(this['editor'][_0x4456('0x1')],_0x5e985d)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdb5b=['_trackChangesExecuted','plugins','commands','_setSuggestionData','track_changes','_handleImportedData','editor','lowest','_trackChangesValueDuringImport','bind','dataInsert','enableCommand','get','importWord','execute','TrackChangesEditing','listenTo','high','value','trackChanges'];(function(_0x29617b,_0xdb5b4b){const _0x4dac01=function(_0x22532c){while(--_0x22532c){_0x29617b['push'](_0x29617b['shift']());}};_0x4dac01(++_0xdb5b4b);}(_0xdb5b,0x111));const _0x4dac=function(_0x29617b,_0xdb5b4b){_0x29617b=_0x29617b-0x0;let _0x4dac01=_0xdb5b[_0x29617b];return _0x4dac01;};import{Plugin as _0x49b56e}from'ckeditor5/src/core';export default class tt extends _0x49b56e{constructor(_0x5ad49a){super(_0x5ad49a),this[_0x4dac('0xf')]=!0x1,this[_0x4dac('0x7')]=!0x1;}['afterInit'](){const _0x4b82eb=this[_0x4dac('0xd')],_0x154091=_0x4b82eb[_0x4dac('0x9')][_0x4dac('0x13')](_0x4dac('0x0')),_0x39c00e=_0x4b82eb[_0x4dac('0x9')][_0x4dac('0x13')](_0x4dac('0x6'));_0x154091&&(_0x154091['on'](_0x4dac('0x1'),(_0x38d772,[,_0x1c4435])=>{this[_0x4dac('0xf')]=_0x39c00e[_0x4dac('0x5')],_0x1c4435['collaboration_features'][_0x4dac('0xb')]=!this[_0x4dac('0xf')];},{'priority':_0x4dac('0x4')}),this[_0x4dac('0x3')](_0x154091,_0x4dac('0x11'),this[_0x4dac('0xc')][_0x4dac('0x10')](this)),this[_0x4dac('0x3')](_0x154091,_0x4dac('0x11'),()=>{this[_0x4dac('0x7')]&&(_0x39c00e['execute'](),this[_0x4dac('0x7')]=!0x1);},{'priority':_0x4dac('0xe')}),_0x4b82eb[_0x4dac('0x8')][_0x4dac('0x13')]('TrackChangesEditing')[_0x4dac('0x12')](_0x4dac('0x0')));}[_0x4dac('0xc')](_0x4eff1b,_0x13579a){const {suggestions:_0x4fa4b7}=_0x13579a,_0xd20061=this[_0x4dac('0xd')][_0x4dac('0x9')][_0x4dac('0x13')](_0x4dac('0x6')),_0xd177a8=_0xd20061[_0x4dac('0x5')];this[_0x4dac('0xf')]!==_0xd177a8&&(_0xd20061[_0x4dac('0x1')](),this[_0x4dac('0x7')]=!0x0),_0x4fa4b7&&_0x4fa4b7['forEach'](({id:_0x3aed29,type:_0x9737df,author:_0x4b6379,created_at:_0x53d58d})=>{const _0x3459d0={'id':_0x3aed29,'type':_0x9737df,'authorId':this[_0x4dac('0xd')]['plugins'][_0x4dac('0x13')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b6379,'createdAt':_0x53d58d?new Date(_0x53d58d):new Date(),'source':_0x4dac('0x0')}}};this['editor']['plugins'][_0x4dac('0x13')](_0x4dac('0x2'))[_0x4dac('0xa')](_0x3459d0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5496=['locale','outdentBlock','plugins','blockIndent','checkAttribute','*Indent:*\x20%0','document','getItems','indentBlock','IndentBlock','*Outdent:*\x20%0','indent','enableCommand','has','commandName','selection','getItemLabel','afterInit','_descriptionFactory','format','outdent','model','IndentEditing','editor','TrackChangesEditing','registerDescriptionCallback','markBlockFormat'];(function(_0x1cf792,_0x54967e){const _0xfd4745=function(_0x1ecb1b){while(--_0x1ecb1b){_0x1cf792['push'](_0x1cf792['shift']());}};_0xfd4745(++_0x54967e);}(_0x5496,0xdd));const _0xfd47=function(_0x1cf792,_0x54967e){_0x1cf792=_0x1cf792-0x0;let _0xfd4745=_0x5496[_0x1cf792];return _0xfd4745;};import{Plugin as _0x389d2f}from'ckeditor5/src/core';import{getTranslation as _0x137880}from'../utils/common-translations';export default class it extends _0x389d2f{[_0xfd47('0xc')](){const _0x48db8e=this[_0xfd47('0x12')],_0x5e5fe4=_0x48db8e[_0xfd47('0x18')]['get'](_0xfd47('0x13'));_0x48db8e[_0xfd47('0x18')][_0xfd47('0x8')](_0xfd47('0x11'))&&(_0x5e5fe4[_0xfd47('0x7')](_0xfd47('0x6')),_0x5e5fe4[_0xfd47('0x7')](_0xfd47('0xf')));const _0x37df36=_0x48db8e[_0xfd47('0x16')];if(_0x48db8e[_0xfd47('0x18')][_0xfd47('0x8')](_0xfd47('0x4'))){for(const _0x57120a of[_0xfd47('0x3'),_0xfd47('0x17')])_0x5e5fe4[_0xfd47('0x7')](_0x57120a,()=>{const _0x422a2b=Array['from'](this[_0xfd47('0x12')][_0xfd47('0x10')][_0xfd47('0x1')][_0xfd47('0xa')]['getSelectedBlocks']())['filter'](_0x51f077=>this[_0xfd47('0x12')][_0xfd47('0x10')]['schema'][_0xfd47('0x1a')](_0x51f077,_0xfd47('0x19')));_0x48db8e['model']['change'](()=>{for(const _0x82e6d2 of _0x422a2b)_0x5e5fe4[_0xfd47('0x15')](_0x82e6d2,{'commandName':_0x57120a,'commandParams':[{'value':''}],'formatGroupId':_0xfd47('0x3')});});});_0x5e5fe4['_descriptionFactory'][_0xfd47('0x14')](_0x4b6ca9=>{const {data:_0x4c91f7}=_0x4b6ca9;if(!_0x4c91f7)return;if(_0xfd47('0x3')!=_0x4c91f7['commandName']&&'outdentBlock'!=_0x4c91f7[_0xfd47('0x9')])return;const _0x3b4cac=_0x4b6ca9[_0xfd47('0x2')]()[0x0],_0x247521=_0x5e5fe4[_0xfd47('0xd')][_0xfd47('0xb')](_0x3b4cac);return _0xfd47('0x3')==_0x4c91f7[_0xfd47('0x9')]?{'type':'format','content':_0x137880(_0x37df36,_0xfd47('0x0'),_0x247521)}:'outdentBlock'==_0x4c91f7['commandName']?{'type':_0xfd47('0xe'),'content':_0x137880(_0x37df36,_0xfd47('0x5'),_0x247521)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x8dfb=['enableCommand','input','plugins','get','requires','editor','init'];(function(_0x21d899,_0x8dfbe5){var _0x24463e=function(_0x38724b){while(--_0x38724b){_0x21d899['push'](_0x21d899['shift']());}};_0x24463e(++_0x8dfbe5);}(_0x8dfb,0xf2));var _0x2446=function(_0x21d899,_0x8dfbe5){_0x21d899=_0x21d899-0x0;var _0x24463e=_0x8dfb[_0x21d899];return _0x24463e;};import{Plugin as _0x5d33c4}from'ckeditor5/src/core';import{Input as _0x1a71c6}from'ckeditor5/src/typing';export default class et extends _0x5d33c4{static get[_0x2446('0x0')](){return[_0x1a71c6];}[_0x2446('0x2')](){this[_0x2446('0x1')][_0x2446('0x5')][_0x2446('0x6')]('TrackChangesEditing')[_0x2446('0x3')](_0x2446('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8992=['LinkEditing','TrackChangesEditing','_descriptionFactory','*Set\x20link:*\x20%0','selection','getFirstRange','hasAttribute','change','*Remove\x20link*','from','commandParams','get','link','format','commandName','has','enableCommand','getFirstPosition','linkHref','unlink','getAttribute','isCollapsed','registerDescriptionCallback','document','model','editor','plugins','markInlineFormat'];(function(_0x1c554b,_0x899288){const _0x333aa2=function(_0x15ca1a){while(--_0x15ca1a){_0x1c554b['push'](_0x1c554b['shift']());}};_0x333aa2(++_0x899288);}(_0x8992,0xdb));const _0x333a=function(_0x1c554b,_0x899288){_0x1c554b=_0x1c554b-0x0;let _0x333aa2=_0x8992[_0x1c554b];return _0x333aa2;};import{Plugin as _0x17be22}from'ckeditor5/src/core';import{findAttributeRange as _0x3c6bff}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x505a16}from'./utils';import{getTranslation as _0x2ec206}from'../utils/common-translations';export default class nt extends _0x17be22{['afterInit'](){const _0x35b698=this['editor'];if(!_0x35b698[_0x333a('0x3')][_0x333a('0x14')](_0x333a('0x5')))return;const _0x2a1f1b=_0x35b698[_0x333a('0x3')][_0x333a('0x10')](_0x333a('0x6'));_0x2a1f1b[_0x333a('0x15')](_0x333a('0x11'),(_0x43a6d5,_0x110c97)=>{const _0x11087c=_0x35b698[_0x333a('0x1')]['document'][_0x333a('0x9')];let _0x18ef44=[];if(_0x11087c[_0x333a('0x1a')]){if(!_0x11087c[_0x333a('0xb')](_0x333a('0x17')))return void _0x43a6d5(_0x110c97);{const _0x58f9f8=_0x3c6bff(_0x11087c['getFirstPosition'](),_0x333a('0x17'),_0x11087c[_0x333a('0x19')](_0x333a('0x17')),_0x35b698[_0x333a('0x1')]);_0x18ef44=[_0x58f9f8];}}else _0x18ef44=Array[_0x333a('0xe')](_0x11087c['getRanges']());_0x35b698[_0x333a('0x1')][_0x333a('0xc')](()=>{for(const _0x300f25 of _0x18ef44)_0x2a1f1b[_0x333a('0x4')](_0x300f25,{'commandName':_0x333a('0x11'),'commandParams':[_0x110c97]});});}),_0x2a1f1b['enableCommand'](_0x333a('0x18'),()=>{const _0x3fc458=this[_0x333a('0x2')][_0x333a('0x1')],_0x2d1288=_0x3fc458[_0x333a('0x0')][_0x333a('0x9')];_0x3fc458[_0x333a('0xc')](()=>{let _0x23ac40=[];if(_0x2d1288[_0x333a('0x1a')])_0x23ac40=[_0x3c6bff(_0x2d1288[_0x333a('0x16')](),_0x333a('0x17'),_0x2d1288[_0x333a('0x19')](_0x333a('0x17')),_0x35b698['model'])];else _0x23ac40=_0x505a16(_0x333a('0x17'),_0x2d1288[_0x333a('0xa')](),_0x35b698[_0x333a('0x1')]);for(const _0x2417a5 of _0x23ac40)_0x2a1f1b[_0x333a('0x4')](_0x2417a5,{'commandName':_0x333a('0x18'),'commandParams':[]});});}),_0x2a1f1b[_0x333a('0x7')][_0x333a('0x1b')](_0x200dfd=>{const {data:_0x23d8f1}=_0x200dfd,_0x1cd4d9=_0x35b698['locale'];if(_0x23d8f1){if(_0x333a('0x11')==_0x23d8f1[_0x333a('0x13')]){const _0x5da8f7=_0x23d8f1[_0x333a('0xf')][0x0];return{'type':'format','content':_0x2ec206(_0x1cd4d9,_0x333a('0x8'),'\x22'+_0x5da8f7+'\x22')};}return _0x333a('0x18')==_0x23d8f1[_0x333a('0x13')]?{'type':_0x333a('0x12'),'content':_0x2ec206(_0x1cd4d9,_0x333a('0xd'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x215c=['execute','selection','afterInit','ListEditing','indentList','model','createPositionAt','*Outdent:*\x20%0','blockName','change','getAttribute','checkTodoList','filter','end','format','*Check\x20item*','add','name','element','checkChild','*Uncheck\x20item*','commandName','has','slice','ELEMENT_LIST_ITEM','todoList','from','listItem','replace','parent','enableCommand','TrackChangesEditing','getSelectedBlocks','markBlockFormat','_selectedElements','commandParams','commands','*Indent:*\x20%0','previousSibling','numbered','paragraph','document','locale','length','push','before','bulleted','todo','ELEMENT_NUMBERED_LIST','nextSibling','plugins','get','schema','todoListChecked','createRange','listIndent','value','List','bulletedList','outdentList'];(function(_0x3b4468,_0x215cb1){const _0x2a35ed=function(_0x4e3677){while(--_0x4e3677){_0x3b4468['push'](_0x3b4468['shift']());}};_0x2a35ed(++_0x215cb1);}(_0x215c,0x15d));const _0x2a35=function(_0x3b4468,_0x215cb1){_0x3b4468=_0x3b4468-0x0;let _0x2a35ed=_0x215c[_0x3b4468];return _0x2a35ed;};import{Plugin as _0x1b0635}from'ckeditor5/src/core';import{getTranslation as _0x88cdf}from'../utils/common-translations';export default class st extends _0x1b0635{[_0x2a35('0xd')](){const _0x2a4ef6=this['editor'],_0x5615cb=_0x2a4ef6[_0x2a35('0x35')];if(!_0x2a4ef6['plugins']['has'](_0x2a35('0xe')))return;const _0x40fc8f=_0x2a4ef6[_0x2a35('0x1')][_0x2a35('0x2')](_0x2a35('0x2a')),_0x563dfc=_0x2a4ef6[_0x2a35('0x1')][_0x2a35('0x21')]('TodoListEditing');function _0x3a759d(_0x2eadbd){return()=>{const _0x1608c2=_0x2a4ef6['model'][_0x2a35('0x34')][_0x2a35('0xc')],_0x1ae49a=_0x2a4ef6[_0x2a35('0x2f')][_0x2a35('0x2')](_0x2eadbd);if(_0x1ae49a[_0x2a35('0x7')])return void _0x2a4ef6[_0x2a35('0xb')](_0x2a35('0x33'),{});const _0x13b176=_0x2eadbd[_0x2a35('0x22')](0x0,-0x4),_0x31f179=function(_0x183451,_0x2a87b9,_0x5e322a){let _0xb4bbb0=Array['from'](_0x183451)[_0x2a35('0x17')](_0x2e496a=>function(_0x3ef613,_0x4dd063){return _0x4dd063[_0x2a35('0x1e')](_0x3ef613[_0x2a35('0x28')],_0x2a35('0x26'))&&!_0x4dd063['isObject'](_0x3ef613);}(_0x2e496a,_0x5e322a));_0xb4bbb0=_0xb4bbb0[_0x2a35('0x17')](_0x34bc9a=>!_0x34bc9a['is'](_0x2a35('0x1d'),_0x2a35('0x26'))||_0x34bc9a[_0x2a35('0x15')]('listType')!=_0x2a87b9);const _0x319bfb=new Set();for(const _0x1288dc of _0xb4bbb0)_0x1288dc['is'](_0x2a35('0x1d'),_0x2a35('0x26'))?_0x319bfb[_0x2a35('0x1b')](ne(_0x1288dc)):_0x319bfb[_0x2a35('0x1b')](_0x1288dc);return Array['from'](_0x319bfb);}(_0x1608c2[_0x2a35('0x2b')](),_0x13b176,_0x2a4ef6['model'][_0x2a35('0x3')]);_0x2a4ef6[_0x2a35('0x10')]['change'](()=>{for(const _0x7410b4 of _0x31f179)_0x40fc8f[_0x2a35('0x2c')](_0x7410b4,{'commandName':_0x2eadbd,'commandParams':[{'forceValue':!_0x1ae49a[_0x2a35('0x7')]}],'formatGroupId':_0x2a35('0x13')},oe(_0x7410b4));});};}function _0xfc2496(_0x47a620){return()=>{const _0x322e63=function(_0x3fbf70){let _0x38f4da=Array[_0x2a35('0x25')](_0x3fbf70);const _0x2fd435=_0x38f4da['findIndex'](_0x2c7124=>_0x2a35('0x26')!=_0x2c7124['name']);return _0x2fd435>-0x1&&(_0x38f4da=_0x38f4da[_0x2a35('0x22')](0x0,_0x2fd435)),_0x38f4da;}(_0x2a4ef6[_0x2a35('0x10')][_0x2a35('0x34')][_0x2a35('0xc')][_0x2a35('0x2b')]()),_0x59553f=_0x2a4ef6[_0x2a35('0x10')][_0x2a35('0x5')](_0x2a4ef6[_0x2a35('0x10')][_0x2a35('0x11')](_0x322e63[0x0],_0x2a35('0x38')),_0x2a4ef6[_0x2a35('0x10')][_0x2a35('0x11')](_0x322e63[_0x322e63[_0x2a35('0x36')]-0x1],_0x2a35('0x18')));_0x2a4ef6['model'][_0x2a35('0x14')](()=>{_0x40fc8f['markBlockFormat'](_0x59553f,{'commandName':_0x47a620,'commandParams':[],'formatGroupId':_0x2a35('0x6')},function(_0x2a2499){const _0x27f3a0=new Set();for(const _0x13759f of _0x2a2499){let _0x2541ea=_0x13759f['nextSibling'];for(;_0x2541ea&&_0x2541ea[_0x2a35('0x15')](_0x2a35('0x6'))>_0x13759f['getAttribute'](_0x2a35('0x6'));)_0x27f3a0[_0x2a35('0x1b')](_0x2541ea),_0x2541ea=_0x2541ea[_0x2a35('0x0')];}return Array[_0x2a35('0x25')](_0x27f3a0);}(_0x322e63));});};}_0x40fc8f[_0x2a35('0x29')]('numberedList',_0x3a759d('numberedList')),_0x40fc8f[_0x2a35('0x29')](_0x2a35('0x9'),_0x3a759d('bulletedList')),_0x563dfc&&_0x40fc8f[_0x2a35('0x29')](_0x2a35('0x24'),_0x3a759d(_0x2a35('0x24'))),_0x40fc8f[_0x2a35('0x29')](_0x2a35('0xf'),_0xfc2496(_0x2a35('0xf'))),_0x40fc8f[_0x2a35('0x29')](_0x2a35('0xa'),_0xfc2496(_0x2a35('0xa'))),_0x563dfc&&_0x40fc8f['enableCommand'](_0x2a35('0x16'),()=>{const _0x218aa5=_0x2a4ef6[_0x2a35('0x2f')][_0x2a35('0x2')]('checkTodoList'),_0x526dc3=Array[_0x2a35('0x25')](_0x218aa5[_0x2a35('0x2d')]);_0x526dc3['filter'](_0x4ce789=>_0x4ce789['getAttribute'](_0x2a35('0x4'))!=_0x218aa5['value']),_0x2a4ef6['model']['change'](()=>{for(const _0x5f2965 of _0x526dc3)_0x40fc8f[_0x2a35('0x2c')](_0x5f2965,{'commandName':_0x2a35('0x16'),'commandParams':[{'forceValue':!_0x218aa5['value']}]});});}),_0x40fc8f['_descriptionFactory']['registerElementLabel']('listItem',_0x21195=>_0x88cdf(_0x5615cb,_0x2a35('0x23'),_0x21195)),_0x40fc8f['_descriptionFactory']['registerDescriptionCallback'](_0x120177=>{const {data:_0x23b3c4}=_0x120177;if(_0x23b3c4){if('numberedList'==_0x23b3c4['commandName']||'bulletedList'==_0x23b3c4['commandName']||'todoList'==_0x23b3c4[_0x2a35('0x20')])switch(_0x23b3c4[_0x2a35('0x20')][_0x2a35('0x27')](_0x2a35('0x8'),'')){case _0x2a35('0x39'):return _0x3faa5b(_0x88cdf(_0x5615cb,'ELEMENT_BULLETED_LIST'));case _0x2a35('0x32'):return _0x3faa5b(_0x88cdf(_0x5615cb,_0x2a35('0x3b')));case _0x2a35('0x3a'):return _0x3faa5b(_0x88cdf(_0x5615cb,'ELEMENT_TODO_LIST'));}if(_0x2a35('0xf')==_0x23b3c4[_0x2a35('0x20')])return{'type':_0x2a35('0x19'),'content':_0x88cdf(_0x5615cb,_0x2a35('0x30'),_0x88cdf(_0x5615cb,_0x2a35('0x23')))};if(_0x2a35('0xa')==_0x23b3c4[_0x2a35('0x20')])return{'type':'format','content':_0x88cdf(_0x5615cb,_0x2a35('0x12'),_0x88cdf(_0x5615cb,_0x2a35('0x23')))};if(_0x2a35('0x16')==_0x23b3c4['commandName'])return _0x23b3c4[_0x2a35('0x2e')][0x0]['forceValue']?{'type':_0x2a35('0x19'),'content':_0x88cdf(_0x5615cb,_0x2a35('0x1a'))}:{'type':'format','content':_0x88cdf(_0x5615cb,_0x2a35('0x1f'))};}function _0x3faa5b(_0x319d54){return{'type':'format','content':_0x88cdf(_0x5615cb,'*Change\x20to:*\x20%0',_0x319d54)};}});}}function ne(_0xeb2943){const _0x36c466=_0xeb2943['getAttribute']('listIndent');if(0x0==_0x36c466)return _0xeb2943;let _0x49e9d5=_0xeb2943;for(;_0xeb2943[_0x2a35('0x31')]&&_0xeb2943['previousSibling']['is'](_0x2a35('0x1d'),'listItem');){const _0x3c8d59=_0xeb2943[_0x2a35('0x31')]['getAttribute']('listIndent');if(_0x3c8d59==_0x36c466)_0x49e9d5=_0xeb2943[_0x2a35('0x31')];else{if(_0x3c8d59<_0x36c466)break;}_0xeb2943=_0xeb2943[_0x2a35('0x31')];}return _0x49e9d5;}function oe(_0x5a4fca){const _0x50c2ff=[];if(_0x5a4fca['is'](_0x2a35('0x1d'),_0x2a35('0x26'))&&_0x5a4fca['getAttribute'](_0x2a35('0x6'))>0x0){let _0x5052da=_0x5a4fca[_0x2a35('0x0')];for(;_0x5052da&&_0x2a35('0x26')==_0x5052da[_0x2a35('0x1c')]&&_0x5052da['getAttribute'](_0x2a35('0x6'))==_0x5a4fca[_0x2a35('0x15')](_0x2a35('0x6'));)_0x50c2ff[_0x2a35('0x37')](_0x5052da),_0x5052da=_0x5052da['nextSibling'];}return _0x50c2ff;}
|