@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231005.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4745=['*Reset\x20font\x20color*','selection','*Set\x20font\x20family:*\x20%0','has','getRanges','value','change','*Set\x20font\x20background\x20color:*\x20%0','fontColor','get','_descriptionFactory','fontSize','commandName','config','*Set\x20font\x20color:*\x20%0','trim','fontBackgroundColor','document','*Reset\x20font\x20family*','locale','title','commandParams','toLowerCase','*Reset\x20font\x20background\x20color*','normalizeSizeOptions','model','fontFamily','from','format','*Reset\x20font\x20size*','enableCommand','*Set\x20font\x20size:*\x20%0','isCollapsed','fontSize.options','TrackChangesEditing','plugins','fontColor.colors','_enableCommand','markInlineFormat','editor','FontSizeEditing','FontColorEditing','FontSize'];(function(_0x13b304,_0x474540){const _0x410712=function(_0x6d4559){while(--_0x6d4559){_0x13b304['push'](_0x13b304['shift']());}};_0x410712(++_0x474540);}(_0x4745,0x69));const _0x4107=function(_0x13b304,_0x474540){_0x13b304=_0x13b304-0x0;let _0x410712=_0x4745[_0x13b304];return _0x410712;};import{Plugin as _0x3e070b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x3dcea4}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x195a1f}from'./utils';import{getTranslation as _0x1be438}from'../utils/common-translations';const eo=[{'pluginName':_0x4107('0x15'),'commandName':_0x4107('0x23')},{'pluginName':'FontFamilyEditing','commandName':_0x4107('0x7')},{'pluginName':_0x4107('0x16'),'commandName':_0x4107('0x20')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x4107('0x28')}];export default class W extends _0x3e070b{['afterInit'](){const _0x59a7a1=this[_0x4107('0x14')][_0x4107('0x0')];for(const {pluginName:_0x3b3427,commandName:_0x4d4cce}of eo)this[_0x4107('0x14')][_0x4107('0x10')][_0x4107('0x1b')](_0x3b3427)&&this['_enableCommand'](_0x4d4cce);this[_0x4107('0x14')]['plugins'][_0x4107('0x21')](_0x4107('0xf'))[_0x4107('0x22')]['registerDescriptionCallback'](_0x23706b=>{const _0x3126d7=_0x59a7a1['t'],{data:_0x54941e}=_0x23706b;if(null!=_0x54941e){if(_0x4107('0x23')==_0x54941e[_0x4107('0x24')]){const _0x5808a6=_0x54941e[_0x4107('0x2')][0x0][_0x4107('0x1d')];if(_0x5808a6){const _0x2b3972=_0x3126d7(this[_0x4107('0x14')]['plugins']['get'](_0x4107('0x17'))[_0x4107('0x5')](this[_0x4107('0x14')][_0x4107('0x25')][_0x4107('0x21')](_0x4107('0xe')))['find'](_0x2daeae=>_0x2daeae[_0x4107('0x6')]==_0x5808a6)[_0x4107('0x1')])[_0x4107('0x3')]();return{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0xc'),_0x2b3972)};}return{'type':'format','content':_0x1be438(_0x59a7a1,_0x4107('0xa'))};}if('fontFamily'==_0x54941e[_0x4107('0x24')]){const _0x2402a1=_0x54941e[_0x4107('0x2')][0x0][_0x4107('0x1d')];return _0x2402a1?{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0x1a'),_0x2402a1)}:{'type':'format','content':_0x1be438(_0x59a7a1,_0x4107('0x2a'))};}if(_0x4107('0x20')==_0x54941e[_0x4107('0x24')]){const _0x16196d=_0x54941e[_0x4107('0x2')][0x0]['value'];if(_0x16196d){const _0x1a3dcc=_0x3dcea4(this[_0x4107('0x14')]['config']['get'](_0x4107('0x11')))['find'](_0x540b73=>_0x540b73[_0x4107('0x6')]==_0x16196d);let _0x1438e7=_0x16196d,_0x3935e9='';return _0x1a3dcc&&(_0x1438e7=_0x1a3dcc['label'],_0x3935e9=_0x3126d7(_0x1438e7)[_0x4107('0x3')]()),{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0x26'),_0x3935e9)[_0x4107('0x27')](),'color':{'value':_0x16196d,'title':_0x3935e9||_0x1438e7}};}return{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0x18'))};}if(_0x4107('0x28')==_0x54941e[_0x4107('0x24')]){const _0x16d185=_0x54941e[_0x4107('0x2')][0x0][_0x4107('0x1d')];if(_0x16d185){const _0x423e76=_0x3dcea4(this[_0x4107('0x14')]['config'][_0x4107('0x21')]('fontBackgroundColor.colors'))['find'](_0x4e030c=>_0x4e030c['model']==_0x16d185);let _0x50a280=_0x16d185,_0x2293d9='';return _0x423e76&&(_0x50a280=_0x423e76['label'],_0x2293d9=_0x3126d7(_0x50a280)[_0x4107('0x3')]()),{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0x1f'),_0x2293d9)[_0x4107('0x27')](),'color':{'value':_0x16d185,'title':_0x2293d9||_0x50a280}};}return{'type':_0x4107('0x9'),'content':_0x1be438(_0x59a7a1,_0x4107('0x4'))};}}});}[_0x4107('0x12')](_0x798b82){const _0x193a7e=this['editor'];_0x193a7e[_0x4107('0x10')][_0x4107('0x21')](_0x4107('0xf'))[_0x4107('0xb')](_0x798b82,(_0xdd484e,_0x15e7dc={})=>{const _0x466106=_0x193a7e[_0x4107('0x6')][_0x4107('0x29')][_0x4107('0x19')],_0x4cb34e=_0x15e7dc[_0x4107('0x1d')];_0x466106[_0x4107('0xd')]?_0xdd484e(_0x15e7dc):_0x193a7e[_0x4107('0x6')][_0x4107('0x1e')](()=>{const _0x249ba6=Array[_0x4107('0x8')](_0x466106[_0x4107('0x1c')]());for(const _0x2c2b72 of _0x249ba6){const _0xc52fb9=_0x4cb34e?[_0x2c2b72]:_0x195a1f(_0x798b82,_0x2c2b72,_0x193a7e[_0x4107('0x6')]);for(const _0x1befe5 of _0xc52fb9)_0x193a7e[_0x4107('0x10')][_0x4107('0x21')](_0x4107('0xf'))[_0x4107('0x13')](_0x1befe5,{'commandName':_0x798b82,'commandParams':[{'value':_0x4cb34e}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x559f=['commandName','charAt','forward','toUpperCase','modifySelection','enableCommand','label','slice','*Set\x20format\x20to:*\x20%0','pasteFormat','from','title','fontSize.options','getAttributeProperties','TrackChangesEditing','normalizeSizeOptions','format','selection','fontBackgroundColor','getFirstPosition','join','backward','length','fontSize','change','get','model','keys','copyFormat','getSelectedBlocks','registerDescriptionCallback','commands','getLastPosition','afterInit','plugins','markInlineFormat','commandParams','editor','toLowerCase','isBlock','word','entries','isFormatting','fontColor','getItems','getAttributes','createSelection','schema','boolean','getRanges','document','find','FontSize','isCollapsed','config'];(function(_0x1d166c,_0x559fc7){const _0x26eb11=function(_0x22c53d){while(--_0x22c53d){_0x1d166c['push'](_0x1d166c['shift']());}};_0x26eb11(++_0x559fc7);}(_0x559f,0xde));const _0x26eb=function(_0x1d166c,_0x559fc7){_0x1d166c=_0x1d166c-0x0;let _0x26eb11=_0x559f[_0x1d166c];return _0x26eb11;};import{Plugin as _0x5e1fcf}from'ckeditor5/src/core';import{normalizeColorOptions as _0x473af5}from'ckeditor5/src/ui';import{first as _0x11c450}from'ckeditor5/src/utils';import{getTranslation as _0x59e43a}from'../utils/common-translations';export default class J extends _0x5e1fcf{[_0x26eb('0x1f')](){const _0x4c91d9=this[_0x26eb('0x23')],_0xcec778=_0x4c91d9['model'],_0x2ff04f=_0xcec778[_0x26eb('0x30')][_0x26eb('0xf')],_0x53de18=_0x4c91d9[_0x26eb('0x20')][_0x26eb('0x17')](_0x26eb('0xc')),_0x409133=_0x4c91d9['locale'],_0x580da0=_0x4c91d9[_0x26eb('0x1d')][_0x26eb('0x17')](_0x26eb('0x1a')),_0x5982f9=_0x4c91d9[_0x26eb('0x1d')][_0x26eb('0x17')](_0x26eb('0x7'));_0x580da0&&_0x5982f9&&(_0x53de18[_0x26eb('0x3')](_0x26eb('0x7'),(_0x11aa86,_0x4fa7cc={})=>{const _0x4b70c4=_0x4fa7cc;_0xcec778[_0x26eb('0x16')](()=>{const _0x2a29bb=Array[_0x26eb('0x8')](_0x2ff04f[_0x26eb('0x2f')]()),_0x459f1e=_0x2ff04f[_0x26eb('0x33')]?[io(_0xcec778,_0x2ff04f)]:_0x2a29bb,_0x20373e=!!_0x11c450(function*(_0xe2a3ae,_0x5af2bf){const _0xd05c91=_0x1435b9=>!!_0x11c450(function*(_0x4eb0db,_0x43b99d){for(const [_0xf44e79]of _0x4eb0db[_0x26eb('0x2b')]()){const _0x4dc1dc=_0x43b99d[_0x26eb('0xb')](_0xf44e79);_0x4dc1dc&&_0x4dc1dc[_0x26eb('0x28')]&&(yield _0xf44e79);}}(_0x1435b9,_0x5af2bf));for(const _0x30e4f1 of _0xe2a3ae[_0x26eb('0x2f')]())for(const _0x333ea4 of _0x30e4f1[_0x26eb('0x2a')]())!_0x5af2bf[_0x26eb('0x25')](_0x333ea4)&&_0xd05c91(_0x333ea4)&&(yield _0x333ea4);for(const _0x34ed74 of _0xe2a3ae[_0x26eb('0x1b')]())_0xd05c91(_0x34ed74)&&(yield _0x34ed74);_0xd05c91(_0xe2a3ae)&&(yield _0xe2a3ae);}(_0x2ff04f,_0xcec778[_0x26eb('0x2d')]));if(_0x20373e||0x0!==Object[_0x26eb('0x19')](_0x4b70c4)[_0x26eb('0x14')])for(const _0x5569aa of _0x459f1e)_0x53de18[_0x26eb('0x21')](_0x5569aa,{'commandName':_0x26eb('0x7'),'commandParams':[_0x4b70c4]});});}),_0x53de18['_descriptionFactory'][_0x26eb('0x1c')](_0x3641c2=>{const {data:_0x11573b}=_0x3641c2;if(_0x11573b&&_0x26eb('0x7')===_0x11573b[_0x26eb('0x35')]){const _0x1160d6=[],_0x51ecae=_0x11573b[_0x26eb('0x22')][0x0];for(const [_0x3bbb8d,_0x5bb81d]of Object[_0x26eb('0x27')](_0x51ecae))_0x1160d6['push'](so(_0x4c91d9,_0x3bbb8d,_0x5bb81d));return _0x1160d6[_0x26eb('0x14')]?{'type':_0x26eb('0xe'),'content':_0x59e43a(_0x409133,_0x26eb('0x6'),_0x1160d6['join'](',\x20'))}:{'type':_0x26eb('0xe'),'content':_0x59e43a(_0x409133,'*Remove\x20all\x20formatting*')};}}),_0x4c91d9[_0x26eb('0x20')][_0x26eb('0x17')]('TrackChangesEditing')[_0x26eb('0x3')]('copyFormat'));}}function io(_0x3cd1cf,_0x58a6f5){const _0x5bc408=_0x3cd1cf[_0x26eb('0x2c')](_0x58a6f5);_0x3cd1cf['modifySelection'](_0x5bc408,{'unit':_0x26eb('0x26'),'direction':_0x26eb('0x13')});const _0x50c64c=_0x5bc408[_0x26eb('0x11')]();_0x3cd1cf[_0x26eb('0x2')](_0x5bc408,{'unit':_0x26eb('0x26'),'direction':_0x26eb('0x0')});const _0x32faba=_0x5bc408[_0x26eb('0x1e')]();return _0x3cd1cf['createRange'](_0x50c64c,_0x32faba);}function so(_0x6a0aa7,_0x4176e5,_0x1e1a79){const _0x2b27ee=_0x6a0aa7['locale']['t'],_0x419bf3=_0x4176e5['split'](/(?=[A-Z])/)[_0x26eb('0x12')]('\x20'),_0x8d0053=_0x2b27ee(_0x419bf3[_0x26eb('0x36')](0x0)[_0x26eb('0x1')]()+_0x419bf3[_0x26eb('0x5')](0x1))[_0x26eb('0x24')]();if(_0x26eb('0x2e')==typeof _0x1e1a79)return _0x8d0053;if(_0x26eb('0x29')===_0x4176e5||_0x26eb('0x10')===_0x4176e5){const _0xf52046=_0x473af5(_0x6a0aa7[_0x26eb('0x34')][_0x26eb('0x17')]('fontColor.colors'))[_0x26eb('0x31')](_0x27cb38=>_0x27cb38[_0x26eb('0x18')]==_0x1e1a79);return _0x8d0053+'\x20('+(_0xf52046?_0x2b27ee(_0xf52046[_0x26eb('0x4')])[_0x26eb('0x24')]():_0x1e1a79)+')';}if(_0x26eb('0x15')===_0x4176e5&&isNaN(parseFloat(_0x1e1a79))){const _0x54b9db=_0x6a0aa7['plugins'][_0x26eb('0x17')](_0x26eb('0x32'))[_0x26eb('0xd')](_0x6a0aa7['config'][_0x26eb('0x17')](_0x26eb('0xa')))['find'](_0x5ca37a=>_0x5ca37a['model']==_0x1e1a79);return _0x8d0053+'\x20('+(_0x54b9db?_0x2b27ee(_0x54b9db[_0x26eb('0x9')])[_0x26eb('0x24')]():_0x1e1a79)+')';}return _0x8d0053+'\x20('+_0x1e1a79+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x60cd=['selection','from','plugins','has','parent','document','get','model','heading','*Change\x20to:*\x20%0','_descriptionFactory','checkChild','getSelectedBlocks','paragraph','registerDescriptionCallback','markBlockFormat','change','value','TrackChangesEditing','name','commandParams','HeadingEditing','blockName','locale','ELEMENT_HEADING_CUSTOM','format','find','afterInit','heading.options','formatBlock','registerElementLabel','editor','config'];(function(_0x56eda3,_0x60cd1f){const _0xcd3d90=function(_0x13148e){while(--_0x13148e){_0x56eda3['push'](_0x56eda3['shift']());}};_0xcd3d90(++_0x60cd1f);}(_0x60cd,0x1d1));const _0xcd3d=function(_0x56eda3,_0x60cd1f){_0x56eda3=_0x56eda3-0x0;let _0xcd3d90=_0x60cd[_0x56eda3];return _0xcd3d90;};import{Plugin as _0x17352d}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3c9b7b}from'./utils';import{getTranslation as _0x3787c8}from'../utils/common-translations';export default class K extends _0x17352d{[_0xcd3d('0x18')](){const _0x5e68aa=this['editor'],_0x29e909=_0x5e68aa[_0xcd3d('0x14')],_0x43d77e=_0x5e68aa[_0xcd3d('0x1d')][_0xcd3d('0x3')](_0xcd3d('0x19'));if(!_0x5e68aa['plugins'][_0xcd3d('0x0')](_0xcd3d('0x12')))return;const _0x4d5601=_0x5e68aa[_0xcd3d('0x20')][_0xcd3d('0x3')](_0xcd3d('0xf'));_0x4d5601['enableCommand'](_0xcd3d('0x5'),(_0xaba5cf,_0xef77df)=>{const _0x45e995=_0xef77df[_0xcd3d('0xe')],_0x58bd65=Array[_0xcd3d('0x1f')](this[_0xcd3d('0x1c')]['model'][_0xcd3d('0x2')][_0xcd3d('0x1e')][_0xcd3d('0x9')]())['filter'](_0x14de21=>function(_0xace62e,_0x15ede2,_0x1b1df5){return _0x1b1df5[_0xcd3d('0x8')](_0xace62e[_0xcd3d('0x1')],_0x15ede2)&&!_0x1b1df5['isObject'](_0xace62e)&&_0xace62e[_0xcd3d('0x10')]!=_0x15ede2;}(_0x14de21,_0x45e995,this[_0xcd3d('0x1c')][_0xcd3d('0x4')]['schema']));_0x5e68aa['model'][_0xcd3d('0xd')](()=>{for(const _0x42da55 of _0x58bd65)_0x4d5601[_0xcd3d('0xc')](_0x42da55,{'commandName':_0xcd3d('0x5'),'commandParams':[_0xef77df],'formatGroupId':_0xcd3d('0x13')},_0x3c9b7b(_0x42da55));});});for(const _0x18108b of _0x43d77e)_0xcd3d('0xa')!=_0x18108b['model']&&_0x4d5601[_0xcd3d('0x7')][_0xcd3d('0x1b')](_0x18108b['model'],_0x3dd029=>{const _0x17b4c3=nn(_0x18108b[_0xcd3d('0x4')]);return null!==_0x17b4c3?_0x3bc177(_0x3dd029,_0x17b4c3):_0x55571c(_0x3dd029,_0x18108b['title']);});function _0x3bc177(_0x164503,_0x41f36b){return _0x3787c8(_0x29e909,'ELEMENT_HEADING',[_0x164503,_0x41f36b]);}function _0x55571c(_0x29fd59,_0xc76342){return _0x3787c8(_0x29e909,_0xcd3d('0x15'),[_0x29fd59,_0xc76342]);}_0x4d5601['_descriptionFactory'][_0xcd3d('0xb')](_0x4281c1=>{const {type:_0x1d92bb,data:_0x5f3959}=_0x4281c1;if(_0xcd3d('0x1a')==_0x1d92bb&&_0x5f3959&&'heading'==_0x5f3959['commandName']){const _0xc73172=_0x5f3959[_0xcd3d('0x11')][0x0][_0xcd3d('0xe')],_0x366ab2=nn(_0xc73172);if(null!==_0x366ab2)return{'type':'format','content':_0x3787c8(_0x29e909,_0xcd3d('0x6'),_0x3bc177(0x1,_0x366ab2))};const _0x49f343=_0x43d77e[_0xcd3d('0x17')](_0x12af9f=>_0x12af9f[_0xcd3d('0x4')]===_0xc73172)['title'];return{'type':_0xcd3d('0x16'),'content':_0x3787c8(_0x29e909,_0xcd3d('0x6'),_0x55571c(0x1,_0x49f343))};}});}}function nn(_0x3992f1){const _0x2aa067=_0x3992f1['match'](/^heading(\d+)$/);return _0x2aa067?_0x2aa067[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1312=['locale','registerDescriptionCallback','FORMAT_HIGHLIGHT','find','commandParams','commandName','format','enableCommand','afterInit','getLastMatchingPosition','editor','item','backward','toLowerCase','highlight.options','formatInline','push','config','getRanges','plugins','TrackChangesEditing','markInlineFormat','model','selection','_descriptionFactory','title','HighlightEditing','hasAttribute','highlight','has','getAttribute','get','change'];(function(_0xb1b680,_0x131265){const _0x50b633=function(_0x9dd47f){while(--_0x9dd47f){_0xb1b680['push'](_0xb1b680['shift']());}};_0x50b633(++_0x131265);}(_0x1312,0x92));const _0x50b6=function(_0xb1b680,_0x131265){_0xb1b680=_0xb1b680-0x0;let _0x50b633=_0x1312[_0xb1b680];return _0x50b633;};import{Plugin as _0x103e4a}from'ckeditor5/src/core';import{getTranslation as _0x3c398a}from'../utils/common-translations';import{getRangesWithAttribute as _0x3fe957}from'./utils';export default class Q extends _0x103e4a{[_0x50b6('0x1b')](){const _0x4923bf=this[_0x50b6('0x1d')];if(!_0x4923bf['plugins'][_0x50b6('0xf')](_0x50b6('0xc')))return;const _0x7b41d=_0x4923bf[_0x50b6('0x5')][_0x50b6('0x11')](_0x50b6('0x6'));_0x7b41d[_0x50b6('0x1a')](_0x50b6('0xe'),(_0x3a015b,_0x17955a={})=>{const _0x1851bc=_0x4923bf['model']['document'][_0x50b6('0x9')],_0x4324d7=_0x1851bc[_0x50b6('0x10')]('highlight');let _0x3a30f1=_0x17955a['value'],_0x421d00=[];if(_0x1851bc['isCollapsed']){const _0x225e56=_0x1851bc['getFirstPosition']();if(!_0x1851bc[_0x50b6('0xd')]('highlight'))return void _0x3a015b(_0x17955a);{const _0x151580=_0x533e53=>_0x533e53[_0x50b6('0x1e')][_0x50b6('0x10')](_0x50b6('0xe'))===_0x4324d7,_0x36443b=_0x225e56[_0x50b6('0x1c')](_0x151580,{'direction':_0x50b6('0x1f')}),_0x54ef43=_0x225e56[_0x50b6('0x1c')](_0x151580);_0x421d00=[_0x4923bf[_0x50b6('0x8')]['createRange'](_0x36443b,_0x54ef43)],_0x3a30f1==_0x4324d7&&(_0x3a30f1=null);}}else for(const _0x3451a5 of _0x1851bc[_0x50b6('0x4')]())_0x3a30f1?_0x421d00[_0x50b6('0x2')](_0x3451a5):_0x421d00['push'](..._0x3fe957(_0x50b6('0xe'),_0x3451a5,_0x4923bf[_0x50b6('0x8')]));_0x4923bf[_0x50b6('0x8')][_0x50b6('0x12')](()=>{for(const _0xc81c84 of _0x421d00)_0x7b41d[_0x50b6('0x7')](_0xc81c84,{'commandName':_0x50b6('0xe'),'commandParams':[{'value':_0x3a30f1}]});});});const _0x310f4f=_0x4923bf[_0x50b6('0x13')];_0x7b41d[_0x50b6('0xa')][_0x50b6('0x14')](_0x43463d=>{const {type:_0x530508,data:_0x111ffc}=_0x43463d;if(_0x50b6('0x1')==_0x530508&&_0x111ffc&&'highlight'==_0x111ffc[_0x50b6('0x18')]){const _0x39bb16=_0x310f4f['t'],_0x1145ad=_0x111ffc[_0x50b6('0x17')][0x0]['value'];if(_0x1145ad){const _0x4ee29f=_0x4923bf[_0x50b6('0x3')][_0x50b6('0x11')](_0x50b6('0x0'))[_0x50b6('0x16')](_0x3a671f=>_0x3a671f['model']==_0x1145ad),_0x313644=_0x39bb16(_0x4ee29f[_0x50b6('0xb')])[_0x50b6('0x20')]();return{'type':_0x50b6('0x19'),'content':_0x3c398a(_0x310f4f,'*Set\x20highlight:*\x20%0',_0x313644),'color':{'value':_0x4ee29f['color'],'title':_0x4ee29f[_0x50b6('0xb')]}};}return{'type':_0x50b6('0x19'),'content':_0x3c398a(_0x310f4f,'*Remove\x20highlight*',_0x3c398a(_0x310f4f,_0x50b6('0x15')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a91=['dataDowncast','plugins','registerElementLabel','horizontalLine','for','ck-horizontal-line','locale','conversion','createPositionAt','showSuggestionHighlights','editor','get','insert','ELEMENT_HORIZONTAL_LINE','HorizontalLineEditing','div','addClass','TrackChangesEditing','_descriptionFactory','elementToStructure'];(function(_0x1af09c,_0x5a91ca){const _0x303933=function(_0x428fe5){while(--_0x428fe5){_0x1af09c['push'](_0x1af09c['shift']());}};_0x303933(++_0x5a91ca);}(_0x5a91,0xd5));const _0x3039=function(_0x1af09c,_0x5a91ca){_0x1af09c=_0x1af09c-0x0;let _0x303933=_0x5a91[_0x1af09c];return _0x303933;};import{Plugin as _0x580541}from'ckeditor5/src/core';import{getTranslation as _0x31862c}from'../utils/common-translations';export default class V extends _0x580541{['afterInit'](){const _0xff9601=this[_0x3039('0x11')];if(!_0xff9601[_0x3039('0x8')]['has'](_0x3039('0x1')))return;_0xff9601[_0x3039('0x8')]['get']('TrackChangesEditing')['enableCommand'](_0x3039('0xa'));const _0x452936=_0xff9601[_0x3039('0x8')][_0x3039('0x12')](_0x3039('0x4')),_0x430451=_0xff9601[_0x3039('0xd')];_0x452936[_0x3039('0x5')][_0x3039('0x9')](_0x3039('0xa'),_0xa7345a=>_0x31862c(_0x430451,_0x3039('0x0'),_0xa7345a)),_0xff9601[_0x3039('0xe')][_0x3039('0xb')](_0x3039('0x7'))[_0x3039('0x6')]({'model':_0x3039('0xa'),'view':(_0x313b68,{writer:_0x1af575,options:_0x5d7cb8})=>{if(!_0x5d7cb8[_0x3039('0x10')])return null;const _0x36fa50=_0x1af575['createContainerElement'](_0x3039('0x2')),_0x40b6a7=_0x1af575['createEmptyElement']('hr');return _0x1af575[_0x3039('0x3')](_0x3039('0xc'),_0x36fa50),_0x1af575[_0x3039('0x13')](_0x1af575[_0x3039('0xf')](_0x36fa50,0x0),_0x40b6a7),_0x36fa50;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4843=['TrackChangesEditing','_descriptionFactory','editor','registerElementLabel','element','selection','model','registerDescriptionCallback','value','format','editing','ELEMENT_HTML_EMBED','change','commandName','getAttribute','*Change\x20%0\x20content*','markBlockFormat','has','getSelectedElement','document','get','afterInit','plugins','htmlEmbed','rawHtml','rawHtmlApi','cancel','enableCommand'];(function(_0x54db70,_0x48433d){const _0x1c68ff=function(_0x150714){while(--_0x150714){_0x54db70['push'](_0x54db70['shift']());}};_0x1c68ff(++_0x48433d);}(_0x4843,0x1c8));const _0x1c68=function(_0x54db70,_0x48433d){_0x54db70=_0x54db70-0x0;let _0x1c68ff=_0x4843[_0x54db70];return _0x1c68ff;};import{Plugin as _0xa3fd2}from'ckeditor5/src/core';import{getTranslation as _0xcb3d9d}from'../utils/common-translations';export default class X extends _0xa3fd2{[_0x1c68('0xd')](){const _0x5ddced=this[_0x1c68('0x16')];if(!_0x5ddced[_0x1c68('0xe')][_0x1c68('0x9')]('HtmlEmbed'))return;const _0x5e12ab=_0x5ddced['plugins'][_0x1c68('0xc')](_0x1c68('0x14')),_0x3846d7=_0x5ddced['locale'],_0x4ede9b=_0x5ddced[_0x1c68('0x2')]['view'][_0x1c68('0xb')][_0x1c68('0x19')];_0x5e12ab[_0x1c68('0x15')][_0x1c68('0x17')](_0x1c68('0x10'),_0x12d1fc=>_0xcb3d9d(_0x3846d7,_0x1c68('0x3'),_0x12d1fc)),_0x5ddced[_0x1c68('0xe')]['get']('TrackChangesEditing')[_0x1c68('0x13')](_0x1c68('0xf'),(_0x385e5a,_0x5b30e7)=>{const _0x16ff9f=_0x5ddced[_0x1c68('0x1a')],_0x46f2e2=_0x16ff9f['document'][_0x1c68('0x19')];_0x16ff9f[_0x1c68('0x4')](()=>{const _0x2b57e3=function(_0x5a14ac){const _0x3d40d3=_0x5a14ac[_0x1c68('0xa')]();if(_0x3d40d3&&_0x3d40d3['is'](_0x1c68('0x18'),_0x1c68('0x10')))return _0x5a14ac[_0x1c68('0xa')]();return null;}(_0x46f2e2);if(!_0x2b57e3)return void _0x385e5a(null);const _0x465006=_0x2b57e3[_0x1c68('0x6')](_0x1c68('0x0'))||'';if(void 0x0===_0x5b30e7)return;if(_0x5b30e7===_0x465006)return;_0x5e12ab[_0x1c68('0x8')](_0x2b57e3,{'commandName':_0x1c68('0xf'),'commandParams':[_0x5b30e7]}),_0x4ede9b['getSelectedElement']()['getCustomProperty'](_0x1c68('0x11'))[_0x1c68('0x12')]();});}),_0x5e12ab[_0x1c68('0x15')][_0x1c68('0x1b')](_0x274691=>{const {data:_0x4ea06d}=_0x274691;if(_0x4ea06d&&_0x1c68('0xf')==_0x4ea06d[_0x1c68('0x5')]){const _0x2a5285=_0xcb3d9d(_0x3846d7,'ELEMENT_HTML_EMBED');return{'type':_0x1c68('0x1'),'content':_0xcb3d9d(_0x3846d7,_0x1c68('0x7'),_0x2a5285)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x463f=['afterInit','isIntersecting','markInlineFormat','format','getAttribute','ImageTextAlternativeEditing','getClosestSelectedImageElement','_descriptionFactory','from','commands','Block\x20image\x20to\x20inline\x20image','ImageResize','ImageEditing','newValue','registerPostFixer','length','detach','_splitMarkerName','discard','*Format:*\x20%0','isBlockImage','forward','commandParams','convertBlockImageToInline','has','title','nodeBefore','imageCaption','getSuggestionCallback','getChangedMarkers','chain','caption','find','imageTypeBlock','ImageUtils','getFirstRange','getContainedElement','author','*Remove\x20image\x20text\x20alternative*','previous','plugins','createRange','locale','enableCommand','fromPosition','change','ImageBlockEditing','isEqual','resizeImage','ImageStyleEditing','getNearestSelectionRange','imageStyle','FORMAT_SIDE_IMAGE','insertion','removeObject','commandName','end','resizedWidth','get','ELEMENT_IMAGE','createRangeOn','isCollapsed','markBlockFormat','isBefore','isInContent','_findSuggestions','value','forEach','imageTextAlternative','selection','ImageCaptionEditing','ImageInlineEditing','ELEMENT_CAPTION','imageStylePostApply','_suggestionFactory','TrackChangesEditing','document','head','insertImage','toggleImageCaption','type','normalizedStyles','accept','*Set\x20image\x20width:*\x20%0','filter','deletion','*Reset\x20image\x20width*','refresh','getSuggestion','alt','markDeletion','ELEMENT_INLINE_IMAGE','model','registerCustomCallback','ImageCaptionUtils','subType','hasSuggestion','imageStylePreApply','forceDefaultExecution','imageTypeInline','toPrevious','registerElementLabel','commandReversedParams','ImageUploadEditing','formatBlock','name','join','hasAttribute','isOwn','findIndex','formatInline','discardSuggestion','schema','start','imageBlock','convertInlineImageToBlock','registerDescriptionCallback','markInsertion'];(function(_0x57e5ab,_0x463fbe){const _0x3f9959=function(_0x15c724){while(--_0x15c724){_0x57e5ab['push'](_0x57e5ab['shift']());}};_0x3f9959(++_0x463fbe);}(_0x463f,0x1d5));const _0x3f99=function(_0x57e5ab,_0x463fbe){_0x57e5ab=_0x57e5ab-0x0;let _0x3f9959=_0x463f[_0x57e5ab];return _0x3f9959;};import{Plugin as _0x12708f}from'ckeditor5/src/core';import{LivePosition as _0x49ec50}from'ckeditor5/src/engine';import{uid as _0xa798ab}from'ckeditor5/src/utils';import{getTranslation as _0x202867}from'../utils/common-translations';export default class Y extends _0x12708f{[_0x3f99('0x3')](){const _0xeadab7=this['editor'];if(!_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x1b')](_0x3f99('0xf')))return;const _0x45a7cf=_0xeadab7['plugins']['get'](_0x3f99('0x4e')),_0x59c672=_0xeadab7['plugins']['get'](_0x3f99('0x25')),_0xb6d7d7={},_0x315889=_0xeadab7[_0x3f99('0x2d')];if(_0x45a7cf['enableCommand'](_0x3f99('0x51')),_0x45a7cf[_0x3f99('0xa')][_0x3f99('0x68')](_0x3f99('0x75'),_0x5d7729=>_0x202867(_0x315889,_0x3f99('0x3e'),_0x5d7729)),_0x45a7cf[_0x3f99('0xa')][_0x3f99('0x68')]('imageInline',_0x46a724=>_0x202867(_0x315889,_0x3f99('0x5e'),_0x46a724)),_0x45a7cf[_0x3f99('0xa')]['registerElementLabel'](_0x3f99('0x22'),()=>_0x202867(_0x315889,_0x3f99('0x4b'))),_0xeadab7[_0x3f99('0x2b')]['has'](_0x3f99('0x6a'))&&_0x45a7cf['enableCommand']('uploadImage'),_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x1b')](_0x3f99('0x31'))&&_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x1b')](_0x3f99('0x4a'))&&(_0x45a7cf[_0x3f99('0x2e')](_0x3f99('0x66'),(_0x2f0023,_0x4f9a04)=>{const _0x2ca4c9=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')][_0x3f99('0x48')]);_0xeadab7['model']['change'](()=>{_0x45a7cf['markBlockFormat'](_0x2ca4c9,{'commandName':_0x3f99('0x66'),'commandParams':[_0x4f9a04]},[],_0x3f99('0x1a'));});}),_0x45a7cf[_0x3f99('0x2e')](_0x3f99('0x24'),(_0x1a34f5,_0x472e7d)=>{_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x30')](_0x452250=>{let _0x13c36e=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')]['selection']),_0x2af15c=_0x452250['createRangeOn'](_0x13c36e);const _0xfc11ef=_0x49ec50[_0x3f99('0x2f')](_0x2af15c[_0x3f99('0x74')],_0x3f99('0x67')),_0xf9718f=_0x49ec50[_0x3f99('0x2f')](_0x2af15c['end'],'toNext');_0x45a7cf[_0x3f99('0x65')](()=>_0x1a34f5(_0x472e7d)),_0x13c36e=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')][_0x3f99('0x48')]),_0x2af15c=_0x452250[_0x3f99('0x3f')](_0x13c36e);const _0x5d232d=_0x452250['createRange'](_0xfc11ef,_0xf9718f);_0xfc11ef[_0x3f99('0x13')](),_0xf9718f[_0x3f99('0x13')](),_0x45a7cf[_0x3f99('0x41')](_0x13c36e,{'commandName':_0x3f99('0x66'),'commandParams':[]},[],_0x3f99('0x0')),_0x5d232d['start'][_0x3f99('0x42')](_0x2af15c[_0x3f99('0x74')])&&_0x45a7cf[_0x3f99('0x2')](_0x452250[_0x3f99('0x2c')](_0x5d232d[_0x3f99('0x74')],_0x2af15c['start']),_0x3f99('0x0')),_0x2af15c[_0x3f99('0x3b')]['isBefore'](_0x5d232d[_0x3f99('0x3b')])&&_0x45a7cf[_0x3f99('0x2')](_0x452250[_0x3f99('0x2c')](_0x2af15c['end'],_0x5d232d[_0x3f99('0x3b')]),_0x3f99('0x0'));});}),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x6b'),_0x3f99('0x0'),_0x3f99('0x6d'),()=>!0x1),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x6b'),_0x3f99('0x0'),_0x3f99('0x55'),()=>!0x1),_0x45a7cf['_suggestionFactory'][_0x3f99('0x60')](_0x3f99('0x6b'),'convertInlineImageToBlock',_0x3f99('0x15'),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x1f')](_0x3f99('0x6b'),'',_0x3f99('0x55'))),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x38'),_0x3f99('0x0'),'join',()=>!0x1),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')]('insertion','convertInlineImageToBlock',_0x3f99('0x15'),([_0x19afba])=>{const _0x527f87=_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x1f')](_0x3f99('0x38'),'',_0x3f99('0x15'));let _0x2c3d47=_0x19afba[_0x3f99('0x74')],_0x49d8f2=_0x19afba[_0x3f99('0x3b')];const _0x5562ce=_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x73')]['getNearestSelectionRange'](_0x2c3d47,'backward'),_0x438eea=_0xeadab7[_0x3f99('0x5f')]['schema'][_0x3f99('0x35')](_0x49d8f2,_0x3f99('0x18'));_0x5562ce[_0x3f99('0x40')]&&(_0x2c3d47=_0x5562ce[_0x3f99('0x74')]),_0x438eea[_0x3f99('0x40')]&&(_0x49d8f2=_0x438eea[_0x3f99('0x3b')]),_0x527f87([_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x2c')](_0x2c3d47,_0x49d8f2)]);}),_0x45a7cf['_suggestionFactory'][_0x3f99('0x60')](_0x3f99('0x6b'),_0x3f99('0x0'),_0x3f99('0x21'),_0x432369),_0x45a7cf['_suggestionFactory'][_0x3f99('0x60')](_0x3f99('0x38'),_0x3f99('0x0'),_0x3f99('0x21'),_0x432369)),_0xeadab7[_0x3f99('0x2b')]['has'](_0x3f99('0x49'))&&(_0x45a7cf[_0x3f99('0x2e')](_0x3f99('0x52'),(_0x10d34f,_0x1a8cca)=>{const _0xd7d0ee=_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x3d')](_0x3f99('0x61'));let _0x72ae80=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')]['document'][_0x3f99('0x48')]),_0x26885a=_0xd7d0ee['getCaptionFromImageModelElement'](_0x72ae80);_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x30')](()=>{if(_0x26885a)return void _0x45a7cf[_0x3f99('0x5d')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x3f')](_0x26885a));const _0x1dbc65=_0x59c672['isBlockImage'](_0x72ae80);_0x10d34f(_0x1a8cca),_0x72ae80=_0x59c672['getClosestSelectedImageElement'](_0xeadab7['model'][_0x3f99('0x4f')][_0x3f99('0x48')]),_0x26885a=_0xd7d0ee['getCaptionFromImageModelElement'](_0x72ae80),_0x45a7cf[_0x3f99('0x2')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x3f')](_0x26885a),_0x1dbc65?null:_0x3f99('0x1e'));});}),_0x45a7cf[_0x3f99('0x4d')]['registerCustomCallback'](_0x3f99('0x38'),_0x3f99('0x1e'),_0x3f99('0x21'),_0x432369)),_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x1b')](_0x3f99('0x34'))){_0x45a7cf[_0x3f99('0x2e')](_0x3f99('0x36'),(_0x1d02a9,_0x5af470)=>{const _0x358fba=_0xeadab7[_0x3f99('0x2b')]['get']('Users')['me'],_0x2577c4=_0xeadab7[_0x3f99('0xc')]['get'](_0x3f99('0x36'));let _0x5e61c4=_0x59c672[_0x3f99('0x9')](_0xeadab7['model'][_0x3f99('0x4f')][_0x3f99('0x48')]),_0x1fa61f=_0xeadab7[_0x3f99('0x5f')]['createRangeOn'](_0x5e61c4),_0x39c2f9=_0x2577c4[_0x3f99('0x45')];if(_0x39c2f9==_0x5af470[_0x3f99('0x45')])return;const _0x3a22a4={'commandName':'imageStyle','commandParams':[_0x5af470],'formatGroupId':_0xa798ab()};_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x30')](()=>{if(_0x45a7cf['getSuggestions']()[_0x3f99('0x57')](_0x28d178=>_0x28d178[_0x3f99('0x43')]&&_0x358fba==_0x28d178[_0x3f99('0x28')]&&(_0x3f99('0x6b')==_0x28d178[_0x3f99('0x53')]||_0x3f99('0x71')==_0x28d178[_0x3f99('0x53')])&&(_0x3f99('0x64')==_0x28d178[_0x3f99('0x62')]||'imageStylePostApply'==_0x28d178['subType'])&&_0x28d178[_0x3f99('0x26')]()[_0x3f99('0x32')](_0x1fa61f))[_0x3f99('0x46')](_0x521c7c=>_0x45a7cf[_0x3f99('0x72')](_0x521c7c[_0x3f99('0x50')])),_0x5e61c4=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')][_0x3f99('0x48')]),_0x1fa61f=_0xeadab7['model'][_0x3f99('0x3f')](_0x5e61c4),_0x2577c4[_0x3f99('0x5a')](),_0xeadab7['commands'][_0x3f99('0x3d')](_0x3f99('0x66'))[_0x3f99('0x5a')](),_0xeadab7[_0x3f99('0xc')][_0x3f99('0x3d')](_0x3f99('0x24'))[_0x3f99('0x5a')](),_0x39c2f9=_0x2577c4[_0x3f99('0x45')],_0x39c2f9!=_0x5af470['value'])return _0x59c672['isInlineImage'](_0x5e61c4)&&_0x2577c4['shouldConvertImageType'](_0x5af470[_0x3f99('0x45')],_0x5e61c4)?(_0x1d02a9(_0x5af470),_0x5e61c4=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')][_0x3f99('0x48')]),void _0x45a7cf[_0x3f99('0x41')](_0x5e61c4,{..._0x3a22a4,'commandReversedParams':[{'value':_0x39c2f9||null}]},[],_0x3f99('0x64'))):void(_0x59c672[_0x3f99('0x17')](_0x5e61c4)?_0x45a7cf[_0x3f99('0x41')](_0x5e61c4,_0x3a22a4,[],_0x3f99('0x4c')):_0x45a7cf[_0x3f99('0x5')](_0x1fa61f,_0x3a22a4,_0x3f99('0x4c')));});});for(const _0x236e87 of _0xeadab7['plugins'][_0x3f99('0x3d')](_0x3f99('0x34'))[_0x3f99('0x54')])_0xb6d7d7[_0x236e87[_0x3f99('0x6c')]]=_0x236e87[_0x3f99('0x1c')]['toLowerCase']();_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x6b'),'imageStylePreApply',_0x3f99('0x6d'),()=>!0x1),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')]('formatBlock',_0x3f99('0x4c'),_0x3f99('0x6d'),()=>!0x1),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x71'),_0x3f99('0x4c'),_0x3f99('0x6d'),()=>!0x1),_0x45a7cf[_0x3f99('0x4d')]['registerCustomCallback']('formatBlock',_0x3f99('0x64'),_0x3f99('0x55'),()=>!0x1),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x6b'),_0x3f99('0x64'),'discard',(_0x48fd3e,_0x1fc20e)=>{_0x45a7cf['_suggestionFactory'][_0x3f99('0x1f')]('formatBlock','',_0x3f99('0x55'))(_0x48fd3e,{'commandName':_0x1fc20e['commandName'],'commandParams':_0x1fc20e[_0x3f99('0x69')]});}),_0x45a7cf[_0x3f99('0x4d')][_0x3f99('0x60')](_0x3f99('0x6b'),'imageStylePreApply','chain',_0x432369);}const _0x3bf012=[{'type':'formatBlock','subType':_0x3f99('0x64')},{'type':'insertion','subType':_0x3f99('0x1e')},{'type':_0x3f99('0x6b'),'subType':_0x3f99('0x0')},{'type':'insertion','subType':_0x3f99('0x0')}];function _0x247500(_0x2ceceb,_0x356d9d){const _0x1529c7=_0x3bf012['findIndex'](({type:_0x16d090,subType:_0x1e1c81})=>_0x2ceceb['type']==_0x16d090&&_0x2ceceb[_0x3f99('0x62')]==_0x1e1c81),_0x13eadd=_0x3bf012[_0x3f99('0x70')](({type:_0x17b358,subType:_0x4856f3})=>_0x356d9d['type']==_0x17b358&&_0x356d9d['subType']==_0x4856f3);if(_0x1529c7<0x0||_0x13eadd<0x0)return!0x1;const _0xce04a2=_0x2ceceb[_0x3f99('0x26')](),_0x428fb0=_0x356d9d[_0x3f99('0x26')]();if((0x0==_0x1529c7||0x1==_0x1529c7)&&0x2==_0x13eadd&&_0xce04a2[_0x3f99('0x4')](_0x428fb0))return!0x0;if(0x2==_0x1529c7&&0x3==_0x13eadd){const _0x4871f6=_0x45a7cf[_0x3f99('0x44')](_0xce04a2,'insertion')['filter'](({suggestion:_0x400e68,meta:_0xa68225})=>_0xa68225[_0x3f99('0x6f')]&&_0x3f99('0x0')==_0x400e68[_0x3f99('0x62')]);if(_0x4871f6[_0x3f99('0x12')]>0x1&&_0x428fb0[_0x3f99('0x3b')][_0x3f99('0x32')](_0xce04a2[_0x3f99('0x74')]))return!0x0;if(0x1==_0x4871f6[_0x3f99('0x12')]&&(_0xce04a2[_0x3f99('0x74')]['isEqual'](_0x428fb0[_0x3f99('0x3b')])||_0xce04a2[_0x3f99('0x3b')][_0x3f99('0x32')](_0x428fb0[_0x3f99('0x74')])))return!0x0;}if(0x3==_0x1529c7&&0x3==_0x13eadd&&_0xce04a2['start']['isBefore'](_0x428fb0[_0x3f99('0x74')])){const _0x1fee36=_0xce04a2[_0x3f99('0x3b')]['nodeAfter'],_0x257ca1=_0x428fb0[_0x3f99('0x74')][_0x3f99('0x1d')];return _0x59c672[_0x3f99('0x17')](_0x1fee36)&&_0x1fee36===_0x257ca1;}return!0x1;}function _0x432369(_0x349024,_0x2a967a){return _0x247500(_0x349024,_0x2a967a)?[_0x349024,_0x2a967a]:_0x247500(_0x2a967a,_0x349024)?[_0x2a967a,_0x349024]:null;}_0xeadab7[_0x3f99('0x5f')]['document'][_0x3f99('0x11')](()=>{let _0x9164ba=!0x1;const _0x9c05bb=Array[_0x3f99('0xb')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')]['differ'][_0x3f99('0x20')]());for(const {name:_0x337235,data:_0x33d39b}of _0x9c05bb){const {group:_0x3eb8df,type:_0x14f4a7,subType:_0x5c66b0,id:_0x79a350}=_0x45a7cf[_0x3f99('0x14')](_0x337235);if('suggestion'==_0x3eb8df&&_0x45a7cf[_0x3f99('0x63')](_0x79a350)){if(_0x3f99('0x6b')==_0x14f4a7&&(_0x3f99('0x64')==_0x5c66b0||'imageStylePostApply'==_0x5c66b0)){const _0x357362=_0x45a7cf['getSuggestion'](_0x79a350);if(_0x33d39b['newRange']){const _0x4cf85b=_0x357362['getFirstRange']()[_0x3f99('0x27')]();if(_0x59c672[_0x3f99('0x17')](_0x4cf85b))continue;_0x45a7cf[_0x3f99('0x72')](_0x357362),_0x9164ba=!0x0;}}if(_0x3f99('0x38')==_0x14f4a7&&'imageCaption'==_0x5c66b0&&!_0x33d39b['newRange']){const _0x2c85ac=_0x45a7cf[_0x3f99('0x5b')](_0x79a350);_0x2c85ac['next']&&_0x2c85ac['next'][_0x3f99('0x43')]&&(_0x45a7cf[_0x3f99('0x72')](_0x2c85ac['next']),_0x9164ba=!0x0);}}}return _0x9164ba;}),_0xeadab7['plugins']['has'](_0x3f99('0xe'))&&_0x45a7cf[_0x3f99('0x2e')](_0x3f99('0x33'),(_0x2c4059,_0x7ef9a8)=>{const _0x15a997=_0x59c672[_0x3f99('0x9')](_0xeadab7['model']['document']['selection']);_0x15a997[_0x3f99('0x7')](_0x3f99('0x3c'))!=_0x7ef9a8['width']&&_0xeadab7['model']['change'](()=>{_0x45a7cf[_0x3f99('0x41')](_0x15a997,{'commandName':_0x3f99('0x33'),'commandParams':[_0x7ef9a8]});});}),_0xeadab7[_0x3f99('0x2b')][_0x3f99('0x1b')](_0x3f99('0x8'))&&_0x45a7cf[_0x3f99('0x2e')]('imageTextAlternative',(_0x53ff1d,_0x56cb4e)=>{const _0x116f2b=_0x59c672[_0x3f99('0x9')](_0xeadab7[_0x3f99('0x5f')][_0x3f99('0x4f')][_0x3f99('0x48')]);(_0x116f2b[_0x3f99('0x6e')](_0x3f99('0x5c'))?_0x116f2b['getAttribute'](_0x3f99('0x5c')):'')!=_0x56cb4e[_0x3f99('0x10')]&&_0xeadab7['model']['change'](()=>{_0x45a7cf[_0x3f99('0x41')](_0x116f2b,{'commandName':_0x3f99('0x47'),'commandParams':[_0x56cb4e]});});}),_0x45a7cf[_0x3f99('0xa')]['registerDescriptionCallback'](_0x378240=>{if(!!_0x3bf012[_0x3f99('0x23')](({type:_0x40e240,subType:_0x5aa716})=>_0x378240[_0x3f99('0x53')]==_0x40e240&&_0x378240[_0x3f99('0x62')]==_0x5aa716))return _0x378240[_0x3f99('0x2a')]?{}:void 0x0;}),_0x45a7cf['_descriptionFactory'][_0x3f99('0x1')](_0x2a80fc=>{if('insertion'==_0x2a80fc[_0x3f99('0x53')]||_0x3f99('0x58')==_0x2a80fc[_0x3f99('0x53')]){const _0x4e6118=_0x2a80fc[_0x3f99('0x27')]();if(_0x4e6118&&_0x4e6118['is']('element',_0x3f99('0x22')))return{'type':'insertion'==_0x2a80fc[_0x3f99('0x53')]?'addObject':_0x3f99('0x39'),'element':_0x4e6118,'quantity':0x1};}}),_0x45a7cf[_0x3f99('0xa')]['registerDescriptionCallback'](_0x4a81b4=>_0x3f99('0x6b')==_0x4a81b4[_0x3f99('0x53')]&&_0x3f99('0x0')==_0x4a81b4[_0x3f99('0x62')]?{'type':_0x3f99('0x6'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4a81b4['type']&&_0x3f99('0x1a')==_0x4a81b4[_0x3f99('0x62')]?{'type':_0x3f99('0x6'),'content':_0x3f99('0xd')}:void 0x0),_0x45a7cf[_0x3f99('0xa')][_0x3f99('0x1')](_0x3db743=>{const {data:_0x2db18b}=_0x3db743;if(_0x2db18b){if(_0x3f99('0x36')==_0x2db18b['commandName']){const _0x583ca1=_0x2db18b[_0x3f99('0x19')][0x0][_0x3f99('0x45')];return _0x3e4927('side'===_0x583ca1?_0x202867(_0x315889,_0x3f99('0x37')):_0xb6d7d7[_0x583ca1]||_0x583ca1);}if(_0x3f99('0x47')==_0x2db18b[_0x3f99('0x3a')]){const _0xff0682=_0x2db18b[_0x3f99('0x19')][0x0]['newValue'];return _0xff0682?{'type':_0x3f99('0x6'),'content':_0x202867(_0x315889,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xff0682+'\x22')}:{'type':'format','content':_0x202867(_0x315889,_0x3f99('0x29'))};}if(_0x3f99('0x33')==_0x2db18b[_0x3f99('0x3a')]){const _0x52a93c=_0x2db18b['commandParams'][0x0]['width'];return _0x52a93c?{'type':_0x3f99('0x6'),'content':_0x202867(_0x315889,_0x3f99('0x56'),_0x52a93c)}:{'type':'format','content':_0x202867(_0x315889,_0x3f99('0x59'))};}}function _0x3e4927(_0x1bd1e5){return{'type':'format','content':_0x202867(_0x315889,_0x3f99('0x16'),_0x1bd1e5)};}});}}
|
|
23
|
+
const _0xe36a=['toggleImageCaption','markInsertion','markInlineFormat','_suggestionFactory','schema','chain','isBlockImage','accept','forceDefaultExecution','commandReversedParams','isCollapsed','end','imageCaption','getSuggestionCallback','findIndex','subType','addObject','getContainedElement','ELEMENT_IMAGE','newRange','imageStylePreApply','markBlockFormat','isOwn','commandName','document','get','getChangedMarkers','ImageUtils','registerCustomCallback','hasSuggestion','Inline\x20image\x20to\x20block\x20image','refresh','registerElementLabel','has','from','name','discard','getFirstRange','removeObject','Block\x20image\x20to\x20inline\x20image','toLowerCase','getAttribute','detach','*Format:*\x20%0','width','selection','model','fromPosition','imageTypeBlock','head','change','_descriptionFactory','type','toPrevious','value','differ','*Remove\x20image\x20text\x20alternative*','getCaptionFromImageModelElement','ImageTextAlternativeEditing','nodeBefore','formatBlock','join','format','side','imageTypeInline','formatInline','commands','ELEMENT_CAPTION','deletion','ImageResize','createRange','alt','plugins','convertInlineImageToBlock','commandParams','*Set\x20image\x20text\x20alternative:*\x20%0','ImageCaptionUtils','getClosestSelectedImageElement','convertBlockImageToInline','getSuggestion','insertImage','title','getSuggestions','discardSuggestion','shouldConvertImageType','next','ImageInlineEditing','newValue','element','getNearestSelectionRange','isIntersecting','enableCommand','nodeAfter','ImageCaptionEditing','isBefore','imageStylePostApply','setImageNaturalSizeAttributes','suggestion','*Set\x20image\x20width:*\x20%0','isInContent','imageStyle','toNext','locale','FORMAT_SIDE_IMAGE','ImageStyleEditing','uploadImage','createRangeOn','registerPostFixer','start','author','TrackChangesEditing','resizeImage','filter','registerDescriptionCallback','normalizedStyles','*Reset\x20image\x20width*','afterInit','backward','insertion','isEqual','resizedWidth','imageTextAlternative'];(function(_0x258169,_0xe36a12){const _0x82f91b=function(_0x55fedf){while(--_0x55fedf){_0x258169['push'](_0x258169['shift']());}};_0x82f91b(++_0xe36a12);}(_0xe36a,0x6d));const _0x82f9=function(_0x258169,_0xe36a12){_0x258169=_0x258169-0x0;let _0x82f91b=_0xe36a[_0x258169];return _0x82f91b;};import{Plugin as _0xbd599b}from'ckeditor5/src/core';import{LivePosition as _0x580b02}from'ckeditor5/src/engine';import{uid as _0x29a972}from'ckeditor5/src/utils';import{getTranslation as _0x1722ad}from'../utils/common-translations';export default class Y extends _0xbd599b{[_0x82f9('0x7')](){const _0x476b88=this['editor'];if(!_0x476b88[_0x82f9('0x55')]['has']('ImageEditing'))return;const _0x247398=_0x476b88[_0x82f9('0x55')][_0x82f9('0x26')](_0x82f9('0x1')),_0x425c8e=_0x476b88[_0x82f9('0x55')][_0x82f9('0x26')](_0x82f9('0x28')),_0x13c19b={},_0x1def89=_0x476b88[_0x82f9('0x73')];if(_0x247398[_0x82f9('0x68')](_0x82f9('0x5d')),_0x247398[_0x82f9('0x40')]['registerElementLabel']('imageBlock',_0x5dea36=>_0x1722ad(_0x1def89,_0x82f9('0x1f'),_0x5dea36)),_0x247398[_0x82f9('0x40')]['registerElementLabel']('imageInline',_0x18a056=>_0x1722ad(_0x1def89,'ELEMENT_INLINE_IMAGE',_0x18a056)),_0x247398[_0x82f9('0x40')][_0x82f9('0x2d')]('caption',()=>_0x1722ad(_0x1def89,_0x82f9('0x50'))),_0x476b88['plugins'][_0x82f9('0x2e')]('ImageUploadEditing')&&_0x247398[_0x82f9('0x68')](_0x82f9('0x76')),_0x476b88[_0x82f9('0x55')][_0x82f9('0x2e')]('ImageBlockEditing')&&_0x476b88[_0x82f9('0x55')]['has'](_0x82f9('0x63'))&&(_0x247398[_0x82f9('0x68')](_0x82f9('0x4d'),(_0x5bcf9b,_0x53d74d)=>{const _0x2db67b=_0x425c8e['getClosestSelectedImageElement'](_0x476b88[_0x82f9('0x3b')]['document'][_0x82f9('0x3a')]);_0x476b88['model']['change'](()=>{_0x247398[_0x82f9('0x22')](_0x2db67b,{'commandName':_0x82f9('0x4d'),'commandParams':[_0x53d74d]},[],_0x82f9('0x5b'));});}),_0x247398[_0x82f9('0x68')](_0x82f9('0x3d'),(_0x3f285b,_0x48df9c)=>{_0x476b88[_0x82f9('0x3b')][_0x82f9('0x3f')](_0x5d4f15=>{let _0x5de556=_0x425c8e[_0x82f9('0x5a')](_0x476b88['model'][_0x82f9('0x25')]['selection']),_0x97d44=_0x5d4f15[_0x82f9('0x77')](_0x5de556);const _0x175f0d=_0x580b02[_0x82f9('0x3c')](_0x97d44[_0x82f9('0x79')],_0x82f9('0x42')),_0x26c14c=_0x580b02[_0x82f9('0x3c')](_0x97d44[_0x82f9('0x18')],_0x82f9('0x72'));_0x247398[_0x82f9('0x15')](()=>_0x3f285b(_0x48df9c)),_0x5de556=_0x425c8e[_0x82f9('0x5a')](_0x476b88[_0x82f9('0x3b')]['document']['selection']),_0x97d44=_0x5d4f15['createRangeOn'](_0x5de556);const _0x4164b2=_0x5d4f15['createRange'](_0x175f0d,_0x26c14c);_0x175f0d[_0x82f9('0x37')](),_0x26c14c[_0x82f9('0x37')](),_0x247398['markBlockFormat'](_0x5de556,{'commandName':_0x82f9('0x4d'),'commandParams':[_0x48df9c]},[],'convertInlineImageToBlock'),_0x4164b2[_0x82f9('0x79')]['isBefore'](_0x97d44['start'])&&_0x247398[_0x82f9('0xe')](_0x5d4f15[_0x82f9('0x53')](_0x4164b2[_0x82f9('0x79')],_0x97d44[_0x82f9('0x79')]),_0x82f9('0x56')),_0x97d44[_0x82f9('0x18')][_0x82f9('0x6b')](_0x4164b2['end'])&&_0x247398['markInsertion'](_0x5d4f15[_0x82f9('0x53')](_0x97d44[_0x82f9('0x18')],_0x4164b2['end']),_0x82f9('0x56'));});}),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x49'),_0x82f9('0x56'),_0x82f9('0x4a'),()=>!0x1),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x49'),'convertInlineImageToBlock','accept',()=>!0x1),_0x247398['_suggestionFactory'][_0x82f9('0x29')](_0x82f9('0x49'),'convertInlineImageToBlock',_0x82f9('0x31'),_0x247398[_0x82f9('0x10')]['getSuggestionCallback']('formatBlock','',_0x82f9('0x14'))),_0x247398['_suggestionFactory'][_0x82f9('0x29')](_0x82f9('0x9'),_0x82f9('0x56'),_0x82f9('0x4a'),()=>!0x1),_0x247398[_0x82f9('0x10')]['registerCustomCallback'](_0x82f9('0x9'),_0x82f9('0x56'),_0x82f9('0x31'),([_0x464964])=>{const _0x10e941=_0x247398[_0x82f9('0x10')][_0x82f9('0x1a')]('insertion','',_0x82f9('0x31'));let _0x364b72=_0x464964[_0x82f9('0x79')],_0x5e0ff6=_0x464964[_0x82f9('0x18')];const _0x3004b6=_0x476b88[_0x82f9('0x3b')][_0x82f9('0x11')][_0x82f9('0x66')](_0x364b72,_0x82f9('0x8')),_0x53ad3a=_0x476b88[_0x82f9('0x3b')][_0x82f9('0x11')][_0x82f9('0x66')](_0x5e0ff6,'forward');_0x3004b6['isCollapsed']&&(_0x364b72=_0x3004b6[_0x82f9('0x79')]),_0x53ad3a[_0x82f9('0x17')]&&(_0x5e0ff6=_0x53ad3a[_0x82f9('0x18')]),_0x10e941([_0x476b88['model'][_0x82f9('0x53')](_0x364b72,_0x5e0ff6)]);}),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x49'),_0x82f9('0x56'),_0x82f9('0x12'),_0x1c106c),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x9'),_0x82f9('0x56'),_0x82f9('0x12'),_0x1c106c)),_0x476b88[_0x82f9('0x55')]['has'](_0x82f9('0x6a'))&&(_0x247398[_0x82f9('0x68')](_0x82f9('0xd'),(_0x4297f5,_0x4e9898)=>{const _0x554ba2=_0x476b88[_0x82f9('0x55')]['get'](_0x82f9('0x59'));let _0x2ec8ed=_0x425c8e['getClosestSelectedImageElement'](_0x476b88[_0x82f9('0x3b')][_0x82f9('0x25')]['selection']),_0x12b95f=_0x554ba2[_0x82f9('0x46')](_0x2ec8ed);_0x476b88[_0x82f9('0x3b')][_0x82f9('0x3f')](()=>{if(_0x12b95f)return void _0x247398['markDeletion'](_0x476b88[_0x82f9('0x3b')][_0x82f9('0x77')](_0x12b95f));const _0x10904c=_0x425c8e['isBlockImage'](_0x2ec8ed);_0x4297f5(_0x4e9898),_0x2ec8ed=_0x425c8e[_0x82f9('0x5a')](_0x476b88[_0x82f9('0x3b')]['document'][_0x82f9('0x3a')]),_0x12b95f=_0x554ba2['getCaptionFromImageModelElement'](_0x2ec8ed),_0x247398[_0x82f9('0xe')](_0x476b88[_0x82f9('0x3b')]['createRangeOn'](_0x12b95f),_0x10904c?null:_0x82f9('0x19'));});}),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x9'),_0x82f9('0x19'),_0x82f9('0x12'),_0x1c106c)),_0x476b88[_0x82f9('0x55')][_0x82f9('0x2e')](_0x82f9('0x75'))){_0x247398['enableCommand']('imageStyle',(_0x110daa,_0x30a6d7)=>{const _0x481e62=_0x476b88['plugins'][_0x82f9('0x26')]('Users')['me'],_0x161550=_0x476b88[_0x82f9('0x4f')][_0x82f9('0x26')](_0x82f9('0x71'));let _0x4d62b3=_0x425c8e[_0x82f9('0x5a')](_0x476b88[_0x82f9('0x3b')]['document'][_0x82f9('0x3a')]),_0x58e8ce=_0x476b88[_0x82f9('0x3b')][_0x82f9('0x77')](_0x4d62b3),_0x205d74=_0x161550[_0x82f9('0x43')];if(_0x205d74==_0x30a6d7['value'])return;const _0x5c5ff4={'commandName':'imageStyle','commandParams':[_0x30a6d7],'formatGroupId':_0x29a972()};_0x476b88[_0x82f9('0x3b')][_0x82f9('0x3f')](()=>{if(_0x247398[_0x82f9('0x5f')]()[_0x82f9('0x3')](_0x3fc245=>_0x3fc245[_0x82f9('0x70')]&&_0x481e62==_0x3fc245[_0x82f9('0x0')]&&(_0x82f9('0x49')==_0x3fc245[_0x82f9('0x41')]||_0x82f9('0x4e')==_0x3fc245['type'])&&(_0x82f9('0x21')==_0x3fc245[_0x82f9('0x1c')]||'imageStylePostApply'==_0x3fc245['subType'])&&_0x3fc245[_0x82f9('0x32')]()[_0x82f9('0xa')](_0x58e8ce))['forEach'](_0x2ec605=>_0x247398[_0x82f9('0x60')](_0x2ec605[_0x82f9('0x3e')])),_0x4d62b3=_0x425c8e[_0x82f9('0x5a')](_0x476b88[_0x82f9('0x3b')]['document'][_0x82f9('0x3a')]),_0x58e8ce=_0x476b88['model'][_0x82f9('0x77')](_0x4d62b3),_0x161550[_0x82f9('0x2c')](),_0x476b88[_0x82f9('0x4f')]['get'](_0x82f9('0x4d'))[_0x82f9('0x2c')](),_0x476b88['commands'][_0x82f9('0x26')](_0x82f9('0x3d'))['refresh'](),_0x205d74=_0x161550['value'],_0x205d74!=_0x30a6d7[_0x82f9('0x43')])return _0x425c8e['isInlineImage'](_0x4d62b3)&&_0x161550[_0x82f9('0x61')](_0x30a6d7[_0x82f9('0x43')],_0x4d62b3)?(_0x110daa({..._0x30a6d7,'setImageSizes':!0x1}),_0x4d62b3=_0x425c8e[_0x82f9('0x5a')](_0x476b88['model']['document'][_0x82f9('0x3a')]),void _0x247398[_0x82f9('0x22')](_0x4d62b3,{..._0x5c5ff4,'commandReversedParams':[{'value':_0x205d74||null,'setImageSizes':!0x1}]},[],_0x82f9('0x21'))):void(_0x425c8e[_0x82f9('0x13')](_0x4d62b3)?_0x247398['markBlockFormat'](_0x4d62b3,_0x5c5ff4,[],_0x82f9('0x6c')):_0x247398[_0x82f9('0xf')](_0x58e8ce,_0x5c5ff4,_0x82f9('0x6c')));});});for(const _0x50563d of _0x476b88[_0x82f9('0x55')]['get'](_0x82f9('0x75'))[_0x82f9('0x5')])_0x13c19b[_0x50563d[_0x82f9('0x30')]]=_0x50563d[_0x82f9('0x5e')][_0x82f9('0x35')]();_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x49'),'imageStylePreApply','join',()=>!0x1),_0x247398['_suggestionFactory']['registerCustomCallback'](_0x82f9('0x49'),_0x82f9('0x6c'),'join',()=>!0x1),_0x247398[_0x82f9('0x10')]['registerCustomCallback'](_0x82f9('0x4e'),_0x82f9('0x6c'),_0x82f9('0x4a'),()=>!0x1),_0x247398[_0x82f9('0x10')][_0x82f9('0x29')](_0x82f9('0x49'),_0x82f9('0x21'),'accept',([_0x465f57])=>{_0x425c8e[_0x82f9('0x6d')](_0x465f57[_0x82f9('0x1e')]());}),_0x247398['_suggestionFactory']['registerCustomCallback'](_0x82f9('0x49'),_0x82f9('0x21'),_0x82f9('0x31'),(_0x43f973,_0x47a089)=>{_0x247398[_0x82f9('0x10')][_0x82f9('0x1a')](_0x82f9('0x49'),'',_0x82f9('0x14'))(_0x43f973,{'commandName':_0x47a089['commandName'],'commandParams':_0x47a089[_0x82f9('0x16')]});}),_0x247398[_0x82f9('0x10')]['registerCustomCallback'](_0x82f9('0x49'),'imageStylePreApply',_0x82f9('0x12'),_0x1c106c);}const _0x28cfb6=[{'type':_0x82f9('0x49'),'subType':_0x82f9('0x21')},{'type':'insertion','subType':_0x82f9('0x19')},{'type':'formatBlock','subType':_0x82f9('0x56')},{'type':'insertion','subType':_0x82f9('0x56')}];function _0x5ba184(_0x64e4ae,_0x3dba1b){const _0x32d3b1=_0x28cfb6[_0x82f9('0x1b')](({type:_0x434d8d,subType:_0x2bf6a9})=>_0x64e4ae['type']==_0x434d8d&&_0x64e4ae[_0x82f9('0x1c')]==_0x2bf6a9),_0x23125f=_0x28cfb6[_0x82f9('0x1b')](({type:_0x6ccd24,subType:_0x1e4947})=>_0x3dba1b[_0x82f9('0x41')]==_0x6ccd24&&_0x3dba1b[_0x82f9('0x1c')]==_0x1e4947);if(_0x32d3b1<0x0||_0x23125f<0x0)return!0x1;const _0x7030f7=_0x64e4ae[_0x82f9('0x32')](),_0x3aa0bb=_0x3dba1b[_0x82f9('0x32')]();if((0x0==_0x32d3b1||0x1==_0x32d3b1)&&0x2==_0x23125f&&_0x7030f7[_0x82f9('0x67')](_0x3aa0bb))return!0x0;if(0x2==_0x32d3b1&&0x3==_0x23125f){const _0x2d4109=_0x247398['_findSuggestions'](_0x7030f7,_0x82f9('0x9'))[_0x82f9('0x3')](({suggestion:_0x37a55a,meta:_0x4f2876})=>_0x4f2876[_0x82f9('0x23')]&&_0x82f9('0x56')==_0x37a55a['subType']);if(_0x2d4109['length']>0x1&&_0x3aa0bb[_0x82f9('0x18')][_0x82f9('0xa')](_0x7030f7[_0x82f9('0x79')]))return!0x0;if(0x1==_0x2d4109['length']&&(_0x7030f7[_0x82f9('0x79')][_0x82f9('0xa')](_0x3aa0bb[_0x82f9('0x18')])||_0x7030f7['end']['isEqual'](_0x3aa0bb[_0x82f9('0x79')])))return!0x0;}if(0x3==_0x32d3b1&&0x3==_0x23125f&&_0x7030f7['start'][_0x82f9('0x6b')](_0x3aa0bb['start'])){const _0x4292bb=_0x7030f7[_0x82f9('0x18')][_0x82f9('0x69')],_0x2fd216=_0x3aa0bb[_0x82f9('0x79')][_0x82f9('0x48')];return _0x425c8e['isBlockImage'](_0x4292bb)&&_0x4292bb===_0x2fd216;}return!0x1;}function _0x1c106c(_0xacfcaa,_0x1be7b2){return _0x5ba184(_0xacfcaa,_0x1be7b2)?[_0xacfcaa,_0x1be7b2]:_0x5ba184(_0x1be7b2,_0xacfcaa)?[_0x1be7b2,_0xacfcaa]:null;}_0x476b88['model'][_0x82f9('0x25')][_0x82f9('0x78')](()=>{let _0xb6f864=!0x1;const _0x2883b0=Array[_0x82f9('0x2f')](_0x476b88['model'][_0x82f9('0x25')][_0x82f9('0x44')][_0x82f9('0x27')]());for(const {name:_0x3cebb4,data:_0x44a85e}of _0x2883b0){const {group:_0x8ad567,type:_0x48a25b,subType:_0x185f90,id:_0x28cc05}=_0x247398['_splitMarkerName'](_0x3cebb4);if(_0x82f9('0x6e')==_0x8ad567&&_0x247398[_0x82f9('0x2a')](_0x28cc05)){if(_0x82f9('0x49')==_0x48a25b&&(_0x82f9('0x21')==_0x185f90||'imageStylePostApply'==_0x185f90)){const _0x9304ae=_0x247398[_0x82f9('0x5c')](_0x28cc05);if(_0x44a85e['newRange']){const _0x2336f8=_0x9304ae[_0x82f9('0x32')]()[_0x82f9('0x1e')]();if(_0x425c8e[_0x82f9('0x13')](_0x2336f8))continue;_0x247398['discardSuggestion'](_0x9304ae),_0xb6f864=!0x0;}}if('insertion'==_0x48a25b&&_0x82f9('0x19')==_0x185f90&&!_0x44a85e[_0x82f9('0x20')]){const _0x4a325b=_0x247398[_0x82f9('0x5c')](_0x28cc05);_0x4a325b['next']&&_0x4a325b[_0x82f9('0x62')]['isInContent']&&(_0x247398[_0x82f9('0x60')](_0x4a325b[_0x82f9('0x62')]),_0xb6f864=!0x0);}}}return _0xb6f864;}),_0x476b88['plugins'][_0x82f9('0x2e')](_0x82f9('0x52'))&&_0x247398[_0x82f9('0x68')](_0x82f9('0x2'),(_0xb18b7b,_0x3876d5)=>{const _0xad255d=_0x425c8e[_0x82f9('0x5a')](_0x476b88['model']['document']['selection']);_0xad255d[_0x82f9('0x36')](_0x82f9('0xb'))!=_0x3876d5[_0x82f9('0x39')]&&_0x476b88[_0x82f9('0x3b')][_0x82f9('0x3f')](()=>{_0x247398[_0x82f9('0x22')](_0xad255d,{'commandName':'resizeImage','commandParams':[_0x3876d5]});});}),_0x476b88['plugins'][_0x82f9('0x2e')](_0x82f9('0x47'))&&_0x247398['enableCommand'](_0x82f9('0xc'),(_0x1357b7,_0x1cb739)=>{const _0xa84bf8=_0x425c8e['getClosestSelectedImageElement'](_0x476b88[_0x82f9('0x3b')][_0x82f9('0x25')][_0x82f9('0x3a')]);(_0xa84bf8['hasAttribute'](_0x82f9('0x54'))?_0xa84bf8[_0x82f9('0x36')]('alt'):'')!=_0x1cb739[_0x82f9('0x64')]&&_0x476b88[_0x82f9('0x3b')][_0x82f9('0x3f')](()=>{_0x247398['markBlockFormat'](_0xa84bf8,{'commandName':_0x82f9('0xc'),'commandParams':[_0x1cb739]});});}),_0x247398['_descriptionFactory'][_0x82f9('0x4')](_0x5199ab=>{if(!!_0x28cfb6['find'](({type:_0x105a50,subType:_0x2cf558})=>_0x5199ab[_0x82f9('0x41')]==_0x105a50&&_0x5199ab[_0x82f9('0x1c')]==_0x2cf558))return _0x5199ab['previous']?{}:void 0x0;}),_0x247398[_0x82f9('0x40')][_0x82f9('0x4')](_0x9c770d=>{if('insertion'==_0x9c770d[_0x82f9('0x41')]||_0x82f9('0x51')==_0x9c770d[_0x82f9('0x41')]){const _0x3dec8e=_0x9c770d[_0x82f9('0x1e')]();if(_0x3dec8e&&_0x3dec8e['is'](_0x82f9('0x65'),'caption'))return{'type':_0x82f9('0x9')==_0x9c770d[_0x82f9('0x41')]?_0x82f9('0x1d'):_0x82f9('0x33'),'element':_0x3dec8e,'quantity':0x1};}}),_0x247398[_0x82f9('0x40')][_0x82f9('0x4')](_0x4f9659=>_0x82f9('0x49')==_0x4f9659[_0x82f9('0x41')]&&_0x82f9('0x56')==_0x4f9659[_0x82f9('0x1c')]?{'type':'format','content':_0x82f9('0x2b')}:_0x82f9('0x49')==_0x4f9659[_0x82f9('0x41')]&&'convertBlockImageToInline'==_0x4f9659['subType']?{'type':'format','content':_0x82f9('0x34')}:void 0x0),_0x247398['_descriptionFactory'][_0x82f9('0x4')](_0x569426=>{const {data:_0x2c97e2}=_0x569426;if(_0x2c97e2){if(_0x82f9('0x71')==_0x2c97e2[_0x82f9('0x24')]){const _0x5c70e2=_0x2c97e2[_0x82f9('0x57')][0x0][_0x82f9('0x43')];return _0x13b627(_0x82f9('0x4c')===_0x5c70e2?_0x1722ad(_0x1def89,_0x82f9('0x74')):_0x13c19b[_0x5c70e2]||_0x5c70e2);}if(_0x82f9('0xc')==_0x2c97e2[_0x82f9('0x24')]){const _0x107ff8=_0x2c97e2[_0x82f9('0x57')][0x0][_0x82f9('0x64')];return _0x107ff8?{'type':'format','content':_0x1722ad(_0x1def89,_0x82f9('0x58'),'\x22'+_0x107ff8+'\x22')}:{'type':_0x82f9('0x4b'),'content':_0x1722ad(_0x1def89,_0x82f9('0x45'))};}if(_0x82f9('0x2')==_0x2c97e2['commandName']){const _0x4e8db5=_0x2c97e2[_0x82f9('0x57')][0x0]['width'];return _0x4e8db5?{'type':'format','content':_0x1722ad(_0x1def89,_0x82f9('0x6f'),_0x4e8db5)}:{'type':'format','content':_0x1722ad(_0x1def89,_0x82f9('0x6'))};}}function _0x13b627(_0x3705a5){return{'type':_0x82f9('0x4b'),'content':_0x1722ad(_0x1def89,_0x82f9('0x38'),_0x3705a5)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22dc=['Users','getSelectedElement','plugins','_suggestionFactory','get','*Format:*\x20replace\x20image\x20URL','enableCommand','getSuggestionCallback','registerDescriptionCallback','editor','accept','commandParams','commandName','document','src','afterInit','author','ImageEditing','locale','getAttribute','getContainedElement','handleReplaceImageCommand','handleSuggestionDescription','markBlockFormat','subType','TrackChangesEditing','change','replaceImageSource','data','format','model','registerCustomCallback','formatBlock','discard','getSuggestions','source'];(function(_0x309c55,_0x22dc5f){const _0x1e99aa=function(_0x48140e){while(--_0x48140e){_0x309c55['push'](_0x309c55['shift']());}};_0x1e99aa(++_0x22dc5f);}(_0x22dc,0x130));const _0x1e99=function(_0x309c55,_0x22dc5f){_0x309c55=_0x309c55-0x0;let _0x1e99aa=_0x22dc[_0x309c55];return _0x1e99aa;};import{Plugin as _0x47e589}from'ckeditor5/src/core';import{getTranslation as _0x5a5aa5}from'../utils/common-translations';export default class Z extends _0x47e589{[_0x1e99('0x23')](){if(!this['editor'][_0x1e99('0x16')]['has'](_0x1e99('0x1')))return;const _0x152c0b=this['editor']['plugins']['get'](_0x1e99('0x9'));_0x152c0b[_0x1e99('0x1a')](_0x1e99('0xb'),(_0x5a48b9,_0x1e6214)=>this[_0x1e99('0x5')](_0x5a48b9,_0x1e6214)),_0x152c0b[_0x1e99('0x17')]['registerCustomCallback'](_0x1e99('0x10'),_0x1e99('0xb'),'accept',_0x152c0b['_suggestionFactory'][_0x1e99('0x1b')](_0x1e99('0x10'),null,'discard')),_0x152c0b[_0x1e99('0x17')][_0x1e99('0xf')](_0x1e99('0x10'),_0x1e99('0xb'),_0x1e99('0x11'),_0x152c0b[_0x1e99('0x17')]['getSuggestionCallback']('formatBlock',null,_0x1e99('0x1e'))),_0x152c0b['_descriptionFactory'][_0x1e99('0x1c')](_0x2544fc=>this[_0x1e99('0x6')](_0x2544fc));}[_0x1e99('0x5')](_0x55a444,_0x330f9f){const _0x37f53f=this[_0x1e99('0x1d')][_0x1e99('0x16')][_0x1e99('0x18')]('TrackChangesEditing'),_0x231b81=this[_0x1e99('0x1d')][_0x1e99('0xe')][_0x1e99('0x21')]['selection'][_0x1e99('0x15')]();this[_0x1e99('0x1d')][_0x1e99('0xe')][_0x1e99('0xa')](()=>{let _0x223b25=_0x231b81[_0x1e99('0x3')](_0x1e99('0x22'));const _0x17768f=this[_0x1e99('0x1d')][_0x1e99('0x16')][_0x1e99('0x18')](_0x1e99('0x14'))['me'];for(const _0x506483 of _0x37f53f[_0x1e99('0x12')]({'skipNotAttached':!0x0})){const _0x4242fd=_0x506483[_0x1e99('0x4')]();if('replaceImageSource'===_0x506483[_0x1e99('0x8')]&&_0x4242fd===_0x231b81){_0x506483[_0x1e99('0x0')]!==_0x17768f&&_0x506483[_0x1e99('0x11')](),_0x223b25=_0x506483[_0x1e99('0xc')][_0x1e99('0x1f')][0x0][_0x1e99('0x13')];break;}}_0x55a444(_0x330f9f),_0x37f53f[_0x1e99('0x7')](_0x231b81,{'commandName':_0x1e99('0xb'),'commandParams':[{'source':_0x223b25}]},[],_0x1e99('0xb'));});}[_0x1e99('0x6')](_0xe31344){const {data:_0x1f8a4f}=_0xe31344;if(_0x1f8a4f&&_0x1e99('0xb')===_0x1f8a4f[_0x1e99('0x20')]){const _0x4b8579=_0x1e99('0x19');return{'type':_0x1e99('0xd'),'content':_0x5a5aa5(this['editor'][_0x1e99('0x2')],_0x4b8579)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3261=['collaboration_features','lowest','listenTo','commands','_trackChangesExecuted','execute','afterInit','_handleImportedData','bind','editor','_trackChangesValueDuringImport','forEach','value','Users','enableCommand','get','importWord','trackChanges','plugins'];(function(_0xe98738,_0x3261f8){const _0x589d0e=function(_0x2e5680){while(--_0x2e5680){_0xe98738['push'](_0xe98738['shift']());}};_0x589d0e(++_0x3261f8);}(_0x3261,0xa1));const _0x589d=function(_0xe98738,_0x3261f8){_0xe98738=_0xe98738-0x0;let _0x589d0e=_0x3261[_0xe98738];return _0x589d0e;};import{Plugin as _0x36c197}from'ckeditor5/src/core';export default class tt extends _0x36c197{constructor(_0x33badd){super(_0x33badd),this[_0x589d('0x1')]=!0x1,this[_0x589d('0xe')]=!0x1;}[_0x589d('0x10')](){const _0x1c1ce6=this[_0x589d('0x0')],_0x36346b=_0x1c1ce6[_0x589d('0xd')]['get'](_0x589d('0x7')),_0x54de52=_0x1c1ce6[_0x589d('0xd')][_0x589d('0x6')](_0x589d('0x8'));_0x36346b&&(_0x36346b['on']('execute',(_0x318c46,[,_0x912859])=>{this[_0x589d('0x1')]=_0x54de52[_0x589d('0x3')],_0x912859[_0x589d('0xa')]['track_changes']=!this[_0x589d('0x1')];},{'priority':'high'}),this[_0x589d('0xc')](_0x36346b,'dataInsert',this[_0x589d('0x11')][_0x589d('0x12')](this)),this[_0x589d('0xc')](_0x36346b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54de52['execute'](),this[_0x589d('0xe')]=!0x1);},{'priority':_0x589d('0xb')}),_0x1c1ce6[_0x589d('0x9')][_0x589d('0x6')]('TrackChangesEditing')[_0x589d('0x5')]('importWord'));}['_handleImportedData'](_0x3a0716,_0xecf7b9){const {suggestions:_0x59dbd8}=_0xecf7b9,_0x3d8039=this[_0x589d('0x0')][_0x589d('0xd')][_0x589d('0x6')](_0x589d('0x8')),_0x47b67c=_0x3d8039[_0x589d('0x3')];this['_trackChangesValueDuringImport']!==_0x47b67c&&(_0x3d8039[_0x589d('0xf')](),this[_0x589d('0xe')]=!0x0),_0x59dbd8&&_0x59dbd8[_0x589d('0x2')](({id:_0x2c6588,type:_0x1df342,author:_0x4863b1,created_at:_0x1008d2})=>{const _0x1c5a6b={'id':_0x2c6588,'type':_0x1df342,'authorId':this['editor'][_0x589d('0x9')]['get'](_0x589d('0x4'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4863b1,'createdAt':_0x1008d2?new Date(_0x1008d2):new Date(),'source':_0x589d('0x7')}}};this[_0x589d('0x0')][_0x589d('0x9')]['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c5a6b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x445f=['locale','outdentBlock','plugins','indentBlock','filter','IndentEditing','blockIndent','indent','*Outdent:*\x20%0','*Indent:*\x20%0','registerDescriptionCallback','document','_descriptionFactory','editor','getItemLabel','enableCommand','checkAttribute','model','schema','has','afterInit','outdent','IndentBlock','format','change','TrackChangesEditing','commandName'];(function(_0x37f3f2,_0x445fcc){const _0x339713=function(_0x4e8972){while(--_0x4e8972){_0x37f3f2['push'](_0x37f3f2['shift']());}};_0x339713(++_0x445fcc);}(_0x445f,0x14f));const _0x3397=function(_0x37f3f2,_0x445fcc){_0x37f3f2=_0x37f3f2-0x0;let _0x339713=_0x445f[_0x37f3f2];return _0x339713;};import{Plugin as _0x691104}from'ckeditor5/src/core';import{getTranslation as _0x23b6df}from'../utils/common-translations';export default class it extends _0x691104{[_0x3397('0x9')](){const _0x2843ff=this['editor'],_0x266421=_0x2843ff[_0x3397('0x12')]['get'](_0x3397('0xe'));_0x2843ff['plugins'][_0x3397('0x8')](_0x3397('0x15'))&&(_0x266421['enableCommand'](_0x3397('0x17')),_0x266421['enableCommand'](_0x3397('0xa')));const _0x4fe221=_0x2843ff[_0x3397('0x10')];if(_0x2843ff[_0x3397('0x12')][_0x3397('0x8')](_0x3397('0xb'))){for(const _0x596b77 of[_0x3397('0x13'),'outdentBlock'])_0x266421[_0x3397('0x4')](_0x596b77,()=>{const _0xcf974a=Array['from'](this[_0x3397('0x2')]['model'][_0x3397('0x0')]['selection']['getSelectedBlocks']())[_0x3397('0x14')](_0xcd0582=>this[_0x3397('0x2')]['model'][_0x3397('0x7')][_0x3397('0x5')](_0xcd0582,_0x3397('0x16')));_0x2843ff[_0x3397('0x6')][_0x3397('0xd')](()=>{for(const _0x47e47a of _0xcf974a)_0x266421['markBlockFormat'](_0x47e47a,{'commandName':_0x596b77,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x266421[_0x3397('0x1')][_0x3397('0x1a')](_0x547cd0=>{const {data:_0x19699d}=_0x547cd0;if(!_0x19699d)return;if(_0x3397('0x13')!=_0x19699d[_0x3397('0xf')]&&_0x3397('0x11')!=_0x19699d[_0x3397('0xf')])return;const _0x338954=_0x547cd0['getItems']()[0x0],_0x443743=_0x266421['_descriptionFactory'][_0x3397('0x3')](_0x338954);return _0x3397('0x13')==_0x19699d[_0x3397('0xf')]?{'type':'format','content':_0x23b6df(_0x4fe221,_0x3397('0x19'),_0x443743)}:_0x3397('0x11')==_0x19699d[_0x3397('0xf')]?{'type':_0x3397('0xc'),'content':_0x23b6df(_0x4fe221,_0x3397('0x18'),_0x443743)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3a92=['TrackChangesEditing','get','requires'];(function(_0x5bbee8,_0x3a9222){var _0x2a40cf=function(_0x18117c){while(--_0x18117c){_0x5bbee8['push'](_0x5bbee8['shift']());}};_0x2a40cf(++_0x3a9222);}(_0x3a92,0x1e5));var _0x2a40=function(_0x5bbee8,_0x3a9222){_0x5bbee8=_0x5bbee8-0x0;var _0x2a40cf=_0x3a92[_0x5bbee8];return _0x2a40cf;};import{Plugin as _0x12a040}from'ckeditor5/src/core';import{Input as _0x370226}from'ckeditor5/src/typing';export default class et extends _0x12a040{static get[_0x2a40('0x0')](){return[_0x370226];}['init'](){this['editor']['plugins'][_0x2a40('0x2')](_0x2a40('0x1'))['enableCommand']('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5aec=['document','change','getAttribute','unlink','getFirstPosition','LinkEditing','*Set\x20link:*\x20%0','format','markInlineFormat','locale','linkHref','_descriptionFactory','plugins','editor','commandName','link','isCollapsed','TrackChangesEditing','model','*Remove\x20link*','registerDescriptionCallback','has','enableCommand'];(function(_0x27fb81,_0x5aec00){const _0x484bf7=function(_0x16f204){while(--_0x16f204){_0x27fb81['push'](_0x27fb81['shift']());}};_0x484bf7(++_0x5aec00);}(_0x5aec,0x10c));const _0x484b=function(_0x27fb81,_0x5aec00){_0x27fb81=_0x27fb81-0x0;let _0x484bf7=_0x5aec[_0x27fb81];return _0x484bf7;};import{Plugin as _0x137b24}from'ckeditor5/src/core';import{findAttributeRange as _0x321a3c}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x44c497}from'./utils';import{getTranslation as _0x46b14c}from'../utils/common-translations';export default class nt extends _0x137b24{['afterInit'](){const _0x2a203f=this[_0x484b('0x15')];if(!_0x2a203f['plugins'][_0x484b('0x6')](_0x484b('0xd')))return;const _0x41d5c8=_0x2a203f[_0x484b('0x14')]['get'](_0x484b('0x2'));_0x41d5c8[_0x484b('0x7')](_0x484b('0x0'),(_0x5e9abb,_0xee45e6)=>{const _0x3e96b4=_0x2a203f[_0x484b('0x3')][_0x484b('0x8')]['selection'];let _0x3c76e5=[];if(_0x3e96b4['isCollapsed']){if(!_0x3e96b4['hasAttribute'](_0x484b('0x12')))return void _0x5e9abb(_0xee45e6);{const _0x1a9ad8=_0x321a3c(_0x3e96b4[_0x484b('0xc')](),_0x484b('0x12'),_0x3e96b4['getAttribute'](_0x484b('0x12')),_0x2a203f[_0x484b('0x3')]);_0x3c76e5=[_0x1a9ad8];}}else _0x3c76e5=Array['from'](_0x3e96b4['getRanges']());_0x2a203f[_0x484b('0x3')][_0x484b('0x9')](()=>{for(const _0x10ff35 of _0x3c76e5)_0x41d5c8[_0x484b('0x10')](_0x10ff35,{'commandName':_0x484b('0x0'),'commandParams':[_0xee45e6]});});}),_0x41d5c8['enableCommand'](_0x484b('0xb'),()=>{const _0x3d8071=this[_0x484b('0x15')][_0x484b('0x3')],_0x26750f=_0x3d8071['document']['selection'];_0x3d8071[_0x484b('0x9')](()=>{let _0x2f397e=[];if(_0x26750f[_0x484b('0x1')])_0x2f397e=[_0x321a3c(_0x26750f['getFirstPosition'](),_0x484b('0x12'),_0x26750f[_0x484b('0xa')](_0x484b('0x12')),_0x2a203f[_0x484b('0x3')])];else _0x2f397e=_0x44c497(_0x484b('0x12'),_0x26750f['getFirstRange'](),_0x2a203f[_0x484b('0x3')]);for(const _0x49b382 of _0x2f397e)_0x41d5c8[_0x484b('0x10')](_0x49b382,{'commandName':'unlink','commandParams':[]});});}),_0x41d5c8[_0x484b('0x13')][_0x484b('0x5')](_0x168863=>{const {data:_0xe3cad8}=_0x168863,_0x23502c=_0x2a203f[_0x484b('0x11')];if(_0xe3cad8){if(_0x484b('0x0')==_0xe3cad8[_0x484b('0x16')]){const _0x56f0fa=_0xe3cad8['commandParams'][0x0];return{'type':_0x484b('0xf'),'content':_0x46b14c(_0x23502c,_0x484b('0xe'),'\x22'+_0x56f0fa+'\x22')};}return _0x484b('0xb')==_0xe3cad8[_0x484b('0x16')]?{'type':_0x484b('0xf'),'content':_0x46b14c(_0x23502c,_0x484b('0x4'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5058=['bulletedList','*Outdent:*\x20%0','indentList','element','commandName','createPositionAt','checkChild','selection','checkTodoList','numberedList','*Check\x20item*','model','todo','previousSibling','value','markBlockFormat','before','add','List','get','has','document','listItem','*Change\x20to:*\x20%0','outdentList','getAttribute','ELEMENT_LIST_ITEM','name','_descriptionFactory','commands','bulleted','nextSibling','parent','todoListChecked','registerDescriptionCallback','forceValue','slice','ELEMENT_NUMBERED_LIST','replace','ELEMENT_TODO_LIST','todoList','listType','from','listIndent','registerElementLabel','numbered','_selectedElements','editor','afterInit','findIndex','commandParams','TrackChangesEditing','format','*Uncheck\x20item*','enableCommand','plugins','push','createRange','schema','ELEMENT_BULLETED_LIST','ListEditing','change','filter','length','getSelectedBlocks'];(function(_0x565a41,_0x5058d3){const _0x1094b2=function(_0x4f7a4d){while(--_0x4f7a4d){_0x565a41['push'](_0x565a41['shift']());}};_0x1094b2(++_0x5058d3);}(_0x5058,0x1cf));const _0x1094=function(_0x565a41,_0x5058d3){_0x565a41=_0x565a41-0x0;let _0x1094b2=_0x5058[_0x565a41];return _0x1094b2;};import{Plugin as _0x4e574e}from'ckeditor5/src/core';import{getTranslation as _0xe6fb49}from'../utils/common-translations';export default class st extends _0x4e574e{[_0x1094('0x28')](){const _0x30a00f=this[_0x1094('0x27')],_0x1bfd42=_0x30a00f['locale'];if(!_0x30a00f['plugins'][_0x1094('0xc')](_0x1094('0x34')))return;const _0x465e08=_0x30a00f[_0x1094('0x2f')][_0x1094('0xb')](_0x1094('0x2b')),_0x19f940=_0x30a00f[_0x1094('0x2f')][_0x1094('0xc')]('TodoListEditing');function _0x15d306(_0x5c976e){return()=>{const _0x58c9f3=_0x30a00f[_0x1094('0x3')][_0x1094('0xd')][_0x1094('0x40')],_0x336123=_0x30a00f['commands'][_0x1094('0xb')](_0x5c976e);if(_0x336123[_0x1094('0x6')])return void _0x30a00f['execute']('paragraph',{});const _0x351077=_0x5c976e[_0x1094('0x1c')](0x0,-0x4),_0xa4b409=function(_0x231fff,_0x135d08,_0x1cf64e){let _0x40dc5e=Array[_0x1094('0x22')](_0x231fff)[_0x1094('0x36')](_0x19b648=>function(_0x590afc,_0x1eb10a){return _0x1eb10a[_0x1094('0x3f')](_0x590afc[_0x1094('0x18')],_0x1094('0xe'))&&!_0x1eb10a['isObject'](_0x590afc);}(_0x19b648,_0x1cf64e));_0x40dc5e=_0x40dc5e[_0x1094('0x36')](_0x2647db=>!_0x2647db['is'](_0x1094('0x3c'),_0x1094('0xe'))||_0x2647db[_0x1094('0x11')](_0x1094('0x21'))!=_0x135d08);const _0x5bf0a9=new Set();for(const _0x2c00a1 of _0x40dc5e)_0x2c00a1['is'](_0x1094('0x3c'),_0x1094('0xe'))?_0x5bf0a9[_0x1094('0x9')](ne(_0x2c00a1)):_0x5bf0a9[_0x1094('0x9')](_0x2c00a1);return Array[_0x1094('0x22')](_0x5bf0a9);}(_0x58c9f3[_0x1094('0x38')](),_0x351077,_0x30a00f['model'][_0x1094('0x32')]);_0x30a00f[_0x1094('0x3')][_0x1094('0x35')](()=>{for(const _0x7aec59 of _0xa4b409)_0x465e08['markBlockFormat'](_0x7aec59,{'commandName':_0x5c976e,'commandParams':[{'forceValue':!_0x336123[_0x1094('0x6')]}],'formatGroupId':'blockName'},oe(_0x7aec59));});};}function _0x1ddcdd(_0x30e29a){return()=>{const _0x2dadcd=function(_0x5707b3){let _0x4f595c=Array[_0x1094('0x22')](_0x5707b3);const _0x80bafb=_0x4f595c[_0x1094('0x29')](_0x3b8ff1=>_0x1094('0xe')!=_0x3b8ff1['name']);return _0x80bafb>-0x1&&(_0x4f595c=_0x4f595c[_0x1094('0x1c')](0x0,_0x80bafb)),_0x4f595c;}(_0x30a00f[_0x1094('0x3')][_0x1094('0xd')][_0x1094('0x40')][_0x1094('0x38')]()),_0x5a4c72=_0x30a00f['model'][_0x1094('0x31')](_0x30a00f[_0x1094('0x3')]['createPositionAt'](_0x2dadcd[0x0],_0x1094('0x8')),_0x30a00f[_0x1094('0x3')][_0x1094('0x3e')](_0x2dadcd[_0x2dadcd[_0x1094('0x37')]-0x1],'end'));_0x30a00f[_0x1094('0x3')]['change'](()=>{_0x465e08[_0x1094('0x7')](_0x5a4c72,{'commandName':_0x30e29a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13157d){const _0x1281b4=new Set();for(const _0x4080c5 of _0x13157d){let _0x31e930=_0x4080c5[_0x1094('0x17')];for(;_0x31e930&&_0x31e930[_0x1094('0x11')](_0x1094('0x23'))>_0x4080c5[_0x1094('0x11')](_0x1094('0x23'));)_0x1281b4[_0x1094('0x9')](_0x31e930),_0x31e930=_0x31e930[_0x1094('0x17')];}return Array[_0x1094('0x22')](_0x1281b4);}(_0x2dadcd));});};}_0x465e08['enableCommand'](_0x1094('0x1'),_0x15d306(_0x1094('0x1'))),_0x465e08['enableCommand']('bulletedList',_0x15d306(_0x1094('0x39'))),_0x19f940&&_0x465e08[_0x1094('0x2e')](_0x1094('0x20'),_0x15d306(_0x1094('0x20'))),_0x465e08[_0x1094('0x2e')](_0x1094('0x3b'),_0x1ddcdd(_0x1094('0x3b'))),_0x465e08[_0x1094('0x2e')](_0x1094('0x10'),_0x1ddcdd(_0x1094('0x10'))),_0x19f940&&_0x465e08[_0x1094('0x2e')](_0x1094('0x0'),()=>{const _0x5b39fa=_0x30a00f[_0x1094('0x15')][_0x1094('0xb')]('checkTodoList'),_0x4565aa=Array['from'](_0x5b39fa[_0x1094('0x26')]);_0x4565aa[_0x1094('0x36')](_0x5eecb4=>_0x5eecb4[_0x1094('0x11')](_0x1094('0x19'))!=_0x5b39fa[_0x1094('0x6')]),_0x30a00f[_0x1094('0x3')][_0x1094('0x35')](()=>{for(const _0x29119b of _0x4565aa)_0x465e08[_0x1094('0x7')](_0x29119b,{'commandName':_0x1094('0x0'),'commandParams':[{'forceValue':!_0x5b39fa[_0x1094('0x6')]}]});});}),_0x465e08['_descriptionFactory'][_0x1094('0x24')](_0x1094('0xe'),_0x2f389c=>_0xe6fb49(_0x1bfd42,_0x1094('0x12'),_0x2f389c)),_0x465e08[_0x1094('0x14')][_0x1094('0x1a')](_0x43c6ed=>{const {data:_0x3e722b}=_0x43c6ed;if(_0x3e722b){if('numberedList'==_0x3e722b[_0x1094('0x3d')]||_0x1094('0x39')==_0x3e722b[_0x1094('0x3d')]||_0x1094('0x20')==_0x3e722b[_0x1094('0x3d')])switch(_0x3e722b['commandName'][_0x1094('0x1e')](_0x1094('0xa'),'')){case _0x1094('0x16'):return _0x4f89b5(_0xe6fb49(_0x1bfd42,_0x1094('0x33')));case _0x1094('0x25'):return _0x4f89b5(_0xe6fb49(_0x1bfd42,_0x1094('0x1d')));case _0x1094('0x4'):return _0x4f89b5(_0xe6fb49(_0x1bfd42,_0x1094('0x1f')));}if(_0x1094('0x3b')==_0x3e722b[_0x1094('0x3d')])return{'type':_0x1094('0x2c'),'content':_0xe6fb49(_0x1bfd42,'*Indent:*\x20%0',_0xe6fb49(_0x1bfd42,_0x1094('0x12')))};if('outdentList'==_0x3e722b[_0x1094('0x3d')])return{'type':'format','content':_0xe6fb49(_0x1bfd42,_0x1094('0x3a'),_0xe6fb49(_0x1bfd42,_0x1094('0x12')))};if(_0x1094('0x0')==_0x3e722b[_0x1094('0x3d')])return _0x3e722b[_0x1094('0x2a')][0x0][_0x1094('0x1b')]?{'type':_0x1094('0x2c'),'content':_0xe6fb49(_0x1bfd42,_0x1094('0x2'))}:{'type':'format','content':_0xe6fb49(_0x1bfd42,_0x1094('0x2d'))};}function _0x4f89b5(_0x75f6da){return{'type':_0x1094('0x2c'),'content':_0xe6fb49(_0x1bfd42,_0x1094('0xf'),_0x75f6da)};}});}}function ne(_0x1724d9){const _0x1deffa=_0x1724d9[_0x1094('0x11')](_0x1094('0x23'));if(0x0==_0x1deffa)return _0x1724d9;let _0x4c60fc=_0x1724d9;for(;_0x1724d9[_0x1094('0x5')]&&_0x1724d9[_0x1094('0x5')]['is'](_0x1094('0x3c'),_0x1094('0xe'));){const _0x430a2b=_0x1724d9[_0x1094('0x5')]['getAttribute'](_0x1094('0x23'));if(_0x430a2b==_0x1deffa)_0x4c60fc=_0x1724d9[_0x1094('0x5')];else{if(_0x430a2b<_0x1deffa)break;}_0x1724d9=_0x1724d9['previousSibling'];}return _0x4c60fc;}function oe(_0x2f0f20){const _0x44876e=[];if(_0x2f0f20['is'](_0x1094('0x3c'),'listItem')&&_0x2f0f20['getAttribute'](_0x1094('0x23'))>0x0){let _0x495461=_0x2f0f20[_0x1094('0x17')];for(;_0x495461&&_0x1094('0xe')==_0x495461[_0x1094('0x13')]&&_0x495461[_0x1094('0x11')](_0x1094('0x23'))==_0x2f0f20[_0x1094('0x11')]('listIndent');)_0x44876e[_0x1094('0x30')](_0x495461),_0x495461=_0x495461['nextSibling'];}return _0x44876e;}
|