@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230820.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/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 _0x3334=['plugins','getRanges','commandParams','format','fontBackgroundColor','_enableCommand','fontColor','document','afterInit','registerDescriptionCallback','*Reset\x20font\x20family*','*Reset\x20font\x20color*','*Set\x20font\x20family:*\x20%0','FontSizeEditing','change','fontBackgroundColor.colors','*Reset\x20font\x20background\x20color*','has','from','value','trim','_descriptionFactory','normalizeSizeOptions','toLowerCase','fontSize','FontSize','selection','title','fontFamily','TrackChangesEditing','markInlineFormat','commandName','config','find','editor','model','label','fontColor.colors','*Reset\x20font\x20size*','get','isCollapsed'];(function(_0x36d272,_0x33342f){const _0x5de626=function(_0x2d2d1c){while(--_0x2d2d1c){_0x36d272['push'](_0x36d272['shift']());}};_0x5de626(++_0x33342f);}(_0x3334,0x14a));const _0x5de6=function(_0x36d272,_0x33342f){_0x36d272=_0x36d272-0x0;let _0x5de626=_0x3334[_0x36d272];return _0x5de626;};import{Plugin as _0x37fafe}from'ckeditor5/src/core';import{normalizeColorOptions as _0x101610}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x35b4a2}from'./utils';import{getTranslation as _0x834a5}from'../utils/common-translations';const Zt=[{'pluginName':_0x5de6('0xb'),'commandName':_0x5de6('0x16')},{'pluginName':'FontFamilyEditing','commandName':_0x5de6('0x1a')},{'pluginName':'FontColorEditing','commandName':_0x5de6('0x4')},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class H extends _0x37fafe{[_0x5de6('0x6')](){const _0x3e92d7=this[_0x5de6('0x20')]['locale'];for(const {pluginName:_0x4d8ac6,commandName:_0x2ad30c}of Zt)this[_0x5de6('0x20')][_0x5de6('0x27')][_0x5de6('0xf')](_0x4d8ac6)&&this[_0x5de6('0x3')](_0x2ad30c);this['editor'][_0x5de6('0x27')]['get']('TrackChangesEditing')[_0x5de6('0x13')][_0x5de6('0x7')](_0x418b61=>{const _0x5e96b8=_0x3e92d7['t'],{data:_0xe19d44}=_0x418b61;if(null!=_0xe19d44){if(_0x5de6('0x16')==_0xe19d44['commandName']){const _0x3d7a4e=_0xe19d44[_0x5de6('0x0')][0x0][_0x5de6('0x11')];if(_0x3d7a4e){const _0x4659cc=_0x5e96b8(this[_0x5de6('0x20')][_0x5de6('0x27')][_0x5de6('0x25')](_0x5de6('0x17'))[_0x5de6('0x14')](this['editor'][_0x5de6('0x1e')][_0x5de6('0x25')]('fontSize.options'))[_0x5de6('0x1f')](_0x3dbe2a=>_0x3dbe2a['model']==_0x3d7a4e)[_0x5de6('0x19')])[_0x5de6('0x15')]();return{'type':'format','content':_0x834a5(_0x3e92d7,'*Set\x20font\x20size:*\x20%0',_0x4659cc)};}return{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,_0x5de6('0x24'))};}if('fontFamily'==_0xe19d44['commandName']){const _0xc69636=_0xe19d44['commandParams'][0x0][_0x5de6('0x11')];return _0xc69636?{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,_0x5de6('0xa'),_0xc69636)}:{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,_0x5de6('0x8'))};}if('fontColor'==_0xe19d44[_0x5de6('0x1d')]){const _0x49fca2=_0xe19d44['commandParams'][0x0][_0x5de6('0x11')];if(_0x49fca2){const _0x54eabd=_0x101610(this[_0x5de6('0x20')][_0x5de6('0x1e')][_0x5de6('0x25')](_0x5de6('0x23')))[_0x5de6('0x1f')](_0x42ff24=>_0x42ff24[_0x5de6('0x21')]==_0x49fca2);let _0x5ef9b0=_0x49fca2,_0xd44264='';return _0x54eabd&&(_0x5ef9b0=_0x54eabd['label'],_0xd44264=_0x5e96b8(_0x5ef9b0)[_0x5de6('0x15')]()),{'type':'format','content':_0x834a5(_0x3e92d7,'*Set\x20font\x20color:*\x20%0',_0xd44264)[_0x5de6('0x12')](),'color':{'value':_0x49fca2,'title':_0xd44264||_0x5ef9b0}};}return{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,_0x5de6('0x9'))};}if(_0x5de6('0x2')==_0xe19d44[_0x5de6('0x1d')]){const _0x264155=_0xe19d44[_0x5de6('0x0')][0x0][_0x5de6('0x11')];if(_0x264155){const _0x1339ff=_0x101610(this[_0x5de6('0x20')]['config'][_0x5de6('0x25')](_0x5de6('0xd')))[_0x5de6('0x1f')](_0x42def8=>_0x42def8[_0x5de6('0x21')]==_0x264155);let _0x37e5f2=_0x264155,_0x447c82='';return _0x1339ff&&(_0x37e5f2=_0x1339ff[_0x5de6('0x22')],_0x447c82=_0x5e96b8(_0x37e5f2)['toLowerCase']()),{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x447c82)['trim'](),'color':{'value':_0x264155,'title':_0x447c82||_0x37e5f2}};}return{'type':_0x5de6('0x1'),'content':_0x834a5(_0x3e92d7,_0x5de6('0xe'))};}}});}[_0x5de6('0x3')](_0x14f937){const _0x47a810=this['editor'];_0x47a810['plugins'][_0x5de6('0x25')](_0x5de6('0x1b'))['enableCommand'](_0x14f937,(_0x8d251a,_0x4444ac={})=>{const _0x43dd56=_0x47a810[_0x5de6('0x21')][_0x5de6('0x5')][_0x5de6('0x18')],_0x66acd7=_0x4444ac[_0x5de6('0x11')];_0x43dd56[_0x5de6('0x26')]?_0x8d251a(_0x4444ac):_0x47a810[_0x5de6('0x21')][_0x5de6('0xc')](()=>{const _0xbe35a1=Array[_0x5de6('0x10')](_0x43dd56[_0x5de6('0x28')]());for(const _0xc00d10 of _0xbe35a1){const _0x253a9a=_0x66acd7?[_0xc00d10]:_0x35b4a2(_0x14f937,_0xc00d10,_0x47a810[_0x5de6('0x21')]);for(const _0x4356f3 of _0x253a9a)_0x47a810[_0x5de6('0x27')]['get'](_0x5de6('0x1b'))[_0x5de6('0x1c')](_0x4356f3,{'commandName':_0x14f937,'commandParams':[{'value':_0x66acd7}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d20=['commandParams','isBlock','editor','getFirstPosition','get','find','document','title','split','getLastPosition','schema','getItems','commandName','_descriptionFactory','fontColor','getAttributeProperties','length','model','plugins','FontSize','getRanges','backward','slice','createSelection','getAttributes','change','format','copyFormat','isCollapsed','*Set\x20format\x20to:*\x20%0','pasteFormat','toUpperCase','config','push','commands','charAt','createRange','toLowerCase','TrackChangesEditing','word','fontSize','*Remove\x20all\x20formatting*','markInlineFormat','fontBackgroundColor','registerDescriptionCallback','join','isFormatting','locale','enableCommand','from','modifySelection','selection'];(function(_0x14c0cf,_0x7d2068){const _0x2c321f=function(_0x1f23ee){while(--_0x1f23ee){_0x14c0cf['push'](_0x14c0cf['shift']());}};_0x2c321f(++_0x7d2068);}(_0x7d20,0xbb));const _0x2c32=function(_0x14c0cf,_0x7d2068){_0x14c0cf=_0x14c0cf-0x0;let _0x2c321f=_0x7d20[_0x14c0cf];return _0x2c321f;};import{Plugin as _0x3751c1}from'ckeditor5/src/core';import{normalizeColorOptions as _0x525859}from'ckeditor5/src/ui';import{first as _0x3191e9}from'ckeditor5/src/utils';import{getTranslation as _0x369375}from'../utils/common-translations';export default class W extends _0x3751c1{['afterInit'](){const _0x5232ca=this[_0x2c32('0x17')],_0x4153a1=_0x5232ca[_0x2c32('0x26')],_0x4aa78a=_0x4153a1[_0x2c32('0x1b')][_0x2c32('0x14')],_0x48cea5=_0x5232ca[_0x2c32('0x27')]['get'](_0x2c32('0x7')),_0x538850=_0x5232ca[_0x2c32('0x10')],_0x5a68c0=_0x5232ca['commands'][_0x2c32('0x19')]('copyFormat'),_0x1e0d93=_0x5232ca[_0x2c32('0x3')]['get']('pasteFormat');_0x5a68c0&&_0x1e0d93&&(_0x48cea5[_0x2c32('0x11')](_0x2c32('0x33'),(_0x82c5a8,_0xd6db15={})=>{const _0x31503a=_0xd6db15;_0x4153a1[_0x2c32('0x2e')](()=>{const _0x1ce439=Array[_0x2c32('0x12')](_0x4aa78a[_0x2c32('0x29')]()),_0x4a9309=_0x4aa78a[_0x2c32('0x31')]?[ro(_0x4153a1,_0x4aa78a)]:_0x1ce439,_0x57ad20=!!_0x3191e9(function*(_0x502ebb,_0xc52fb5){const _0x55f233=_0xdd93d=>!!_0x3191e9(function*(_0x48179c,_0x4422fc){for(const [_0x4c9c32]of _0x48179c[_0x2c32('0x2d')]()){const _0x4fcd91=_0x4422fc[_0x2c32('0x24')](_0x4c9c32);_0x4fcd91&&_0x4fcd91[_0x2c32('0xf')]&&(yield _0x4c9c32);}}(_0xdd93d,_0xc52fb5));for(const _0x48eb1b of _0x502ebb[_0x2c32('0x29')]())for(const _0xa3ae2c of _0x48eb1b[_0x2c32('0x20')]())!_0xc52fb5[_0x2c32('0x16')](_0xa3ae2c)&&_0x55f233(_0xa3ae2c)&&(yield _0xa3ae2c);for(const _0x2150cf of _0x502ebb['getSelectedBlocks']())_0x55f233(_0x2150cf)&&(yield _0x2150cf);_0x55f233(_0x502ebb)&&(yield _0x502ebb);}(_0x4aa78a,_0x4153a1[_0x2c32('0x1f')]));if(_0x57ad20||0x0!==Object['keys'](_0x31503a)[_0x2c32('0x25')])for(const _0x3ac5ae of _0x4a9309)_0x48cea5[_0x2c32('0xb')](_0x3ac5ae,{'commandName':_0x2c32('0x33'),'commandParams':[_0x31503a]});});}),_0x48cea5[_0x2c32('0x22')][_0x2c32('0xd')](_0x4db317=>{const {data:_0x451bb8}=_0x4db317;if(_0x451bb8&&_0x2c32('0x33')===_0x451bb8[_0x2c32('0x21')]){const _0x4b3bca=[],_0x5464a9=_0x451bb8[_0x2c32('0x15')][0x0];for(const [_0x126d98,_0x3790ed]of Object['entries'](_0x5464a9))_0x4b3bca[_0x2c32('0x2')](no(_0x5232ca,_0x126d98,_0x3790ed));return _0x4b3bca[_0x2c32('0x25')]?{'type':_0x2c32('0x2f'),'content':_0x369375(_0x538850,_0x2c32('0x32'),_0x4b3bca['join'](',\x20'))}:{'type':'format','content':_0x369375(_0x538850,_0x2c32('0xa'))};}}),_0x5232ca[_0x2c32('0x27')]['get']('TrackChangesEditing')[_0x2c32('0x11')](_0x2c32('0x30')));}}function ro(_0x4be026,_0x37a877){const _0x79400a=_0x4be026[_0x2c32('0x2c')](_0x37a877);_0x4be026[_0x2c32('0x13')](_0x79400a,{'unit':'word','direction':_0x2c32('0x2a')});const _0x287885=_0x79400a[_0x2c32('0x18')]();_0x4be026[_0x2c32('0x13')](_0x79400a,{'unit':_0x2c32('0x8'),'direction':'forward'});const _0x37e1df=_0x79400a[_0x2c32('0x1e')]();return _0x4be026[_0x2c32('0x5')](_0x287885,_0x37e1df);}function no(_0x2879a5,_0x138790,_0x274f4c){const _0x4f0486=_0x2879a5['locale']['t'],_0x2e8152=_0x138790[_0x2c32('0x1d')](/(?=[A-Z])/)[_0x2c32('0xe')]('\x20'),_0x30b078=_0x4f0486(_0x2e8152[_0x2c32('0x4')](0x0)[_0x2c32('0x0')]()+_0x2e8152[_0x2c32('0x2b')](0x1))[_0x2c32('0x6')]();if('boolean'==typeof _0x274f4c)return _0x30b078;if(_0x2c32('0x23')===_0x138790||_0x2c32('0xc')===_0x138790){const _0x392cbc=_0x525859(_0x2879a5[_0x2c32('0x1')][_0x2c32('0x19')]('fontColor.colors'))['find'](_0x54c902=>_0x54c902['model']==_0x274f4c);return _0x30b078+'\x20('+(_0x392cbc?_0x4f0486(_0x392cbc['label'])[_0x2c32('0x6')]():_0x274f4c)+')';}if(_0x2c32('0x9')===_0x138790&&isNaN(parseFloat(_0x274f4c))){const _0x38ee76=_0x2879a5[_0x2c32('0x27')][_0x2c32('0x19')](_0x2c32('0x28'))['normalizeSizeOptions'](_0x2879a5['config']['get']('fontSize.options'))[_0x2c32('0x1a')](_0x46dd63=>_0x46dd63['model']==_0x274f4c);return _0x30b078+'\x20('+(_0x38ee76?_0x4f0486(_0x38ee76[_0x2c32('0x1c')])['toLowerCase']():_0x274f4c)+')';}return _0x30b078+'\x20('+_0x274f4c+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4336=['parent','registerDescriptionCallback','_descriptionFactory','match','editor','filter','paragraph','document','registerElementLabel','blockName','checkChild','HeadingEditing','model','selection','plugins','schema','enableCommand','format','heading.options','value','commandParams','*Change\x20to:*\x20%0','title','find','config','commandName','heading','afterInit','change','getSelectedBlocks','get','TrackChangesEditing'];(function(_0x27b7b9,_0x433628){const _0x54f199=function(_0x4bcce8){while(--_0x4bcce8){_0x27b7b9['push'](_0x27b7b9['shift']());}};_0x54f199(++_0x433628);}(_0x4336,0x10a));const _0x54f1=function(_0x27b7b9,_0x433628){_0x27b7b9=_0x27b7b9-0x0;let _0x54f199=_0x4336[_0x27b7b9];return _0x54f199;};import{Plugin as _0x56e582}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x343558}from'./utils';import{getTranslation as _0x33d156}from'../utils/common-translations';export default class J extends _0x56e582{[_0x54f1('0x11')](){const _0xca5b83=this[_0x54f1('0x1a')],_0x19bb30=_0xca5b83['locale'],_0x55c229=_0xca5b83[_0x54f1('0xe')][_0x54f1('0x14')](_0x54f1('0x8'));if(!_0xca5b83[_0x54f1('0x4')]['has'](_0x54f1('0x1')))return;const _0x35dbdd=_0xca5b83['plugins'][_0x54f1('0x14')](_0x54f1('0x15'));_0x35dbdd[_0x54f1('0x6')](_0x54f1('0x10'),(_0x451665,_0x5da63f)=>{const _0x4147fe=_0x5da63f[_0x54f1('0x9')],_0xbd4e73=Array['from'](this['editor'][_0x54f1('0x2')][_0x54f1('0x1d')][_0x54f1('0x3')][_0x54f1('0x13')]())[_0x54f1('0x1b')](_0x41920a=>function(_0x4e653f,_0x22f23b,_0x5d1e18){return _0x5d1e18[_0x54f1('0x0')](_0x4e653f[_0x54f1('0x16')],_0x22f23b)&&!_0x5d1e18['isObject'](_0x4e653f)&&_0x4e653f['name']!=_0x22f23b;}(_0x41920a,_0x4147fe,this[_0x54f1('0x1a')][_0x54f1('0x2')][_0x54f1('0x5')]));_0xca5b83[_0x54f1('0x2')][_0x54f1('0x12')](()=>{for(const _0x1c8e63 of _0xbd4e73)_0x35dbdd['markBlockFormat'](_0x1c8e63,{'commandName':_0x54f1('0x10'),'commandParams':[_0x5da63f],'formatGroupId':_0x54f1('0x1f')},_0x343558(_0x1c8e63));});});for(const _0x1f5815 of _0x55c229)_0x54f1('0x1c')!=_0x1f5815[_0x54f1('0x2')]&&_0x35dbdd[_0x54f1('0x18')][_0x54f1('0x1e')](_0x1f5815[_0x54f1('0x2')],_0x4b14ca=>{const _0x36101a=nn(_0x1f5815[_0x54f1('0x2')]);return null!==_0x36101a?_0x5d2c6c(_0x4b14ca,_0x36101a):_0xb1f320(_0x4b14ca,_0x1f5815[_0x54f1('0xc')]);});function _0x5d2c6c(_0x5b89a8,_0x5b031a){return _0x33d156(_0x19bb30,'ELEMENT_HEADING',[_0x5b89a8,_0x5b031a]);}function _0xb1f320(_0x212c90,_0x43c1db){return _0x33d156(_0x19bb30,'ELEMENT_HEADING_CUSTOM',[_0x212c90,_0x43c1db]);}_0x35dbdd[_0x54f1('0x18')][_0x54f1('0x17')](_0x238fb8=>{const {type:_0x17cfdc,data:_0x154f63}=_0x238fb8;if('formatBlock'==_0x17cfdc&&_0x154f63&&'heading'==_0x154f63[_0x54f1('0xf')]){const _0x4d8afc=_0x154f63[_0x54f1('0xa')][0x0][_0x54f1('0x9')],_0x5838d0=nn(_0x4d8afc);if(null!==_0x5838d0)return{'type':_0x54f1('0x7'),'content':_0x33d156(_0x19bb30,_0x54f1('0xb'),_0x5d2c6c(0x1,_0x5838d0))};const _0x50bf22=_0x55c229[_0x54f1('0xd')](_0x2a04a8=>_0x2a04a8['model']===_0x4d8afc)[_0x54f1('0xc')];return{'type':_0x54f1('0x7'),'content':_0x33d156(_0x19bb30,_0x54f1('0xb'),_0xb1f320(0x1,_0x50bf22))};}});}}function nn(_0x4d64a4){const _0x262b38=_0x4d64a4[_0x54f1('0x19')](/^heading(\d+)$/);return _0x262b38?_0x262b38[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b7=['model','format','getFirstPosition','plugins','get','hasAttribute','getLastMatchingPosition','highlight','enableCommand','has','find','afterInit','push','title','getRanges','formatInline','getAttribute','markInlineFormat','color','value','createRange','HighlightEditing','change','_descriptionFactory','editor','backward','selection','*Remove\x20highlight*','*Set\x20highlight:*\x20%0'];(function(_0x1268b0,_0x43b730){const _0x5beaba=function(_0x445583){while(--_0x445583){_0x1268b0['push'](_0x1268b0['shift']());}};_0x5beaba(++_0x43b730);}(_0x43b7,0xb1));const _0x5bea=function(_0x1268b0,_0x43b730){_0x1268b0=_0x1268b0-0x0;let _0x5beaba=_0x43b7[_0x1268b0];return _0x5beaba;};import{Plugin as _0x19827f}from'ckeditor5/src/core';import{getTranslation as _0x19dd3d}from'../utils/common-translations';import{getRangesWithAttribute as _0x580442}from'./utils';export default class K extends _0x19827f{[_0x5bea('0x8')](){const _0x4480b9=this[_0x5bea('0x15')];if(!_0x4480b9['plugins'][_0x5bea('0x6')](_0x5bea('0x12')))return;const _0x34454d=_0x4480b9[_0x5bea('0x0')][_0x5bea('0x1')]('TrackChangesEditing');_0x34454d[_0x5bea('0x5')](_0x5bea('0x4'),(_0x550a01,_0x27864f={})=>{const _0x51aa9b=_0x4480b9[_0x5bea('0x1a')]['document'][_0x5bea('0x17')],_0x2aabee=_0x51aa9b['getAttribute'](_0x5bea('0x4'));let _0x12c66a=_0x27864f[_0x5bea('0x10')],_0x321c00=[];if(_0x51aa9b['isCollapsed']){const _0x44fcf6=_0x51aa9b[_0x5bea('0x1c')]();if(!_0x51aa9b[_0x5bea('0x2')](_0x5bea('0x4')))return void _0x550a01(_0x27864f);{const _0x26cf91=_0x4d2cd7=>_0x4d2cd7['item'][_0x5bea('0xd')](_0x5bea('0x4'))===_0x2aabee,_0x3cade5=_0x44fcf6[_0x5bea('0x3')](_0x26cf91,{'direction':_0x5bea('0x16')}),_0x5d6ebb=_0x44fcf6[_0x5bea('0x3')](_0x26cf91);_0x321c00=[_0x4480b9[_0x5bea('0x1a')][_0x5bea('0x11')](_0x3cade5,_0x5d6ebb)],_0x12c66a==_0x2aabee&&(_0x12c66a=null);}}else for(const _0x203286 of _0x51aa9b[_0x5bea('0xb')]())_0x12c66a?_0x321c00[_0x5bea('0x9')](_0x203286):_0x321c00[_0x5bea('0x9')](..._0x580442(_0x5bea('0x4'),_0x203286,_0x4480b9['model']));_0x4480b9[_0x5bea('0x1a')][_0x5bea('0x13')](()=>{for(const _0x493078 of _0x321c00)_0x34454d[_0x5bea('0xe')](_0x493078,{'commandName':_0x5bea('0x4'),'commandParams':[{'value':_0x12c66a}]});});});const _0xdc98c0=_0x4480b9['locale'];_0x34454d[_0x5bea('0x14')]['registerDescriptionCallback'](_0x37a371=>{const {type:_0x28c678,data:_0x487448}=_0x37a371;if(_0x5bea('0xc')==_0x28c678&&_0x487448&&_0x5bea('0x4')==_0x487448['commandName']){const _0x500306=_0xdc98c0['t'],_0x3db5f4=_0x487448['commandParams'][0x0]['value'];if(_0x3db5f4){const _0x2ffab5=_0x4480b9['config']['get']('highlight.options')[_0x5bea('0x7')](_0x3c797e=>_0x3c797e[_0x5bea('0x1a')]==_0x3db5f4),_0x1fafde=_0x500306(_0x2ffab5[_0x5bea('0xa')])['toLowerCase']();return{'type':_0x5bea('0x1b'),'content':_0x19dd3d(_0xdc98c0,_0x5bea('0x19'),_0x1fafde),'color':{'value':_0x2ffab5[_0x5bea('0xf')],'title':_0x2ffab5[_0x5bea('0xa')]}};}return{'type':_0x5bea('0x1b'),'content':_0x19dd3d(_0xdc98c0,_0x5bea('0x18'),_0x19dd3d(_0xdc98c0,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ad=['horizontalLine','ck-horizontal-line','createContainerElement','TrackChangesEditing','elementToStructure','ELEMENT_HORIZONTAL_LINE','div','addClass','afterInit','has','showSuggestionHighlights','registerElementLabel','plugins','enableCommand','createEmptyElement','HorizontalLineEditing','createPositionAt','get','insert','editor','locale','high'];(function(_0x5590ac,_0x43adfa){const _0x1acce8=function(_0x1f9032){while(--_0x1f9032){_0x5590ac['push'](_0x5590ac['shift']());}};_0x1acce8(++_0x43adfa);}(_0x43ad,0x1cb));const _0x1acc=function(_0x5590ac,_0x43adfa){_0x5590ac=_0x5590ac-0x0;let _0x1acce8=_0x43ad[_0x5590ac];return _0x1acce8;};import{Plugin as _0x57b83d}from'ckeditor5/src/core';import{getTranslation as _0x2dd5fa}from'../utils/common-translations';export default class Q extends _0x57b83d{[_0x1acc('0xb')](){const _0x37d164=this[_0x1acc('0x0')];if(!_0x37d164[_0x1acc('0xf')][_0x1acc('0xc')](_0x1acc('0x12')))return;_0x37d164[_0x1acc('0xf')][_0x1acc('0x14')](_0x1acc('0x6'))[_0x1acc('0x10')](_0x1acc('0x3'));const _0xf6855a=_0x37d164[_0x1acc('0xf')]['get'](_0x1acc('0x6')),_0x281d83=_0x37d164[_0x1acc('0x1')];_0xf6855a['_descriptionFactory'][_0x1acc('0xe')](_0x1acc('0x3'),_0x6b49c7=>_0x2dd5fa(_0x281d83,_0x1acc('0x8'),_0x6b49c7)),_0x37d164['conversion']['for']('dataDowncast')[_0x1acc('0x7')]({'model':_0x1acc('0x3'),'view':(_0x1e7e64,{writer:_0x356f23,options:_0x515e26})=>{if(!_0x515e26[_0x1acc('0xd')])return null;const _0x33e2f5=_0x356f23[_0x1acc('0x5')](_0x1acc('0x9')),_0x6431a7=_0x356f23[_0x1acc('0x11')]('hr');return _0x356f23[_0x1acc('0xa')](_0x1acc('0x4'),_0x33e2f5),_0x356f23[_0x1acc('0x15')](_0x356f23[_0x1acc('0x13')](_0x33e2f5,0x0),_0x6431a7),_0x33e2f5;},'converterPriority':_0x1acc('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a8a=['get','enableCommand','*Change\x20%0\x20content*','view','model','commandName','markBlockFormat','htmlEmbed','document','registerDescriptionCallback','cancel','getCustomProperty','editing','element','registerElementLabel','value','selection','editor','has','ELEMENT_HTML_EMBED','_descriptionFactory','TrackChangesEditing','getAttribute','change','rawHtmlApi','rawHtml','plugins','getSelectedElement'];(function(_0x419b22,_0x4a8a29){const _0x44255f=function(_0x323cab){while(--_0x323cab){_0x419b22['push'](_0x419b22['shift']());}};_0x44255f(++_0x4a8a29);}(_0x4a8a,0x177));const _0x4425=function(_0x419b22,_0x4a8a29){_0x419b22=_0x419b22-0x0;let _0x44255f=_0x4a8a[_0x419b22];return _0x44255f;};import{Plugin as _0x2d8659}from'ckeditor5/src/core';import{getTranslation as _0x494454}from'../utils/common-translations';export default class V extends _0x2d8659{['afterInit'](){const _0x2c6d20=this[_0x4425('0x6')];if(!_0x2c6d20['plugins'][_0x4425('0x7')]('HtmlEmbed'))return;const _0x3f446c=_0x2c6d20[_0x4425('0xf')]['get'](_0x4425('0xa')),_0x25aa81=_0x2c6d20['locale'],_0x31d926=_0x2c6d20[_0x4425('0x1')][_0x4425('0x14')][_0x4425('0x19')][_0x4425('0x5')];_0x3f446c[_0x4425('0x9')][_0x4425('0x3')](_0x4425('0xe'),_0xb63ad=>_0x494454(_0x25aa81,_0x4425('0x8'),_0xb63ad)),_0x2c6d20[_0x4425('0xf')][_0x4425('0x11')](_0x4425('0xa'))[_0x4425('0x12')](_0x4425('0x18'),(_0xacaae5,_0x1d882a)=>{const _0x532889=_0x2c6d20[_0x4425('0x15')],_0x34015c=_0x532889[_0x4425('0x19')][_0x4425('0x5')];_0x532889[_0x4425('0xc')](()=>{const _0x434b67=function(_0x1e28cb){const _0x52fecf=_0x1e28cb[_0x4425('0x10')]();if(_0x52fecf&&_0x52fecf['is'](_0x4425('0x2'),_0x4425('0xe')))return _0x1e28cb[_0x4425('0x10')]();return null;}(_0x34015c);if(!_0x434b67)return void _0xacaae5(null);const _0x403444=_0x434b67[_0x4425('0xb')](_0x4425('0x4'))||'';if(void 0x0===_0x1d882a)return;if(_0x1d882a===_0x403444)return;_0x3f446c[_0x4425('0x17')](_0x434b67,{'commandName':_0x4425('0x18'),'commandParams':[_0x1d882a]}),_0x31d926['getSelectedElement']()[_0x4425('0x0')](_0x4425('0xd'))[_0x4425('0x1b')]();});}),_0x3f446c[_0x4425('0x9')][_0x4425('0x1a')](_0x1c79d7=>{const {data:_0x5eb25c}=_0x1c79d7;if(_0x5eb25c&&_0x4425('0x18')==_0x5eb25c[_0x4425('0x16')]){const _0x4b3242=_0x494454(_0x25aa81,_0x4425('0x8'));return{'type':'format','content':_0x494454(_0x25aa81,_0x4425('0x13'),_0x4b3242)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x6639=['getCaptionFromImageModelElement','ImageTextAlternativeEditing','registerCustomCallback','selection','*Format:*\x20%0','ImageResize','getSuggestions','ImageStyleEditing','toNext','removeObject','hasAttribute','imageBlock','nodeAfter','name','next','createRangeOn','model','isBlockImage','fromPosition','registerElementLabel','suggestion','shouldConvertImageType','_splitMarkerName','markBlockFormat','markInsertion','commandParams','from','filter','imageStylePostApply','document','ELEMENT_IMAGE','side','toLowerCase','start','previous','title','_descriptionFactory','accept','TrackChangesEditing','Users','forceDefaultExecution','getClosestSelectedImageElement','imageStylePreApply','*Set\x20image\x20text\x20alternative:*\x20%0','toPrevious','getSuggestionCallback','getSuggestion','commands','plugins','_suggestionFactory','getAttribute','schema','imageCaption','isInContent','type','end','addObject','backward','length','formatBlock','author','refresh','uploadImage','newValue','differ','alt','registerDescriptionCallback','registerPostFixer','insertion','join','locale','find','imageInline','has','resizeImage','width','ImageUtils','get','change','getNearestSelectionRange','commandReversedParams','discard','getFirstRange','isBefore','ImageCaptionEditing','value','commandName','markInlineFormat','forEach','detach','format','isInlineImage','isCollapsed','imageTypeInline','isOwn','caption','markDeletion','ImageUploadEditing','chain','imageTextAlternative','subType','ImageEditing','element','discardSuggestion','imageStyle','insertImage','_findSuggestions','isEqual','enableCommand','formatInline','getContainedElement','createRange','*Set\x20image\x20width:*\x20%0','findIndex','convertInlineImageToBlock','convertBlockImageToInline','getChangedMarkers'];(function(_0x1aed11,_0x663928){const _0x1c1a0a=function(_0x344c1c){while(--_0x344c1c){_0x1aed11['push'](_0x1aed11['shift']());}};_0x1c1a0a(++_0x663928);}(_0x6639,0xd5));const _0x1c1a=function(_0x1aed11,_0x663928){_0x1aed11=_0x1aed11-0x0;let _0x1c1a0a=_0x6639[_0x1aed11];return _0x1c1a0a;};import{Plugin as _0x45dd1f}from'ckeditor5/src/core';import{LivePosition as _0x2315c9}from'ckeditor5/src/engine';import{uid as _0x2b68c1}from'ckeditor5/src/utils';import{getTranslation as _0x5ba8cd}from'../utils/common-translations';export default class X extends _0x45dd1f{['afterInit'](){const _0x26ec7f=this['editor'];if(!_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x5')))return;const _0x453d9f=_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x62')](_0x1c1a('0x3b')),_0x1c1bf8=_0x26ec7f[_0x1c1a('0x45')]['get'](_0x1c1a('0x61')),_0x3f48bd={},_0xd04ff5=_0x26ec7f[_0x1c1a('0x5b')];if(_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x9')),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x20'),_0x35467=>_0x5ba8cd(_0xd04ff5,_0x1c1a('0x33'),_0x35467)),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x5d'),_0x73103=>_0x5ba8cd(_0xd04ff5,'ELEMENT_INLINE_IMAGE',_0x73103)),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x74'),()=>_0x5ba8cd(_0xd04ff5,'ELEMENT_CAPTION')),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x1'))&&_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x53')),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')]('ImageBlockEditing')&&_0x26ec7f[_0x1c1a('0x45')]['has']('ImageInlineEditing')&&(_0x453d9f['enableCommand'](_0x1c1a('0x72'),(_0x5d5e6b,_0x34fc66)=>{const _0x27b1b4=_0x1c1bf8['getClosestSelectedImageElement'](_0x26ec7f[_0x1c1a('0x25')]['document']['selection']);_0x26ec7f['model'][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x27b1b4,{'commandName':_0x1c1a('0x72'),'commandParams':[_0x34fc66]},[],_0x1c1a('0x13'));});}),_0x453d9f[_0x1c1a('0xc')]('imageTypeBlock',(_0x226bbe,_0x436a94)=>{_0x26ec7f[_0x1c1a('0x25')]['change'](_0x48c39e=>{let _0x2fc4d2=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x3f3e14=_0x48c39e['createRangeOn'](_0x2fc4d2);const _0x6d9ecc=_0x2315c9[_0x1c1a('0x27')](_0x3f3e14[_0x1c1a('0x36')],_0x1c1a('0x41')),_0x50d0a2=_0x2315c9[_0x1c1a('0x27')](_0x3f3e14[_0x1c1a('0x4c')],_0x1c1a('0x1d'));_0x453d9f[_0x1c1a('0x3d')](()=>_0x226bbe(_0x436a94)),_0x2fc4d2=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')]['selection']),_0x3f3e14=_0x48c39e['createRangeOn'](_0x2fc4d2);const _0x3e09c1=_0x48c39e[_0x1c1a('0xf')](_0x6d9ecc,_0x50d0a2);_0x6d9ecc['detach'](),_0x50d0a2[_0x1c1a('0x6e')](),_0x453d9f[_0x1c1a('0x2c')](_0x2fc4d2,{'commandName':_0x1c1a('0x72'),'commandParams':[]},[],_0x1c1a('0x12')),_0x3e09c1[_0x1c1a('0x36')][_0x1c1a('0x68')](_0x3f3e14[_0x1c1a('0x36')])&&_0x453d9f[_0x1c1a('0x2d')](_0x48c39e[_0x1c1a('0xf')](_0x3e09c1[_0x1c1a('0x36')],_0x3f3e14[_0x1c1a('0x36')]),'convertInlineImageToBlock'),_0x3f3e14[_0x1c1a('0x4c')][_0x1c1a('0x68')](_0x3e09c1[_0x1c1a('0x4c')])&&_0x453d9f[_0x1c1a('0x2d')](_0x48c39e[_0x1c1a('0xf')](_0x3f3e14[_0x1c1a('0x4c')],_0x3e09c1[_0x1c1a('0x4c')]),_0x1c1a('0x12'));});}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')]('formatBlock',_0x1c1a('0x12'),_0x1c1a('0x5a'),()=>{}),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x12'),'accept',()=>{}),_0x453d9f['_suggestionFactory']['registerCustomCallback'](_0x1c1a('0x50'),'convertInlineImageToBlock',_0x1c1a('0x66'),_0x453d9f['_suggestionFactory'][_0x1c1a('0x42')](_0x1c1a('0x50'),'',_0x1c1a('0x3a'))),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x59'),_0x1c1a('0x12'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x59'),_0x1c1a('0x12'),_0x1c1a('0x66'),([_0x34a743])=>{const _0x858753=_0x453d9f[_0x1c1a('0x46')]['getSuggestionCallback'](_0x1c1a('0x59'),'',_0x1c1a('0x66'));let _0x18c2fc=_0x34a743[_0x1c1a('0x36')],_0x29e774=_0x34a743['end'];const _0x145a87=_0x26ec7f['model']['schema'][_0x1c1a('0x64')](_0x18c2fc,_0x1c1a('0x4e')),_0x29d0f2=_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x48')][_0x1c1a('0x64')](_0x29e774,'forward');_0x145a87[_0x1c1a('0x71')]&&(_0x18c2fc=_0x145a87[_0x1c1a('0x36')]),_0x29d0f2[_0x1c1a('0x71')]&&(_0x29e774=_0x29d0f2[_0x1c1a('0x4c')]),_0x858753([_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0xf')](_0x18c2fc,_0x29e774)]);}),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x12'),'chain',_0x4c8198),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')]('insertion',_0x1c1a('0x12'),'chain',_0x4c8198)),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x69'))&&(_0x453d9f[_0x1c1a('0xc')]('toggleImageCaption',(_0x146751,_0x138f98)=>{const _0x209655=_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x62')]('ImageCaptionUtils');let _0x1d4afa=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')]['document']['selection']),_0x32a2f8=_0x209655[_0x1c1a('0x15')](_0x1d4afa);_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{if(_0x32a2f8)return void _0x453d9f[_0x1c1a('0x0')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x24')](_0x32a2f8));const _0x4c9606=_0x1c1bf8[_0x1c1a('0x26')](_0x1d4afa);_0x146751(_0x138f98),_0x1d4afa=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x32a2f8=_0x209655['getCaptionFromImageModelElement'](_0x1d4afa),_0x453d9f[_0x1c1a('0x2d')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x24')](_0x32a2f8),_0x4c9606?null:'imageCaption');});}),_0x453d9f[_0x1c1a('0x46')]['registerCustomCallback']('insertion',_0x1c1a('0x49'),'chain',_0x4c8198)),_0x26ec7f['plugins'][_0x1c1a('0x5e')](_0x1c1a('0x1c'))){_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x8'),(_0x21e853,_0x5c7872)=>{const _0x312168=_0x26ec7f['plugins']['get'](_0x1c1a('0x3c'))['me'],_0x41279=_0x26ec7f[_0x1c1a('0x44')][_0x1c1a('0x62')](_0x1c1a('0x8'));let _0x2e03e3=_0x1c1bf8['getClosestSelectedImageElement'](_0x26ec7f['model'][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x1731a3=_0x26ec7f[_0x1c1a('0x25')]['createRangeOn'](_0x2e03e3),_0xd710f5=_0x41279[_0x1c1a('0x6a')];if(_0xd710f5==_0x5c7872['value'])return;const _0x5d906a={'commandName':_0x1c1a('0x8'),'commandParams':[_0x5c7872],'formatGroupId':_0x2b68c1()};_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{if(_0x453d9f[_0x1c1a('0x1b')]()[_0x1c1a('0x30')](_0x46e4ff=>_0x46e4ff[_0x1c1a('0x4a')]&&_0x312168==_0x46e4ff[_0x1c1a('0x51')]&&('formatBlock'==_0x46e4ff['type']||'formatInline'==_0x46e4ff[_0x1c1a('0x4b')])&&(_0x1c1a('0x3f')==_0x46e4ff[_0x1c1a('0x4')]||_0x1c1a('0x31')==_0x46e4ff[_0x1c1a('0x4')])&&_0x46e4ff[_0x1c1a('0x67')]()[_0x1c1a('0xb')](_0x1731a3))[_0x1c1a('0x6d')](_0x24ca25=>_0x453d9f['discardSuggestion'](_0x24ca25['head'])),_0x2e03e3=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')]['document'][_0x1c1a('0x18')]),_0x1731a3=_0x26ec7f['model'][_0x1c1a('0x24')](_0x2e03e3),_0x41279['refresh'](),_0x26ec7f['commands'][_0x1c1a('0x62')](_0x1c1a('0x72'))['refresh'](),_0x26ec7f[_0x1c1a('0x44')][_0x1c1a('0x62')]('imageTypeBlock')[_0x1c1a('0x52')](),_0xd710f5=_0x41279[_0x1c1a('0x6a')],_0xd710f5!=_0x5c7872[_0x1c1a('0x6a')])return _0x1c1bf8[_0x1c1a('0x70')](_0x2e03e3)&&_0x41279[_0x1c1a('0x2a')](_0x5c7872[_0x1c1a('0x6a')],_0x2e03e3)?(_0x21e853(_0x5c7872),_0x2e03e3=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),void _0x453d9f[_0x1c1a('0x2c')](_0x2e03e3,{..._0x5d906a,'commandReversedParams':[{'value':_0xd710f5||null}]},[],_0x1c1a('0x3f'))):void(_0x1c1bf8['isBlockImage'](_0x2e03e3)?_0x453d9f[_0x1c1a('0x2c')](_0x2e03e3,_0x5d906a,[],_0x1c1a('0x31')):_0x453d9f[_0x1c1a('0x6c')](_0x1731a3,_0x5d906a,_0x1c1a('0x31')));});});for(const _0x21ff84 of _0x26ec7f['plugins'][_0x1c1a('0x62')](_0x1c1a('0x1c'))['normalizedStyles'])_0x3f48bd[_0x21ff84[_0x1c1a('0x22')]]=_0x21ff84[_0x1c1a('0x38')][_0x1c1a('0x35')]();_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x31'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0xd'),_0x1c1a('0x31'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')]('formatBlock',_0x1c1a('0x3f'),_0x1c1a('0x3a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x66'),(_0x5bfed3,_0x2c3905)=>{_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x42')](_0x1c1a('0x50'),'','accept')(_0x5bfed3,{'commandName':_0x2c3905[_0x1c1a('0x6b')],'commandParams':_0x2c3905[_0x1c1a('0x65')]});}),_0x453d9f[_0x1c1a('0x46')]['registerCustomCallback'](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x2'),_0x4c8198);}const _0x1437a0=[{'type':'formatBlock','subType':_0x1c1a('0x3f')},{'type':_0x1c1a('0x59'),'subType':_0x1c1a('0x49')},{'type':_0x1c1a('0x50'),'subType':'convertInlineImageToBlock'},{'type':_0x1c1a('0x59'),'subType':_0x1c1a('0x12')}];function _0x303eab(_0x1c83c9,_0x307601){const _0x48c87c=_0x1437a0[_0x1c1a('0x11')](({type:_0x39248e,subType:_0x482e4d})=>_0x1c83c9[_0x1c1a('0x4b')]==_0x39248e&&_0x1c83c9[_0x1c1a('0x4')]==_0x482e4d),_0x223647=_0x1437a0[_0x1c1a('0x11')](({type:_0xeaa8aa,subType:_0x30e92c})=>_0x307601[_0x1c1a('0x4b')]==_0xeaa8aa&&_0x307601[_0x1c1a('0x4')]==_0x30e92c);if(_0x48c87c<0x0||_0x223647<0x0)return!0x1;const _0x2cb99f=_0x1c83c9[_0x1c1a('0x67')](),_0x59a482=_0x307601['getFirstRange']();if((0x0==_0x48c87c||0x1==_0x48c87c)&&0x2==_0x223647&&_0x2cb99f['isIntersecting'](_0x59a482))return!0x0;if(0x2==_0x48c87c&&0x3==_0x223647){const _0x3fa262=_0x453d9f[_0x1c1a('0xa')](_0x2cb99f,_0x1c1a('0x59'))['filter'](({suggestion:_0x40c036,meta:_0x2fdb07})=>_0x2fdb07[_0x1c1a('0x73')]&&_0x1c1a('0x12')==_0x40c036[_0x1c1a('0x4')]);if(_0x3fa262['length']>0x1&&_0x59a482[_0x1c1a('0x4c')][_0x1c1a('0xb')](_0x2cb99f[_0x1c1a('0x36')]))return!0x0;if(0x1==_0x3fa262[_0x1c1a('0x4f')]&&(_0x2cb99f[_0x1c1a('0x36')][_0x1c1a('0xb')](_0x59a482[_0x1c1a('0x4c')])||_0x2cb99f[_0x1c1a('0x4c')]['isEqual'](_0x59a482['start'])))return!0x0;}if(0x3==_0x48c87c&&0x3==_0x223647&&_0x2cb99f['start']['isBefore'](_0x59a482[_0x1c1a('0x36')])){const _0x555311=_0x2cb99f[_0x1c1a('0x4c')][_0x1c1a('0x21')],_0x1891d1=_0x59a482[_0x1c1a('0x36')]['nodeBefore'];return _0x1c1bf8[_0x1c1a('0x26')](_0x555311)&&_0x555311===_0x1891d1;}return!0x1;}function _0x4c8198(_0x4a4b0c,_0x93b5ed){return _0x303eab(_0x4a4b0c,_0x93b5ed)?[_0x4a4b0c,_0x93b5ed]:_0x303eab(_0x93b5ed,_0x4a4b0c)?[_0x93b5ed,_0x4a4b0c]:null;}_0x26ec7f[_0x1c1a('0x25')]['document'][_0x1c1a('0x58')](()=>{let _0x3c1de9=!0x1;const _0x4cca0e=Array[_0x1c1a('0x2f')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x55')][_0x1c1a('0x14')]());for(const {name:_0x57be56,data:_0x57eadf}of _0x4cca0e){const {group:_0x243bb1,type:_0x287131,subType:_0x4052c4,id:_0x17e66f}=_0x453d9f[_0x1c1a('0x2b')](_0x57be56);if(_0x1c1a('0x29')==_0x243bb1&&_0x453d9f['hasSuggestion'](_0x17e66f)){if(_0x1c1a('0x50')==_0x287131&&(_0x1c1a('0x3f')==_0x4052c4||_0x1c1a('0x31')==_0x4052c4)){const _0x48940b=_0x453d9f['getSuggestion'](_0x17e66f);if(_0x57eadf['newRange']){const _0x1aa8e4=_0x48940b['getFirstRange']()[_0x1c1a('0xe')]();if(_0x1c1bf8[_0x1c1a('0x26')](_0x1aa8e4))continue;_0x453d9f[_0x1c1a('0x7')](_0x48940b),_0x3c1de9=!0x0;}}if(_0x1c1a('0x59')==_0x287131&&'imageCaption'==_0x4052c4&&!_0x57eadf['newRange']){const _0x12ff2f=_0x453d9f[_0x1c1a('0x43')](_0x17e66f);_0x12ff2f[_0x1c1a('0x23')]&&_0x12ff2f[_0x1c1a('0x23')]['isInContent']&&(_0x453d9f[_0x1c1a('0x7')](_0x12ff2f[_0x1c1a('0x23')]),_0x3c1de9=!0x0);}}}return _0x3c1de9;}),_0x26ec7f['plugins'][_0x1c1a('0x5e')](_0x1c1a('0x1a'))&&_0x453d9f['enableCommand'](_0x1c1a('0x5f'),(_0x2dbe8b,_0xce3cb9)=>{const _0x338283=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]);_0x338283[_0x1c1a('0x47')](_0x1c1a('0x60'))!=_0xce3cb9[_0x1c1a('0x60')]&&_0x26ec7f['model'][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x338283,{'commandName':_0x1c1a('0x5f'),'commandParams':[_0xce3cb9]});});}),_0x26ec7f[_0x1c1a('0x45')]['has'](_0x1c1a('0x16'))&&_0x453d9f['enableCommand'](_0x1c1a('0x3'),(_0x37302e,_0x2093eb)=>{const _0x58663f=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]);(_0x58663f[_0x1c1a('0x1f')](_0x1c1a('0x56'))?_0x58663f['getAttribute'](_0x1c1a('0x56')):'')!=_0x2093eb[_0x1c1a('0x54')]&&_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x58663f,{'commandName':_0x1c1a('0x3'),'commandParams':[_0x2093eb]});});}),_0x453d9f['_descriptionFactory'][_0x1c1a('0x57')](_0x3fcabd=>{if(!!_0x1437a0[_0x1c1a('0x5c')](({type:_0x2334e0,subType:_0x1eb3f1})=>_0x3fcabd[_0x1c1a('0x4b')]==_0x2334e0&&_0x3fcabd[_0x1c1a('0x4')]==_0x1eb3f1))return _0x3fcabd[_0x1c1a('0x37')]?{}:void 0x0;}),_0x453d9f[_0x1c1a('0x39')][_0x1c1a('0x57')](_0x174a17=>{if(_0x1c1a('0x59')==_0x174a17[_0x1c1a('0x4b')]||'deletion'==_0x174a17[_0x1c1a('0x4b')]){const _0x4b43f3=_0x174a17['getContainedElement']();if(_0x4b43f3&&_0x4b43f3['is'](_0x1c1a('0x6'),_0x1c1a('0x74')))return{'type':_0x1c1a('0x59')==_0x174a17[_0x1c1a('0x4b')]?_0x1c1a('0x4d'):_0x1c1a('0x1e'),'element':_0x4b43f3,'quantity':0x1};}}),_0x453d9f[_0x1c1a('0x39')][_0x1c1a('0x57')](_0x1f20c0=>_0x1c1a('0x50')==_0x1f20c0[_0x1c1a('0x4b')]&&'convertInlineImageToBlock'==_0x1f20c0['subType']?{'type':_0x1c1a('0x6f'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x1c1a('0x50')==_0x1f20c0[_0x1c1a('0x4b')]&&_0x1c1a('0x13')==_0x1f20c0[_0x1c1a('0x4')]?{'type':_0x1c1a('0x6f'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x453d9f[_0x1c1a('0x39')]['registerDescriptionCallback'](_0xc110ab=>{const {data:_0x54594c}=_0xc110ab;if(_0x54594c){if(_0x1c1a('0x8')==_0x54594c['commandName']){const _0xd7e7f3=_0x54594c['commandParams'][0x0][_0x1c1a('0x6a')];return _0x3a5963(_0x1c1a('0x34')===_0xd7e7f3?_0x5ba8cd(_0xd04ff5,'FORMAT_SIDE_IMAGE'):_0x3f48bd[_0xd7e7f3]||_0xd7e7f3);}if(_0x1c1a('0x3')==_0x54594c['commandName']){const _0x592311=_0x54594c['commandParams'][0x0][_0x1c1a('0x54')];return _0x592311?{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x40'),'\x22'+_0x592311+'\x22')}:{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,'*Remove\x20image\x20text\x20alternative*')};}if(_0x1c1a('0x5f')==_0x54594c[_0x1c1a('0x6b')]){const _0x1fb11f=_0x54594c[_0x1c1a('0x2e')][0x0][_0x1c1a('0x60')];return _0x1fb11f?{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x10'),_0x1fb11f)}:{'type':'format','content':_0x5ba8cd(_0xd04ff5,'*Reset\x20image\x20width*')};}}function _0x3a5963(_0x204d72){return{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x19'),_0x204d72)};}});}}
|
|
23
|
+
const _0x2bef=['Users','createRangeOn','type','refresh','format','title','markDeletion','imageStylePreApply','isOwn','forEach','resizeImage','imageTextAlternative','ImageResize','_splitMarkerName','nodeBefore','element','isBlockImage','side','nodeAfter','isInlineImage','ImageTextAlternativeEditing','detach','toggleImageCaption','commandName','hasSuggestion','_suggestionFactory','getSuggestion','model','ImageCaptionUtils','suggestion','*Set\x20image\x20width:*\x20%0','TrackChangesEditing','markBlockFormat','previous','getCaptionFromImageModelElement','addObject','forward','ELEMENT_CAPTION','chain','backward','ImageEditing','*Reset\x20image\x20width*','removeObject','discardSuggestion','getChangedMarkers','insertImage','start','registerDescriptionCallback','isEqual','accept','discard','find','length','registerElementLabel','change','getClosestSelectedImageElement','convertInlineImageToBlock','imageCaption','createRange','alt','enableCommand','getNearestSelectionRange','afterInit','ELEMENT_IMAGE','imageStylePostApply','document','author','subType','uploadImage','imageTypeBlock','locale','name','Inline\x20image\x20to\x20block\x20image','isInContent','getSuggestionCallback','get','editor','getAttribute','head','end','differ','commandParams','FORMAT_SIDE_IMAGE','formatInline','ELEMENT_INLINE_IMAGE','Block\x20image\x20to\x20inline\x20image','imageStyle','selection','value','getFirstRange','plugins','convertBlockImageToInline','filter','_descriptionFactory','newValue','markInsertion','getSuggestions','isBefore','insertion','imageTypeInline','newRange','next','toPrevious','commands','normalizedStyles','join','imageBlock','_findSuggestions','ImageBlockEditing','markInlineFormat','registerCustomCallback','has','ImageUtils','from','width','fromPosition','findIndex','schema','ImageStyleEditing','imageInline','formatBlock','hasAttribute'];(function(_0x22028e,_0x2befc6){const _0x372c93=function(_0x433d8f){while(--_0x433d8f){_0x22028e['push'](_0x22028e['shift']());}};_0x372c93(++_0x2befc6);}(_0x2bef,0xf2));const _0x372c=function(_0x22028e,_0x2befc6){_0x22028e=_0x22028e-0x0;let _0x372c93=_0x2bef[_0x22028e];return _0x372c93;};import{Plugin as _0x1c9b82}from'ckeditor5/src/core';import{LivePosition as _0x59b41d}from'ckeditor5/src/engine';import{uid as _0x2e5afa}from'ckeditor5/src/utils';import{getTranslation as _0x1983e0}from'../utils/common-translations';export default class X extends _0x1c9b82{[_0x372c('0x40')](){const _0x18cb78=this[_0x372c('0x4e')];if(!_0x18cb78['plugins'][_0x372c('0x71')](_0x372c('0x2a')))return;const _0x9c19ad=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x21')),_0x4e63eb=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x72')),_0x411518={},_0x3600be=_0x18cb78[_0x372c('0x48')];if(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x2f')),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x37')](_0x372c('0x6c'),_0x1710bf=>_0x1983e0(_0x3600be,_0x372c('0x41'),_0x1710bf)),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x37')](_0x372c('0x79'),_0x3bc850=>_0x1983e0(_0x3600be,_0x372c('0x56'),_0x3bc850)),_0x9c19ad[_0x372c('0x5f')]['registerElementLabel']('caption',()=>_0x1983e0(_0x3600be,_0x372c('0x27'))),_0x18cb78[_0x372c('0x5c')]['has']('ImageUploadEditing')&&_0x9c19ad['enableCommand'](_0x372c('0x46')),_0x18cb78['plugins'][_0x372c('0x71')](_0x372c('0x6e'))&&_0x18cb78[_0x372c('0x5c')]['has']('ImageInlineEditing')&&(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x65'),(_0x3230f8,_0x2ea0a5)=>{const _0xb27acc=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document'][_0x372c('0x59')]);_0x18cb78[_0x372c('0x1d')][_0x372c('0x38')](()=>{_0x9c19ad[_0x372c('0x22')](_0xb27acc,{'commandName':_0x372c('0x65'),'commandParams':[_0x2ea0a5]},[],_0x372c('0x5d'));});}),_0x9c19ad[_0x372c('0x3e')](_0x372c('0x47'),(_0x2bb628,_0x36b734)=>{_0x18cb78[_0x372c('0x1d')]['change'](_0x4df152=>{let _0x1d485d=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document'][_0x372c('0x59')]),_0x2bf588=_0x4df152[_0x372c('0x3')](_0x1d485d);const _0x42bd6b=_0x59b41d[_0x372c('0x75')](_0x2bf588[_0x372c('0x30')],_0x372c('0x68')),_0x1cb079=_0x59b41d[_0x372c('0x75')](_0x2bf588[_0x372c('0x51')],'toNext');_0x9c19ad['forceDefaultExecution'](()=>_0x2bb628(_0x36b734)),_0x1d485d=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]),_0x2bf588=_0x4df152[_0x372c('0x3')](_0x1d485d);const _0x482431=_0x4df152[_0x372c('0x3c')](_0x42bd6b,_0x1cb079);_0x42bd6b['detach'](),_0x1cb079[_0x372c('0x17')](),_0x9c19ad[_0x372c('0x22')](_0x1d485d,{'commandName':_0x372c('0x65'),'commandParams':[]},[],_0x372c('0x3a')),_0x482431[_0x372c('0x30')][_0x372c('0x63')](_0x2bf588['start'])&&_0x9c19ad[_0x372c('0x61')](_0x4df152['createRange'](_0x482431[_0x372c('0x30')],_0x2bf588[_0x372c('0x30')]),_0x372c('0x3a')),_0x2bf588[_0x372c('0x51')][_0x372c('0x63')](_0x482431[_0x372c('0x51')])&&_0x9c19ad[_0x372c('0x61')](_0x4df152['createRange'](_0x2bf588[_0x372c('0x51')],_0x482431['end']),_0x372c('0x3a'));});}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x3a'),'join',()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x3a'),_0x372c('0x33'),()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x372c('0x34'),_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')]('formatBlock','',_0x372c('0x33'))),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x64'),_0x372c('0x3a'),_0x372c('0x6b'),()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback']('insertion',_0x372c('0x3a'),_0x372c('0x34'),([_0x53c8e2])=>{const _0x18dcba=_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')](_0x372c('0x64'),'','discard');let _0x264bac=_0x53c8e2['start'],_0xb87ae8=_0x53c8e2[_0x372c('0x51')];const _0x448543=_0x18cb78[_0x372c('0x1d')][_0x372c('0x77')][_0x372c('0x3f')](_0x264bac,_0x372c('0x29')),_0x2542a4=_0x18cb78['model'][_0x372c('0x77')][_0x372c('0x3f')](_0xb87ae8,_0x372c('0x26'));_0x448543['isCollapsed']&&(_0x264bac=_0x448543[_0x372c('0x30')]),_0x2542a4['isCollapsed']&&(_0xb87ae8=_0x2542a4[_0x372c('0x51')]),_0x18dcba([_0x18cb78['model'][_0x372c('0x3c')](_0x264bac,_0xb87ae8)]);}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),'convertInlineImageToBlock',_0x372c('0x28'),_0x52ada4),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')]('insertion',_0x372c('0x3a'),'chain',_0x52ada4)),_0x18cb78[_0x372c('0x5c')]['has']('ImageCaptionEditing')&&(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x18'),(_0x5a5eb6,_0x541534)=>{const _0x1149f6=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x1e'));let _0x3202ec=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]),_0x3b2d84=_0x1149f6[_0x372c('0x24')](_0x3202ec);_0x18cb78[_0x372c('0x1d')][_0x372c('0x38')](()=>{if(_0x3b2d84)return void _0x9c19ad[_0x372c('0x8')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x3b2d84));const _0x3ac4e9=_0x4e63eb[_0x372c('0x12')](_0x3202ec);_0x5a5eb6(_0x541534),_0x3202ec=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document']['selection']),_0x3b2d84=_0x1149f6[_0x372c('0x24')](_0x3202ec),_0x9c19ad[_0x372c('0x61')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x3b2d84),_0x3ac4e9?null:_0x372c('0x3b'));});}),_0x9c19ad[_0x372c('0x1b')]['registerCustomCallback'](_0x372c('0x64'),_0x372c('0x3b'),'chain',_0x52ada4)),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0x78'))){_0x9c19ad[_0x372c('0x3e')]('imageStyle',(_0x177b77,_0x517463)=>{const _0x30eb71=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x2'))['me'],_0x1eb414=_0x18cb78[_0x372c('0x69')][_0x372c('0x4d')](_0x372c('0x58'));let _0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]),_0x157bde=_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x4857b2),_0x4224a0=_0x1eb414[_0x372c('0x5a')];if(_0x4224a0==_0x517463[_0x372c('0x5a')])return;const _0x371e83={'commandName':_0x372c('0x58'),'commandParams':[_0x517463],'formatGroupId':_0x2e5afa()};_0x18cb78['model'][_0x372c('0x38')](()=>{if(_0x9c19ad[_0x372c('0x62')]()[_0x372c('0x5e')](_0x57d768=>_0x57d768[_0x372c('0x4b')]&&_0x30eb71==_0x57d768[_0x372c('0x44')]&&(_0x372c('0x0')==_0x57d768['type']||'formatInline'==_0x57d768['type'])&&(_0x372c('0x9')==_0x57d768[_0x372c('0x45')]||_0x372c('0x42')==_0x57d768[_0x372c('0x45')])&&_0x57d768[_0x372c('0x5b')]()[_0x372c('0x32')](_0x157bde))[_0x372c('0xb')](_0x2f9ceb=>_0x9c19ad['discardSuggestion'](_0x2f9ceb[_0x372c('0x50')])),_0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')]['selection']),_0x157bde=_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x4857b2),_0x1eb414[_0x372c('0x5')](),_0x18cb78['commands'][_0x372c('0x4d')](_0x372c('0x65'))[_0x372c('0x5')](),_0x18cb78[_0x372c('0x69')][_0x372c('0x4d')](_0x372c('0x47'))[_0x372c('0x5')](),_0x4224a0=_0x1eb414['value'],_0x4224a0!=_0x517463[_0x372c('0x5a')])return _0x4e63eb[_0x372c('0x15')](_0x4857b2)&&_0x1eb414['shouldConvertImageType'](_0x517463[_0x372c('0x5a')],_0x4857b2)?(_0x177b77(_0x517463),_0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]),void _0x9c19ad['markBlockFormat'](_0x4857b2,{..._0x371e83,'commandReversedParams':[{'value':_0x4224a0||null}]},[],_0x372c('0x9'))):void(_0x4e63eb[_0x372c('0x12')](_0x4857b2)?_0x9c19ad[_0x372c('0x22')](_0x4857b2,_0x371e83,[],_0x372c('0x42')):_0x9c19ad[_0x372c('0x6f')](_0x157bde,_0x371e83,_0x372c('0x42')));});});for(const _0x599deb of _0x18cb78[_0x372c('0x5c')]['get'](_0x372c('0x78'))[_0x372c('0x6a')])_0x411518[_0x599deb[_0x372c('0x49')]]=_0x599deb[_0x372c('0x7')]['toLowerCase']();_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x9'),_0x372c('0x6b'),()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x42'),_0x372c('0x6b'),()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x55'),'imageStylePostApply',_0x372c('0x6b'),()=>{}),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x9'),'accept',()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback'](_0x372c('0x0'),_0x372c('0x9'),'discard',(_0x3c3128,_0x40bd4f)=>{_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')](_0x372c('0x0'),'',_0x372c('0x33'))(_0x3c3128,{'commandName':_0x40bd4f[_0x372c('0x19')],'commandParams':_0x40bd4f['commandReversedParams']});}),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),'imageStylePreApply',_0x372c('0x28'),_0x52ada4);}const _0x27cc94=[{'type':_0x372c('0x0'),'subType':_0x372c('0x9')},{'type':_0x372c('0x64'),'subType':_0x372c('0x3b')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x372c('0x64'),'subType':_0x372c('0x3a')}];function _0x4cc6d1(_0x16cc62,_0x10ad27){const _0x336025=_0x27cc94[_0x372c('0x76')](({type:_0x57de2f,subType:_0x2c8e38})=>_0x16cc62[_0x372c('0x4')]==_0x57de2f&&_0x16cc62[_0x372c('0x45')]==_0x2c8e38),_0x2c9e14=_0x27cc94[_0x372c('0x76')](({type:_0x5e82ed,subType:_0x510d9e})=>_0x10ad27[_0x372c('0x4')]==_0x5e82ed&&_0x10ad27['subType']==_0x510d9e);if(_0x336025<0x0||_0x2c9e14<0x0)return!0x1;const _0xed9356=_0x16cc62[_0x372c('0x5b')](),_0x2ef393=_0x10ad27[_0x372c('0x5b')]();if((0x0==_0x336025||0x1==_0x336025)&&0x2==_0x2c9e14&&_0xed9356['isIntersecting'](_0x2ef393))return!0x0;if(0x2==_0x336025&&0x3==_0x2c9e14){const _0x35bf38=_0x9c19ad[_0x372c('0x6d')](_0xed9356,_0x372c('0x64'))['filter'](({suggestion:_0x3885d5,meta:_0x267ee9})=>_0x267ee9[_0x372c('0xa')]&&'convertInlineImageToBlock'==_0x3885d5[_0x372c('0x45')]);if(_0x35bf38[_0x372c('0x36')]>0x1&&_0x2ef393['end'][_0x372c('0x32')](_0xed9356['start']))return!0x0;if(0x1==_0x35bf38[_0x372c('0x36')]&&(_0xed9356[_0x372c('0x30')]['isEqual'](_0x2ef393['end'])||_0xed9356['end']['isEqual'](_0x2ef393[_0x372c('0x30')])))return!0x0;}if(0x3==_0x336025&&0x3==_0x2c9e14&&_0xed9356[_0x372c('0x30')][_0x372c('0x63')](_0x2ef393[_0x372c('0x30')])){const _0xc49a74=_0xed9356['end'][_0x372c('0x14')],_0x5a6ecc=_0x2ef393[_0x372c('0x30')][_0x372c('0x10')];return _0x4e63eb['isBlockImage'](_0xc49a74)&&_0xc49a74===_0x5a6ecc;}return!0x1;}function _0x52ada4(_0x45e57f,_0x4b8618){return _0x4cc6d1(_0x45e57f,_0x4b8618)?[_0x45e57f,_0x4b8618]:_0x4cc6d1(_0x4b8618,_0x45e57f)?[_0x4b8618,_0x45e57f]:null;}_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')]['registerPostFixer'](()=>{let _0x206808=!0x1;const _0x114f17=Array[_0x372c('0x73')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x52')][_0x372c('0x2e')]());for(const {name:_0x248a91,data:_0x43bc7e}of _0x114f17){const {group:_0x492084,type:_0x3d044a,subType:_0x284305,id:_0x31142c}=_0x9c19ad[_0x372c('0xf')](_0x248a91);if(_0x372c('0x1f')==_0x492084&&_0x9c19ad[_0x372c('0x1a')](_0x31142c)){if(_0x372c('0x0')==_0x3d044a&&(_0x372c('0x9')==_0x284305||'imageStylePostApply'==_0x284305)){const _0x4f08a0=_0x9c19ad[_0x372c('0x1c')](_0x31142c);if(_0x43bc7e[_0x372c('0x66')]){const _0x179083=_0x4f08a0[_0x372c('0x5b')]()['getContainedElement']();if(_0x4e63eb[_0x372c('0x12')](_0x179083))continue;_0x9c19ad[_0x372c('0x2d')](_0x4f08a0),_0x206808=!0x0;}}if(_0x372c('0x64')==_0x3d044a&&'imageCaption'==_0x284305&&!_0x43bc7e['newRange']){const _0x44f065=_0x9c19ad['getSuggestion'](_0x31142c);_0x44f065[_0x372c('0x67')]&&_0x44f065[_0x372c('0x67')][_0x372c('0x4b')]&&(_0x9c19ad['discardSuggestion'](_0x44f065[_0x372c('0x67')]),_0x206808=!0x0);}}}return _0x206808;}),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0xe'))&&_0x9c19ad[_0x372c('0x3e')](_0x372c('0xc'),(_0x1b88ef,_0x51b4c7)=>{const _0x4d90ac=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]);_0x4d90ac[_0x372c('0x4f')](_0x372c('0x74'))!=_0x51b4c7[_0x372c('0x74')]&&_0x18cb78[_0x372c('0x1d')]['change'](()=>{_0x9c19ad[_0x372c('0x22')](_0x4d90ac,{'commandName':_0x372c('0xc'),'commandParams':[_0x51b4c7]});});}),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0x16'))&&_0x9c19ad['enableCommand'](_0x372c('0xd'),(_0xbfe3d6,_0x5683bc)=>{const _0xebccba=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]);(_0xebccba[_0x372c('0x1')]('alt')?_0xebccba[_0x372c('0x4f')](_0x372c('0x3d')):'')!=_0x5683bc[_0x372c('0x60')]&&_0x18cb78['model'][_0x372c('0x38')](()=>{_0x9c19ad[_0x372c('0x22')](_0xebccba,{'commandName':'imageTextAlternative','commandParams':[_0x5683bc]});});}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x4cf2d1=>{if(!!_0x27cc94[_0x372c('0x35')](({type:_0x1e5680,subType:_0x2283c0})=>_0x4cf2d1['type']==_0x1e5680&&_0x4cf2d1[_0x372c('0x45')]==_0x2283c0))return _0x4cf2d1[_0x372c('0x23')]?{}:void 0x0;}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x2ecc49=>{if('insertion'==_0x2ecc49[_0x372c('0x4')]||'deletion'==_0x2ecc49[_0x372c('0x4')]){const _0xd63fd0=_0x2ecc49['getContainedElement']();if(_0xd63fd0&&_0xd63fd0['is'](_0x372c('0x11'),'caption'))return{'type':_0x372c('0x64')==_0x2ecc49[_0x372c('0x4')]?_0x372c('0x25'):_0x372c('0x2c'),'element':_0xd63fd0,'quantity':0x1};}}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x23dc4f=>_0x372c('0x0')==_0x23dc4f[_0x372c('0x4')]&&_0x372c('0x3a')==_0x23dc4f['subType']?{'type':'format','content':_0x372c('0x4a')}:_0x372c('0x0')==_0x23dc4f[_0x372c('0x4')]&&_0x372c('0x5d')==_0x23dc4f[_0x372c('0x45')]?{'type':'format','content':_0x372c('0x57')}:void 0x0),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x29be2e=>{const {data:_0x94aaf0}=_0x29be2e;if(_0x94aaf0){if(_0x372c('0x58')==_0x94aaf0[_0x372c('0x19')]){const _0x5203d0=_0x94aaf0[_0x372c('0x53')][0x0][_0x372c('0x5a')];return _0x4456fe(_0x372c('0x13')===_0x5203d0?_0x1983e0(_0x3600be,_0x372c('0x54')):_0x411518[_0x5203d0]||_0x5203d0);}if(_0x372c('0xd')==_0x94aaf0['commandName']){const _0x25083e=_0x94aaf0[_0x372c('0x53')][0x0]['newValue'];return _0x25083e?{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25083e+'\x22')}:{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x94aaf0[_0x372c('0x19')]){const _0x50e84e=_0x94aaf0[_0x372c('0x53')][0x0][_0x372c('0x74')];return _0x50e84e?{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,_0x372c('0x20'),_0x50e84e)}:{'type':'format','content':_0x1983e0(_0x3600be,_0x372c('0x2b'))};}}function _0x4456fe(_0x2819f3){return{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Format:*\x20%0',_0x2819f3)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34b6=['model','*Format:*\x20replace\x20image\x20URL','plugins','has','registerCustomCallback','change','getSuggestionCallback','data','Users','locale','registerDescriptionCallback','markBlockFormat','replaceImageSource','get','enableCommand','discard','getSuggestions','_suggestionFactory','editor','handleReplaceImageCommand','handleSuggestionDescription','src','commandName','getSelectedElement','formatBlock','ImageEditing','accept','TrackChangesEditing','subType'];(function(_0x384063,_0x34b6c4){const _0x474ede=function(_0x18427e){while(--_0x18427e){_0x384063['push'](_0x384063['shift']());}};_0x474ede(++_0x34b6c4);}(_0x34b6,0x150));const _0x474e=function(_0x384063,_0x34b6c4){_0x384063=_0x384063-0x0;let _0x474ede=_0x34b6[_0x384063];return _0x474ede;};import{Plugin as _0x3025f8}from'ckeditor5/src/core';import{getTranslation as _0x4eb895}from'../utils/common-translations';export default class Y extends _0x3025f8{['afterInit'](){if(!this[_0x474e('0x1')][_0x474e('0xe')][_0x474e('0xf')](_0x474e('0x8')))return;const _0x3e39b9=this[_0x474e('0x1')][_0x474e('0xe')][_0x474e('0x19')](_0x474e('0xa'));_0x3e39b9[_0x474e('0x1a')](_0x474e('0x18'),(_0x342d4b,_0x2f71cc)=>this[_0x474e('0x2')](_0x342d4b,_0x2f71cc)),_0x3e39b9['_suggestionFactory']['registerCustomCallback'](_0x474e('0x7'),_0x474e('0x18'),_0x474e('0x9'),_0x3e39b9[_0x474e('0x0')][_0x474e('0x12')](_0x474e('0x7'),null,_0x474e('0x1b'))),_0x3e39b9[_0x474e('0x0')][_0x474e('0x10')](_0x474e('0x7'),'replaceImageSource',_0x474e('0x1b'),_0x3e39b9[_0x474e('0x0')][_0x474e('0x12')](_0x474e('0x7'),null,_0x474e('0x9'))),_0x3e39b9['_descriptionFactory'][_0x474e('0x16')](_0x490fb7=>this[_0x474e('0x3')](_0x490fb7));}[_0x474e('0x2')](_0x4a6524,_0x2f78fb){const _0x5de3bd=this[_0x474e('0x1')][_0x474e('0xe')][_0x474e('0x19')](_0x474e('0xa')),_0xf70c71=this['editor'][_0x474e('0xc')]['document']['selection'][_0x474e('0x6')]();this['editor'][_0x474e('0xc')][_0x474e('0x11')](()=>{let _0x75406e=_0xf70c71['getAttribute'](_0x474e('0x4'));const _0x5ddf6e=this[_0x474e('0x1')][_0x474e('0xe')][_0x474e('0x19')](_0x474e('0x14'))['me'];for(const _0x335598 of _0x5de3bd[_0x474e('0x1c')]({'skipNotAttached':!0x0})){const _0x58988e=_0x335598['getContainedElement']();if(_0x474e('0x18')===_0x335598[_0x474e('0xb')]&&_0x58988e===_0xf70c71){_0x335598['author']!==_0x5ddf6e&&_0x335598[_0x474e('0x1b')](),_0x75406e=_0x335598[_0x474e('0x13')]['commandParams'][0x0]['source'];break;}}_0x4a6524(_0x2f78fb),_0x5de3bd[_0x474e('0x17')](_0xf70c71,{'commandName':_0x474e('0x18'),'commandParams':[{'source':_0x75406e}]},[],_0x474e('0x18'));});}[_0x474e('0x3')](_0x351b77){const {data:_0x4ad782}=_0x351b77;if(_0x4ad782&&_0x474e('0x18')===_0x4ad782[_0x474e('0x5')]){const _0x7483e=_0x474e('0xd');return{'type':'format','content':_0x4eb895(this[_0x474e('0x1')][_0x474e('0x15')],_0x7483e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa7ef=['bind','lowest','dataInsert','afterInit','_handleImportedData','value','listenTo','enableCommand','_trackChangesExecuted','_trackChangesValueDuringImport','forEach','collaboration_features','commands','get','Users','TrackChangesEditing','editor','importWord','high','execute','plugins','trackChanges'];(function(_0x598660,_0xa7ef42){const _0x3d46e7=function(_0x25ab9b){while(--_0x25ab9b){_0x598660['push'](_0x598660['shift']());}};_0x3d46e7(++_0xa7ef42);}(_0xa7ef,0x1dc));const _0x3d46=function(_0x598660,_0xa7ef42){_0x598660=_0x598660-0x0;let _0x3d46e7=_0xa7ef[_0x598660];return _0x3d46e7;};import{Plugin as _0x164d30}from'ckeditor5/src/core';export default class Z extends _0x164d30{constructor(_0x16e296){super(_0x16e296),this[_0x3d46('0x11')]=!0x1,this[_0x3d46('0x10')]=!0x1;}[_0x3d46('0xb')](){const _0x2609eb=this['editor'],_0x5824d1=_0x2609eb[_0x3d46('0x14')][_0x3d46('0x15')](_0x3d46('0x3')),_0x15f20e=_0x2609eb[_0x3d46('0x14')][_0x3d46('0x15')](_0x3d46('0x7'));_0x5824d1&&(_0x5824d1['on'](_0x3d46('0x5'),(_0x22e88a,[,_0x3ae12d])=>{this['_trackChangesValueDuringImport']=_0x15f20e[_0x3d46('0xd')],_0x3ae12d[_0x3d46('0x13')]['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':_0x3d46('0x4')}),this['listenTo'](_0x5824d1,_0x3d46('0xa'),this[_0x3d46('0xc')][_0x3d46('0x8')](this)),this[_0x3d46('0xe')](_0x5824d1,'dataInsert',()=>{this[_0x3d46('0x10')]&&(_0x15f20e['execute'](),this[_0x3d46('0x10')]=!0x1);},{'priority':_0x3d46('0x9')}),_0x2609eb[_0x3d46('0x6')]['get'](_0x3d46('0x1'))[_0x3d46('0xf')](_0x3d46('0x3')));}[_0x3d46('0xc')](_0x150799,_0x5b2253){const {suggestions:_0x416f59}=_0x5b2253,_0x59d618=this[_0x3d46('0x2')][_0x3d46('0x14')][_0x3d46('0x15')](_0x3d46('0x7')),_0x3d0412=_0x59d618[_0x3d46('0xd')];this[_0x3d46('0x11')]!==_0x3d0412&&(_0x59d618[_0x3d46('0x5')](),this[_0x3d46('0x10')]=!0x0),_0x416f59&&_0x416f59[_0x3d46('0x12')](({id:_0x357e4b,type:_0x56b214,author:_0x3098b6,created_at:_0x24962f})=>{const _0x5af57b={'id':_0x357e4b,'type':_0x56b214,'authorId':this[_0x3d46('0x2')][_0x3d46('0x6')]['get'](_0x3d46('0x0'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3098b6,'createdAt':_0x24962f?new Date(_0x24962f):new Date(),'source':_0x3d46('0x3')}}};this[_0x3d46('0x2')]['plugins'][_0x3d46('0x15')](_0x3d46('0x1'))['_setSuggestionData'](_0x5af57b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14ec=['IndentBlock','plugins','TrackChangesEditing','editor','IndentEditing','get','getSelectedBlocks','enableCommand','from','format','locale','schema','blockIndent','getItemLabel','commandName','selection','outdentBlock','indentBlock','has','outdent','model','_descriptionFactory','getItems','*Outdent:*\x20%0','markBlockFormat','*Indent:*\x20%0','indent'];(function(_0x27a715,_0x14ec8e){const _0x224fed=function(_0x4d2771){while(--_0x4d2771){_0x27a715['push'](_0x27a715['shift']());}};_0x224fed(++_0x14ec8e);}(_0x14ec,0x10a));const _0x224f=function(_0x27a715,_0x14ec8e){_0x27a715=_0x27a715-0x0;let _0x224fed=_0x14ec[_0x27a715];return _0x224fed;};import{Plugin as _0x4005fc}from'ckeditor5/src/core';import{getTranslation as _0x2e846f}from'../utils/common-translations';export default class tt extends _0x4005fc{['afterInit'](){const _0x1112f8=this[_0x224f('0x7')],_0x27d92c=_0x1112f8[_0x224f('0x5')][_0x224f('0x9')](_0x224f('0x6'));_0x1112f8['plugins'][_0x224f('0x16')](_0x224f('0x8'))&&(_0x27d92c['enableCommand'](_0x224f('0x3')),_0x27d92c[_0x224f('0xb')](_0x224f('0x17')));const _0x5f1767=_0x1112f8[_0x224f('0xe')];if(_0x1112f8['plugins'][_0x224f('0x16')](_0x224f('0x4'))){for(const _0x5b93d8 of['indentBlock','outdentBlock'])_0x27d92c[_0x224f('0xb')](_0x5b93d8,()=>{const _0x4d11cc=Array[_0x224f('0xc')](this[_0x224f('0x7')][_0x224f('0x18')]['document'][_0x224f('0x13')][_0x224f('0xa')]())['filter'](_0x1069e8=>this[_0x224f('0x7')][_0x224f('0x18')][_0x224f('0xf')]['checkAttribute'](_0x1069e8,_0x224f('0x10')));_0x1112f8[_0x224f('0x18')]['change'](()=>{for(const _0x1a957d of _0x4d11cc)_0x27d92c[_0x224f('0x1')](_0x1a957d,{'commandName':_0x5b93d8,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x27d92c[_0x224f('0x19')]['registerDescriptionCallback'](_0x279539=>{const {data:_0x178df8}=_0x279539;if(!_0x178df8)return;if(_0x224f('0x15')!=_0x178df8[_0x224f('0x12')]&&_0x224f('0x14')!=_0x178df8[_0x224f('0x12')])return;const _0x5690c7=_0x279539[_0x224f('0x1a')]()[0x0],_0x1a4969=_0x27d92c['_descriptionFactory'][_0x224f('0x11')](_0x5690c7);return _0x224f('0x15')==_0x178df8[_0x224f('0x12')]?{'type':'format','content':_0x2e846f(_0x5f1767,_0x224f('0x2'),_0x1a4969)}:_0x224f('0x14')==_0x178df8['commandName']?{'type':_0x224f('0xd'),'content':_0x2e846f(_0x5f1767,_0x224f('0x0'),_0x1a4969)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c82=['enableCommand','init','editor','input','TrackChangesEditing','get','plugins'];(function(_0x374730,_0x5c82b9){var _0x57b1b2=function(_0x20f3df){while(--_0x20f3df){_0x374730['push'](_0x374730['shift']());}};_0x57b1b2(++_0x5c82b9);}(_0x5c82,0x14c));var _0x57b1=function(_0x374730,_0x5c82b9){_0x374730=_0x374730-0x0;var _0x57b1b2=_0x5c82[_0x374730];return _0x57b1b2;};import{Plugin as _0x67761d}from'ckeditor5/src/core';import{Input as _0x392249}from'ckeditor5/src/typing';export default class it extends _0x67761d{static get['requires'](){return[_0x392249];}[_0x57b1('0x5')](){this[_0x57b1('0x6')][_0x57b1('0x3')][_0x57b1('0x2')](_0x57b1('0x1'))[_0x57b1('0x4')](_0x57b1('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b59=['enableCommand','getRanges','link','markInlineFormat','commandName','has','*Set\x20link:*\x20%0','format','plugins','LinkEditing','getFirstPosition','*Remove\x20link*','unlink','document','hasAttribute','change','linkHref','isCollapsed','TrackChangesEditing','get','getAttribute','editor','model'];(function(_0x50f4bf,_0x2b59ad){const _0x236911=function(_0x49b39e){while(--_0x49b39e){_0x50f4bf['push'](_0x50f4bf['shift']());}};_0x236911(++_0x2b59ad);}(_0x2b59,0x1b8));const _0x2369=function(_0x50f4bf,_0x2b59ad){_0x50f4bf=_0x50f4bf-0x0;let _0x236911=_0x2b59[_0x50f4bf];return _0x236911;};import{Plugin as _0x46918a}from'ckeditor5/src/core';import{findAttributeRange as _0x19a5cc}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x336062}from'./utils';import{getTranslation as _0xe20b42}from'../utils/common-translations';export default class et extends _0x46918a{['afterInit'](){const _0x2376b1=this[_0x2369('0x12')];if(!_0x2376b1[_0x2369('0x5')][_0x2369('0x2')](_0x2369('0x6')))return;const _0x411ce1=_0x2376b1['plugins'][_0x2369('0x10')](_0x2369('0xf'));_0x411ce1[_0x2369('0x14')](_0x2369('0x16'),(_0x4dc009,_0x2a3e76)=>{const _0x50fefa=_0x2376b1['model'][_0x2369('0xa')]['selection'];let _0x112d9f=[];if(_0x50fefa[_0x2369('0xe')]){if(!_0x50fefa[_0x2369('0xb')](_0x2369('0xd')))return void _0x4dc009(_0x2a3e76);{const _0x1b3f1b=_0x19a5cc(_0x50fefa['getFirstPosition'](),_0x2369('0xd'),_0x50fefa[_0x2369('0x11')](_0x2369('0xd')),_0x2376b1[_0x2369('0x13')]);_0x112d9f=[_0x1b3f1b];}}else _0x112d9f=Array['from'](_0x50fefa[_0x2369('0x15')]());_0x2376b1[_0x2369('0x13')][_0x2369('0xc')](()=>{for(const _0x3b57f8 of _0x112d9f)_0x411ce1[_0x2369('0x0')](_0x3b57f8,{'commandName':_0x2369('0x16'),'commandParams':[_0x2a3e76]});});}),_0x411ce1['enableCommand'](_0x2369('0x9'),()=>{const _0x622b48=this[_0x2369('0x12')][_0x2369('0x13')],_0x820fc5=_0x622b48[_0x2369('0xa')]['selection'];_0x622b48[_0x2369('0xc')](()=>{let _0x4339ae=[];if(_0x820fc5[_0x2369('0xe')])_0x4339ae=[_0x19a5cc(_0x820fc5[_0x2369('0x7')](),_0x2369('0xd'),_0x820fc5[_0x2369('0x11')](_0x2369('0xd')),_0x2376b1[_0x2369('0x13')])];else _0x4339ae=_0x336062('linkHref',_0x820fc5['getFirstRange'](),_0x2376b1[_0x2369('0x13')]);for(const _0x25786b of _0x4339ae)_0x411ce1['markInlineFormat'](_0x25786b,{'commandName':'unlink','commandParams':[]});});}),_0x411ce1['_descriptionFactory']['registerDescriptionCallback'](_0x565e72=>{const {data:_0x16bfa2}=_0x565e72,_0x26caf6=_0x2376b1['locale'];if(_0x16bfa2){if(_0x2369('0x16')==_0x16bfa2['commandName']){const _0xa00d9=_0x16bfa2['commandParams'][0x0];return{'type':_0x2369('0x4'),'content':_0xe20b42(_0x26caf6,_0x2369('0x3'),'\x22'+_0xa00d9+'\x22')};}return _0x2369('0x9')==_0x16bfa2[_0x2369('0x1')]?{'type':_0x2369('0x4'),'content':_0xe20b42(_0x26caf6,_0x2369('0x8'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x409e=['ListEditing','ELEMENT_BULLETED_LIST','checkChild','getAttribute','numberedList','enableCommand','todo','commandName','listIndent','change','listItem','add','name','todoList','push','previousSibling','createRange','ELEMENT_LIST_ITEM','checkTodoList','value','commandParams','document','isObject','slice','TodoListEditing','nextSibling','has','selection','indentList','get','TrackChangesEditing','createPositionAt','plugins','bulletedList','execute','afterInit','format','registerDescriptionCallback','*Uncheck\x20item*','ELEMENT_NUMBERED_LIST','todoListChecked','model','from','bulleted','parent','_selectedElements','before','element','*Indent:*\x20%0','*Change\x20to:*\x20%0','numbered','filter','commands','getSelectedBlocks','List','findIndex','registerElementLabel','_descriptionFactory','ELEMENT_TODO_LIST','markBlockFormat','forceValue','locale','outdentList'];(function(_0xbae535,_0x409e96){const _0x4eecf4=function(_0x314c6f){while(--_0x314c6f){_0xbae535['push'](_0xbae535['shift']());}};_0x4eecf4(++_0x409e96);}(_0x409e,0x95));const _0x4eec=function(_0xbae535,_0x409e96){_0xbae535=_0xbae535-0x0;let _0x4eecf4=_0x409e[_0xbae535];return _0x4eecf4;};import{Plugin as _0x659a08}from'ckeditor5/src/core';import{getTranslation as _0x24fe31}from'../utils/common-translations';export default class st extends _0x659a08{[_0x4eec('0xc')](){const _0x39b0cd=this['editor'],_0x197d0d=_0x39b0cd[_0x4eec('0x26')];if(!_0x39b0cd[_0x4eec('0x9')][_0x4eec('0x3')](_0x4eec('0x28')))return;const _0x3b0936=_0x39b0cd['plugins'][_0x4eec('0x6')](_0x4eec('0x7')),_0x3092c6=_0x39b0cd['plugins']['has'](_0x4eec('0x1'));function _0x1ce9b0(_0x2a7395){return()=>{const _0x58c034=_0x39b0cd['model'][_0x4eec('0x3d')][_0x4eec('0x4')],_0x11978f=_0x39b0cd['commands']['get'](_0x2a7395);if(_0x11978f[_0x4eec('0x3b')])return void _0x39b0cd[_0x4eec('0xb')]('paragraph',{});const _0x578003=_0x2a7395[_0x4eec('0x0')](0x0,-0x4),_0x1cca2c=function(_0x139db0,_0x2d0891,_0x14472b){let _0x1710fe=Array[_0x4eec('0x13')](_0x139db0)['filter'](_0x42b305=>function(_0x475135,_0x203fe5){return _0x203fe5[_0x4eec('0x2a')](_0x475135[_0x4eec('0x15')],_0x4eec('0x32'))&&!_0x203fe5[_0x4eec('0x3e')](_0x475135);}(_0x42b305,_0x14472b));_0x1710fe=_0x1710fe[_0x4eec('0x1c')](_0x19db7d=>!_0x19db7d['is'](_0x4eec('0x18'),_0x4eec('0x32'))||_0x19db7d[_0x4eec('0x2b')]('listType')!=_0x2d0891);const _0x61ac2e=new Set();for(const _0x320863 of _0x1710fe)_0x320863['is'](_0x4eec('0x18'),_0x4eec('0x32'))?_0x61ac2e[_0x4eec('0x33')](ne(_0x320863)):_0x61ac2e['add'](_0x320863);return Array[_0x4eec('0x13')](_0x61ac2e);}(_0x58c034[_0x4eec('0x1e')](),_0x578003,_0x39b0cd[_0x4eec('0x12')]['schema']);_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x31')](()=>{for(const _0x54e089 of _0x1cca2c)_0x3b0936[_0x4eec('0x24')](_0x54e089,{'commandName':_0x2a7395,'commandParams':[{'forceValue':!_0x11978f[_0x4eec('0x3b')]}],'formatGroupId':'blockName'},oe(_0x54e089));});};}function _0x10583a(_0x470ed0){return()=>{const _0x3ed541=function(_0x487447){let _0x7446fc=Array[_0x4eec('0x13')](_0x487447);const _0x157372=_0x7446fc[_0x4eec('0x20')](_0x362e4e=>_0x4eec('0x32')!=_0x362e4e[_0x4eec('0x34')]);return _0x157372>-0x1&&(_0x7446fc=_0x7446fc['slice'](0x0,_0x157372)),_0x7446fc;}(_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x3d')][_0x4eec('0x4')][_0x4eec('0x1e')]()),_0x164c89=_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x38')](_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x8')](_0x3ed541[0x0],_0x4eec('0x17')),_0x39b0cd[_0x4eec('0x12')]['createPositionAt'](_0x3ed541[_0x3ed541['length']-0x1],'end'));_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x31')](()=>{_0x3b0936['markBlockFormat'](_0x164c89,{'commandName':_0x470ed0,'commandParams':[],'formatGroupId':_0x4eec('0x30')},function(_0x377abf){const _0x2b00ea=new Set();for(const _0x6a7371 of _0x377abf){let _0xeb7ef4=_0x6a7371[_0x4eec('0x2')];for(;_0xeb7ef4&&_0xeb7ef4['getAttribute'](_0x4eec('0x30'))>_0x6a7371[_0x4eec('0x2b')]('listIndent');)_0x2b00ea['add'](_0xeb7ef4),_0xeb7ef4=_0xeb7ef4['nextSibling'];}return Array[_0x4eec('0x13')](_0x2b00ea);}(_0x3ed541));});};}_0x3b0936['enableCommand'](_0x4eec('0x2c'),_0x1ce9b0(_0x4eec('0x2c'))),_0x3b0936[_0x4eec('0x2d')](_0x4eec('0xa'),_0x1ce9b0(_0x4eec('0xa'))),_0x3092c6&&_0x3b0936[_0x4eec('0x2d')](_0x4eec('0x35'),_0x1ce9b0(_0x4eec('0x35'))),_0x3b0936['enableCommand'](_0x4eec('0x5'),_0x10583a('indentList')),_0x3b0936[_0x4eec('0x2d')](_0x4eec('0x27'),_0x10583a(_0x4eec('0x27'))),_0x3092c6&&_0x3b0936['enableCommand']('checkTodoList',()=>{const _0x2779f7=_0x39b0cd[_0x4eec('0x1d')][_0x4eec('0x6')]('checkTodoList'),_0x5d2988=Array[_0x4eec('0x13')](_0x2779f7[_0x4eec('0x16')]);_0x5d2988['filter'](_0x191844=>_0x191844[_0x4eec('0x2b')](_0x4eec('0x11'))!=_0x2779f7[_0x4eec('0x3b')]),_0x39b0cd[_0x4eec('0x12')][_0x4eec('0x31')](()=>{for(const _0x48779d of _0x5d2988)_0x3b0936[_0x4eec('0x24')](_0x48779d,{'commandName':_0x4eec('0x3a'),'commandParams':[{'forceValue':!_0x2779f7[_0x4eec('0x3b')]}]});});}),_0x3b0936[_0x4eec('0x22')][_0x4eec('0x21')](_0x4eec('0x32'),_0x220492=>_0x24fe31(_0x197d0d,'ELEMENT_LIST_ITEM',_0x220492)),_0x3b0936[_0x4eec('0x22')][_0x4eec('0xe')](_0x42bc6d=>{const {data:_0x3746f6}=_0x42bc6d;if(_0x3746f6){if(_0x4eec('0x2c')==_0x3746f6[_0x4eec('0x2f')]||'bulletedList'==_0x3746f6[_0x4eec('0x2f')]||'todoList'==_0x3746f6['commandName'])switch(_0x3746f6[_0x4eec('0x2f')]['replace'](_0x4eec('0x1f'),'')){case _0x4eec('0x14'):return _0x16700(_0x24fe31(_0x197d0d,_0x4eec('0x29')));case _0x4eec('0x1b'):return _0x16700(_0x24fe31(_0x197d0d,_0x4eec('0x10')));case _0x4eec('0x2e'):return _0x16700(_0x24fe31(_0x197d0d,_0x4eec('0x23')));}if(_0x4eec('0x5')==_0x3746f6[_0x4eec('0x2f')])return{'type':_0x4eec('0xd'),'content':_0x24fe31(_0x197d0d,_0x4eec('0x19'),_0x24fe31(_0x197d0d,'ELEMENT_LIST_ITEM'))};if(_0x4eec('0x27')==_0x3746f6['commandName'])return{'type':_0x4eec('0xd'),'content':_0x24fe31(_0x197d0d,'*Outdent:*\x20%0',_0x24fe31(_0x197d0d,_0x4eec('0x39')))};if('checkTodoList'==_0x3746f6[_0x4eec('0x2f')])return _0x3746f6[_0x4eec('0x3c')][0x0][_0x4eec('0x25')]?{'type':_0x4eec('0xd'),'content':_0x24fe31(_0x197d0d,'*Check\x20item*')}:{'type':_0x4eec('0xd'),'content':_0x24fe31(_0x197d0d,_0x4eec('0xf'))};}function _0x16700(_0x816920){return{'type':_0x4eec('0xd'),'content':_0x24fe31(_0x197d0d,_0x4eec('0x1a'),_0x816920)};}});}}function ne(_0x258e86){const _0x105fe8=_0x258e86[_0x4eec('0x2b')](_0x4eec('0x30'));if(0x0==_0x105fe8)return _0x258e86;let _0x5b0fd0=_0x258e86;for(;_0x258e86[_0x4eec('0x37')]&&_0x258e86['previousSibling']['is'](_0x4eec('0x18'),_0x4eec('0x32'));){const _0xae1143=_0x258e86[_0x4eec('0x37')][_0x4eec('0x2b')](_0x4eec('0x30'));if(_0xae1143==_0x105fe8)_0x5b0fd0=_0x258e86['previousSibling'];else{if(_0xae1143<_0x105fe8)break;}_0x258e86=_0x258e86[_0x4eec('0x37')];}return _0x5b0fd0;}function oe(_0x2c01b9){const _0x9c58d1=[];if(_0x2c01b9['is'](_0x4eec('0x18'),'listItem')&&_0x2c01b9[_0x4eec('0x2b')]('listIndent')>0x0){let _0x33be02=_0x2c01b9[_0x4eec('0x2')];for(;_0x33be02&&_0x4eec('0x32')==_0x33be02[_0x4eec('0x34')]&&_0x33be02[_0x4eec('0x2b')]('listIndent')==_0x2c01b9[_0x4eec('0x2b')](_0x4eec('0x30'));)_0x9c58d1[_0x4eec('0x36')](_0x33be02),_0x33be02=_0x33be02['nextSibling'];}return _0x9c58d1;}
|