@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x1a69=['config','locale','getRanges','*Set\x20font\x20color:*\x20%0','FontFamilyEditing','FontSizeEditing','fontSize.options','*Set\x20font\x20background\x20color:*\x20%0','get','fontColor.colors','TrackChangesEditing','*Reset\x20font\x20background\x20color*','change','commandName','value','*Reset\x20font\x20color*','_enableCommand','fontFamily','*Set\x20font\x20family:*\x20%0','from','title','fontSize','label','format','plugins','enableCommand','FontColorEditing','commandParams','fontBackgroundColor.colors','_descriptionFactory','isCollapsed','*Set\x20font\x20size:*\x20%0','toLowerCase','afterInit','fontBackgroundColor','has','document','*Reset\x20font\x20size*','model','trim','editor','find','normalizeSizeOptions','selection'];(function(_0x4b9ff0,_0x1a69cb){const _0x10cefe=function(_0x56c208){while(--_0x56c208){_0x4b9ff0['push'](_0x4b9ff0['shift']());}};_0x10cefe(++_0x1a69cb);}(_0x1a69,0x1a1));const _0x10ce=function(_0x4b9ff0,_0x1a69cb){_0x4b9ff0=_0x4b9ff0-0x0;let _0x10cefe=_0x1a69[_0x4b9ff0];return _0x10cefe;};import{Plugin as _0x4220c7}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5b9814}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x801d4f}from'./utils';import{getTranslation as _0xfc71dc}from'../utils/common-translations';const Zt=[{'pluginName':_0x10ce('0x1c'),'commandName':_0x10ce('0x0')},{'pluginName':_0x10ce('0x1b'),'commandName':_0x10ce('0x28')},{'pluginName':_0x10ce('0x5'),'commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':_0x10ce('0xd')}];export default class H extends _0x4220c7{[_0x10ce('0xc')](){const _0x5ec1f3=this[_0x10ce('0x13')][_0x10ce('0x18')];for(const {pluginName:_0x3e1984,commandName:_0x273635}of Zt)this[_0x10ce('0x13')][_0x10ce('0x3')][_0x10ce('0xe')](_0x3e1984)&&this[_0x10ce('0x27')](_0x273635);this[_0x10ce('0x13')][_0x10ce('0x3')][_0x10ce('0x1f')](_0x10ce('0x21'))[_0x10ce('0x8')]['registerDescriptionCallback'](_0x1efcbf=>{const _0x20efcb=_0x5ec1f3['t'],{data:_0x53d358}=_0x1efcbf;if(null!=_0x53d358){if(_0x10ce('0x0')==_0x53d358[_0x10ce('0x24')]){const _0x52f73d=_0x53d358[_0x10ce('0x6')][0x0]['value'];if(_0x52f73d){const _0x49bddd=_0x20efcb(this[_0x10ce('0x13')][_0x10ce('0x3')][_0x10ce('0x1f')]('FontSize')[_0x10ce('0x15')](this['editor'][_0x10ce('0x17')]['get'](_0x10ce('0x1d')))[_0x10ce('0x14')](_0x130ecd=>_0x130ecd[_0x10ce('0x11')]==_0x52f73d)[_0x10ce('0x2b')])[_0x10ce('0xb')]();return{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0xa'),_0x49bddd)};}return{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x10'))};}if('fontFamily'==_0x53d358[_0x10ce('0x24')]){const _0x565ea5=_0x53d358[_0x10ce('0x6')][0x0][_0x10ce('0x25')];return _0x565ea5?{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x29'),_0x565ea5)}:{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53d358['commandName']){const _0xbdd4=_0x53d358[_0x10ce('0x6')][0x0][_0x10ce('0x25')];if(_0xbdd4){const _0x38f66a=_0x5b9814(this['editor'][_0x10ce('0x17')][_0x10ce('0x1f')](_0x10ce('0x20')))[_0x10ce('0x14')](_0x4cbac4=>_0x4cbac4[_0x10ce('0x11')]==_0xbdd4);let _0x19b50f=_0xbdd4,_0x3358ff='';return _0x38f66a&&(_0x19b50f=_0x38f66a[_0x10ce('0x1')],_0x3358ff=_0x20efcb(_0x19b50f)[_0x10ce('0xb')]()),{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x1a'),_0x3358ff)[_0x10ce('0x12')](),'color':{'value':_0xbdd4,'title':_0x3358ff||_0x19b50f}};}return{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x26'))};}if(_0x10ce('0xd')==_0x53d358[_0x10ce('0x24')]){const _0x567054=_0x53d358[_0x10ce('0x6')][0x0]['value'];if(_0x567054){const _0x20eab2=_0x5b9814(this[_0x10ce('0x13')][_0x10ce('0x17')][_0x10ce('0x1f')](_0x10ce('0x7')))[_0x10ce('0x14')](_0x472494=>_0x472494[_0x10ce('0x11')]==_0x567054);let _0x2fe671=_0x567054,_0x5410ff='';return _0x20eab2&&(_0x2fe671=_0x20eab2['label'],_0x5410ff=_0x20efcb(_0x2fe671)[_0x10ce('0xb')]()),{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x1e'),_0x5410ff)['trim'](),'color':{'value':_0x567054,'title':_0x5410ff||_0x2fe671}};}return{'type':_0x10ce('0x2'),'content':_0xfc71dc(_0x5ec1f3,_0x10ce('0x22'))};}}});}[_0x10ce('0x27')](_0x4a75e5){const _0x1c40c2=this[_0x10ce('0x13')];_0x1c40c2[_0x10ce('0x3')][_0x10ce('0x1f')]('TrackChangesEditing')[_0x10ce('0x4')](_0x4a75e5,(_0x723f9d,_0x5a3d3f={})=>{const _0x566543=_0x1c40c2[_0x10ce('0x11')][_0x10ce('0xf')][_0x10ce('0x16')],_0x1e0c1e=_0x5a3d3f[_0x10ce('0x25')];_0x566543[_0x10ce('0x9')]?_0x723f9d(_0x5a3d3f):_0x1c40c2[_0x10ce('0x11')][_0x10ce('0x23')](()=>{const _0x3f9819=Array[_0x10ce('0x2a')](_0x566543[_0x10ce('0x19')]());for(const _0xf577ca of _0x3f9819){const _0x57af4f=_0x1e0c1e?[_0xf577ca]:_0x801d4f(_0x4a75e5,_0xf577ca,_0x1c40c2[_0x10ce('0x11')]);for(const _0x2e4527 of _0x57af4f)_0x1c40c2[_0x10ce('0x3')]['get'](_0x10ce('0x21'))['markInlineFormat'](_0x2e4527,{'commandName':_0x4a75e5,'commandParams':[{'value':_0x1e0c1e}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59d4=['editor','fontColor','commands','get','charAt','label','registerDescriptionCallback','commandParams','TrackChangesEditing','getItems','config','from','model','change','getAttributes','createSelection','toUpperCase','getSelectedBlocks','format','getRanges','push','join','*Remove\x20all\x20formatting*','fontBackgroundColor','FontSize','isCollapsed','backward','toLowerCase','pasteFormat','afterInit','find','getLastPosition','markInlineFormat','normalizeSizeOptions','forward','isFormatting','word','modifySelection','*Set\x20format\x20to:*\x20%0','copyFormat','schema','selection','keys','length','entries','createRange','getAttributeProperties','fontSize','plugins','enableCommand','title'];(function(_0x2681da,_0x59d4b3){const _0x10e2e7=function(_0x3fccaa){while(--_0x3fccaa){_0x2681da['push'](_0x2681da['shift']());}};_0x10e2e7(++_0x59d4b3);}(_0x59d4,0x105));const _0x10e2=function(_0x2681da,_0x59d4b3){_0x2681da=_0x2681da-0x0;let _0x10e2e7=_0x59d4[_0x2681da];return _0x10e2e7;};import{Plugin as _0x4fe875}from'ckeditor5/src/core';import{normalizeColorOptions as _0x4be2c0}from'ckeditor5/src/ui';import{first as _0x4ca0e2}from'ckeditor5/src/utils';import{getTranslation as _0x5ece7d}from'../utils/common-translations';export default class W extends _0x4fe875{[_0x10e2('0x17')](){const _0xd8ca45=this[_0x10e2('0x2d')],_0x51552f=_0xd8ca45['model'],_0x25a4d4=_0x51552f['document'][_0x10e2('0x23')],_0x370ff2=_0xd8ca45[_0x10e2('0x2a')][_0x10e2('0x30')](_0x10e2('0x2')),_0xa5fd56=_0xd8ca45['locale'],_0x2e728f=_0xd8ca45['commands'][_0x10e2('0x30')](_0x10e2('0x21')),_0x3e9859=_0xd8ca45[_0x10e2('0x2f')][_0x10e2('0x30')](_0x10e2('0x16'));_0x2e728f&&_0x3e9859&&(_0x370ff2[_0x10e2('0x2b')](_0x10e2('0x16'),(_0x1c975a,_0x54ca45={})=>{const _0x18811b=_0x54ca45;_0x51552f[_0x10e2('0x7')](()=>{const _0x1a3c07=Array[_0x10e2('0x5')](_0x25a4d4[_0x10e2('0xd')]()),_0x509628=_0x25a4d4[_0x10e2('0x13')]?[ro(_0x51552f,_0x25a4d4)]:_0x1a3c07,_0x1644b2=!!_0x4ca0e2(function*(_0x284c42,_0x8e6579){const _0x328e8b=_0x2778ee=>!!_0x4ca0e2(function*(_0x5829a7,_0x158664){for(const [_0x4e4e4d]of _0x5829a7[_0x10e2('0x8')]()){const _0xb1c2cf=_0x158664[_0x10e2('0x28')](_0x4e4e4d);_0xb1c2cf&&_0xb1c2cf[_0x10e2('0x1d')]&&(yield _0x4e4e4d);}}(_0x2778ee,_0x8e6579));for(const _0x3635e9 of _0x284c42[_0x10e2('0xd')]())for(const _0x341f29 of _0x3635e9[_0x10e2('0x3')]())!_0x8e6579['isBlock'](_0x341f29)&&_0x328e8b(_0x341f29)&&(yield _0x341f29);for(const _0x3c9305 of _0x284c42[_0x10e2('0xb')]())_0x328e8b(_0x3c9305)&&(yield _0x3c9305);_0x328e8b(_0x284c42)&&(yield _0x284c42);}(_0x25a4d4,_0x51552f[_0x10e2('0x22')]));if(_0x1644b2||0x0!==Object[_0x10e2('0x24')](_0x18811b)[_0x10e2('0x25')])for(const _0x2fba5f of _0x509628)_0x370ff2[_0x10e2('0x1a')](_0x2fba5f,{'commandName':_0x10e2('0x16'),'commandParams':[_0x18811b]});});}),_0x370ff2['_descriptionFactory'][_0x10e2('0x0')](_0x2e1fd4=>{const {data:_0x1d0032}=_0x2e1fd4;if(_0x1d0032&&_0x10e2('0x16')===_0x1d0032['commandName']){const _0x318b47=[],_0x35287e=_0x1d0032[_0x10e2('0x1')][0x0];for(const [_0x88d19,_0xe919ce]of Object[_0x10e2('0x26')](_0x35287e))_0x318b47[_0x10e2('0xe')](no(_0xd8ca45,_0x88d19,_0xe919ce));return _0x318b47['length']?{'type':_0x10e2('0xc'),'content':_0x5ece7d(_0xa5fd56,_0x10e2('0x20'),_0x318b47[_0x10e2('0xf')](',\x20'))}:{'type':_0x10e2('0xc'),'content':_0x5ece7d(_0xa5fd56,_0x10e2('0x10'))};}}),_0xd8ca45[_0x10e2('0x2a')][_0x10e2('0x30')](_0x10e2('0x2'))[_0x10e2('0x2b')]('copyFormat'));}}function ro(_0x494819,_0x3d7251){const _0x48fe94=_0x494819[_0x10e2('0x9')](_0x3d7251);_0x494819[_0x10e2('0x1f')](_0x48fe94,{'unit':_0x10e2('0x1e'),'direction':_0x10e2('0x14')});const _0x3a9d9f=_0x48fe94['getFirstPosition']();_0x494819['modifySelection'](_0x48fe94,{'unit':_0x10e2('0x1e'),'direction':_0x10e2('0x1c')});const _0x76a387=_0x48fe94[_0x10e2('0x19')]();return _0x494819[_0x10e2('0x27')](_0x3a9d9f,_0x76a387);}function no(_0x2aa823,_0x171e3f,_0x3159ea){const _0xac4a91=_0x2aa823['locale']['t'],_0x55eb98=_0x171e3f['split'](/(?=[A-Z])/)[_0x10e2('0xf')]('\x20'),_0x51fbe4=_0xac4a91(_0x55eb98[_0x10e2('0x31')](0x0)[_0x10e2('0xa')]()+_0x55eb98['slice'](0x1))[_0x10e2('0x15')]();if('boolean'==typeof _0x3159ea)return _0x51fbe4;if(_0x10e2('0x2e')===_0x171e3f||_0x10e2('0x11')===_0x171e3f){const _0x22f220=_0x4be2c0(_0x2aa823[_0x10e2('0x4')]['get']('fontColor.colors'))[_0x10e2('0x18')](_0x1aafd8=>_0x1aafd8[_0x10e2('0x6')]==_0x3159ea);return _0x51fbe4+'\x20('+(_0x22f220?_0xac4a91(_0x22f220[_0x10e2('0x32')])[_0x10e2('0x15')]():_0x3159ea)+')';}if(_0x10e2('0x29')===_0x171e3f&&isNaN(parseFloat(_0x3159ea))){const _0x31063d=_0x2aa823[_0x10e2('0x2a')]['get'](_0x10e2('0x12'))[_0x10e2('0x1b')](_0x2aa823[_0x10e2('0x4')][_0x10e2('0x30')]('fontSize.options'))[_0x10e2('0x18')](_0x4a7ed1=>_0x4a7ed1[_0x10e2('0x6')]==_0x3159ea);return _0x51fbe4+'\x20('+(_0x31063d?_0xac4a91(_0x31063d[_0x10e2('0x2c')])['toLowerCase']():_0x3159ea)+')';}return _0x51fbe4+'\x20('+_0x3159ea+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f93=['heading','find','formatBlock','_descriptionFactory','get','name','parent','match','filter','TrackChangesEditing','format','getSelectedBlocks','heading.options','afterInit','schema','has','editor','isObject','paragraph','plugins','from','value','model','HeadingEditing','*Change\x20to:*\x20%0','ELEMENT_HEADING','enableCommand','document'];(function(_0x179a81,_0x4f93b9){const _0x10f804=function(_0x153a44){while(--_0x153a44){_0x179a81['push'](_0x179a81['shift']());}};_0x10f804(++_0x4f93b9);}(_0x4f93,0xc7));const _0x10f8=function(_0x179a81,_0x4f93b9){_0x179a81=_0x179a81-0x0;let _0x10f804=_0x4f93[_0x179a81];return _0x10f804;};import{Plugin as _0x36df21}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x57d71a}from'./utils';import{getTranslation as _0x19abd0}from'../utils/common-translations';export default class J extends _0x36df21{[_0x10f8('0xa')](){const _0x256e19=this[_0x10f8('0xd')],_0x37cd6e=_0x256e19['locale'],_0x34ca57=_0x256e19['config'][_0x10f8('0x1')](_0x10f8('0x9'));if(!_0x256e19[_0x10f8('0x10')][_0x10f8('0xc')](_0x10f8('0x14')))return;const _0xbc3764=_0x256e19[_0x10f8('0x10')][_0x10f8('0x1')](_0x10f8('0x6'));_0xbc3764[_0x10f8('0x17')](_0x10f8('0x19'),(_0x45dbdd,_0x36a6d3)=>{const _0x62cbdd=_0x36a6d3[_0x10f8('0x12')],_0x4e06ec=Array[_0x10f8('0x11')](this[_0x10f8('0xd')][_0x10f8('0x13')][_0x10f8('0x18')]['selection'][_0x10f8('0x8')]())[_0x10f8('0x5')](_0x3aa9fc=>function(_0x3cba73,_0x595395,_0x502ee3){return _0x502ee3['checkChild'](_0x3cba73[_0x10f8('0x3')],_0x595395)&&!_0x502ee3[_0x10f8('0xe')](_0x3cba73)&&_0x3cba73[_0x10f8('0x2')]!=_0x595395;}(_0x3aa9fc,_0x62cbdd,this[_0x10f8('0xd')][_0x10f8('0x13')][_0x10f8('0xb')]));_0x256e19[_0x10f8('0x13')]['change'](()=>{for(const _0x54d523 of _0x4e06ec)_0xbc3764['markBlockFormat'](_0x54d523,{'commandName':'heading','commandParams':[_0x36a6d3],'formatGroupId':'blockName'},_0x57d71a(_0x54d523));});});for(const _0x318b36 of _0x34ca57)_0x10f8('0xf')!=_0x318b36[_0x10f8('0x13')]&&_0xbc3764[_0x10f8('0x0')]['registerElementLabel'](_0x318b36[_0x10f8('0x13')],_0x21335e=>{const _0x3783b7=nn(_0x318b36['model']);return null!==_0x3783b7?_0x1125ef(_0x21335e,_0x3783b7):_0x5357f5(_0x21335e,_0x318b36['title']);});function _0x1125ef(_0x3c2694,_0x289427){return _0x19abd0(_0x37cd6e,_0x10f8('0x16'),[_0x3c2694,_0x289427]);}function _0x5357f5(_0x5370be,_0x341185){return _0x19abd0(_0x37cd6e,'ELEMENT_HEADING_CUSTOM',[_0x5370be,_0x341185]);}_0xbc3764[_0x10f8('0x0')]['registerDescriptionCallback'](_0x4055c6=>{const {type:_0xecf9d5,data:_0x2b4286}=_0x4055c6;if(_0x10f8('0x1b')==_0xecf9d5&&_0x2b4286&&'heading'==_0x2b4286['commandName']){const _0x2a1dec=_0x2b4286['commandParams'][0x0][_0x10f8('0x12')],_0x3fdb3b=nn(_0x2a1dec);if(null!==_0x3fdb3b)return{'type':_0x10f8('0x7'),'content':_0x19abd0(_0x37cd6e,'*Change\x20to:*\x20%0',_0x1125ef(0x1,_0x3fdb3b))};const _0x521fce=_0x34ca57[_0x10f8('0x1a')](_0xf5b512=>_0xf5b512['model']===_0x2a1dec)['title'];return{'type':_0x10f8('0x7'),'content':_0x19abd0(_0x37cd6e,_0x10f8('0x15'),_0x5357f5(0x1,_0x521fce))};}});}}function nn(_0x525236){const _0x4cc2f9=_0x525236[_0x10f8('0x4')](/^heading(\d+)$/);return _0x4cc2f9?_0x4cc2f9[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x333f=['model','getAttribute','item','getLastMatchingPosition','format','isCollapsed','backward','highlight.options','afterInit','has','editor','TrackChangesEditing','config','title','*Set\x20highlight:*\x20%0','value','locale','push','markInlineFormat','plugins','toLowerCase','highlight','find','HighlightEditing','getFirstPosition','color'];(function(_0x26b227,_0x333ffa){const _0x495547=function(_0x5aaa8f){while(--_0x5aaa8f){_0x26b227['push'](_0x26b227['shift']());}};_0x495547(++_0x333ffa);}(_0x333f,0x106));const _0x4955=function(_0x26b227,_0x333ffa){_0x26b227=_0x26b227-0x0;let _0x495547=_0x333f[_0x26b227];return _0x495547;};import{Plugin as _0x2e5bf6}from'ckeditor5/src/core';import{getTranslation as _0x29a37e}from'../utils/common-translations';import{getRangesWithAttribute as _0x37af8a}from'./utils';export default class K extends _0x2e5bf6{[_0x4955('0x6')](){const _0x2a2f25=this[_0x4955('0x8')];if(!_0x2a2f25[_0x4955('0x11')][_0x4955('0x7')](_0x4955('0x15')))return;const _0x3b6482=_0x2a2f25[_0x4955('0x11')]['get'](_0x4955('0x9'));_0x3b6482['enableCommand'](_0x4955('0x13'),(_0x19b9ff,_0x58b250={})=>{const _0x410c03=_0x2a2f25['model']['document']['selection'],_0x405402=_0x410c03[_0x4955('0x19')](_0x4955('0x13'));let _0x581561=_0x58b250['value'],_0x31635e=[];if(_0x410c03[_0x4955('0x3')]){const _0x5699e2=_0x410c03[_0x4955('0x16')]();if(!_0x410c03['hasAttribute'](_0x4955('0x13')))return void _0x19b9ff(_0x58b250);{const _0x233873=_0x2c871f=>_0x2c871f[_0x4955('0x0')]['getAttribute'](_0x4955('0x13'))===_0x405402,_0x26f927=_0x5699e2[_0x4955('0x1')](_0x233873,{'direction':_0x4955('0x4')}),_0xa37284=_0x5699e2[_0x4955('0x1')](_0x233873);_0x31635e=[_0x2a2f25[_0x4955('0x18')]['createRange'](_0x26f927,_0xa37284)],_0x581561==_0x405402&&(_0x581561=null);}}else for(const _0x250000 of _0x410c03['getRanges']())_0x581561?_0x31635e[_0x4955('0xf')](_0x250000):_0x31635e['push'](..._0x37af8a(_0x4955('0x13'),_0x250000,_0x2a2f25[_0x4955('0x18')]));_0x2a2f25['model']['change'](()=>{for(const _0xa190e0 of _0x31635e)_0x3b6482[_0x4955('0x10')](_0xa190e0,{'commandName':_0x4955('0x13'),'commandParams':[{'value':_0x581561}]});});});const _0x2816c9=_0x2a2f25[_0x4955('0xe')];_0x3b6482['_descriptionFactory']['registerDescriptionCallback'](_0x415b9f=>{const {type:_0x2e259a,data:_0x19d9be}=_0x415b9f;if('formatInline'==_0x2e259a&&_0x19d9be&&_0x4955('0x13')==_0x19d9be['commandName']){const _0x3d7c55=_0x2816c9['t'],_0x2749cc=_0x19d9be['commandParams'][0x0][_0x4955('0xd')];if(_0x2749cc){const _0x344e8a=_0x2a2f25[_0x4955('0xa')]['get'](_0x4955('0x5'))[_0x4955('0x14')](_0x333111=>_0x333111[_0x4955('0x18')]==_0x2749cc),_0x2f43f4=_0x3d7c55(_0x344e8a[_0x4955('0xb')])[_0x4955('0x12')]();return{'type':_0x4955('0x2'),'content':_0x29a37e(_0x2816c9,_0x4955('0xc'),_0x2f43f4),'color':{'value':_0x344e8a[_0x4955('0x17')],'title':_0x344e8a[_0x4955('0xb')]}};}return{'type':'format','content':_0x29a37e(_0x2816c9,'*Remove\x20highlight*',_0x29a37e(_0x2816c9,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1295=['showSuggestionHighlights','HorizontalLineEditing','registerElementLabel','for','plugins','createPositionAt','locale','horizontalLine','conversion','ELEMENT_HORIZONTAL_LINE','afterInit','dataDowncast','createContainerElement','enableCommand','TrackChangesEditing','elementToStructure','has','get','ck-horizontal-line'];(function(_0x343af4,_0x12955a){const _0x268d8f=function(_0xd4a981){while(--_0xd4a981){_0x343af4['push'](_0x343af4['shift']());}};_0x268d8f(++_0x12955a);}(_0x1295,0x13f));const _0x268d=function(_0x343af4,_0x12955a){_0x343af4=_0x343af4-0x0;let _0x268d8f=_0x1295[_0x343af4];return _0x268d8f;};import{Plugin as _0x2a9de0}from'ckeditor5/src/core';import{getTranslation as _0x48013c}from'../utils/common-translations';export default class Q extends _0x2a9de0{[_0x268d('0xe')](){const _0x459137=this['editor'];if(!_0x459137[_0x268d('0x8')][_0x268d('0x1')](_0x268d('0x5')))return;_0x459137[_0x268d('0x8')]['get']('TrackChangesEditing')[_0x268d('0x11')](_0x268d('0xb'));const _0x418448=_0x459137[_0x268d('0x8')][_0x268d('0x2')](_0x268d('0x12')),_0x172688=_0x459137[_0x268d('0xa')];_0x418448['_descriptionFactory'][_0x268d('0x6')](_0x268d('0xb'),_0x521503=>_0x48013c(_0x172688,_0x268d('0xd'),_0x521503)),_0x459137[_0x268d('0xc')][_0x268d('0x7')](_0x268d('0xf'))[_0x268d('0x0')]({'model':_0x268d('0xb'),'view':(_0x24dc16,{writer:_0xf01f75,options:_0x5d33ee})=>{if(!_0x5d33ee[_0x268d('0x4')])return null;const _0x3f56ae=_0xf01f75[_0x268d('0x10')]('div'),_0x30d234=_0xf01f75['createEmptyElement']('hr');return _0xf01f75['addClass'](_0x268d('0x3'),_0x3f56ae),_0xf01f75['insert'](_0xf01f75[_0x268d('0x9')](_0x3f56ae,0x0),_0x30d234),_0x3f56ae;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x108c=['TrackChangesEditing','commandName','format','_descriptionFactory','element','change','getSelectedElement','HtmlEmbed','markBlockFormat','value','plugins','selection','afterInit','get','editor','*Change\x20%0\x20content*','document','enableCommand','ELEMENT_HTML_EMBED','getAttribute','has','view','registerElementLabel','rawHtml','registerDescriptionCallback','getCustomProperty','htmlEmbed'];(function(_0x505c4b,_0x108c58){const _0x303faf=function(_0xb938ea){while(--_0xb938ea){_0x505c4b['push'](_0x505c4b['shift']());}};_0x303faf(++_0x108c58);}(_0x108c,0x79));const _0x303f=function(_0x505c4b,_0x108c58){_0x505c4b=_0x505c4b-0x0;let _0x303faf=_0x108c[_0x505c4b];return _0x303faf;};import{Plugin as _0x283b8d}from'ckeditor5/src/core';import{getTranslation as _0x11a8a1}from'../utils/common-translations';export default class V extends _0x283b8d{[_0x303f('0x1a')](){const _0x15e18b=this[_0x303f('0x1')];if(!_0x15e18b[_0x303f('0x18')][_0x303f('0x7')](_0x303f('0x15')))return;const _0x517afb=_0x15e18b[_0x303f('0x18')][_0x303f('0x0')](_0x303f('0xe')),_0x4a56a0=_0x15e18b['locale'],_0x242336=_0x15e18b['editing'][_0x303f('0x8')]['document'][_0x303f('0x19')];_0x517afb[_0x303f('0x11')][_0x303f('0x9')](_0x303f('0xa'),_0x3d6b5a=>_0x11a8a1(_0x4a56a0,_0x303f('0x5'),_0x3d6b5a)),_0x15e18b[_0x303f('0x18')]['get'](_0x303f('0xe'))[_0x303f('0x4')]('htmlEmbed',(_0xbf23d4,_0x4606d9)=>{const _0x409940=_0x15e18b['model'],_0xb6223e=_0x409940[_0x303f('0x3')][_0x303f('0x19')];_0x409940[_0x303f('0x13')](()=>{const _0x5533ba=function(_0xef3a65){const _0x70bd53=_0xef3a65[_0x303f('0x14')]();if(_0x70bd53&&_0x70bd53['is'](_0x303f('0x12'),'rawHtml'))return _0xef3a65[_0x303f('0x14')]();return null;}(_0xb6223e);if(!_0x5533ba)return void _0xbf23d4(null);const _0xe7879c=_0x5533ba[_0x303f('0x6')](_0x303f('0x17'))||'';if(void 0x0===_0x4606d9)return;if(_0x4606d9===_0xe7879c)return;_0x517afb[_0x303f('0x16')](_0x5533ba,{'commandName':_0x303f('0xd'),'commandParams':[_0x4606d9]}),_0x242336[_0x303f('0x14')]()[_0x303f('0xc')]('rawHtmlApi')['cancel']();});}),_0x517afb['_descriptionFactory'][_0x303f('0xb')](_0x469540=>{const {data:_0x3672c5}=_0x469540;if(_0x3672c5&&_0x303f('0xd')==_0x3672c5[_0x303f('0xf')]){const _0x3f6aba=_0x11a8a1(_0x4a56a0,_0x303f('0x5'));return{'type':_0x303f('0x10'),'content':_0x11a8a1(_0x4a56a0,_0x303f('0x2'),_0x3f6aba)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x28ed=['has','width','ImageUtils','ImageUploadEditing','deletion','removeObject','_descriptionFactory','toLowerCase','length','markDeletion','newValue','uploadImage','start','addObject','ImageResize','ImageEditing','imageStylePostApply','getNearestSelectionRange','getCaptionFromImageModelElement','detach','formatBlock','filter','toPrevious','discard','author','getContainedElement','formatInline','imageCaption','isBlockImage','registerPostFixer','imageTextAlternative','registerDescriptionCallback','nodeBefore','getChangedMarkers','document','suggestion','fromPosition','registerElementLabel','insertion','format','schema','subType','isBefore','forward','value','from','commandName','accept','refresh','differ','title','editor','find','ImageCaptionUtils','side','next','*Set\x20image\x20text\x20alternative:*\x20%0','imageTypeBlock','hasSuggestion','forceDefaultExecution','caption','nodeAfter','ImageCaptionEditing','isEqual','*Reset\x20image\x20width*','change','forEach','convertBlockImageToInline','isCollapsed','isIntersecting','imageStyle','locale','element','getAttribute','head','_splitMarkerName','commands','isOwn','ImageBlockEditing','type','_suggestionFactory','normalizedStyles','ELEMENT_INLINE_IMAGE','chain','imageStylePreApply','createRange','createRangeOn','FORMAT_SIDE_IMAGE','getFirstRange','toggleImageCaption','imageInline','discardSuggestion','getClosestSelectedImageElement','plugins','hasAttribute','afterInit','markBlockFormat','ImageInlineEditing','Inline\x20image\x20to\x20block\x20image','Users','end','getSuggestionCallback','name','model','imageBlock','insertImage','newRange','ImageStyleEditing','isInContent','commandParams','join','getSuggestion','shouldConvertImageType','get','imageTypeInline','convertInlineImageToBlock','ELEMENT_IMAGE','registerCustomCallback','resizeImage','*Set\x20image\x20width:*\x20%0','ImageTextAlternativeEditing','enableCommand','backward','selection','findIndex','markInsertion'];(function(_0x115995,_0x28ed1c){const _0xb4a5=function(_0x231df8){while(--_0x231df8){_0x115995['push'](_0x115995['shift']());}};_0xb4a5(++_0x28ed1c);}(_0x28ed,0xac));const _0xb4a5=function(_0x115995,_0x28ed1c){_0x115995=_0x115995-0x0;let _0x231df8=_0x28ed[_0x115995];return _0x231df8;};import{Plugin as _0x1c3dd2}from'ckeditor5/src/core';import{LivePosition as _0x20e629}from'ckeditor5/src/engine';import{uid as _0x124674}from'ckeditor5/src/utils';import{getTranslation as _0x29d4e2}from'../utils/common-translations';export default class X extends _0x1c3dd2{[_0xb4a5('0x31')](){const _0xbfc8d2=this[_0xb4a5('0x5')];if(!_0xbfc8d2['plugins'][_0xb4a5('0x50')](_0xb4a5('0x5f')))return;const _0x133984=_0xbfc8d2['plugins']['get']('TrackChangesEditing'),_0x445d66=_0xbfc8d2[_0xb4a5('0x2f')]['get'](_0xb4a5('0x52')),_0x3f64fd={},_0x184919=_0xbfc8d2[_0xb4a5('0x19')];if(_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x3b')),_0x133984['_descriptionFactory']['registerElementLabel'](_0xb4a5('0x3a'),_0x49689f=>_0x29d4e2(_0x184919,_0xb4a5('0x46'),_0x49689f)),_0x133984[_0xb4a5('0x56')][_0xb4a5('0x75')](_0xb4a5('0x2c'),_0x34a291=>_0x29d4e2(_0x184919,_0xb4a5('0x24'),_0x34a291)),_0x133984[_0xb4a5('0x56')][_0xb4a5('0x75')](_0xb4a5('0xe'),()=>_0x29d4e2(_0x184919,'ELEMENT_CAPTION')),_0xbfc8d2['plugins'][_0xb4a5('0x50')](_0xb4a5('0x53'))&&_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x5b')),_0xbfc8d2[_0xb4a5('0x2f')]['has'](_0xb4a5('0x20'))&&_0xbfc8d2[_0xb4a5('0x2f')][_0xb4a5('0x50')](_0xb4a5('0x33'))&&(_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x44'),(_0x1241d6,_0x373ea8)=>{const _0x468fec=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')]['selection']);_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x13')](()=>{_0x133984[_0xb4a5('0x32')](_0x468fec,{'commandName':'imageTypeInline','commandParams':[_0x373ea8]},[],_0xb4a5('0x15'));});}),_0x133984[_0xb4a5('0x4b')]('imageTypeBlock',(_0xeebc97,_0x5bb169)=>{_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x13')](_0x3b1b3=>{let _0x1b1214=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')][_0xb4a5('0x4d')]),_0x229761=_0x3b1b3[_0xb4a5('0x28')](_0x1b1214);const _0x46fa02=_0x20e629['fromPosition'](_0x229761[_0xb4a5('0x5c')],_0xb4a5('0x66')),_0x19cb4f=_0x20e629[_0xb4a5('0x74')](_0x229761['end'],'toNext');_0x133984[_0xb4a5('0xd')](()=>_0xeebc97(_0x5bb169)),_0x1b1214=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')][_0xb4a5('0x4d')]),_0x229761=_0x3b1b3[_0xb4a5('0x28')](_0x1b1214);const _0x31e85f=_0x3b1b3[_0xb4a5('0x27')](_0x46fa02,_0x19cb4f);_0x46fa02[_0xb4a5('0x63')](),_0x19cb4f[_0xb4a5('0x63')](),_0x133984[_0xb4a5('0x32')](_0x1b1214,{'commandName':_0xb4a5('0x44'),'commandParams':[]},[],_0xb4a5('0x45')),_0x31e85f[_0xb4a5('0x5c')][_0xb4a5('0x7a')](_0x229761['start'])&&_0x133984[_0xb4a5('0x4f')](_0x3b1b3['createRange'](_0x31e85f['start'],_0x229761[_0xb4a5('0x5c')]),_0xb4a5('0x45')),_0x229761[_0xb4a5('0x36')][_0xb4a5('0x7a')](_0x31e85f[_0xb4a5('0x36')])&&_0x133984[_0xb4a5('0x4f')](_0x3b1b3[_0xb4a5('0x27')](_0x229761['end'],_0x31e85f['end']),_0xb4a5('0x45'));});}),_0x133984[_0xb4a5('0x22')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x64'),_0xb4a5('0x45'),_0xb4a5('0x1'),()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x64'),_0xb4a5('0x45'),_0xb4a5('0x67'),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x37')]('formatBlock','',_0xb4a5('0x1'))),_0x133984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock',_0xb4a5('0x40'),()=>{}),_0x133984[_0xb4a5('0x22')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0xb4a5('0x67'),([_0x16e5e1])=>{const _0x253803=_0x133984['_suggestionFactory']['getSuggestionCallback'](_0xb4a5('0x76'),'',_0xb4a5('0x67'));let _0x5b45f8=_0x16e5e1[_0xb4a5('0x5c')],_0x58b890=_0x16e5e1[_0xb4a5('0x36')];const _0x4efe5c=_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x78')][_0xb4a5('0x61')](_0x5b45f8,_0xb4a5('0x4c')),_0x3ccc0d=_0xbfc8d2['model'][_0xb4a5('0x78')][_0xb4a5('0x61')](_0x58b890,_0xb4a5('0x7b'));_0x4efe5c[_0xb4a5('0x16')]&&(_0x5b45f8=_0x4efe5c[_0xb4a5('0x5c')]),_0x3ccc0d['isCollapsed']&&(_0x58b890=_0x3ccc0d[_0xb4a5('0x36')]),_0x253803([_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x27')](_0x5b45f8,_0x58b890)]);}),_0x133984[_0xb4a5('0x22')]['registerCustomCallback'](_0xb4a5('0x64'),_0xb4a5('0x45'),_0xb4a5('0x25'),_0x518a4d),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x76'),_0xb4a5('0x45'),_0xb4a5('0x25'),_0x518a4d)),_0xbfc8d2[_0xb4a5('0x2f')][_0xb4a5('0x50')](_0xb4a5('0x10'))&&(_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x2b'),(_0x193b0e,_0x12c831)=>{const _0x14b756=_0xbfc8d2[_0xb4a5('0x2f')][_0xb4a5('0x43')](_0xb4a5('0x7'));let _0x145c30=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')][_0xb4a5('0x4d')]),_0x5522bd=_0x14b756['getCaptionFromImageModelElement'](_0x145c30);_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x13')](()=>{if(_0x5522bd)return void _0x133984[_0xb4a5('0x59')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x28')](_0x5522bd));const _0x119a80=_0x445d66['isBlockImage'](_0x145c30);_0x193b0e(_0x12c831),_0x145c30=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')][_0xb4a5('0x4d')]),_0x5522bd=_0x14b756[_0xb4a5('0x62')](_0x145c30),_0x133984['markInsertion'](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x28')](_0x5522bd),_0x119a80?null:'imageCaption');});}),_0x133984[_0xb4a5('0x22')]['registerCustomCallback'](_0xb4a5('0x76'),'imageCaption',_0xb4a5('0x25'),_0x518a4d)),_0xbfc8d2[_0xb4a5('0x2f')]['has']('ImageStyleEditing')){_0x133984['enableCommand']('imageStyle',(_0x194a1e,_0x1449dd)=>{const _0x2475f2=_0xbfc8d2['plugins']['get'](_0xb4a5('0x35'))['me'],_0x4f1874=_0xbfc8d2[_0xb4a5('0x1e')]['get'](_0xb4a5('0x18'));let _0x1f4257=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2['model']['document']['selection']),_0x4335fe=_0xbfc8d2['model'][_0xb4a5('0x28')](_0x1f4257),_0x3148a2=_0x4f1874['value'];if(_0x3148a2==_0x1449dd[_0xb4a5('0x7c')])return;const _0x2f5319={'commandName':_0xb4a5('0x18'),'commandParams':[_0x1449dd],'formatGroupId':_0x124674()};_0xbfc8d2['model'][_0xb4a5('0x13')](()=>{if(_0x133984['getSuggestions']()[_0xb4a5('0x65')](_0x12d5c2=>_0x12d5c2[_0xb4a5('0x3e')]&&_0x2475f2==_0x12d5c2[_0xb4a5('0x68')]&&(_0xb4a5('0x64')==_0x12d5c2['type']||_0xb4a5('0x6a')==_0x12d5c2[_0xb4a5('0x21')])&&(_0xb4a5('0x26')==_0x12d5c2[_0xb4a5('0x79')]||_0xb4a5('0x60')==_0x12d5c2[_0xb4a5('0x79')])&&_0x12d5c2['getFirstRange']()['isEqual'](_0x4335fe))[_0xb4a5('0x14')](_0x232986=>_0x133984[_0xb4a5('0x2d')](_0x232986[_0xb4a5('0x1c')])),_0x1f4257=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x72')][_0xb4a5('0x4d')]),_0x4335fe=_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x28')](_0x1f4257),_0x4f1874['refresh'](),_0xbfc8d2[_0xb4a5('0x1e')]['get'](_0xb4a5('0x44'))['refresh'](),_0xbfc8d2[_0xb4a5('0x1e')][_0xb4a5('0x43')](_0xb4a5('0xb'))[_0xb4a5('0x2')](),_0x3148a2=_0x4f1874['value'],_0x3148a2!=_0x1449dd['value'])return _0x445d66['isInlineImage'](_0x1f4257)&&_0x4f1874[_0xb4a5('0x42')](_0x1449dd['value'],_0x1f4257)?(_0x194a1e(_0x1449dd),_0x1f4257=_0x445d66['getClosestSelectedImageElement'](_0xbfc8d2[_0xb4a5('0x39')]['document'][_0xb4a5('0x4d')]),void _0x133984[_0xb4a5('0x32')](_0x1f4257,{..._0x2f5319,'commandReversedParams':[{'value':_0x3148a2||null}]},[],_0xb4a5('0x26'))):void(_0x445d66[_0xb4a5('0x6c')](_0x1f4257)?_0x133984[_0xb4a5('0x32')](_0x1f4257,_0x2f5319,[],_0xb4a5('0x60')):_0x133984['markInlineFormat'](_0x4335fe,_0x2f5319,_0xb4a5('0x60')));});});for(const _0x456747 of _0xbfc8d2[_0xb4a5('0x2f')][_0xb4a5('0x43')](_0xb4a5('0x3d'))[_0xb4a5('0x23')])_0x3f64fd[_0x456747[_0xb4a5('0x38')]]=_0x456747[_0xb4a5('0x4')][_0xb4a5('0x57')]();_0x133984[_0xb4a5('0x22')]['registerCustomCallback'](_0xb4a5('0x64'),'imageStylePreApply',_0xb4a5('0x40'),()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x64'),_0xb4a5('0x60'),_0xb4a5('0x40'),()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')]('formatInline',_0xb4a5('0x60'),_0xb4a5('0x40'),()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x64'),_0xb4a5('0x26'),_0xb4a5('0x1'),()=>{}),_0x133984[_0xb4a5('0x22')][_0xb4a5('0x47')](_0xb4a5('0x64'),_0xb4a5('0x26'),_0xb4a5('0x67'),(_0x361f6d,_0x253275)=>{_0x133984[_0xb4a5('0x22')][_0xb4a5('0x37')](_0xb4a5('0x64'),'',_0xb4a5('0x1'))(_0x361f6d,{'commandName':_0x253275['commandName'],'commandParams':_0x253275['commandReversedParams']});}),_0x133984[_0xb4a5('0x22')]['registerCustomCallback'](_0xb4a5('0x64'),_0xb4a5('0x26'),_0xb4a5('0x25'),_0x518a4d);}const _0x50ee5e=[{'type':_0xb4a5('0x64'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0xb4a5('0x6b')},{'type':_0xb4a5('0x64'),'subType':'convertInlineImageToBlock'},{'type':_0xb4a5('0x76'),'subType':_0xb4a5('0x45')}];function _0x5c5de9(_0x58e81e,_0x3a32a3){const _0xe18e97=_0x50ee5e[_0xb4a5('0x4e')](({type:_0x2a79a1,subType:_0xc48805})=>_0x58e81e[_0xb4a5('0x21')]==_0x2a79a1&&_0x58e81e['subType']==_0xc48805),_0x18e188=_0x50ee5e['findIndex'](({type:_0x27e3ed,subType:_0x31bfbc})=>_0x3a32a3[_0xb4a5('0x21')]==_0x27e3ed&&_0x3a32a3[_0xb4a5('0x79')]==_0x31bfbc);if(_0xe18e97<0x0||_0x18e188<0x0)return!0x1;const _0x52e8da=_0x58e81e['getFirstRange'](),_0xec1098=_0x3a32a3[_0xb4a5('0x2a')]();if((0x0==_0xe18e97||0x1==_0xe18e97)&&0x2==_0x18e188&&_0x52e8da[_0xb4a5('0x17')](_0xec1098))return!0x0;if(0x2==_0xe18e97&&0x3==_0x18e188){const _0x3964c6=_0x133984['_findSuggestions'](_0x52e8da,_0xb4a5('0x76'))[_0xb4a5('0x65')](({suggestion:_0x4dd559,meta:_0xd7e4b})=>_0xd7e4b[_0xb4a5('0x1f')]&&_0xb4a5('0x45')==_0x4dd559['subType']);if(_0x3964c6[_0xb4a5('0x58')]>0x1&&_0xec1098['end']['isEqual'](_0x52e8da[_0xb4a5('0x5c')]))return!0x0;if(0x1==_0x3964c6['length']&&(_0x52e8da[_0xb4a5('0x5c')]['isEqual'](_0xec1098[_0xb4a5('0x36')])||_0x52e8da[_0xb4a5('0x36')][_0xb4a5('0x11')](_0xec1098[_0xb4a5('0x5c')])))return!0x0;}if(0x3==_0xe18e97&&0x3==_0x18e188&&_0x52e8da[_0xb4a5('0x5c')][_0xb4a5('0x7a')](_0xec1098[_0xb4a5('0x5c')])){const _0x29ede9=_0x52e8da[_0xb4a5('0x36')][_0xb4a5('0xf')],_0x4759bb=_0xec1098['start'][_0xb4a5('0x70')];return _0x445d66[_0xb4a5('0x6c')](_0x29ede9)&&_0x29ede9===_0x4759bb;}return!0x1;}function _0x518a4d(_0x4d4618,_0x25b058){return _0x5c5de9(_0x4d4618,_0x25b058)?[_0x4d4618,_0x25b058]:_0x5c5de9(_0x25b058,_0x4d4618)?[_0x25b058,_0x4d4618]:null;}_0xbfc8d2[_0xb4a5('0x39')]['document'][_0xb4a5('0x6d')](()=>{let _0x3167c5=!0x1;const _0x1f9aaf=Array[_0xb4a5('0x7d')](_0xbfc8d2['model'][_0xb4a5('0x72')][_0xb4a5('0x3')][_0xb4a5('0x71')]());for(const {name:_0x4f3cb5,data:_0x77bdf3}of _0x1f9aaf){const {group:_0x5be53b,type:_0x3cdc23,subType:_0x3c798d,id:_0x189aca}=_0x133984[_0xb4a5('0x1d')](_0x4f3cb5);if(_0xb4a5('0x73')==_0x5be53b&&_0x133984[_0xb4a5('0xc')](_0x189aca)){if(_0xb4a5('0x64')==_0x3cdc23&&('imageStylePreApply'==_0x3c798d||_0xb4a5('0x60')==_0x3c798d)){const _0x279f54=_0x133984[_0xb4a5('0x41')](_0x189aca);if(_0x77bdf3[_0xb4a5('0x3c')]){const _0x16a7b8=_0x279f54[_0xb4a5('0x2a')]()[_0xb4a5('0x69')]();if(_0x445d66[_0xb4a5('0x6c')](_0x16a7b8))continue;_0x133984['discardSuggestion'](_0x279f54),_0x3167c5=!0x0;}}if(_0xb4a5('0x76')==_0x3cdc23&&'imageCaption'==_0x3c798d&&!_0x77bdf3[_0xb4a5('0x3c')]){const _0x31c419=_0x133984[_0xb4a5('0x41')](_0x189aca);_0x31c419[_0xb4a5('0x9')]&&_0x31c419[_0xb4a5('0x9')][_0xb4a5('0x3e')]&&(_0x133984[_0xb4a5('0x2d')](_0x31c419['next']),_0x3167c5=!0x0);}}}return _0x3167c5;}),_0xbfc8d2['plugins'][_0xb4a5('0x50')](_0xb4a5('0x5e'))&&_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x48'),(_0x3da248,_0x571580)=>{const _0x144a42=_0x445d66['getClosestSelectedImageElement'](_0xbfc8d2['model'][_0xb4a5('0x72')][_0xb4a5('0x4d')]);_0x144a42['getAttribute'](_0xb4a5('0x51'))!=_0x571580[_0xb4a5('0x51')]&&_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x13')](()=>{_0x133984['markBlockFormat'](_0x144a42,{'commandName':'resizeImage','commandParams':[_0x571580]});});}),_0xbfc8d2['plugins']['has'](_0xb4a5('0x4a'))&&_0x133984[_0xb4a5('0x4b')](_0xb4a5('0x6e'),(_0x45c1a8,_0x5d67a7)=>{const _0x4283b0=_0x445d66[_0xb4a5('0x2e')](_0xbfc8d2[_0xb4a5('0x39')]['document'][_0xb4a5('0x4d')]);(_0x4283b0[_0xb4a5('0x30')]('alt')?_0x4283b0[_0xb4a5('0x1b')]('alt'):'')!=_0x5d67a7[_0xb4a5('0x5a')]&&_0xbfc8d2[_0xb4a5('0x39')][_0xb4a5('0x13')](()=>{_0x133984[_0xb4a5('0x32')](_0x4283b0,{'commandName':_0xb4a5('0x6e'),'commandParams':[_0x5d67a7]});});}),_0x133984[_0xb4a5('0x56')]['registerDescriptionCallback'](_0x436f5d=>{if(!!_0x50ee5e[_0xb4a5('0x6')](({type:_0x4683c3,subType:_0x16fe41})=>_0x436f5d[_0xb4a5('0x21')]==_0x4683c3&&_0x436f5d[_0xb4a5('0x79')]==_0x16fe41))return _0x436f5d['previous']?{}:void 0x0;}),_0x133984[_0xb4a5('0x56')]['registerDescriptionCallback'](_0xe424c9=>{if('insertion'==_0xe424c9['type']||_0xb4a5('0x54')==_0xe424c9[_0xb4a5('0x21')]){const _0x5b6f20=_0xe424c9[_0xb4a5('0x69')]();if(_0x5b6f20&&_0x5b6f20['is'](_0xb4a5('0x1a'),_0xb4a5('0xe')))return{'type':_0xb4a5('0x76')==_0xe424c9[_0xb4a5('0x21')]?_0xb4a5('0x5d'):_0xb4a5('0x55'),'element':_0x5b6f20,'quantity':0x1};}}),_0x133984['_descriptionFactory'][_0xb4a5('0x6f')](_0xde96bc=>_0xb4a5('0x64')==_0xde96bc[_0xb4a5('0x21')]&&_0xb4a5('0x45')==_0xde96bc[_0xb4a5('0x79')]?{'type':_0xb4a5('0x77'),'content':_0xb4a5('0x34')}:_0xb4a5('0x64')==_0xde96bc[_0xb4a5('0x21')]&&_0xb4a5('0x15')==_0xde96bc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x133984[_0xb4a5('0x56')][_0xb4a5('0x6f')](_0x27d4da=>{const {data:_0x37c754}=_0x27d4da;if(_0x37c754){if(_0xb4a5('0x18')==_0x37c754[_0xb4a5('0x0')]){const _0x22291f=_0x37c754['commandParams'][0x0][_0xb4a5('0x7c')];return _0x235fc1(_0xb4a5('0x8')===_0x22291f?_0x29d4e2(_0x184919,_0xb4a5('0x29')):_0x3f64fd[_0x22291f]||_0x22291f);}if(_0xb4a5('0x6e')==_0x37c754['commandName']){const _0x443330=_0x37c754['commandParams'][0x0]['newValue'];return _0x443330?{'type':_0xb4a5('0x77'),'content':_0x29d4e2(_0x184919,_0xb4a5('0xa'),'\x22'+_0x443330+'\x22')}:{'type':_0xb4a5('0x77'),'content':_0x29d4e2(_0x184919,'*Remove\x20image\x20text\x20alternative*')};}if(_0xb4a5('0x48')==_0x37c754[_0xb4a5('0x0')]){const _0x2555dc=_0x37c754[_0xb4a5('0x3f')][0x0][_0xb4a5('0x51')];return _0x2555dc?{'type':'format','content':_0x29d4e2(_0x184919,_0xb4a5('0x49'),_0x2555dc)}:{'type':_0xb4a5('0x77'),'content':_0x29d4e2(_0x184919,_0xb4a5('0x12'))};}}function _0x235fc1(_0x109745){return{'type':_0xb4a5('0x77'),'content':_0x29d4e2(_0x184919,'*Format:*\x20%0',_0x109745)};}});}}
|
|
23
|
+
const _0x2274=['getClosestSelectedImageElement','ELEMENT_INLINE_IMAGE','name','*Set\x20image\x20text\x20alternative:*\x20%0','alt','convertBlockImageToInline','imageStylePostApply','nodeAfter','forEach','ImageTextAlternativeEditing','title','resizeImage','type','formatInline','change','getNearestSelectionRange','end','isOwn','Inline\x20image\x20to\x20block\x20image','*Set\x20image\x20width:*\x20%0','has','subType','ImageUtils','*Remove\x20image\x20text\x20alternative*','nodeBefore','format','forward','isIntersecting','isCollapsed','getContainedElement','addObject','imageTypeInline','normalizedStyles','document','hasAttribute','ImageUploadEditing','isInContent','shouldConvertImageType','Users','getSuggestionCallback','differ','find','from','backward','isBefore','TrackChangesEditing','suggestion','getFirstRange','imageStyle','discard','insertion','forceDefaultExecution','insertImage','model','imageInline','commandReversedParams','imageStylePreApply','commands','ImageResize','registerCustomCallback','createRange','newValue','chain','formatBlock','convertInlineImageToBlock','toPrevious','toNext','newRange','toggleImageCaption','editor','_findSuggestions','ImageBlockEditing','commandName','join','filter','Block\x20image\x20to\x20inline\x20image','_splitMarkerName','isEqual','schema','accept','markBlockFormat','ImageCaptionEditing','ImageEditing','uploadImage','_suggestionFactory','registerDescriptionCallback','commandParams','plugins','_descriptionFactory','markInsertion','findIndex','ELEMENT_CAPTION','hasSuggestion','element','caption','next','ImageCaptionUtils','getSuggestion','ELEMENT_IMAGE','isBlockImage','refresh','imageTypeBlock','value','registerElementLabel','*Reset\x20image\x20width*','detach','imageTextAlternative','createRangeOn','start','imageBlock','imageCaption','enableCommand','fromPosition','length','removeObject','locale','head','markDeletion','selection','discardSuggestion','get','deletion','width','getCaptionFromImageModelElement'];(function(_0x202ad1,_0x227437){const _0x5ecee4=function(_0x592784){while(--_0x592784){_0x202ad1['push'](_0x202ad1['shift']());}};_0x5ecee4(++_0x227437);}(_0x2274,0xeb));const _0x5ece=function(_0x202ad1,_0x227437){_0x202ad1=_0x202ad1-0x0;let _0x5ecee4=_0x2274[_0x202ad1];return _0x5ecee4;};import{Plugin as _0x27b3e5}from'ckeditor5/src/core';import{LivePosition as _0x1a02a5}from'ckeditor5/src/engine';import{uid as _0xb2e103}from'ckeditor5/src/utils';import{getTranslation as _0x17c2f8}from'../utils/common-translations';export default class X extends _0x27b3e5{['afterInit'](){const _0x35e6de=this[_0x5ece('0x52')];if(!_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')](_0x5ece('0x5f')))return;const _0x2f629c=_0x35e6de[_0x5ece('0x64')][_0x5ece('0x9')](_0x5ece('0x3a')),_0x426ce3=_0x35e6de[_0x5ece('0x64')][_0x5ece('0x9')](_0x5ece('0x23')),_0x1387f4={},_0x25ba39=_0x35e6de[_0x5ece('0x4')];if(_0x2f629c[_0x5ece('0x0')](_0x5ece('0x41')),_0x2f629c[_0x5ece('0x65')]['registerElementLabel'](_0x5ece('0x7a'),_0x207870=>_0x17c2f8(_0x25ba39,_0x5ece('0x6f'),_0x207870)),_0x2f629c[_0x5ece('0x65')][_0x5ece('0x74')](_0x5ece('0x43'),_0x23a8a0=>_0x17c2f8(_0x25ba39,_0x5ece('0xe'),_0x23a8a0)),_0x2f629c['_descriptionFactory'][_0x5ece('0x74')](_0x5ece('0x6b'),()=>_0x17c2f8(_0x25ba39,_0x5ece('0x68'))),_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')](_0x5ece('0x30'))&&_0x2f629c[_0x5ece('0x0')](_0x5ece('0x60')),_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')](_0x5ece('0x54'))&&_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')]('ImageInlineEditing')&&(_0x2f629c[_0x5ece('0x0')](_0x5ece('0x2c'),(_0x2be6ae,_0x17cbdd)=>{const _0x37732c=_0x426ce3['getClosestSelectedImageElement'](_0x35e6de[_0x5ece('0x42')]['document'][_0x5ece('0x7')]);_0x35e6de[_0x5ece('0x42')][_0x5ece('0x1b')](()=>{_0x2f629c['markBlockFormat'](_0x37732c,{'commandName':_0x5ece('0x2c'),'commandParams':[_0x17cbdd]},[],_0x5ece('0x12'));});}),_0x2f629c['enableCommand'](_0x5ece('0x72'),(_0x1311c1,_0x207c29)=>{_0x35e6de[_0x5ece('0x42')][_0x5ece('0x1b')](_0x22cd43=>{let _0x4b834e=_0x426ce3['getClosestSelectedImageElement'](_0x35e6de[_0x5ece('0x42')]['document'][_0x5ece('0x7')]),_0x391395=_0x22cd43['createRangeOn'](_0x4b834e);const _0x3e2c35=_0x1a02a5[_0x5ece('0x1')](_0x391395['start'],_0x5ece('0x4e')),_0x3d3a1c=_0x1a02a5[_0x5ece('0x1')](_0x391395[_0x5ece('0x1d')],_0x5ece('0x4f'));_0x2f629c[_0x5ece('0x40')](()=>_0x1311c1(_0x207c29)),_0x4b834e=_0x426ce3[_0x5ece('0xd')](_0x35e6de[_0x5ece('0x42')]['document'][_0x5ece('0x7')]),_0x391395=_0x22cd43[_0x5ece('0x78')](_0x4b834e);const _0x12c5ed=_0x22cd43[_0x5ece('0x49')](_0x3e2c35,_0x3d3a1c);_0x3e2c35['detach'](),_0x3d3a1c[_0x5ece('0x76')](),_0x2f629c[_0x5ece('0x5d')](_0x4b834e,{'commandName':_0x5ece('0x2c'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x12c5ed[_0x5ece('0x79')][_0x5ece('0x39')](_0x391395[_0x5ece('0x79')])&&_0x2f629c[_0x5ece('0x66')](_0x22cd43[_0x5ece('0x49')](_0x12c5ed[_0x5ece('0x79')],_0x391395['start']),_0x5ece('0x4d')),_0x391395[_0x5ece('0x1d')][_0x5ece('0x39')](_0x12c5ed[_0x5ece('0x1d')])&&_0x2f629c[_0x5ece('0x66')](_0x22cd43['createRange'](_0x391395['end'],_0x12c5ed[_0x5ece('0x1d')]),_0x5ece('0x4d'));});}),_0x2f629c['_suggestionFactory'][_0x5ece('0x48')]('formatBlock','convertInlineImageToBlock',_0x5ece('0x56'),()=>{}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')]('formatBlock',_0x5ece('0x4d'),_0x5ece('0x5c'),()=>{}),_0x2f629c['_suggestionFactory'][_0x5ece('0x48')]('formatBlock',_0x5ece('0x4d'),_0x5ece('0x3e'),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x34')](_0x5ece('0x4c'),'','accept')),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x3f'),'convertInlineImageToBlock',_0x5ece('0x56'),()=>{}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x3f'),_0x5ece('0x4d'),'discard',([_0x483412])=>{const _0xfd91c6=_0x2f629c[_0x5ece('0x61')][_0x5ece('0x34')](_0x5ece('0x3f'),'',_0x5ece('0x3e'));let _0x509bdc=_0x483412[_0x5ece('0x79')],_0xf77616=_0x483412[_0x5ece('0x1d')];const _0x4843cb=_0x35e6de[_0x5ece('0x42')]['schema'][_0x5ece('0x1c')](_0x509bdc,_0x5ece('0x38')),_0x2e6cb1=_0x35e6de['model'][_0x5ece('0x5b')][_0x5ece('0x1c')](_0xf77616,_0x5ece('0x27'));_0x4843cb[_0x5ece('0x29')]&&(_0x509bdc=_0x4843cb[_0x5ece('0x79')]),_0x2e6cb1['isCollapsed']&&(_0xf77616=_0x2e6cb1['end']),_0xfd91c6([_0x35e6de[_0x5ece('0x42')][_0x5ece('0x49')](_0x509bdc,_0xf77616)]);}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x4c'),'convertInlineImageToBlock',_0x5ece('0x4b'),_0x2bfb48),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x3f'),_0x5ece('0x4d'),_0x5ece('0x4b'),_0x2bfb48)),_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')](_0x5ece('0x5e'))&&(_0x2f629c[_0x5ece('0x0')](_0x5ece('0x51'),(_0x5e4633,_0x55ed93)=>{const _0x437e6d=_0x35e6de[_0x5ece('0x64')][_0x5ece('0x9')](_0x5ece('0x6d'));let _0x572514=_0x426ce3[_0x5ece('0xd')](_0x35e6de[_0x5ece('0x42')][_0x5ece('0x2e')][_0x5ece('0x7')]),_0x264226=_0x437e6d[_0x5ece('0xc')](_0x572514);_0x35e6de[_0x5ece('0x42')]['change'](()=>{if(_0x264226)return void _0x2f629c[_0x5ece('0x6')](_0x35e6de['model'][_0x5ece('0x78')](_0x264226));const _0x4b84ea=_0x426ce3[_0x5ece('0x70')](_0x572514);_0x5e4633(_0x55ed93),_0x572514=_0x426ce3[_0x5ece('0xd')](_0x35e6de[_0x5ece('0x42')]['document']['selection']),_0x264226=_0x437e6d[_0x5ece('0xc')](_0x572514),_0x2f629c['markInsertion'](_0x35e6de['model']['createRangeOn'](_0x264226),_0x4b84ea?null:_0x5ece('0x7b'));});}),_0x2f629c[_0x5ece('0x61')]['registerCustomCallback'](_0x5ece('0x3f'),'imageCaption',_0x5ece('0x4b'),_0x2bfb48)),_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')]('ImageStyleEditing')){_0x2f629c['enableCommand']('imageStyle',(_0x444622,_0x3810a5)=>{const _0x502fca=_0x35e6de['plugins'][_0x5ece('0x9')](_0x5ece('0x33'))['me'],_0x36cc2a=_0x35e6de['commands'][_0x5ece('0x9')]('imageStyle');let _0x7b30d3=_0x426ce3[_0x5ece('0xd')](_0x35e6de['model'][_0x5ece('0x2e')][_0x5ece('0x7')]),_0x11df41=_0x35e6de[_0x5ece('0x42')][_0x5ece('0x78')](_0x7b30d3),_0x580080=_0x36cc2a['value'];if(_0x580080==_0x3810a5['value'])return;const _0x5f249a={'commandName':_0x5ece('0x3d'),'commandParams':[_0x3810a5],'formatGroupId':_0xb2e103()};_0x35e6de[_0x5ece('0x42')][_0x5ece('0x1b')](()=>{if(_0x2f629c['getSuggestions']()[_0x5ece('0x57')](_0x904da8=>_0x904da8[_0x5ece('0x31')]&&_0x502fca==_0x904da8['author']&&(_0x5ece('0x4c')==_0x904da8['type']||_0x5ece('0x1a')==_0x904da8[_0x5ece('0x19')])&&('imageStylePreApply'==_0x904da8[_0x5ece('0x22')]||'imageStylePostApply'==_0x904da8['subType'])&&_0x904da8[_0x5ece('0x3c')]()[_0x5ece('0x5a')](_0x11df41))[_0x5ece('0x15')](_0xe6103d=>_0x2f629c[_0x5ece('0x8')](_0xe6103d[_0x5ece('0x5')])),_0x7b30d3=_0x426ce3[_0x5ece('0xd')](_0x35e6de[_0x5ece('0x42')][_0x5ece('0x2e')]['selection']),_0x11df41=_0x35e6de['model']['createRangeOn'](_0x7b30d3),_0x36cc2a['refresh'](),_0x35e6de[_0x5ece('0x46')][_0x5ece('0x9')](_0x5ece('0x2c'))['refresh'](),_0x35e6de['commands'][_0x5ece('0x9')](_0x5ece('0x72'))[_0x5ece('0x71')](),_0x580080=_0x36cc2a[_0x5ece('0x73')],_0x580080!=_0x3810a5[_0x5ece('0x73')])return _0x426ce3['isInlineImage'](_0x7b30d3)&&_0x36cc2a[_0x5ece('0x32')](_0x3810a5[_0x5ece('0x73')],_0x7b30d3)?(_0x444622(_0x3810a5),_0x7b30d3=_0x426ce3['getClosestSelectedImageElement'](_0x35e6de[_0x5ece('0x42')][_0x5ece('0x2e')][_0x5ece('0x7')]),void _0x2f629c[_0x5ece('0x5d')](_0x7b30d3,{..._0x5f249a,'commandReversedParams':[{'value':_0x580080||null}]},[],_0x5ece('0x45'))):void(_0x426ce3['isBlockImage'](_0x7b30d3)?_0x2f629c['markBlockFormat'](_0x7b30d3,_0x5f249a,[],_0x5ece('0x13')):_0x2f629c['markInlineFormat'](_0x11df41,_0x5f249a,'imageStylePostApply'));});});for(const _0x5aa2be of _0x35e6de['plugins'][_0x5ece('0x9')]('ImageStyleEditing')[_0x5ece('0x2d')])_0x1387f4[_0x5aa2be[_0x5ece('0xf')]]=_0x5aa2be[_0x5ece('0x17')]['toLowerCase']();_0x2f629c['_suggestionFactory']['registerCustomCallback'](_0x5ece('0x4c'),_0x5ece('0x45'),_0x5ece('0x56'),()=>{}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x4c'),_0x5ece('0x13'),'join',()=>{}),_0x2f629c[_0x5ece('0x61')]['registerCustomCallback'](_0x5ece('0x1a'),_0x5ece('0x13'),_0x5ece('0x56'),()=>{}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x4c'),_0x5ece('0x45'),'accept',()=>{}),_0x2f629c[_0x5ece('0x61')][_0x5ece('0x48')](_0x5ece('0x4c'),_0x5ece('0x45'),_0x5ece('0x3e'),(_0x405c2b,_0x516e8d)=>{_0x2f629c[_0x5ece('0x61')]['getSuggestionCallback'](_0x5ece('0x4c'),'',_0x5ece('0x5c'))(_0x405c2b,{'commandName':_0x516e8d[_0x5ece('0x55')],'commandParams':_0x516e8d[_0x5ece('0x44')]});}),_0x2f629c[_0x5ece('0x61')]['registerCustomCallback'](_0x5ece('0x4c'),_0x5ece('0x45'),_0x5ece('0x4b'),_0x2bfb48);}const _0x8bea46=[{'type':_0x5ece('0x4c'),'subType':'imageStylePreApply'},{'type':_0x5ece('0x3f'),'subType':_0x5ece('0x7b')},{'type':'formatBlock','subType':_0x5ece('0x4d')},{'type':_0x5ece('0x3f'),'subType':_0x5ece('0x4d')}];function _0x519d94(_0x4aaa4d,_0x520db8){const _0x23e191=_0x8bea46[_0x5ece('0x67')](({type:_0x429439,subType:_0x5b3d86})=>_0x4aaa4d[_0x5ece('0x19')]==_0x429439&&_0x4aaa4d['subType']==_0x5b3d86),_0x31617a=_0x8bea46[_0x5ece('0x67')](({type:_0x3c2349,subType:_0x1a6a1f})=>_0x520db8[_0x5ece('0x19')]==_0x3c2349&&_0x520db8[_0x5ece('0x22')]==_0x1a6a1f);if(_0x23e191<0x0||_0x31617a<0x0)return!0x1;const _0x1b7a00=_0x4aaa4d['getFirstRange'](),_0x3990b0=_0x520db8[_0x5ece('0x3c')]();if((0x0==_0x23e191||0x1==_0x23e191)&&0x2==_0x31617a&&_0x1b7a00[_0x5ece('0x28')](_0x3990b0))return!0x0;if(0x2==_0x23e191&&0x3==_0x31617a){const _0x28b2a5=_0x2f629c[_0x5ece('0x53')](_0x1b7a00,_0x5ece('0x3f'))[_0x5ece('0x57')](({suggestion:_0x358d44,meta:_0xed62a4})=>_0xed62a4[_0x5ece('0x1e')]&&_0x5ece('0x4d')==_0x358d44['subType']);if(_0x28b2a5[_0x5ece('0x2')]>0x1&&_0x3990b0[_0x5ece('0x1d')][_0x5ece('0x5a')](_0x1b7a00[_0x5ece('0x79')]))return!0x0;if(0x1==_0x28b2a5['length']&&(_0x1b7a00[_0x5ece('0x79')]['isEqual'](_0x3990b0[_0x5ece('0x1d')])||_0x1b7a00['end']['isEqual'](_0x3990b0[_0x5ece('0x79')])))return!0x0;}if(0x3==_0x23e191&&0x3==_0x31617a&&_0x1b7a00[_0x5ece('0x79')][_0x5ece('0x39')](_0x3990b0['start'])){const _0x561b1c=_0x1b7a00['end'][_0x5ece('0x14')],_0x34dbe6=_0x3990b0[_0x5ece('0x79')][_0x5ece('0x25')];return _0x426ce3['isBlockImage'](_0x561b1c)&&_0x561b1c===_0x34dbe6;}return!0x1;}function _0x2bfb48(_0x667f3,_0x182f25){return _0x519d94(_0x667f3,_0x182f25)?[_0x667f3,_0x182f25]:_0x519d94(_0x182f25,_0x667f3)?[_0x182f25,_0x667f3]:null;}_0x35e6de['model']['document']['registerPostFixer'](()=>{let _0x5a170e=!0x1;const _0x2e5ff5=Array[_0x5ece('0x37')](_0x35e6de[_0x5ece('0x42')][_0x5ece('0x2e')][_0x5ece('0x35')]['getChangedMarkers']());for(const {name:_0x12207f,data:_0x284f73}of _0x2e5ff5){const {group:_0x38b0a1,type:_0x14cadf,subType:_0x4f8d34,id:_0x17f4af}=_0x2f629c[_0x5ece('0x59')](_0x12207f);if(_0x5ece('0x3b')==_0x38b0a1&&_0x2f629c[_0x5ece('0x69')](_0x17f4af)){if(_0x5ece('0x4c')==_0x14cadf&&(_0x5ece('0x45')==_0x4f8d34||_0x5ece('0x13')==_0x4f8d34)){const _0x1b5743=_0x2f629c[_0x5ece('0x6e')](_0x17f4af);if(_0x284f73[_0x5ece('0x50')]){const _0x4b4151=_0x1b5743[_0x5ece('0x3c')]()[_0x5ece('0x2a')]();if(_0x426ce3['isBlockImage'](_0x4b4151))continue;_0x2f629c[_0x5ece('0x8')](_0x1b5743),_0x5a170e=!0x0;}}if('insertion'==_0x14cadf&&'imageCaption'==_0x4f8d34&&!_0x284f73['newRange']){const _0x58d776=_0x2f629c['getSuggestion'](_0x17f4af);_0x58d776[_0x5ece('0x6c')]&&_0x58d776[_0x5ece('0x6c')]['isInContent']&&(_0x2f629c[_0x5ece('0x8')](_0x58d776[_0x5ece('0x6c')]),_0x5a170e=!0x0);}}}return _0x5a170e;}),_0x35e6de[_0x5ece('0x64')][_0x5ece('0x21')](_0x5ece('0x47'))&&_0x2f629c[_0x5ece('0x0')](_0x5ece('0x18'),(_0x393b84,_0x5c4787)=>{const _0x3671c8=_0x426ce3[_0x5ece('0xd')](_0x35e6de['model'][_0x5ece('0x2e')][_0x5ece('0x7')]);_0x3671c8['getAttribute'](_0x5ece('0xb'))!=_0x5c4787[_0x5ece('0xb')]&&_0x35e6de[_0x5ece('0x42')][_0x5ece('0x1b')](()=>{_0x2f629c[_0x5ece('0x5d')](_0x3671c8,{'commandName':_0x5ece('0x18'),'commandParams':[_0x5c4787]});});}),_0x35e6de['plugins']['has'](_0x5ece('0x16'))&&_0x2f629c[_0x5ece('0x0')]('imageTextAlternative',(_0x10f92d,_0x5debc8)=>{const _0x14f735=_0x426ce3['getClosestSelectedImageElement'](_0x35e6de[_0x5ece('0x42')][_0x5ece('0x2e')]['selection']);(_0x14f735[_0x5ece('0x2f')](_0x5ece('0x11'))?_0x14f735['getAttribute']('alt'):'')!=_0x5debc8[_0x5ece('0x4a')]&&_0x35e6de[_0x5ece('0x42')]['change'](()=>{_0x2f629c[_0x5ece('0x5d')](_0x14f735,{'commandName':_0x5ece('0x77'),'commandParams':[_0x5debc8]});});}),_0x2f629c[_0x5ece('0x65')][_0x5ece('0x62')](_0x109d08=>{if(!!_0x8bea46[_0x5ece('0x36')](({type:_0x454f51,subType:_0x46ba71})=>_0x109d08[_0x5ece('0x19')]==_0x454f51&&_0x109d08[_0x5ece('0x22')]==_0x46ba71))return _0x109d08['previous']?{}:void 0x0;}),_0x2f629c['_descriptionFactory'][_0x5ece('0x62')](_0x562010=>{if('insertion'==_0x562010[_0x5ece('0x19')]||_0x5ece('0xa')==_0x562010[_0x5ece('0x19')]){const _0x46f260=_0x562010['getContainedElement']();if(_0x46f260&&_0x46f260['is'](_0x5ece('0x6a'),_0x5ece('0x6b')))return{'type':_0x5ece('0x3f')==_0x562010[_0x5ece('0x19')]?_0x5ece('0x2b'):_0x5ece('0x3'),'element':_0x46f260,'quantity':0x1};}}),_0x2f629c[_0x5ece('0x65')]['registerDescriptionCallback'](_0x11cca1=>'formatBlock'==_0x11cca1[_0x5ece('0x19')]&&_0x5ece('0x4d')==_0x11cca1[_0x5ece('0x22')]?{'type':_0x5ece('0x26'),'content':_0x5ece('0x1f')}:_0x5ece('0x4c')==_0x11cca1['type']&&_0x5ece('0x12')==_0x11cca1[_0x5ece('0x22')]?{'type':_0x5ece('0x26'),'content':_0x5ece('0x58')}:void 0x0),_0x2f629c[_0x5ece('0x65')][_0x5ece('0x62')](_0x7ad9f7=>{const {data:_0x3a5666}=_0x7ad9f7;if(_0x3a5666){if('imageStyle'==_0x3a5666['commandName']){const _0xba9bf4=_0x3a5666[_0x5ece('0x63')][0x0]['value'];return _0x32e44a('side'===_0xba9bf4?_0x17c2f8(_0x25ba39,'FORMAT_SIDE_IMAGE'):_0x1387f4[_0xba9bf4]||_0xba9bf4);}if(_0x5ece('0x77')==_0x3a5666[_0x5ece('0x55')]){const _0x2686d6=_0x3a5666['commandParams'][0x0][_0x5ece('0x4a')];return _0x2686d6?{'type':'format','content':_0x17c2f8(_0x25ba39,_0x5ece('0x10'),'\x22'+_0x2686d6+'\x22')}:{'type':_0x5ece('0x26'),'content':_0x17c2f8(_0x25ba39,_0x5ece('0x24'))};}if(_0x5ece('0x18')==_0x3a5666[_0x5ece('0x55')]){const _0x255565=_0x3a5666[_0x5ece('0x63')][0x0][_0x5ece('0xb')];return _0x255565?{'type':_0x5ece('0x26'),'content':_0x17c2f8(_0x25ba39,_0x5ece('0x20'),_0x255565)}:{'type':_0x5ece('0x26'),'content':_0x17c2f8(_0x25ba39,_0x5ece('0x75'))};}}function _0x32e44a(_0x109380){return{'type':_0x5ece('0x26'),'content':_0x17c2f8(_0x25ba39,'*Format:*\x20%0',_0x109380)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x527f=['registerDescriptionCallback','model','registerCustomCallback','handleSuggestionDescription','subType','Users','data','markBlockFormat','locale','getSuggestions','selection','discard','commandParams','enableCommand','getSuggestionCallback','TrackChangesEditing','get','editor','has','handleReplaceImageCommand','ImageEditing','getSelectedElement','commandName','source','_descriptionFactory','author','plugins','formatBlock','getAttribute','format','afterInit','replaceImageSource','getContainedElement','document','_suggestionFactory','accept','*Format:*\x20replace\x20image\x20URL'];(function(_0x412f82,_0x527fd4){const _0x23affd=function(_0x49fa4f){while(--_0x49fa4f){_0x412f82['push'](_0x412f82['shift']());}};_0x23affd(++_0x527fd4);}(_0x527f,0x176));const _0x23af=function(_0x412f82,_0x527fd4){_0x412f82=_0x412f82-0x0;let _0x23affd=_0x527f[_0x412f82];return _0x23affd;};import{Plugin as _0x47edfa}from'ckeditor5/src/core';import{getTranslation as _0x355df9}from'../utils/common-translations';export default class Y extends _0x47edfa{[_0x23af('0x1a')](){if(!this[_0x23af('0xd')][_0x23af('0x16')][_0x23af('0xe')](_0x23af('0x10')))return;const _0x1223a8=this[_0x23af('0xd')][_0x23af('0x16')]['get'](_0x23af('0xb'));_0x1223a8[_0x23af('0x9')](_0x23af('0x1b'),(_0xe1d290,_0x311abd)=>this[_0x23af('0xf')](_0xe1d290,_0x311abd)),_0x1223a8[_0x23af('0x1e')][_0x23af('0x23')](_0x23af('0x17'),'replaceImageSource',_0x23af('0x1f'),_0x1223a8[_0x23af('0x1e')][_0x23af('0xa')](_0x23af('0x17'),null,_0x23af('0x7'))),_0x1223a8[_0x23af('0x1e')][_0x23af('0x23')]('formatBlock',_0x23af('0x1b'),_0x23af('0x7'),_0x1223a8[_0x23af('0x1e')][_0x23af('0xa')](_0x23af('0x17'),null,'accept')),_0x1223a8[_0x23af('0x14')][_0x23af('0x21')](_0x52bbdb=>this[_0x23af('0x24')](_0x52bbdb));}[_0x23af('0xf')](_0x1496c0,_0x8ec33a){const _0x2dcd8b=this['editor'][_0x23af('0x16')][_0x23af('0xc')](_0x23af('0xb')),_0x17099e=this[_0x23af('0xd')][_0x23af('0x22')][_0x23af('0x1d')][_0x23af('0x6')][_0x23af('0x11')]();this[_0x23af('0xd')][_0x23af('0x22')]['change'](()=>{let _0x58e030=_0x17099e[_0x23af('0x18')]('src');const _0x177d79=this['editor'][_0x23af('0x16')]['get'](_0x23af('0x1'))['me'];for(const _0x526309 of _0x2dcd8b[_0x23af('0x5')]({'skipNotAttached':!0x0})){const _0x477924=_0x526309[_0x23af('0x1c')]();if(_0x23af('0x1b')===_0x526309[_0x23af('0x0')]&&_0x477924===_0x17099e){_0x526309[_0x23af('0x15')]!==_0x177d79&&_0x526309['discard'](),_0x58e030=_0x526309[_0x23af('0x2')][_0x23af('0x8')][0x0][_0x23af('0x13')];break;}}_0x1496c0(_0x8ec33a),_0x2dcd8b[_0x23af('0x3')](_0x17099e,{'commandName':'replaceImageSource','commandParams':[{'source':_0x58e030}]},[],_0x23af('0x1b'));});}['handleSuggestionDescription'](_0x5bc78d){const {data:_0x713dc5}=_0x5bc78d;if(_0x713dc5&&_0x23af('0x1b')===_0x713dc5[_0x23af('0x12')]){const _0x4c3995=_0x23af('0x20');return{'type':_0x23af('0x19'),'content':_0x355df9(this[_0x23af('0xd')][_0x23af('0x4')],_0x4c3995)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f0e=['value','execute','_setSuggestionData','_trackChangesExecuted','lowest','listenTo','editor','get','_handleImportedData','_trackChangesValueDuringImport','bind','TrackChangesEditing','importWord','track_changes','Users','dataInsert','commands','forEach','enableCommand','collaboration_features','plugins','trackChanges'];(function(_0x290928,_0x2f0e0a){const _0x3f9ae2=function(_0x227b61){while(--_0x227b61){_0x290928['push'](_0x290928['shift']());}};_0x3f9ae2(++_0x2f0e0a);}(_0x2f0e,0x110));const _0x3f9a=function(_0x290928,_0x2f0e0a){_0x290928=_0x290928-0x0;let _0x3f9ae2=_0x2f0e[_0x290928];return _0x3f9ae2;};import{Plugin as _0x424e2c}from'ckeditor5/src/core';export default class Z extends _0x424e2c{constructor(_0x124bee){super(_0x124bee),this[_0x3f9a('0x1')]=!0x1,this[_0x3f9a('0x11')]=!0x1;}['afterInit'](){const _0x470295=this['editor'],_0x42e677=_0x470295[_0x3f9a('0x8')][_0x3f9a('0x15')](_0x3f9a('0x4')),_0x11bd2f=_0x470295[_0x3f9a('0x8')][_0x3f9a('0x15')](_0x3f9a('0xd'));_0x42e677&&(_0x42e677['on'](_0x3f9a('0xf'),(_0xd2a3ad,[,_0x4d1580])=>{this['_trackChangesValueDuringImport']=_0x11bd2f[_0x3f9a('0xe')],_0x4d1580[_0x3f9a('0xb')][_0x3f9a('0x5')]=!this[_0x3f9a('0x1')];},{'priority':'high'}),this[_0x3f9a('0x13')](_0x42e677,_0x3f9a('0x7'),this['_handleImportedData'][_0x3f9a('0x2')](this)),this['listenTo'](_0x42e677,_0x3f9a('0x7'),()=>{this[_0x3f9a('0x11')]&&(_0x11bd2f['execute'](),this[_0x3f9a('0x11')]=!0x1);},{'priority':_0x3f9a('0x12')}),_0x470295[_0x3f9a('0xc')][_0x3f9a('0x15')](_0x3f9a('0x3'))[_0x3f9a('0xa')](_0x3f9a('0x4')));}[_0x3f9a('0x0')](_0x4ffe19,_0x49e286){const {suggestions:_0x14fe25}=_0x49e286,_0xe0974d=this[_0x3f9a('0x14')][_0x3f9a('0x8')][_0x3f9a('0x15')](_0x3f9a('0xd')),_0x52a1da=_0xe0974d['value'];this['_trackChangesValueDuringImport']!==_0x52a1da&&(_0xe0974d['execute'](),this[_0x3f9a('0x11')]=!0x0),_0x14fe25&&_0x14fe25[_0x3f9a('0x9')](({id:_0x54ad98,type:_0x284fae,author:_0x24a148,created_at:_0x28046d})=>{const _0x2358ff={'id':_0x54ad98,'type':_0x284fae,'authorId':this['editor'][_0x3f9a('0xc')][_0x3f9a('0x15')](_0x3f9a('0x6'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x24a148,'createdAt':_0x28046d?new Date(_0x28046d):new Date(),'source':'importWord'}}};this[_0x3f9a('0x14')][_0x3f9a('0xc')][_0x3f9a('0x15')](_0x3f9a('0x3'))[_0x3f9a('0x10')](_0x2358ff);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24c6=['getItemLabel','getSelectedBlocks','has','getItems','editor','afterInit','indent','blockIndent','_descriptionFactory','model','checkAttribute','indentBlock','change','schema','format','outdentBlock','outdent','markBlockFormat','registerDescriptionCallback','plugins','selection','enableCommand','commandName','IndentBlock','filter'];(function(_0x1c3bd3,_0x24c686){const _0x4b7d2d=function(_0x2362af){while(--_0x2362af){_0x1c3bd3['push'](_0x1c3bd3['shift']());}};_0x4b7d2d(++_0x24c686);}(_0x24c6,0xda));const _0x4b7d=function(_0x1c3bd3,_0x24c686){_0x1c3bd3=_0x1c3bd3-0x0;let _0x4b7d2d=_0x24c6[_0x1c3bd3];return _0x4b7d2d;};import{Plugin as _0x18c2bd}from'ckeditor5/src/core';import{getTranslation as _0x312cad}from'../utils/common-translations';export default class tt extends _0x18c2bd{[_0x4b7d('0xc')](){const _0x2f4c88=this[_0x4b7d('0xb')],_0x4a616d=_0x2f4c88[_0x4b7d('0x1')]['get']('TrackChangesEditing');_0x2f4c88[_0x4b7d('0x1')][_0x4b7d('0x9')]('IndentEditing')&&(_0x4a616d[_0x4b7d('0x3')](_0x4b7d('0xd')),_0x4a616d[_0x4b7d('0x3')](_0x4b7d('0x17')));const _0x5b20f4=_0x2f4c88['locale'];if(_0x2f4c88[_0x4b7d('0x1')][_0x4b7d('0x9')](_0x4b7d('0x5'))){for(const _0x63a014 of[_0x4b7d('0x12'),_0x4b7d('0x16')])_0x4a616d[_0x4b7d('0x3')](_0x63a014,()=>{const _0x103f59=Array['from'](this['editor'][_0x4b7d('0x10')]['document'][_0x4b7d('0x2')][_0x4b7d('0x8')]())[_0x4b7d('0x6')](_0x4f9a30=>this[_0x4b7d('0xb')][_0x4b7d('0x10')][_0x4b7d('0x14')][_0x4b7d('0x11')](_0x4f9a30,_0x4b7d('0xe')));_0x2f4c88[_0x4b7d('0x10')][_0x4b7d('0x13')](()=>{for(const _0x116f55 of _0x103f59)_0x4a616d[_0x4b7d('0x18')](_0x116f55,{'commandName':_0x63a014,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x4a616d[_0x4b7d('0xf')][_0x4b7d('0x0')](_0x16beaf=>{const {data:_0x3091f5}=_0x16beaf;if(!_0x3091f5)return;if(_0x4b7d('0x12')!=_0x3091f5[_0x4b7d('0x4')]&&_0x4b7d('0x16')!=_0x3091f5[_0x4b7d('0x4')])return;const _0x5488ab=_0x16beaf[_0x4b7d('0xa')]()[0x0],_0x40f7cc=_0x4a616d[_0x4b7d('0xf')][_0x4b7d('0x7')](_0x5488ab);return _0x4b7d('0x12')==_0x3091f5[_0x4b7d('0x4')]?{'type':_0x4b7d('0x15'),'content':_0x312cad(_0x5b20f4,'*Indent:*\x20%0',_0x40f7cc)}:_0x4b7d('0x16')==_0x3091f5[_0x4b7d('0x4')]?{'type':_0x4b7d('0x15'),'content':_0x312cad(_0x5b20f4,'*Outdent:*\x20%0',_0x40f7cc)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x26a3=['plugins','TrackChangesEditing','input','editor','requires','enableCommand','get'];(function(_0x18898f,_0x26a34d){var _0x52ce76=function(_0x280f31){while(--_0x280f31){_0x18898f['push'](_0x18898f['shift']());}};_0x52ce76(++_0x26a34d);}(_0x26a3,0xcb));var _0x52ce=function(_0x18898f,_0x26a34d){_0x18898f=_0x18898f-0x0;var _0x52ce76=_0x26a3[_0x18898f];return _0x52ce76;};import{Plugin as _0x23a0b7}from'ckeditor5/src/core';import{Input as _0x5c0e0}from'ckeditor5/src/typing';export default class it extends _0x23a0b7{static get[_0x52ce('0x4')](){return[_0x5c0e0];}['init'](){this[_0x52ce('0x3')][_0x52ce('0x0')][_0x52ce('0x6')](_0x52ce('0x1'))[_0x52ce('0x5')](_0x52ce('0x2'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28bd=['getAttribute','markInlineFormat','change','getRanges','enableCommand','LinkEditing','*Remove\x20link*','format','model','unlink','commandName','isCollapsed','linkHref','plugins','document','has','link','editor','afterInit','selection','locale','registerDescriptionCallback','*Set\x20link:*\x20%0','TrackChangesEditing','hasAttribute','_descriptionFactory','commandParams','getFirstPosition'];(function(_0x538aea,_0x28bdf8){const _0x1fa27a=function(_0x10de0e){while(--_0x10de0e){_0x538aea['push'](_0x538aea['shift']());}};_0x1fa27a(++_0x28bdf8);}(_0x28bd,0x1c3));const _0x1fa2=function(_0x538aea,_0x28bdf8){_0x538aea=_0x538aea-0x0;let _0x1fa27a=_0x28bd[_0x538aea];return _0x1fa27a;};import{Plugin as _0x5c04a6}from'ckeditor5/src/core';import{findAttributeRange as _0x56cb95}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0xfaa2be}from'./utils';import{getTranslation as _0x3c073d}from'../utils/common-translations';export default class et extends _0x5c04a6{[_0x1fa2('0xf')](){const _0x816b3b=this[_0x1fa2('0xe')];if(!_0x816b3b['plugins'][_0x1fa2('0xc')](_0x1fa2('0x2')))return;const _0x4ca3a2=_0x816b3b[_0x1fa2('0xa')]['get'](_0x1fa2('0x14'));_0x4ca3a2[_0x1fa2('0x1')]('link',(_0xd7a01,_0x44028e)=>{const _0x529084=_0x816b3b[_0x1fa2('0x5')]['document'][_0x1fa2('0x10')];let _0x172f05=[];if(_0x529084[_0x1fa2('0x8')]){if(!_0x529084[_0x1fa2('0x15')](_0x1fa2('0x9')))return void _0xd7a01(_0x44028e);{const _0x5b9f6a=_0x56cb95(_0x529084[_0x1fa2('0x18')](),_0x1fa2('0x9'),_0x529084[_0x1fa2('0x19')](_0x1fa2('0x9')),_0x816b3b['model']);_0x172f05=[_0x5b9f6a];}}else _0x172f05=Array['from'](_0x529084[_0x1fa2('0x0')]());_0x816b3b[_0x1fa2('0x5')][_0x1fa2('0x1b')](()=>{for(const _0x3927fe of _0x172f05)_0x4ca3a2[_0x1fa2('0x1a')](_0x3927fe,{'commandName':_0x1fa2('0xd'),'commandParams':[_0x44028e]});});}),_0x4ca3a2[_0x1fa2('0x1')](_0x1fa2('0x6'),()=>{const _0x353fa7=this[_0x1fa2('0xe')][_0x1fa2('0x5')],_0x2dde70=_0x353fa7[_0x1fa2('0xb')][_0x1fa2('0x10')];_0x353fa7[_0x1fa2('0x1b')](()=>{let _0x3845f7=[];if(_0x2dde70[_0x1fa2('0x8')])_0x3845f7=[_0x56cb95(_0x2dde70[_0x1fa2('0x18')](),_0x1fa2('0x9'),_0x2dde70[_0x1fa2('0x19')]('linkHref'),_0x816b3b[_0x1fa2('0x5')])];else _0x3845f7=_0xfaa2be('linkHref',_0x2dde70['getFirstRange'](),_0x816b3b[_0x1fa2('0x5')]);for(const _0x40ad48 of _0x3845f7)_0x4ca3a2['markInlineFormat'](_0x40ad48,{'commandName':'unlink','commandParams':[]});});}),_0x4ca3a2[_0x1fa2('0x16')][_0x1fa2('0x12')](_0x17e1e4=>{const {data:_0x234511}=_0x17e1e4,_0x7104dc=_0x816b3b[_0x1fa2('0x11')];if(_0x234511){if('link'==_0x234511['commandName']){const _0x2966a3=_0x234511[_0x1fa2('0x17')][0x0];return{'type':_0x1fa2('0x4'),'content':_0x3c073d(_0x7104dc,_0x1fa2('0x13'),'\x22'+_0x2966a3+'\x22')};}return _0x1fa2('0x6')==_0x234511[_0x1fa2('0x7')]?{'type':_0x1fa2('0x4'),'content':_0x3c073d(_0x7104dc,_0x1fa2('0x3'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3397=['paragraph','element','get','schema','editor','enableCommand','ELEMENT_BULLETED_LIST','*Indent:*\x20%0','filter','getAttribute','slice','selection','document','outdentList','locale','forceValue','replace','ELEMENT_TODO_LIST','add','ELEMENT_NUMBERED_LIST','markBlockFormat','todoList','*Uncheck\x20item*','plugins','afterInit','findIndex','numbered','previousSibling','isObject','bulleted','listIndent','name','todo','before','List','has','indentList','bulletedList','listItem','format','getSelectedBlocks','value','TodoListEditing','commandParams','model','listType','todoListChecked','from','createPositionAt','registerElementLabel','checkTodoList','*Change\x20to:*\x20%0','registerDescriptionCallback','nextSibling','TrackChangesEditing','ELEMENT_LIST_ITEM','commandName','numberedList','push','*Outdent:*\x20%0','checkChild','ListEditing','_descriptionFactory','change','commands','end'];(function(_0x1bcf69,_0x3397f4){const _0x14ba96=function(_0x20f546){while(--_0x20f546){_0x1bcf69['push'](_0x1bcf69['shift']());}};_0x14ba96(++_0x3397f4);}(_0x3397,0xd8));const _0x14ba=function(_0x1bcf69,_0x3397f4){_0x1bcf69=_0x1bcf69-0x0;let _0x14ba96=_0x3397[_0x1bcf69];return _0x14ba96;};import{Plugin as _0x66ce6e}from'ckeditor5/src/core';import{getTranslation as _0x25ecfe}from'../utils/common-translations';export default class st extends _0x66ce6e{[_0x14ba('0x6')](){const _0x16065e=this[_0x14ba('0x34')],_0xc22401=_0x16065e[_0x14ba('0x3e')];if(!_0x16065e[_0x14ba('0x5')][_0x14ba('0x11')](_0x14ba('0x2b')))return;const _0x1a3544=_0x16065e[_0x14ba('0x5')][_0x14ba('0x32')](_0x14ba('0x24')),_0x4fcdfc=_0x16065e[_0x14ba('0x5')][_0x14ba('0x11')](_0x14ba('0x18'));function _0x114547(_0x1b12e3){return()=>{const _0x1415a4=_0x16065e[_0x14ba('0x1a')][_0x14ba('0x3c')][_0x14ba('0x3b')],_0x5a0621=_0x16065e[_0x14ba('0x2e')][_0x14ba('0x32')](_0x1b12e3);if(_0x5a0621[_0x14ba('0x17')])return void _0x16065e['execute'](_0x14ba('0x30'),{});const _0x4d31f9=_0x1b12e3['slice'](0x0,-0x4),_0x442c7a=function(_0x39dc29,_0x5494d7,_0x23cded){let _0x564ef4=Array[_0x14ba('0x1d')](_0x39dc29)['filter'](_0x59be34=>function(_0x207f59,_0x3ff890){return _0x3ff890[_0x14ba('0x2a')](_0x207f59['parent'],_0x14ba('0x14'))&&!_0x3ff890[_0x14ba('0xa')](_0x207f59);}(_0x59be34,_0x23cded));_0x564ef4=_0x564ef4[_0x14ba('0x38')](_0x374ebe=>!_0x374ebe['is'](_0x14ba('0x31'),_0x14ba('0x14'))||_0x374ebe['getAttribute'](_0x14ba('0x1b'))!=_0x5494d7);const _0x39704c=new Set();for(const _0x49f391 of _0x564ef4)_0x49f391['is']('element',_0x14ba('0x14'))?_0x39704c['add'](ne(_0x49f391)):_0x39704c['add'](_0x49f391);return Array['from'](_0x39704c);}(_0x1415a4['getSelectedBlocks'](),_0x4d31f9,_0x16065e[_0x14ba('0x1a')][_0x14ba('0x33')]);_0x16065e[_0x14ba('0x1a')]['change'](()=>{for(const _0x392add of _0x442c7a)_0x1a3544[_0x14ba('0x2')](_0x392add,{'commandName':_0x1b12e3,'commandParams':[{'forceValue':!_0x5a0621[_0x14ba('0x17')]}],'formatGroupId':'blockName'},oe(_0x392add));});};}function _0x59cca1(_0x42f3f6){return()=>{const _0x179f05=function(_0x4eef89){let _0x576f2f=Array[_0x14ba('0x1d')](_0x4eef89);const _0x4a0582=_0x576f2f[_0x14ba('0x7')](_0x4cf93c=>'listItem'!=_0x4cf93c[_0x14ba('0xd')]);return _0x4a0582>-0x1&&(_0x576f2f=_0x576f2f[_0x14ba('0x3a')](0x0,_0x4a0582)),_0x576f2f;}(_0x16065e[_0x14ba('0x1a')][_0x14ba('0x3c')][_0x14ba('0x3b')][_0x14ba('0x16')]()),_0x1b7674=_0x16065e[_0x14ba('0x1a')]['createRange'](_0x16065e['model'][_0x14ba('0x1e')](_0x179f05[0x0],_0x14ba('0xf')),_0x16065e[_0x14ba('0x1a')]['createPositionAt'](_0x179f05[_0x179f05['length']-0x1],_0x14ba('0x2f')));_0x16065e['model'][_0x14ba('0x2d')](()=>{_0x1a3544[_0x14ba('0x2')](_0x1b7674,{'commandName':_0x42f3f6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5c3c42){const _0x1cd9ff=new Set();for(const _0x4d85a1 of _0x5c3c42){let _0x75a6fd=_0x4d85a1[_0x14ba('0x23')];for(;_0x75a6fd&&_0x75a6fd[_0x14ba('0x39')](_0x14ba('0xc'))>_0x4d85a1['getAttribute'](_0x14ba('0xc'));)_0x1cd9ff[_0x14ba('0x0')](_0x75a6fd),_0x75a6fd=_0x75a6fd['nextSibling'];}return Array[_0x14ba('0x1d')](_0x1cd9ff);}(_0x179f05));});};}_0x1a3544[_0x14ba('0x35')](_0x14ba('0x27'),_0x114547(_0x14ba('0x27'))),_0x1a3544[_0x14ba('0x35')](_0x14ba('0x13'),_0x114547(_0x14ba('0x13'))),_0x4fcdfc&&_0x1a3544[_0x14ba('0x35')]('todoList',_0x114547(_0x14ba('0x3'))),_0x1a3544[_0x14ba('0x35')](_0x14ba('0x12'),_0x59cca1(_0x14ba('0x12'))),_0x1a3544[_0x14ba('0x35')](_0x14ba('0x3d'),_0x59cca1(_0x14ba('0x3d'))),_0x4fcdfc&&_0x1a3544[_0x14ba('0x35')](_0x14ba('0x20'),()=>{const _0x5323bf=_0x16065e[_0x14ba('0x2e')][_0x14ba('0x32')]('checkTodoList'),_0x3ecd3c=Array[_0x14ba('0x1d')](_0x5323bf['_selectedElements']);_0x3ecd3c[_0x14ba('0x38')](_0x3c975d=>_0x3c975d[_0x14ba('0x39')](_0x14ba('0x1c'))!=_0x5323bf['value']),_0x16065e[_0x14ba('0x1a')]['change'](()=>{for(const _0x1c09a4 of _0x3ecd3c)_0x1a3544[_0x14ba('0x2')](_0x1c09a4,{'commandName':_0x14ba('0x20'),'commandParams':[{'forceValue':!_0x5323bf[_0x14ba('0x17')]}]});});}),_0x1a3544[_0x14ba('0x2c')][_0x14ba('0x1f')](_0x14ba('0x14'),_0x3455a9=>_0x25ecfe(_0xc22401,'ELEMENT_LIST_ITEM',_0x3455a9)),_0x1a3544[_0x14ba('0x2c')][_0x14ba('0x22')](_0x45a24b=>{const {data:_0x550928}=_0x45a24b;if(_0x550928){if('numberedList'==_0x550928[_0x14ba('0x26')]||_0x14ba('0x13')==_0x550928[_0x14ba('0x26')]||_0x14ba('0x3')==_0x550928[_0x14ba('0x26')])switch(_0x550928[_0x14ba('0x26')][_0x14ba('0x40')](_0x14ba('0x10'),'')){case _0x14ba('0xb'):return _0x452e48(_0x25ecfe(_0xc22401,_0x14ba('0x36')));case _0x14ba('0x8'):return _0x452e48(_0x25ecfe(_0xc22401,_0x14ba('0x1')));case _0x14ba('0xe'):return _0x452e48(_0x25ecfe(_0xc22401,_0x14ba('0x41')));}if(_0x14ba('0x12')==_0x550928['commandName'])return{'type':_0x14ba('0x15'),'content':_0x25ecfe(_0xc22401,_0x14ba('0x37'),_0x25ecfe(_0xc22401,_0x14ba('0x25')))};if(_0x14ba('0x3d')==_0x550928[_0x14ba('0x26')])return{'type':'format','content':_0x25ecfe(_0xc22401,_0x14ba('0x29'),_0x25ecfe(_0xc22401,_0x14ba('0x25')))};if(_0x14ba('0x20')==_0x550928[_0x14ba('0x26')])return _0x550928[_0x14ba('0x19')][0x0][_0x14ba('0x3f')]?{'type':_0x14ba('0x15'),'content':_0x25ecfe(_0xc22401,'*Check\x20item*')}:{'type':'format','content':_0x25ecfe(_0xc22401,_0x14ba('0x4'))};}function _0x452e48(_0x3a3bb8){return{'type':_0x14ba('0x15'),'content':_0x25ecfe(_0xc22401,_0x14ba('0x21'),_0x3a3bb8)};}});}}function ne(_0x5e5d5e){const _0x44ed57=_0x5e5d5e[_0x14ba('0x39')](_0x14ba('0xc'));if(0x0==_0x44ed57)return _0x5e5d5e;let _0x23640a=_0x5e5d5e;for(;_0x5e5d5e[_0x14ba('0x9')]&&_0x5e5d5e[_0x14ba('0x9')]['is']('element','listItem');){const _0x2b0abb=_0x5e5d5e[_0x14ba('0x9')]['getAttribute'](_0x14ba('0xc'));if(_0x2b0abb==_0x44ed57)_0x23640a=_0x5e5d5e[_0x14ba('0x9')];else{if(_0x2b0abb<_0x44ed57)break;}_0x5e5d5e=_0x5e5d5e[_0x14ba('0x9')];}return _0x23640a;}function oe(_0x85d9b6){const _0x393411=[];if(_0x85d9b6['is'](_0x14ba('0x31'),'listItem')&&_0x85d9b6[_0x14ba('0x39')]('listIndent')>0x0){let _0x3bd480=_0x85d9b6[_0x14ba('0x23')];for(;_0x3bd480&&_0x14ba('0x14')==_0x3bd480['name']&&_0x3bd480['getAttribute']('listIndent')==_0x85d9b6[_0x14ba('0x39')](_0x14ba('0xc'));)_0x393411[_0x14ba('0x28')](_0x3bd480),_0x3bd480=_0x3bd480['nextSibling'];}return _0x393411;}
|