@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.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 _0x225f=['change','_descriptionFactory','format','document','has','*Reset\x20font\x20background\x20color*','editor','model','find','fontFamily','TrackChangesEditing','selection','value','getRanges','fontColor.colors','*Set\x20font\x20background\x20color:*\x20%0','trim','commandParams','label','normalizeSizeOptions','_enableCommand','FontSizeEditing','*Reset\x20font\x20color*','*Set\x20font\x20size:*\x20%0','config','FontColorEditing','fontBackgroundColor','*Set\x20font\x20family:*\x20%0','fontColor','*Reset\x20font\x20size*','FontFamilyEditing','locale','*Reset\x20font\x20family*','toLowerCase','title','afterInit','commandName','plugins','fontBackgroundColor.colors','markInlineFormat','get','enableCommand','FontSize','fontSize'];(function(_0xbf6da,_0x225fd6){const _0x765810=function(_0x468f19){while(--_0x468f19){_0xbf6da['push'](_0xbf6da['shift']());}};_0x765810(++_0x225fd6);}(_0x225f,0x67));const _0x7658=function(_0xbf6da,_0x225fd6){_0xbf6da=_0xbf6da-0x0;let _0x765810=_0x225f[_0xbf6da];return _0x765810;};import{Plugin as _0x49d8ba}from'ckeditor5/src/core';import{normalizeColorOptions as _0x2dea5c}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x568777}from'./utils';import{getTranslation as _0x467394}from'../utils/common-translations';const eo=[{'pluginName':_0x7658('0x6'),'commandName':_0x7658('0x1c')},{'pluginName':_0x7658('0xf'),'commandName':_0x7658('0x26')},{'pluginName':_0x7658('0xa'),'commandName':_0x7658('0xd')},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class W extends _0x49d8ba{[_0x7658('0x14')](){const _0x50e1d7=this['editor'][_0x7658('0x10')];for(const {pluginName:_0x22f223,commandName:_0x5efcb5}of eo)this[_0x7658('0x23')]['plugins'][_0x7658('0x21')](_0x22f223)&&this[_0x7658('0x5')](_0x5efcb5);this[_0x7658('0x23')]['plugins'][_0x7658('0x19')]('TrackChangesEditing')[_0x7658('0x1e')]['registerDescriptionCallback'](_0x5ec4ee=>{const _0x388133=_0x50e1d7['t'],{data:_0x14c754}=_0x5ec4ee;if(null!=_0x14c754){if(_0x7658('0x1c')==_0x14c754[_0x7658('0x15')]){const _0x6b9fea=_0x14c754['commandParams'][0x0][_0x7658('0x29')];if(_0x6b9fea){const _0x3de99b=_0x388133(this[_0x7658('0x23')][_0x7658('0x16')]['get'](_0x7658('0x1b'))[_0x7658('0x4')](this[_0x7658('0x23')][_0x7658('0x9')][_0x7658('0x19')]('fontSize.options'))[_0x7658('0x25')](_0x46338f=>_0x46338f[_0x7658('0x24')]==_0x6b9fea)[_0x7658('0x13')])['toLowerCase']();return{'type':'format','content':_0x467394(_0x50e1d7,_0x7658('0x8'),_0x3de99b)};}return{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,_0x7658('0xe'))};}if(_0x7658('0x26')==_0x14c754[_0x7658('0x15')]){const _0x317b6b=_0x14c754[_0x7658('0x2')][0x0][_0x7658('0x29')];return _0x317b6b?{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,_0x7658('0xc'),_0x317b6b)}:{'type':'format','content':_0x467394(_0x50e1d7,_0x7658('0x11'))};}if(_0x7658('0xd')==_0x14c754[_0x7658('0x15')]){const _0x6b6f50=_0x14c754[_0x7658('0x2')][0x0][_0x7658('0x29')];if(_0x6b6f50){const _0x408277=_0x2dea5c(this['editor'][_0x7658('0x9')]['get'](_0x7658('0x2b')))['find'](_0x23d633=>_0x23d633[_0x7658('0x24')]==_0x6b6f50);let _0x6f0253=_0x6b6f50,_0x55e7c8='';return _0x408277&&(_0x6f0253=_0x408277['label'],_0x55e7c8=_0x388133(_0x6f0253)[_0x7658('0x12')]()),{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,'*Set\x20font\x20color:*\x20%0',_0x55e7c8)[_0x7658('0x1')](),'color':{'value':_0x6b6f50,'title':_0x55e7c8||_0x6f0253}};}return{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,_0x7658('0x7'))};}if(_0x7658('0xb')==_0x14c754['commandName']){const _0x5acd8c=_0x14c754['commandParams'][0x0][_0x7658('0x29')];if(_0x5acd8c){const _0x30b471=_0x2dea5c(this[_0x7658('0x23')][_0x7658('0x9')][_0x7658('0x19')](_0x7658('0x17')))[_0x7658('0x25')](_0x20a4de=>_0x20a4de[_0x7658('0x24')]==_0x5acd8c);let _0x3965b8=_0x5acd8c,_0x2a09e2='';return _0x30b471&&(_0x3965b8=_0x30b471[_0x7658('0x3')],_0x2a09e2=_0x388133(_0x3965b8)['toLowerCase']()),{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,_0x7658('0x0'),_0x2a09e2)[_0x7658('0x1')](),'color':{'value':_0x5acd8c,'title':_0x2a09e2||_0x3965b8}};}return{'type':_0x7658('0x1f'),'content':_0x467394(_0x50e1d7,_0x7658('0x22'))};}}});}['_enableCommand'](_0x2fcd63){const _0x10a38d=this[_0x7658('0x23')];_0x10a38d['plugins'][_0x7658('0x19')](_0x7658('0x27'))[_0x7658('0x1a')](_0x2fcd63,(_0x376b27,_0x472633={})=>{const _0x137194=_0x10a38d[_0x7658('0x24')][_0x7658('0x20')][_0x7658('0x28')],_0xc22cc0=_0x472633[_0x7658('0x29')];_0x137194['isCollapsed']?_0x376b27(_0x472633):_0x10a38d[_0x7658('0x24')][_0x7658('0x1d')](()=>{const _0x2a1f29=Array['from'](_0x137194[_0x7658('0x2a')]());for(const _0x18b5a0 of _0x2a1f29){const _0x5a17fe=_0xc22cc0?[_0x18b5a0]:_0x568777(_0x2fcd63,_0x18b5a0,_0x10a38d['model']);for(const _0x244f73 of _0x5a17fe)_0x10a38d[_0x7658('0x16')][_0x7658('0x19')](_0x7658('0x27'))[_0x7658('0x18')](_0x244f73,{'commandName':_0x2fcd63,'commandParams':[{'value':_0xc22cc0}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x105b=['TrackChangesEditing','registerDescriptionCallback','getAttributes','schema','commandParams','afterInit','config','getFirstPosition','backward','from','fontColor','createSelection','document','commands','markInlineFormat','model','boolean','format','forward','word','fontSize','title','label','toLowerCase','getLastPosition','isCollapsed','modifySelection','push','length','isBlock','_descriptionFactory','getAttributeProperties','*Remove\x20all\x20formatting*','toUpperCase','locale','keys','isFormatting','pasteFormat','find','editor','FontSize','get','fontBackgroundColor','plugins','enableCommand','*Set\x20format\x20to:*\x20%0','join','normalizeSizeOptions','commandName','getRanges','getSelectedBlocks'];(function(_0x200b45,_0x105bc){const _0x4a4bae=function(_0x413846){while(--_0x413846){_0x200b45['push'](_0x200b45['shift']());}};_0x4a4bae(++_0x105bc);}(_0x105b,0xea));const _0x4a4b=function(_0x200b45,_0x105bc){_0x200b45=_0x200b45-0x0;let _0x4a4bae=_0x105b[_0x200b45];return _0x4a4bae;};import{Plugin as _0x208286}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5703f2}from'ckeditor5/src/ui';import{first as _0x280045}from'ckeditor5/src/utils';import{getTranslation as _0x1948c4}from'../utils/common-translations';export default class J extends _0x208286{[_0x4a4b('0x1a')](){const _0x1c31b5=this[_0x4a4b('0x9')],_0x9c88=_0x1c31b5[_0x4a4b('0x24')],_0x119063=_0x9c88[_0x4a4b('0x21')]['selection'],_0x5d9e6f=_0x1c31b5[_0x4a4b('0xd')][_0x4a4b('0xb')](_0x4a4b('0x15')),_0x335820=_0x1c31b5[_0x4a4b('0x4')],_0x3ef9d8=_0x1c31b5[_0x4a4b('0x22')][_0x4a4b('0xb')]('copyFormat'),_0x61fe05=_0x1c31b5[_0x4a4b('0x22')]['get'](_0x4a4b('0x7'));_0x3ef9d8&&_0x61fe05&&(_0x5d9e6f[_0x4a4b('0xe')](_0x4a4b('0x7'),(_0x3ade80,_0x39c79e={})=>{const _0x25300c=_0x39c79e;_0x9c88['change'](()=>{const _0x215cef=Array[_0x4a4b('0x1e')](_0x119063['getRanges']()),_0x5a2123=_0x119063[_0x4a4b('0x2e')]?[io(_0x9c88,_0x119063)]:_0x215cef,_0x5a4601=!!_0x280045(function*(_0xc50b60,_0x5e7e62){const _0x2707bd=_0x451941=>!!_0x280045(function*(_0xccdbcf,_0x5c14be){for(const [_0x3101d4]of _0xccdbcf[_0x4a4b('0x17')]()){const _0x995bd5=_0x5c14be[_0x4a4b('0x1')](_0x3101d4);_0x995bd5&&_0x995bd5[_0x4a4b('0x6')]&&(yield _0x3101d4);}}(_0x451941,_0x5e7e62));for(const _0x316dde of _0xc50b60[_0x4a4b('0x13')]())for(const _0xb5977a of _0x316dde['getItems']())!_0x5e7e62[_0x4a4b('0x32')](_0xb5977a)&&_0x2707bd(_0xb5977a)&&(yield _0xb5977a);for(const _0x5f146a of _0xc50b60[_0x4a4b('0x14')]())_0x2707bd(_0x5f146a)&&(yield _0x5f146a);_0x2707bd(_0xc50b60)&&(yield _0xc50b60);}(_0x119063,_0x9c88[_0x4a4b('0x18')]));if(_0x5a4601||0x0!==Object[_0x4a4b('0x5')](_0x25300c)[_0x4a4b('0x31')])for(const _0x3dc271 of _0x5a2123)_0x5d9e6f[_0x4a4b('0x23')](_0x3dc271,{'commandName':_0x4a4b('0x7'),'commandParams':[_0x25300c]});});}),_0x5d9e6f[_0x4a4b('0x0')][_0x4a4b('0x16')](_0x5e4da2=>{const {data:_0x23ec5f}=_0x5e4da2;if(_0x23ec5f&&'pasteFormat'===_0x23ec5f[_0x4a4b('0x12')]){const _0x2f7c1e=[],_0x326098=_0x23ec5f[_0x4a4b('0x19')][0x0];for(const [_0x9fffa7,_0x1e774e]of Object['entries'](_0x326098))_0x2f7c1e[_0x4a4b('0x30')](so(_0x1c31b5,_0x9fffa7,_0x1e774e));return _0x2f7c1e[_0x4a4b('0x31')]?{'type':'format','content':_0x1948c4(_0x335820,_0x4a4b('0xf'),_0x2f7c1e[_0x4a4b('0x10')](',\x20'))}:{'type':_0x4a4b('0x26'),'content':_0x1948c4(_0x335820,_0x4a4b('0x2'))};}}),_0x1c31b5[_0x4a4b('0xd')][_0x4a4b('0xb')](_0x4a4b('0x15'))[_0x4a4b('0xe')]('copyFormat'));}}function io(_0xd93edd,_0x562fd9){const _0x19c92f=_0xd93edd[_0x4a4b('0x20')](_0x562fd9);_0xd93edd[_0x4a4b('0x2f')](_0x19c92f,{'unit':_0x4a4b('0x28'),'direction':_0x4a4b('0x1d')});const _0x124d93=_0x19c92f[_0x4a4b('0x1c')]();_0xd93edd[_0x4a4b('0x2f')](_0x19c92f,{'unit':_0x4a4b('0x28'),'direction':_0x4a4b('0x27')});const _0x47184a=_0x19c92f[_0x4a4b('0x2d')]();return _0xd93edd['createRange'](_0x124d93,_0x47184a);}function so(_0xa45972,_0x441db1,_0x5794b4){const _0x554110=_0xa45972[_0x4a4b('0x4')]['t'],_0xe26046=_0x441db1['split'](/(?=[A-Z])/)[_0x4a4b('0x10')]('\x20'),_0x2976d2=_0x554110(_0xe26046['charAt'](0x0)[_0x4a4b('0x3')]()+_0xe26046['slice'](0x1))[_0x4a4b('0x2c')]();if(_0x4a4b('0x25')==typeof _0x5794b4)return _0x2976d2;if(_0x4a4b('0x1f')===_0x441db1||_0x4a4b('0xc')===_0x441db1){const _0x31b438=_0x5703f2(_0xa45972[_0x4a4b('0x1b')][_0x4a4b('0xb')]('fontColor.colors'))[_0x4a4b('0x8')](_0x506a31=>_0x506a31['model']==_0x5794b4);return _0x2976d2+'\x20('+(_0x31b438?_0x554110(_0x31b438[_0x4a4b('0x2b')])[_0x4a4b('0x2c')]():_0x5794b4)+')';}if(_0x4a4b('0x29')===_0x441db1&&isNaN(parseFloat(_0x5794b4))){const _0x926067=_0xa45972[_0x4a4b('0xd')]['get'](_0x4a4b('0xa'))[_0x4a4b('0x11')](_0xa45972[_0x4a4b('0x1b')][_0x4a4b('0xb')]('fontSize.options'))[_0x4a4b('0x8')](_0x5ee5ee=>_0x5ee5ee[_0x4a4b('0x24')]==_0x5794b4);return _0x2976d2+'\x20('+(_0x926067?_0x554110(_0x926067[_0x4a4b('0x2a')])[_0x4a4b('0x2c')]():_0x5794b4)+')';}return _0x2976d2+'\x20('+_0x5794b4+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48fe=['has','commandName','blockName','parent','markBlockFormat','_descriptionFactory','afterInit','title','registerElementLabel','get','heading.options','schema','ELEMENT_HEADING_CUSTOM','value','editor','TrackChangesEditing','HeadingEditing','match','enableCommand','heading','ELEMENT_HEADING','isObject','filter','*Change\x20to:*\x20%0','config','selection','find','plugins','from','model','format','locale'];(function(_0x11ab6c,_0x48fe21){const _0x2952a8=function(_0x4ff277){while(--_0x4ff277){_0x11ab6c['push'](_0x11ab6c['shift']());}};_0x2952a8(++_0x48fe21);}(_0x48fe,0x68));const _0x2952=function(_0x11ab6c,_0x48fe21){_0x11ab6c=_0x11ab6c-0x0;let _0x2952a8=_0x48fe[_0x11ab6c];return _0x2952a8;};import{Plugin as _0x5834cc}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x35812d}from'./utils';import{getTranslation as _0x4aea8a}from'../utils/common-translations';export default class K extends _0x5834cc{[_0x2952('0x1e')](){const _0x5e0313=this['editor'],_0x2662ce=_0x5e0313[_0x2952('0x17')],_0xd57c98=_0x5e0313[_0x2952('0x10')][_0x2952('0x1')](_0x2952('0x2'));if(!_0x5e0313[_0x2952('0x13')][_0x2952('0x18')](_0x2952('0x8')))return;const _0x3926ad=_0x5e0313[_0x2952('0x13')]['get'](_0x2952('0x7'));_0x3926ad[_0x2952('0xa')]('heading',(_0x221613,_0x32b511)=>{const _0x34a0e2=_0x32b511[_0x2952('0x5')],_0x4fb88b=Array[_0x2952('0x14')](this[_0x2952('0x6')][_0x2952('0x15')]['document'][_0x2952('0x11')]['getSelectedBlocks']())[_0x2952('0xe')](_0xf776db=>function(_0xe80df2,_0xb7f16f,_0x4610d4){return _0x4610d4['checkChild'](_0xe80df2[_0x2952('0x1b')],_0xb7f16f)&&!_0x4610d4[_0x2952('0xd')](_0xe80df2)&&_0xe80df2['name']!=_0xb7f16f;}(_0xf776db,_0x34a0e2,this[_0x2952('0x6')][_0x2952('0x15')][_0x2952('0x3')]));_0x5e0313['model']['change'](()=>{for(const _0x595db7 of _0x4fb88b)_0x3926ad[_0x2952('0x1c')](_0x595db7,{'commandName':_0x2952('0xb'),'commandParams':[_0x32b511],'formatGroupId':_0x2952('0x1a')},_0x35812d(_0x595db7));});});for(const _0x1c58a5 of _0xd57c98)'paragraph'!=_0x1c58a5[_0x2952('0x15')]&&_0x3926ad[_0x2952('0x1d')][_0x2952('0x0')](_0x1c58a5[_0x2952('0x15')],_0x246a25=>{const _0x5e92fa=nn(_0x1c58a5[_0x2952('0x15')]);return null!==_0x5e92fa?_0x6256d7(_0x246a25,_0x5e92fa):_0x1e8dce(_0x246a25,_0x1c58a5[_0x2952('0x1f')]);});function _0x6256d7(_0x4f30d5,_0x1bfda2){return _0x4aea8a(_0x2662ce,_0x2952('0xc'),[_0x4f30d5,_0x1bfda2]);}function _0x1e8dce(_0x15d741,_0x255939){return _0x4aea8a(_0x2662ce,_0x2952('0x4'),[_0x15d741,_0x255939]);}_0x3926ad[_0x2952('0x1d')]['registerDescriptionCallback'](_0x5b6e8a=>{const {type:_0x593d64,data:_0x23b378}=_0x5b6e8a;if('formatBlock'==_0x593d64&&_0x23b378&&_0x2952('0xb')==_0x23b378[_0x2952('0x19')]){const _0x5769cb=_0x23b378['commandParams'][0x0][_0x2952('0x5')],_0x1f53df=nn(_0x5769cb);if(null!==_0x1f53df)return{'type':_0x2952('0x16'),'content':_0x4aea8a(_0x2662ce,_0x2952('0xf'),_0x6256d7(0x1,_0x1f53df))};const _0xd4ad9c=_0xd57c98[_0x2952('0x12')](_0x2f4e17=>_0x2f4e17[_0x2952('0x15')]===_0x5769cb)[_0x2952('0x1f')];return{'type':'format','content':_0x4aea8a(_0x2662ce,'*Change\x20to:*\x20%0',_0x1e8dce(0x1,_0xd4ad9c))};}});}}function nn(_0x1a1064){const _0x11c9c9=_0x1a1064[_0x2952('0x9')](/^heading(\d+)$/);return _0x11c9c9?_0x11c9c9[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x246d=['getLastMatchingPosition','highlight','color','getRanges','locale','title','getFirstPosition','backward','model','toLowerCase','format','commandName','formatInline','plugins','markInlineFormat','change','createRange','_descriptionFactory','*Set\x20highlight:*\x20%0','value','hasAttribute','item','FORMAT_HIGHLIGHT','push','commandParams','getAttribute','*Remove\x20highlight*','find','has','enableCommand','get','editor'];(function(_0x56e1ca,_0x246dda){const _0x44582c=function(_0x1ac65c){while(--_0x1ac65c){_0x56e1ca['push'](_0x56e1ca['shift']());}};_0x44582c(++_0x246dda);}(_0x246d,0x7a));const _0x4458=function(_0x56e1ca,_0x246dda){_0x56e1ca=_0x56e1ca-0x0;let _0x44582c=_0x246d[_0x56e1ca];return _0x44582c;};import{Plugin as _0x416569}from'ckeditor5/src/core';import{getTranslation as _0x10ba11}from'../utils/common-translations';import{getRangesWithAttribute as _0x39be31}from'./utils';export default class Q extends _0x416569{['afterInit'](){const _0x354f86=this[_0x4458('0x5')];if(!_0x354f86['plugins'][_0x4458('0x2')]('HighlightEditing'))return;const _0xa0fc28=_0x354f86[_0x4458('0x13')][_0x4458('0x4')]('TrackChangesEditing');_0xa0fc28[_0x4458('0x3')]('highlight',(_0x43718f,_0x1fb1b6={})=>{const _0x14d282=_0x354f86['model']['document']['selection'],_0xb469ff=_0x14d282['getAttribute'](_0x4458('0x7'));let _0x5d0578=_0x1fb1b6['value'],_0x33a235=[];if(_0x14d282['isCollapsed']){const _0x3fdfaa=_0x14d282[_0x4458('0xc')]();if(!_0x14d282[_0x4458('0x1a')](_0x4458('0x7')))return void _0x43718f(_0x1fb1b6);{const _0x27e9a9=_0x311ef3=>_0x311ef3[_0x4458('0x1b')][_0x4458('0x1f')]('highlight')===_0xb469ff,_0x3be23c=_0x3fdfaa[_0x4458('0x6')](_0x27e9a9,{'direction':_0x4458('0xd')}),_0x524454=_0x3fdfaa[_0x4458('0x6')](_0x27e9a9);_0x33a235=[_0x354f86['model'][_0x4458('0x16')](_0x3be23c,_0x524454)],_0x5d0578==_0xb469ff&&(_0x5d0578=null);}}else for(const _0x17ec82 of _0x14d282[_0x4458('0x9')]())_0x5d0578?_0x33a235[_0x4458('0x1d')](_0x17ec82):_0x33a235[_0x4458('0x1d')](..._0x39be31(_0x4458('0x7'),_0x17ec82,_0x354f86[_0x4458('0xe')]));_0x354f86['model'][_0x4458('0x15')](()=>{for(const _0x5266f8 of _0x33a235)_0xa0fc28[_0x4458('0x14')](_0x5266f8,{'commandName':_0x4458('0x7'),'commandParams':[{'value':_0x5d0578}]});});});const _0x14f1e3=_0x354f86[_0x4458('0xa')];_0xa0fc28[_0x4458('0x17')]['registerDescriptionCallback'](_0x1b55f2=>{const {type:_0x3f9790,data:_0x223c77}=_0x1b55f2;if(_0x4458('0x12')==_0x3f9790&&_0x223c77&&_0x4458('0x7')==_0x223c77[_0x4458('0x11')]){const _0x5b27a8=_0x14f1e3['t'],_0x40e9d3=_0x223c77[_0x4458('0x1e')][0x0][_0x4458('0x19')];if(_0x40e9d3){const _0x38a81b=_0x354f86['config'][_0x4458('0x4')]('highlight.options')[_0x4458('0x1')](_0x4d5923=>_0x4d5923[_0x4458('0xe')]==_0x40e9d3),_0x298c50=_0x5b27a8(_0x38a81b[_0x4458('0xb')])[_0x4458('0xf')]();return{'type':_0x4458('0x10'),'content':_0x10ba11(_0x14f1e3,_0x4458('0x18'),_0x298c50),'color':{'value':_0x38a81b[_0x4458('0x8')],'title':_0x38a81b['title']}};}return{'type':_0x4458('0x10'),'content':_0x10ba11(_0x14f1e3,_0x4458('0x0'),_0x10ba11(_0x14f1e3,_0x4458('0x1c')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f8c=['conversion','afterInit','for','TrackChangesEditing','plugins','createEmptyElement','dataDowncast','enableCommand','registerElementLabel','ck-horizontal-line','locale','createPositionAt','insert','elementToStructure','showSuggestionHighlights','addClass','HorizontalLineEditing','horizontalLine','createContainerElement','ELEMENT_HORIZONTAL_LINE','get'];(function(_0x5dc60d,_0x3f8c15){const _0x793dda=function(_0x125913){while(--_0x125913){_0x5dc60d['push'](_0x5dc60d['shift']());}};_0x793dda(++_0x3f8c15);}(_0x3f8c,0x1ee));const _0x793d=function(_0x5dc60d,_0x3f8c15){_0x5dc60d=_0x5dc60d-0x0;let _0x793dda=_0x3f8c[_0x5dc60d];return _0x793dda;};import{Plugin as _0x3d9ea1}from'ckeditor5/src/core';import{getTranslation as _0x4d11d2}from'../utils/common-translations';export default class V extends _0x3d9ea1{[_0x793d('0xb')](){const _0x545d37=this['editor'];if(!_0x545d37[_0x793d('0xe')]['has'](_0x793d('0x5')))return;_0x545d37[_0x793d('0xe')][_0x793d('0x9')](_0x793d('0xd'))[_0x793d('0x11')]('horizontalLine');const _0x33a23d=_0x545d37[_0x793d('0xe')][_0x793d('0x9')](_0x793d('0xd')),_0x11fcee=_0x545d37[_0x793d('0x14')];_0x33a23d['_descriptionFactory'][_0x793d('0x12')](_0x793d('0x6'),_0x1791bb=>_0x4d11d2(_0x11fcee,_0x793d('0x8'),_0x1791bb)),_0x545d37[_0x793d('0xa')][_0x793d('0xc')](_0x793d('0x10'))[_0x793d('0x2')]({'model':_0x793d('0x6'),'view':(_0x35727b,{writer:_0x184ed8,options:_0x47b538})=>{if(!_0x47b538[_0x793d('0x3')])return null;const _0x2647c5=_0x184ed8[_0x793d('0x7')]('div'),_0x534e0b=_0x184ed8[_0x793d('0xf')]('hr');return _0x184ed8[_0x793d('0x4')](_0x793d('0x13'),_0x2647c5),_0x184ed8[_0x793d('0x1')](_0x184ed8[_0x793d('0x0')](_0x2647c5,0x0),_0x534e0b),_0x2647c5;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2341=['has','value','getSelectedElement','model','htmlEmbed','editor','format','commandName','getCustomProperty','HtmlEmbed','document','_descriptionFactory','*Change\x20%0\x20content*','selection','enableCommand','cancel','ELEMENT_HTML_EMBED','element','change','get','plugins','rawHtml','registerDescriptionCallback','locale','getAttribute','markBlockFormat','TrackChangesEditing','editing'];(function(_0x17bf01,_0x234178){const _0x4ae25f=function(_0x1a1076){while(--_0x1a1076){_0x17bf01['push'](_0x17bf01['shift']());}};_0x4ae25f(++_0x234178);}(_0x2341,0xc7));const _0x4ae2=function(_0x17bf01,_0x234178){_0x17bf01=_0x17bf01-0x0;let _0x4ae25f=_0x2341[_0x17bf01];return _0x4ae25f;};import{Plugin as _0x1bad73}from'ckeditor5/src/core';import{getTranslation as _0x310545}from'../utils/common-translations';export default class X extends _0x1bad73{['afterInit'](){const _0x25a435=this[_0x4ae2('0x2')];if(!_0x25a435['plugins'][_0x4ae2('0x19')](_0x4ae2('0x6')))return;const _0x413fcb=_0x25a435[_0x4ae2('0x11')][_0x4ae2('0x10')](_0x4ae2('0x17')),_0x1f9cc6=_0x25a435[_0x4ae2('0x14')],_0x506f95=_0x25a435[_0x4ae2('0x18')]['view'][_0x4ae2('0x7')][_0x4ae2('0xa')];_0x413fcb[_0x4ae2('0x8')]['registerElementLabel'](_0x4ae2('0x12'),_0x588240=>_0x310545(_0x1f9cc6,'ELEMENT_HTML_EMBED',_0x588240)),_0x25a435[_0x4ae2('0x11')]['get'](_0x4ae2('0x17'))[_0x4ae2('0xb')](_0x4ae2('0x1'),(_0x4b7682,_0x298cab)=>{const _0x2ec96=_0x25a435[_0x4ae2('0x0')],_0x5a73af=_0x2ec96[_0x4ae2('0x7')][_0x4ae2('0xa')];_0x2ec96[_0x4ae2('0xf')](()=>{const _0x23f87f=function(_0x155973){const _0x28052a=_0x155973[_0x4ae2('0x1b')]();if(_0x28052a&&_0x28052a['is'](_0x4ae2('0xe'),_0x4ae2('0x12')))return _0x155973[_0x4ae2('0x1b')]();return null;}(_0x5a73af);if(!_0x23f87f)return void _0x4b7682(null);const _0x4cd14b=_0x23f87f[_0x4ae2('0x15')](_0x4ae2('0x1a'))||'';if(void 0x0===_0x298cab)return;if(_0x298cab===_0x4cd14b)return;_0x413fcb[_0x4ae2('0x16')](_0x23f87f,{'commandName':_0x4ae2('0x1'),'commandParams':[_0x298cab]}),_0x506f95[_0x4ae2('0x1b')]()[_0x4ae2('0x5')]('rawHtmlApi')[_0x4ae2('0xc')]();});}),_0x413fcb[_0x4ae2('0x8')][_0x4ae2('0x13')](_0x2c981e=>{const {data:_0x1fb049}=_0x2c981e;if(_0x1fb049&&'htmlEmbed'==_0x1fb049[_0x4ae2('0x4')]){const _0x1be51d=_0x310545(_0x1f9cc6,_0x4ae2('0xd'));return{'type':_0x4ae2('0x3'),'content':_0x310545(_0x1f9cc6,_0x4ae2('0x9'),_0x1be51d)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x648f=['plugins','ImageCaptionUtils','isInlineImage','isEqual','getSuggestionCallback','hasSuggestion','element','find','previous','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','markDeletion','insertion','end','getChangedMarkers','markInlineFormat','discardSuggestion','isCollapsed','imageBlock','detach','*Format:*\x20%0','getCaptionFromImageModelElement','createRangeOn','Block\x20image\x20to\x20inline\x20image','normalizedStyles','markInsertion','isBlockImage','value','formatInline','imageInline','imageTypeInline','isOwn','forEach','title','filter','toLowerCase','discard','ELEMENT_CAPTION','*Remove\x20image\x20text\x20alternative*','subType','change','isInContent','imageStylePostApply','join','addObject','getFirstRange','format','ImageStyleEditing','*Reset\x20image\x20width*','Users','commandReversedParams','imageCaption','get','side','name','getSuggestion','selection','hasAttribute','start','forceDefaultExecution','imageTypeBlock','createRange','registerDescriptionCallback','*Set\x20image\x20width:*\x20%0','nodeAfter','convertInlineImageToBlock','newRange','uploadImage','Inline\x20image\x20to\x20block\x20image','width','markBlockFormat','getContainedElement','ELEMENT_IMAGE','toggleImageCaption','formatBlock','imageTextAlternative','afterInit','commandParams','caption','_suggestionFactory','imageStyle','TrackChangesEditing','ImageUtils','commands','resizeImage','ImageResize','accept','ImageEditing','getAttribute','removeObject','document','convertBlockImageToInline','from','enableCommand','ImageTextAlternativeEditing','toPrevious','registerElementLabel','length','has','getSuggestions','registerCustomCallback','ImageInlineEditing','model','imageStylePreApply','refresh','differ','FORMAT_SIDE_IMAGE','isIntersecting','schema','next','_splitMarkerName','locale','commandName','fromPosition','getClosestSelectedImageElement','type','_descriptionFactory','findIndex','resizedWidth','ImageBlockEditing','alt','nodeBefore'];(function(_0xaf329c,_0x648f70){const _0x3f099f=function(_0x4ce99c){while(--_0x4ce99c){_0xaf329c['push'](_0xaf329c['shift']());}};_0x3f099f(++_0x648f70);}(_0x648f,0x92));const _0x3f09=function(_0xaf329c,_0x648f70){_0xaf329c=_0xaf329c-0x0;let _0x3f099f=_0x648f[_0xaf329c];return _0x3f099f;};import{Plugin as _0x3ef902}from'ckeditor5/src/core';import{LivePosition as _0x3aa9d5}from'ckeditor5/src/engine';import{uid as _0xf209ef}from'ckeditor5/src/utils';import{getTranslation as _0x3532df}from'../utils/common-translations';export default class Y extends _0x3ef902{[_0x3f09('0x34')](){const _0x53e1b6=this['editor'];if(!_0x53e1b6['plugins'][_0x3f09('0x4a')](_0x3f09('0x3f')))return;const _0x2fc7c6=_0x53e1b6['plugins'][_0x3f09('0x1c')](_0x3f09('0x39')),_0x5e13df=_0x53e1b6[_0x3f09('0x62')]['get'](_0x3f09('0x3a')),_0x174a87={},_0x505a2b=_0x53e1b6[_0x3f09('0x57')];if(_0x2fc7c6[_0x3f09('0x45')]('insertImage'),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x48')](_0x3f09('0x74'),_0x2ed167=>_0x3532df(_0x505a2b,_0x3f09('0x30'),_0x2ed167)),_0x2fc7c6['_descriptionFactory'][_0x3f09('0x48')](_0x3f09('0x5'),_0x2eb169=>_0x3532df(_0x505a2b,'ELEMENT_INLINE_IMAGE',_0x2eb169)),_0x2fc7c6[_0x3f09('0x5c')]['registerElementLabel'](_0x3f09('0x36'),()=>_0x3532df(_0x505a2b,_0x3f09('0xd'))),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')]('ImageUploadEditing')&&_0x2fc7c6['enableCommand'](_0x3f09('0x2b')),_0x53e1b6['plugins'][_0x3f09('0x4a')](_0x3f09('0x5f'))&&_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x4d'))&&(_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x6'),(_0x42d239,_0x125ccb)=>{const _0xe9c675=_0x5e13df['getClosestSelectedImageElement'](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]);_0x53e1b6[_0x3f09('0x4e')]['change'](()=>{_0x2fc7c6[_0x3f09('0x2e')](_0xe9c675,{'commandName':_0x3f09('0x6'),'commandParams':[_0x125ccb]},[],_0x3f09('0x43'));});}),_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x24'),(_0xf9ae70,_0x4ed2c6)=>{_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](_0x48f9a9=>{let _0x2be77f=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0xf4561a=_0x48f9a9[_0x3f09('0x78')](_0x2be77f);const _0x41df15=_0x3aa9d5[_0x3f09('0x59')](_0xf4561a['start'],_0x3f09('0x47')),_0x238766=_0x3aa9d5['fromPosition'](_0xf4561a[_0x3f09('0x6f')],'toNext');_0x2fc7c6[_0x3f09('0x23')](()=>_0xf9ae70(_0x4ed2c6)),_0x2be77f=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0xf4561a=_0x48f9a9['createRangeOn'](_0x2be77f);const _0x12401f=_0x48f9a9[_0x3f09('0x25')](_0x41df15,_0x238766);_0x41df15[_0x3f09('0x75')](),_0x238766[_0x3f09('0x75')](),_0x2fc7c6[_0x3f09('0x2e')](_0x2be77f,{'commandName':_0x3f09('0x6'),'commandParams':[_0x4ed2c6]},[],_0x3f09('0x29')),_0x12401f['start']['isBefore'](_0xf4561a[_0x3f09('0x22')])&&_0x2fc7c6['markInsertion'](_0x48f9a9[_0x3f09('0x25')](_0x12401f[_0x3f09('0x22')],_0xf4561a[_0x3f09('0x22')]),_0x3f09('0x29')),_0xf4561a['end']['isBefore'](_0x12401f[_0x3f09('0x6f')])&&_0x2fc7c6[_0x3f09('0x1')](_0x48f9a9[_0x3f09('0x25')](_0xf4561a[_0x3f09('0x6f')],_0x12401f['end']),_0x3f09('0x29'));});}),_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')]('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x29'),'accept',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback'](_0x3f09('0x32'),_0x3f09('0x29'),_0x3f09('0xc'),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')](_0x3f09('0x32'),'','accept')),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback'](_0x3f09('0x6e'),'convertInlineImageToBlock','join',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x3f09('0xc'),([_0xd72635])=>{const _0x242e26=_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')]('insertion','',_0x3f09('0xc'));let _0x51b8ae=_0xd72635[_0x3f09('0x22')],_0x125454=_0xd72635[_0x3f09('0x6f')];const _0x5276f9=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x54')][_0x3f09('0x6c')](_0x51b8ae,'backward'),_0x3fea35=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x54')][_0x3f09('0x6c')](_0x125454,'forward');_0x5276f9[_0x3f09('0x73')]&&(_0x51b8ae=_0x5276f9[_0x3f09('0x22')]),_0x3fea35[_0x3f09('0x73')]&&(_0x125454=_0x3fea35['end']),_0x242e26([_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x25')](_0x51b8ae,_0x125454)]);}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x29'),'chain',_0x2d40a7),_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')](_0x3f09('0x6e'),_0x3f09('0x29'),'chain',_0x2d40a7)),_0x53e1b6['plugins'][_0x3f09('0x4a')]('ImageCaptionEditing')&&(_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x31'),(_0x3c6d07,_0x3e31d3)=>{const _0x117fdf=_0x53e1b6[_0x3f09('0x62')]['get'](_0x3f09('0x63'));let _0x4dc9f3=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')]['selection']),_0x4eea0d=_0x117fdf[_0x3f09('0x77')](_0x4dc9f3);_0x53e1b6[_0x3f09('0x4e')]['change'](()=>{if(_0x4eea0d)return void _0x2fc7c6[_0x3f09('0x6d')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x4eea0d));const _0x450948=_0x5e13df[_0x3f09('0x2')](_0x4dc9f3);_0x3c6d07(_0x3e31d3),_0x4dc9f3=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model']['document'][_0x3f09('0x20')]),_0x4eea0d=_0x117fdf[_0x3f09('0x77')](_0x4dc9f3),_0x2fc7c6[_0x3f09('0x1')](_0x53e1b6['model'][_0x3f09('0x78')](_0x4eea0d),_0x450948?null:_0x3f09('0x1b'));});}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x6e'),_0x3f09('0x1b'),'chain',_0x2d40a7)),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')]('ImageStyleEditing')){_0x2fc7c6['enableCommand'](_0x3f09('0x38'),(_0x473552,_0x40e8d1)=>{const _0x43637e=_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x1c')](_0x3f09('0x19'))['me'],_0x3a70e7=_0x53e1b6['commands'][_0x3f09('0x1c')](_0x3f09('0x38'));let _0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0x4ac3ed=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x1e6497),_0x15b479=_0x3a70e7['value'];if(_0x15b479==_0x40e8d1[_0x3f09('0x3')])return;const _0x244821={'commandName':_0x3f09('0x38'),'commandParams':[_0x40e8d1],'formatGroupId':_0xf209ef()};_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{if(_0x2fc7c6[_0x3f09('0x4b')]()['filter'](_0x3bc877=>_0x3bc877[_0x3f09('0x11')]&&_0x43637e==_0x3bc877['author']&&(_0x3f09('0x32')==_0x3bc877['type']||_0x3f09('0x4')==_0x3bc877[_0x3f09('0x5b')])&&(_0x3f09('0x4f')==_0x3bc877[_0x3f09('0xf')]||'imageStylePostApply'==_0x3bc877[_0x3f09('0xf')])&&_0x3bc877[_0x3f09('0x15')]()[_0x3f09('0x65')](_0x4ac3ed))[_0x3f09('0x8')](_0x26762b=>_0x2fc7c6[_0x3f09('0x72')](_0x26762b['head'])),_0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')]['document'][_0x3f09('0x20')]),_0x4ac3ed=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x1e6497),_0x3a70e7[_0x3f09('0x50')](),_0x53e1b6[_0x3f09('0x3b')][_0x3f09('0x1c')]('imageTypeInline')[_0x3f09('0x50')](),_0x53e1b6['commands'][_0x3f09('0x1c')](_0x3f09('0x24'))[_0x3f09('0x50')](),_0x15b479=_0x3a70e7['value'],_0x15b479!=_0x40e8d1['value'])return _0x5e13df[_0x3f09('0x64')](_0x1e6497)&&_0x3a70e7['shouldConvertImageType'](_0x40e8d1['value'],_0x1e6497)?(_0x473552({..._0x40e8d1,'setImageSizes':!0x1}),_0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')][_0x3f09('0x20')]),void _0x2fc7c6['markBlockFormat'](_0x1e6497,{..._0x244821,'commandReversedParams':[{'value':_0x15b479||null,'setImageSizes':!0x1}]},[],_0x3f09('0x4f'))):void(_0x5e13df[_0x3f09('0x2')](_0x1e6497)?_0x2fc7c6['markBlockFormat'](_0x1e6497,_0x244821,[],_0x3f09('0x12')):_0x2fc7c6[_0x3f09('0x71')](_0x4ac3ed,_0x244821,_0x3f09('0x12')));});});for(const _0x14b51b of _0x53e1b6['plugins']['get'](_0x3f09('0x17'))[_0x3f09('0x0')])_0x174a87[_0x14b51b[_0x3f09('0x1e')]]=_0x14b51b[_0x3f09('0x9')][_0x3f09('0xb')]();_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')]('formatBlock',_0x3f09('0x4f'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x12'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6['_suggestionFactory']['registerCustomCallback'](_0x3f09('0x4'),_0x3f09('0x12'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x4f'),_0x3f09('0x3e'),([_0x42e536])=>{_0x5e13df['setImageNaturalSizeAttributes'](_0x42e536[_0x3f09('0x2f')]());}),_0x2fc7c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f09('0x4f'),_0x3f09('0xc'),(_0x4826cc,_0x4186c8)=>{_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')]('formatBlock','',_0x3f09('0x3e'))(_0x4826cc,{'commandName':_0x4186c8[_0x3f09('0x58')],'commandParams':_0x4186c8[_0x3f09('0x1a')]});}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')]('formatBlock',_0x3f09('0x4f'),'chain',_0x2d40a7);}const _0x596df8=[{'type':_0x3f09('0x32'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0x3f09('0x1b')},{'type':_0x3f09('0x32'),'subType':_0x3f09('0x29')},{'type':_0x3f09('0x6e'),'subType':_0x3f09('0x29')}];function _0x1ce7cf(_0xf60062,_0x563a2e){const _0x446f6a=_0x596df8['findIndex'](({type:_0x645a3d,subType:_0x129dcc})=>_0xf60062[_0x3f09('0x5b')]==_0x645a3d&&_0xf60062[_0x3f09('0xf')]==_0x129dcc),_0x3bc40b=_0x596df8[_0x3f09('0x5d')](({type:_0x2483e8,subType:_0x313cbd})=>_0x563a2e[_0x3f09('0x5b')]==_0x2483e8&&_0x563a2e['subType']==_0x313cbd);if(_0x446f6a<0x0||_0x3bc40b<0x0)return!0x1;const _0x5f2b9b=_0xf60062[_0x3f09('0x15')](),_0x421c7e=_0x563a2e[_0x3f09('0x15')]();if((0x0==_0x446f6a||0x1==_0x446f6a)&&0x2==_0x3bc40b&&_0x5f2b9b[_0x3f09('0x53')](_0x421c7e))return!0x0;if(0x2==_0x446f6a&&0x3==_0x3bc40b){const _0x4619be=_0x2fc7c6['_findSuggestions'](_0x5f2b9b,_0x3f09('0x6e'))[_0x3f09('0xa')](({suggestion:_0x173de2,meta:_0x35e5a4})=>_0x35e5a4[_0x3f09('0x7')]&&_0x3f09('0x29')==_0x173de2[_0x3f09('0xf')]);if(_0x4619be['length']>0x1&&_0x421c7e[_0x3f09('0x6f')][_0x3f09('0x65')](_0x5f2b9b[_0x3f09('0x22')]))return!0x0;if(0x1==_0x4619be[_0x3f09('0x49')]&&(_0x5f2b9b[_0x3f09('0x22')][_0x3f09('0x65')](_0x421c7e[_0x3f09('0x6f')])||_0x5f2b9b['end'][_0x3f09('0x65')](_0x421c7e[_0x3f09('0x22')])))return!0x0;}if(0x3==_0x446f6a&&0x3==_0x3bc40b&&_0x5f2b9b[_0x3f09('0x22')]['isBefore'](_0x421c7e[_0x3f09('0x22')])){const _0x4278c2=_0x5f2b9b[_0x3f09('0x6f')][_0x3f09('0x28')],_0x3f1f8c=_0x421c7e[_0x3f09('0x22')][_0x3f09('0x61')];return _0x5e13df[_0x3f09('0x2')](_0x4278c2)&&_0x4278c2===_0x3f1f8c;}return!0x1;}function _0x2d40a7(_0x3e6de5,_0xdf7d26){return _0x1ce7cf(_0x3e6de5,_0xdf7d26)?[_0x3e6de5,_0xdf7d26]:_0x1ce7cf(_0xdf7d26,_0x3e6de5)?[_0xdf7d26,_0x3e6de5]:null;}_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')]['registerPostFixer'](()=>{let _0xeed083=!0x1;const _0xcbc027=Array[_0x3f09('0x44')](_0x53e1b6['model']['document'][_0x3f09('0x51')][_0x3f09('0x70')]());for(const {name:_0x326f58,data:_0x5d36af}of _0xcbc027){const {group:_0x125507,type:_0xfbed9b,subType:_0xb5b523,id:_0x1728e1}=_0x2fc7c6[_0x3f09('0x56')](_0x326f58);if('suggestion'==_0x125507&&_0x2fc7c6[_0x3f09('0x67')](_0x1728e1)){if(_0x3f09('0x32')==_0xfbed9b&&(_0x3f09('0x4f')==_0xb5b523||_0x3f09('0x12')==_0xb5b523)){const _0x9d48c4=_0x2fc7c6[_0x3f09('0x1f')](_0x1728e1);if(_0x5d36af[_0x3f09('0x2a')]){const _0x57dcab=_0x9d48c4[_0x3f09('0x15')]()[_0x3f09('0x2f')]();if(_0x5e13df[_0x3f09('0x2')](_0x57dcab))continue;_0x2fc7c6[_0x3f09('0x72')](_0x9d48c4),_0xeed083=!0x0;}}if(_0x3f09('0x6e')==_0xfbed9b&&'imageCaption'==_0xb5b523&&!_0x5d36af[_0x3f09('0x2a')]){const _0x4663c9=_0x2fc7c6[_0x3f09('0x1f')](_0x1728e1);_0x4663c9[_0x3f09('0x55')]&&_0x4663c9[_0x3f09('0x55')][_0x3f09('0x11')]&&(_0x2fc7c6['discardSuggestion'](_0x4663c9[_0x3f09('0x55')]),_0xeed083=!0x0);}}}return _0xeed083;}),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x3d'))&&_0x2fc7c6[_0x3f09('0x45')]('resizeImage',(_0x19e08a,_0x54e635)=>{const _0x479e29=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')][_0x3f09('0x20')]);_0x479e29[_0x3f09('0x40')](_0x3f09('0x5e'))!=_0x54e635[_0x3f09('0x2d')]&&_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{_0x2fc7c6[_0x3f09('0x2e')](_0x479e29,{'commandName':_0x3f09('0x3c'),'commandParams':[_0x54e635]});});}),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x46'))&&_0x2fc7c6[_0x3f09('0x45')]('imageTextAlternative',(_0x504975,_0x45c1f9)=>{const _0x55eb1b=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]);(_0x55eb1b[_0x3f09('0x21')](_0x3f09('0x60'))?_0x55eb1b[_0x3f09('0x40')](_0x3f09('0x60')):'')!=_0x45c1f9['newValue']&&_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{_0x2fc7c6['markBlockFormat'](_0x55eb1b,{'commandName':_0x3f09('0x33'),'commandParams':[_0x45c1f9]});});}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x304449=>{if(!!_0x596df8[_0x3f09('0x69')](({type:_0x1902e0,subType:_0x37062e})=>_0x304449[_0x3f09('0x5b')]==_0x1902e0&&_0x304449[_0x3f09('0xf')]==_0x37062e))return _0x304449[_0x3f09('0x6a')]?{}:void 0x0;}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x27768f=>{if(_0x3f09('0x6e')==_0x27768f[_0x3f09('0x5b')]||'deletion'==_0x27768f[_0x3f09('0x5b')]){const _0x204952=_0x27768f[_0x3f09('0x2f')]();if(_0x204952&&_0x204952['is'](_0x3f09('0x68'),_0x3f09('0x36')))return{'type':_0x3f09('0x6e')==_0x27768f[_0x3f09('0x5b')]?_0x3f09('0x14'):_0x3f09('0x41'),'element':_0x204952,'quantity':0x1};}}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x3a264e=>_0x3f09('0x32')==_0x3a264e[_0x3f09('0x5b')]&&_0x3f09('0x29')==_0x3a264e[_0x3f09('0xf')]?{'type':_0x3f09('0x16'),'content':_0x3f09('0x2c')}:_0x3f09('0x32')==_0x3a264e['type']&&_0x3f09('0x43')==_0x3a264e[_0x3f09('0xf')]?{'type':_0x3f09('0x16'),'content':_0x3f09('0x79')}:void 0x0),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x3a7f98=>{const {data:_0x1cfb29}=_0x3a7f98;if(_0x1cfb29){if('imageStyle'==_0x1cfb29[_0x3f09('0x58')]){const _0x2a2624=_0x1cfb29[_0x3f09('0x35')][0x0]['value'];return _0x3deaf4(_0x3f09('0x1d')===_0x2a2624?_0x3532df(_0x505a2b,_0x3f09('0x52')):_0x174a87[_0x2a2624]||_0x2a2624);}if(_0x3f09('0x33')==_0x1cfb29[_0x3f09('0x58')]){const _0x2e4319=_0x1cfb29['commandParams'][0x0]['newValue'];return _0x2e4319?{'type':_0x3f09('0x16'),'content':_0x3532df(_0x505a2b,_0x3f09('0x6b'),'\x22'+_0x2e4319+'\x22')}:{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0xe'))};}if(_0x3f09('0x3c')==_0x1cfb29[_0x3f09('0x58')]){const _0x236339=_0x1cfb29[_0x3f09('0x35')][0x0][_0x3f09('0x2d')];return _0x236339?{'type':_0x3f09('0x16'),'content':_0x3532df(_0x505a2b,_0x3f09('0x27'),_0x236339)}:{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0x18'))};}}function _0x3deaf4(_0x3c0251){return{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0x76'),_0x3c0251)};}});}}
|
|
23
|
+
const _0x4413=['insertion','ImageStyleEditing','_splitMarkerName','isOwn','removeObject','_findSuggestions','*Set\x20image\x20text\x20alternative:*\x20%0','setImageNaturalSizeAttributes','discardSuggestion','join','author','toggleImageCaption','registerElementLabel','markBlockFormat','ImageEditing','caption','shouldConvertImageType','createRange','convertBlockImageToInline','nodeAfter','imageStyle','convertInlineImageToBlock','getContainedElement','model','start','*Reset\x20image\x20width*','nodeBefore','Block\x20image\x20to\x20inline\x20image','getChangedMarkers','createRangeOn','value','name','addObject','chain','width','getNearestSelectionRange','isIntersecting','formatBlock','commands','ImageCaptionUtils','plugins','getAttribute','*Remove\x20image\x20text\x20alternative*','uploadImage','fromPosition','length','imageStylePostApply','selection','markInsertion','subType','imageBlock','toPrevious','imageStylePreApply','next','discard','ImageUtils','editor','enableCommand','hasSuggestion','ImageTextAlternativeEditing','findIndex','forEach','normalizedStyles','resizeImage','end','ImageResize','toLowerCase','ImageUploadEditing','afterInit','imageCaption','_suggestionFactory','getCaptionFromImageModelElement','commandReversedParams','locale','isBlockImage','markInlineFormat','registerCustomCallback','type','side','format','imageTextAlternative','getClosestSelectedImageElement','newValue','ELEMENT_CAPTION','insertImage','detach','formatInline','Inline\x20image\x20to\x20block\x20image','isInlineImage','TrackChangesEditing','isInContent','toNext','isCollapsed','registerDescriptionCallback','isEqual','imageTypeInline','_descriptionFactory','hasAttribute','change','accept','getFirstRange','newRange','commandParams','imageTypeBlock','ImageCaptionEditing','from','commandName','head','alt','registerPostFixer','backward','FORMAT_SIDE_IMAGE','ELEMENT_INLINE_IMAGE','getSuggestions','differ','document','get','refresh','isBefore','forceDefaultExecution','has','getSuggestionCallback','filter'];(function(_0x618009,_0x4413d1){const _0x1ce7e7=function(_0x334ca5){while(--_0x334ca5){_0x618009['push'](_0x618009['shift']());}};_0x1ce7e7(++_0x4413d1);}(_0x4413,0x7d));const _0x1ce7=function(_0x618009,_0x4413d1){_0x618009=_0x618009-0x0;let _0x1ce7e7=_0x4413[_0x618009];return _0x1ce7e7;};import{Plugin as _0x24b4ff}from'ckeditor5/src/core';import{LivePosition as _0x44ef07}from'ckeditor5/src/engine';import{uid as _0x8ece5c}from'ckeditor5/src/utils';import{getTranslation as _0x78083}from'../utils/common-translations';export default class Y extends _0x24b4ff{[_0x1ce7('0x42')](){const _0x190228=this[_0x1ce7('0x36')];if(!_0x190228['plugins'][_0x1ce7('0x76')](_0x1ce7('0xc')))return;const _0x39cd6=_0x190228[_0x1ce7('0x26')][_0x1ce7('0x72')](_0x1ce7('0x57')),_0x2d42be=_0x190228[_0x1ce7('0x26')][_0x1ce7('0x72')](_0x1ce7('0x35')),_0x4e6407={},_0xcd9ef4=_0x190228[_0x1ce7('0x47')];if(_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x52')),_0x39cd6[_0x1ce7('0x5e')]['registerElementLabel'](_0x1ce7('0x30'),_0x375b29=>_0x78083(_0xcd9ef4,'ELEMENT_IMAGE',_0x375b29)),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0xa')]('imageInline',_0x1dc034=>_0x78083(_0xcd9ef4,_0x1ce7('0x6e'),_0x1dc034)),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0xa')](_0x1ce7('0xd'),()=>_0x78083(_0xcd9ef4,_0x1ce7('0x51'))),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x41'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x29')),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')]('ImageBlockEditing')&&_0x190228['plugins'][_0x1ce7('0x76')]('ImageInlineEditing')&&(_0x39cd6['enableCommand'](_0x1ce7('0x5d'),(_0x57b720,_0x3f3f5b)=>{const _0x4b1ecf=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);_0x190228[_0x1ce7('0x15')][_0x1ce7('0x60')](()=>{_0x39cd6[_0x1ce7('0xb')](_0x4b1ecf,{'commandName':'imageTypeInline','commandParams':[_0x3f3f5b]},[],_0x1ce7('0x10'));});}),_0x39cd6['enableCommand'](_0x1ce7('0x65'),(_0x27e3e8,_0x2c8d89)=>{_0x190228[_0x1ce7('0x15')]['change'](_0x28d0dd=>{let _0xb601be=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x4e383e=_0x28d0dd[_0x1ce7('0x1b')](_0xb601be);const _0x24678c=_0x44ef07['fromPosition'](_0x4e383e[_0x1ce7('0x16')],_0x1ce7('0x31')),_0x165b8c=_0x44ef07[_0x1ce7('0x2a')](_0x4e383e['end'],_0x1ce7('0x59'));_0x39cd6[_0x1ce7('0x75')](()=>_0x27e3e8(_0x2c8d89)),_0xb601be=_0x2d42be['getClosestSelectedImageElement'](_0x190228['model'][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x4e383e=_0x28d0dd[_0x1ce7('0x1b')](_0xb601be);const _0x3a8ff5=_0x28d0dd[_0x1ce7('0xf')](_0x24678c,_0x165b8c);_0x24678c[_0x1ce7('0x53')](),_0x165b8c[_0x1ce7('0x53')](),_0x39cd6[_0x1ce7('0xb')](_0xb601be,{'commandName':'imageTypeInline','commandParams':[_0x2c8d89]},[],_0x1ce7('0x13')),_0x3a8ff5[_0x1ce7('0x16')]['isBefore'](_0x4e383e['start'])&&_0x39cd6['markInsertion'](_0x28d0dd[_0x1ce7('0xf')](_0x3a8ff5[_0x1ce7('0x16')],_0x4e383e[_0x1ce7('0x16')]),'convertInlineImageToBlock'),_0x4e383e['end'][_0x1ce7('0x74')](_0x3a8ff5[_0x1ce7('0x3e')])&&_0x39cd6['markInsertion'](_0x28d0dd[_0x1ce7('0xf')](_0x4e383e[_0x1ce7('0x3e')],_0x3a8ff5[_0x1ce7('0x3e')]),_0x1ce7('0x13'));});}),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x13'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),_0x1ce7('0x13'),'accept',()=>!0x1),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x13'),'discard',_0x39cd6['_suggestionFactory']['getSuggestionCallback'](_0x1ce7('0x23'),'',_0x1ce7('0x61'))),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')]('insertion',_0x1ce7('0x13'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6['_suggestionFactory']['registerCustomCallback'](_0x1ce7('0x79'),'convertInlineImageToBlock',_0x1ce7('0x34'),([_0x317cc6])=>{const _0x7006de=_0x39cd6[_0x1ce7('0x44')]['getSuggestionCallback'](_0x1ce7('0x79'),'',_0x1ce7('0x34'));let _0x2843b6=_0x317cc6[_0x1ce7('0x16')],_0x1798e7=_0x317cc6[_0x1ce7('0x3e')];const _0xf560f4=_0x190228['model']['schema'][_0x1ce7('0x21')](_0x2843b6,_0x1ce7('0x6c')),_0x318c7f=_0x190228['model']['schema'][_0x1ce7('0x21')](_0x1798e7,'forward');_0xf560f4[_0x1ce7('0x5a')]&&(_0x2843b6=_0xf560f4['start']),_0x318c7f[_0x1ce7('0x5a')]&&(_0x1798e7=_0x318c7f[_0x1ce7('0x3e')]),_0x7006de([_0x190228['model']['createRange'](_0x2843b6,_0x1798e7)]);}),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x13'),'chain',_0x1c0d77),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('insertion','convertInlineImageToBlock',_0x1ce7('0x1f'),_0x1c0d77)),_0x190228['plugins'][_0x1ce7('0x76')](_0x1ce7('0x66'))&&(_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x9'),(_0x3173c5,_0x335bac)=>{const _0xda56aa=_0x190228[_0x1ce7('0x26')]['get'](_0x1ce7('0x25'));let _0x1a8c6b=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')]['selection']),_0x154327=_0xda56aa[_0x1ce7('0x45')](_0x1a8c6b);_0x190228['model'][_0x1ce7('0x60')](()=>{if(_0x154327)return void _0x39cd6['markDeletion'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x1b')](_0x154327));const _0x3eecbf=_0x2d42be['isBlockImage'](_0x1a8c6b);_0x3173c5(_0x335bac),_0x1a8c6b=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x154327=_0xda56aa['getCaptionFromImageModelElement'](_0x1a8c6b),_0x39cd6[_0x1ce7('0x2e')](_0x190228['model'][_0x1ce7('0x1b')](_0x154327),_0x3eecbf?null:_0x1ce7('0x43'));});}),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')](_0x1ce7('0x79'),_0x1ce7('0x43'),_0x1ce7('0x1f'),_0x1c0d77)),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x7a'))){_0x39cd6[_0x1ce7('0x37')]('imageStyle',(_0x28852a,_0x4c70fe)=>{const _0x2d4b44=_0x190228[_0x1ce7('0x26')]['get']('Users')['me'],_0x28e0ee=_0x190228['commands'][_0x1ce7('0x72')](_0x1ce7('0x12'));let _0x1c7f25=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')]['document']['selection']),_0x2f7a20=_0x190228['model'][_0x1ce7('0x1b')](_0x1c7f25),_0x40b754=_0x28e0ee[_0x1ce7('0x1c')];if(_0x40b754==_0x4c70fe[_0x1ce7('0x1c')])return;const _0x12ab2b={'commandName':'imageStyle','commandParams':[_0x4c70fe],'formatGroupId':_0x8ece5c()};_0x190228['model'][_0x1ce7('0x60')](()=>{if(_0x39cd6[_0x1ce7('0x6f')]()[_0x1ce7('0x78')](_0x406dae=>_0x406dae[_0x1ce7('0x58')]&&_0x2d4b44==_0x406dae[_0x1ce7('0x8')]&&(_0x1ce7('0x23')==_0x406dae[_0x1ce7('0x4b')]||'formatInline'==_0x406dae[_0x1ce7('0x4b')])&&(_0x1ce7('0x32')==_0x406dae[_0x1ce7('0x2f')]||_0x1ce7('0x2c')==_0x406dae['subType'])&&_0x406dae[_0x1ce7('0x62')]()[_0x1ce7('0x5c')](_0x2f7a20))[_0x1ce7('0x3b')](_0x53bf23=>_0x39cd6[_0x1ce7('0x6')](_0x53bf23[_0x1ce7('0x69')])),_0x1c7f25=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')]['selection']),_0x2f7a20=_0x190228[_0x1ce7('0x15')]['createRangeOn'](_0x1c7f25),_0x28e0ee[_0x1ce7('0x73')](),_0x190228['commands']['get']('imageTypeInline')['refresh'](),_0x190228[_0x1ce7('0x24')][_0x1ce7('0x72')]('imageTypeBlock')[_0x1ce7('0x73')](),_0x40b754=_0x28e0ee['value'],_0x40b754!=_0x4c70fe[_0x1ce7('0x1c')])return _0x2d42be[_0x1ce7('0x56')](_0x1c7f25)&&_0x28e0ee[_0x1ce7('0xe')](_0x4c70fe[_0x1ce7('0x1c')],_0x1c7f25)?(_0x28852a({..._0x4c70fe,'setImageSizes':!0x1}),_0x1c7f25=_0x2d42be[_0x1ce7('0x4f')](_0x190228['model'][_0x1ce7('0x71')][_0x1ce7('0x2d')]),void _0x39cd6[_0x1ce7('0xb')](_0x1c7f25,{..._0x12ab2b,'commandReversedParams':[{'value':_0x40b754||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d42be['isBlockImage'](_0x1c7f25)?_0x39cd6['markBlockFormat'](_0x1c7f25,_0x12ab2b,[],_0x1ce7('0x2c')):_0x39cd6[_0x1ce7('0x49')](_0x2f7a20,_0x12ab2b,_0x1ce7('0x2c')));});});for(const _0xdba59a of _0x190228[_0x1ce7('0x26')]['get'](_0x1ce7('0x7a'))[_0x1ce7('0x3c')])_0x4e6407[_0xdba59a[_0x1ce7('0x1d')]]=_0xdba59a['title'][_0x1ce7('0x40')]();_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x32'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x2c'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x54'),'imageStylePostApply','join',()=>!0x1),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x32'),'accept',([_0x19d0e1])=>{_0x2d42be[_0x1ce7('0x5')](_0x19d0e1[_0x1ce7('0x14')]());}),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),'imageStylePreApply',_0x1ce7('0x34'),(_0x2c8dfe,_0x5e2159)=>{_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x77')](_0x1ce7('0x23'),'',_0x1ce7('0x61'))(_0x2c8dfe,{'commandName':_0x5e2159[_0x1ce7('0x68')],'commandParams':_0x5e2159[_0x1ce7('0x46')]});}),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),_0x1ce7('0x32'),_0x1ce7('0x1f'),_0x1c0d77);}const _0x2e3f0b=[{'type':_0x1ce7('0x23'),'subType':'imageStylePreApply'},{'type':_0x1ce7('0x79'),'subType':_0x1ce7('0x43')},{'type':'formatBlock','subType':_0x1ce7('0x13')},{'type':'insertion','subType':_0x1ce7('0x13')}];function _0x1b79b9(_0x477ca6,_0x2c6306){const _0x222269=_0x2e3f0b[_0x1ce7('0x3a')](({type:_0x506e27,subType:_0x537111})=>_0x477ca6[_0x1ce7('0x4b')]==_0x506e27&&_0x477ca6[_0x1ce7('0x2f')]==_0x537111),_0x318fed=_0x2e3f0b[_0x1ce7('0x3a')](({type:_0x43c71d,subType:_0x424e5b})=>_0x2c6306[_0x1ce7('0x4b')]==_0x43c71d&&_0x2c6306[_0x1ce7('0x2f')]==_0x424e5b);if(_0x222269<0x0||_0x318fed<0x0)return!0x1;const _0x5a82f7=_0x477ca6[_0x1ce7('0x62')](),_0x4a0a16=_0x2c6306[_0x1ce7('0x62')]();if((0x0==_0x222269||0x1==_0x222269)&&0x2==_0x318fed&&_0x5a82f7[_0x1ce7('0x22')](_0x4a0a16))return!0x0;if(0x2==_0x222269&&0x3==_0x318fed){const _0x33411b=_0x39cd6[_0x1ce7('0x3')](_0x5a82f7,'insertion')[_0x1ce7('0x78')](({suggestion:_0x5ca11a,meta:_0x39b123})=>_0x39b123[_0x1ce7('0x1')]&&'convertInlineImageToBlock'==_0x5ca11a[_0x1ce7('0x2f')]);if(_0x33411b[_0x1ce7('0x2b')]>0x1&&_0x4a0a16['end'][_0x1ce7('0x5c')](_0x5a82f7[_0x1ce7('0x16')]))return!0x0;if(0x1==_0x33411b['length']&&(_0x5a82f7[_0x1ce7('0x16')][_0x1ce7('0x5c')](_0x4a0a16[_0x1ce7('0x3e')])||_0x5a82f7[_0x1ce7('0x3e')][_0x1ce7('0x5c')](_0x4a0a16['start'])))return!0x0;}if(0x3==_0x222269&&0x3==_0x318fed&&_0x5a82f7['start'][_0x1ce7('0x74')](_0x4a0a16['start'])){const _0x119a85=_0x5a82f7[_0x1ce7('0x3e')][_0x1ce7('0x11')],_0x12e19f=_0x4a0a16[_0x1ce7('0x16')][_0x1ce7('0x18')];return _0x2d42be[_0x1ce7('0x48')](_0x119a85)&&_0x119a85===_0x12e19f;}return!0x1;}function _0x1c0d77(_0x51d781,_0x545c9d){return _0x1b79b9(_0x51d781,_0x545c9d)?[_0x51d781,_0x545c9d]:_0x1b79b9(_0x545c9d,_0x51d781)?[_0x545c9d,_0x51d781]:null;}_0x190228[_0x1ce7('0x15')]['document'][_0x1ce7('0x6b')](()=>{let _0x41b3c2=!0x1;const _0x4f4668=Array[_0x1ce7('0x67')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x70')][_0x1ce7('0x1a')]());for(const {name:_0x222727,data:_0x2f0b0e}of _0x4f4668){const {group:_0x6608d,type:_0x365c95,subType:_0x2e894a,id:_0x4ab7b3}=_0x39cd6[_0x1ce7('0x0')](_0x222727);if('suggestion'==_0x6608d&&_0x39cd6[_0x1ce7('0x38')](_0x4ab7b3)){if(_0x1ce7('0x23')==_0x365c95&&(_0x1ce7('0x32')==_0x2e894a||_0x1ce7('0x2c')==_0x2e894a)){const _0x5ede8f=_0x39cd6['getSuggestion'](_0x4ab7b3);if(_0x2f0b0e[_0x1ce7('0x63')]){const _0x7b554f=_0x5ede8f[_0x1ce7('0x62')]()['getContainedElement']();if(_0x2d42be[_0x1ce7('0x48')](_0x7b554f))continue;_0x39cd6[_0x1ce7('0x6')](_0x5ede8f),_0x41b3c2=!0x0;}}if('insertion'==_0x365c95&&_0x1ce7('0x43')==_0x2e894a&&!_0x2f0b0e[_0x1ce7('0x63')]){const _0x2d24ea=_0x39cd6['getSuggestion'](_0x4ab7b3);_0x2d24ea[_0x1ce7('0x33')]&&_0x2d24ea['next'][_0x1ce7('0x58')]&&(_0x39cd6[_0x1ce7('0x6')](_0x2d24ea[_0x1ce7('0x33')]),_0x41b3c2=!0x0);}}}return _0x41b3c2;}),_0x190228[_0x1ce7('0x26')]['has'](_0x1ce7('0x3f'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x3d'),(_0x6aeb81,_0x3c644a)=>{const _0x202ffe=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);_0x202ffe[_0x1ce7('0x27')]('resizedWidth')!=_0x3c644a[_0x1ce7('0x20')]&&_0x190228[_0x1ce7('0x15')][_0x1ce7('0x60')](()=>{_0x39cd6['markBlockFormat'](_0x202ffe,{'commandName':_0x1ce7('0x3d'),'commandParams':[_0x3c644a]});});}),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x39'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x4e'),(_0x22cc84,_0x10cece)=>{const _0x202e82=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);(_0x202e82[_0x1ce7('0x5f')](_0x1ce7('0x6a'))?_0x202e82[_0x1ce7('0x27')](_0x1ce7('0x6a')):'')!=_0x10cece[_0x1ce7('0x50')]&&_0x190228['model'][_0x1ce7('0x60')](()=>{_0x39cd6[_0x1ce7('0xb')](_0x202e82,{'commandName':_0x1ce7('0x4e'),'commandParams':[_0x10cece]});});}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x31594b=>{if(!!_0x2e3f0b['find'](({type:_0x4723f2,subType:_0x57f461})=>_0x31594b[_0x1ce7('0x4b')]==_0x4723f2&&_0x31594b[_0x1ce7('0x2f')]==_0x57f461))return _0x31594b['previous']?{}:void 0x0;}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x1ad880=>{if(_0x1ce7('0x79')==_0x1ad880[_0x1ce7('0x4b')]||'deletion'==_0x1ad880[_0x1ce7('0x4b')]){const _0x24691=_0x1ad880[_0x1ce7('0x14')]();if(_0x24691&&_0x24691['is']('element','caption'))return{'type':_0x1ce7('0x79')==_0x1ad880[_0x1ce7('0x4b')]?_0x1ce7('0x1e'):_0x1ce7('0x2'),'element':_0x24691,'quantity':0x1};}}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x382447=>_0x1ce7('0x23')==_0x382447[_0x1ce7('0x4b')]&&_0x1ce7('0x13')==_0x382447['subType']?{'type':_0x1ce7('0x4d'),'content':_0x1ce7('0x55')}:'formatBlock'==_0x382447['type']&&_0x1ce7('0x10')==_0x382447['subType']?{'type':_0x1ce7('0x4d'),'content':_0x1ce7('0x19')}:void 0x0),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0x5b')](_0x10e372=>{const {data:_0x4a2b19}=_0x10e372;if(_0x4a2b19){if('imageStyle'==_0x4a2b19[_0x1ce7('0x68')]){const _0x136170=_0x4a2b19[_0x1ce7('0x64')][0x0]['value'];return _0x1f2f55(_0x1ce7('0x4c')===_0x136170?_0x78083(_0xcd9ef4,_0x1ce7('0x6d')):_0x4e6407[_0x136170]||_0x136170);}if('imageTextAlternative'==_0x4a2b19[_0x1ce7('0x68')]){const _0x1f1b52=_0x4a2b19[_0x1ce7('0x64')][0x0][_0x1ce7('0x50')];return _0x1f1b52?{'type':'format','content':_0x78083(_0xcd9ef4,_0x1ce7('0x4'),'\x22'+_0x1f1b52+'\x22')}:{'type':'format','content':_0x78083(_0xcd9ef4,_0x1ce7('0x28'))};}if(_0x1ce7('0x3d')==_0x4a2b19['commandName']){const _0x4c15db=_0x4a2b19[_0x1ce7('0x64')][0x0][_0x1ce7('0x20')];return _0x4c15db?{'type':'format','content':_0x78083(_0xcd9ef4,'*Set\x20image\x20width:*\x20%0',_0x4c15db)}:{'type':_0x1ce7('0x4d'),'content':_0x78083(_0xcd9ef4,_0x1ce7('0x17'))};}}function _0x1f2f55(_0x2c160e){return{'type':_0x1ce7('0x4d'),'content':_0x78083(_0xcd9ef4,'*Format:*\x20%0',_0x2c160e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x225d=['ImageEditing','get','getAttribute','getSuggestions','selection','format','_suggestionFactory','locale','getSuggestionCallback','change','getSelectedElement','handleReplaceImageCommand','_descriptionFactory','afterInit','Users','model','replaceImageSource','has','discard','document','handleSuggestionDescription','data','getContainedElement','TrackChangesEditing','plugins','formatBlock','accept','*Format:*\x20replace\x20image\x20URL','editor','commandParams','subType','registerCustomCallback','source'];(function(_0x194330,_0x225d59){const _0xa87693=function(_0x1fc42a){while(--_0x1fc42a){_0x194330['push'](_0x194330['shift']());}};_0xa87693(++_0x225d59);}(_0x225d,0xce));const _0xa876=function(_0x194330,_0x225d59){_0x194330=_0x194330-0x0;let _0xa87693=_0x225d[_0x194330];return _0xa87693;};import{Plugin as _0x4f768e}from'ckeditor5/src/core';import{getTranslation as _0x425ab5}from'../utils/common-translations';export default class Z extends _0x4f768e{[_0xa876('0x5')](){if(!this[_0xa876('0x14')][_0xa876('0x10')][_0xa876('0x9')](_0xa876('0x19')))return;const _0x32884b=this[_0xa876('0x14')][_0xa876('0x10')]['get'](_0xa876('0xf'));_0x32884b['enableCommand'](_0xa876('0x8'),(_0x4e66fa,_0x1dd59b)=>this[_0xa876('0x3')](_0x4e66fa,_0x1dd59b)),_0x32884b[_0xa876('0x1f')]['registerCustomCallback'](_0xa876('0x11'),'replaceImageSource','accept',_0x32884b[_0xa876('0x1f')][_0xa876('0x0')](_0xa876('0x11'),null,_0xa876('0xa'))),_0x32884b['_suggestionFactory'][_0xa876('0x17')](_0xa876('0x11'),'replaceImageSource',_0xa876('0xa'),_0x32884b[_0xa876('0x1f')]['getSuggestionCallback'](_0xa876('0x11'),null,_0xa876('0x12'))),_0x32884b[_0xa876('0x4')]['registerDescriptionCallback'](_0x5272b2=>this[_0xa876('0xc')](_0x5272b2));}[_0xa876('0x3')](_0xcf9ea0,_0x3fcdef){const _0x413178=this['editor']['plugins'][_0xa876('0x1a')](_0xa876('0xf')),_0x5701d9=this[_0xa876('0x14')][_0xa876('0x7')][_0xa876('0xb')][_0xa876('0x1d')][_0xa876('0x2')]();this[_0xa876('0x14')][_0xa876('0x7')][_0xa876('0x1')](()=>{let _0x2d3316=_0x5701d9[_0xa876('0x1b')]('src');const _0x1abf10=this[_0xa876('0x14')]['plugins'][_0xa876('0x1a')](_0xa876('0x6'))['me'];for(const _0x5c92c4 of _0x413178[_0xa876('0x1c')]({'skipNotAttached':!0x0})){const _0x5506d2=_0x5c92c4[_0xa876('0xe')]();if(_0xa876('0x8')===_0x5c92c4[_0xa876('0x16')]&&_0x5506d2===_0x5701d9){_0x5c92c4['author']!==_0x1abf10&&_0x5c92c4[_0xa876('0xa')](),_0x2d3316=_0x5c92c4[_0xa876('0xd')][_0xa876('0x15')][0x0][_0xa876('0x18')];break;}}_0xcf9ea0(_0x3fcdef),_0x413178['markBlockFormat'](_0x5701d9,{'commandName':'replaceImageSource','commandParams':[{'source':_0x2d3316}]},[],_0xa876('0x8'));});}['handleSuggestionDescription'](_0x551023){const {data:_0x6446ef}=_0x551023;if(_0x6446ef&&_0xa876('0x8')===_0x6446ef['commandName']){const _0x295921=_0xa876('0x13');return{'type':_0xa876('0x1e'),'content':_0x425ab5(this[_0xa876('0x14')][_0xa876('0x20')],_0x295921)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d86=['get','dataInsert','listenTo','_handleImportedData','afterInit','trackChanges','importWord','TrackChangesEditing','editor','bind','enableCommand','_trackChangesValueDuringImport','Users','lowest','execute','plugins','_setSuggestionData','forEach','_trackChangesExecuted','commands','value','collaboration_features'];(function(_0x592c39,_0x3d86dd){const _0x4aafd0=function(_0x35a1a9){while(--_0x35a1a9){_0x592c39['push'](_0x592c39['shift']());}};_0x4aafd0(++_0x3d86dd);}(_0x3d86,0x1da));const _0x4aaf=function(_0x592c39,_0x3d86dd){_0x592c39=_0x592c39-0x0;let _0x4aafd0=_0x3d86[_0x592c39];return _0x4aafd0;};import{Plugin as _0x660f99}from'ckeditor5/src/core';export default class tt extends _0x660f99{constructor(_0x1b2e0c){super(_0x1b2e0c),this[_0x4aaf('0x15')]=!0x1,this[_0x4aaf('0x6')]=!0x1;}[_0x4aaf('0xe')](){const _0x9cbf02=this['editor'],_0x3366f1=_0x9cbf02[_0x4aaf('0x7')][_0x4aaf('0xa')]('importWord'),_0x348977=_0x9cbf02[_0x4aaf('0x7')][_0x4aaf('0xa')](_0x4aaf('0xf'));_0x3366f1&&(_0x3366f1['on'](_0x4aaf('0x2'),(_0x1be246,[,_0x2b61ea])=>{this[_0x4aaf('0x15')]=_0x348977[_0x4aaf('0x8')],_0x2b61ea[_0x4aaf('0x9')]['track_changes']=!this[_0x4aaf('0x15')];},{'priority':'high'}),this[_0x4aaf('0xc')](_0x3366f1,_0x4aaf('0xb'),this[_0x4aaf('0xd')][_0x4aaf('0x13')](this)),this['listenTo'](_0x3366f1,_0x4aaf('0xb'),()=>{this[_0x4aaf('0x6')]&&(_0x348977[_0x4aaf('0x2')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x4aaf('0x1')}),_0x9cbf02[_0x4aaf('0x3')]['get']('TrackChangesEditing')[_0x4aaf('0x14')]('importWord'));}[_0x4aaf('0xd')](_0x5124b2,_0x2cf8fd){const {suggestions:_0x257fe4}=_0x2cf8fd,_0x57e24c=this[_0x4aaf('0x12')][_0x4aaf('0x7')]['get']('trackChanges'),_0x52e32c=_0x57e24c[_0x4aaf('0x8')];this[_0x4aaf('0x15')]!==_0x52e32c&&(_0x57e24c[_0x4aaf('0x2')](),this[_0x4aaf('0x6')]=!0x0),_0x257fe4&&_0x257fe4[_0x4aaf('0x5')](({id:_0x4a6505,type:_0x100606,author:_0x27f491,created_at:_0xd9700d})=>{const _0x42d34e={'id':_0x4a6505,'type':_0x100606,'authorId':this[_0x4aaf('0x12')][_0x4aaf('0x3')][_0x4aaf('0xa')](_0x4aaf('0x0'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27f491,'createdAt':_0xd9700d?new Date(_0xd9700d):new Date(),'source':_0x4aaf('0x10')}}};this[_0x4aaf('0x12')]['plugins'][_0x4aaf('0xa')](_0x4aaf('0x11'))[_0x4aaf('0x4')](_0x42d34e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6291=['enableCommand','registerDescriptionCallback','outdentBlock','plugins','from','*Indent:*\x20%0','_descriptionFactory','blockIndent','indentBlock','format','TrackChangesEditing','document','indent','IndentEditing','getSelectedBlocks','model','IndentBlock','schema','checkAttribute','getItems','locale','commandName','markBlockFormat','selection','getItemLabel','editor','has','get'];(function(_0xaaad6d,_0x629100){const _0x295f28=function(_0x766962){while(--_0x766962){_0xaaad6d['push'](_0xaaad6d['shift']());}};_0x295f28(++_0x629100);}(_0x6291,0x90));const _0x295f=function(_0xaaad6d,_0x629100){_0xaaad6d=_0xaaad6d-0x0;let _0x295f28=_0x6291[_0xaaad6d];return _0x295f28;};import{Plugin as _0x4df8ff}from'ckeditor5/src/core';import{getTranslation as _0x11834d}from'../utils/common-translations';export default class it extends _0x4df8ff{['afterInit'](){const _0x92cf85=this[_0x295f('0x15')],_0x26d873=_0x92cf85[_0x295f('0x1b')][_0x295f('0x17')](_0x295f('0x6'));_0x92cf85[_0x295f('0x1b')][_0x295f('0x16')](_0x295f('0x9'))&&(_0x26d873['enableCommand'](_0x295f('0x8')),_0x26d873['enableCommand']('outdent'));const _0x4f894f=_0x92cf85[_0x295f('0x10')];if(_0x92cf85['plugins'][_0x295f('0x16')](_0x295f('0xc'))){for(const _0x47ccbf of[_0x295f('0x4'),'outdentBlock'])_0x26d873[_0x295f('0x18')](_0x47ccbf,()=>{const _0x44130b=Array[_0x295f('0x0')](this['editor'][_0x295f('0xb')][_0x295f('0x7')][_0x295f('0x13')][_0x295f('0xa')]())['filter'](_0x35c2cb=>this[_0x295f('0x15')][_0x295f('0xb')][_0x295f('0xd')][_0x295f('0xe')](_0x35c2cb,_0x295f('0x3')));_0x92cf85[_0x295f('0xb')]['change'](()=>{for(const _0x1d0c6b of _0x44130b)_0x26d873[_0x295f('0x12')](_0x1d0c6b,{'commandName':_0x47ccbf,'commandParams':[{'value':''}],'formatGroupId':_0x295f('0x4')});});});_0x26d873[_0x295f('0x2')][_0x295f('0x19')](_0x1e9a55=>{const {data:_0x431a1f}=_0x1e9a55;if(!_0x431a1f)return;if('indentBlock'!=_0x431a1f[_0x295f('0x11')]&&'outdentBlock'!=_0x431a1f[_0x295f('0x11')])return;const _0x5cec55=_0x1e9a55[_0x295f('0xf')]()[0x0],_0xe39fc6=_0x26d873[_0x295f('0x2')][_0x295f('0x14')](_0x5cec55);return _0x295f('0x4')==_0x431a1f[_0x295f('0x11')]?{'type':_0x295f('0x5'),'content':_0x11834d(_0x4f894f,_0x295f('0x1'),_0xe39fc6)}:_0x295f('0x1a')==_0x431a1f[_0x295f('0x11')]?{'type':'format','content':_0x11834d(_0x4f894f,'*Outdent:*\x20%0',_0xe39fc6)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4c6f=['TrackChangesEditing','requires','plugins','enableCommand','input','init','editor'];(function(_0x3a20bc,_0x4c6f3d){var _0x337e98=function(_0x1da663){while(--_0x1da663){_0x3a20bc['push'](_0x3a20bc['shift']());}};_0x337e98(++_0x4c6f3d);}(_0x4c6f,0x158));var _0x337e=function(_0x3a20bc,_0x4c6f3d){_0x3a20bc=_0x3a20bc-0x0;var _0x337e98=_0x4c6f[_0x3a20bc];return _0x337e98;};import{Plugin as _0x411bfd}from'ckeditor5/src/core';import{Input as _0x49c03d}from'ckeditor5/src/typing';export default class et extends _0x411bfd{static get[_0x337e('0x0')](){return[_0x49c03d];}[_0x337e('0x4')](){this[_0x337e('0x5')][_0x337e('0x1')]['get'](_0x337e('0x6'))[_0x337e('0x2')](_0x337e('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27ea=['change','selection','*Remove\x20link*','editor','model','from','markInlineFormat','getAttribute','unlink','commandParams','linkHref','registerDescriptionCallback','locale','plugins','link','enableCommand','format','document','LinkEditing','_descriptionFactory','hasAttribute','commandName','*Set\x20link:*\x20%0','TrackChangesEditing'];(function(_0x2f01f5,_0x27ea16){const _0x14cf69=function(_0x10e63e){while(--_0x10e63e){_0x2f01f5['push'](_0x2f01f5['shift']());}};_0x14cf69(++_0x27ea16);}(_0x27ea,0x129));const _0x14cf=function(_0x2f01f5,_0x27ea16){_0x2f01f5=_0x2f01f5-0x0;let _0x14cf69=_0x27ea[_0x2f01f5];return _0x14cf69;};import{Plugin as _0x1f9772}from'ckeditor5/src/core';import{findAttributeRange as _0x18d3e3}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x24100f}from'./utils';import{getTranslation as _0x682e65}from'../utils/common-translations';export default class nt extends _0x1f9772{['afterInit'](){const _0x572b2e=this[_0x14cf('0x12')];if(!_0x572b2e[_0x14cf('0x4')]['has'](_0x14cf('0x9')))return;const _0x10d874=_0x572b2e['plugins']['get'](_0x14cf('0xe'));_0x10d874[_0x14cf('0x6')](_0x14cf('0x5'),(_0x5e9b4c,_0x2c8215)=>{const _0x112d88=_0x572b2e[_0x14cf('0x13')][_0x14cf('0x8')][_0x14cf('0x10')];let _0x81d618=[];if(_0x112d88['isCollapsed']){if(!_0x112d88[_0x14cf('0xb')](_0x14cf('0x1')))return void _0x5e9b4c(_0x2c8215);{const _0x12088d=_0x18d3e3(_0x112d88['getFirstPosition'](),'linkHref',_0x112d88[_0x14cf('0x16')](_0x14cf('0x1')),_0x572b2e[_0x14cf('0x13')]);_0x81d618=[_0x12088d];}}else _0x81d618=Array[_0x14cf('0x14')](_0x112d88['getRanges']());_0x572b2e[_0x14cf('0x13')]['change'](()=>{for(const _0x2c1f69 of _0x81d618)_0x10d874[_0x14cf('0x15')](_0x2c1f69,{'commandName':_0x14cf('0x5'),'commandParams':[_0x2c8215]});});}),_0x10d874['enableCommand'](_0x14cf('0x17'),()=>{const _0x4eeff9=this[_0x14cf('0x12')][_0x14cf('0x13')],_0x5b7473=_0x4eeff9[_0x14cf('0x8')][_0x14cf('0x10')];_0x4eeff9[_0x14cf('0xf')](()=>{let _0x254651=[];if(_0x5b7473['isCollapsed'])_0x254651=[_0x18d3e3(_0x5b7473['getFirstPosition'](),_0x14cf('0x1'),_0x5b7473['getAttribute'](_0x14cf('0x1')),_0x572b2e[_0x14cf('0x13')])];else _0x254651=_0x24100f(_0x14cf('0x1'),_0x5b7473['getFirstRange'](),_0x572b2e[_0x14cf('0x13')]);for(const _0x207648 of _0x254651)_0x10d874[_0x14cf('0x15')](_0x207648,{'commandName':_0x14cf('0x17'),'commandParams':[]});});}),_0x10d874[_0x14cf('0xa')][_0x14cf('0x2')](_0x303a42=>{const {data:_0x384b51}=_0x303a42,_0x35b0fd=_0x572b2e[_0x14cf('0x3')];if(_0x384b51){if(_0x14cf('0x5')==_0x384b51[_0x14cf('0xc')]){const _0x3f48e4=_0x384b51[_0x14cf('0x0')][0x0];return{'type':_0x14cf('0x7'),'content':_0x682e65(_0x35b0fd,_0x14cf('0xd'),'\x22'+_0x3f48e4+'\x22')};}return _0x14cf('0x17')==_0x384b51['commandName']?{'type':_0x14cf('0x7'),'content':_0x682e65(_0x35b0fd,_0x14cf('0x11'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26f0=['getAttribute','*Check\x20item*','todoList','checkChild','ELEMENT_NUMBERED_LIST','replace','numberedList','editor','push','commandName','indentList','todo','model','TodoListEditing','TrackChangesEditing','registerElementLabel','createRange','filter','before','format','List','numbered','length','element','has','selection','commands','afterInit','todoListChecked','ELEMENT_BULLETED_LIST','bulletedList','_selectedElements','value','slice','*Uncheck\x20item*','execute','commandParams','outdentList','name','listItem','listType','plugins','_descriptionFactory','previousSibling','parent','get','registerDescriptionCallback','from','paragraph','checkTodoList','markBlockFormat','schema','getSelectedBlocks','listIndent','isObject','*Outdent:*\x20%0','document','nextSibling','createPositionAt','*Indent:*\x20%0','change','ELEMENT_LIST_ITEM','locale','add','enableCommand','bulleted','findIndex'];(function(_0x2676d5,_0x26f0f9){const _0xfc70c9=function(_0x1b07aa){while(--_0x1b07aa){_0x2676d5['push'](_0x2676d5['shift']());}};_0xfc70c9(++_0x26f0f9);}(_0x26f0,0x105));const _0xfc70=function(_0x2676d5,_0x26f0f9){_0x2676d5=_0x2676d5-0x0;let _0xfc70c9=_0x26f0[_0x2676d5];return _0xfc70c9;};import{Plugin as _0x3071f7}from'ckeditor5/src/core';import{getTranslation as _0x6fd1e2}from'../utils/common-translations';export default class st extends _0x3071f7{[_0xfc70('0x22')](){const _0x5bdeef=this[_0xfc70('0xe')],_0x7d4233=_0x5bdeef[_0xfc70('0x2')];if(!_0x5bdeef['plugins'][_0xfc70('0x1f')]('ListEditing'))return;const _0x12b186=_0x5bdeef[_0xfc70('0x30')]['get'](_0xfc70('0x15')),_0x170255=_0x5bdeef[_0xfc70('0x30')]['has'](_0xfc70('0x14'));function _0x222520(_0x206e6c){return()=>{const _0x4470c6=_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x3f')][_0xfc70('0x20')],_0x3b3066=_0x5bdeef['commands']['get'](_0x206e6c);if(_0x3b3066[_0xfc70('0x27')])return void _0x5bdeef[_0xfc70('0x2a')](_0xfc70('0x37'),{});const _0x1217cf=_0x206e6c[_0xfc70('0x28')](0x0,-0x4),_0x282f3f=function(_0x3e93e6,_0x294113,_0x509498){let _0x1e9434=Array[_0xfc70('0x36')](_0x3e93e6)[_0xfc70('0x18')](_0x1ee1af=>function(_0x4c358b,_0x584714){return _0x584714[_0xfc70('0xa')](_0x4c358b[_0xfc70('0x33')],'listItem')&&!_0x584714[_0xfc70('0x3d')](_0x4c358b);}(_0x1ee1af,_0x509498));_0x1e9434=_0x1e9434['filter'](_0x18b49b=>!_0x18b49b['is'](_0xfc70('0x1e'),_0xfc70('0x2e'))||_0x18b49b['getAttribute'](_0xfc70('0x2f'))!=_0x294113);const _0x5a33a8=new Set();for(const _0x491c7b of _0x1e9434)_0x491c7b['is'](_0xfc70('0x1e'),_0xfc70('0x2e'))?_0x5a33a8[_0xfc70('0x3')](ne(_0x491c7b)):_0x5a33a8[_0xfc70('0x3')](_0x491c7b);return Array[_0xfc70('0x36')](_0x5a33a8);}(_0x4470c6[_0xfc70('0x3b')](),_0x1217cf,_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x3a')]);_0x5bdeef['model']['change'](()=>{for(const _0x3c24c1 of _0x282f3f)_0x12b186['markBlockFormat'](_0x3c24c1,{'commandName':_0x206e6c,'commandParams':[{'forceValue':!_0x3b3066['value']}],'formatGroupId':'blockName'},oe(_0x3c24c1));});};}function _0x415b4f(_0x378b2d){return()=>{const _0x5f34d7=function(_0x653384){let _0x25f045=Array[_0xfc70('0x36')](_0x653384);const _0x42ed5e=_0x25f045[_0xfc70('0x6')](_0x5238de=>_0xfc70('0x2e')!=_0x5238de[_0xfc70('0x2d')]);return _0x42ed5e>-0x1&&(_0x25f045=_0x25f045[_0xfc70('0x28')](0x0,_0x42ed5e)),_0x25f045;}(_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x3f')][_0xfc70('0x20')][_0xfc70('0x3b')]()),_0x2ee520=_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x17')](_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x41')](_0x5f34d7[0x0],_0xfc70('0x19')),_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x41')](_0x5f34d7[_0x5f34d7[_0xfc70('0x1d')]-0x1],'end'));_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x0')](()=>{_0x12b186[_0xfc70('0x39')](_0x2ee520,{'commandName':_0x378b2d,'commandParams':[],'formatGroupId':_0xfc70('0x3c')},function(_0x331709){const _0x5f05cf=new Set();for(const _0x456a3f of _0x331709){let _0x3f285f=_0x456a3f[_0xfc70('0x40')];for(;_0x3f285f&&_0x3f285f[_0xfc70('0x7')](_0xfc70('0x3c'))>_0x456a3f[_0xfc70('0x7')]('listIndent');)_0x5f05cf[_0xfc70('0x3')](_0x3f285f),_0x3f285f=_0x3f285f[_0xfc70('0x40')];}return Array[_0xfc70('0x36')](_0x5f05cf);}(_0x5f34d7));});};}_0x12b186['enableCommand'](_0xfc70('0xd'),_0x222520(_0xfc70('0xd'))),_0x12b186['enableCommand'](_0xfc70('0x25'),_0x222520(_0xfc70('0x25'))),_0x170255&&_0x12b186[_0xfc70('0x4')](_0xfc70('0x9'),_0x222520('todoList')),_0x12b186['enableCommand'](_0xfc70('0x11'),_0x415b4f(_0xfc70('0x11'))),_0x12b186['enableCommand'](_0xfc70('0x2c'),_0x415b4f(_0xfc70('0x2c'))),_0x170255&&_0x12b186[_0xfc70('0x4')]('checkTodoList',()=>{const _0x2798b1=_0x5bdeef[_0xfc70('0x21')][_0xfc70('0x34')](_0xfc70('0x38')),_0x496620=Array[_0xfc70('0x36')](_0x2798b1[_0xfc70('0x26')]);_0x496620[_0xfc70('0x18')](_0x2edbc2=>_0x2edbc2[_0xfc70('0x7')](_0xfc70('0x23'))!=_0x2798b1[_0xfc70('0x27')]),_0x5bdeef[_0xfc70('0x13')][_0xfc70('0x0')](()=>{for(const _0xba9c30 of _0x496620)_0x12b186[_0xfc70('0x39')](_0xba9c30,{'commandName':_0xfc70('0x38'),'commandParams':[{'forceValue':!_0x2798b1[_0xfc70('0x27')]}]});});}),_0x12b186['_descriptionFactory'][_0xfc70('0x16')]('listItem',_0x106172=>_0x6fd1e2(_0x7d4233,_0xfc70('0x1'),_0x106172)),_0x12b186[_0xfc70('0x31')][_0xfc70('0x35')](_0x6ad41=>{const {data:_0x1cf219}=_0x6ad41;if(_0x1cf219){if(_0xfc70('0xd')==_0x1cf219[_0xfc70('0x10')]||_0xfc70('0x25')==_0x1cf219[_0xfc70('0x10')]||_0xfc70('0x9')==_0x1cf219[_0xfc70('0x10')])switch(_0x1cf219['commandName'][_0xfc70('0xc')](_0xfc70('0x1b'),'')){case _0xfc70('0x5'):return _0x1db784(_0x6fd1e2(_0x7d4233,_0xfc70('0x24')));case _0xfc70('0x1c'):return _0x1db784(_0x6fd1e2(_0x7d4233,_0xfc70('0xb')));case _0xfc70('0x12'):return _0x1db784(_0x6fd1e2(_0x7d4233,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cf219['commandName'])return{'type':_0xfc70('0x1a'),'content':_0x6fd1e2(_0x7d4233,_0xfc70('0x42'),_0x6fd1e2(_0x7d4233,_0xfc70('0x1')))};if('outdentList'==_0x1cf219[_0xfc70('0x10')])return{'type':_0xfc70('0x1a'),'content':_0x6fd1e2(_0x7d4233,_0xfc70('0x3e'),_0x6fd1e2(_0x7d4233,_0xfc70('0x1')))};if(_0xfc70('0x38')==_0x1cf219['commandName'])return _0x1cf219[_0xfc70('0x2b')][0x0]['forceValue']?{'type':_0xfc70('0x1a'),'content':_0x6fd1e2(_0x7d4233,_0xfc70('0x8'))}:{'type':'format','content':_0x6fd1e2(_0x7d4233,_0xfc70('0x29'))};}function _0x1db784(_0xa69055){return{'type':'format','content':_0x6fd1e2(_0x7d4233,'*Change\x20to:*\x20%0',_0xa69055)};}});}}function ne(_0x16db9c){const _0x1abcff=_0x16db9c[_0xfc70('0x7')](_0xfc70('0x3c'));if(0x0==_0x1abcff)return _0x16db9c;let _0x4ba057=_0x16db9c;for(;_0x16db9c[_0xfc70('0x32')]&&_0x16db9c[_0xfc70('0x32')]['is']('element','listItem');){const _0x25c84f=_0x16db9c['previousSibling'][_0xfc70('0x7')]('listIndent');if(_0x25c84f==_0x1abcff)_0x4ba057=_0x16db9c[_0xfc70('0x32')];else{if(_0x25c84f<_0x1abcff)break;}_0x16db9c=_0x16db9c[_0xfc70('0x32')];}return _0x4ba057;}function oe(_0x2369c9){const _0x168490=[];if(_0x2369c9['is'](_0xfc70('0x1e'),_0xfc70('0x2e'))&&_0x2369c9[_0xfc70('0x7')]('listIndent')>0x0){let _0x5ba650=_0x2369c9[_0xfc70('0x40')];for(;_0x5ba650&&'listItem'==_0x5ba650['name']&&_0x5ba650[_0xfc70('0x7')](_0xfc70('0x3c'))==_0x2369c9[_0xfc70('0x7')](_0xfc70('0x3c'));)_0x168490[_0xfc70('0xf')](_0x5ba650),_0x5ba650=_0x5ba650['nextSibling'];}return _0x168490;}
|