@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.1
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 _0x5090=['toLowerCase','fontFamily','format','label','plugins','selection','*Set\x20font\x20family:*\x20%0','fontColor','fontColor.colors','TrackChangesEditing','document','get','fontBackgroundColor','*Set\x20font\x20size:*\x20%0','FontSize','fontSize','*Reset\x20font\x20background\x20color*','_descriptionFactory','markInlineFormat','_enableCommand','fontBackgroundColor.colors','from','value','enableCommand','change','find','commandParams','editor','isCollapsed','fontSize.options','model','trim','commandName','config','title','getRanges','*Set\x20font\x20background\x20color:*\x20%0','FontSizeEditing'];(function(_0x2ce5f2,_0x509010){const _0x99033f=function(_0x5c56a2){while(--_0x5c56a2){_0x2ce5f2['push'](_0x2ce5f2['shift']());}};_0x99033f(++_0x509010);}(_0x5090,0x120));const _0x9903=function(_0x2ce5f2,_0x509010){_0x2ce5f2=_0x2ce5f2-0x0;let _0x99033f=_0x5090[_0x2ce5f2];return _0x99033f;};import{Plugin as _0x1ed3dd}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5bfe5a}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x53be89}from'./utils';import{getTranslation as _0x353eca}from'../utils/common-translations';const Zt=[{'pluginName':_0x9903('0xf'),'commandName':_0x9903('0x1f')},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':_0x9903('0x17')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x9903('0x1c')}];export default class H extends _0x1ed3dd{['afterInit'](){const _0x5705b1=this['editor']['locale'];for(const {pluginName:_0x3483b4,commandName:_0xdd52fe}of Zt)this[_0x9903('0x5')][_0x9903('0x14')]['has'](_0x3483b4)&&this['_enableCommand'](_0xdd52fe);this[_0x9903('0x5')][_0x9903('0x14')]['get'](_0x9903('0x19'))[_0x9903('0x21')]['registerDescriptionCallback'](_0x3bad7f=>{const _0x215cca=_0x5705b1['t'],{data:_0x2141e3}=_0x3bad7f;if(null!=_0x2141e3){if(_0x9903('0x1f')==_0x2141e3[_0x9903('0xa')]){const _0x206d75=_0x2141e3[_0x9903('0x4')][0x0][_0x9903('0x0')];if(_0x206d75){const _0x5c664d=_0x215cca(this[_0x9903('0x5')][_0x9903('0x14')][_0x9903('0x1b')](_0x9903('0x1e'))['normalizeSizeOptions'](this[_0x9903('0x5')][_0x9903('0xb')][_0x9903('0x1b')](_0x9903('0x7')))[_0x9903('0x3')](_0x38f547=>_0x38f547[_0x9903('0x8')]==_0x206d75)[_0x9903('0xc')])['toLowerCase']();return{'type':_0x9903('0x12'),'content':_0x353eca(_0x5705b1,_0x9903('0x1d'),_0x5c664d)};}return{'type':'format','content':_0x353eca(_0x5705b1,'*Reset\x20font\x20size*')};}if(_0x9903('0x11')==_0x2141e3['commandName']){const _0x1c6e61=_0x2141e3['commandParams'][0x0][_0x9903('0x0')];return _0x1c6e61?{'type':_0x9903('0x12'),'content':_0x353eca(_0x5705b1,_0x9903('0x16'),_0x1c6e61)}:{'type':_0x9903('0x12'),'content':_0x353eca(_0x5705b1,'*Reset\x20font\x20family*')};}if(_0x9903('0x17')==_0x2141e3[_0x9903('0xa')]){const _0x1d5ba2=_0x2141e3['commandParams'][0x0]['value'];if(_0x1d5ba2){const _0x61cc85=_0x5bfe5a(this['editor'][_0x9903('0xb')][_0x9903('0x1b')](_0x9903('0x18')))[_0x9903('0x3')](_0x4b44bb=>_0x4b44bb[_0x9903('0x8')]==_0x1d5ba2);let _0x5d2950=_0x1d5ba2,_0x1ada67='';return _0x61cc85&&(_0x5d2950=_0x61cc85[_0x9903('0x13')],_0x1ada67=_0x215cca(_0x5d2950)[_0x9903('0x10')]()),{'type':_0x9903('0x12'),'content':_0x353eca(_0x5705b1,'*Set\x20font\x20color:*\x20%0',_0x1ada67)[_0x9903('0x9')](),'color':{'value':_0x1d5ba2,'title':_0x1ada67||_0x5d2950}};}return{'type':_0x9903('0x12'),'content':_0x353eca(_0x5705b1,'*Reset\x20font\x20color*')};}if(_0x9903('0x1c')==_0x2141e3[_0x9903('0xa')]){const _0x279a09=_0x2141e3[_0x9903('0x4')][0x0][_0x9903('0x0')];if(_0x279a09){const _0x78ba60=_0x5bfe5a(this['editor'][_0x9903('0xb')][_0x9903('0x1b')](_0x9903('0x24')))[_0x9903('0x3')](_0xab0205=>_0xab0205[_0x9903('0x8')]==_0x279a09);let _0x4c3243=_0x279a09,_0x46924b='';return _0x78ba60&&(_0x4c3243=_0x78ba60['label'],_0x46924b=_0x215cca(_0x4c3243)[_0x9903('0x10')]()),{'type':'format','content':_0x353eca(_0x5705b1,_0x9903('0xe'),_0x46924b)[_0x9903('0x9')](),'color':{'value':_0x279a09,'title':_0x46924b||_0x4c3243}};}return{'type':'format','content':_0x353eca(_0x5705b1,_0x9903('0x20'))};}}});}[_0x9903('0x23')](_0x1ea23e){const _0x23334d=this['editor'];_0x23334d['plugins']['get'](_0x9903('0x19'))[_0x9903('0x1')](_0x1ea23e,(_0x5ccaa3,_0x53678e={})=>{const _0x111142=_0x23334d[_0x9903('0x8')][_0x9903('0x1a')][_0x9903('0x15')],_0x175bfb=_0x53678e[_0x9903('0x0')];_0x111142[_0x9903('0x6')]?_0x5ccaa3(_0x53678e):_0x23334d['model'][_0x9903('0x2')](()=>{const _0x277183=Array[_0x9903('0x25')](_0x111142[_0x9903('0xd')]());for(const _0x2ff050 of _0x277183){const _0x57c1f0=_0x175bfb?[_0x2ff050]:_0x53be89(_0x1ea23e,_0x2ff050,_0x23334d[_0x9903('0x8')]);for(const _0x46d685 of _0x57c1f0)_0x23334d[_0x9903('0x14')]['get'](_0x9903('0x19'))[_0x9903('0x22')](_0x46d685,{'commandName':_0x1ea23e,'commandParams':[{'value':_0x175bfb}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43d6=['keys','fontColor','slice','fontSize','commands','afterInit','title','fontSize.options','forward','createRange','copyFormat','commandParams','format','markInlineFormat','label','getAttributes','join','isFormatting','fontBackgroundColor','config','fontColor.colors','backward','commandName','enableCommand','isCollapsed','isBlock','normalizeSizeOptions','toLowerCase','getRanges','registerDescriptionCallback','getAttributeProperties','push','length','plugins','editor','get','word','pasteFormat','createSelection','from','split','model','TrackChangesEditing','find','entries','schema','locale'];(function(_0x46daa6,_0x43d677){const _0x35aaa5=function(_0x316376){while(--_0x316376){_0x46daa6['push'](_0x46daa6['shift']());}};_0x35aaa5(++_0x43d677);}(_0x43d6,0x76));const _0x35aa=function(_0x46daa6,_0x43d677){_0x46daa6=_0x46daa6-0x0;let _0x35aaa5=_0x43d6[_0x46daa6];return _0x35aaa5;};import{Plugin as _0x46ed23}from'ckeditor5/src/core';import{normalizeColorOptions as _0xb90d33}from'ckeditor5/src/ui';import{first as _0x4c072f}from'ckeditor5/src/utils';import{getTranslation as _0x4a33c7}from'../utils/common-translations';export default class W extends _0x46ed23{[_0x35aa('0x1c')](){const _0x251cbd=this[_0x35aa('0xa')],_0xb2dc5e=_0x251cbd[_0x35aa('0x11')],_0x463f3e=_0xb2dc5e['document']['selection'],_0x55e930=_0x251cbd[_0x35aa('0x9')][_0x35aa('0xb')](_0x35aa('0x12')),_0x175de4=_0x251cbd[_0x35aa('0x16')],_0xa83fe7=_0x251cbd[_0x35aa('0x1b')][_0x35aa('0xb')](_0x35aa('0x21')),_0x409d8a=_0x251cbd[_0x35aa('0x1b')][_0x35aa('0xb')]('pasteFormat');_0xa83fe7&&_0x409d8a&&(_0x55e930['enableCommand'](_0x35aa('0xd'),(_0x4bf57a,_0x413f52={})=>{const _0x3460bc=_0x413f52;_0xb2dc5e['change'](()=>{const _0x13b71c=Array[_0x35aa('0xf')](_0x463f3e[_0x35aa('0x4')]()),_0x29f1f6=_0x463f3e[_0x35aa('0x0')]?[ro(_0xb2dc5e,_0x463f3e)]:_0x13b71c,_0x33e66e=!!_0x4c072f(function*(_0x2d4494,_0x303687){const _0x59ec00=_0x35aff5=>!!_0x4c072f(function*(_0xc1d0ee,_0x2275de){for(const [_0x25c06b]of _0xc1d0ee[_0x35aa('0x26')]()){const _0x20acf5=_0x2275de[_0x35aa('0x6')](_0x25c06b);_0x20acf5&&_0x20acf5[_0x35aa('0x28')]&&(yield _0x25c06b);}}(_0x35aff5,_0x303687));for(const _0x44dd1d of _0x2d4494[_0x35aa('0x4')]())for(const _0x1a5d68 of _0x44dd1d['getItems']())!_0x303687[_0x35aa('0x1')](_0x1a5d68)&&_0x59ec00(_0x1a5d68)&&(yield _0x1a5d68);for(const _0x582b0e of _0x2d4494['getSelectedBlocks']())_0x59ec00(_0x582b0e)&&(yield _0x582b0e);_0x59ec00(_0x2d4494)&&(yield _0x2d4494);}(_0x463f3e,_0xb2dc5e[_0x35aa('0x15')]));if(_0x33e66e||0x0!==Object[_0x35aa('0x17')](_0x3460bc)[_0x35aa('0x8')])for(const _0x2d58e3 of _0x29f1f6)_0x55e930[_0x35aa('0x24')](_0x2d58e3,{'commandName':_0x35aa('0xd'),'commandParams':[_0x3460bc]});});}),_0x55e930['_descriptionFactory'][_0x35aa('0x5')](_0x3c88c8=>{const {data:_0x12b13f}=_0x3c88c8;if(_0x12b13f&&_0x35aa('0xd')===_0x12b13f[_0x35aa('0x2d')]){const _0x27e765=[],_0x4495b4=_0x12b13f[_0x35aa('0x22')][0x0];for(const [_0x46d6b7,_0x3fc0c9]of Object[_0x35aa('0x14')](_0x4495b4))_0x27e765[_0x35aa('0x7')](no(_0x251cbd,_0x46d6b7,_0x3fc0c9));return _0x27e765[_0x35aa('0x8')]?{'type':_0x35aa('0x23'),'content':_0x4a33c7(_0x175de4,'*Set\x20format\x20to:*\x20%0',_0x27e765[_0x35aa('0x27')](',\x20'))}:{'type':_0x35aa('0x23'),'content':_0x4a33c7(_0x175de4,'*Remove\x20all\x20formatting*')};}}),_0x251cbd[_0x35aa('0x9')]['get']('TrackChangesEditing')[_0x35aa('0x2e')](_0x35aa('0x21')));}}function ro(_0x552695,_0x14b525){const _0x1754b0=_0x552695[_0x35aa('0xe')](_0x14b525);_0x552695['modifySelection'](_0x1754b0,{'unit':_0x35aa('0xc'),'direction':_0x35aa('0x2c')});const _0x2f91cc=_0x1754b0['getFirstPosition']();_0x552695['modifySelection'](_0x1754b0,{'unit':'word','direction':_0x35aa('0x1f')});const _0x42296a=_0x1754b0['getLastPosition']();return _0x552695[_0x35aa('0x20')](_0x2f91cc,_0x42296a);}function no(_0x21fb03,_0x25deed,_0x3083a3){const _0x57cc2c=_0x21fb03[_0x35aa('0x16')]['t'],_0x2e31aa=_0x25deed[_0x35aa('0x10')](/(?=[A-Z])/)['join']('\x20'),_0xd751d9=_0x57cc2c(_0x2e31aa['charAt'](0x0)['toUpperCase']()+_0x2e31aa[_0x35aa('0x19')](0x1))[_0x35aa('0x3')]();if('boolean'==typeof _0x3083a3)return _0xd751d9;if(_0x35aa('0x18')===_0x25deed||_0x35aa('0x29')===_0x25deed){const _0x4358ee=_0xb90d33(_0x21fb03['config'][_0x35aa('0xb')](_0x35aa('0x2b')))['find'](_0x4cf732=>_0x4cf732[_0x35aa('0x11')]==_0x3083a3);return _0xd751d9+'\x20('+(_0x4358ee?_0x57cc2c(_0x4358ee[_0x35aa('0x25')])[_0x35aa('0x3')]():_0x3083a3)+')';}if(_0x35aa('0x1a')===_0x25deed&&isNaN(parseFloat(_0x3083a3))){const _0x2f2303=_0x21fb03['plugins'][_0x35aa('0xb')]('FontSize')[_0x35aa('0x2')](_0x21fb03[_0x35aa('0x2a')][_0x35aa('0xb')](_0x35aa('0x1e')))[_0x35aa('0x13')](_0x360899=>_0x360899[_0x35aa('0x11')]==_0x3083a3);return _0xd751d9+'\x20('+(_0x2f2303?_0x57cc2c(_0x2f2303[_0x35aa('0x1d')])[_0x35aa('0x3')]():_0x3083a3)+')';}return _0xd751d9+'\x20('+_0x3083a3+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3314=['schema','afterInit','name','change','document','*Change\x20to:*\x20%0','formatBlock','_descriptionFactory','parent','format','plugins','title','match','get','registerDescriptionCallback','find','checkChild','heading','registerElementLabel','editor','value','model','heading.options','getSelectedBlocks','isObject','ELEMENT_HEADING','filter','from','ELEMENT_HEADING_CUSTOM'];(function(_0x3deff4,_0x331424){const _0xaf92aa=function(_0x166ce2){while(--_0x166ce2){_0x3deff4['push'](_0x3deff4['shift']());}};_0xaf92aa(++_0x331424);}(_0x3314,0x168));const _0xaf92=function(_0x3deff4,_0x331424){_0x3deff4=_0x3deff4-0x0;let _0xaf92aa=_0x3314[_0x3deff4];return _0xaf92aa;};import{Plugin as _0x1f1451}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5482f8}from'./utils';import{getTranslation as _0x534b1e}from'../utils/common-translations';export default class J extends _0x1f1451{[_0xaf92('0x12')](){const _0x19d06b=this['editor'],_0x2d5e00=_0x19d06b['locale'],_0xebe05b=_0x19d06b['config'][_0xaf92('0x1')](_0xaf92('0xa'));if(!_0x19d06b['plugins']['has']('HeadingEditing'))return;const _0x6852ec=_0x19d06b[_0xaf92('0x1b')][_0xaf92('0x1')]('TrackChangesEditing');_0x6852ec['enableCommand'](_0xaf92('0x5'),(_0x2f8a22,_0x4e0051)=>{const _0x4aa4e1=_0x4e0051[_0xaf92('0x8')],_0x102a3f=Array[_0xaf92('0xf')](this[_0xaf92('0x7')][_0xaf92('0x9')][_0xaf92('0x15')]['selection'][_0xaf92('0xb')]())[_0xaf92('0xe')](_0x28c673=>function(_0x5182b9,_0x4ed2fe,_0x2ffe9a){return _0x2ffe9a[_0xaf92('0x4')](_0x5182b9[_0xaf92('0x19')],_0x4ed2fe)&&!_0x2ffe9a[_0xaf92('0xc')](_0x5182b9)&&_0x5182b9[_0xaf92('0x13')]!=_0x4ed2fe;}(_0x28c673,_0x4aa4e1,this[_0xaf92('0x7')][_0xaf92('0x9')][_0xaf92('0x11')]));_0x19d06b[_0xaf92('0x9')][_0xaf92('0x14')](()=>{for(const _0x159ceb of _0x102a3f)_0x6852ec['markBlockFormat'](_0x159ceb,{'commandName':_0xaf92('0x5'),'commandParams':[_0x4e0051],'formatGroupId':'blockName'},_0x5482f8(_0x159ceb));});});for(const _0x5deca3 of _0xebe05b)'paragraph'!=_0x5deca3[_0xaf92('0x9')]&&_0x6852ec[_0xaf92('0x18')][_0xaf92('0x6')](_0x5deca3[_0xaf92('0x9')],_0xaf8149=>{const _0x213fd4=nn(_0x5deca3[_0xaf92('0x9')]);return null!==_0x213fd4?_0x5da724(_0xaf8149,_0x213fd4):_0x4b9a62(_0xaf8149,_0x5deca3['title']);});function _0x5da724(_0x306589,_0x9aff91){return _0x534b1e(_0x2d5e00,_0xaf92('0xd'),[_0x306589,_0x9aff91]);}function _0x4b9a62(_0xc1c4a8,_0xd461a3){return _0x534b1e(_0x2d5e00,_0xaf92('0x10'),[_0xc1c4a8,_0xd461a3]);}_0x6852ec['_descriptionFactory'][_0xaf92('0x2')](_0x3f1737=>{const {type:_0x3a0de3,data:_0x171edf}=_0x3f1737;if(_0xaf92('0x17')==_0x3a0de3&&_0x171edf&&'heading'==_0x171edf['commandName']){const _0x1afe7e=_0x171edf['commandParams'][0x0][_0xaf92('0x8')],_0x3e0071=nn(_0x1afe7e);if(null!==_0x3e0071)return{'type':_0xaf92('0x1a'),'content':_0x534b1e(_0x2d5e00,_0xaf92('0x16'),_0x5da724(0x1,_0x3e0071))};const _0x3e66b1=_0xebe05b[_0xaf92('0x3')](_0x20aaf7=>_0x20aaf7[_0xaf92('0x9')]===_0x1afe7e)[_0xaf92('0x1c')];return{'type':_0xaf92('0x1a'),'content':_0x534b1e(_0x2d5e00,_0xaf92('0x16'),_0x4b9a62(0x1,_0x3e66b1))};}});}}function nn(_0x101380){const _0x183fc4=_0x101380[_0xaf92('0x0')](/^heading(\d+)$/);return _0x183fc4?_0x183fc4[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x455f=['change','title','find','getRanges','plugins','formatInline','push','afterInit','commandParams','createRange','getFirstPosition','backward','_descriptionFactory','value','highlight','format','get','FORMAT_HIGHLIGHT','toLowerCase','item','hasAttribute','isCollapsed','highlight.options','markInlineFormat','getAttribute','*Remove\x20highlight*','model','locale','selection','editor','enableCommand','commandName'];(function(_0x296dc6,_0x455fb5){const _0x4c16b6=function(_0x3413de){while(--_0x3413de){_0x296dc6['push'](_0x296dc6['shift']());}};_0x4c16b6(++_0x455fb5);}(_0x455f,0x112));const _0x4c16=function(_0x296dc6,_0x455fb5){_0x296dc6=_0x296dc6-0x0;let _0x4c16b6=_0x455f[_0x296dc6];return _0x4c16b6;};import{Plugin as _0x355d2a}from'ckeditor5/src/core';import{getTranslation as _0x2a6a07}from'../utils/common-translations';import{getRangesWithAttribute as _0x3cd1e2}from'./utils';export default class K extends _0x355d2a{[_0x4c16('0x15')](){const _0x5a7fa6=this[_0x4c16('0xb')];if(!_0x5a7fa6[_0x4c16('0x12')]['has']('HighlightEditing'))return;const _0x2c5a1f=_0x5a7fa6['plugins'][_0x4c16('0x1e')]('TrackChangesEditing');_0x2c5a1f[_0x4c16('0xc')]('highlight',(_0x1c1332,_0x17548b={})=>{const _0x40a170=_0x5a7fa6['model']['document'][_0x4c16('0xa')],_0x2c86ab=_0x40a170[_0x4c16('0x6')](_0x4c16('0x1c'));let _0x2cd793=_0x17548b[_0x4c16('0x1b')],_0x1af45f=[];if(_0x40a170[_0x4c16('0x3')]){const _0x371933=_0x40a170[_0x4c16('0x18')]();if(!_0x40a170[_0x4c16('0x2')](_0x4c16('0x1c')))return void _0x1c1332(_0x17548b);{const _0x56f02e=_0x4706ec=>_0x4706ec[_0x4c16('0x1')][_0x4c16('0x6')](_0x4c16('0x1c'))===_0x2c86ab,_0x18e00c=_0x371933['getLastMatchingPosition'](_0x56f02e,{'direction':_0x4c16('0x19')}),_0x2da4a9=_0x371933['getLastMatchingPosition'](_0x56f02e);_0x1af45f=[_0x5a7fa6[_0x4c16('0x8')][_0x4c16('0x17')](_0x18e00c,_0x2da4a9)],_0x2cd793==_0x2c86ab&&(_0x2cd793=null);}}else for(const _0x31952c of _0x40a170[_0x4c16('0x11')]())_0x2cd793?_0x1af45f[_0x4c16('0x14')](_0x31952c):_0x1af45f['push'](..._0x3cd1e2(_0x4c16('0x1c'),_0x31952c,_0x5a7fa6['model']));_0x5a7fa6[_0x4c16('0x8')][_0x4c16('0xe')](()=>{for(const _0x1b2b70 of _0x1af45f)_0x2c5a1f[_0x4c16('0x5')](_0x1b2b70,{'commandName':_0x4c16('0x1c'),'commandParams':[{'value':_0x2cd793}]});});});const _0x2b3b0e=_0x5a7fa6[_0x4c16('0x9')];_0x2c5a1f[_0x4c16('0x1a')]['registerDescriptionCallback'](_0x7ff03f=>{const {type:_0x3ea0b8,data:_0x5f5d21}=_0x7ff03f;if(_0x4c16('0x13')==_0x3ea0b8&&_0x5f5d21&&'highlight'==_0x5f5d21[_0x4c16('0xd')]){const _0x12b2f9=_0x2b3b0e['t'],_0x583cd7=_0x5f5d21[_0x4c16('0x16')][0x0][_0x4c16('0x1b')];if(_0x583cd7){const _0x25099c=_0x5a7fa6['config'][_0x4c16('0x1e')](_0x4c16('0x4'))[_0x4c16('0x10')](_0x37899f=>_0x37899f[_0x4c16('0x8')]==_0x583cd7),_0x25298a=_0x12b2f9(_0x25099c[_0x4c16('0xf')])[_0x4c16('0x0')]();return{'type':_0x4c16('0x1d'),'content':_0x2a6a07(_0x2b3b0e,'*Set\x20highlight:*\x20%0',_0x25298a),'color':{'value':_0x25099c['color'],'title':_0x25099c['title']}};}return{'type':_0x4c16('0x1d'),'content':_0x2a6a07(_0x2b3b0e,_0x4c16('0x7'),_0x2a6a07(_0x2b3b0e,_0x4c16('0x1f')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1059=['createEmptyElement','plugins','addClass','ck-horizontal-line','has','afterInit','locale','editor','elementToStructure','enableCommand','HorizontalLineEditing','ELEMENT_HORIZONTAL_LINE','createContainerElement','horizontalLine','TrackChangesEditing','div','insert','registerElementLabel','createPositionAt','conversion','high','for','_descriptionFactory'];(function(_0x5d2ed4,_0x105961){const _0x3488f0=function(_0x3f06cd){while(--_0x3f06cd){_0x5d2ed4['push'](_0x5d2ed4['shift']());}};_0x3488f0(++_0x105961);}(_0x1059,0x1eb));const _0x3488=function(_0x5d2ed4,_0x105961){_0x5d2ed4=_0x5d2ed4-0x0;let _0x3488f0=_0x1059[_0x5d2ed4];return _0x3488f0;};import{Plugin as _0x52452e}from'ckeditor5/src/core';import{getTranslation as _0x4dd5dc}from'../utils/common-translations';export default class Q extends _0x52452e{[_0x3488('0x14')](){const _0x551275=this[_0x3488('0x16')];if(!_0x551275['plugins'][_0x3488('0x13')](_0x3488('0x2')))return;_0x551275[_0x3488('0x10')]['get'](_0x3488('0x6'))[_0x3488('0x1')](_0x3488('0x5'));const _0x5e026e=_0x551275['plugins']['get']('TrackChangesEditing'),_0x4ef3cf=_0x551275[_0x3488('0x15')];_0x5e026e[_0x3488('0xe')][_0x3488('0x9')](_0x3488('0x5'),_0x5539e8=>_0x4dd5dc(_0x4ef3cf,_0x3488('0x3'),_0x5539e8)),_0x551275[_0x3488('0xb')][_0x3488('0xd')]('dataDowncast')[_0x3488('0x0')]({'model':_0x3488('0x5'),'view':(_0xcdd155,{writer:_0x1e1489,options:_0x45230a})=>{if(!_0x45230a['showSuggestionHighlights'])return null;const _0x4b4e3e=_0x1e1489[_0x3488('0x4')](_0x3488('0x7')),_0x33ba8f=_0x1e1489[_0x3488('0xf')]('hr');return _0x1e1489[_0x3488('0x11')](_0x3488('0x12'),_0x4b4e3e),_0x1e1489[_0x3488('0x8')](_0x1e1489[_0x3488('0xa')](_0x4b4e3e,0x0),_0x33ba8f),_0x4b4e3e;},'converterPriority':_0x3488('0xc')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d29=['has','element','editing','view','afterInit','rawHtml','ELEMENT_HTML_EMBED','HtmlEmbed','registerElementLabel','get','plugins','selection','locale','htmlEmbed','getSelectedElement','_descriptionFactory','editor','cancel','getCustomProperty','value','*Change\x20%0\x20content*','rawHtmlApi','model','format','TrackChangesEditing','change','document'];(function(_0x269a9e,_0x1d2921){const _0x22f28f=function(_0x7f14ea){while(--_0x7f14ea){_0x269a9e['push'](_0x269a9e['shift']());}};_0x22f28f(++_0x1d2921);}(_0x1d29,0x106));const _0x22f2=function(_0x269a9e,_0x1d2921){_0x269a9e=_0x269a9e-0x0;let _0x22f28f=_0x1d29[_0x269a9e];return _0x22f28f;};import{Plugin as _0x5e18af}from'ckeditor5/src/core';import{getTranslation as _0x98438a}from'../utils/common-translations';export default class V extends _0x5e18af{[_0x22f2('0xc')](){const _0x499d5c=this[_0x22f2('0x18')];if(!_0x499d5c[_0x22f2('0x12')][_0x22f2('0x8')](_0x22f2('0xf')))return;const _0x587c86=_0x499d5c[_0x22f2('0x12')][_0x22f2('0x11')](_0x22f2('0x5')),_0x181c99=_0x499d5c[_0x22f2('0x14')],_0xb1e02e=_0x499d5c[_0x22f2('0xa')][_0x22f2('0xb')]['document'][_0x22f2('0x13')];_0x587c86[_0x22f2('0x17')][_0x22f2('0x10')](_0x22f2('0xd'),_0x3df152=>_0x98438a(_0x181c99,_0x22f2('0xe'),_0x3df152)),_0x499d5c[_0x22f2('0x12')][_0x22f2('0x11')](_0x22f2('0x5'))['enableCommand'](_0x22f2('0x15'),(_0x225c3a,_0x4f85b)=>{const _0x1e7985=_0x499d5c[_0x22f2('0x3')],_0x1f81c6=_0x1e7985[_0x22f2('0x7')][_0x22f2('0x13')];_0x1e7985[_0x22f2('0x6')](()=>{const _0x2c524f=function(_0x5eaba1){const _0x26df8a=_0x5eaba1['getSelectedElement']();if(_0x26df8a&&_0x26df8a['is'](_0x22f2('0x9'),'rawHtml'))return _0x5eaba1[_0x22f2('0x16')]();return null;}(_0x1f81c6);if(!_0x2c524f)return void _0x225c3a(null);const _0x349507=_0x2c524f['getAttribute'](_0x22f2('0x0'))||'';if(void 0x0===_0x4f85b)return;if(_0x4f85b===_0x349507)return;_0x587c86['markBlockFormat'](_0x2c524f,{'commandName':_0x22f2('0x15'),'commandParams':[_0x4f85b]}),_0xb1e02e['getSelectedElement']()[_0x22f2('0x1a')](_0x22f2('0x2'))[_0x22f2('0x19')]();});}),_0x587c86[_0x22f2('0x17')]['registerDescriptionCallback'](_0x2b3732=>{const {data:_0xf8d62}=_0x2b3732;if(_0xf8d62&&_0x22f2('0x15')==_0xf8d62['commandName']){const _0x318304=_0x98438a(_0x181c99,_0x22f2('0xe'));return{'type':_0x22f2('0x4'),'content':_0x98438a(_0x181c99,_0x22f2('0x1'),_0x318304)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x656a=['addObject','getFirstRange','imageStylePostApply','Users','isCollapsed','change','start','get','type','ImageTextAlternativeEditing','end','side','ELEMENT_IMAGE','imageBlock','ImageCaptionUtils','imageStyle','resizeImage','*Format:*\x20%0','registerElementLabel','refresh','model','createRangeOn','isBlockImage','convertBlockImageToInline','plugins','toggleImageCaption','document','alt','registerPostFixer','getClosestSelectedImageElement','enableCommand','forceDefaultExecution','ImageCaptionEditing','imageTextAlternative','*Set\x20image\x20text\x20alternative:*\x20%0','isBefore','removeObject','convertInlineImageToBlock','isInlineImage','registerCustomCallback','title','Inline\x20image\x20to\x20block\x20image','imageInline','getSuggestion','previous','markInsertion','ImageBlockEditing','getSuggestionCallback','formatInline','element','selection','_splitMarkerName','markBlockFormat','getAttribute','_descriptionFactory','hasSuggestion','length','join','ImageStyleEditing','getCaptionFromImageModelElement','discardSuggestion','ImageEditing','isOwn','accept','uploadImage','isInContent','find','commandName','markInlineFormat','deletion','insertImage','newRange','formatBlock','subType','nodeAfter','createRange','schema','next','registerDescriptionCallback','getChangedMarkers','filter','_suggestionFactory','ELEMENT_INLINE_IMAGE','commandReversedParams','has','chain','editor','hasAttribute','_findSuggestions','imageCaption','findIndex','getNearestSelectionRange','detach','ImageResize','getContainedElement','toNext','afterInit','forEach','imageTypeInline','caption','isEqual','imageStylePreApply','forward','locale','TrackChangesEditing','format','value','*Remove\x20image\x20text\x20alternative*','discard','isIntersecting','ELEMENT_CAPTION','ImageUploadEditing','suggestion','fromPosition','insertion','commandParams','commands','newValue','width','ImageUtils','markDeletion','imageTypeBlock'];(function(_0x2a45ed,_0x656a2c){const _0x269251=function(_0x389c48){while(--_0x389c48){_0x2a45ed['push'](_0x2a45ed['shift']());}};_0x269251(++_0x656a2c);}(_0x656a,0x115));const _0x2692=function(_0x2a45ed,_0x656a2c){_0x2a45ed=_0x2a45ed-0x0;let _0x269251=_0x656a[_0x2a45ed];return _0x269251;};import{Plugin as _0xd6c239}from'ckeditor5/src/core';import{LivePosition as _0x325c2d}from'ckeditor5/src/engine';import{uid as _0x5665d0}from'ckeditor5/src/utils';import{getTranslation as _0x233f02}from'../utils/common-translations';export default class X extends _0xd6c239{[_0x2692('0x3f')](){const _0xc9247e=this[_0x2692('0x35')];if(!_0xc9247e[_0x2692('0x71')]['has'](_0x2692('0x1c')))return;const _0x122e7a=_0xc9247e[_0x2692('0x71')]['get'](_0x2692('0x47')),_0x67746e=_0xc9247e[_0x2692('0x71')]['get'](_0x2692('0x56')),_0xfd6618={},_0xe6bcce=_0xc9247e[_0x2692('0x46')];if(_0x122e7a[_0x2692('0x77')](_0x2692('0x25')),_0x122e7a[_0x2692('0x15')][_0x2692('0x6b')](_0x2692('0x66'),_0x25babd=>_0x233f02(_0xe6bcce,_0x2692('0x65'),_0x25babd)),_0x122e7a[_0x2692('0x15')][_0x2692('0x6b')](_0x2692('0x9'),_0x1d7f25=>_0x233f02(_0xe6bcce,_0x2692('0x31'),_0x1d7f25)),_0x122e7a[_0x2692('0x15')][_0x2692('0x6b')](_0x2692('0x42'),()=>_0x233f02(_0xe6bcce,_0x2692('0x4d'))),_0xc9247e[_0x2692('0x71')][_0x2692('0x33')](_0x2692('0x4e'))&&_0x122e7a[_0x2692('0x77')](_0x2692('0x1f')),_0xc9247e[_0x2692('0x71')][_0x2692('0x33')](_0x2692('0xd'))&&_0xc9247e[_0x2692('0x71')][_0x2692('0x33')]('ImageInlineEditing')&&(_0x122e7a[_0x2692('0x77')](_0x2692('0x41'),(_0x9c1bcc,_0x4a1996)=>{const _0x20611c=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x11')]);_0xc9247e[_0x2692('0x6d')][_0x2692('0x5e')](()=>{_0x122e7a[_0x2692('0x13')](_0x20611c,{'commandName':'imageTypeInline','commandParams':[_0x4a1996]},[],_0x2692('0x70'));});}),_0x122e7a['enableCommand'](_0x2692('0x58'),(_0x43e2c7,_0x286003)=>{_0xc9247e[_0x2692('0x6d')][_0x2692('0x5e')](_0x23f7a2=>{let _0x5a16f5=_0x67746e['getClosestSelectedImageElement'](_0xc9247e[_0x2692('0x6d')][_0x2692('0x73')][_0x2692('0x11')]),_0x24fc1c=_0x23f7a2[_0x2692('0x6e')](_0x5a16f5);const _0x25028e=_0x325c2d[_0x2692('0x50')](_0x24fc1c[_0x2692('0x5f')],'toPrevious'),_0x567fc2=_0x325c2d['fromPosition'](_0x24fc1c[_0x2692('0x63')],_0x2692('0x3e'));_0x122e7a[_0x2692('0x78')](()=>_0x43e2c7(_0x286003)),_0x5a16f5=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x11')]),_0x24fc1c=_0x23f7a2[_0x2692('0x6e')](_0x5a16f5);const _0x3d5fef=_0x23f7a2[_0x2692('0x2a')](_0x25028e,_0x567fc2);_0x25028e[_0x2692('0x3b')](),_0x567fc2[_0x2692('0x3b')](),_0x122e7a[_0x2692('0x13')](_0x5a16f5,{'commandName':_0x2692('0x41'),'commandParams':[]},[],_0x2692('0x4')),_0x3d5fef[_0x2692('0x5f')][_0x2692('0x2')](_0x24fc1c['start'])&&_0x122e7a[_0x2692('0xc')](_0x23f7a2[_0x2692('0x2a')](_0x3d5fef['start'],_0x24fc1c['start']),'convertInlineImageToBlock'),_0x24fc1c['end'][_0x2692('0x2')](_0x3d5fef['end'])&&_0x122e7a['markInsertion'](_0x23f7a2['createRange'](_0x24fc1c['end'],_0x3d5fef[_0x2692('0x63')]),_0x2692('0x4'));});}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')]('formatBlock',_0x2692('0x4'),_0x2692('0x18'),()=>{}),_0x122e7a[_0x2692('0x30')]['registerCustomCallback'](_0x2692('0x27'),'convertInlineImageToBlock','accept',()=>{}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')]('formatBlock',_0x2692('0x4'),'discard',_0x122e7a[_0x2692('0x30')][_0x2692('0xe')]('formatBlock','',_0x2692('0x1e'))),_0x122e7a[_0x2692('0x30')]['registerCustomCallback'](_0x2692('0x51'),'convertInlineImageToBlock',_0x2692('0x18'),()=>{}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')](_0x2692('0x51'),'convertInlineImageToBlock',_0x2692('0x4b'),([_0x5635bc])=>{const _0x4aed79=_0x122e7a['_suggestionFactory']['getSuggestionCallback'](_0x2692('0x51'),'',_0x2692('0x4b'));let _0x1ca448=_0x5635bc[_0x2692('0x5f')],_0x56056a=_0x5635bc['end'];const _0x40d69a=_0xc9247e['model'][_0x2692('0x2b')]['getNearestSelectionRange'](_0x1ca448,'backward'),_0x3466dc=_0xc9247e[_0x2692('0x6d')][_0x2692('0x2b')][_0x2692('0x3a')](_0x56056a,_0x2692('0x45'));_0x40d69a[_0x2692('0x5d')]&&(_0x1ca448=_0x40d69a['start']),_0x3466dc[_0x2692('0x5d')]&&(_0x56056a=_0x3466dc[_0x2692('0x63')]),_0x4aed79([_0xc9247e[_0x2692('0x6d')][_0x2692('0x2a')](_0x1ca448,_0x56056a)]);}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')](_0x2692('0x27'),_0x2692('0x4'),'chain',_0x717b),_0x122e7a[_0x2692('0x30')]['registerCustomCallback'](_0x2692('0x51'),_0x2692('0x4'),_0x2692('0x34'),_0x717b)),_0xc9247e['plugins'][_0x2692('0x33')](_0x2692('0x79'))&&(_0x122e7a['enableCommand'](_0x2692('0x72'),(_0x376575,_0x3515b7)=>{const _0x2bd088=_0xc9247e[_0x2692('0x71')]['get'](_0x2692('0x67'));let _0x2302d0=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')][_0x2692('0x73')]['selection']),_0x11fb45=_0x2bd088[_0x2692('0x1a')](_0x2302d0);_0xc9247e[_0x2692('0x6d')]['change'](()=>{if(_0x11fb45)return void _0x122e7a[_0x2692('0x57')](_0xc9247e[_0x2692('0x6d')][_0x2692('0x6e')](_0x11fb45));const _0x38d053=_0x67746e[_0x2692('0x6f')](_0x2302d0);_0x376575(_0x3515b7),_0x2302d0=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')][_0x2692('0x73')][_0x2692('0x11')]),_0x11fb45=_0x2bd088[_0x2692('0x1a')](_0x2302d0),_0x122e7a['markInsertion'](_0xc9247e[_0x2692('0x6d')]['createRangeOn'](_0x11fb45),_0x38d053?null:_0x2692('0x38'));});}),_0x122e7a['_suggestionFactory']['registerCustomCallback'](_0x2692('0x51'),_0x2692('0x38'),_0x2692('0x34'),_0x717b)),_0xc9247e['plugins'][_0x2692('0x33')](_0x2692('0x19'))){_0x122e7a[_0x2692('0x77')](_0x2692('0x68'),(_0x4bdd32,_0x542756)=>{const _0x269aa8=_0xc9247e[_0x2692('0x71')][_0x2692('0x60')](_0x2692('0x5c'))['me'],_0x571384=_0xc9247e[_0x2692('0x53')][_0x2692('0x60')](_0x2692('0x68'));let _0x398f20=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')]['document']['selection']),_0x487636=_0xc9247e['model'][_0x2692('0x6e')](_0x398f20),_0x9fcecc=_0x571384[_0x2692('0x49')];if(_0x9fcecc==_0x542756[_0x2692('0x49')])return;const _0x17f06b={'commandName':'imageStyle','commandParams':[_0x542756],'formatGroupId':_0x5665d0()};_0xc9247e[_0x2692('0x6d')][_0x2692('0x5e')](()=>{if(_0x122e7a['getSuggestions']()['filter'](_0x4e00af=>_0x4e00af[_0x2692('0x20')]&&_0x269aa8==_0x4e00af['author']&&(_0x2692('0x27')==_0x4e00af['type']||_0x2692('0xf')==_0x4e00af[_0x2692('0x61')])&&(_0x2692('0x44')==_0x4e00af[_0x2692('0x28')]||_0x2692('0x5b')==_0x4e00af[_0x2692('0x28')])&&_0x4e00af[_0x2692('0x5a')]()[_0x2692('0x43')](_0x487636))[_0x2692('0x40')](_0x2a55bf=>_0x122e7a[_0x2692('0x1b')](_0x2a55bf['head'])),_0x398f20=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x11')]),_0x487636=_0xc9247e[_0x2692('0x6d')][_0x2692('0x6e')](_0x398f20),_0x571384[_0x2692('0x6c')](),_0xc9247e[_0x2692('0x53')][_0x2692('0x60')]('imageTypeInline')[_0x2692('0x6c')](),_0xc9247e[_0x2692('0x53')]['get'](_0x2692('0x58'))[_0x2692('0x6c')](),_0x9fcecc=_0x571384['value'],_0x9fcecc!=_0x542756[_0x2692('0x49')])return _0x67746e[_0x2692('0x5')](_0x398f20)&&_0x571384['shouldConvertImageType'](_0x542756[_0x2692('0x49')],_0x398f20)?(_0x4bdd32(_0x542756),_0x398f20=_0x67746e['getClosestSelectedImageElement'](_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x11')]),void _0x122e7a[_0x2692('0x13')](_0x398f20,{..._0x17f06b,'commandReversedParams':[{'value':_0x9fcecc||null}]},[],'imageStylePreApply')):void(_0x67746e['isBlockImage'](_0x398f20)?_0x122e7a[_0x2692('0x13')](_0x398f20,_0x17f06b,[],_0x2692('0x5b')):_0x122e7a[_0x2692('0x23')](_0x487636,_0x17f06b,_0x2692('0x5b')));});});for(const _0x23ad17 of _0xc9247e[_0x2692('0x71')]['get'](_0x2692('0x19'))['normalizedStyles'])_0xfd6618[_0x23ad17['name']]=_0x23ad17[_0x2692('0x7')]['toLowerCase']();_0x122e7a['_suggestionFactory'][_0x2692('0x6')](_0x2692('0x27'),'imageStylePreApply',_0x2692('0x18'),()=>{}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')]('formatBlock',_0x2692('0x5b'),_0x2692('0x18'),()=>{}),_0x122e7a[_0x2692('0x30')]['registerCustomCallback'](_0x2692('0xf'),_0x2692('0x5b'),_0x2692('0x18'),()=>{}),_0x122e7a[_0x2692('0x30')][_0x2692('0x6')](_0x2692('0x27'),_0x2692('0x44'),_0x2692('0x1e'),()=>{}),_0x122e7a['_suggestionFactory'][_0x2692('0x6')](_0x2692('0x27'),_0x2692('0x44'),_0x2692('0x4b'),(_0x15ee59,_0x3082c3)=>{_0x122e7a[_0x2692('0x30')]['getSuggestionCallback']('formatBlock','',_0x2692('0x1e'))(_0x15ee59,{'commandName':_0x3082c3['commandName'],'commandParams':_0x3082c3[_0x2692('0x32')]});}),_0x122e7a[_0x2692('0x30')]['registerCustomCallback'](_0x2692('0x27'),'imageStylePreApply',_0x2692('0x34'),_0x717b);}const _0x28848d=[{'type':_0x2692('0x27'),'subType':_0x2692('0x44')},{'type':_0x2692('0x51'),'subType':'imageCaption'},{'type':'formatBlock','subType':_0x2692('0x4')},{'type':_0x2692('0x51'),'subType':_0x2692('0x4')}];function _0x550ec4(_0x4a054f,_0x2074c4){const _0x348040=_0x28848d['findIndex'](({type:_0x133131,subType:_0x5a9a72})=>_0x4a054f[_0x2692('0x61')]==_0x133131&&_0x4a054f['subType']==_0x5a9a72),_0x4dbd5f=_0x28848d[_0x2692('0x39')](({type:_0x217a63,subType:_0x31ba3b})=>_0x2074c4[_0x2692('0x61')]==_0x217a63&&_0x2074c4[_0x2692('0x28')]==_0x31ba3b);if(_0x348040<0x0||_0x4dbd5f<0x0)return!0x1;const _0x1414da=_0x4a054f['getFirstRange'](),_0x2fa480=_0x2074c4[_0x2692('0x5a')]();if((0x0==_0x348040||0x1==_0x348040)&&0x2==_0x4dbd5f&&_0x1414da[_0x2692('0x4c')](_0x2fa480))return!0x0;if(0x2==_0x348040&&0x3==_0x4dbd5f){const _0x2249f1=_0x122e7a[_0x2692('0x37')](_0x1414da,_0x2692('0x51'))[_0x2692('0x2f')](({suggestion:_0x8e4800,meta:_0x8b275a})=>_0x8b275a[_0x2692('0x1d')]&&_0x2692('0x4')==_0x8e4800[_0x2692('0x28')]);if(_0x2249f1[_0x2692('0x17')]>0x1&&_0x2fa480[_0x2692('0x63')]['isEqual'](_0x1414da[_0x2692('0x5f')]))return!0x0;if(0x1==_0x2249f1[_0x2692('0x17')]&&(_0x1414da[_0x2692('0x5f')][_0x2692('0x43')](_0x2fa480['end'])||_0x1414da[_0x2692('0x63')][_0x2692('0x43')](_0x2fa480[_0x2692('0x5f')])))return!0x0;}if(0x3==_0x348040&&0x3==_0x4dbd5f&&_0x1414da[_0x2692('0x5f')][_0x2692('0x2')](_0x2fa480['start'])){const _0x4b7643=_0x1414da[_0x2692('0x63')][_0x2692('0x29')],_0x1b2c9b=_0x2fa480[_0x2692('0x5f')]['nodeBefore'];return _0x67746e['isBlockImage'](_0x4b7643)&&_0x4b7643===_0x1b2c9b;}return!0x1;}function _0x717b(_0x43e1ce,_0x1c6082){return _0x550ec4(_0x43e1ce,_0x1c6082)?[_0x43e1ce,_0x1c6082]:_0x550ec4(_0x1c6082,_0x43e1ce)?[_0x1c6082,_0x43e1ce]:null;}_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x75')](()=>{let _0x22d89e=!0x1;const _0x276c5f=Array['from'](_0xc9247e[_0x2692('0x6d')][_0x2692('0x73')]['differ'][_0x2692('0x2e')]());for(const {name:_0x4ca77e,data:_0x5cc2af}of _0x276c5f){const {group:_0x38cf23,type:_0x45d8be,subType:_0x4e1076,id:_0x477eb1}=_0x122e7a[_0x2692('0x12')](_0x4ca77e);if(_0x2692('0x4f')==_0x38cf23&&_0x122e7a[_0x2692('0x16')](_0x477eb1)){if(_0x2692('0x27')==_0x45d8be&&(_0x2692('0x44')==_0x4e1076||_0x2692('0x5b')==_0x4e1076)){const _0x432277=_0x122e7a['getSuggestion'](_0x477eb1);if(_0x5cc2af[_0x2692('0x26')]){const _0x438197=_0x432277[_0x2692('0x5a')]()[_0x2692('0x3d')]();if(_0x67746e[_0x2692('0x6f')](_0x438197))continue;_0x122e7a[_0x2692('0x1b')](_0x432277),_0x22d89e=!0x0;}}if(_0x2692('0x51')==_0x45d8be&&'imageCaption'==_0x4e1076&&!_0x5cc2af['newRange']){const _0x525059=_0x122e7a[_0x2692('0xa')](_0x477eb1);_0x525059['next']&&_0x525059[_0x2692('0x2c')][_0x2692('0x20')]&&(_0x122e7a[_0x2692('0x1b')](_0x525059[_0x2692('0x2c')]),_0x22d89e=!0x0);}}}return _0x22d89e;}),_0xc9247e[_0x2692('0x71')][_0x2692('0x33')](_0x2692('0x3c'))&&_0x122e7a[_0x2692('0x77')](_0x2692('0x69'),(_0x21eba9,_0x3be432)=>{const _0xbe3f47=_0x67746e[_0x2692('0x76')](_0xc9247e[_0x2692('0x6d')]['document'][_0x2692('0x11')]);_0xbe3f47[_0x2692('0x14')](_0x2692('0x55'))!=_0x3be432[_0x2692('0x55')]&&_0xc9247e[_0x2692('0x6d')]['change'](()=>{_0x122e7a[_0x2692('0x13')](_0xbe3f47,{'commandName':_0x2692('0x69'),'commandParams':[_0x3be432]});});}),_0xc9247e[_0x2692('0x71')]['has'](_0x2692('0x62'))&&_0x122e7a[_0x2692('0x77')](_0x2692('0x0'),(_0x421fbe,_0x24b79a)=>{const _0x18ab1a=_0x67746e['getClosestSelectedImageElement'](_0xc9247e[_0x2692('0x6d')][_0x2692('0x73')][_0x2692('0x11')]);(_0x18ab1a[_0x2692('0x36')](_0x2692('0x74'))?_0x18ab1a[_0x2692('0x14')]('alt'):'')!=_0x24b79a['newValue']&&_0xc9247e['model'][_0x2692('0x5e')](()=>{_0x122e7a[_0x2692('0x13')](_0x18ab1a,{'commandName':_0x2692('0x0'),'commandParams':[_0x24b79a]});});}),_0x122e7a[_0x2692('0x15')]['registerDescriptionCallback'](_0x3f2a7c=>{if(!!_0x28848d[_0x2692('0x21')](({type:_0x50364d,subType:_0x3a630d})=>_0x3f2a7c[_0x2692('0x61')]==_0x50364d&&_0x3f2a7c[_0x2692('0x28')]==_0x3a630d))return _0x3f2a7c[_0x2692('0xb')]?{}:void 0x0;}),_0x122e7a[_0x2692('0x15')]['registerDescriptionCallback'](_0x4237fa=>{if(_0x2692('0x51')==_0x4237fa[_0x2692('0x61')]||_0x2692('0x24')==_0x4237fa[_0x2692('0x61')]){const _0x4b813e=_0x4237fa[_0x2692('0x3d')]();if(_0x4b813e&&_0x4b813e['is'](_0x2692('0x10'),'caption'))return{'type':'insertion'==_0x4237fa[_0x2692('0x61')]?_0x2692('0x59'):_0x2692('0x3'),'element':_0x4b813e,'quantity':0x1};}}),_0x122e7a[_0x2692('0x15')][_0x2692('0x2d')](_0xd82ed=>_0x2692('0x27')==_0xd82ed['type']&&_0x2692('0x4')==_0xd82ed[_0x2692('0x28')]?{'type':'format','content':_0x2692('0x8')}:_0x2692('0x27')==_0xd82ed['type']&&_0x2692('0x70')==_0xd82ed[_0x2692('0x28')]?{'type':_0x2692('0x48'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x122e7a['_descriptionFactory'][_0x2692('0x2d')](_0x44bd0b=>{const {data:_0x42b237}=_0x44bd0b;if(_0x42b237){if(_0x2692('0x68')==_0x42b237[_0x2692('0x22')]){const _0x4c02b5=_0x42b237[_0x2692('0x52')][0x0][_0x2692('0x49')];return _0x195b34(_0x2692('0x64')===_0x4c02b5?_0x233f02(_0xe6bcce,'FORMAT_SIDE_IMAGE'):_0xfd6618[_0x4c02b5]||_0x4c02b5);}if(_0x2692('0x0')==_0x42b237[_0x2692('0x22')]){const _0x482bc1=_0x42b237[_0x2692('0x52')][0x0][_0x2692('0x54')];return _0x482bc1?{'type':'format','content':_0x233f02(_0xe6bcce,_0x2692('0x1'),'\x22'+_0x482bc1+'\x22')}:{'type':'format','content':_0x233f02(_0xe6bcce,_0x2692('0x4a'))};}if(_0x2692('0x69')==_0x42b237[_0x2692('0x22')]){const _0x2f40cd=_0x42b237[_0x2692('0x52')][0x0][_0x2692('0x55')];return _0x2f40cd?{'type':_0x2692('0x48'),'content':_0x233f02(_0xe6bcce,'*Set\x20image\x20width:*\x20%0',_0x2f40cd)}:{'type':_0x2692('0x48'),'content':_0x233f02(_0xe6bcce,'*Reset\x20image\x20width*')};}}function _0x195b34(_0x40cefe){return{'type':_0x2692('0x48'),'content':_0x233f02(_0xe6bcce,_0x2692('0x6a'),_0x40cefe)};}});}}
|
|
23
|
+
const _0x6639=['getCaptionFromImageModelElement','ImageTextAlternativeEditing','registerCustomCallback','selection','*Format:*\x20%0','ImageResize','getSuggestions','ImageStyleEditing','toNext','removeObject','hasAttribute','imageBlock','nodeAfter','name','next','createRangeOn','model','isBlockImage','fromPosition','registerElementLabel','suggestion','shouldConvertImageType','_splitMarkerName','markBlockFormat','markInsertion','commandParams','from','filter','imageStylePostApply','document','ELEMENT_IMAGE','side','toLowerCase','start','previous','title','_descriptionFactory','accept','TrackChangesEditing','Users','forceDefaultExecution','getClosestSelectedImageElement','imageStylePreApply','*Set\x20image\x20text\x20alternative:*\x20%0','toPrevious','getSuggestionCallback','getSuggestion','commands','plugins','_suggestionFactory','getAttribute','schema','imageCaption','isInContent','type','end','addObject','backward','length','formatBlock','author','refresh','uploadImage','newValue','differ','alt','registerDescriptionCallback','registerPostFixer','insertion','join','locale','find','imageInline','has','resizeImage','width','ImageUtils','get','change','getNearestSelectionRange','commandReversedParams','discard','getFirstRange','isBefore','ImageCaptionEditing','value','commandName','markInlineFormat','forEach','detach','format','isInlineImage','isCollapsed','imageTypeInline','isOwn','caption','markDeletion','ImageUploadEditing','chain','imageTextAlternative','subType','ImageEditing','element','discardSuggestion','imageStyle','insertImage','_findSuggestions','isEqual','enableCommand','formatInline','getContainedElement','createRange','*Set\x20image\x20width:*\x20%0','findIndex','convertInlineImageToBlock','convertBlockImageToInline','getChangedMarkers'];(function(_0x1aed11,_0x663928){const _0x1c1a0a=function(_0x344c1c){while(--_0x344c1c){_0x1aed11['push'](_0x1aed11['shift']());}};_0x1c1a0a(++_0x663928);}(_0x6639,0xd5));const _0x1c1a=function(_0x1aed11,_0x663928){_0x1aed11=_0x1aed11-0x0;let _0x1c1a0a=_0x6639[_0x1aed11];return _0x1c1a0a;};import{Plugin as _0x45dd1f}from'ckeditor5/src/core';import{LivePosition as _0x2315c9}from'ckeditor5/src/engine';import{uid as _0x2b68c1}from'ckeditor5/src/utils';import{getTranslation as _0x5ba8cd}from'../utils/common-translations';export default class X extends _0x45dd1f{['afterInit'](){const _0x26ec7f=this['editor'];if(!_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x5')))return;const _0x453d9f=_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x62')](_0x1c1a('0x3b')),_0x1c1bf8=_0x26ec7f[_0x1c1a('0x45')]['get'](_0x1c1a('0x61')),_0x3f48bd={},_0xd04ff5=_0x26ec7f[_0x1c1a('0x5b')];if(_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x9')),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x20'),_0x35467=>_0x5ba8cd(_0xd04ff5,_0x1c1a('0x33'),_0x35467)),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x5d'),_0x73103=>_0x5ba8cd(_0xd04ff5,'ELEMENT_INLINE_IMAGE',_0x73103)),_0x453d9f['_descriptionFactory'][_0x1c1a('0x28')](_0x1c1a('0x74'),()=>_0x5ba8cd(_0xd04ff5,'ELEMENT_CAPTION')),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x1'))&&_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x53')),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')]('ImageBlockEditing')&&_0x26ec7f[_0x1c1a('0x45')]['has']('ImageInlineEditing')&&(_0x453d9f['enableCommand'](_0x1c1a('0x72'),(_0x5d5e6b,_0x34fc66)=>{const _0x27b1b4=_0x1c1bf8['getClosestSelectedImageElement'](_0x26ec7f[_0x1c1a('0x25')]['document']['selection']);_0x26ec7f['model'][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x27b1b4,{'commandName':_0x1c1a('0x72'),'commandParams':[_0x34fc66]},[],_0x1c1a('0x13'));});}),_0x453d9f[_0x1c1a('0xc')]('imageTypeBlock',(_0x226bbe,_0x436a94)=>{_0x26ec7f[_0x1c1a('0x25')]['change'](_0x48c39e=>{let _0x2fc4d2=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x3f3e14=_0x48c39e['createRangeOn'](_0x2fc4d2);const _0x6d9ecc=_0x2315c9[_0x1c1a('0x27')](_0x3f3e14[_0x1c1a('0x36')],_0x1c1a('0x41')),_0x50d0a2=_0x2315c9[_0x1c1a('0x27')](_0x3f3e14[_0x1c1a('0x4c')],_0x1c1a('0x1d'));_0x453d9f[_0x1c1a('0x3d')](()=>_0x226bbe(_0x436a94)),_0x2fc4d2=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')]['selection']),_0x3f3e14=_0x48c39e['createRangeOn'](_0x2fc4d2);const _0x3e09c1=_0x48c39e[_0x1c1a('0xf')](_0x6d9ecc,_0x50d0a2);_0x6d9ecc['detach'](),_0x50d0a2[_0x1c1a('0x6e')](),_0x453d9f[_0x1c1a('0x2c')](_0x2fc4d2,{'commandName':_0x1c1a('0x72'),'commandParams':[]},[],_0x1c1a('0x12')),_0x3e09c1[_0x1c1a('0x36')][_0x1c1a('0x68')](_0x3f3e14[_0x1c1a('0x36')])&&_0x453d9f[_0x1c1a('0x2d')](_0x48c39e[_0x1c1a('0xf')](_0x3e09c1[_0x1c1a('0x36')],_0x3f3e14[_0x1c1a('0x36')]),'convertInlineImageToBlock'),_0x3f3e14[_0x1c1a('0x4c')][_0x1c1a('0x68')](_0x3e09c1[_0x1c1a('0x4c')])&&_0x453d9f[_0x1c1a('0x2d')](_0x48c39e[_0x1c1a('0xf')](_0x3f3e14[_0x1c1a('0x4c')],_0x3e09c1[_0x1c1a('0x4c')]),_0x1c1a('0x12'));});}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')]('formatBlock',_0x1c1a('0x12'),_0x1c1a('0x5a'),()=>{}),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x12'),'accept',()=>{}),_0x453d9f['_suggestionFactory']['registerCustomCallback'](_0x1c1a('0x50'),'convertInlineImageToBlock',_0x1c1a('0x66'),_0x453d9f['_suggestionFactory'][_0x1c1a('0x42')](_0x1c1a('0x50'),'',_0x1c1a('0x3a'))),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x59'),_0x1c1a('0x12'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x59'),_0x1c1a('0x12'),_0x1c1a('0x66'),([_0x34a743])=>{const _0x858753=_0x453d9f[_0x1c1a('0x46')]['getSuggestionCallback'](_0x1c1a('0x59'),'',_0x1c1a('0x66'));let _0x18c2fc=_0x34a743[_0x1c1a('0x36')],_0x29e774=_0x34a743['end'];const _0x145a87=_0x26ec7f['model']['schema'][_0x1c1a('0x64')](_0x18c2fc,_0x1c1a('0x4e')),_0x29d0f2=_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x48')][_0x1c1a('0x64')](_0x29e774,'forward');_0x145a87[_0x1c1a('0x71')]&&(_0x18c2fc=_0x145a87[_0x1c1a('0x36')]),_0x29d0f2[_0x1c1a('0x71')]&&(_0x29e774=_0x29d0f2[_0x1c1a('0x4c')]),_0x858753([_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0xf')](_0x18c2fc,_0x29e774)]);}),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x12'),'chain',_0x4c8198),_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')]('insertion',_0x1c1a('0x12'),'chain',_0x4c8198)),_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x5e')](_0x1c1a('0x69'))&&(_0x453d9f[_0x1c1a('0xc')]('toggleImageCaption',(_0x146751,_0x138f98)=>{const _0x209655=_0x26ec7f[_0x1c1a('0x45')][_0x1c1a('0x62')]('ImageCaptionUtils');let _0x1d4afa=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')]['document']['selection']),_0x32a2f8=_0x209655[_0x1c1a('0x15')](_0x1d4afa);_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{if(_0x32a2f8)return void _0x453d9f[_0x1c1a('0x0')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x24')](_0x32a2f8));const _0x4c9606=_0x1c1bf8[_0x1c1a('0x26')](_0x1d4afa);_0x146751(_0x138f98),_0x1d4afa=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x32a2f8=_0x209655['getCaptionFromImageModelElement'](_0x1d4afa),_0x453d9f[_0x1c1a('0x2d')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x24')](_0x32a2f8),_0x4c9606?null:'imageCaption');});}),_0x453d9f[_0x1c1a('0x46')]['registerCustomCallback']('insertion',_0x1c1a('0x49'),'chain',_0x4c8198)),_0x26ec7f['plugins'][_0x1c1a('0x5e')](_0x1c1a('0x1c'))){_0x453d9f[_0x1c1a('0xc')](_0x1c1a('0x8'),(_0x21e853,_0x5c7872)=>{const _0x312168=_0x26ec7f['plugins']['get'](_0x1c1a('0x3c'))['me'],_0x41279=_0x26ec7f[_0x1c1a('0x44')][_0x1c1a('0x62')](_0x1c1a('0x8'));let _0x2e03e3=_0x1c1bf8['getClosestSelectedImageElement'](_0x26ec7f['model'][_0x1c1a('0x32')][_0x1c1a('0x18')]),_0x1731a3=_0x26ec7f[_0x1c1a('0x25')]['createRangeOn'](_0x2e03e3),_0xd710f5=_0x41279[_0x1c1a('0x6a')];if(_0xd710f5==_0x5c7872['value'])return;const _0x5d906a={'commandName':_0x1c1a('0x8'),'commandParams':[_0x5c7872],'formatGroupId':_0x2b68c1()};_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{if(_0x453d9f[_0x1c1a('0x1b')]()[_0x1c1a('0x30')](_0x46e4ff=>_0x46e4ff[_0x1c1a('0x4a')]&&_0x312168==_0x46e4ff[_0x1c1a('0x51')]&&('formatBlock'==_0x46e4ff['type']||'formatInline'==_0x46e4ff[_0x1c1a('0x4b')])&&(_0x1c1a('0x3f')==_0x46e4ff[_0x1c1a('0x4')]||_0x1c1a('0x31')==_0x46e4ff[_0x1c1a('0x4')])&&_0x46e4ff[_0x1c1a('0x67')]()[_0x1c1a('0xb')](_0x1731a3))[_0x1c1a('0x6d')](_0x24ca25=>_0x453d9f['discardSuggestion'](_0x24ca25['head'])),_0x2e03e3=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')]['document'][_0x1c1a('0x18')]),_0x1731a3=_0x26ec7f['model'][_0x1c1a('0x24')](_0x2e03e3),_0x41279['refresh'](),_0x26ec7f['commands'][_0x1c1a('0x62')](_0x1c1a('0x72'))['refresh'](),_0x26ec7f[_0x1c1a('0x44')][_0x1c1a('0x62')]('imageTypeBlock')[_0x1c1a('0x52')](),_0xd710f5=_0x41279[_0x1c1a('0x6a')],_0xd710f5!=_0x5c7872[_0x1c1a('0x6a')])return _0x1c1bf8[_0x1c1a('0x70')](_0x2e03e3)&&_0x41279[_0x1c1a('0x2a')](_0x5c7872[_0x1c1a('0x6a')],_0x2e03e3)?(_0x21e853(_0x5c7872),_0x2e03e3=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]),void _0x453d9f[_0x1c1a('0x2c')](_0x2e03e3,{..._0x5d906a,'commandReversedParams':[{'value':_0xd710f5||null}]},[],_0x1c1a('0x3f'))):void(_0x1c1bf8['isBlockImage'](_0x2e03e3)?_0x453d9f[_0x1c1a('0x2c')](_0x2e03e3,_0x5d906a,[],_0x1c1a('0x31')):_0x453d9f[_0x1c1a('0x6c')](_0x1731a3,_0x5d906a,_0x1c1a('0x31')));});});for(const _0x21ff84 of _0x26ec7f['plugins'][_0x1c1a('0x62')](_0x1c1a('0x1c'))['normalizedStyles'])_0x3f48bd[_0x21ff84[_0x1c1a('0x22')]]=_0x21ff84[_0x1c1a('0x38')][_0x1c1a('0x35')]();_0x453d9f['_suggestionFactory'][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x31'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0xd'),_0x1c1a('0x31'),_0x1c1a('0x5a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')]('formatBlock',_0x1c1a('0x3f'),_0x1c1a('0x3a'),()=>{}),_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x17')](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x66'),(_0x5bfed3,_0x2c3905)=>{_0x453d9f[_0x1c1a('0x46')][_0x1c1a('0x42')](_0x1c1a('0x50'),'','accept')(_0x5bfed3,{'commandName':_0x2c3905[_0x1c1a('0x6b')],'commandParams':_0x2c3905[_0x1c1a('0x65')]});}),_0x453d9f[_0x1c1a('0x46')]['registerCustomCallback'](_0x1c1a('0x50'),_0x1c1a('0x3f'),_0x1c1a('0x2'),_0x4c8198);}const _0x1437a0=[{'type':'formatBlock','subType':_0x1c1a('0x3f')},{'type':_0x1c1a('0x59'),'subType':_0x1c1a('0x49')},{'type':_0x1c1a('0x50'),'subType':'convertInlineImageToBlock'},{'type':_0x1c1a('0x59'),'subType':_0x1c1a('0x12')}];function _0x303eab(_0x1c83c9,_0x307601){const _0x48c87c=_0x1437a0[_0x1c1a('0x11')](({type:_0x39248e,subType:_0x482e4d})=>_0x1c83c9[_0x1c1a('0x4b')]==_0x39248e&&_0x1c83c9[_0x1c1a('0x4')]==_0x482e4d),_0x223647=_0x1437a0[_0x1c1a('0x11')](({type:_0xeaa8aa,subType:_0x30e92c})=>_0x307601[_0x1c1a('0x4b')]==_0xeaa8aa&&_0x307601[_0x1c1a('0x4')]==_0x30e92c);if(_0x48c87c<0x0||_0x223647<0x0)return!0x1;const _0x2cb99f=_0x1c83c9[_0x1c1a('0x67')](),_0x59a482=_0x307601['getFirstRange']();if((0x0==_0x48c87c||0x1==_0x48c87c)&&0x2==_0x223647&&_0x2cb99f['isIntersecting'](_0x59a482))return!0x0;if(0x2==_0x48c87c&&0x3==_0x223647){const _0x3fa262=_0x453d9f[_0x1c1a('0xa')](_0x2cb99f,_0x1c1a('0x59'))['filter'](({suggestion:_0x40c036,meta:_0x2fdb07})=>_0x2fdb07[_0x1c1a('0x73')]&&_0x1c1a('0x12')==_0x40c036[_0x1c1a('0x4')]);if(_0x3fa262['length']>0x1&&_0x59a482[_0x1c1a('0x4c')][_0x1c1a('0xb')](_0x2cb99f[_0x1c1a('0x36')]))return!0x0;if(0x1==_0x3fa262[_0x1c1a('0x4f')]&&(_0x2cb99f[_0x1c1a('0x36')][_0x1c1a('0xb')](_0x59a482[_0x1c1a('0x4c')])||_0x2cb99f[_0x1c1a('0x4c')]['isEqual'](_0x59a482['start'])))return!0x0;}if(0x3==_0x48c87c&&0x3==_0x223647&&_0x2cb99f['start']['isBefore'](_0x59a482[_0x1c1a('0x36')])){const _0x555311=_0x2cb99f[_0x1c1a('0x4c')][_0x1c1a('0x21')],_0x1891d1=_0x59a482[_0x1c1a('0x36')]['nodeBefore'];return _0x1c1bf8[_0x1c1a('0x26')](_0x555311)&&_0x555311===_0x1891d1;}return!0x1;}function _0x4c8198(_0x4a4b0c,_0x93b5ed){return _0x303eab(_0x4a4b0c,_0x93b5ed)?[_0x4a4b0c,_0x93b5ed]:_0x303eab(_0x93b5ed,_0x4a4b0c)?[_0x93b5ed,_0x4a4b0c]:null;}_0x26ec7f[_0x1c1a('0x25')]['document'][_0x1c1a('0x58')](()=>{let _0x3c1de9=!0x1;const _0x4cca0e=Array[_0x1c1a('0x2f')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x55')][_0x1c1a('0x14')]());for(const {name:_0x57be56,data:_0x57eadf}of _0x4cca0e){const {group:_0x243bb1,type:_0x287131,subType:_0x4052c4,id:_0x17e66f}=_0x453d9f[_0x1c1a('0x2b')](_0x57be56);if(_0x1c1a('0x29')==_0x243bb1&&_0x453d9f['hasSuggestion'](_0x17e66f)){if(_0x1c1a('0x50')==_0x287131&&(_0x1c1a('0x3f')==_0x4052c4||_0x1c1a('0x31')==_0x4052c4)){const _0x48940b=_0x453d9f['getSuggestion'](_0x17e66f);if(_0x57eadf['newRange']){const _0x1aa8e4=_0x48940b['getFirstRange']()[_0x1c1a('0xe')]();if(_0x1c1bf8[_0x1c1a('0x26')](_0x1aa8e4))continue;_0x453d9f[_0x1c1a('0x7')](_0x48940b),_0x3c1de9=!0x0;}}if(_0x1c1a('0x59')==_0x287131&&'imageCaption'==_0x4052c4&&!_0x57eadf['newRange']){const _0x12ff2f=_0x453d9f[_0x1c1a('0x43')](_0x17e66f);_0x12ff2f[_0x1c1a('0x23')]&&_0x12ff2f[_0x1c1a('0x23')]['isInContent']&&(_0x453d9f[_0x1c1a('0x7')](_0x12ff2f[_0x1c1a('0x23')]),_0x3c1de9=!0x0);}}}return _0x3c1de9;}),_0x26ec7f['plugins'][_0x1c1a('0x5e')](_0x1c1a('0x1a'))&&_0x453d9f['enableCommand'](_0x1c1a('0x5f'),(_0x2dbe8b,_0xce3cb9)=>{const _0x338283=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]);_0x338283[_0x1c1a('0x47')](_0x1c1a('0x60'))!=_0xce3cb9[_0x1c1a('0x60')]&&_0x26ec7f['model'][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x338283,{'commandName':_0x1c1a('0x5f'),'commandParams':[_0xce3cb9]});});}),_0x26ec7f[_0x1c1a('0x45')]['has'](_0x1c1a('0x16'))&&_0x453d9f['enableCommand'](_0x1c1a('0x3'),(_0x37302e,_0x2093eb)=>{const _0x58663f=_0x1c1bf8[_0x1c1a('0x3e')](_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x32')][_0x1c1a('0x18')]);(_0x58663f[_0x1c1a('0x1f')](_0x1c1a('0x56'))?_0x58663f['getAttribute'](_0x1c1a('0x56')):'')!=_0x2093eb[_0x1c1a('0x54')]&&_0x26ec7f[_0x1c1a('0x25')][_0x1c1a('0x63')](()=>{_0x453d9f[_0x1c1a('0x2c')](_0x58663f,{'commandName':_0x1c1a('0x3'),'commandParams':[_0x2093eb]});});}),_0x453d9f['_descriptionFactory'][_0x1c1a('0x57')](_0x3fcabd=>{if(!!_0x1437a0[_0x1c1a('0x5c')](({type:_0x2334e0,subType:_0x1eb3f1})=>_0x3fcabd[_0x1c1a('0x4b')]==_0x2334e0&&_0x3fcabd[_0x1c1a('0x4')]==_0x1eb3f1))return _0x3fcabd[_0x1c1a('0x37')]?{}:void 0x0;}),_0x453d9f[_0x1c1a('0x39')][_0x1c1a('0x57')](_0x174a17=>{if(_0x1c1a('0x59')==_0x174a17[_0x1c1a('0x4b')]||'deletion'==_0x174a17[_0x1c1a('0x4b')]){const _0x4b43f3=_0x174a17['getContainedElement']();if(_0x4b43f3&&_0x4b43f3['is'](_0x1c1a('0x6'),_0x1c1a('0x74')))return{'type':_0x1c1a('0x59')==_0x174a17[_0x1c1a('0x4b')]?_0x1c1a('0x4d'):_0x1c1a('0x1e'),'element':_0x4b43f3,'quantity':0x1};}}),_0x453d9f[_0x1c1a('0x39')][_0x1c1a('0x57')](_0x1f20c0=>_0x1c1a('0x50')==_0x1f20c0[_0x1c1a('0x4b')]&&'convertInlineImageToBlock'==_0x1f20c0['subType']?{'type':_0x1c1a('0x6f'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x1c1a('0x50')==_0x1f20c0[_0x1c1a('0x4b')]&&_0x1c1a('0x13')==_0x1f20c0[_0x1c1a('0x4')]?{'type':_0x1c1a('0x6f'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x453d9f[_0x1c1a('0x39')]['registerDescriptionCallback'](_0xc110ab=>{const {data:_0x54594c}=_0xc110ab;if(_0x54594c){if(_0x1c1a('0x8')==_0x54594c['commandName']){const _0xd7e7f3=_0x54594c['commandParams'][0x0][_0x1c1a('0x6a')];return _0x3a5963(_0x1c1a('0x34')===_0xd7e7f3?_0x5ba8cd(_0xd04ff5,'FORMAT_SIDE_IMAGE'):_0x3f48bd[_0xd7e7f3]||_0xd7e7f3);}if(_0x1c1a('0x3')==_0x54594c['commandName']){const _0x592311=_0x54594c['commandParams'][0x0][_0x1c1a('0x54')];return _0x592311?{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x40'),'\x22'+_0x592311+'\x22')}:{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,'*Remove\x20image\x20text\x20alternative*')};}if(_0x1c1a('0x5f')==_0x54594c[_0x1c1a('0x6b')]){const _0x1fb11f=_0x54594c[_0x1c1a('0x2e')][0x0][_0x1c1a('0x60')];return _0x1fb11f?{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x10'),_0x1fb11f)}:{'type':'format','content':_0x5ba8cd(_0xd04ff5,'*Reset\x20image\x20width*')};}}function _0x3a5963(_0x204d72){return{'type':_0x1c1a('0x6f'),'content':_0x5ba8cd(_0xd04ff5,_0x1c1a('0x19'),_0x204d72)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8ebe=['model','handleSuggestionDescription','subType','commandName','getSelectedElement','accept','formatBlock','locale','getContainedElement','handleReplaceImageCommand','getSuggestions','getSuggestionCallback','registerCustomCallback','document','_descriptionFactory','markBlockFormat','replaceImageSource','discard','TrackChangesEditing','Users','_suggestionFactory','getAttribute','editor','plugins','source','has','registerDescriptionCallback','ImageEditing','format','data','get'];(function(_0xcf3760,_0x8ebe6b){const _0x3eecd7=function(_0x15787d){while(--_0x15787d){_0xcf3760['push'](_0xcf3760['shift']());}};_0x3eecd7(++_0x8ebe6b);}(_0x8ebe,0x9a));const _0x3eec=function(_0xcf3760,_0x8ebe6b){_0xcf3760=_0xcf3760-0x0;let _0x3eecd7=_0x8ebe[_0xcf3760];return _0x3eecd7;};import{Plugin as _0x5561cf}from'ckeditor5/src/core';import{getTranslation as _0x27040a}from'../utils/common-translations';export default class Y extends _0x5561cf{['afterInit'](){if(!this['editor'][_0x3eec('0x18')][_0x3eec('0x1a')](_0x3eec('0x1c')))return;const _0x3920fe=this['editor'][_0x3eec('0x18')][_0x3eec('0x0')]('TrackChangesEditing');_0x3920fe['enableCommand']('replaceImageSource',(_0x4886f1,_0xfd373c)=>this['handleReplaceImageCommand'](_0x4886f1,_0xfd373c)),_0x3920fe['_suggestionFactory'][_0x3eec('0xd')](_0x3eec('0x7'),_0x3eec('0x11'),'accept',_0x3920fe[_0x3eec('0x15')]['getSuggestionCallback'](_0x3eec('0x7'),null,'discard')),_0x3920fe[_0x3eec('0x15')]['registerCustomCallback'](_0x3eec('0x7'),_0x3eec('0x11'),_0x3eec('0x12'),_0x3920fe['_suggestionFactory'][_0x3eec('0xc')]('formatBlock',null,_0x3eec('0x6'))),_0x3920fe[_0x3eec('0xf')][_0x3eec('0x1b')](_0x3b214e=>this['handleSuggestionDescription'](_0x3b214e));}[_0x3eec('0xa')](_0x4d6c86,_0x4b8612){const _0x4a55fd=this[_0x3eec('0x17')][_0x3eec('0x18')][_0x3eec('0x0')](_0x3eec('0x13')),_0x25dcce=this[_0x3eec('0x17')][_0x3eec('0x1')][_0x3eec('0xe')]['selection'][_0x3eec('0x5')]();this[_0x3eec('0x17')][_0x3eec('0x1')]['change'](()=>{let _0x5ca163=_0x25dcce[_0x3eec('0x16')]('src');const _0x245c43=this['editor']['plugins']['get'](_0x3eec('0x14'))['me'];for(const _0x44685d of _0x4a55fd[_0x3eec('0xb')]({'skipNotAttached':!0x0})){const _0x593e66=_0x44685d[_0x3eec('0x9')]();if(_0x3eec('0x11')===_0x44685d[_0x3eec('0x3')]&&_0x593e66===_0x25dcce){_0x44685d['author']!==_0x245c43&&_0x44685d[_0x3eec('0x12')](),_0x5ca163=_0x44685d[_0x3eec('0x1e')]['commandParams'][0x0][_0x3eec('0x19')];break;}}_0x4d6c86(_0x4b8612),_0x4a55fd[_0x3eec('0x10')](_0x25dcce,{'commandName':_0x3eec('0x11'),'commandParams':[{'source':_0x5ca163}]},[],'replaceImageSource');});}[_0x3eec('0x2')](_0x4dde57){const {data:_0x2d28e3}=_0x4dde57;if(_0x2d28e3&&_0x3eec('0x11')===_0x2d28e3[_0x3eec('0x4')]){const _0xf3bca6='*Format:*\x20replace\x20image\x20URL';return{'type':_0x3eec('0x1d'),'content':_0x27040a(this['editor'][_0x3eec('0x8')],_0xf3bca6)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c3d=['_trackChangesValueDuringImport','dataInsert','collaboration_features','lowest','importWord','get','commands','plugins','forEach','enableCommand','listenTo','value','editor','execute','track_changes','_handleImportedData','afterInit','TrackChangesEditing','_trackChangesExecuted'];(function(_0x313bde,_0x5c3d2d){const _0x34040c=function(_0x4935fb){while(--_0x4935fb){_0x313bde['push'](_0x313bde['shift']());}};_0x34040c(++_0x5c3d2d);}(_0x5c3d,0x132));const _0x3404=function(_0x313bde,_0x5c3d2d){_0x313bde=_0x313bde-0x0;let _0x34040c=_0x5c3d[_0x313bde];return _0x34040c;};import{Plugin as _0x3e7675}from'ckeditor5/src/core';export default class Z extends _0x3e7675{constructor(_0x5a71ff){super(_0x5a71ff),this[_0x3404('0x11')]=!0x1,this[_0x3404('0x10')]=!0x1;}[_0x3404('0xe')](){const _0x1a91d7=this['editor'],_0x18ab54=_0x1a91d7[_0x3404('0x4')][_0x3404('0x3')](_0x3404('0x2')),_0x11965b=_0x1a91d7[_0x3404('0x4')][_0x3404('0x3')]('trackChanges');_0x18ab54&&(_0x18ab54['on'](_0x3404('0xb'),(_0x15cb58,[,_0x3c08fe])=>{this[_0x3404('0x11')]=_0x11965b[_0x3404('0x9')],_0x3c08fe[_0x3404('0x0')][_0x3404('0xc')]=!this[_0x3404('0x11')];},{'priority':'high'}),this[_0x3404('0x8')](_0x18ab54,_0x3404('0x12'),this[_0x3404('0xd')]['bind'](this)),this[_0x3404('0x8')](_0x18ab54,'dataInsert',()=>{this[_0x3404('0x10')]&&(_0x11965b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x3404('0x1')}),_0x1a91d7[_0x3404('0x5')]['get'](_0x3404('0xf'))[_0x3404('0x7')](_0x3404('0x2')));}['_handleImportedData'](_0x575ecb,_0x24af30){const {suggestions:_0x3281ab}=_0x24af30,_0x429d64=this[_0x3404('0xa')][_0x3404('0x4')]['get']('trackChanges'),_0xed4d32=_0x429d64[_0x3404('0x9')];this[_0x3404('0x11')]!==_0xed4d32&&(_0x429d64['execute'](),this[_0x3404('0x10')]=!0x0),_0x3281ab&&_0x3281ab[_0x3404('0x6')](({id:_0x30e9e1,type:_0x7d8254,author:_0x542566,created_at:_0x4f84c0})=>{const _0x23c2f3={'id':_0x30e9e1,'type':_0x7d8254,'authorId':this['editor']['plugins'][_0x3404('0x3')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x542566,'createdAt':_0x4f84c0?new Date(_0x4f84c0):new Date(),'source':_0x3404('0x2')}}};this['editor'][_0x3404('0x5')][_0x3404('0x3')]('TrackChangesEditing')['_setSuggestionData'](_0x23c2f3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x416b=['_descriptionFactory','IndentEditing','filter','getItems','change','registerDescriptionCallback','locale','editor','markBlockFormat','enableCommand','commandName','*Indent:*\x20%0','plugins','from','selection','blockIndent','format','model','outdentBlock','getItemLabel','*Outdent:*\x20%0','indentBlock','document','outdent','checkAttribute','schema'];(function(_0x275705,_0x416b48){const _0x481f86=function(_0x165113){while(--_0x165113){_0x275705['push'](_0x275705['shift']());}};_0x481f86(++_0x416b48);}(_0x416b,0x109));const _0x481f=function(_0x275705,_0x416b48){_0x275705=_0x275705-0x0;let _0x481f86=_0x416b[_0x275705];return _0x481f86;};import{Plugin as _0x1aeeba}from'ckeditor5/src/core';import{getTranslation as _0x1bd460}from'../utils/common-translations';export default class tt extends _0x1aeeba{['afterInit'](){const _0x123680=this[_0x481f('0x2')],_0x3e5dcc=_0x123680[_0x481f('0x7')]['get']('TrackChangesEditing');_0x123680['plugins']['has'](_0x481f('0x16'))&&(_0x3e5dcc[_0x481f('0x4')]('indent'),_0x3e5dcc['enableCommand'](_0x481f('0x12')));const _0x1e1ba8=_0x123680[_0x481f('0x1')];if(_0x123680[_0x481f('0x7')]['has']('IndentBlock')){for(const _0x38dbd3 of[_0x481f('0x10'),_0x481f('0xd')])_0x3e5dcc['enableCommand'](_0x38dbd3,()=>{const _0x197d38=Array[_0x481f('0x8')](this['editor'][_0x481f('0xc')][_0x481f('0x11')][_0x481f('0x9')]['getSelectedBlocks']())[_0x481f('0x17')](_0x44890b=>this['editor']['model'][_0x481f('0x14')][_0x481f('0x13')](_0x44890b,_0x481f('0xa')));_0x123680['model'][_0x481f('0x19')](()=>{for(const _0x26b181 of _0x197d38)_0x3e5dcc[_0x481f('0x3')](_0x26b181,{'commandName':_0x38dbd3,'commandParams':[{'value':''}],'formatGroupId':_0x481f('0x10')});});});_0x3e5dcc[_0x481f('0x15')][_0x481f('0x0')](_0x511c9a=>{const {data:_0x4afa89}=_0x511c9a;if(!_0x4afa89)return;if(_0x481f('0x10')!=_0x4afa89[_0x481f('0x5')]&&'outdentBlock'!=_0x4afa89[_0x481f('0x5')])return;const _0x3c1f91=_0x511c9a[_0x481f('0x18')]()[0x0],_0x47e657=_0x3e5dcc[_0x481f('0x15')][_0x481f('0xe')](_0x3c1f91);return'indentBlock'==_0x4afa89[_0x481f('0x5')]?{'type':_0x481f('0xb'),'content':_0x1bd460(_0x1e1ba8,_0x481f('0x6'),_0x47e657)}:_0x481f('0xd')==_0x4afa89[_0x481f('0x5')]?{'type':_0x481f('0xb'),'content':_0x1bd460(_0x1e1ba8,_0x481f('0xf'),_0x47e657)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4dea=['requires','init','TrackChangesEditing','input'];(function(_0x18abbd,_0x4dea4e){var _0x70262d=function(_0x1d4106){while(--_0x1d4106){_0x18abbd['push'](_0x18abbd['shift']());}};_0x70262d(++_0x4dea4e);}(_0x4dea,0xcb));var _0x7026=function(_0x18abbd,_0x4dea4e){_0x18abbd=_0x18abbd-0x0;var _0x70262d=_0x4dea[_0x18abbd];return _0x70262d;};import{Plugin as _0x41da31}from'ckeditor5/src/core';import{Input as _0x294040}from'ckeditor5/src/typing';export default class it extends _0x41da31{static get[_0x7026('0x1')](){return[_0x294040];}[_0x7026('0x2')](){this['editor']['plugins']['get'](_0x7026('0x3'))['enableCommand'](_0x7026('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ad4=['getAttribute','commandName','hasAttribute','unlink','TrackChangesEditing','model','document','getRanges','afterInit','format','getFirstRange','plugins','change','isCollapsed','markInlineFormat','registerDescriptionCallback','editor','get','_descriptionFactory','*Set\x20link:*\x20%0','LinkEditing','commandParams','link','enableCommand','selection','linkHref','*Remove\x20link*'];(function(_0x56109a,_0x1ad49b){const _0x49fa9b=function(_0x5d453c){while(--_0x5d453c){_0x56109a['push'](_0x56109a['shift']());}};_0x49fa9b(++_0x1ad49b);}(_0x1ad4,0x1cd));const _0x49fa=function(_0x56109a,_0x1ad49b){_0x56109a=_0x56109a-0x0;let _0x49fa9b=_0x1ad4[_0x56109a];return _0x49fa9b;};import{Plugin as _0x493b26}from'ckeditor5/src/core';import{findAttributeRange as _0x160c3c}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x12b052}from'./utils';import{getTranslation as _0x240dd2}from'../utils/common-translations';export default class et extends _0x493b26{[_0x49fa('0x6')](){const _0x34f232=this[_0x49fa('0xe')];if(!_0x34f232[_0x49fa('0x9')]['has'](_0x49fa('0x12')))return;const _0x2ccdd8=_0x34f232[_0x49fa('0x9')][_0x49fa('0xf')](_0x49fa('0x2'));_0x2ccdd8[_0x49fa('0x15')]('link',(_0x14cb82,_0xecdd14)=>{const _0x2441c0=_0x34f232[_0x49fa('0x3')][_0x49fa('0x4')][_0x49fa('0x16')];let _0xaa1b2=[];if(_0x2441c0[_0x49fa('0xb')]){if(!_0x2441c0[_0x49fa('0x0')](_0x49fa('0x17')))return void _0x14cb82(_0xecdd14);{const _0x953924=_0x160c3c(_0x2441c0['getFirstPosition'](),_0x49fa('0x17'),_0x2441c0[_0x49fa('0x19')](_0x49fa('0x17')),_0x34f232[_0x49fa('0x3')]);_0xaa1b2=[_0x953924];}}else _0xaa1b2=Array['from'](_0x2441c0[_0x49fa('0x5')]());_0x34f232[_0x49fa('0x3')]['change'](()=>{for(const _0x597fb1 of _0xaa1b2)_0x2ccdd8[_0x49fa('0xc')](_0x597fb1,{'commandName':_0x49fa('0x14'),'commandParams':[_0xecdd14]});});}),_0x2ccdd8['enableCommand'](_0x49fa('0x1'),()=>{const _0x20b10d=this['editor']['model'],_0x364af3=_0x20b10d[_0x49fa('0x4')]['selection'];_0x20b10d[_0x49fa('0xa')](()=>{let _0xed8ef7=[];if(_0x364af3[_0x49fa('0xb')])_0xed8ef7=[_0x160c3c(_0x364af3['getFirstPosition'](),_0x49fa('0x17'),_0x364af3['getAttribute'](_0x49fa('0x17')),_0x34f232[_0x49fa('0x3')])];else _0xed8ef7=_0x12b052(_0x49fa('0x17'),_0x364af3[_0x49fa('0x8')](),_0x34f232[_0x49fa('0x3')]);for(const _0x1d7abe of _0xed8ef7)_0x2ccdd8['markInlineFormat'](_0x1d7abe,{'commandName':_0x49fa('0x1'),'commandParams':[]});});}),_0x2ccdd8[_0x49fa('0x10')][_0x49fa('0xd')](_0x766638=>{const {data:_0x3821eb}=_0x766638,_0x126569=_0x34f232['locale'];if(_0x3821eb){if(_0x49fa('0x14')==_0x3821eb[_0x49fa('0x1a')]){const _0x23e049=_0x3821eb[_0x49fa('0x13')][0x0];return{'type':'format','content':_0x240dd2(_0x126569,_0x49fa('0x11'),'\x22'+_0x23e049+'\x22')};}return _0x49fa('0x1')==_0x3821eb[_0x49fa('0x1a')]?{'type':_0x49fa('0x7'),'content':_0x240dd2(_0x126569,_0x49fa('0x18'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ea=['plugins','document','listType','outdentList','replace','end','*Check\x20item*','indentList','format','previousSibling','*Indent:*\x20%0','isObject','ELEMENT_LIST_ITEM','todoListChecked','findIndex','before','has','todoList','selection','slice','from','_descriptionFactory','markBlockFormat','schema','value','model','filter','checkTodoList','getAttribute','*Uncheck\x20item*','TrackChangesEditing','nextSibling','createRange','numberedList','name','afterInit','listIndent','commandName','length','commandParams','add','commands','ELEMENT_NUMBERED_LIST','checkChild','ListEditing','element','numbered','enableCommand','ELEMENT_TODO_LIST','push','paragraph','createPositionAt','bulletedList','locale','*Change\x20to:*\x20%0','getSelectedBlocks','ELEMENT_BULLETED_LIST','registerDescriptionCallback','listItem','*Outdent:*\x20%0','parent','_selectedElements'];(function(_0x145643,_0x53ea2e){const _0x1c7975=function(_0x33de77){while(--_0x33de77){_0x145643['push'](_0x145643['shift']());}};_0x1c7975(++_0x53ea2e);}(_0x53ea,0xb9));const _0x1c79=function(_0x145643,_0x53ea2e){_0x145643=_0x145643-0x0;let _0x1c7975=_0x53ea[_0x145643];return _0x1c7975;};import{Plugin as _0x38c5dc}from'ckeditor5/src/core';import{getTranslation as _0xa99435}from'../utils/common-translations';export default class st extends _0x38c5dc{[_0x1c79('0x24')](){const _0x437326=this['editor'],_0x4f98f3=_0x437326[_0x1c79('0x36')];if(!_0x437326[_0x1c79('0x1')][_0x1c79('0x11')](_0x1c79('0x2d')))return;const _0x2249c0=_0x437326[_0x1c79('0x1')]['get'](_0x1c79('0x1f')),_0x3fdf33=_0x437326[_0x1c79('0x1')][_0x1c79('0x11')]('TodoListEditing');function _0x1a406c(_0x587cbc){return()=>{const _0x4e4055=_0x437326[_0x1c79('0x1a')][_0x1c79('0x2')][_0x1c79('0x13')],_0x4bfec3=_0x437326[_0x1c79('0x2a')]['get'](_0x587cbc);if(_0x4bfec3['value'])return void _0x437326['execute'](_0x1c79('0x33'),{});const _0x406197=_0x587cbc[_0x1c79('0x14')](0x0,-0x4),_0x51e5a7=function(_0x10e7cc,_0x1012e3,_0x4b2eaa){let _0x25787f=Array[_0x1c79('0x15')](_0x10e7cc)[_0x1c79('0x1b')](_0x3a17a1=>function(_0x3d2f8c,_0x1e9c10){return _0x1e9c10[_0x1c79('0x2c')](_0x3d2f8c[_0x1c79('0x3d')],'listItem')&&!_0x1e9c10[_0x1c79('0xc')](_0x3d2f8c);}(_0x3a17a1,_0x4b2eaa));_0x25787f=_0x25787f[_0x1c79('0x1b')](_0x1741a1=>!_0x1741a1['is'](_0x1c79('0x2e'),_0x1c79('0x3b'))||_0x1741a1[_0x1c79('0x1d')](_0x1c79('0x3'))!=_0x1012e3);const _0x436b5d=new Set();for(const _0x1d9085 of _0x25787f)_0x1d9085['is'](_0x1c79('0x2e'),_0x1c79('0x3b'))?_0x436b5d[_0x1c79('0x29')](ne(_0x1d9085)):_0x436b5d[_0x1c79('0x29')](_0x1d9085);return Array['from'](_0x436b5d);}(_0x4e4055[_0x1c79('0x38')](),_0x406197,_0x437326[_0x1c79('0x1a')][_0x1c79('0x18')]);_0x437326[_0x1c79('0x1a')]['change'](()=>{for(const _0x37e44c of _0x51e5a7)_0x2249c0[_0x1c79('0x17')](_0x37e44c,{'commandName':_0x587cbc,'commandParams':[{'forceValue':!_0x4bfec3[_0x1c79('0x19')]}],'formatGroupId':'blockName'},oe(_0x37e44c));});};}function _0x504036(_0x122290){return()=>{const _0x591533=function(_0x589a4e){let _0x1446c0=Array[_0x1c79('0x15')](_0x589a4e);const _0x78fb98=_0x1446c0[_0x1c79('0xf')](_0x1c7cca=>'listItem'!=_0x1c7cca[_0x1c79('0x23')]);return _0x78fb98>-0x1&&(_0x1446c0=_0x1446c0[_0x1c79('0x14')](0x0,_0x78fb98)),_0x1446c0;}(_0x437326['model']['document'][_0x1c79('0x13')][_0x1c79('0x38')]()),_0x32b284=_0x437326[_0x1c79('0x1a')][_0x1c79('0x21')](_0x437326[_0x1c79('0x1a')][_0x1c79('0x34')](_0x591533[0x0],_0x1c79('0x10')),_0x437326[_0x1c79('0x1a')][_0x1c79('0x34')](_0x591533[_0x591533[_0x1c79('0x27')]-0x1],_0x1c79('0x6')));_0x437326[_0x1c79('0x1a')]['change'](()=>{_0x2249c0[_0x1c79('0x17')](_0x32b284,{'commandName':_0x122290,'commandParams':[],'formatGroupId':'listIndent'},function(_0x234d71){const _0x16bd9d=new Set();for(const _0x1fb6ad of _0x234d71){let _0x2b8a31=_0x1fb6ad[_0x1c79('0x20')];for(;_0x2b8a31&&_0x2b8a31[_0x1c79('0x1d')](_0x1c79('0x25'))>_0x1fb6ad[_0x1c79('0x1d')](_0x1c79('0x25'));)_0x16bd9d[_0x1c79('0x29')](_0x2b8a31),_0x2b8a31=_0x2b8a31[_0x1c79('0x20')];}return Array['from'](_0x16bd9d);}(_0x591533));});};}_0x2249c0['enableCommand']('numberedList',_0x1a406c(_0x1c79('0x22'))),_0x2249c0[_0x1c79('0x30')](_0x1c79('0x35'),_0x1a406c(_0x1c79('0x35'))),_0x3fdf33&&_0x2249c0[_0x1c79('0x30')]('todoList',_0x1a406c(_0x1c79('0x12'))),_0x2249c0[_0x1c79('0x30')]('indentList',_0x504036(_0x1c79('0x8'))),_0x2249c0[_0x1c79('0x30')](_0x1c79('0x4'),_0x504036(_0x1c79('0x4'))),_0x3fdf33&&_0x2249c0[_0x1c79('0x30')](_0x1c79('0x1c'),()=>{const _0x3015b9=_0x437326['commands']['get'](_0x1c79('0x1c')),_0x151a7e=Array[_0x1c79('0x15')](_0x3015b9[_0x1c79('0x0')]);_0x151a7e[_0x1c79('0x1b')](_0x1e9f3d=>_0x1e9f3d[_0x1c79('0x1d')](_0x1c79('0xe'))!=_0x3015b9[_0x1c79('0x19')]),_0x437326[_0x1c79('0x1a')]['change'](()=>{for(const _0x1b976d of _0x151a7e)_0x2249c0['markBlockFormat'](_0x1b976d,{'commandName':_0x1c79('0x1c'),'commandParams':[{'forceValue':!_0x3015b9[_0x1c79('0x19')]}]});});}),_0x2249c0[_0x1c79('0x16')]['registerElementLabel'](_0x1c79('0x3b'),_0x5ce454=>_0xa99435(_0x4f98f3,_0x1c79('0xd'),_0x5ce454)),_0x2249c0['_descriptionFactory'][_0x1c79('0x3a')](_0x220b18=>{const {data:_0x5543eb}=_0x220b18;if(_0x5543eb){if(_0x1c79('0x22')==_0x5543eb[_0x1c79('0x26')]||_0x1c79('0x35')==_0x5543eb[_0x1c79('0x26')]||_0x1c79('0x12')==_0x5543eb[_0x1c79('0x26')])switch(_0x5543eb[_0x1c79('0x26')][_0x1c79('0x5')]('List','')){case'bulleted':return _0x34fffc(_0xa99435(_0x4f98f3,_0x1c79('0x39')));case _0x1c79('0x2f'):return _0x34fffc(_0xa99435(_0x4f98f3,_0x1c79('0x2b')));case'todo':return _0x34fffc(_0xa99435(_0x4f98f3,_0x1c79('0x31')));}if('indentList'==_0x5543eb['commandName'])return{'type':'format','content':_0xa99435(_0x4f98f3,_0x1c79('0xb'),_0xa99435(_0x4f98f3,'ELEMENT_LIST_ITEM'))};if(_0x1c79('0x4')==_0x5543eb[_0x1c79('0x26')])return{'type':_0x1c79('0x9'),'content':_0xa99435(_0x4f98f3,_0x1c79('0x3c'),_0xa99435(_0x4f98f3,_0x1c79('0xd')))};if(_0x1c79('0x1c')==_0x5543eb['commandName'])return _0x5543eb[_0x1c79('0x28')][0x0]['forceValue']?{'type':_0x1c79('0x9'),'content':_0xa99435(_0x4f98f3,_0x1c79('0x7'))}:{'type':'format','content':_0xa99435(_0x4f98f3,_0x1c79('0x1e'))};}function _0x34fffc(_0x2fd77c){return{'type':_0x1c79('0x9'),'content':_0xa99435(_0x4f98f3,_0x1c79('0x37'),_0x2fd77c)};}});}}function ne(_0x29ef17){const _0x476492=_0x29ef17[_0x1c79('0x1d')](_0x1c79('0x25'));if(0x0==_0x476492)return _0x29ef17;let _0x1efd0a=_0x29ef17;for(;_0x29ef17[_0x1c79('0xa')]&&_0x29ef17[_0x1c79('0xa')]['is'](_0x1c79('0x2e'),_0x1c79('0x3b'));){const _0x5a3de2=_0x29ef17['previousSibling'][_0x1c79('0x1d')](_0x1c79('0x25'));if(_0x5a3de2==_0x476492)_0x1efd0a=_0x29ef17[_0x1c79('0xa')];else{if(_0x5a3de2<_0x476492)break;}_0x29ef17=_0x29ef17[_0x1c79('0xa')];}return _0x1efd0a;}function oe(_0x1a44c9){const _0xf49ab1=[];if(_0x1a44c9['is'](_0x1c79('0x2e'),_0x1c79('0x3b'))&&_0x1a44c9[_0x1c79('0x1d')](_0x1c79('0x25'))>0x0){let _0x369e7c=_0x1a44c9['nextSibling'];for(;_0x369e7c&&_0x1c79('0x3b')==_0x369e7c[_0x1c79('0x23')]&&_0x369e7c['getAttribute']('listIndent')==_0x1a44c9['getAttribute'](_0x1c79('0x25'));)_0xf49ab1[_0x1c79('0x32')](_0x369e7c),_0x369e7c=_0x369e7c[_0x1c79('0x20')];}return _0xf49ab1;}
|