@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 +2 -2
- 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 _0xb327=['commandName','enableCommand','change','*Reset\x20font\x20family*','fontBackgroundColor.colors','label','registerDescriptionCallback','plugins','FontSize','isCollapsed','markInlineFormat','*Reset\x20font\x20size*','*Set\x20font\x20size:*\x20%0','has','toLowerCase','_enableCommand','getRanges','value','model','*Set\x20font\x20background\x20color:*\x20%0','document','format','*Set\x20font\x20color:*\x20%0','*Set\x20font\x20family:*\x20%0','title','commandParams','FontFamilyEditing','normalizeSizeOptions','afterInit','FontColorEditing','fontBackgroundColor','TrackChangesEditing','fontColor.colors','get','*Reset\x20font\x20background\x20color*','from','fontFamily','trim','FontSizeEditing','find','fontSize.options','fontColor','editor','_descriptionFactory','config'];(function(_0x726ddc,_0xb327a1){const _0x1023f2=function(_0x1e8813){while(--_0x1e8813){_0x726ddc['push'](_0x726ddc['shift']());}};_0x1023f2(++_0xb327a1);}(_0xb327,0x82));const _0x1023=function(_0x726ddc,_0xb327a1){_0x726ddc=_0x726ddc-0x0;let _0x1023f2=_0xb327[_0x726ddc];return _0x1023f2;};import{Plugin as _0x4e5feb}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1743d0}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x300ed4}from'./utils';import{getTranslation as _0x266584}from'../utils/common-translations';const eo=[{'pluginName':_0x1023('0x2b'),'commandName':'fontSize'},{'pluginName':_0x1023('0x1f'),'commandName':_0x1023('0x29')},{'pluginName':_0x1023('0x22'),'commandName':_0x1023('0x1')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x1023('0x23')}];export default class H extends _0x4e5feb{[_0x1023('0x21')](){const _0x5cb9bb=this[_0x1023('0x2')]['locale'];for(const {pluginName:_0x43a89a,commandName:_0x344042}of eo)this[_0x1023('0x2')]['plugins'][_0x1023('0x12')](_0x43a89a)&&this[_0x1023('0x14')](_0x344042);this['editor']['plugins']['get'](_0x1023('0x24'))[_0x1023('0x3')][_0x1023('0xb')](_0x17a419=>{const _0x19c826=_0x5cb9bb['t'],{data:_0x3e60e6}=_0x17a419;if(null!=_0x3e60e6){if('fontSize'==_0x3e60e6[_0x1023('0x5')]){const _0x1016c6=_0x3e60e6[_0x1023('0x1e')][0x0][_0x1023('0x16')];if(_0x1016c6){const _0x3d356f=_0x19c826(this[_0x1023('0x2')][_0x1023('0xc')]['get'](_0x1023('0xd'))[_0x1023('0x20')](this['editor'][_0x1023('0x4')][_0x1023('0x26')](_0x1023('0x0')))['find'](_0x4aa2fa=>_0x4aa2fa[_0x1023('0x17')]==_0x1016c6)[_0x1023('0x1d')])[_0x1023('0x13')]();return{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,_0x1023('0x11'),_0x3d356f)};}return{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,_0x1023('0x10'))};}if(_0x1023('0x29')==_0x3e60e6['commandName']){const _0x338185=_0x3e60e6['commandParams'][0x0][_0x1023('0x16')];return _0x338185?{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,_0x1023('0x1c'),_0x338185)}:{'type':'format','content':_0x266584(_0x5cb9bb,_0x1023('0x8'))};}if(_0x1023('0x1')==_0x3e60e6[_0x1023('0x5')]){const _0x215f62=_0x3e60e6['commandParams'][0x0]['value'];if(_0x215f62){const _0x167c38=_0x1743d0(this[_0x1023('0x2')][_0x1023('0x4')][_0x1023('0x26')](_0x1023('0x25')))[_0x1023('0x2c')](_0x2bda28=>_0x2bda28[_0x1023('0x17')]==_0x215f62);let _0x32b100=_0x215f62,_0x47d60f='';return _0x167c38&&(_0x32b100=_0x167c38[_0x1023('0xa')],_0x47d60f=_0x19c826(_0x32b100)[_0x1023('0x13')]()),{'type':'format','content':_0x266584(_0x5cb9bb,_0x1023('0x1b'),_0x47d60f)[_0x1023('0x2a')](),'color':{'value':_0x215f62,'title':_0x47d60f||_0x32b100}};}return{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,'*Reset\x20font\x20color*')};}if(_0x1023('0x23')==_0x3e60e6[_0x1023('0x5')]){const _0x528880=_0x3e60e6['commandParams'][0x0][_0x1023('0x16')];if(_0x528880){const _0x245192=_0x1743d0(this[_0x1023('0x2')][_0x1023('0x4')]['get'](_0x1023('0x9')))[_0x1023('0x2c')](_0x11b914=>_0x11b914[_0x1023('0x17')]==_0x528880);let _0x1ce794=_0x528880,_0x5ad717='';return _0x245192&&(_0x1ce794=_0x245192[_0x1023('0xa')],_0x5ad717=_0x19c826(_0x1ce794)['toLowerCase']()),{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,_0x1023('0x18'),_0x5ad717)[_0x1023('0x2a')](),'color':{'value':_0x528880,'title':_0x5ad717||_0x1ce794}};}return{'type':_0x1023('0x1a'),'content':_0x266584(_0x5cb9bb,_0x1023('0x27'))};}}});}[_0x1023('0x14')](_0x390fcc){const _0x4dbad6=this[_0x1023('0x2')];_0x4dbad6['plugins'][_0x1023('0x26')](_0x1023('0x24'))[_0x1023('0x6')](_0x390fcc,(_0x17b9d9,_0x57d315={})=>{const _0x43a38f=_0x4dbad6[_0x1023('0x17')][_0x1023('0x19')]['selection'],_0x2f50b5=_0x57d315['value'];_0x43a38f[_0x1023('0xe')]?_0x17b9d9(_0x57d315):_0x4dbad6[_0x1023('0x17')][_0x1023('0x7')](()=>{const _0x4f7356=Array[_0x1023('0x28')](_0x43a38f[_0x1023('0x15')]());for(const _0x553026 of _0x4f7356){const _0x347aca=_0x2f50b5?[_0x553026]:_0x300ed4(_0x390fcc,_0x553026,_0x4dbad6[_0x1023('0x17')]);for(const _0x22d2b2 of _0x347aca)_0x4dbad6[_0x1023('0xc')][_0x1023('0x26')](_0x1023('0x24'))[_0x1023('0xf')](_0x22d2b2,{'commandName':_0x390fcc,'commandParams':[{'value':_0x2f50b5}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x509a=['commandName','push','toLowerCase','registerDescriptionCallback','keys','TrackChangesEditing','fontColor.colors','pasteFormat','FontSize','charAt','fontSize.options','selection','format','*Remove\x20all\x20formatting*','getLastPosition','getSelectedBlocks','plugins','word','toUpperCase','model','backward','length','fontColor','split','label','getFirstPosition','commands','getItems','locale','find','title','createSelection','enableCommand','get','entries','join','commandParams','createRange','getRanges','config','change','editor','fontBackgroundColor','slice','forward','schema','from','modifySelection','document','getAttributes','getAttributeProperties','copyFormat'];(function(_0x5147d6,_0x509a78){const _0x1a7326=function(_0x44aa74){while(--_0x44aa74){_0x5147d6['push'](_0x5147d6['shift']());}};_0x1a7326(++_0x509a78);}(_0x509a,0x1b9));const _0x1a73=function(_0x5147d6,_0x509a78){_0x5147d6=_0x5147d6-0x0;let _0x1a7326=_0x509a[_0x5147d6];return _0x1a7326;};import{Plugin as _0x49bd48}from'ckeditor5/src/core';import{normalizeColorOptions as _0x48f652}from'ckeditor5/src/ui';import{first as _0x2eccbd}from'ckeditor5/src/utils';import{getTranslation as _0x48da2d}from'../utils/common-translations';export default class W extends _0x49bd48{['afterInit'](){const _0x33e44e=this[_0x1a73('0x10')],_0x6ad48a=_0x33e44e[_0x1a73('0x2e')],_0x2fce8b=_0x6ad48a[_0x1a73('0x17')][_0x1a73('0x26')],_0x43be39=_0x33e44e['plugins']['get'](_0x1a73('0x20')),_0x2dc957=_0x33e44e[_0x1a73('0x3')],_0x149cda=_0x33e44e[_0x1a73('0x1')][_0x1a73('0x8')](_0x1a73('0x1a')),_0x45ab6c=_0x33e44e[_0x1a73('0x1')][_0x1a73('0x8')]('pasteFormat');_0x149cda&&_0x45ab6c&&(_0x43be39[_0x1a73('0x7')](_0x1a73('0x22'),(_0x2b795f,_0x586ff6={})=>{const _0x195a52=_0x586ff6;_0x6ad48a[_0x1a73('0xf')](()=>{const _0x615a29=Array[_0x1a73('0x15')](_0x2fce8b['getRanges']()),_0x2fd63c=_0x2fce8b['isCollapsed']?[co(_0x6ad48a,_0x2fce8b)]:_0x615a29,_0x4f955b=!!_0x2eccbd(function*(_0x1d6527,_0x535041){const _0x1fb49d=_0x2fa3b9=>!!_0x2eccbd(function*(_0x12fb35,_0x214e72){for(const [_0x2e7d3b]of _0x12fb35[_0x1a73('0x18')]()){const _0x12d316=_0x214e72[_0x1a73('0x19')](_0x2e7d3b);_0x12d316&&_0x12d316['isFormatting']&&(yield _0x2e7d3b);}}(_0x2fa3b9,_0x535041));for(const _0x3d38bd of _0x1d6527[_0x1a73('0xd')]())for(const _0xa2c954 of _0x3d38bd[_0x1a73('0x2')]())!_0x535041['isBlock'](_0xa2c954)&&_0x1fb49d(_0xa2c954)&&(yield _0xa2c954);for(const _0x273d29 of _0x1d6527[_0x1a73('0x2a')]())_0x1fb49d(_0x273d29)&&(yield _0x273d29);_0x1fb49d(_0x1d6527)&&(yield _0x1d6527);}(_0x2fce8b,_0x6ad48a[_0x1a73('0x14')]));if(_0x4f955b||0x0!==Object[_0x1a73('0x1f')](_0x195a52)[_0x1a73('0x30')])for(const _0x15bc54 of _0x2fd63c)_0x43be39['markInlineFormat'](_0x15bc54,{'commandName':'pasteFormat','commandParams':[_0x195a52]});});}),_0x43be39['_descriptionFactory'][_0x1a73('0x1e')](_0x1c7ad7=>{const {data:_0x47c3fe}=_0x1c7ad7;if(_0x47c3fe&&_0x1a73('0x22')===_0x47c3fe[_0x1a73('0x1b')]){const _0x1d5083=[],_0x1f5b8b=_0x47c3fe[_0x1a73('0xb')][0x0];for(const [_0x21339a,_0x49795f]of Object[_0x1a73('0x9')](_0x1f5b8b))_0x1d5083[_0x1a73('0x1c')](io(_0x33e44e,_0x21339a,_0x49795f));return _0x1d5083['length']?{'type':_0x1a73('0x27'),'content':_0x48da2d(_0x2dc957,'*Set\x20format\x20to:*\x20%0',_0x1d5083[_0x1a73('0xa')](',\x20'))}:{'type':_0x1a73('0x27'),'content':_0x48da2d(_0x2dc957,_0x1a73('0x28'))};}}),_0x33e44e[_0x1a73('0x2b')][_0x1a73('0x8')](_0x1a73('0x20'))[_0x1a73('0x7')](_0x1a73('0x1a')));}}function co(_0x53d68d,_0x56f956){const _0x2870d0=_0x53d68d[_0x1a73('0x6')](_0x56f956);_0x53d68d[_0x1a73('0x16')](_0x2870d0,{'unit':_0x1a73('0x2c'),'direction':_0x1a73('0x2f')});const _0x40f7a0=_0x2870d0[_0x1a73('0x0')]();_0x53d68d[_0x1a73('0x16')](_0x2870d0,{'unit':_0x1a73('0x2c'),'direction':_0x1a73('0x13')});const _0x5f0277=_0x2870d0[_0x1a73('0x29')]();return _0x53d68d[_0x1a73('0xc')](_0x40f7a0,_0x5f0277);}function io(_0x47f557,_0x1e7a27,_0xdcc7f4){const _0x117ad8=_0x47f557[_0x1a73('0x3')]['t'],_0x356d65=_0x1e7a27[_0x1a73('0x32')](/(?=[A-Z])/)[_0x1a73('0xa')]('\x20'),_0x5a60f3=_0x117ad8(_0x356d65[_0x1a73('0x24')](0x0)[_0x1a73('0x2d')]()+_0x356d65[_0x1a73('0x12')](0x1))[_0x1a73('0x1d')]();if('boolean'==typeof _0xdcc7f4)return _0x5a60f3;if(_0x1a73('0x31')===_0x1e7a27||_0x1a73('0x11')===_0x1e7a27){const _0x395066=_0x48f652(_0x47f557[_0x1a73('0xe')][_0x1a73('0x8')](_0x1a73('0x21')))['find'](_0xce9402=>_0xce9402[_0x1a73('0x2e')]==_0xdcc7f4);return _0x5a60f3+'\x20('+(_0x395066?_0x117ad8(_0x395066[_0x1a73('0x33')])[_0x1a73('0x1d')]():_0xdcc7f4)+')';}if('fontSize'===_0x1e7a27&&isNaN(parseFloat(_0xdcc7f4))){const _0xe12f2f=_0x47f557[_0x1a73('0x2b')][_0x1a73('0x8')](_0x1a73('0x23'))['normalizeSizeOptions'](_0x47f557[_0x1a73('0xe')][_0x1a73('0x8')](_0x1a73('0x25')))[_0x1a73('0x4')](_0x1cae21=>_0x1cae21[_0x1a73('0x2e')]==_0xdcc7f4);return _0x5a60f3+'\x20('+(_0xe12f2f?_0x117ad8(_0xe12f2f[_0x1a73('0x5')])[_0x1a73('0x1d')]():_0xdcc7f4)+')';}return _0x5a60f3+'\x20('+_0xdcc7f4+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1281=['locale','TrackChangesEditing','config','get','blockName','ELEMENT_HEADING','registerDescriptionCallback','document','markBlockFormat','find','parent','heading','plugins','format','registerElementLabel','title','model','commandName','filter','HeadingEditing','*Change\x20to:*\x20%0','value','ELEMENT_HEADING_CUSTOM','from','_descriptionFactory','has','editor','heading.options','checkChild'];(function(_0x3b00df,_0x1281fe){const _0x3cc7bc=function(_0x49aea2){while(--_0x49aea2){_0x3b00df['push'](_0x3b00df['shift']());}};_0x3cc7bc(++_0x1281fe);}(_0x1281,0x15c));const _0x3cc7=function(_0x3b00df,_0x1281fe){_0x3b00df=_0x3b00df-0x0;let _0x3cc7bc=_0x1281[_0x3b00df];return _0x3cc7bc;};import{Plugin as _0x5a5d68}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5b1086}from'./utils';import{getTranslation as _0x59b122}from'../utils/common-translations';export default class J extends _0x5a5d68{['afterInit'](){const _0x2ebe9d=this[_0x3cc7('0x1a')],_0xf7471b=_0x2ebe9d[_0x3cc7('0x0')],_0x49b100=_0x2ebe9d[_0x3cc7('0x2')][_0x3cc7('0x3')](_0x3cc7('0x1b'));if(!_0x2ebe9d['plugins'][_0x3cc7('0x19')](_0x3cc7('0x13')))return;const _0x5515dd=_0x2ebe9d[_0x3cc7('0xc')][_0x3cc7('0x3')](_0x3cc7('0x1'));_0x5515dd['enableCommand'](_0x3cc7('0xb'),(_0x436225,_0x5e43ad)=>{const _0x10f285=_0x5e43ad[_0x3cc7('0x15')],_0x5b6b79=Array[_0x3cc7('0x17')](this[_0x3cc7('0x1a')][_0x3cc7('0x10')][_0x3cc7('0x7')]['selection']['getSelectedBlocks']())[_0x3cc7('0x12')](_0x3b7cd2=>function(_0x1c764f,_0x665e61,_0x54de34){return _0x54de34[_0x3cc7('0x1c')](_0x1c764f[_0x3cc7('0xa')],_0x665e61)&&!_0x54de34['isObject'](_0x1c764f)&&_0x1c764f['name']!=_0x665e61;}(_0x3b7cd2,_0x10f285,this[_0x3cc7('0x1a')][_0x3cc7('0x10')]['schema']));_0x2ebe9d['model']['change'](()=>{for(const _0x8effa2 of _0x5b6b79)_0x5515dd[_0x3cc7('0x8')](_0x8effa2,{'commandName':_0x3cc7('0xb'),'commandParams':[_0x5e43ad],'formatGroupId':_0x3cc7('0x4')},_0x5b1086(_0x8effa2));});});for(const _0x358be5 of _0x49b100)'paragraph'!=_0x358be5[_0x3cc7('0x10')]&&_0x5515dd[_0x3cc7('0x18')][_0x3cc7('0xe')](_0x358be5[_0x3cc7('0x10')],_0x5cd2a9=>{const _0x293e8e=nn(_0x358be5[_0x3cc7('0x10')]);return null!==_0x293e8e?_0x3d459a(_0x5cd2a9,_0x293e8e):_0x1beba2(_0x5cd2a9,_0x358be5[_0x3cc7('0xf')]);});function _0x3d459a(_0x584f3a,_0x2d6be2){return _0x59b122(_0xf7471b,_0x3cc7('0x5'),[_0x584f3a,_0x2d6be2]);}function _0x1beba2(_0x1536c8,_0x57df2f){return _0x59b122(_0xf7471b,_0x3cc7('0x16'),[_0x1536c8,_0x57df2f]);}_0x5515dd['_descriptionFactory'][_0x3cc7('0x6')](_0x2c6771=>{const {type:_0x5da030,data:_0x49cae2}=_0x2c6771;if('formatBlock'==_0x5da030&&_0x49cae2&&'heading'==_0x49cae2[_0x3cc7('0x11')]){const _0x181ada=_0x49cae2['commandParams'][0x0][_0x3cc7('0x15')],_0x4af8ee=nn(_0x181ada);if(null!==_0x4af8ee)return{'type':_0x3cc7('0xd'),'content':_0x59b122(_0xf7471b,_0x3cc7('0x14'),_0x3d459a(0x1,_0x4af8ee))};const _0x3b6f8c=_0x49b100[_0x3cc7('0x9')](_0x43d7e4=>_0x43d7e4['model']===_0x181ada)[_0x3cc7('0xf')];return{'type':'format','content':_0x59b122(_0xf7471b,_0x3cc7('0x14'),_0x1beba2(0x1,_0x3b6f8c))};}});}}function nn(_0x5a89c9){const _0x297ec2=_0x5a89c9['match'](/^heading(\d+)$/);return _0x297ec2?_0x297ec2[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f4d=['value','isCollapsed','push','*Remove\x20highlight*','color','registerDescriptionCallback','locale','selection','document','markInlineFormat','_descriptionFactory','getRanges','model','highlight','hasAttribute','HighlightEditing','highlight.options','commandName','*Set\x20highlight:*\x20%0','has','change','createRange','TrackChangesEditing','getLastMatchingPosition','toLowerCase','afterInit','format','getAttribute','commandParams','get','getFirstPosition','item','plugins','backward','formatInline','title'];(function(_0x57bec4,_0x5f4d39){const _0xa6dd93=function(_0x7ba991){while(--_0x7ba991){_0x57bec4['push'](_0x57bec4['shift']());}};_0xa6dd93(++_0x5f4d39);}(_0x5f4d,0x1d4));const _0xa6dd=function(_0x57bec4,_0x5f4d39){_0x57bec4=_0x57bec4-0x0;let _0xa6dd93=_0x5f4d[_0x57bec4];return _0xa6dd93;};import{Plugin as _0xd0c2fc}from'ckeditor5/src/core';import{getTranslation as _0x1fe5d6}from'../utils/common-translations';import{getRangesWithAttribute as _0x56e25c}from'./utils';export default class K extends _0xd0c2fc{[_0xa6dd('0x19')](){const _0x48e74d=this['editor'];if(!_0x48e74d[_0xa6dd('0x20')][_0xa6dd('0x13')](_0xa6dd('0xf')))return;const _0x19ed19=_0x48e74d[_0xa6dd('0x20')][_0xa6dd('0x1d')](_0xa6dd('0x16'));_0x19ed19['enableCommand']('highlight',(_0x3fce76,_0x2f5dc7={})=>{const _0x1d8060=_0x48e74d[_0xa6dd('0xc')][_0xa6dd('0x8')][_0xa6dd('0x7')],_0x413742=_0x1d8060[_0xa6dd('0x1b')](_0xa6dd('0xd'));let _0x421d75=_0x2f5dc7[_0xa6dd('0x0')],_0x506eb7=[];if(_0x1d8060[_0xa6dd('0x1')]){const _0x2db41f=_0x1d8060[_0xa6dd('0x1e')]();if(!_0x1d8060[_0xa6dd('0xe')]('highlight'))return void _0x3fce76(_0x2f5dc7);{const _0x1c43bf=_0x8f6005=>_0x8f6005[_0xa6dd('0x1f')][_0xa6dd('0x1b')](_0xa6dd('0xd'))===_0x413742,_0x632c1e=_0x2db41f[_0xa6dd('0x17')](_0x1c43bf,{'direction':_0xa6dd('0x21')}),_0x1cfcef=_0x2db41f[_0xa6dd('0x17')](_0x1c43bf);_0x506eb7=[_0x48e74d[_0xa6dd('0xc')][_0xa6dd('0x15')](_0x632c1e,_0x1cfcef)],_0x421d75==_0x413742&&(_0x421d75=null);}}else for(const _0x2459fe of _0x1d8060[_0xa6dd('0xb')]())_0x421d75?_0x506eb7[_0xa6dd('0x2')](_0x2459fe):_0x506eb7[_0xa6dd('0x2')](..._0x56e25c('highlight',_0x2459fe,_0x48e74d[_0xa6dd('0xc')]));_0x48e74d['model'][_0xa6dd('0x14')](()=>{for(const _0x1a5a9a of _0x506eb7)_0x19ed19[_0xa6dd('0x9')](_0x1a5a9a,{'commandName':_0xa6dd('0xd'),'commandParams':[{'value':_0x421d75}]});});});const _0x5c83f5=_0x48e74d[_0xa6dd('0x6')];_0x19ed19[_0xa6dd('0xa')][_0xa6dd('0x5')](_0xb3eb70=>{const {type:_0x1eb75c,data:_0x4818b9}=_0xb3eb70;if(_0xa6dd('0x22')==_0x1eb75c&&_0x4818b9&&_0xa6dd('0xd')==_0x4818b9[_0xa6dd('0x11')]){const _0x51e5f1=_0x5c83f5['t'],_0x4da372=_0x4818b9[_0xa6dd('0x1c')][0x0][_0xa6dd('0x0')];if(_0x4da372){const _0x279334=_0x48e74d['config'][_0xa6dd('0x1d')](_0xa6dd('0x10'))['find'](_0x352d0c=>_0x352d0c[_0xa6dd('0xc')]==_0x4da372),_0x365a37=_0x51e5f1(_0x279334[_0xa6dd('0x23')])[_0xa6dd('0x18')]();return{'type':_0xa6dd('0x1a'),'content':_0x1fe5d6(_0x5c83f5,_0xa6dd('0x12'),_0x365a37),'color':{'value':_0x279334[_0xa6dd('0x4')],'title':_0x279334['title']}};}return{'type':_0xa6dd('0x1a'),'content':_0x1fe5d6(_0x5c83f5,_0xa6dd('0x3'),_0x1fe5d6(_0x5c83f5,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4062=['conversion','get','HorizontalLineEditing','for','TrackChangesEditing','afterInit','enableCommand','createEmptyElement','high','ELEMENT_HORIZONTAL_LINE','addClass','horizontalLine','insert','elementToStructure','div','createContainerElement','dataDowncast','showSuggestionHighlights','plugins','editor','createPositionAt'];(function(_0x29fcaf,_0x406261){const _0x4f1619=function(_0x369c0e){while(--_0x369c0e){_0x29fcaf['push'](_0x29fcaf['shift']());}};_0x4f1619(++_0x406261);}(_0x4062,0x114));const _0x4f16=function(_0x29fcaf,_0x406261){_0x29fcaf=_0x29fcaf-0x0;let _0x4f1619=_0x4062[_0x29fcaf];return _0x4f1619;};import{Plugin as _0x30bd5f}from'ckeditor5/src/core';import{getTranslation as _0x8e7940}from'../utils/common-translations';export default class Q extends _0x30bd5f{[_0x4f16('0x2')](){const _0x4bb0f3=this[_0x4f16('0x10')];if(!_0x4bb0f3[_0x4f16('0xf')]['has'](_0x4f16('0x14')))return;_0x4bb0f3[_0x4f16('0xf')]['get'](_0x4f16('0x1'))[_0x4f16('0x3')]('horizontalLine');const _0x1f62fc=_0x4bb0f3[_0x4f16('0xf')][_0x4f16('0x13')](_0x4f16('0x1')),_0x294ae1=_0x4bb0f3['locale'];_0x1f62fc['_descriptionFactory']['registerElementLabel'](_0x4f16('0x8'),_0x545326=>_0x8e7940(_0x294ae1,_0x4f16('0x6'),_0x545326)),_0x4bb0f3[_0x4f16('0x12')][_0x4f16('0x0')](_0x4f16('0xd'))[_0x4f16('0xa')]({'model':_0x4f16('0x8'),'view':(_0x1e0df3,{writer:_0x48329f,options:_0x47d23e})=>{if(!_0x47d23e[_0x4f16('0xe')])return null;const _0x251396=_0x48329f[_0x4f16('0xc')](_0x4f16('0xb')),_0x3d7c88=_0x48329f[_0x4f16('0x4')]('hr');return _0x48329f[_0x4f16('0x7')]('ck-horizontal-line',_0x251396),_0x48329f[_0x4f16('0x9')](_0x48329f[_0x4f16('0x11')](_0x251396,0x0),_0x3d7c88),_0x251396;},'converterPriority':_0x4f16('0x5')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2594=['cancel','editor','model','getCustomProperty','HtmlEmbed','markBlockFormat','rawHtml','get','has','afterInit','editing','enableCommand','TrackChangesEditing','rawHtmlApi','document','format','plugins','ELEMENT_HTML_EMBED','registerDescriptionCallback','selection','getSelectedElement','_descriptionFactory','locale','commandName','value','htmlEmbed'];(function(_0x5069d8,_0x2594c9){const _0xd59cb9=function(_0x32b05a){while(--_0x32b05a){_0x5069d8['push'](_0x5069d8['shift']());}};_0xd59cb9(++_0x2594c9);}(_0x2594,0x1b6));const _0xd59c=function(_0x5069d8,_0x2594c9){_0x5069d8=_0x5069d8-0x0;let _0xd59cb9=_0x2594[_0x5069d8];return _0xd59cb9;};import{Plugin as _0x5b79e2}from'ckeditor5/src/core';import{getTranslation as _0x3303dd}from'../utils/common-translations';export default class V extends _0x5b79e2{[_0xd59c('0xd')](){const _0x38cb98=this[_0xd59c('0x5')];if(!_0x38cb98[_0xd59c('0x14')][_0xd59c('0xc')](_0xd59c('0x8')))return;const _0x2496f3=_0x38cb98[_0xd59c('0x14')][_0xd59c('0xb')](_0xd59c('0x10')),_0x556cf9=_0x38cb98[_0xd59c('0x0')],_0x216f98=_0x38cb98[_0xd59c('0xe')]['view'][_0xd59c('0x12')]['selection'];_0x2496f3[_0xd59c('0x19')]['registerElementLabel'](_0xd59c('0xa'),_0x4f5534=>_0x3303dd(_0x556cf9,_0xd59c('0x15'),_0x4f5534)),_0x38cb98[_0xd59c('0x14')][_0xd59c('0xb')](_0xd59c('0x10'))[_0xd59c('0xf')](_0xd59c('0x3'),(_0x420aea,_0x4b5595)=>{const _0x17760d=_0x38cb98[_0xd59c('0x6')],_0x5997a9=_0x17760d[_0xd59c('0x12')][_0xd59c('0x17')];_0x17760d['change'](()=>{const _0x582659=function(_0x5d6c65){const _0x4fe4ee=_0x5d6c65['getSelectedElement']();if(_0x4fe4ee&&_0x4fe4ee['is']('element','rawHtml'))return _0x5d6c65['getSelectedElement']();return null;}(_0x5997a9);if(!_0x582659)return void _0x420aea(null);const _0x5b116e=_0x582659['getAttribute'](_0xd59c('0x2'))||'';if(void 0x0===_0x4b5595)return;if(_0x4b5595===_0x5b116e)return;_0x2496f3[_0xd59c('0x9')](_0x582659,{'commandName':'htmlEmbed','commandParams':[_0x4b5595]}),_0x216f98[_0xd59c('0x18')]()[_0xd59c('0x7')](_0xd59c('0x11'))[_0xd59c('0x4')]();});}),_0x2496f3[_0xd59c('0x19')][_0xd59c('0x16')](_0x1fa7b0=>{const {data:_0xd2c3a1}=_0x1fa7b0;if(_0xd2c3a1&&_0xd59c('0x3')==_0xd2c3a1[_0xd59c('0x1')]){const _0x3f5586=_0x3303dd(_0x556cf9,_0xd59c('0x15'));return{'type':_0xd59c('0x13'),'content':_0x3303dd(_0x556cf9,'*Change\x20%0\x20content*',_0x3f5586)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27a3=['locale','_suggestionFactory','plugins','alt','markInsertion','getChangedMarkers','newValue','registerCustomCallback','*Set\x20image\x20width:*\x20%0','discardSuggestion','insertImage','*Reset\x20image\x20width*','imageInline','find','start','length','ImageCaptionEditing','hasAttribute','value','imageTypeBlock','Users','editor','ImageUtils','detach','width','isBefore','end','refresh','toPrevious','suggestion','author','join','formatInline','imageStylePostApply','schema','insertion','toLowerCase','_descriptionFactory','toggleImageCaption','getSuggestionCallback','formatBlock','getClosestSelectedImageElement','imageTypeInline','hasSuggestion','ELEMENT_CAPTION','markDeletion','commandName','removeObject','has','commands','title','getContainedElement','previous','_splitMarkerName','TrackChangesEditing','get','ImageBlockEditing','subType','selection','name','isEqual','Block\x20image\x20to\x20inline\x20image','registerDescriptionCallback','createRangeOn','change','filter','convertBlockImageToInline','shouldConvertImageType','createRange','next','isCollapsed','nodeAfter','getCaptionFromImageModelElement','isIntersecting','caption','enableCommand','isInContent','differ','registerElementLabel','format','type','FORMAT_SIDE_IMAGE','forceDefaultExecution','afterInit','discard','resizeImage','addObject','ImageTextAlternativeEditing','markBlockFormat','uploadImage','ImageEditing','getAttribute','imageCaption','getFirstRange','getSuggestion','from','ImageResize','backward','accept','convertInlineImageToBlock','forEach','ImageInlineEditing','getNearestSelectionRange','commandParams','ELEMENT_IMAGE','imageBlock','chain','ELEMENT_INLINE_IMAGE','newRange','ImageStyleEditing','fromPosition','getSuggestions','isBlockImage','document','model','head','forward','findIndex','imageStylePreApply','imageTextAlternative','imageStyle','*Format:*\x20%0'];(function(_0x2f3e79,_0x27a345){const _0x45a736=function(_0x5347bf){while(--_0x5347bf){_0x2f3e79['push'](_0x2f3e79['shift']());}};_0x45a736(++_0x27a345);}(_0x27a3,0x12a));const _0x45a7=function(_0x2f3e79,_0x27a345){_0x2f3e79=_0x2f3e79-0x0;let _0x45a736=_0x27a3[_0x2f3e79];return _0x45a736;};import{Plugin as _0x3af018}from'ckeditor5/src/core';import{LivePosition as _0x3517b6}from'ckeditor5/src/engine';import{uid as _0x4203ee}from'ckeditor5/src/utils';import{getTranslation as _0xd6750f}from'../utils/common-translations';export default class X extends _0x3af018{[_0x45a7('0x1d')](){const _0x107f32=this[_0x45a7('0x59')];if(!_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x24')))return;const _0x55c36e=_0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x0')),_0x2bc28a=_0x107f32[_0x45a7('0x46')]['get'](_0x45a7('0x5a')),_0x58629e={},_0x74b2a3=_0x107f32[_0x45a7('0x44')];if(_0x55c36e['enableCommand'](_0x45a7('0x4e')),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x18')](_0x45a7('0x33'),_0x2e7d35=>_0xd6750f(_0x74b2a3,_0x45a7('0x32'),_0x2e7d35)),_0x55c36e['_descriptionFactory']['registerElementLabel'](_0x45a7('0x50'),_0x2e86a8=>_0xd6750f(_0x74b2a3,_0x45a7('0x35'),_0x2e86a8)),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x18')](_0x45a7('0x14'),()=>_0xd6750f(_0x74b2a3,_0x45a7('0x70'))),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')]('ImageUploadEditing')&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x23')),_0x107f32[_0x45a7('0x46')]['has'](_0x45a7('0x2'))&&_0x107f32['plugins'][_0x45a7('0x74')](_0x45a7('0x2f'))&&(_0x55c36e[_0x45a7('0x15')](_0x45a7('0x6e'),(_0x18d3ad,_0x4976a9)=>{const _0xba2954=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]);_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0xba2954,{'commandName':'imageTypeInline','commandParams':[_0x4976a9]},[],'convertBlockImageToInline');});}),_0x55c36e['enableCommand'](_0x45a7('0x57'),(_0x29ddbd,_0x23e231)=>{_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](_0x4454b1=>{let _0x56979c=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x1f0a62=_0x4454b1['createRangeOn'](_0x56979c);const _0x3ff29e=_0x3517b6[_0x45a7('0x38')](_0x1f0a62['start'],_0x45a7('0x60')),_0x5cc874=_0x3517b6[_0x45a7('0x38')](_0x1f0a62[_0x45a7('0x5e')],'toNext');_0x55c36e[_0x45a7('0x1c')](()=>_0x29ddbd(_0x23e231)),_0x56979c=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x1f0a62=_0x4454b1[_0x45a7('0x9')](_0x56979c);const _0x53e527=_0x4454b1['createRange'](_0x3ff29e,_0x5cc874);_0x3ff29e[_0x45a7('0x5b')](),_0x5cc874[_0x45a7('0x5b')](),_0x55c36e[_0x45a7('0x22')](_0x56979c,{'commandName':_0x45a7('0x6e'),'commandParams':[]},[],_0x45a7('0x2d')),_0x53e527[_0x45a7('0x52')]['isBefore'](_0x1f0a62['start'])&&_0x55c36e[_0x45a7('0x48')](_0x4454b1[_0x45a7('0xe')](_0x53e527[_0x45a7('0x52')],_0x1f0a62[_0x45a7('0x52')]),_0x45a7('0x2d')),_0x1f0a62['end'][_0x45a7('0x5d')](_0x53e527[_0x45a7('0x5e')])&&_0x55c36e[_0x45a7('0x48')](_0x4454b1[_0x45a7('0xe')](_0x1f0a62[_0x45a7('0x5e')],_0x53e527[_0x45a7('0x5e')]),_0x45a7('0x2d'));});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),'convertInlineImageToBlock',_0x45a7('0x63'),()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x2d'),'accept',()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')]('formatBlock',_0x45a7('0x2d'),_0x45a7('0x1e'),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x6b')](_0x45a7('0x6c'),'',_0x45a7('0x2c'))),_0x55c36e['_suggestionFactory'][_0x45a7('0x4b')](_0x45a7('0x67'),'convertInlineImageToBlock','join',()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x67'),'convertInlineImageToBlock',_0x45a7('0x1e'),([_0x167b87])=>{const _0xbde312=_0x55c36e['_suggestionFactory'][_0x45a7('0x6b')]('insertion','',_0x45a7('0x1e'));let _0x5e64ca=_0x167b87[_0x45a7('0x52')],_0x265fc5=_0x167b87[_0x45a7('0x5e')];const _0x356164=_0x107f32[_0x45a7('0x3c')]['schema']['getNearestSelectionRange'](_0x5e64ca,_0x45a7('0x2b')),_0x3127d5=_0x107f32[_0x45a7('0x3c')][_0x45a7('0x66')][_0x45a7('0x30')](_0x265fc5,_0x45a7('0x3e'));_0x356164['isCollapsed']&&(_0x5e64ca=_0x356164[_0x45a7('0x52')]),_0x3127d5[_0x45a7('0x10')]&&(_0x265fc5=_0x3127d5[_0x45a7('0x5e')]),_0xbde312([_0x107f32[_0x45a7('0x3c')]['createRange'](_0x5e64ca,_0x265fc5)]);}),_0x55c36e['_suggestionFactory'][_0x45a7('0x4b')]('formatBlock','convertInlineImageToBlock','chain',_0x1cd04a),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x67'),'convertInlineImageToBlock',_0x45a7('0x34'),_0x1cd04a)),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x54'))&&(_0x55c36e[_0x45a7('0x15')](_0x45a7('0x6a'),(_0x4df743,_0x2aaf59)=>{const _0x141bde=_0x107f32['plugins'][_0x45a7('0x1')]('ImageCaptionUtils');let _0x2d145e=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x5603da=_0x141bde['getCaptionFromImageModelElement'](_0x2d145e);_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{if(_0x5603da)return void _0x55c36e[_0x45a7('0x71')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x5603da));const _0x33684e=_0x2bc28a[_0x45a7('0x3a')](_0x2d145e);_0x4df743(_0x2aaf59),_0x2d145e=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x5603da=_0x141bde[_0x45a7('0x12')](_0x2d145e),_0x55c36e['markInsertion'](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x5603da),_0x33684e?null:_0x45a7('0x26'));});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x67'),_0x45a7('0x26'),'chain',_0x1cd04a)),_0x107f32[_0x45a7('0x46')]['has']('ImageStyleEditing')){_0x55c36e['enableCommand'](_0x45a7('0x42'),(_0x4336ec,_0x29911b)=>{const _0x300076=_0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x58'))['me'],_0x11f408=_0x107f32[_0x45a7('0x75')][_0x45a7('0x1')](_0x45a7('0x42'));let _0x2557ad=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x2c1aa9=_0x107f32['model'][_0x45a7('0x9')](_0x2557ad),_0x5bcc83=_0x11f408[_0x45a7('0x56')];if(_0x5bcc83==_0x29911b[_0x45a7('0x56')])return;const _0x52a0b6={'commandName':'imageStyle','commandParams':[_0x29911b],'formatGroupId':_0x4203ee()};_0x107f32['model']['change'](()=>{if(_0x55c36e[_0x45a7('0x39')]()[_0x45a7('0xb')](_0x4e5f19=>_0x4e5f19['isInContent']&&_0x300076==_0x4e5f19[_0x45a7('0x62')]&&(_0x45a7('0x6c')==_0x4e5f19[_0x45a7('0x1a')]||_0x45a7('0x64')==_0x4e5f19[_0x45a7('0x1a')])&&(_0x45a7('0x40')==_0x4e5f19[_0x45a7('0x3')]||'imageStylePostApply'==_0x4e5f19[_0x45a7('0x3')])&&_0x4e5f19[_0x45a7('0x27')]()['isEqual'](_0x2c1aa9))[_0x45a7('0x2e')](_0x266aa8=>_0x55c36e[_0x45a7('0x4d')](_0x266aa8[_0x45a7('0x3d')])),_0x2557ad=_0x2bc28a['getClosestSelectedImageElement'](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')]['selection']),_0x2c1aa9=_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x2557ad),_0x11f408['refresh'](),_0x107f32[_0x45a7('0x75')]['get'](_0x45a7('0x6e'))[_0x45a7('0x5f')](),_0x107f32[_0x45a7('0x75')]['get'](_0x45a7('0x57'))[_0x45a7('0x5f')](),_0x5bcc83=_0x11f408['value'],_0x5bcc83!=_0x29911b[_0x45a7('0x56')])return _0x2bc28a['isInlineImage'](_0x2557ad)&&_0x11f408[_0x45a7('0xd')](_0x29911b[_0x45a7('0x56')],_0x2557ad)?(_0x4336ec(_0x29911b),_0x2557ad=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]),void _0x55c36e[_0x45a7('0x22')](_0x2557ad,{..._0x52a0b6,'commandReversedParams':[{'value':_0x5bcc83||null}]},[],'imageStylePreApply')):void(_0x2bc28a['isBlockImage'](_0x2557ad)?_0x55c36e[_0x45a7('0x22')](_0x2557ad,_0x52a0b6,[],_0x45a7('0x65')):_0x55c36e['markInlineFormat'](_0x2c1aa9,_0x52a0b6,_0x45a7('0x65')));});});for(const _0x105d80 of _0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x37'))['normalizedStyles'])_0x58629e[_0x105d80[_0x45a7('0x5')]]=_0x105d80[_0x45a7('0x76')][_0x45a7('0x68')]();_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')]('formatBlock',_0x45a7('0x40'),'join',()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x6c'),_0x45a7('0x65'),_0x45a7('0x63'),()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x64'),_0x45a7('0x65'),'join',()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x40'),_0x45a7('0x2c'),()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x45a7('0x1e'),(_0x4a4250,_0x334132)=>{_0x55c36e[_0x45a7('0x45')][_0x45a7('0x6b')]('formatBlock','','accept')(_0x4a4250,{'commandName':_0x334132[_0x45a7('0x72')],'commandParams':_0x334132['commandReversedParams']});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x40'),_0x45a7('0x34'),_0x1cd04a);}const _0x23f0cd=[{'type':'formatBlock','subType':_0x45a7('0x40')},{'type':_0x45a7('0x67'),'subType':_0x45a7('0x26')},{'type':_0x45a7('0x6c'),'subType':_0x45a7('0x2d')},{'type':_0x45a7('0x67'),'subType':'convertInlineImageToBlock'}];function _0x52e87a(_0x21053b,_0xa3485){const _0x249d83=_0x23f0cd['findIndex'](({type:_0x5cf31f,subType:_0x56b635})=>_0x21053b[_0x45a7('0x1a')]==_0x5cf31f&&_0x21053b['subType']==_0x56b635),_0xaa6f92=_0x23f0cd[_0x45a7('0x3f')](({type:_0x4e1383,subType:_0x10fcb3})=>_0xa3485[_0x45a7('0x1a')]==_0x4e1383&&_0xa3485[_0x45a7('0x3')]==_0x10fcb3);if(_0x249d83<0x0||_0xaa6f92<0x0)return!0x1;const _0x294472=_0x21053b[_0x45a7('0x27')](),_0x23bf57=_0xa3485[_0x45a7('0x27')]();if((0x0==_0x249d83||0x1==_0x249d83)&&0x2==_0xaa6f92&&_0x294472[_0x45a7('0x13')](_0x23bf57))return!0x0;if(0x2==_0x249d83&&0x3==_0xaa6f92){const _0x4a4940=_0x55c36e['_findSuggestions'](_0x294472,'insertion')[_0x45a7('0xb')](({suggestion:_0x1f1565,meta:_0x3d2359})=>_0x3d2359['isOwn']&&_0x45a7('0x2d')==_0x1f1565[_0x45a7('0x3')]);if(_0x4a4940['length']>0x1&&_0x23bf57['end'][_0x45a7('0x6')](_0x294472[_0x45a7('0x52')]))return!0x0;if(0x1==_0x4a4940[_0x45a7('0x53')]&&(_0x294472[_0x45a7('0x52')][_0x45a7('0x6')](_0x23bf57[_0x45a7('0x5e')])||_0x294472[_0x45a7('0x5e')][_0x45a7('0x6')](_0x23bf57[_0x45a7('0x52')])))return!0x0;}if(0x3==_0x249d83&&0x3==_0xaa6f92&&_0x294472['start'][_0x45a7('0x5d')](_0x23bf57['start'])){const _0xc0cb2d=_0x294472[_0x45a7('0x5e')][_0x45a7('0x11')],_0x14a2cf=_0x23bf57['start']['nodeBefore'];return _0x2bc28a['isBlockImage'](_0xc0cb2d)&&_0xc0cb2d===_0x14a2cf;}return!0x1;}function _0x1cd04a(_0x1a3364,_0x4fcd2f){return _0x52e87a(_0x1a3364,_0x4fcd2f)?[_0x1a3364,_0x4fcd2f]:_0x52e87a(_0x4fcd2f,_0x1a3364)?[_0x4fcd2f,_0x1a3364]:null;}_0x107f32[_0x45a7('0x3c')]['document']['registerPostFixer'](()=>{let _0x3df6d9=!0x1;const _0x17b916=Array[_0x45a7('0x29')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x17')][_0x45a7('0x49')]());for(const {name:_0x207c84,data:_0x16bd99}of _0x17b916){const {group:_0x664134,type:_0x30b230,subType:_0x2d808c,id:_0x400788}=_0x55c36e[_0x45a7('0x79')](_0x207c84);if(_0x45a7('0x61')==_0x664134&&_0x55c36e[_0x45a7('0x6f')](_0x400788)){if(_0x45a7('0x6c')==_0x30b230&&(_0x45a7('0x40')==_0x2d808c||'imageStylePostApply'==_0x2d808c)){const _0x5d28f4=_0x55c36e[_0x45a7('0x28')](_0x400788);if(_0x16bd99[_0x45a7('0x36')]){const _0x1234c8=_0x5d28f4['getFirstRange']()[_0x45a7('0x77')]();if(_0x2bc28a[_0x45a7('0x3a')](_0x1234c8))continue;_0x55c36e[_0x45a7('0x4d')](_0x5d28f4),_0x3df6d9=!0x0;}}if('insertion'==_0x30b230&&_0x45a7('0x26')==_0x2d808c&&!_0x16bd99[_0x45a7('0x36')]){const _0x4dee84=_0x55c36e['getSuggestion'](_0x400788);_0x4dee84['next']&&_0x4dee84[_0x45a7('0xf')][_0x45a7('0x16')]&&(_0x55c36e[_0x45a7('0x4d')](_0x4dee84['next']),_0x3df6d9=!0x0);}}}return _0x3df6d9;}),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x2a'))&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x1f'),(_0x4141aa,_0x586567)=>{const _0x106b1f=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]);_0x106b1f[_0x45a7('0x25')](_0x45a7('0x5c'))!=_0x586567[_0x45a7('0x5c')]&&_0x107f32['model'][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0x106b1f,{'commandName':_0x45a7('0x1f'),'commandParams':[_0x586567]});});}),_0x107f32[_0x45a7('0x46')]['has'](_0x45a7('0x21'))&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x41'),(_0x4aa66d,_0xb49510)=>{const _0xf2ad29=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]);(_0xf2ad29[_0x45a7('0x55')](_0x45a7('0x47'))?_0xf2ad29[_0x45a7('0x25')](_0x45a7('0x47')):'')!=_0xb49510[_0x45a7('0x4a')]&&_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0xf2ad29,{'commandName':_0x45a7('0x41'),'commandParams':[_0xb49510]});});}),_0x55c36e['_descriptionFactory'][_0x45a7('0x8')](_0x380d58=>{if(!!_0x23f0cd[_0x45a7('0x51')](({type:_0x3f7c21,subType:_0x18dc1f})=>_0x380d58[_0x45a7('0x1a')]==_0x3f7c21&&_0x380d58[_0x45a7('0x3')]==_0x18dc1f))return _0x380d58[_0x45a7('0x78')]?{}:void 0x0;}),_0x55c36e['_descriptionFactory'][_0x45a7('0x8')](_0x306e43=>{if(_0x45a7('0x67')==_0x306e43[_0x45a7('0x1a')]||'deletion'==_0x306e43['type']){const _0x45228e=_0x306e43['getContainedElement']();if(_0x45228e&&_0x45228e['is']('element',_0x45a7('0x14')))return{'type':_0x45a7('0x67')==_0x306e43[_0x45a7('0x1a')]?_0x45a7('0x20'):_0x45a7('0x73'),'element':_0x45228e,'quantity':0x1};}}),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x8')](_0x26eb36=>'formatBlock'==_0x26eb36[_0x45a7('0x1a')]&&_0x45a7('0x2d')==_0x26eb36['subType']?{'type':_0x45a7('0x19'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x45a7('0x6c')==_0x26eb36[_0x45a7('0x1a')]&&_0x45a7('0xc')==_0x26eb36[_0x45a7('0x3')]?{'type':_0x45a7('0x19'),'content':_0x45a7('0x7')}:void 0x0),_0x55c36e[_0x45a7('0x69')]['registerDescriptionCallback'](_0x2066d1=>{const {data:_0x2087ec}=_0x2066d1;if(_0x2087ec){if('imageStyle'==_0x2087ec['commandName']){const _0x4ef3c1=_0x2087ec[_0x45a7('0x31')][0x0]['value'];return _0x70d6d6('side'===_0x4ef3c1?_0xd6750f(_0x74b2a3,_0x45a7('0x1b')):_0x58629e[_0x4ef3c1]||_0x4ef3c1);}if(_0x45a7('0x41')==_0x2087ec[_0x45a7('0x72')]){const _0x47b3fb=_0x2087ec['commandParams'][0x0][_0x45a7('0x4a')];return _0x47b3fb?{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47b3fb+'\x22')}:{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,'*Remove\x20image\x20text\x20alternative*')};}if(_0x45a7('0x1f')==_0x2087ec[_0x45a7('0x72')]){const _0x185dc1=_0x2087ec[_0x45a7('0x31')][0x0][_0x45a7('0x5c')];return _0x185dc1?{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,_0x45a7('0x4c'),_0x185dc1)}:{'type':'format','content':_0xd6750f(_0x74b2a3,_0x45a7('0x4f'))};}}function _0x70d6d6(_0x3a0fb0){return{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,_0x45a7('0x43'),_0x3a0fb0)};}});}}
|
|
23
|
+
const _0x45b1=['refresh','imageStylePostApply','imageStylePreApply','ImageUtils','fromPosition','find','ImageCaptionEditing','commands','value','width','nodeBefore','hasAttribute','end','join','ImageUploadEditing','insertion','change','isCollapsed','forceDefaultExecution','format','locale','getSuggestion','side','detach','Users','editor','isEqual','getFirstRange','markInlineFormat','imageTextAlternative','filter','element','imageStyle','convertBlockImageToInline','forward','forEach','getSuggestionCallback','ImageStyleEditing','next','getChangedMarkers','alt','subType','nodeAfter','imageTypeInline','newValue','commandReversedParams','isBefore','markDeletion','length','isOwn','createRange','type','has','isIntersecting','getContainedElement','chain','isBlockImage','uploadImage','ELEMENT_CAPTION','registerDescriptionCallback','formatBlock','model','commandName','*Reset\x20image\x20width*','document','previous','title','from','schema','ImageResize','markInsertion','toPrevious','registerCustomCallback','insertImage','newRange','author','_suggestionFactory','formatInline','name','discard','imageCaption','backward','_descriptionFactory','hasSuggestion','getCaptionFromImageModelElement','ELEMENT_INLINE_IMAGE','convertInlineImageToBlock','start','accept','get','selection','ImageCaptionUtils','isInContent','discardSuggestion','imageTypeBlock','getAttribute','differ','caption','registerPostFixer','createRangeOn','Block\x20image\x20to\x20inline\x20image','head','getNearestSelectionRange','_splitMarkerName','*Set\x20image\x20text\x20alternative:*\x20%0','toNext','markBlockFormat','imageInline','_findSuggestions','deletion','Inline\x20image\x20to\x20block\x20image','removeObject','findIndex','commandParams','enableCommand','plugins','registerElementLabel','afterInit','ImageTextAlternativeEditing','addObject','getClosestSelectedImageElement','toLowerCase','imageBlock','resizeImage'];(function(_0x3572a9,_0x45b127){const _0xd23f1f=function(_0x1cb504){while(--_0x1cb504){_0x3572a9['push'](_0x3572a9['shift']());}};_0xd23f1f(++_0x45b127);}(_0x45b1,0x144));const _0xd23f=function(_0x3572a9,_0x45b127){_0x3572a9=_0x3572a9-0x0;let _0xd23f1f=_0x45b1[_0x3572a9];return _0xd23f1f;};import{Plugin as _0x2f2855}from'ckeditor5/src/core';import{LivePosition as _0x134432}from'ckeditor5/src/engine';import{uid as _0x42afa2}from'ckeditor5/src/utils';import{getTranslation as _0x219b76}from'../utils/common-translations';export default class X extends _0x2f2855{[_0xd23f('0x29')](){const _0x5aa00d=this[_0xd23f('0x49')];if(!_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')]('ImageEditing'))return;const _0xbcffc0=_0x5aa00d['plugins'][_0xd23f('0xd')]('TrackChangesEditing'),_0x23e2fe=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0x33')),_0x18b236={},_0x451128=_0x5aa00d[_0xd23f('0x44')];if(_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x79')),_0xbcffc0[_0xd23f('0x6')]['registerElementLabel'](_0xd23f('0x2e'),_0x318a4a=>_0x219b76(_0x451128,'ELEMENT_IMAGE',_0x318a4a)),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x28')](_0xd23f('0x1f'),_0x5e7c57=>_0x219b76(_0x451128,_0xd23f('0x9'),_0x5e7c57)),_0xbcffc0[_0xd23f('0x6')]['registerElementLabel'](_0xd23f('0x15'),()=>_0x219b76(_0x451128,_0xd23f('0x6a'))),_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')](_0xd23f('0x3e'))&&_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x69')),_0x5aa00d[_0xd23f('0x27')]['has']('ImageBlockEditing')&&_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')]('ImageInlineEditing')&&(_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x5b'),(_0x149e59,_0x296b13)=>{const _0x1e1a80=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')]['selection']);_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x1e1a80,{'commandName':_0xd23f('0x5b'),'commandParams':[_0x296b13]},[],_0xd23f('0x51'));});}),_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x12'),(_0x4b5ecf,_0x324014)=>{_0x5aa00d[_0xd23f('0x6d')]['change'](_0x361173=>{let _0x41ec65=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x515fc9=_0x361173[_0xd23f('0x17')](_0x41ec65);const _0x4c5509=_0x134432[_0xd23f('0x34')](_0x515fc9['start'],_0xd23f('0x77')),_0x33abbd=_0x134432[_0xd23f('0x34')](_0x515fc9[_0xd23f('0x3c')],_0xd23f('0x1d'));_0xbcffc0[_0xd23f('0x42')](()=>_0x4b5ecf(_0x324014)),_0x41ec65=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0xe')]),_0x515fc9=_0x361173[_0xd23f('0x17')](_0x41ec65);const _0x10357d=_0x361173['createRange'](_0x4c5509,_0x33abbd);_0x4c5509[_0xd23f('0x47')](),_0x33abbd['detach'](),_0xbcffc0[_0xd23f('0x1e')](_0x41ec65,{'commandName':_0xd23f('0x5b'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x10357d[_0xd23f('0xb')][_0xd23f('0x5e')](_0x515fc9[_0xd23f('0xb')])&&_0xbcffc0[_0xd23f('0x76')](_0x361173['createRange'](_0x10357d[_0xd23f('0xb')],_0x515fc9[_0xd23f('0xb')]),'convertInlineImageToBlock'),_0x515fc9['end'][_0xd23f('0x5e')](_0x10357d[_0xd23f('0x3c')])&&_0xbcffc0[_0xd23f('0x76')](_0x361173[_0xd23f('0x62')](_0x515fc9['end'],_0x10357d[_0xd23f('0x3c')]),_0xd23f('0xa'));});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatBlock',_0xd23f('0xa'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),'accept',()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),_0xd23f('0x3'),_0xbcffc0[_0xd23f('0x0')]['getSuggestionCallback']('formatBlock','',_0xd23f('0xc'))),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x3f'),_0xd23f('0xa'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion',_0xd23f('0xa'),'discard',([_0x2ae4cf])=>{const _0x141921=_0xbcffc0['_suggestionFactory']['getSuggestionCallback'](_0xd23f('0x3f'),'','discard');let _0x406abd=_0x2ae4cf[_0xd23f('0xb')],_0x538b7d=_0x2ae4cf[_0xd23f('0x3c')];const _0x3947c2=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x74')][_0xd23f('0x1a')](_0x406abd,_0xd23f('0x5')),_0x31fc4a=_0x5aa00d['model'][_0xd23f('0x74')][_0xd23f('0x1a')](_0x538b7d,_0xd23f('0x52'));_0x3947c2[_0xd23f('0x41')]&&(_0x406abd=_0x3947c2[_0xd23f('0xb')]),_0x31fc4a[_0xd23f('0x41')]&&(_0x538b7d=_0x31fc4a[_0xd23f('0x3c')]),_0x141921([_0x5aa00d['model']['createRange'](_0x406abd,_0x538b7d)]);}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0xa'),_0xd23f('0x67'),_0x57e560),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion','convertInlineImageToBlock',_0xd23f('0x67'),_0x57e560)),_0x5aa00d[_0xd23f('0x27')][_0xd23f('0x64')](_0xd23f('0x36'))&&(_0xbcffc0[_0xd23f('0x26')]('toggleImageCaption',(_0x21a2a5,_0x4d99a7)=>{const _0x3da954=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0xf'));let _0x1df2ab=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x48d310=_0x3da954[_0xd23f('0x8')](_0x1df2ab);_0x5aa00d['model'][_0xd23f('0x40')](()=>{if(_0x48d310)return void _0xbcffc0[_0xd23f('0x5f')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x48d310));const _0x77fcf=_0x23e2fe[_0xd23f('0x68')](_0x1df2ab);_0x21a2a5(_0x4d99a7),_0x1df2ab=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),_0x48d310=_0x3da954[_0xd23f('0x8')](_0x1df2ab),_0xbcffc0[_0xd23f('0x76')](_0x5aa00d[_0xd23f('0x6d')]['createRangeOn'](_0x48d310),_0x77fcf?null:_0xd23f('0x4'));});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('insertion','imageCaption',_0xd23f('0x67'),_0x57e560)),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x55'))){_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x50'),(_0x23b51d,_0x4574cc)=>{const _0x2e29da=_0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')](_0xd23f('0x48'))['me'],_0x36e96d=_0x5aa00d[_0xd23f('0x37')][_0xd23f('0xd')](_0xd23f('0x50'));let _0x159637=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d['model'][_0xd23f('0x70')][_0xd23f('0xe')]),_0x57a307=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x159637),_0x343b72=_0x36e96d['value'];if(_0x343b72==_0x4574cc[_0xd23f('0x38')])return;const _0x124a04={'commandName':_0xd23f('0x50'),'commandParams':[_0x4574cc],'formatGroupId':_0x42afa2()};_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{if(_0xbcffc0['getSuggestions']()[_0xd23f('0x4e')](_0x37ae3f=>_0x37ae3f[_0xd23f('0x10')]&&_0x2e29da==_0x37ae3f[_0xd23f('0x7b')]&&(_0xd23f('0x6c')==_0x37ae3f['type']||_0xd23f('0x1')==_0x37ae3f[_0xd23f('0x63')])&&('imageStylePreApply'==_0x37ae3f[_0xd23f('0x59')]||_0xd23f('0x31')==_0x37ae3f['subType'])&&_0x37ae3f[_0xd23f('0x4b')]()['isEqual'](_0x57a307))[_0xd23f('0x53')](_0x3396ec=>_0xbcffc0['discardSuggestion'](_0x3396ec[_0xd23f('0x19')])),_0x159637=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0xe')]),_0x57a307=_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x17')](_0x159637),_0x36e96d[_0xd23f('0x30')](),_0x5aa00d['commands']['get'](_0xd23f('0x5b'))['refresh'](),_0x5aa00d[_0xd23f('0x37')][_0xd23f('0xd')](_0xd23f('0x12'))[_0xd23f('0x30')](),_0x343b72=_0x36e96d[_0xd23f('0x38')],_0x343b72!=_0x4574cc[_0xd23f('0x38')])return _0x23e2fe['isInlineImage'](_0x159637)&&_0x36e96d['shouldConvertImageType'](_0x4574cc[_0xd23f('0x38')],_0x159637)?(_0x23b51d(_0x4574cc),_0x159637=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]),void _0xbcffc0[_0xd23f('0x1e')](_0x159637,{..._0x124a04,'commandReversedParams':[{'value':_0x343b72||null}]},[],_0xd23f('0x32'))):void(_0x23e2fe[_0xd23f('0x68')](_0x159637)?_0xbcffc0[_0xd23f('0x1e')](_0x159637,_0x124a04,[],_0xd23f('0x31')):_0xbcffc0[_0xd23f('0x4c')](_0x57a307,_0x124a04,_0xd23f('0x31')));});});for(const _0x548334 of _0x5aa00d[_0xd23f('0x27')][_0xd23f('0xd')]('ImageStyleEditing')['normalizedStyles'])_0x18b236[_0x548334[_0xd23f('0x2')]]=_0x548334[_0xd23f('0x72')][_0xd23f('0x2d')]();_0xbcffc0[_0xd23f('0x0')]['registerCustomCallback']('formatBlock',_0xd23f('0x32'),_0xd23f('0x3d'),()=>!0x1),_0xbcffc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd23f('0x31'),'join',()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatInline',_0xd23f('0x31'),'join',()=>!0x1),_0xbcffc0['_suggestionFactory'][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0x32'),_0xd23f('0xc'),()=>!0x1),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')]('formatBlock',_0xd23f('0x32'),_0xd23f('0x3'),(_0x39151d,_0x8f3408)=>{_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x54')](_0xd23f('0x6c'),'',_0xd23f('0xc'))(_0x39151d,{'commandName':_0x8f3408[_0xd23f('0x6e')],'commandParams':_0x8f3408[_0xd23f('0x5d')]});}),_0xbcffc0[_0xd23f('0x0')][_0xd23f('0x78')](_0xd23f('0x6c'),_0xd23f('0x32'),'chain',_0x57e560);}const _0x16eff1=[{'type':_0xd23f('0x6c'),'subType':_0xd23f('0x32')},{'type':_0xd23f('0x3f'),'subType':_0xd23f('0x4')},{'type':_0xd23f('0x6c'),'subType':_0xd23f('0xa')},{'type':_0xd23f('0x3f'),'subType':_0xd23f('0xa')}];function _0x5a0dba(_0x555b6f,_0x417c97){const _0x2b59aa=_0x16eff1[_0xd23f('0x24')](({type:_0x192bb9,subType:_0x3fdd4e})=>_0x555b6f[_0xd23f('0x63')]==_0x192bb9&&_0x555b6f[_0xd23f('0x59')]==_0x3fdd4e),_0xc65f84=_0x16eff1['findIndex'](({type:_0x10b34b,subType:_0x463448})=>_0x417c97['type']==_0x10b34b&&_0x417c97[_0xd23f('0x59')]==_0x463448);if(_0x2b59aa<0x0||_0xc65f84<0x0)return!0x1;const _0x604379=_0x555b6f[_0xd23f('0x4b')](),_0x273bd4=_0x417c97[_0xd23f('0x4b')]();if((0x0==_0x2b59aa||0x1==_0x2b59aa)&&0x2==_0xc65f84&&_0x604379[_0xd23f('0x65')](_0x273bd4))return!0x0;if(0x2==_0x2b59aa&&0x3==_0xc65f84){const _0x2f9fbb=_0xbcffc0[_0xd23f('0x20')](_0x604379,_0xd23f('0x3f'))[_0xd23f('0x4e')](({suggestion:_0x2a8eeb,meta:_0x52ecb0})=>_0x52ecb0[_0xd23f('0x61')]&&_0xd23f('0xa')==_0x2a8eeb[_0xd23f('0x59')]);if(_0x2f9fbb[_0xd23f('0x60')]>0x1&&_0x273bd4[_0xd23f('0x3c')][_0xd23f('0x4a')](_0x604379[_0xd23f('0xb')]))return!0x0;if(0x1==_0x2f9fbb[_0xd23f('0x60')]&&(_0x604379[_0xd23f('0xb')][_0xd23f('0x4a')](_0x273bd4['end'])||_0x604379[_0xd23f('0x3c')][_0xd23f('0x4a')](_0x273bd4['start'])))return!0x0;}if(0x3==_0x2b59aa&&0x3==_0xc65f84&&_0x604379[_0xd23f('0xb')][_0xd23f('0x5e')](_0x273bd4[_0xd23f('0xb')])){const _0x542335=_0x604379[_0xd23f('0x3c')][_0xd23f('0x5a')],_0x13b0a4=_0x273bd4[_0xd23f('0xb')][_0xd23f('0x3a')];return _0x23e2fe[_0xd23f('0x68')](_0x542335)&&_0x542335===_0x13b0a4;}return!0x1;}function _0x57e560(_0x96258c,_0x13c582){return _0x5a0dba(_0x96258c,_0x13c582)?[_0x96258c,_0x13c582]:_0x5a0dba(_0x13c582,_0x96258c)?[_0x13c582,_0x96258c]:null;}_0x5aa00d['model'][_0xd23f('0x70')][_0xd23f('0x16')](()=>{let _0x3465a7=!0x1;const _0x76b118=Array[_0xd23f('0x73')](_0x5aa00d[_0xd23f('0x6d')]['document'][_0xd23f('0x14')][_0xd23f('0x57')]());for(const {name:_0x21f61d,data:_0x1d9b5a}of _0x76b118){const {group:_0x5ef33e,type:_0x5ba13d,subType:_0x356cca,id:_0x2b1651}=_0xbcffc0[_0xd23f('0x1b')](_0x21f61d);if('suggestion'==_0x5ef33e&&_0xbcffc0[_0xd23f('0x7')](_0x2b1651)){if(_0xd23f('0x6c')==_0x5ba13d&&(_0xd23f('0x32')==_0x356cca||_0xd23f('0x31')==_0x356cca)){const _0x2e6637=_0xbcffc0[_0xd23f('0x45')](_0x2b1651);if(_0x1d9b5a[_0xd23f('0x7a')]){const _0xd480f5=_0x2e6637[_0xd23f('0x4b')]()[_0xd23f('0x66')]();if(_0x23e2fe[_0xd23f('0x68')](_0xd480f5))continue;_0xbcffc0[_0xd23f('0x11')](_0x2e6637),_0x3465a7=!0x0;}}if(_0xd23f('0x3f')==_0x5ba13d&&_0xd23f('0x4')==_0x356cca&&!_0x1d9b5a[_0xd23f('0x7a')]){const _0x3b0c60=_0xbcffc0[_0xd23f('0x45')](_0x2b1651);_0x3b0c60[_0xd23f('0x56')]&&_0x3b0c60[_0xd23f('0x56')]['isInContent']&&(_0xbcffc0[_0xd23f('0x11')](_0x3b0c60[_0xd23f('0x56')]),_0x3465a7=!0x0);}}}return _0x3465a7;}),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x75'))&&_0xbcffc0[_0xd23f('0x26')]('resizeImage',(_0x368c6f,_0x39854c)=>{const _0x3f0bf4=_0x23e2fe['getClosestSelectedImageElement'](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]);_0x3f0bf4['getAttribute'](_0xd23f('0x39'))!=_0x39854c[_0xd23f('0x39')]&&_0x5aa00d[_0xd23f('0x6d')]['change'](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x3f0bf4,{'commandName':_0xd23f('0x2f'),'commandParams':[_0x39854c]});});}),_0x5aa00d['plugins'][_0xd23f('0x64')](_0xd23f('0x2a'))&&_0xbcffc0[_0xd23f('0x26')](_0xd23f('0x4d'),(_0x3f5e42,_0x42439e)=>{const _0x1c205d=_0x23e2fe[_0xd23f('0x2c')](_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x70')][_0xd23f('0xe')]);(_0x1c205d[_0xd23f('0x3b')]('alt')?_0x1c205d[_0xd23f('0x13')](_0xd23f('0x58')):'')!=_0x42439e[_0xd23f('0x5c')]&&_0x5aa00d[_0xd23f('0x6d')][_0xd23f('0x40')](()=>{_0xbcffc0[_0xd23f('0x1e')](_0x1c205d,{'commandName':_0xd23f('0x4d'),'commandParams':[_0x42439e]});});}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0xb69789=>{if(!!_0x16eff1[_0xd23f('0x35')](({type:_0x567bb5,subType:_0x5304cc})=>_0xb69789[_0xd23f('0x63')]==_0x567bb5&&_0xb69789[_0xd23f('0x59')]==_0x5304cc))return _0xb69789[_0xd23f('0x71')]?{}:void 0x0;}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x3efb3d=>{if(_0xd23f('0x3f')==_0x3efb3d[_0xd23f('0x63')]||_0xd23f('0x21')==_0x3efb3d['type']){const _0x20054f=_0x3efb3d[_0xd23f('0x66')]();if(_0x20054f&&_0x20054f['is'](_0xd23f('0x4f'),_0xd23f('0x15')))return{'type':_0xd23f('0x3f')==_0x3efb3d[_0xd23f('0x63')]?_0xd23f('0x2b'):_0xd23f('0x23'),'element':_0x20054f,'quantity':0x1};}}),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x408345=>_0xd23f('0x6c')==_0x408345[_0xd23f('0x63')]&&_0xd23f('0xa')==_0x408345[_0xd23f('0x59')]?{'type':_0xd23f('0x43'),'content':_0xd23f('0x22')}:'formatBlock'==_0x408345[_0xd23f('0x63')]&&_0xd23f('0x51')==_0x408345[_0xd23f('0x59')]?{'type':_0xd23f('0x43'),'content':_0xd23f('0x18')}:void 0x0),_0xbcffc0[_0xd23f('0x6')][_0xd23f('0x6b')](_0x27a055=>{const {data:_0x2b4545}=_0x27a055;if(_0x2b4545){if(_0xd23f('0x50')==_0x2b4545['commandName']){const _0x45779d=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x38')];return _0x3c33bd(_0xd23f('0x46')===_0x45779d?_0x219b76(_0x451128,'FORMAT_SIDE_IMAGE'):_0x18b236[_0x45779d]||_0x45779d);}if(_0xd23f('0x4d')==_0x2b4545[_0xd23f('0x6e')]){const _0xb4d707=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x5c')];return _0xb4d707?{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,_0xd23f('0x1c'),'\x22'+_0xb4d707+'\x22')}:{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Remove\x20image\x20text\x20alternative*')};}if(_0xd23f('0x2f')==_0x2b4545['commandName']){const _0x33d7e6=_0x2b4545[_0xd23f('0x25')][0x0][_0xd23f('0x39')];return _0x33d7e6?{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Set\x20image\x20width:*\x20%0',_0x33d7e6)}:{'type':'format','content':_0x219b76(_0x451128,_0xd23f('0x6f'))};}}function _0x3c33bd(_0x40ee65){return{'type':_0xd23f('0x43'),'content':_0x219b76(_0x451128,'*Format:*\x20%0',_0x40ee65)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b1f=['formatBlock','selection','handleSuggestionDescription','TrackChangesEditing','commandName','source','getContainedElement','_suggestionFactory','*Format:*\x20replace\x20image\x20URL','replaceImageSource','Users','author','document','discard','locale','plugins','handleReplaceImageCommand','model','markBlockFormat','getSuggestionCallback','src','accept','enableCommand','editor','getSelectedElement','registerCustomCallback','get','_descriptionFactory','ImageEditing','subType','registerDescriptionCallback'];(function(_0x3641f8,_0x3b1fba){const _0x2eef1b=function(_0x33d133){while(--_0x33d133){_0x3641f8['push'](_0x3641f8['shift']());}};_0x2eef1b(++_0x3b1fba);}(_0x3b1f,0x148));const _0x2eef=function(_0x3641f8,_0x3b1fba){_0x3641f8=_0x3641f8-0x0;let _0x2eef1b=_0x3b1f[_0x3641f8];return _0x2eef1b;};import{Plugin as _0x4ff62b}from'ckeditor5/src/core';import{getTranslation as _0x566f83}from'../utils/common-translations';export default class Y extends _0x4ff62b{['afterInit'](){if(!this[_0x2eef('0x5')][_0x2eef('0x1c')]['has'](_0x2eef('0xa')))return;const _0x36452b=this[_0x2eef('0x5')][_0x2eef('0x1c')][_0x2eef('0x8')](_0x2eef('0x10'));_0x36452b[_0x2eef('0x4')]('replaceImageSource',(_0x543cb9,_0x370188)=>this[_0x2eef('0x1d')](_0x543cb9,_0x370188)),_0x36452b[_0x2eef('0x14')]['registerCustomCallback']('formatBlock','replaceImageSource',_0x2eef('0x3'),_0x36452b[_0x2eef('0x14')]['getSuggestionCallback'](_0x2eef('0xd'),null,_0x2eef('0x1a'))),_0x36452b[_0x2eef('0x14')][_0x2eef('0x7')](_0x2eef('0xd'),'replaceImageSource','discard',_0x36452b[_0x2eef('0x14')][_0x2eef('0x1')](_0x2eef('0xd'),null,_0x2eef('0x3'))),_0x36452b[_0x2eef('0x9')][_0x2eef('0xc')](_0x56a162=>this[_0x2eef('0xf')](_0x56a162));}['handleReplaceImageCommand'](_0x57cf75,_0x4a597d){const _0x5205a8=this['editor']['plugins'][_0x2eef('0x8')](_0x2eef('0x10')),_0x366c52=this[_0x2eef('0x5')][_0x2eef('0x1e')][_0x2eef('0x19')][_0x2eef('0xe')][_0x2eef('0x6')]();this[_0x2eef('0x5')]['model']['change'](()=>{let _0x35c651=_0x366c52['getAttribute'](_0x2eef('0x2'));const _0x15eddc=this[_0x2eef('0x5')][_0x2eef('0x1c')][_0x2eef('0x8')](_0x2eef('0x17'))['me'];for(const _0x1959b7 of _0x5205a8['getSuggestions']({'skipNotAttached':!0x0})){const _0x424b53=_0x1959b7[_0x2eef('0x13')]();if(_0x2eef('0x16')===_0x1959b7[_0x2eef('0xb')]&&_0x424b53===_0x366c52){_0x1959b7[_0x2eef('0x18')]!==_0x15eddc&&_0x1959b7['discard'](),_0x35c651=_0x1959b7['data']['commandParams'][0x0][_0x2eef('0x12')];break;}}_0x57cf75(_0x4a597d),_0x5205a8[_0x2eef('0x0')](_0x366c52,{'commandName':_0x2eef('0x16'),'commandParams':[{'source':_0x35c651}]},[],_0x2eef('0x16'));});}[_0x2eef('0xf')](_0x46c95d){const {data:_0x5037ff}=_0x46c95d;if(_0x5037ff&&_0x2eef('0x16')===_0x5037ff[_0x2eef('0x11')]){const _0x35a60a=_0x2eef('0x15');return{'type':'format','content':_0x566f83(this[_0x2eef('0x5')][_0x2eef('0x1b')],_0x35a60a)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a1b=['listenTo','lowest','TrackChangesEditing','dataInsert','trackChanges','_trackChangesExecuted','value','importWord','execute','editor','_trackChangesValueDuringImport','afterInit','_handleImportedData','bind','collaboration_features','plugins','get','forEach','commands','enableCommand'];(function(_0x3d346b,_0x1a1bdd){const _0x3dbd0b=function(_0xd7c906){while(--_0xd7c906){_0x3d346b['push'](_0x3d346b['shift']());}};_0x3dbd0b(++_0x1a1bdd);}(_0x1a1b,0x165));const _0x3dbd=function(_0x3d346b,_0x1a1bdd){_0x3d346b=_0x3d346b-0x0;let _0x3dbd0b=_0x1a1b[_0x3d346b];return _0x3dbd0b;};import{Plugin as _0x1a7a6c}from'ckeditor5/src/core';export default class Z extends _0x1a7a6c{constructor(_0x23389e){super(_0x23389e),this['_trackChangesValueDuringImport']=!0x1,this[_0x3dbd('0x8')]=!0x1;}[_0x3dbd('0xe')](){const _0x1fd675=this[_0x3dbd('0xc')],_0x4ffa98=_0x1fd675[_0x3dbd('0x1')]['get'](_0x3dbd('0xa')),_0x3de1b8=_0x1fd675[_0x3dbd('0x1')][_0x3dbd('0x13')](_0x3dbd('0x7'));_0x4ffa98&&(_0x4ffa98['on'](_0x3dbd('0xb'),(_0x73a954,[,_0x3dc439])=>{this[_0x3dbd('0xd')]=_0x3de1b8[_0x3dbd('0x9')],_0x3dc439[_0x3dbd('0x11')]['track_changes']=!this[_0x3dbd('0xd')];},{'priority':'high'}),this[_0x3dbd('0x3')](_0x4ffa98,_0x3dbd('0x6'),this[_0x3dbd('0xf')][_0x3dbd('0x10')](this)),this[_0x3dbd('0x3')](_0x4ffa98,_0x3dbd('0x6'),()=>{this[_0x3dbd('0x8')]&&(_0x3de1b8[_0x3dbd('0xb')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x3dbd('0x4')}),_0x1fd675[_0x3dbd('0x12')][_0x3dbd('0x13')]('TrackChangesEditing')[_0x3dbd('0x2')](_0x3dbd('0xa')));}[_0x3dbd('0xf')](_0x26228b,_0x2c2aac){const {suggestions:_0x5ea62e}=_0x2c2aac,_0x5e5e64=this[_0x3dbd('0xc')][_0x3dbd('0x1')]['get']('trackChanges'),_0x1a77f1=_0x5e5e64[_0x3dbd('0x9')];this[_0x3dbd('0xd')]!==_0x1a77f1&&(_0x5e5e64[_0x3dbd('0xb')](),this[_0x3dbd('0x8')]=!0x0),_0x5ea62e&&_0x5ea62e[_0x3dbd('0x0')](({id:_0x1aaa3e,type:_0x4933e8,author:_0x3c3bd7,created_at:_0x3b3fe6})=>{const _0x97d69b={'id':_0x1aaa3e,'type':_0x4933e8,'authorId':this[_0x3dbd('0xc')][_0x3dbd('0x12')][_0x3dbd('0x13')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c3bd7,'createdAt':_0x3b3fe6?new Date(_0x3b3fe6):new Date(),'source':_0x3dbd('0xa')}}};this[_0x3dbd('0xc')][_0x3dbd('0x12')][_0x3dbd('0x13')](_0x3dbd('0x5'))['_setSuggestionData'](_0x97d69b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34e6=['checkAttribute','indent','getSelectedBlocks','IndentEditing','has','locale','filter','selection','editor','afterInit','document','_descriptionFactory','enableCommand','markBlockFormat','format','blockIndent','model','change','*Outdent:*\x20%0','getItemLabel','plugins','*Indent:*\x20%0','get','commandName','outdentBlock','TrackChangesEditing','getItems','IndentBlock','registerDescriptionCallback','indentBlock','outdent'];(function(_0x2d2f80,_0x34e668){const _0x2e331a=function(_0x3757ed){while(--_0x3757ed){_0x2d2f80['push'](_0x2d2f80['shift']());}};_0x2e331a(++_0x34e668);}(_0x34e6,0x121));const _0x2e33=function(_0x2d2f80,_0x34e668){_0x2d2f80=_0x2d2f80-0x0;let _0x2e331a=_0x34e6[_0x2d2f80];return _0x2e331a;};import{Plugin as _0x290bd9}from'ckeditor5/src/core';import{getTranslation as _0x5a6ed0}from'../utils/common-translations';export default class tt extends _0x290bd9{[_0x2e33('0x1e')](){const _0x155287=this[_0x2e33('0x1d')],_0x341cd4=_0x155287[_0x2e33('0xa')][_0x2e33('0xc')](_0x2e33('0xf'));_0x155287[_0x2e33('0xa')][_0x2e33('0x19')](_0x2e33('0x18'))&&(_0x341cd4[_0x2e33('0x2')](_0x2e33('0x16')),_0x341cd4[_0x2e33('0x2')](_0x2e33('0x14')));const _0x557259=_0x155287[_0x2e33('0x1a')];if(_0x155287[_0x2e33('0xa')][_0x2e33('0x19')](_0x2e33('0x11'))){for(const _0x4f34ce of['indentBlock',_0x2e33('0xe')])_0x341cd4[_0x2e33('0x2')](_0x4f34ce,()=>{const _0x42c314=Array['from'](this[_0x2e33('0x1d')][_0x2e33('0x6')][_0x2e33('0x0')][_0x2e33('0x1c')][_0x2e33('0x17')]())[_0x2e33('0x1b')](_0x57b4a9=>this[_0x2e33('0x1d')][_0x2e33('0x6')]['schema'][_0x2e33('0x15')](_0x57b4a9,_0x2e33('0x5')));_0x155287['model'][_0x2e33('0x7')](()=>{for(const _0x987e7b of _0x42c314)_0x341cd4[_0x2e33('0x3')](_0x987e7b,{'commandName':_0x4f34ce,'commandParams':[{'value':''}],'formatGroupId':_0x2e33('0x13')});});});_0x341cd4[_0x2e33('0x1')][_0x2e33('0x12')](_0x4c8134=>{const {data:_0x2be059}=_0x4c8134;if(!_0x2be059)return;if(_0x2e33('0x13')!=_0x2be059[_0x2e33('0xd')]&&'outdentBlock'!=_0x2be059['commandName'])return;const _0x3bfbe9=_0x4c8134[_0x2e33('0x10')]()[0x0],_0x4cb692=_0x341cd4[_0x2e33('0x1')][_0x2e33('0x9')](_0x3bfbe9);return _0x2e33('0x13')==_0x2be059['commandName']?{'type':_0x2e33('0x4'),'content':_0x5a6ed0(_0x557259,_0x2e33('0xb'),_0x4cb692)}:_0x2e33('0xe')==_0x2be059[_0x2e33('0xd')]?{'type':_0x2e33('0x4'),'content':_0x5a6ed0(_0x557259,_0x2e33('0x8'),_0x4cb692)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2dca=['TrackChangesEditing','requires','plugins','editor','input','init'];(function(_0x12c113,_0x2dca97){var _0x168e06=function(_0x239172){while(--_0x239172){_0x12c113['push'](_0x12c113['shift']());}};_0x168e06(++_0x2dca97);}(_0x2dca,0xb2));var _0x168e=function(_0x12c113,_0x2dca97){_0x12c113=_0x12c113-0x0;var _0x168e06=_0x2dca[_0x12c113];return _0x168e06;};import{Plugin as _0x13e81e}from'ckeditor5/src/core';import{Input as _0x3d262a}from'ckeditor5/src/typing';export default class it extends _0x13e81e{static get[_0x168e('0x3')](){return[_0x3d262a];}[_0x168e('0x1')](){this[_0x168e('0x5')][_0x168e('0x4')]['get'](_0x168e('0x2'))['enableCommand'](_0x168e('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x342d=['getAttribute','hasAttribute','from','*Set\x20link:*\x20%0','format','_descriptionFactory','registerDescriptionCallback','markInlineFormat','change','model','has','document','editor','unlink','isCollapsed','getFirstPosition','plugins','LinkEditing','commandName','linkHref','*Remove\x20link*','link','TrackChangesEditing','getRanges','locale','getFirstRange','enableCommand','afterInit','selection','commandParams','get'];(function(_0x52d26a,_0x342d9a){const _0x2f1efe=function(_0xa1f9ed){while(--_0xa1f9ed){_0x52d26a['push'](_0x52d26a['shift']());}};_0x2f1efe(++_0x342d9a);}(_0x342d,0x1c0));const _0x2f1e=function(_0x52d26a,_0x342d9a){_0x52d26a=_0x52d26a-0x0;let _0x2f1efe=_0x342d[_0x52d26a];return _0x2f1efe;};import{Plugin as _0x5e5691}from'ckeditor5/src/core';import{findAttributeRange as _0x2c74ac}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x4b8a30}from'./utils';import{getTranslation as _0x1e1de7}from'../utils/common-translations';export default class et extends _0x5e5691{[_0x2f1e('0xd')](){const _0x26eb02=this['editor'];if(!_0x26eb02['plugins'][_0x2f1e('0x1b')](_0x2f1e('0x3')))return;const _0x30b704=_0x26eb02[_0x2f1e('0x2')][_0x2f1e('0x10')](_0x2f1e('0x8'));_0x30b704[_0x2f1e('0xc')](_0x2f1e('0x7'),(_0x49e27b,_0x35c5e9)=>{const _0x2f65a6=_0x26eb02[_0x2f1e('0x1a')][_0x2f1e('0x1c')][_0x2f1e('0xe')];let _0x164cb1=[];if(_0x2f65a6['isCollapsed']){if(!_0x2f65a6[_0x2f1e('0x12')]('linkHref'))return void _0x49e27b(_0x35c5e9);{const _0xa182c0=_0x2c74ac(_0x2f65a6[_0x2f1e('0x1')](),_0x2f1e('0x5'),_0x2f65a6[_0x2f1e('0x11')]('linkHref'),_0x26eb02['model']);_0x164cb1=[_0xa182c0];}}else _0x164cb1=Array[_0x2f1e('0x13')](_0x2f65a6[_0x2f1e('0x9')]());_0x26eb02[_0x2f1e('0x1a')][_0x2f1e('0x19')](()=>{for(const _0x5f2cdb of _0x164cb1)_0x30b704[_0x2f1e('0x18')](_0x5f2cdb,{'commandName':_0x2f1e('0x7'),'commandParams':[_0x35c5e9]});});}),_0x30b704[_0x2f1e('0xc')](_0x2f1e('0x1e'),()=>{const _0x324885=this[_0x2f1e('0x1d')][_0x2f1e('0x1a')],_0xe10caa=_0x324885[_0x2f1e('0x1c')][_0x2f1e('0xe')];_0x324885[_0x2f1e('0x19')](()=>{let _0x5516f1=[];if(_0xe10caa[_0x2f1e('0x0')])_0x5516f1=[_0x2c74ac(_0xe10caa[_0x2f1e('0x1')](),'linkHref',_0xe10caa[_0x2f1e('0x11')](_0x2f1e('0x5')),_0x26eb02[_0x2f1e('0x1a')])];else _0x5516f1=_0x4b8a30(_0x2f1e('0x5'),_0xe10caa[_0x2f1e('0xb')](),_0x26eb02[_0x2f1e('0x1a')]);for(const _0x462c24 of _0x5516f1)_0x30b704[_0x2f1e('0x18')](_0x462c24,{'commandName':'unlink','commandParams':[]});});}),_0x30b704[_0x2f1e('0x16')][_0x2f1e('0x17')](_0x4a51e3=>{const {data:_0x1da5c0}=_0x4a51e3,_0x35e80f=_0x26eb02[_0x2f1e('0xa')];if(_0x1da5c0){if(_0x2f1e('0x7')==_0x1da5c0['commandName']){const _0x4cfad5=_0x1da5c0[_0x2f1e('0xf')][0x0];return{'type':_0x2f1e('0x15'),'content':_0x1e1de7(_0x35e80f,_0x2f1e('0x14'),'\x22'+_0x4cfad5+'\x22')};}return'unlink'==_0x1da5c0[_0x2f1e('0x4')]?{'type':'format','content':_0x1e1de7(_0x35e80f,_0x2f1e('0x6'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x125d=['plugins','selection','schema','commandParams','afterInit','bulletedList','has','_selectedElements','*Change\x20to:*\x20%0','todoList','before','forceValue','outdentList','_descriptionFactory','listItem','listType','nextSibling','registerElementLabel','get','getSelectedBlocks','paragraph','ListEditing','registerDescriptionCallback','name','checkTodoList','findIndex','*Indent:*\x20%0','change','model','document','parent','commands','ELEMENT_TODO_LIST','numberedList','blockName','TrackChangesEditing','value','TodoListEditing','add','*Outdent:*\x20%0','length','List','filter','bulleted','slice','markBlockFormat','enableCommand','from','todo','ELEMENT_NUMBERED_LIST','listIndent','ELEMENT_BULLETED_LIST','commandName','execute','createPositionAt','locale','getAttribute','isObject','*Uncheck\x20item*','format','indentList','previousSibling','end','element','ELEMENT_LIST_ITEM'];(function(_0x33ad45,_0x125d13){const _0x4fd845=function(_0xfba9d0){while(--_0xfba9d0){_0x33ad45['push'](_0x33ad45['shift']());}};_0x4fd845(++_0x125d13);}(_0x125d,0x13d));const _0x4fd8=function(_0x33ad45,_0x125d13){_0x33ad45=_0x33ad45-0x0;let _0x4fd845=_0x125d[_0x33ad45];return _0x4fd845;};import{Plugin as _0x5006a3}from'ckeditor5/src/core';import{getTranslation as _0x41e5f6}from'../utils/common-translations';export default class nt extends _0x5006a3{[_0x4fd8('0xc')](){const _0x6ec487=this['editor'],_0x570780=_0x6ec487[_0x4fd8('0x3f')];if(!_0x6ec487['plugins'][_0x4fd8('0xe')](_0x4fd8('0x1d')))return;const _0x4974ee=_0x6ec487[_0x4fd8('0x8')]['get'](_0x4fd8('0x2b')),_0xfabfbb=_0x6ec487['plugins'][_0x4fd8('0xe')](_0x4fd8('0x2d'));function _0x421712(_0x12dbd8){return()=>{const _0x35af00=_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0x25')][_0x4fd8('0x9')],_0x183aae=_0x6ec487[_0x4fd8('0x27')][_0x4fd8('0x1a')](_0x12dbd8);if(_0x183aae['value'])return void _0x6ec487[_0x4fd8('0x3d')](_0x4fd8('0x1c'),{});const _0x574b34=_0x12dbd8[_0x4fd8('0x34')](0x0,-0x4),_0x5b6d74=function(_0xa7cdcb,_0x90eb98,_0x36a8ea){let _0x17fbd4=Array[_0x4fd8('0x37')](_0xa7cdcb)[_0x4fd8('0x32')](_0x5554ce=>function(_0x4ea9b9,_0x2a1cd0){return _0x2a1cd0['checkChild'](_0x4ea9b9[_0x4fd8('0x26')],_0x4fd8('0x16'))&&!_0x2a1cd0[_0x4fd8('0x0')](_0x4ea9b9);}(_0x5554ce,_0x36a8ea));_0x17fbd4=_0x17fbd4[_0x4fd8('0x32')](_0x1ccdce=>!_0x1ccdce['is'](_0x4fd8('0x6'),_0x4fd8('0x16'))||_0x1ccdce[_0x4fd8('0x40')](_0x4fd8('0x17'))!=_0x90eb98);const _0x328643=new Set();for(const _0x4e7e3c of _0x17fbd4)_0x4e7e3c['is'](_0x4fd8('0x6'),_0x4fd8('0x16'))?_0x328643[_0x4fd8('0x2e')](ne(_0x4e7e3c)):_0x328643[_0x4fd8('0x2e')](_0x4e7e3c);return Array[_0x4fd8('0x37')](_0x328643);}(_0x35af00[_0x4fd8('0x1b')](),_0x574b34,_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0xa')]);_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0x23')](()=>{for(const _0x15d444 of _0x5b6d74)_0x4974ee[_0x4fd8('0x35')](_0x15d444,{'commandName':_0x12dbd8,'commandParams':[{'forceValue':!_0x183aae[_0x4fd8('0x2c')]}],'formatGroupId':_0x4fd8('0x2a')},oe(_0x15d444));});};}function _0x41793e(_0x488d83){return()=>{const _0xc8ad2d=function(_0x4f1111){let _0x7401a3=Array[_0x4fd8('0x37')](_0x4f1111);const _0x3a5c62=_0x7401a3[_0x4fd8('0x21')](_0x3a51df=>_0x4fd8('0x16')!=_0x3a51df['name']);return _0x3a5c62>-0x1&&(_0x7401a3=_0x7401a3[_0x4fd8('0x34')](0x0,_0x3a5c62)),_0x7401a3;}(_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0x25')][_0x4fd8('0x9')][_0x4fd8('0x1b')]()),_0x2ade5e=_0x6ec487[_0x4fd8('0x24')]['createRange'](_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0x3e')](_0xc8ad2d[0x0],_0x4fd8('0x12')),_0x6ec487[_0x4fd8('0x24')][_0x4fd8('0x3e')](_0xc8ad2d[_0xc8ad2d[_0x4fd8('0x30')]-0x1],_0x4fd8('0x5')));_0x6ec487['model']['change'](()=>{_0x4974ee[_0x4fd8('0x35')](_0x2ade5e,{'commandName':_0x488d83,'commandParams':[],'formatGroupId':_0x4fd8('0x3a')},function(_0x223bfa){const _0x314016=new Set();for(const _0x195885 of _0x223bfa){let _0x4e7487=_0x195885[_0x4fd8('0x18')];for(;_0x4e7487&&_0x4e7487[_0x4fd8('0x40')](_0x4fd8('0x3a'))>_0x195885['getAttribute'](_0x4fd8('0x3a'));)_0x314016[_0x4fd8('0x2e')](_0x4e7487),_0x4e7487=_0x4e7487[_0x4fd8('0x18')];}return Array[_0x4fd8('0x37')](_0x314016);}(_0xc8ad2d));});};}_0x4974ee['enableCommand'](_0x4fd8('0x29'),_0x421712(_0x4fd8('0x29'))),_0x4974ee[_0x4fd8('0x36')]('bulletedList',_0x421712(_0x4fd8('0xd'))),_0xfabfbb&&_0x4974ee[_0x4fd8('0x36')](_0x4fd8('0x11'),_0x421712('todoList')),_0x4974ee['enableCommand'](_0x4fd8('0x3'),_0x41793e(_0x4fd8('0x3'))),_0x4974ee[_0x4fd8('0x36')](_0x4fd8('0x14'),_0x41793e(_0x4fd8('0x14'))),_0xfabfbb&&_0x4974ee[_0x4fd8('0x36')](_0x4fd8('0x20'),()=>{const _0x2c28a6=_0x6ec487['commands'][_0x4fd8('0x1a')]('checkTodoList'),_0x536915=Array[_0x4fd8('0x37')](_0x2c28a6[_0x4fd8('0xf')]);_0x536915[_0x4fd8('0x32')](_0x2c9204=>_0x2c9204[_0x4fd8('0x40')]('todoListChecked')!=_0x2c28a6[_0x4fd8('0x2c')]),_0x6ec487[_0x4fd8('0x24')]['change'](()=>{for(const _0x560572 of _0x536915)_0x4974ee[_0x4fd8('0x35')](_0x560572,{'commandName':_0x4fd8('0x20'),'commandParams':[{'forceValue':!_0x2c28a6[_0x4fd8('0x2c')]}]});});}),_0x4974ee[_0x4fd8('0x15')][_0x4fd8('0x19')](_0x4fd8('0x16'),_0x354fcf=>_0x41e5f6(_0x570780,_0x4fd8('0x7'),_0x354fcf)),_0x4974ee[_0x4fd8('0x15')][_0x4fd8('0x1e')](_0x17eb2a=>{const {data:_0x3a6c72}=_0x17eb2a;if(_0x3a6c72){if(_0x4fd8('0x29')==_0x3a6c72['commandName']||_0x4fd8('0xd')==_0x3a6c72[_0x4fd8('0x3c')]||_0x4fd8('0x11')==_0x3a6c72[_0x4fd8('0x3c')])switch(_0x3a6c72[_0x4fd8('0x3c')]['replace'](_0x4fd8('0x31'),'')){case _0x4fd8('0x33'):return _0x59f861(_0x41e5f6(_0x570780,_0x4fd8('0x3b')));case'numbered':return _0x59f861(_0x41e5f6(_0x570780,_0x4fd8('0x39')));case _0x4fd8('0x38'):return _0x59f861(_0x41e5f6(_0x570780,_0x4fd8('0x28')));}if(_0x4fd8('0x3')==_0x3a6c72[_0x4fd8('0x3c')])return{'type':_0x4fd8('0x2'),'content':_0x41e5f6(_0x570780,_0x4fd8('0x22'),_0x41e5f6(_0x570780,_0x4fd8('0x7')))};if(_0x4fd8('0x14')==_0x3a6c72[_0x4fd8('0x3c')])return{'type':_0x4fd8('0x2'),'content':_0x41e5f6(_0x570780,_0x4fd8('0x2f'),_0x41e5f6(_0x570780,_0x4fd8('0x7')))};if('checkTodoList'==_0x3a6c72[_0x4fd8('0x3c')])return _0x3a6c72[_0x4fd8('0xb')][0x0][_0x4fd8('0x13')]?{'type':_0x4fd8('0x2'),'content':_0x41e5f6(_0x570780,'*Check\x20item*')}:{'type':'format','content':_0x41e5f6(_0x570780,_0x4fd8('0x1'))};}function _0x59f861(_0x348aec){return{'type':_0x4fd8('0x2'),'content':_0x41e5f6(_0x570780,_0x4fd8('0x10'),_0x348aec)};}});}}function ne(_0x3b9842){const _0x5d2577=_0x3b9842[_0x4fd8('0x40')](_0x4fd8('0x3a'));if(0x0==_0x5d2577)return _0x3b9842;let _0x4d8425=_0x3b9842;for(;_0x3b9842['previousSibling']&&_0x3b9842[_0x4fd8('0x4')]['is'](_0x4fd8('0x6'),_0x4fd8('0x16'));){const _0xf9ee07=_0x3b9842['previousSibling']['getAttribute']('listIndent');if(_0xf9ee07==_0x5d2577)_0x4d8425=_0x3b9842[_0x4fd8('0x4')];else{if(_0xf9ee07<_0x5d2577)break;}_0x3b9842=_0x3b9842[_0x4fd8('0x4')];}return _0x4d8425;}function oe(_0x43792b){const _0x6c148=[];if(_0x43792b['is'](_0x4fd8('0x6'),_0x4fd8('0x16'))&&_0x43792b[_0x4fd8('0x40')]('listIndent')>0x0){let _0x539ef6=_0x43792b['nextSibling'];for(;_0x539ef6&&_0x4fd8('0x16')==_0x539ef6[_0x4fd8('0x1f')]&&_0x539ef6[_0x4fd8('0x40')](_0x4fd8('0x3a'))==_0x43792b[_0x4fd8('0x40')]('listIndent');)_0x6c148['push'](_0x539ef6),_0x539ef6=_0x539ef6['nextSibling'];}return _0x6c148;}
|