@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231114.0 → 0.0.0-nightly-20231116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +3 -3
- package/lang/translations/ar.po +19 -19
- package/lang/translations/bg.po +19 -19
- package/lang/translations/bn.po +19 -19
- package/lang/translations/ca.po +19 -19
- package/lang/translations/cs.po +19 -19
- package/lang/translations/da.po +19 -19
- package/lang/translations/de.po +19 -19
- package/lang/translations/el.po +19 -19
- package/lang/translations/es.po +19 -19
- package/lang/translations/et.po +19 -19
- package/lang/translations/fi.po +19 -19
- package/lang/translations/fr.po +19 -19
- package/lang/translations/he.po +19 -19
- package/lang/translations/hi.po +19 -19
- package/lang/translations/hu.po +19 -19
- package/lang/translations/id.po +19 -19
- package/lang/translations/it.po +19 -19
- package/lang/translations/ja.po +19 -19
- package/lang/translations/ko.po +19 -19
- package/lang/translations/lt.po +19 -19
- package/lang/translations/lv.po +19 -19
- package/lang/translations/ms.po +19 -19
- package/lang/translations/nl.po +19 -19
- package/lang/translations/no.po +19 -19
- package/lang/translations/pl.po +19 -19
- package/lang/translations/pt-br.po +19 -19
- package/lang/translations/pt.po +19 -19
- package/lang/translations/ro.po +19 -19
- package/lang/translations/ru.po +19 -19
- package/lang/translations/sk.po +19 -19
- package/lang/translations/sr.po +19 -19
- package/lang/translations/sv.po +19 -19
- package/lang/translations/th.po +19 -19
- package/lang/translations/tr.po +19 -19
- package/lang/translations/uk.po +19 -19
- package/lang/translations/vi.po +19 -19
- package/lang/translations/zh-cn.po +19 -19
- package/lang/translations/zh.po +19 -19
- 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/index.d.ts +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/imagestyle.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.d.ts +0 -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.d.ts +7 -4
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +0 -67
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +14 -23
- 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.d.ts +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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1402=['multipleBlocks','list.multiBlock','registerElementLabel','from','formatInline','length','change','enableCommand','mergeListItemBackward','locale','start','getRanges','commandParams','push','afterInit','execute','DocumentListEditing','commands','isFirstBlockOfListItem','deletion','nextSibling','previousSibling','editor','plugins','detach','toUpperCase','splitListItemAfter','listItemId','_descriptionFactory','get','getFirstRange','after','TrackChangesEditing','listType','format','refresh','end','registerCustomCallback','nodeAfter','indentList','registerDescriptionCallback','*Format:*\x20remove\x20from\x20%0','ELEMENT_LIST_ITEM','numberedList','bulletedList','model','markBlockFormat','slice','*Indent:*\x20%0','mergeListItemForward','type','has','map','documentList','next','config','value','before','parent','ELEMENT_NUMBERED_LIST','expandListBlocksToCompleteList','markMultiRangeBlockFormat','containsItem','getAttribute','isObject','fromRange','outdentList','createRange','getSelectedBlocks','accept','splitListItemBefore','formatBlock','listIndent','document','*Merge:*\x20%0','forceValue','commandName','add','findIndex','_LIST','*Change\x20to:*\x20%0','setSelection','selection','ELEMENT_BULLETED_LIST','createPositionAt'];(function(_0x233bcb,_0x14025b){const _0x14d6e8=function(_0x35e9a1){while(--_0x35e9a1){_0x233bcb['push'](_0x233bcb['shift']());}};_0x14d6e8(++_0x14025b);}(_0x1402,0xf8));const _0x14d6=function(_0x233bcb,_0x14025b){_0x233bcb=_0x233bcb-0x0;let _0x14d6e8=_0x1402[_0x233bcb];return _0x14d6e8;};import{Plugin as _0x2c766e}from'ckeditor5/src/core';import{getTranslation as _0x5e9acf}from'../utils/common-translations';import{LiveRange as _0x1016b5}from'ckeditor5/src/engine';export default class q extends _0x2c766e{[_0x14d6('0x15')](){const _0x26758f=this[_0x14d6('0x1d')];if(!_0x26758f[_0x14d6('0x1e')][_0x14d6('0x3a')](_0x14d6('0x17')))return;const _0x1449f2=_0x26758f[_0x14d6('0x10')],_0x1c7a9d=_0x26758f[_0x14d6('0x1e')][_0x14d6('0x24')](_0x14d6('0x27')),_0x496d4c=_0x26758f[_0x14d6('0x1e')]['get']('DocumentListUtils');function _0x13aa85(_0x41c7e5){return()=>{const _0x187e41=_0x26758f['commands'][_0x14d6('0x24')](_0x41c7e5);if(_0x187e41[_0x14d6('0x3f')]&&!_0x26758f['config'][_0x14d6('0x24')](_0x14d6('0x8')))return void _0x26758f['execute']('paragraph',{});let _0x2e965a=Array['from'](_0x26758f['model'][_0x14d6('0x50')][_0x14d6('0x4')][_0x14d6('0x4b')]());if(_0x2f91fc(_0x41c7e5)){_0x2e965a=_0x496d4c[_0x14d6('0x43')](_0x2e965a);const _0xe84527=[];for(const _0x3edd10 of _0x2e965a)_0x496d4c[_0x14d6('0x19')](_0x3edd10)&&_0xe84527[_0x14d6('0x14')](_0x3edd10);_0x2e965a=_0xe84527;}_0x26758f[_0x14d6('0x34')][_0x14d6('0xd')](()=>{_0x1c7a9d[_0x14d6('0x44')](_0x2e965a,{'commandName':_0x41c7e5,'commandParams':[{'forceValue':!_0x187e41[_0x14d6('0x3f')]}],'formatGroupId':'listType'},[],_0x14d6('0x3c'));});};}function _0x513fcb(_0x4c0c9d){return()=>{const _0x348ac3=function(_0x5a45e8){let _0x41d10a=Array[_0x14d6('0xa')](_0x5a45e8);const _0x43a4be=_0x41d10a[_0x14d6('0x0')](_0x301dc7=>!_0x301dc7['hasAttribute']('listItemId'));return _0x43a4be>-0x1&&(_0x41d10a=_0x41d10a[_0x14d6('0x36')](0x0,_0x43a4be)),_0x41d10a;}(_0x26758f[_0x14d6('0x34')]['document'][_0x14d6('0x4')][_0x14d6('0x4b')]()),_0x57ab84=_0x348ac3[_0x348ac3[_0x14d6('0xc')]-0x1],_0x4a6a80=_0x26758f[_0x14d6('0x34')]['schema'][_0x14d6('0x47')](_0x57ab84)?_0x14d6('0x26'):'end',_0x511250=_0x26758f[_0x14d6('0x34')][_0x14d6('0x4a')](_0x26758f['model'][_0x14d6('0x6')](_0x348ac3[0x0],'before'),_0x26758f['model'][_0x14d6('0x6')](_0x57ab84,_0x4a6a80));_0x26758f[_0x14d6('0x34')][_0x14d6('0xd')](()=>{_0x1c7a9d[_0x14d6('0x35')](_0x511250,{'commandName':_0x4c0c9d,'commandParams':[],'formatGroupId':_0x14d6('0x28')},function(_0x342592){const _0x4432df=new Set();for(const _0x36b750 of _0x342592){let _0x4a0cf8=_0x36b750[_0x14d6('0x1b')];for(;_0x4a0cf8&&_0x4a0cf8['getAttribute'](_0x14d6('0x4f'))>_0x36b750[_0x14d6('0x46')](_0x14d6('0x4f'));)_0x4432df[_0x14d6('0x54')](_0x4a0cf8),_0x4a0cf8=_0x4a0cf8[_0x14d6('0x1b')];}return Array['from'](_0x4432df);}(_0x348ac3));});};}function _0x3f16eb(_0x1b247d){return()=>{const _0x216ee3=_0x26758f[_0x14d6('0x34')][_0x14d6('0x50')][_0x14d6('0x4')][_0x14d6('0x4b')]()[_0x14d6('0x3d')]()[_0x14d6('0x3f')],_0x3f7f53=_0x26758f['model'][_0x14d6('0x6')](_0x216ee3,_0x14d6('0x40')),_0x12abd8=_0x26758f[_0x14d6('0x34')][_0x14d6('0x6')](_0x216ee3,0x0),_0x165c8f=_0x26758f['model'][_0x14d6('0x4a')](_0x3f7f53,_0x12abd8);_0x26758f[_0x14d6('0x34')][_0x14d6('0xd')](()=>{_0x1c7a9d[_0x14d6('0x35')](_0x165c8f,{'commandName':_0x1b247d,'commandParams':[],'formatGroupId':_0x14d6('0x28')});});};}function _0x2f91fc(_0x1eac86){const _0x376444=_0x26758f['commands']['get'](_0x14d6('0x33'))['value'],_0xfb6ab4=_0x26758f['commands']['get'](_0x14d6('0x32'))[_0x14d6('0x3f')];return _0x14d6('0x32')===_0x1eac86?_0x376444:_0xfb6ab4;}_0x1c7a9d['enableCommand'](_0x14d6('0x32'),_0x13aa85(_0x14d6('0x32'))),_0x1c7a9d[_0x14d6('0xe')](_0x14d6('0x33'),_0x13aa85('bulletedList')),_0x1c7a9d[_0x14d6('0xe')](_0x14d6('0x2e'),_0x513fcb(_0x14d6('0x2e'))),_0x1c7a9d[_0x14d6('0xe')](_0x14d6('0x49'),_0x513fcb(_0x14d6('0x49'))),_0x1c7a9d[_0x14d6('0xe')](_0x14d6('0x21'),_0x3f16eb(_0x14d6('0x21'))),_0x1c7a9d[_0x14d6('0xe')](_0x14d6('0x4d'),_0x3f16eb('splitListItemBefore')),_0x1c7a9d[_0x14d6('0x23')][_0x14d6('0x9')](function(_0x56ba86){const _0x10cd2e=!_0x26758f['model']['schema']['isObject'](_0x56ba86),_0x35c275=_0x56ba86[_0x14d6('0x1c')],_0x18c484=_0x56ba86['nextSibling'],_0x3c30d2=_0x56ba86[_0x14d6('0x46')]('listItemId'),_0x35f0b3=!_0x35c275||_0x35c275[_0x14d6('0x46')](_0x14d6('0x22'))!==_0x3c30d2,_0x48b4eb=!_0x18c484||_0x18c484['getAttribute'](_0x14d6('0x22'))!==_0x3c30d2;return _0x10cd2e&&Boolean(_0x3c30d2)&&_0x35f0b3&&_0x48b4eb;},_0x2abb2e=>_0x5e9acf(_0x1449f2,_0x14d6('0x31'),_0x2abb2e)),_0x1c7a9d[_0x14d6('0x23')][_0x14d6('0x2f')](function(_0x3575e0){if(_0x14d6('0x4e')!=_0x3575e0['type']&&_0x14d6('0xb')!=_0x3575e0[_0x14d6('0x39')])return;const {data:_0x423ae0}=_0x3575e0;if(!_0x423ae0)return;let _0x445de2,_0x45190e,_0x5eb232,_0x2d5a38;switch(_0x423ae0[_0x14d6('0x53')]){case'bulletedList':_0x5eb232=_0x423ae0['commandParams'][0x0]['forceValue'],_0x2d5a38=_0x2f91fc(_0x423ae0[_0x14d6('0x53')]),_0x445de2=_0x5eb232?'*Format:*\x20insert\x20into\x20%0':_0x14d6('0x30'),!_0x2d5a38&&_0x26758f[_0x14d6('0x3e')][_0x14d6('0x24')](_0x14d6('0x8'))||(_0x445de2=_0x14d6('0x2')),_0x45190e={'type':_0x14d6('0x29'),'content':_0x5e9acf(_0x1449f2,_0x445de2,_0x5e9acf(_0x1449f2,_0x14d6('0x5')))};break;case _0x14d6('0x32'):_0x5eb232=_0x423ae0[_0x14d6('0x13')][0x0][_0x14d6('0x52')],_0x2d5a38=_0x2f91fc(_0x423ae0['commandName']),_0x445de2=_0x5eb232?'*Format:*\x20insert\x20into\x20%0':_0x14d6('0x30'),!_0x2d5a38&&_0x26758f[_0x14d6('0x3e')][_0x14d6('0x24')]('list.multiBlock')||(_0x445de2=_0x14d6('0x2')),_0x45190e={'type':_0x14d6('0x29'),'content':_0x5e9acf(_0x1449f2,_0x445de2,_0x5e9acf(_0x1449f2,_0x14d6('0x42')))};break;case _0x14d6('0x2e'):_0x445de2=_0x14d6('0x37'),_0x45190e={'type':_0x14d6('0x29'),'content':_0x5e9acf(_0x1449f2,_0x445de2,_0x5e9acf(_0x1449f2,_0x14d6('0x31')))};break;case'outdentList':_0x445de2=function(_0x15148d){const _0x5c28ff=_0x15148d[_0x14d6('0x25')]();let _0x24c232=_0x5c28ff[_0x14d6('0x11')]['nodeAfter'];for(;_0x24c232&&_0x5c28ff[_0x14d6('0x45')](_0x24c232);){if(_0x24c232['getAttribute'](_0x14d6('0x4f'))>0x0)return!0x1;_0x24c232=_0x24c232[_0x14d6('0x1b')];}return!0x0;}(_0x3575e0)?_0x5e9acf(_0x1449f2,'*Format:*\x20remove\x20from\x20%0',_0x5e9acf(_0x1449f2,function(_0x2037cb){const _0x12c7db=_0x2037cb['getFirstRange']()[_0x14d6('0x11')][_0x14d6('0x2d')];return'ELEMENT_'+_0x12c7db[_0x14d6('0x46')](_0x14d6('0x28'))[_0x14d6('0x20')]()+_0x14d6('0x1');}(_0x3575e0))):_0x5e9acf(_0x1449f2,'*Outdent:*\x20%0',_0x5e9acf(_0x1449f2,'ELEMENT_LIST_ITEM')),_0x45190e={'type':_0x14d6('0x29'),'content':_0x445de2};break;case _0x14d6('0xf'):case _0x14d6('0x38'):!0x1===_0x423ae0[_0x14d6('0x7')]&&(_0x445de2=_0x14d6('0x51'),_0x45190e={'type':_0x14d6('0x1a'),'content':_0x5e9acf(_0x1449f2,_0x445de2,_0x5e9acf(_0x1449f2,_0x14d6('0x31')))});}return _0x45190e;}),_0x1c7a9d['_suggestionFactory'][_0x14d6('0x2c')](_0x14d6('0x4e'),_0x14d6('0x3c'),_0x14d6('0x4c'),function(_0x480a06,_0x3aa1dd){const _0x314dd3=[];for(let _0x51c77e of _0x480a06)_0x51c77e[_0x14d6('0x11')]['nodeAfter']===_0x51c77e[_0x14d6('0x2b')][_0x14d6('0x41')]&&(_0x51c77e=_0x26758f[_0x14d6('0x34')][_0x14d6('0x4a')](_0x26758f[_0x14d6('0x34')][_0x14d6('0x6')](_0x51c77e[_0x14d6('0x11')][_0x14d6('0x2d')],0x0))),_0x314dd3[_0x14d6('0x14')](_0x51c77e);_0x26758f[_0x14d6('0x34')][_0x14d6('0xd')](_0x38437a=>{const _0xe9d731=_0x26758f[_0x14d6('0x34')]['document'][_0x14d6('0x4')],_0x24889a=Array[_0x14d6('0xa')](_0xe9d731[_0x14d6('0x12')]())[_0x14d6('0x3b')](_0x27b2f9=>_0x1016b5[_0x14d6('0x48')](_0x27b2f9));_0x38437a[_0x14d6('0x3')](_0x314dd3),_0x26758f[_0x14d6('0x18')]['get'](_0x3aa1dd['commandName'])[_0x14d6('0x2a')](),_0x3aa1dd[_0x14d6('0x13')][_0x14d6('0x14')]({'forceDefaultExecution':!0x0}),_0x26758f[_0x14d6('0x16')](_0x3aa1dd['commandName'],..._0x3aa1dd['commandParams']),_0x38437a['setSelection'](_0x24889a);for(const _0x5ea2c9 of _0x24889a)_0x5ea2c9[_0x14d6('0x1f')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1683=['numbered','DocumentListUtils','selection','_getSuggestionBlocksForListStyle','*Format:*\x20set\x20start\x20index\x20to\x20%0','change','get','list.properties','startIndex','enableCommand','_getSuggestionBlocks','commandParams','length','commandName','document','listStart','handleListReversedCommand','push','bind','filter','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20reversed','plugins','DocumentListPropertiesEditing','afterInit','format','ELEMENT_','listReversed','type','registerDescriptionCallback','handleListStyleCommand','TrackChangesEditing','_descriptionFactory','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','formatInline','handleDescriptions','_LIST_','isFirstBlockOfListItem','styles','reversed','toUpperCase','has','model','isListItemBlock','listType','expandListBlocksToCompleteList','listStyle','handleListStartCommand','editor','formatBlock'];(function(_0x2c2c98,_0x1683b0){const _0xa88347=function(_0x4bc51b){while(--_0x4bc51b){_0x2c2c98['push'](_0x2c2c98['shift']());}};_0xa88347(++_0x1683b0);}(_0x1683,0x11d));const _0xa883=function(_0x2c2c98,_0x1683b0){_0x2c2c98=_0x2c2c98-0x0;let _0xa88347=_0x1683[_0x2c2c98];return _0xa88347;};import{Plugin as _0xa2f907}from'ckeditor5/src/core';import{getTranslation as _0x55238d}from'../utils/common-translations';export default class z extends _0xa2f907{[_0xa883('0x2d')](){if(!this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0xc')](_0xa883('0x2c')))return;const _0x106085=this['editor']['config'][_0xa883('0x1b')](_0xa883('0x1c')),_0x509791=this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0x1b')]('TrackChangesEditing');_0x106085[_0xa883('0x9')]&&_0x509791[_0xa883('0x1e')](_0xa883('0x11'),this[_0xa883('0x0')][_0xa883('0x27')](this)),_0x106085[_0xa883('0xa')]&&_0x509791[_0xa883('0x1e')](_0xa883('0x30'),this[_0xa883('0x25')][_0xa883('0x27')](this)),_0x106085[_0xa883('0x1d')]&&_0x509791[_0xa883('0x1e')]('listStart',this['handleListStartCommand']['bind'](this)),_0x509791[_0xa883('0x2')][_0xa883('0x32')](this[_0xa883('0x6')][_0xa883('0x27')](this));}['handleListStyleCommand'](_0x5ab769,_0x34a665={}){const _0x55dc7a=this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0x1b')](_0xa883('0x1')),_0x54fd7c=this[_0xa883('0x18')]();this['editor']['model'][_0xa883('0x1a')](()=>{_0x55dc7a['markMultiRangeBlockFormat'](_0x54fd7c,{'commandName':'listStyle','commandParams':[{'type':_0x34a665['type']}],'formatGroupId':_0xa883('0x11')});});}[_0xa883('0x25')](_0x57a394,_0x33495a={}){const _0x26fdfb=this['editor']['plugins'][_0xa883('0x1b')](_0xa883('0x1')),_0x7114a1=this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0x1b')](_0xa883('0x16')),_0x4c7812=this[_0xa883('0x1f')](_0x24ff20=>_0x7114a1[_0xa883('0xe')](_0x24ff20)&&_0xa883('0x15')===_0x24ff20['getAttribute'](_0xa883('0xf')));null!==_0x4c7812&&this['editor'][_0xa883('0xd')]['change'](()=>{_0x26fdfb[_0xa883('0x3')](_0x4c7812,{'commandName':'listReversed','commandParams':[{'reversed':_0x33495a[_0xa883('0xa')]}],'formatGroupId':_0xa883('0x30')});});}[_0xa883('0x12')](_0x468de1,_0xd3ad01={}){const _0x528eea=this['editor'][_0xa883('0x2b')]['get'](_0xa883('0x1')),_0x5d5adf=this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0x1b')]('DocumentListUtils'),_0x469228=this[_0xa883('0x1f')](_0x3cbb3e=>_0x5d5adf[_0xa883('0xe')](_0x3cbb3e)&&_0xa883('0x15')===_0x3cbb3e['getAttribute'](_0xa883('0xf')));null!==_0x469228&&this['editor'][_0xa883('0xd')][_0xa883('0x1a')](()=>{_0x528eea['markMultiRangeBlockFormat'](_0x469228,{'commandName':_0xa883('0x24'),'commandParams':[{'startIndex':_0xd3ad01[_0xa883('0x1d')]}],'formatGroupId':_0xa883('0x24')});});}[_0xa883('0x6')](_0x354cb9){if(_0xa883('0x14')!=_0x354cb9[_0xa883('0x31')]&&_0xa883('0x5')!=_0x354cb9[_0xa883('0x31')])return;const _0x595113=this[_0xa883('0x13')]['locale'],{data:_0x4e18b6}=_0x354cb9;if(!_0x4e18b6)return;let _0x4fcbff,_0x37ee8c;switch(_0x4e18b6[_0xa883('0x22')]){case _0xa883('0x11'):_0x4fcbff='*Change\x20to:*\x20%0',_0x37ee8c={'type':'format','content':_0x55238d(_0x595113,_0x4fcbff,_0x55238d(_0x595113,this['_getTranslationKeyForListStyle'](_0x4e18b6[_0xa883('0x20')][0x0][_0xa883('0x31')])))};break;case _0xa883('0x30'):_0x4fcbff=_0x4e18b6['commandParams'][0x0][_0xa883('0xa')]?_0xa883('0x2a'):_0xa883('0x4'),_0x37ee8c={'type':_0xa883('0x2e'),'content':_0x55238d(_0x595113,_0x4fcbff)};break;case _0xa883('0x24'):_0x4fcbff=_0xa883('0x19'),_0x37ee8c={'type':_0xa883('0x2e'),'content':_0x55238d(_0x595113,_0x4fcbff,_0x4e18b6[_0xa883('0x20')][0x0]['startIndex'])};}return _0x37ee8c;}[_0xa883('0x18')](){const _0xfc5486=this['editor'][_0xa883('0x2b')]['get'](_0xa883('0x16'));let _0x3b34ab=Array['from'](this[_0xa883('0x13')][_0xa883('0xd')]['document']['selection'][_0xa883('0x29')]());return _0x3b34ab[_0xa883('0x26')](..._0xfc5486[_0xa883('0x10')](_0x3b34ab)),_0x3b34ab=[...new Set(_0x3b34ab)],_0x3b34ab;}['_getSuggestionBlocks'](_0xc9ed74){const _0x3c393e=this[_0xa883('0x13')][_0xa883('0x2b')][_0xa883('0x1b')](_0xa883('0x16'));let _0x3565dd=Array['from'](this[_0xa883('0x13')][_0xa883('0xd')][_0xa883('0x23')][_0xa883('0x17')]['getSelectedBlocks']())[_0xa883('0x28')](_0xc9ed74);if(!_0x3565dd[_0xa883('0x21')])return null;_0x3565dd=_0x3c393e[_0xa883('0x10')](_0x3565dd);const _0x19de7b=[];for(const _0x30b221 of _0x3565dd)_0x3c393e[_0xa883('0x8')](_0x30b221)&&_0x19de7b[_0xa883('0x26')](_0x30b221);return _0x19de7b;}['_getTranslationKeyForListStyle'](_0x5a4957){return _0xa883('0x2f')+this['editor']['plugins']['get']('DocumentListPropertiesUtils')['getListTypeFromListStyleType'](_0x5a4957)['toUpperCase']()+_0xa883('0x7')+_0x5a4957[_0xa883('0xb')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4076=['getFirstPosition','end','addMarker:suggestion:insertion','createPositionAt','downcastDispatcher','getFirstRange','markerName','createRange','removeMarker:suggestion:insertion','hasClass','get','split','fromRange','change','data','enterBlock','fire','plugins','unbindElementFromMarkerName','editing','TrackChangesEditing','requires','options','enter','ck-suggestion-marker-split','commands','writer','high','setSelection','mapper','selection','detach','model','document','editor'];(function(_0x107a3f,_0x4076ed){const _0x557c40=function(_0x495a24){while(--_0x495a24){_0x107a3f['push'](_0x107a3f['shift']());}};_0x557c40(++_0x4076ed);}(_0x4076,0xa9));const _0x557c=function(_0x107a3f,_0x4076ed){_0x107a3f=_0x107a3f-0x0;let _0x557c40=_0x4076[_0x107a3f];return _0x557c40;};import{Plugin as _0x13a364}from'ckeditor5/src/core';import{Enter as _0x1cf9be}from'ckeditor5/src/enter';import{LiveRange as _0x49fa39}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x41aab9}from'./utils';export default class K extends _0x13a364{static get[_0x557c('0x1b')](){return[_0x1cf9be];}['init'](){const _0x3bdfc7=this[_0x557c('0x5')],_0x471383=_0x3bdfc7[_0x557c('0x17')][_0x557c('0x10')](_0x557c('0x1a')),_0x1ac594=_0x3bdfc7[_0x557c('0x1f')][_0x557c('0x10')]('enter');_0x471383['enableCommand'](_0x557c('0x1d'),()=>{_0x3bdfc7[_0x557c('0x3')][_0x557c('0x13')](_0x545da3=>{const _0x12bb1b=_0x3bdfc7['model'][_0x557c('0x4')][_0x557c('0x1')],_0x3a607f=_0x12bb1b[_0x557c('0x6')](),_0x111f14=_0x49fa39[_0x557c('0x12')](_0x12bb1b[_0x557c('0xb')]());if(_0x1ac594[_0x557c('0x15')](_0x545da3)){const _0x11bd13=_0x3bdfc7['model'][_0x557c('0x9')](_0x3a607f['parent']['nextSibling'],0x0),_0x2cfb1d=_0x545da3[_0x557c('0xd')](_0x3a607f,_0x11bd13);_0x471383['markInsertion'](_0x2cfb1d);}else _0x545da3[_0x557c('0x22')](_0x545da3[_0x557c('0xd')](_0x111f14[_0x557c('0x7')]));_0x111f14[_0x557c('0x2')](),_0x1ac594[_0x557c('0x16')]('afterExecute',{'writer':_0x545da3});});}),_0x3bdfc7[_0x557c('0x19')][_0x557c('0xa')]['on'](_0x557c('0x8'),_0x41aab9(_0x3bdfc7,_0x557c('0x11')),{'priority':_0x557c('0x21')}),_0x3bdfc7['editing'][_0x557c('0xa')]['on'](_0x557c('0xe'),(_0x54cb7e,_0x1c5bfd,_0x3d7165)=>{const _0x4cb56b=_0x3d7165[_0x557c('0x0')]['markerNameToElements'](_0x1c5bfd['markerName']);if(_0x4cb56b)for(const _0x28c0aa of _0x4cb56b)_0x28c0aa[_0x557c('0xf')](_0x557c('0x1e'))&&(_0x3d7165[_0x557c('0x0')][_0x557c('0x18')](_0x28c0aa,_0x1c5bfd[_0x557c('0xc')]),_0x3d7165[_0x557c('0x20')]['remove'](_0x28c0aa));},{'priority':_0x557c('0x21')}),_0x3bdfc7[_0x557c('0x14')][_0x557c('0xa')]['on'](_0x557c('0x8'),(_0x15b234,_0x518e16,_0x16cdf8)=>{_0x16cdf8[_0x557c('0x1c')]['showSuggestionHighlights']&&_0x41aab9(_0x3bdfc7,_0x557c('0x11'),{'showActiveMarker':!0x1})['bind'](this)(_0x15b234,_0x518e16,_0x16cdf8);},{'priority':_0x557c('0x21')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xac69=['has','string','getIntersection','plugins','enableCommand','TrackChangesEditing','start','markers','editor','model','find','FindAndReplaceUtils','filter','_isInDeletionRange','getMarkersGroup','afterInit','createPositionAt','findByTextCallback','suggestion:deletion','get','handleFindCommand','findNext'];(function(_0x26111d,_0xac699d){const _0x30c029=function(_0x11423f){while(--_0x11423f){_0x26111d['push'](_0x26111d['shift']());}};_0x30c029(++_0xac699d);}(_0xac69,0x104));const _0x30c0=function(_0x26111d,_0xac699d){_0x26111d=_0x26111d-0x0;let _0x30c029=_0xac69[_0x26111d];return _0x30c029;};import{Plugin as _0x504331}from'ckeditor5/src/core';export default class W extends _0x504331{[_0x30c0('0x13')](){if(!this['editor'][_0x30c0('0x7')][_0x30c0('0x4')]('FindAndReplaceEditing'))return;const _0x4b681f=this['editor']['plugins']['get'](_0x30c0('0x9'));_0x4b681f[_0x30c0('0x8')](_0x30c0('0xe'),this[_0x30c0('0x2')]['bind'](this)),_0x4b681f['enableCommand'](_0x30c0('0x3')),_0x4b681f['enableCommand']('findPrevious'),_0x4b681f[_0x30c0('0x8')]('replace'),_0x4b681f[_0x30c0('0x8')]('replaceAll');}['handleFindCommand'](_0x1748c0,_0x509691,_0x415887={}){const _0x32e301=this[_0x30c0('0xc')][_0x30c0('0x7')][_0x30c0('0x1')](_0x30c0('0xf'));if(void 0x0!==_0x415887)return _0x1748c0(_0x31f907=>(_0x30c0('0x5')==typeof _0x509691?_0x32e301[_0x30c0('0x15')](_0x509691,_0x415887):_0x509691)(_0x31f907)[_0x30c0('0x10')](_0x3d076b=>!0x1===this['_isInDeletionRange'](_0x3d076b,_0x31f907['item'])),_0x415887);}[_0x30c0('0x11')](_0x5d2bd2,_0x147ca6){const _0x426fc1=this[_0x30c0('0xc')][_0x30c0('0xd')]['createRange'](this[_0x30c0('0xc')]['model'][_0x30c0('0x14')](_0x147ca6,_0x5d2bd2[_0x30c0('0xa')]),this['editor'][_0x30c0('0xd')]['createPositionAt'](_0x147ca6,_0x5d2bd2['end']));for(const _0x15b2a6 of this[_0x30c0('0xc')][_0x30c0('0xd')][_0x30c0('0xb')][_0x30c0('0x12')](_0x30c0('0x0')))if(null!==_0x426fc1[_0x30c0('0x6')](_0x15b2a6['getRange']()))return!0x0;return!0x1;}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44a7=['*Set\x20font\x20color:*\x20%0','FORMAT_FONT_COLOR','registerDescriptionCallback','*Reset\x20font\x20size*','has','*Set\x20font\x20background\x20color:*\x20%0','trim','fontColor','fontFamily','*Reset\x20font\x20family*','type','TrackChangesEditing','FORMAT_FONT_FAMILY','FontColorEditing','model','find','value','editor','fontBackgroundColor.colors','fontBackgroundColor','registerAttributeLabel','_registerLegacyDescription','FontFamilyEditing','commandName','formatInline','locale','config','FORMAT_FONT_SIZE','fontSize.options','toLowerCase','get','*Reset\x20font\x20background\x20color*','*Reset\x20font\x20color*','*Set\x20font\x20size:*\x20%0','plugins','FORMAT_FONT_BACKGROUND','commandParams','_descriptionFactory','format','normalizeSizeOptions','label','title','FontSize','fontSize'];(function(_0x39acb4,_0x44a7c5){const _0x47da1e=function(_0x24a95d){while(--_0x24a95d){_0x39acb4['push'](_0x39acb4['shift']());}};_0x47da1e(++_0x44a7c5);}(_0x44a7,0x156));const _0x47da=function(_0x39acb4,_0x44a7c5){_0x39acb4=_0x39acb4-0x0;let _0x47da1e=_0x44a7[_0x39acb4];return _0x47da1e;};import{Plugin as _0x1011a2}from'ckeditor5/src/core';import{normalizeColorOptions as _0x146979}from'ckeditor5/src/ui';import{getTranslation as _0x281b27}from'../utils/common-translations';const ro=[{'pluginName':'FontSizeEditing','commandName':_0x47da('0x9')},{'pluginName':_0x47da('0x20'),'commandName':'fontFamily'},{'pluginName':_0x47da('0x17'),'commandName':_0x47da('0x11')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x47da('0x1d')}];export default class J extends _0x1011a2{['afterInit'](){const _0x56d8d0=this[_0x47da('0x1b')]['locale'],_0x1ded0f=this['editor'][_0x47da('0x0')][_0x47da('0x28')](_0x47da('0x15'));for(const {pluginName:_0x4479cd,commandName:_0x27e660}of ro)this[_0x47da('0x1b')][_0x47da('0x0')][_0x47da('0xe')](_0x4479cd)&&_0x1ded0f['_enableDefaultAttributesIntegration'](_0x27e660,[_0x27e660]);_0x56d8d0['t'],(_0x1ded0f[_0x47da('0x3')]['registerAttributeLabel'](_0x47da('0x9'),_0x281b27(_0x56d8d0,_0x47da('0x25'))),_0x1ded0f[_0x47da('0x3')][_0x47da('0x1e')](_0x47da('0x12'),_0x281b27(_0x56d8d0,_0x47da('0x16'))),_0x1ded0f[_0x47da('0x3')]['registerAttributeLabel'](_0x47da('0x11'),_0x281b27(_0x56d8d0,_0x47da('0xb'))),_0x1ded0f['_descriptionFactory']['registerAttributeLabel'](_0x47da('0x1d'),_0x281b27(_0x56d8d0,_0x47da('0x1'))),this[_0x47da('0x1f')]());}[_0x47da('0x1f')](){const _0x4cb6c5=this[_0x47da('0x1b')],_0x3ca844=_0x4cb6c5[_0x47da('0x23')];_0x4cb6c5['plugins'][_0x47da('0x28')](_0x47da('0x15'))[_0x47da('0x3')][_0x47da('0xc')](_0x41565f=>{const _0x4f2a70=_0x3ca844['t'];if(_0x47da('0x22')!=_0x41565f[_0x47da('0x14')])return;const {data:_0x3f79b7}=_0x41565f;if(null!=_0x3f79b7){if('fontSize'==_0x3f79b7[_0x47da('0x21')]){const _0x424c27=_0x3f79b7[_0x47da('0x2')][0x0][_0x47da('0x1a')];if(_0x424c27){const _0x5b9185=_0x4f2a70(this['editor'][_0x47da('0x0')][_0x47da('0x28')](_0x47da('0x8'))[_0x47da('0x5')](this[_0x47da('0x1b')][_0x47da('0x24')]['get'](_0x47da('0x26')))['find'](_0x3295eb=>_0x3295eb[_0x47da('0x18')]==_0x424c27)[_0x47da('0x7')])[_0x47da('0x27')]();return{'type':'format','content':_0x281b27(_0x3ca844,_0x47da('0x2b'),_0x5b9185)};}return{'type':'format','content':_0x281b27(_0x3ca844,_0x47da('0xd'))};}if('fontFamily'==_0x3f79b7['commandName']){const _0x45425e=_0x3f79b7[_0x47da('0x2')][0x0]['value'];return _0x45425e?{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,'*Set\x20font\x20family:*\x20%0',_0x45425e)}:{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,_0x47da('0x13'))};}if(_0x47da('0x11')==_0x3f79b7['commandName']){const _0x5f4e96=_0x3f79b7[_0x47da('0x2')][0x0][_0x47da('0x1a')];if(_0x5f4e96){const _0xbfbe4a=_0x146979(this[_0x47da('0x1b')]['config'][_0x47da('0x28')]('fontColor.colors'))[_0x47da('0x19')](_0x1ca97c=>_0x1ca97c['model']==_0x5f4e96);let _0x570b75=_0x5f4e96,_0x5aa2a0='';return _0xbfbe4a&&(_0x570b75=_0xbfbe4a[_0x47da('0x6')],_0x5aa2a0=_0x4f2a70(_0x570b75)[_0x47da('0x27')]()),{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,_0x47da('0xa'),_0x5aa2a0)[_0x47da('0x10')](),'color':{'value':_0x5f4e96,'title':_0x5aa2a0||_0x570b75}};}return{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,_0x47da('0x2a'))};}if(_0x47da('0x1d')==_0x3f79b7[_0x47da('0x21')]){const _0x10b389=_0x3f79b7[_0x47da('0x2')][0x0][_0x47da('0x1a')];if(_0x10b389){const _0x5887a5=_0x146979(this['editor']['config'][_0x47da('0x28')](_0x47da('0x1c')))[_0x47da('0x19')](_0x1536a8=>_0x1536a8[_0x47da('0x18')]==_0x10b389);let _0x5560a2=_0x10b389,_0x425fa4='';return _0x5887a5&&(_0x5560a2=_0x5887a5[_0x47da('0x6')],_0x425fa4=_0x4f2a70(_0x5560a2)[_0x47da('0x27')]()),{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,_0x47da('0xf'),_0x425fa4)[_0x47da('0x10')](),'color':{'value':_0x10b389,'title':_0x425fa4||_0x5560a2}};}return{'type':_0x47da('0x4'),'content':_0x281b27(_0x3ca844,_0x47da('0x29'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2651=['boolean','editor','copyFormat','formatInline','locale','*Set\x20format\x20to:*\x20%0','enableCommand','push','entries','commandParams','*Remove\x20all\x20formatting*','toLowerCase','title','commands','join','fontColor.colors','length','_registerLegacyDescription','toUpperCase','fontSize','plugins','pasteFormat','_descriptionFactory','model','config','formatBlock','format','fontSize.options','commandName','type','fontColor','label','fontBackgroundColor','FontSize','get'];(function(_0x294c52,_0x265132){const _0x29dfb3=function(_0x595861){while(--_0x595861){_0x294c52['push'](_0x294c52['shift']());}};_0x29dfb3(++_0x265132);}(_0x2651,0x111));const _0x29df=function(_0x294c52,_0x265132){_0x294c52=_0x294c52-0x0;let _0x29dfb3=_0x2651[_0x294c52];return _0x29dfb3;};import{Plugin as _0xc43f8b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x14a594}from'ckeditor5/src/ui';import{getTranslation as _0xdc622d}from'../utils/common-translations';export default class Q extends _0xc43f8b{['afterInit'](){const _0x5e8b6c=this[_0x29df('0x8')],_0x23e9ff=_0x5e8b6c[_0x29df('0x1b')][_0x29df('0x6')]('TrackChangesEditing'),_0x1ce8ca=_0x5e8b6c[_0x29df('0x14')]['get'](_0x29df('0x9')),_0x8f098d=_0x5e8b6c[_0x29df('0x14')][_0x29df('0x6')](_0x29df('0x1c'));_0x1ce8ca&&_0x8f098d&&(_0x23e9ff['_enableDefaultAttributesIntegration'](_0x29df('0x1c')),_0x23e9ff[_0x29df('0xd')]('copyFormat'),this[_0x29df('0x18')]());}[_0x29df('0x18')](){const _0x2dc215=this[_0x29df('0x8')],_0x372849=_0x2dc215[_0x29df('0xb')];_0x2dc215[_0x29df('0x1b')][_0x29df('0x6')]('TrackChangesEditing')[_0x29df('0x1d')]['registerDescriptionCallback'](_0x576158=>{if(_0x29df('0x20')!=_0x576158[_0x29df('0x1')]&&_0x29df('0xa')!=_0x576158[_0x29df('0x1')])return;const {data:_0x18f46c}=_0x576158;if(_0x18f46c&&_0x29df('0x1c')===_0x18f46c[_0x29df('0x0')]){const _0x4f076b=[],_0x563bde=_0x18f46c[_0x29df('0x10')][0x0];for(const [_0x1dc4c9,_0x13cf29]of Object[_0x29df('0xf')](_0x563bde))_0x4f076b[_0x29df('0xe')](ao(_0x2dc215,_0x1dc4c9,_0x13cf29));return _0x4f076b[_0x29df('0x17')]?{'type':_0x29df('0x21'),'content':_0xdc622d(_0x372849,_0x29df('0xc'),_0x4f076b['join'](',\x20'))}:{'type':_0x29df('0x21'),'content':_0xdc622d(_0x372849,_0x29df('0x11'))};}});}}function ao(_0x1f6104,_0x4185ac,_0x28d686){const _0x514ab6=_0x1f6104['locale']['t'],_0x439187=_0x4185ac['split'](/(?=[A-Z])/)[_0x29df('0x15')]('\x20'),_0x30e6d3=_0x514ab6(_0x439187['charAt'](0x0)[_0x29df('0x19')]()+_0x439187['slice'](0x1))[_0x29df('0x12')]();if(_0x29df('0x7')==typeof _0x28d686)return _0x30e6d3;if(_0x29df('0x2')===_0x4185ac||_0x29df('0x4')===_0x4185ac){const _0x561ce5=_0x14a594(_0x1f6104['config'][_0x29df('0x6')](_0x29df('0x16')))['find'](_0x4463ce=>_0x4463ce[_0x29df('0x1e')]==_0x28d686);return _0x30e6d3+'\x20('+(_0x561ce5?_0x514ab6(_0x561ce5[_0x29df('0x3')])[_0x29df('0x12')]():_0x28d686)+')';}if(_0x29df('0x1a')===_0x4185ac&&isNaN(parseFloat(_0x28d686))){const _0x2126e0=_0x1f6104[_0x29df('0x1b')]['get'](_0x29df('0x5'))['normalizeSizeOptions'](_0x1f6104[_0x29df('0x1f')][_0x29df('0x6')](_0x29df('0x22')))['find'](_0x13237a=>_0x13237a[_0x29df('0x1e')]==_0x28d686);return _0x30e6d3+'\x20('+(_0x2126e0?_0x514ab6(_0x2126e0[_0x29df('0x13')])[_0x29df('0x12')]():_0x28d686)+')';}return _0x30e6d3+'\x20('+_0x28d686+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54d9=['_enableDefaultAttributesIntegration','registerDescriptionCallback','match','commandName','ELEMENT_HEADING','heading.options','paragraph','has','TrackChangesEditing','find','_registerLegacyDescription','format','ELEMENT_HEADING_CUSTOM','commandParams','_getHeadingLevel','_descriptionFactory','registerElementLabel','_headingOptions','locale','editor','formatBlock','name','model','get','HeadingEditing','heading','plugins','config','value','*Change\x20to:*\x20%0','afterInit'];(function(_0x60a6af,_0x54d9e2){const _0xaa48fc=function(_0x122875){while(--_0x122875){_0x60a6af['push'](_0x60a6af['shift']());}};_0xaa48fc(++_0x54d9e2);}(_0x54d9,0x7d));const _0xaa48=function(_0x60a6af,_0x54d9e2){_0x60a6af=_0x60a6af-0x0;let _0xaa48fc=_0x54d9[_0x60a6af];return _0xaa48fc;};import{Plugin as _0x2f26cf}from'ckeditor5/src/core';import{getTranslation as _0x2b408f}from'../utils/common-translations';export default class X extends _0x2f26cf{[_0xaa48('0x1d')](){const _0x1bf362=this[_0xaa48('0x12')];if(!_0x1bf362[_0xaa48('0x19')][_0xaa48('0x6')](_0xaa48('0x17')))return;this[_0xaa48('0x10')]=_0x1bf362[_0xaa48('0x1a')]['get'](_0xaa48('0x4'));const _0x1e972e=_0x1bf362[_0xaa48('0x11')],_0x366407=_0x1bf362[_0xaa48('0x19')][_0xaa48('0x16')]('TrackChangesEditing');_0x366407[_0xaa48('0x1e')](_0xaa48('0x18'));for(const _0x2e1278 of this[_0xaa48('0x10')])_0xaa48('0x5')!=_0x2e1278[_0xaa48('0x15')]&&_0x366407[_0xaa48('0xe')][_0xaa48('0xf')](_0x2e1278['model'],_0x4b4a4f=>{const _0x1f5e4f=this[_0xaa48('0xd')](_0x2e1278['model']);return null!==_0x1f5e4f?_0x15d784(_0x4b4a4f,_0x1f5e4f):_0x5f24b8(_0x4b4a4f,_0x2e1278['title']);});function _0x15d784(_0x317ecb,_0x54c0e0){return _0x2b408f(_0x1e972e,_0xaa48('0x3'),[_0x317ecb,_0x54c0e0]);}function _0x5f24b8(_0x32f2b5,_0x232e3c){return _0x2b408f(_0x1e972e,_0xaa48('0xb'),[_0x32f2b5,_0x232e3c]);}this[_0xaa48('0x9')]();}[_0xaa48('0x9')](){const _0x2880ca=this[_0xaa48('0x12')],_0x40e7af=_0x2880ca[_0xaa48('0x11')];function _0x264bb7(_0x21dfdb,_0x8b26fe){return _0x2b408f(_0x40e7af,_0xaa48('0xb'),[_0x21dfdb,_0x8b26fe]);}_0x2880ca['plugins'][_0xaa48('0x16')](_0xaa48('0x7'))[_0xaa48('0xe')][_0xaa48('0x0')](_0x584471=>{if(_0xaa48('0x13')!=_0x584471['type'])return;const {data:_0x2c25fd}=_0x584471;if(_0x2c25fd&&_0xaa48('0x18')==_0x2c25fd[_0xaa48('0x2')]){const _0xc21d48=_0x2c25fd[_0xaa48('0xc')][0x0][_0xaa48('0x1b')],_0x3bb7ed=this[_0xaa48('0xd')](_0xc21d48);if(null!==_0x3bb7ed)return{'type':'format','content':_0x2b408f(_0x40e7af,_0xaa48('0x1c'),(_0x7c7674=0x1,_0x106a46=_0x3bb7ed,_0x2b408f(_0x40e7af,_0xaa48('0x3'),[_0x7c7674,_0x106a46])))};const _0x252ad8=this[_0xaa48('0x10')][_0xaa48('0x8')](_0x1af4b1=>_0x1af4b1['model']===_0xc21d48)['title'];return{'type':_0xaa48('0xa'),'content':_0x2b408f(_0x40e7af,_0xaa48('0x1c'),_0x264bb7(0x1,_0x252ad8))};}var _0x7c7674,_0x106a46;});}[_0xaa48('0xd')](_0x4200ae){var _0x512ff8,_0xcd7edb;const _0x56112b=_0x4200ae[_0xaa48('0x1')](/^heading(\d+)/);if(_0x56112b)return _0x56112b[0x1];const _0x1c398b=null===(_0x512ff8=this[_0xaa48('0x10')])||void 0x0===_0x512ff8?void 0x0:_0x512ff8[_0xaa48('0x8')](_0x5a5090=>_0x5a5090[_0xaa48('0x15')]==_0x4200ae);if(_0x1c398b&&_0x1c398b['view']){const _0x52b8db=_0x1c398b['view'],_0x5f2b16=(null!==(_0xcd7edb=_0x52b8db[_0xaa48('0x14')])&&void 0x0!==_0xcd7edb?_0xcd7edb:_0x52b8db)[_0xaa48('0x1')](/^h(\d+)/);if(_0x5f2b16)return _0x5f2b16[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x425f=['*Set\x20highlight:*\x20%0','*Remove\x20highlight*','config','registerDescriptionCallback','commandParams','commandName','color','type','_descriptionFactory','get','editor','afterInit','FORMAT_HIGHLIGHT','registerAttributeLabel','_registerLegacyDescription','plugins','title','_enableDefaultAttributesIntegration','find','highlight','format','locale','highlight.options','HighlightEditing'];(function(_0x2bc192,_0x425f66){const _0x2798d2=function(_0x2cd5bb){while(--_0x2cd5bb){_0x2bc192['push'](_0x2bc192['shift']());}};_0x2798d2(++_0x425f66);}(_0x425f,0x11b));const _0x2798=function(_0x2bc192,_0x425f66){_0x2bc192=_0x2bc192-0x0;let _0x2798d2=_0x425f[_0x2bc192];return _0x2798d2;};import{Plugin as _0xe4d600}from'ckeditor5/src/core';import{getTranslation as _0x3d196c}from'../utils/common-translations';export default class Y extends _0xe4d600{[_0x2798('0x10')](){const _0x95fc9a=this[_0x2798('0xf')];if(!_0x95fc9a[_0x2798('0x14')]['has'](_0x2798('0x4')))return;const _0xbbebbe=_0x95fc9a[_0x2798('0x14')]['get']('TrackChangesEditing'),_0x217387=_0x95fc9a[_0x2798('0x2')];_0xbbebbe[_0x2798('0x16')](_0x2798('0x0'),[_0x2798('0x0')]),_0xbbebbe[_0x2798('0xd')][_0x2798('0x12')](_0x2798('0x0'),_0x3d196c(_0x217387,_0x2798('0x11'))),this[_0x2798('0x13')]();}[_0x2798('0x13')](){const _0xe6a214=this[_0x2798('0xf')],_0xeb83ed=_0xe6a214[_0x2798('0x2')];_0xe6a214[_0x2798('0x14')][_0x2798('0xe')]('TrackChangesEditing')[_0x2798('0xd')][_0x2798('0x8')](_0x4abe83=>{if('formatInline'!=_0x4abe83[_0x2798('0xc')])return;const {data:_0x332938}=_0x4abe83;if(_0x332938&&_0x2798('0x0')==_0x332938[_0x2798('0xa')]){const _0x5a1368=_0xeb83ed['t'],_0x1c430a=_0x332938[_0x2798('0x9')][0x0]['value'];if(_0x1c430a){const _0x27e64f=_0xe6a214[_0x2798('0x7')][_0x2798('0xe')](_0x2798('0x3'))[_0x2798('0x17')](_0x201b68=>_0x201b68['model']==_0x1c430a),_0x4792e6=_0x5a1368(_0x27e64f[_0x2798('0x15')])['toLowerCase']();return{'type':_0x2798('0x1'),'content':_0x3d196c(_0xeb83ed,_0x2798('0x5'),_0x4792e6),'color':{'value':_0x27e64f[_0x2798('0xb')],'title':_0x27e64f[_0x2798('0x15')]}};}return{'type':'format','content':_0x3d196c(_0xeb83ed,_0x2798('0x6'),_0x3d196c(_0xeb83ed,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e6e=['high','horizontalLine','createContainerElement','_descriptionFactory','elementToStructure','TrackChangesEditing','addClass','get','dataDowncast','plugins','ck-horizontal-line','ELEMENT_HORIZONTAL_LINE','showSuggestionHighlights','createPositionAt','conversion','enableCommand','registerElementLabel','div','createEmptyElement'];(function(_0x4acf04,_0x4e6e66){const _0xef7afc=function(_0xfcd49e){while(--_0xfcd49e){_0x4acf04['push'](_0x4acf04['shift']());}};_0xef7afc(++_0x4e6e66);}(_0x4e6e,0x19e));const _0xef7a=function(_0x4acf04,_0x4e6e66){_0x4acf04=_0x4acf04-0x0;let _0xef7afc=_0x4e6e[_0x4acf04];return _0xef7afc;};import{Plugin as _0x2334d8}from'ckeditor5/src/core';import{getTranslation as _0x1be651}from'../utils/common-translations';export default class Z extends _0x2334d8{['afterInit'](){const _0x40e7a5=this['editor'];if(!_0x40e7a5[_0xef7a('0xd')]['has']('HorizontalLineEditing'))return;_0x40e7a5['plugins'][_0xef7a('0xb')](_0xef7a('0x9'))[_0xef7a('0x0')](_0xef7a('0x5'));const _0x453315=_0x40e7a5['plugins'][_0xef7a('0xb')](_0xef7a('0x9')),_0x14929c=_0x40e7a5['locale'];_0x453315[_0xef7a('0x7')][_0xef7a('0x1')]('horizontalLine',_0x1a8871=>_0x1be651(_0x14929c,_0xef7a('0xf'),_0x1a8871)),_0x40e7a5[_0xef7a('0x12')]['for'](_0xef7a('0xc'))[_0xef7a('0x8')]({'model':_0xef7a('0x5'),'view':(_0x1f1bc6,{writer:_0x1f7a96,options:_0x5cc1a5})=>{if(!_0x5cc1a5[_0xef7a('0x10')])return null;const _0x2f29e6=_0x1f7a96[_0xef7a('0x6')](_0xef7a('0x2')),_0x338cc8=_0x1f7a96[_0xef7a('0x3')]('hr');return _0x1f7a96[_0xef7a('0xa')](_0xef7a('0xe'),_0x2f29e6),_0x1f7a96['insert'](_0x1f7a96[_0xef7a('0x11')](_0x2f29e6,0x0),_0x338cc8),_0x2f29e6;},'converterPriority':_0xef7a('0x4')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c22=['htmlEmbed','_descriptionFactory','editor','afterInit','_registerLegacyDescription','plugins','format','start','attribute','registerDescriptionCallback','rawHtml','ELEMENT_HTML_EMBED','TrackChangesEditing','_enableDefaultAttributesIntegration','has','type','formatBlock','value','commandName','HtmlEmbed','nodeAfter','*Change\x20%0\x20content*','registerElementLabel','locale'];(function(_0x350674,_0x1c2223){const _0x42bd62=function(_0x5319a4){while(--_0x5319a4){_0x350674['push'](_0x350674['shift']());}};_0x42bd62(++_0x1c2223);}(_0x1c22,0x142));const _0x42bd=function(_0x350674,_0x1c2223){_0x350674=_0x350674-0x0;let _0x42bd62=_0x1c22[_0x350674];return _0x42bd62;};import{Plugin as _0x1e1ef7}from'ckeditor5/src/core';import{getTranslation as _0x2eee53}from'../utils/common-translations';export default class tt extends _0x1e1ef7{[_0x42bd('0x11')](){const _0x54f07d=this['editor'];if(!_0x54f07d[_0x42bd('0x13')][_0x42bd('0x4')](_0x42bd('0x9')))return;const _0x294f9c=_0x54f07d[_0x42bd('0x13')]['get']('TrackChangesEditing'),_0x222ace=_0x54f07d[_0x42bd('0xd')];_0x294f9c['_descriptionFactory'][_0x42bd('0xc')](_0x42bd('0x0'),_0xadbc70=>_0x2eee53(_0x222ace,_0x42bd('0x1'),_0xadbc70)),_0x294f9c[_0x42bd('0x3')]('htmlEmbed',[],[_0x42bd('0x7')]),_0x294f9c[_0x42bd('0xf')][_0x42bd('0x17')](_0x13b21d=>{if(_0x42bd('0x16')!=_0x13b21d[_0x42bd('0x5')])return;const {data:_0x3407f3}=_0x13b21d;if(_0x3407f3&&_0x42bd('0x7')==_0x3407f3['key']&&_0x13b21d['getFirstRange']()[_0x42bd('0x15')][_0x42bd('0xa')]['is']('element',_0x42bd('0x0'))){const _0x35260c=_0x2eee53(_0x222ace,'ELEMENT_HTML_EMBED');return{'type':_0x42bd('0x14'),'content':_0x2eee53(_0x222ace,_0x42bd('0xb'),_0x35260c)};}}),this[_0x42bd('0x12')]();}[_0x42bd('0x12')](){const _0x188927=this[_0x42bd('0x10')],_0x634ab9=_0x188927[_0x42bd('0xd')];_0x188927[_0x42bd('0x13')]['get'](_0x42bd('0x2'))[_0x42bd('0xf')][_0x42bd('0x17')](_0x13b1d8=>{if(_0x42bd('0x6')!=_0x13b1d8['type'])return;const {data:_0x53d1b3}=_0x13b1d8;if(_0x53d1b3&&_0x42bd('0xe')==_0x53d1b3[_0x42bd('0x8')]){const _0x4d0200=_0x2eee53(_0x634ab9,_0x42bd('0x1'));return{'type':'format','content':_0x2eee53(_0x634ab9,'*Change\x20%0\x20content*',_0x4d0200)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f6a=['selection','enableDefaultIntegration','*Set\x20image\x20text\x20alternative:*\x20%0','commandParams','markInsertion','getFirstRange','alt','has','subType','type','nodeBefore','ImageCaptionEditing','fromPosition','createRange','imageStylePreApply','format','discard','plugins','registerCustomCallback','afterInit','_findSuggestions','FORMAT_IMAGE_WIDTH','removeObject','toggleImageCaption','isBefore','registerElementLabel','_descriptionFactory','_registerLegacyDescription','isIntersecting','insertion','previous','nodeAfter','getClosestSelectedImageElement','get','key','convertBlockImageToInline','registerAttributeLabel','getSuggestionCallback','addObject','attribute','chain','join','imageTypeInline','commandName','imageTextAlternative','ImageInlineEditing','resizedWidth','model','isOwn','element','getContainedElement','convertInlineImageToBlock','getNearestSelectionRange','schema','ImageEditing','getCaptionFromImageModelElement','ImageCaptionUtils','*Reset\x20image\x20width*','resizeImage','isEqual','formatBlock','findIndex','_suggestionFactory','start','Block\x20image\x20to\x20inline\x20image','ELEMENT_CAPTION','enableCommand','end','editor','uploadImage','isBlockImage','width','*Set\x20image\x20width:*\x20%0','locale','registerDescriptionCallback','imageCaption','document','caption','change','*Remove\x20image\x20text\x20alternative*','createRangeOn','markDeletion','imageInline','isCollapsed','newValue','markBlockFormat','detach'];(function(_0x58c001,_0x4f6a7e){const _0x394087=function(_0x3ce412){while(--_0x3ce412){_0x58c001['push'](_0x58c001['shift']());}};_0x394087(++_0x4f6a7e);}(_0x4f6a,0x7b));const _0x3940=function(_0x58c001,_0x4f6a7e){_0x58c001=_0x58c001-0x0;let _0x394087=_0x4f6a[_0x58c001];return _0x394087;};import{Plugin as _0x3c0a3c}from'ckeditor5/src/core';import{LivePosition as _0x12c718}from'ckeditor5/src/engine';import{getTranslation as _0x436ef7}from'../utils/common-translations';export default class it extends _0x3c0a3c{[_0x3940('0x46')](){const _0x469dfa=this[_0x3940('0x20')];if(!_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')](_0x3940('0x12')))return;const _0x4d2f22=_0x469dfa[_0x3940('0x44')]['get']('TrackChangesEditing'),_0x2ee107=_0x469dfa['plugins'][_0x3940('0x54')]('ImageUtils'),_0x344e5c=_0x469dfa['locale'];_0x4d2f22[_0x3940('0x1e')]('insertImage'),_0x4d2f22['_descriptionFactory']['registerElementLabel']('imageBlock',_0x547733=>_0x436ef7(_0x344e5c,'ELEMENT_IMAGE',_0x547733)),_0x4d2f22[_0x3940('0x4d')]['registerElementLabel'](_0x3940('0x2e'),_0x41a8b7=>_0x436ef7(_0x344e5c,'ELEMENT_INLINE_IMAGE',_0x41a8b7)),_0x4d2f22[_0x3940('0x4d')][_0x3940('0x4c')](_0x3940('0x29'),()=>_0x436ef7(_0x344e5c,_0x3940('0x1d'))),_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')]('ImageUploadEditing')&&_0x4d2f22[_0x3940('0x1e')](_0x3940('0x21')),_0x469dfa[_0x3940('0x44')]['has']('ImageBlockEditing')&&_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')](_0x3940('0x9'))&&(_0x4d2f22['enableCommand'](_0x3940('0x6'),(_0x1c321b,_0x4fbc07)=>{const _0x5d915b=_0x2ee107[_0x3940('0x53')](_0x469dfa[_0x3940('0xb')][_0x3940('0x28')]['selection']);_0x469dfa[_0x3940('0xb')][_0x3940('0x2a')](()=>{_0x4d2f22[_0x3940('0x31')](_0x5d915b,{'commandName':'imageTypeInline','commandParams':[_0x4fbc07]},[],_0x3940('0x56'));});}),_0x4d2f22[_0x3940('0x1e')]('imageTypeBlock',(_0xc25607,_0x48c99d)=>{_0x469dfa[_0x3940('0xb')]['change'](_0x3d0bf7=>{let _0x465231=_0x2ee107['getClosestSelectedImageElement'](_0x469dfa[_0x3940('0xb')][_0x3940('0x28')][_0x3940('0x33')]),_0x55af86=_0x3d0bf7[_0x3940('0x2c')](_0x465231);const _0x187ce2=_0x12c718[_0x3940('0x3f')](_0x55af86[_0x3940('0x1b')],'toPrevious'),_0x151a52=_0x12c718['fromPosition'](_0x55af86[_0x3940('0x1f')],'toNext');_0x4d2f22['forceDefaultExecution'](()=>_0xc25607(_0x48c99d)),_0x465231=_0x2ee107[_0x3940('0x53')](_0x469dfa['model'][_0x3940('0x28')]['selection']),_0x55af86=_0x3d0bf7[_0x3940('0x2c')](_0x465231);const _0x7ca00e=_0x3d0bf7[_0x3940('0x40')](_0x187ce2,_0x151a52);_0x187ce2[_0x3940('0x32')](),_0x151a52['detach'](),_0x4d2f22['markBlockFormat'](_0x465231,{'commandName':_0x3940('0x6'),'commandParams':[_0x48c99d]},[],_0x3940('0xf')),_0x7ca00e[_0x3940('0x1b')]['isBefore'](_0x55af86[_0x3940('0x1b')])&&_0x4d2f22[_0x3940('0x37')](_0x3d0bf7[_0x3940('0x40')](_0x7ca00e[_0x3940('0x1b')],_0x55af86[_0x3940('0x1b')]),_0x3940('0xf')),_0x55af86[_0x3940('0x1f')][_0x3940('0x4b')](_0x7ca00e[_0x3940('0x1f')])&&_0x4d2f22[_0x3940('0x37')](_0x3d0bf7[_0x3940('0x40')](_0x55af86[_0x3940('0x1f')],_0x7ca00e[_0x3940('0x1f')]),_0x3940('0xf'));});}),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x45')]('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d2f22[_0x3940('0x1a')]['registerCustomCallback']('formatBlock',_0x3940('0xf'),'accept',()=>!0x1),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x45')]('formatBlock',_0x3940('0xf'),_0x3940('0x43'),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x1')](_0x3940('0x18'),'','accept')),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x45')](_0x3940('0x50'),_0x3940('0xf'),_0x3940('0x5'),()=>!0x1),_0x4d2f22[_0x3940('0x1a')]['registerCustomCallback'](_0x3940('0x50'),'convertInlineImageToBlock',_0x3940('0x43'),([_0x52f265])=>{const _0x5692ac=_0x4d2f22[_0x3940('0x1a')][_0x3940('0x1')](_0x3940('0x50'),'',_0x3940('0x43'));let _0x147d3c=_0x52f265[_0x3940('0x1b')],_0x4e1eb0=_0x52f265['end'];const _0x455a1c=_0x469dfa[_0x3940('0xb')]['schema'][_0x3940('0x10')](_0x147d3c,'backward'),_0xd17c9c=_0x469dfa[_0x3940('0xb')][_0x3940('0x11')][_0x3940('0x10')](_0x4e1eb0,'forward');_0x455a1c['isCollapsed']&&(_0x147d3c=_0x455a1c[_0x3940('0x1b')]),_0xd17c9c[_0x3940('0x2f')]&&(_0x4e1eb0=_0xd17c9c[_0x3940('0x1f')]),_0x5692ac([_0x469dfa['model'][_0x3940('0x40')](_0x147d3c,_0x4e1eb0)]);}),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x45')](_0x3940('0x18'),_0x3940('0xf'),_0x3940('0x4'),_0x40d418),_0x4d2f22[_0x3940('0x1a')][_0x3940('0x45')](_0x3940('0x50'),_0x3940('0xf'),_0x3940('0x4'),_0x40d418)),_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')](_0x3940('0x3e'))&&(_0x4d2f22[_0x3940('0x1e')](_0x3940('0x4a'),(_0x155098,_0x2e8577)=>{const _0x2793d4=_0x469dfa['plugins'][_0x3940('0x54')](_0x3940('0x14'));let _0x34d6fb=_0x2ee107[_0x3940('0x53')](_0x469dfa[_0x3940('0xb')][_0x3940('0x28')][_0x3940('0x33')]),_0x26146e=_0x2793d4[_0x3940('0x13')](_0x34d6fb);_0x469dfa[_0x3940('0xb')]['change'](()=>{if(_0x26146e)return void _0x4d2f22[_0x3940('0x2d')](_0x469dfa[_0x3940('0xb')][_0x3940('0x2c')](_0x26146e));const _0x22ef7b=_0x2ee107[_0x3940('0x22')](_0x34d6fb);_0x155098(_0x2e8577),_0x34d6fb=_0x2ee107['getClosestSelectedImageElement'](_0x469dfa[_0x3940('0xb')][_0x3940('0x28')][_0x3940('0x33')]),_0x26146e=_0x2793d4[_0x3940('0x13')](_0x34d6fb),_0x4d2f22[_0x3940('0x37')](_0x469dfa['model'][_0x3940('0x2c')](_0x26146e),_0x22ef7b?null:_0x3940('0x27'));});}),_0x4d2f22[_0x3940('0x1a')]['registerCustomCallback'](_0x3940('0x50'),'imageCaption','chain',_0x40d418));const _0x86d575=[{'type':_0x3940('0x18'),'subType':_0x3940('0x41')},{'type':_0x3940('0x50'),'subType':'imageCaption'},{'type':_0x3940('0x18'),'subType':_0x3940('0xf')},{'type':_0x3940('0x50'),'subType':_0x3940('0xf')}];function _0x3d8e7f(_0x1604db,_0x5bb11b){const _0x1cd46e=_0x86d575[_0x3940('0x19')](({type:_0x2f2ac8,subType:_0x32d278})=>_0x1604db[_0x3940('0x3c')]==_0x2f2ac8&&_0x1604db[_0x3940('0x3b')]==_0x32d278),_0x40132b=_0x86d575[_0x3940('0x19')](({type:_0x4081d8,subType:_0x33e997})=>_0x5bb11b[_0x3940('0x3c')]==_0x4081d8&&_0x5bb11b[_0x3940('0x3b')]==_0x33e997);if(_0x1cd46e<0x0||_0x40132b<0x0)return!0x1;const _0xe11fe7=_0x1604db[_0x3940('0x38')](),_0x2b3839=_0x5bb11b[_0x3940('0x38')]();if((0x0==_0x1cd46e||0x1==_0x1cd46e)&&0x2==_0x40132b&&_0xe11fe7[_0x3940('0x4f')](_0x2b3839))return!0x0;if(0x2==_0x1cd46e&&0x3==_0x40132b){const _0x4ef680=_0x4d2f22[_0x3940('0x47')](_0xe11fe7,_0x3940('0x50'))['filter'](({suggestion:_0x6da7da,meta:_0x46a069})=>_0x46a069[_0x3940('0xc')]&&_0x3940('0xf')==_0x6da7da[_0x3940('0x3b')]);if(_0x4ef680['length']>0x1&&_0x2b3839[_0x3940('0x1f')][_0x3940('0x17')](_0xe11fe7[_0x3940('0x1b')]))return!0x0;if(0x1==_0x4ef680['length']&&(_0xe11fe7[_0x3940('0x1b')]['isEqual'](_0x2b3839[_0x3940('0x1f')])||_0xe11fe7[_0x3940('0x1f')][_0x3940('0x17')](_0x2b3839[_0x3940('0x1b')])))return!0x0;}if(0x3==_0x1cd46e&&0x3==_0x40132b&&_0xe11fe7[_0x3940('0x1b')]['isBefore'](_0x2b3839[_0x3940('0x1b')])){const _0x57124f=_0xe11fe7[_0x3940('0x1f')][_0x3940('0x52')],_0x33f8a1=_0x2b3839['start'][_0x3940('0x3d')];return _0x2ee107[_0x3940('0x22')](_0x57124f)&&_0x57124f===_0x33f8a1;}return!0x1;}function _0x40d418(_0x324e48,_0x46f717){return _0x3d8e7f(_0x324e48,_0x46f717)?[_0x324e48,_0x46f717]:_0x3d8e7f(_0x46f717,_0x324e48)?[_0x46f717,_0x324e48]:null;}_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')]('ImageResize')&&(_0x4d2f22[_0x3940('0x34')]('resizeImage',[],['resizedWidth']),_0x4d2f22[_0x3940('0x4d')][_0x3940('0x0')](_0x3940('0xa'),_0x436ef7(_0x344e5c,_0x3940('0x48')))),_0x469dfa[_0x3940('0x44')][_0x3940('0x3a')]('ImageTextAlternativeEditing')&&_0x4d2f22[_0x3940('0x34')]('imageTextAlternative',[],[_0x3940('0x39')]),_0x4d2f22[_0x3940('0x4d')][_0x3940('0x26')](_0x5271da=>{if(!!_0x86d575['find'](({type:_0xd3f9b2,subType:_0x3531ef})=>_0x5271da['type']==_0xd3f9b2&&_0x5271da[_0x3940('0x3b')]==_0x3531ef))return _0x5271da[_0x3940('0x51')]?{}:void 0x0;}),_0x4d2f22[_0x3940('0x4d')][_0x3940('0x26')](_0x589a55=>{if(_0x3940('0x50')==_0x589a55[_0x3940('0x3c')]||'deletion'==_0x589a55[_0x3940('0x3c')]){const _0x1809f2=_0x589a55[_0x3940('0xe')]();if(_0x1809f2&&_0x1809f2['is'](_0x3940('0xd'),_0x3940('0x29')))return{'type':'insertion'==_0x589a55[_0x3940('0x3c')]?_0x3940('0x2'):_0x3940('0x49'),'element':_0x1809f2,'quantity':0x1};}}),_0x4d2f22['_descriptionFactory'][_0x3940('0x26')](_0x1c5da5=>'formatBlock'==_0x1c5da5[_0x3940('0x3c')]&&_0x3940('0xf')==_0x1c5da5[_0x3940('0x3b')]?{'type':_0x3940('0x42'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c5da5[_0x3940('0x3c')]&&_0x3940('0x56')==_0x1c5da5['subType']?{'type':'format','content':_0x3940('0x1c')}:void 0x0),_0x4d2f22[_0x3940('0x4d')]['registerDescriptionCallback'](_0x1f861f=>{if(_0x3940('0x3')!=_0x1f861f['type'])return;const {data:_0x253e76}=_0x1f861f;if(!_0x253e76||'alt'!=_0x253e76[_0x3940('0x55')])return;const _0x48601b=_0x253e76[_0x3940('0x30')];return _0x48601b?{'type':_0x3940('0x42'),'content':_0x436ef7(_0x344e5c,_0x3940('0x35'),'\x22'+_0x48601b+'\x22')}:{'type':'format','content':_0x436ef7(_0x344e5c,_0x3940('0x2b'))};}),this['_registerLegacyDescription']();}[_0x3940('0x4e')](){const _0x362875=this[_0x3940('0x20')],_0x443402=_0x362875[_0x3940('0x25')];_0x362875[_0x3940('0x44')][_0x3940('0x54')]('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x20728c=>{if(_0x3940('0x18')!=_0x20728c[_0x3940('0x3c')]&&'formatInline'!=_0x20728c[_0x3940('0x3c')])return;const {data:_0x13db62}=_0x20728c;if(_0x13db62){if(_0x3940('0x8')==_0x13db62['commandName']){const _0x349b48=_0x13db62[_0x3940('0x36')][0x0][_0x3940('0x30')];return _0x349b48?{'type':_0x3940('0x42'),'content':_0x436ef7(_0x443402,_0x3940('0x35'),'\x22'+_0x349b48+'\x22')}:{'type':_0x3940('0x42'),'content':_0x436ef7(_0x443402,'*Remove\x20image\x20text\x20alternative*')};}if(_0x3940('0x16')==_0x13db62[_0x3940('0x7')]){const _0x595128=_0x13db62['commandParams'][0x0][_0x3940('0x23')];return _0x595128?{'type':_0x3940('0x42'),'content':_0x436ef7(_0x443402,_0x3940('0x24'),_0x595128)}:{'type':_0x3940('0x42'),'content':_0x436ef7(_0x443402,_0x3940('0x15'))};}}});}}
|
|
23
|
+
const _0x8215=['detach','isBlockImage','*Set\x20image\x20width:*\x20%0','forward','get','_registerLegacyDescription','createRange','find','isEqual','ImageTextAlternativeEditing','resizedWidth','isIntersecting','convertBlockImageToInline','end','getContainedElement','resizeImage','model','deletion','format','type','imageTypeBlock','subType','change','imageTextAlternative','getSuggestionCallback','nodeAfter','uploadImage','isOwn','convertInlineImageToBlock','isCollapsed','markInsertion','markDeletion','registerDescriptionCallback','Block\x20image\x20to\x20inline\x20image','registerCustomCallback','ImageInlineEditing','*Remove\x20image\x20text\x20alternative*','imageStylePreApply','addObject','registerElementLabel','imageInline','enableCommand','getCaptionFromImageModelElement','caption','_descriptionFactory','markBlockFormat','_enableDefaultAttributesIntegration','width','ImageBlockEditing','getFirstRange','nodeBefore','getNearestSelectionRange','ImageUtils','imageBlock','imageCaption','element','key','getClosestSelectedImageElement','commandParams','attribute','imageTypeInline','ImageCaptionEditing','document','ELEMENT_IMAGE','discard','toNext','fromPosition','forceDefaultExecution','newValue','selection','*Reset\x20image\x20width*','createRangeOn','alt','commandName','start','backward','toggleImageCaption','ImageResize','TrackChangesEditing','accept','length','_findSuggestions','filter','chain','locale','removeObject','plugins','*Set\x20image\x20text\x20alternative:*\x20%0','formatInline','formatBlock','afterInit','editor','isBefore','_suggestionFactory','has','insertion','findIndex'];(function(_0x2183d7,_0x8215e2){const _0x1db262=function(_0x1a2199){while(--_0x1a2199){_0x2183d7['push'](_0x2183d7['shift']());}};_0x1db262(++_0x8215e2);}(_0x8215,0xf0));const _0x1db2=function(_0x2183d7,_0x8215e2){_0x2183d7=_0x2183d7-0x0;let _0x1db262=_0x8215[_0x2183d7];return _0x1db262;};import{Plugin as _0x156cc4}from'ckeditor5/src/core';import{LivePosition as _0x3f9834}from'ckeditor5/src/engine';import{getTranslation as _0x5892da}from'../utils/common-translations';export default class it extends _0x156cc4{[_0x1db2('0x2c')](){const _0x18e3b1=this['editor'];if(!_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x30')]('ImageEditing'))return;const _0x2aad8c=_0x18e3b1[_0x1db2('0x28')]['get'](_0x1db2('0x20')),_0x98a610=_0x18e3b1['plugins']['get'](_0x1db2('0x6')),_0x54bf0c=_0x18e3b1[_0x1db2('0x26')];_0x2aad8c['enableCommand']('insertImage'),_0x2aad8c[_0x1db2('0x5f')][_0x1db2('0x5a')](_0x1db2('0x7'),_0x145774=>_0x5892da(_0x54bf0c,_0x1db2('0x11'),_0x145774)),_0x2aad8c[_0x1db2('0x5f')]['registerElementLabel'](_0x1db2('0x5b'),_0x544948=>_0x5892da(_0x54bf0c,'ELEMENT_INLINE_IMAGE',_0x544948)),_0x2aad8c[_0x1db2('0x5f')]['registerElementLabel'](_0x1db2('0x5e'),()=>_0x5892da(_0x54bf0c,'ELEMENT_CAPTION')),_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x30')]('ImageUploadEditing')&&_0x2aad8c['enableCommand'](_0x1db2('0x4d')),_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x30')](_0x1db2('0x2'))&&_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x30')](_0x1db2('0x56'))&&(_0x2aad8c['enableCommand']('imageTypeInline',(_0xd5790a,_0x48b31f)=>{const _0x3721cc=_0x98a610[_0x1db2('0xb')](_0x18e3b1[_0x1db2('0x43')][_0x1db2('0x10')][_0x1db2('0x17')]);_0x18e3b1['model'][_0x1db2('0x49')](()=>{_0x2aad8c[_0x1db2('0x60')](_0x3721cc,{'commandName':'imageTypeInline','commandParams':[_0x48b31f]},[],_0x1db2('0x3f'));});}),_0x2aad8c[_0x1db2('0x5c')](_0x1db2('0x47'),(_0x539121,_0x1c69c3)=>{_0x18e3b1[_0x1db2('0x43')][_0x1db2('0x49')](_0x649b22=>{let _0x7a568f=_0x98a610[_0x1db2('0xb')](_0x18e3b1[_0x1db2('0x43')][_0x1db2('0x10')][_0x1db2('0x17')]),_0xd26bbc=_0x649b22['createRangeOn'](_0x7a568f);const _0x36e4ab=_0x3f9834[_0x1db2('0x14')](_0xd26bbc[_0x1db2('0x1c')],'toPrevious'),_0x3bf071=_0x3f9834['fromPosition'](_0xd26bbc[_0x1db2('0x40')],_0x1db2('0x13'));_0x2aad8c[_0x1db2('0x15')](()=>_0x539121(_0x1c69c3)),_0x7a568f=_0x98a610[_0x1db2('0xb')](_0x18e3b1[_0x1db2('0x43')][_0x1db2('0x10')][_0x1db2('0x17')]),_0xd26bbc=_0x649b22[_0x1db2('0x19')](_0x7a568f);const _0xca227a=_0x649b22[_0x1db2('0x39')](_0x36e4ab,_0x3bf071);_0x36e4ab[_0x1db2('0x33')](),_0x3bf071[_0x1db2('0x33')](),_0x2aad8c[_0x1db2('0x60')](_0x7a568f,{'commandName':_0x1db2('0xe'),'commandParams':[_0x1c69c3]},[],'convertInlineImageToBlock'),_0xca227a[_0x1db2('0x1c')][_0x1db2('0x2e')](_0xd26bbc[_0x1db2('0x1c')])&&_0x2aad8c['markInsertion'](_0x649b22[_0x1db2('0x39')](_0xca227a[_0x1db2('0x1c')],_0xd26bbc[_0x1db2('0x1c')]),_0x1db2('0x4f')),_0xd26bbc['end'][_0x1db2('0x2e')](_0xca227a[_0x1db2('0x40')])&&_0x2aad8c[_0x1db2('0x51')](_0x649b22[_0x1db2('0x39')](_0xd26bbc[_0x1db2('0x40')],_0xca227a['end']),_0x1db2('0x4f'));});}),_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x55')](_0x1db2('0x2b'),_0x1db2('0x4f'),'join',()=>!0x1),_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x55')](_0x1db2('0x2b'),_0x1db2('0x4f'),_0x1db2('0x21'),()=>!0x1),_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x55')]('formatBlock',_0x1db2('0x4f'),'discard',_0x2aad8c['_suggestionFactory'][_0x1db2('0x4b')]('formatBlock','',_0x1db2('0x21'))),_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x55')](_0x1db2('0x31'),_0x1db2('0x4f'),'join',()=>!0x1),_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x55')](_0x1db2('0x31'),_0x1db2('0x4f'),_0x1db2('0x12'),([_0x29cb14])=>{const _0x2d2755=_0x2aad8c[_0x1db2('0x2f')][_0x1db2('0x4b')]('insertion','',_0x1db2('0x12'));let _0x47daba=_0x29cb14[_0x1db2('0x1c')],_0x2234e6=_0x29cb14[_0x1db2('0x40')];const _0x2baa2b=_0x18e3b1['model']['schema'][_0x1db2('0x5')](_0x47daba,_0x1db2('0x1d')),_0xec308f=_0x18e3b1[_0x1db2('0x43')]['schema']['getNearestSelectionRange'](_0x2234e6,_0x1db2('0x36'));_0x2baa2b[_0x1db2('0x50')]&&(_0x47daba=_0x2baa2b[_0x1db2('0x1c')]),_0xec308f[_0x1db2('0x50')]&&(_0x2234e6=_0xec308f['end']),_0x2d2755([_0x18e3b1['model'][_0x1db2('0x39')](_0x47daba,_0x2234e6)]);}),_0x2aad8c[_0x1db2('0x2f')]['registerCustomCallback'](_0x1db2('0x2b'),_0x1db2('0x4f'),_0x1db2('0x25'),_0x1946f2),_0x2aad8c[_0x1db2('0x2f')]['registerCustomCallback'](_0x1db2('0x31'),_0x1db2('0x4f'),_0x1db2('0x25'),_0x1946f2)),_0x18e3b1[_0x1db2('0x28')]['has'](_0x1db2('0xf'))&&(_0x2aad8c[_0x1db2('0x5c')](_0x1db2('0x1e'),(_0x1c0782,_0xe105a9)=>{const _0x14efa2=_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x37')]('ImageCaptionUtils');let _0x11eacc=_0x98a610['getClosestSelectedImageElement'](_0x18e3b1['model'][_0x1db2('0x10')][_0x1db2('0x17')]),_0x586889=_0x14efa2[_0x1db2('0x5d')](_0x11eacc);_0x18e3b1[_0x1db2('0x43')]['change'](()=>{if(_0x586889)return void _0x2aad8c[_0x1db2('0x52')](_0x18e3b1['model']['createRangeOn'](_0x586889));const _0xdcd9d1=_0x98a610[_0x1db2('0x34')](_0x11eacc);_0x1c0782(_0xe105a9),_0x11eacc=_0x98a610[_0x1db2('0xb')](_0x18e3b1[_0x1db2('0x43')]['document']['selection']),_0x586889=_0x14efa2[_0x1db2('0x5d')](_0x11eacc),_0x2aad8c[_0x1db2('0x51')](_0x18e3b1[_0x1db2('0x43')][_0x1db2('0x19')](_0x586889),_0xdcd9d1?null:'imageCaption');});}),_0x2aad8c['_suggestionFactory'][_0x1db2('0x55')](_0x1db2('0x31'),_0x1db2('0x8'),_0x1db2('0x25'),_0x1946f2));const _0xc1e362=[{'type':_0x1db2('0x2b'),'subType':_0x1db2('0x58')},{'type':'insertion','subType':_0x1db2('0x8')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x1db2('0x31'),'subType':_0x1db2('0x4f')}];function _0x1eb66f(_0xd26c01,_0x4fab1e){const _0x51c410=_0xc1e362['findIndex'](({type:_0x534d22,subType:_0x91a4f6})=>_0xd26c01['type']==_0x534d22&&_0xd26c01[_0x1db2('0x48')]==_0x91a4f6),_0x29783d=_0xc1e362[_0x1db2('0x32')](({type:_0x1e3936,subType:_0x2efacb})=>_0x4fab1e['type']==_0x1e3936&&_0x4fab1e[_0x1db2('0x48')]==_0x2efacb);if(_0x51c410<0x0||_0x29783d<0x0)return!0x1;const _0x5a0324=_0xd26c01[_0x1db2('0x3')](),_0x2b30be=_0x4fab1e[_0x1db2('0x3')]();if((0x0==_0x51c410||0x1==_0x51c410)&&0x2==_0x29783d&&_0x5a0324[_0x1db2('0x3e')](_0x2b30be))return!0x0;if(0x2==_0x51c410&&0x3==_0x29783d){const _0x461f97=_0x2aad8c[_0x1db2('0x23')](_0x5a0324,_0x1db2('0x31'))[_0x1db2('0x24')](({suggestion:_0x40c547,meta:_0x82808b})=>_0x82808b[_0x1db2('0x4e')]&&_0x1db2('0x4f')==_0x40c547['subType']);if(_0x461f97[_0x1db2('0x22')]>0x1&&_0x2b30be[_0x1db2('0x40')][_0x1db2('0x3b')](_0x5a0324[_0x1db2('0x1c')]))return!0x0;if(0x1==_0x461f97[_0x1db2('0x22')]&&(_0x5a0324[_0x1db2('0x1c')][_0x1db2('0x3b')](_0x2b30be[_0x1db2('0x40')])||_0x5a0324['end'][_0x1db2('0x3b')](_0x2b30be[_0x1db2('0x1c')])))return!0x0;}if(0x3==_0x51c410&&0x3==_0x29783d&&_0x5a0324[_0x1db2('0x1c')][_0x1db2('0x2e')](_0x2b30be[_0x1db2('0x1c')])){const _0x58fa52=_0x5a0324[_0x1db2('0x40')][_0x1db2('0x4c')],_0x33ed77=_0x2b30be[_0x1db2('0x1c')][_0x1db2('0x4')];return _0x98a610[_0x1db2('0x34')](_0x58fa52)&&_0x58fa52===_0x33ed77;}return!0x1;}function _0x1946f2(_0x354791,_0x27b0c0){return _0x1eb66f(_0x354791,_0x27b0c0)?[_0x354791,_0x27b0c0]:_0x1eb66f(_0x27b0c0,_0x354791)?[_0x27b0c0,_0x354791]:null;}_0x18e3b1[_0x1db2('0x28')][_0x1db2('0x30')](_0x1db2('0x1f'))&&(_0x2aad8c[_0x1db2('0x0')](_0x1db2('0x42'),[],[_0x1db2('0x3d')]),_0x2aad8c[_0x1db2('0x5f')]['registerAttributeLabel'](_0x1db2('0x3d'),_0x5892da(_0x54bf0c,'FORMAT_IMAGE_SIZE'))),_0x18e3b1[_0x1db2('0x28')]['has'](_0x1db2('0x3c'))&&_0x2aad8c[_0x1db2('0x0')](_0x1db2('0x4a'),[],[_0x1db2('0x1a')]),_0x2aad8c[_0x1db2('0x5f')][_0x1db2('0x53')](_0x56d235=>{if(!!_0xc1e362[_0x1db2('0x3a')](({type:_0x57e7fa,subType:_0x5ae369})=>_0x56d235[_0x1db2('0x46')]==_0x57e7fa&&_0x56d235[_0x1db2('0x48')]==_0x5ae369))return _0x56d235['previous']?{}:void 0x0;}),_0x2aad8c[_0x1db2('0x5f')]['registerDescriptionCallback'](_0x51a8f1=>{if(_0x1db2('0x31')==_0x51a8f1[_0x1db2('0x46')]||_0x1db2('0x44')==_0x51a8f1[_0x1db2('0x46')]){const _0x438790=_0x51a8f1[_0x1db2('0x41')]();if(_0x438790&&_0x438790['is'](_0x1db2('0x9'),_0x1db2('0x5e')))return{'type':_0x1db2('0x31')==_0x51a8f1[_0x1db2('0x46')]?_0x1db2('0x59'):_0x1db2('0x27'),'element':_0x438790,'quantity':0x1};}}),_0x2aad8c[_0x1db2('0x5f')][_0x1db2('0x53')](_0x3d726a=>_0x1db2('0x2b')==_0x3d726a[_0x1db2('0x46')]&&'convertInlineImageToBlock'==_0x3d726a['subType']?{'type':_0x1db2('0x45'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x1db2('0x2b')==_0x3d726a[_0x1db2('0x46')]&&'convertBlockImageToInline'==_0x3d726a['subType']?{'type':_0x1db2('0x45'),'content':_0x1db2('0x54')}:void 0x0),_0x2aad8c[_0x1db2('0x5f')][_0x1db2('0x53')](_0x565edf=>{if(_0x1db2('0xd')!=_0x565edf['type'])return;const {data:_0x2cc40d}=_0x565edf;if(!_0x2cc40d||'alt'!=_0x2cc40d[_0x1db2('0xa')])return;const _0x317f12=_0x2cc40d[_0x1db2('0x16')];return _0x317f12?{'type':_0x1db2('0x45'),'content':_0x5892da(_0x54bf0c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x317f12+'\x22')}:{'type':_0x1db2('0x45'),'content':_0x5892da(_0x54bf0c,_0x1db2('0x57'))};}),this[_0x1db2('0x38')]();}[_0x1db2('0x38')](){const _0x35508e=this[_0x1db2('0x2d')],_0x2639ee=_0x35508e[_0x1db2('0x26')];_0x35508e[_0x1db2('0x28')][_0x1db2('0x37')](_0x1db2('0x20'))[_0x1db2('0x5f')][_0x1db2('0x53')](_0x4d2dde=>{if(_0x1db2('0x2b')!=_0x4d2dde['type']&&_0x1db2('0x2a')!=_0x4d2dde[_0x1db2('0x46')])return;const {data:_0x4e41e5}=_0x4d2dde;if(_0x4e41e5){if(_0x1db2('0x4a')==_0x4e41e5['commandName']){const _0x33461f=_0x4e41e5[_0x1db2('0xc')][0x0][_0x1db2('0x16')];return _0x33461f?{'type':_0x1db2('0x45'),'content':_0x5892da(_0x2639ee,_0x1db2('0x29'),'\x22'+_0x33461f+'\x22')}:{'type':_0x1db2('0x45'),'content':_0x5892da(_0x2639ee,_0x1db2('0x57'))};}if('resizeImage'==_0x4e41e5[_0x1db2('0x1b')]){const _0x333bf9=_0x4e41e5[_0x1db2('0xc')][0x0][_0x1db2('0x1')];return _0x333bf9?{'type':_0x1db2('0x45'),'content':_0x5892da(_0x2639ee,_0x1db2('0x35'),_0x333bf9)}:{'type':_0x1db2('0x45'),'content':_0x5892da(_0x2639ee,_0x1db2('0x18'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ce=['get','formatBlock','replaceImageSource','accept','_registerLegacyDescription','editor','src','_enableDefaultAttributesIntegration','format','key','has','registerCustomCallback','plugins','_suggestionFactory','registerDescriptionCallback','discard','type','ImageEditing','_handleLegacySuggestions','TrackChangesEditing','_descriptionFactory','newValue','locale','formatInline'];(function(_0x3ac107,_0x43ce40){const _0x3fd105=function(_0x28ae3c){while(--_0x28ae3c){_0x3ac107['push'](_0x3ac107['shift']());}};_0x3fd105(++_0x43ce40);}(_0x43ce,0x15b));const _0x3fd1=function(_0x3ac107,_0x43ce40){_0x3ac107=_0x3ac107-0x0;let _0x3fd105=_0x43ce[_0x3ac107];return _0x3fd105;};import{Plugin as _0x164eef}from'ckeditor5/src/core';import{getTranslation as _0x36adcd}from'../utils/common-translations';export default class et extends _0x164eef{['afterInit'](){if(!this['editor'][_0x3fd1('0x1')][_0x3fd1('0x17')](_0x3fd1('0x6')))return;const _0x57cd57=this[_0x3fd1('0x12')][_0x3fd1('0xb')],_0x13979d=this['editor'][_0x3fd1('0x1')][_0x3fd1('0xd')]('TrackChangesEditing');_0x13979d[_0x3fd1('0x14')](_0x3fd1('0xf'),[],[_0x3fd1('0x13')]),_0x13979d[_0x3fd1('0x9')][_0x3fd1('0x3')](_0x16bfbd=>{if('attribute'!=_0x16bfbd['type'])return;const {data:_0x4da02f}=_0x16bfbd;return _0x4da02f&&_0x3fd1('0x13')==_0x4da02f[_0x3fd1('0x16')]?_0x4da02f[_0x3fd1('0xa')]&&_0x4da02f['oldValue']?{'type':'format','content':_0x36adcd(_0x57cd57,'*Replace\x20image\x20URL*')}:{'type':_0x3fd1('0x15'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}[_0x3fd1('0x7')](){const _0x509773=this[_0x3fd1('0x12')][_0x3fd1('0x1')][_0x3fd1('0xd')](_0x3fd1('0x8'));_0x509773['_suggestionFactory']['registerCustomCallback'](_0x3fd1('0xe'),'replaceImageSource',_0x3fd1('0x10'),_0x509773['_suggestionFactory']['getSuggestionCallback'](_0x3fd1('0xe'),null,_0x3fd1('0x4'))),_0x509773[_0x3fd1('0x2')][_0x3fd1('0x0')](_0x3fd1('0xe'),_0x3fd1('0xf'),'discard',_0x509773[_0x3fd1('0x2')]['getSuggestionCallback'](_0x3fd1('0xe'),null,'accept')),this[_0x3fd1('0x11')]();}[_0x3fd1('0x11')](){const _0x279f09=this['editor'],_0x113585=_0x279f09[_0x3fd1('0xb')];_0x279f09[_0x3fd1('0x1')][_0x3fd1('0xd')](_0x3fd1('0x8'))[_0x3fd1('0x9')][_0x3fd1('0x3')](_0x2b2082=>{if(_0x3fd1('0xe')!=_0x2b2082[_0x3fd1('0x5')]&&_0x3fd1('0xc')!=_0x2b2082[_0x3fd1('0x5')])return;const {data:_0x2bbbd5}=_0x2b2082;return _0x2bbbd5&&'replaceImageSource'===_0x2bbbd5['commandName']?{'type':_0x3fd1('0x15'),'content':_0x36adcd(_0x113585,'*Replace\x20image\x20URL*')}:void 0x0;});}}
|