@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.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/translations/ar.po +5 -5
- package/lang/translations/az.po +4 -4
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/en.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +36 -36
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sq.po +4 -4
- package/lang/translations/sr-latn.po +24 -24
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +4 -4
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- 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/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.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd783=['createPositionAt','nodeAfter','listIndent','toUpperCase','indentList','markBlockFormat','outdentList','enableCommand','*Merge:*\x20%0','execute','bulletedList','slice','commandParams','get','config','getRanges','editor','after','hasAttribute','*Change\x20to:*\x20%0','paragraph','registerElementLabel','numberedList','fromRange','containsItem','registerDescriptionCallback','ELEMENT_','ELEMENT_LIST_ITEM','list.multiBlock','nextSibling','length','format','listType','start','change','model','plugins','before','createRange','registerCustomCallback','next','mergeListItemBackward','getAttribute','*Outdent:*\x20%0','setSelection','documentList','has','end','from','document','value','getFirstRange','detach','getSelectedBlocks','expandListBlocksToCompleteList','mergeListItemForward','_descriptionFactory','isFirstBlockOfListItem','DocumentListEditing','formatInline','deletion','forceValue','push','listItemId','commands','commandName','*Format:*\x20remove\x20from\x20%0','findIndex','TrackChangesEditing','selection','isObject','*Format:*\x20insert\x20into\x20%0','parent','_LIST','formatBlock','splitListItemBefore'];(function(_0x46459f,_0xd783d0){const _0x5e3696=function(_0x220800){while(--_0x220800){_0x46459f['push'](_0x46459f['shift']());}};_0x5e3696(++_0xd783d0);}(_0xd783,0x18b));const _0x5e36=function(_0x46459f,_0xd783d0){_0x46459f=_0x46459f-0x0;let _0x5e3696=_0xd783[_0x46459f];return _0x5e3696;};import{Plugin as _0x441c51}from'ckeditor5/src/core';import{getTranslation as _0x218de4}from'../utils/common-translations';import{LiveRange as _0x2a4ab7}from'ckeditor5/src/engine';export default class q extends _0x441c51{['afterInit'](){const _0x54cd28=this[_0x5e36('0x1')];if(!_0x54cd28['plugins'][_0x5e36('0x1f')](_0x5e36('0x2b')))return;const _0x28905d=_0x54cd28['locale'],_0x4ba6c0=_0x54cd28[_0x5e36('0x15')][_0x5e36('0x4a')](_0x5e36('0x35')),_0xff650c=_0x54cd28[_0x5e36('0x15')][_0x5e36('0x4a')]('DocumentListUtils');function _0x3a33f4(_0x874d27){return()=>{const _0x7fdd95=_0x54cd28[_0x5e36('0x31')][_0x5e36('0x4a')](_0x874d27);if(_0x7fdd95['value']&&!_0x54cd28[_0x5e36('0x4b')][_0x5e36('0x4a')](_0x5e36('0xd')))return void _0x54cd28[_0x5e36('0x46')](_0x5e36('0x5'),{});let _0x2a586b=Array['from'](_0x54cd28['model']['document']['selection'][_0x5e36('0x26')]());if(_0x46af7d(_0x874d27)){_0x2a586b=_0xff650c[_0x5e36('0x27')](_0x2a586b);const _0x329494=[];for(const _0x3b85e1 of _0x2a586b)_0xff650c[_0x5e36('0x2a')](_0x3b85e1)&&_0x329494['push'](_0x3b85e1);_0x2a586b=_0x329494;}_0x54cd28[_0x5e36('0x14')][_0x5e36('0x13')](()=>{_0x4ba6c0['markMultiRangeBlockFormat'](_0x2a586b,{'commandName':_0x874d27,'commandParams':[{'forceValue':!_0x7fdd95[_0x5e36('0x23')]}],'formatGroupId':_0x5e36('0x11')},[],_0x5e36('0x1e'));});};}function _0x22d9be(_0x52c8e4){return()=>{const _0x2e098f=function(_0x2b6419){let _0x302867=Array[_0x5e36('0x21')](_0x2b6419);const _0x4ce6ed=_0x302867[_0x5e36('0x34')](_0x57fbfb=>!_0x57fbfb[_0x5e36('0x3')]('listItemId'));return _0x4ce6ed>-0x1&&(_0x302867=_0x302867[_0x5e36('0x48')](0x0,_0x4ce6ed)),_0x302867;}(_0x54cd28['model'][_0x5e36('0x22')][_0x5e36('0x36')][_0x5e36('0x26')]()),_0x315434=_0x2e098f[_0x2e098f[_0x5e36('0xf')]-0x1],_0x23f357=_0x54cd28[_0x5e36('0x14')]['schema'][_0x5e36('0x37')](_0x315434)?_0x5e36('0x2'):'end',_0x10f5b0=_0x54cd28[_0x5e36('0x14')]['createRange'](_0x54cd28[_0x5e36('0x14')]['createPositionAt'](_0x2e098f[0x0],'before'),_0x54cd28[_0x5e36('0x14')][_0x5e36('0x3d')](_0x315434,_0x23f357));_0x54cd28[_0x5e36('0x14')][_0x5e36('0x13')](()=>{_0x4ba6c0[_0x5e36('0x42')](_0x10f5b0,{'commandName':_0x52c8e4,'commandParams':[],'formatGroupId':_0x5e36('0x11')},function(_0x5decbb){const _0x2faa8c=new Set();for(const _0x550d56 of _0x5decbb){let _0x52450f=_0x550d56[_0x5e36('0xe')];for(;_0x52450f&&_0x52450f[_0x5e36('0x1b')](_0x5e36('0x3f'))>_0x550d56[_0x5e36('0x1b')](_0x5e36('0x3f'));)_0x2faa8c['add'](_0x52450f),_0x52450f=_0x52450f[_0x5e36('0xe')];}return Array[_0x5e36('0x21')](_0x2faa8c);}(_0x2e098f));});};}function _0x546859(_0x254eea){return()=>{const _0x5b2b00=_0x54cd28[_0x5e36('0x14')][_0x5e36('0x22')][_0x5e36('0x36')][_0x5e36('0x26')]()[_0x5e36('0x19')]()[_0x5e36('0x23')],_0x459c8e=_0x54cd28[_0x5e36('0x14')][_0x5e36('0x3d')](_0x5b2b00,_0x5e36('0x16')),_0x1efa44=_0x54cd28['model'][_0x5e36('0x3d')](_0x5b2b00,0x0),_0x2881e6=_0x54cd28[_0x5e36('0x14')][_0x5e36('0x17')](_0x459c8e,_0x1efa44);_0x54cd28[_0x5e36('0x14')][_0x5e36('0x13')](()=>{_0x4ba6c0[_0x5e36('0x42')](_0x2881e6,{'commandName':_0x254eea,'commandParams':[],'formatGroupId':_0x5e36('0x11')});});};}function _0x46af7d(_0x392afd){const _0x309adf=_0x54cd28[_0x5e36('0x31')][_0x5e36('0x4a')](_0x5e36('0x47'))[_0x5e36('0x23')],_0x4eadec=_0x54cd28[_0x5e36('0x31')][_0x5e36('0x4a')](_0x5e36('0x7'))[_0x5e36('0x23')];return _0x5e36('0x7')===_0x392afd?_0x309adf:_0x4eadec;}_0x4ba6c0[_0x5e36('0x44')]('numberedList',_0x3a33f4('numberedList')),_0x4ba6c0['enableCommand'](_0x5e36('0x47'),_0x3a33f4(_0x5e36('0x47'))),_0x4ba6c0[_0x5e36('0x44')](_0x5e36('0x41'),_0x22d9be('indentList')),_0x4ba6c0['enableCommand'](_0x5e36('0x43'),_0x22d9be(_0x5e36('0x43'))),_0x4ba6c0[_0x5e36('0x44')]('splitListItemAfter',_0x546859('splitListItemAfter')),_0x4ba6c0[_0x5e36('0x44')](_0x5e36('0x3c'),_0x546859('splitListItemBefore')),_0x4ba6c0[_0x5e36('0x29')][_0x5e36('0x6')](function(_0x1fdb3c){const _0x1110c0=!_0x54cd28[_0x5e36('0x14')]['schema'][_0x5e36('0x37')](_0x1fdb3c),_0x419b64=_0x1fdb3c['previousSibling'],_0x9f139d=_0x1fdb3c['nextSibling'],_0x321a17=_0x1fdb3c[_0x5e36('0x1b')]('listItemId'),_0x23fa3e=!_0x419b64||_0x419b64[_0x5e36('0x1b')](_0x5e36('0x30'))!==_0x321a17,_0xe7964=!_0x9f139d||_0x9f139d[_0x5e36('0x1b')](_0x5e36('0x30'))!==_0x321a17;return _0x1110c0&&Boolean(_0x321a17)&&_0x23fa3e&&_0xe7964;},_0x5e4bbf=>_0x218de4(_0x28905d,_0x5e36('0xc'),_0x5e4bbf)),_0x4ba6c0[_0x5e36('0x29')][_0x5e36('0xa')](function(_0x3db61d){if(_0x5e36('0x3b')!=_0x3db61d['type']&&_0x5e36('0x2c')!=_0x3db61d['type'])return;const {data:_0x36c7a3}=_0x3db61d;if(!_0x36c7a3)return;let _0x53e24d,_0x3e605a,_0x3726a6,_0x4a17c2;switch(_0x36c7a3['commandName']){case _0x5e36('0x47'):_0x3726a6=_0x36c7a3[_0x5e36('0x49')][0x0][_0x5e36('0x2e')],_0x4a17c2=_0x46af7d(_0x36c7a3['commandName']),_0x53e24d=_0x3726a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4a17c2&&_0x54cd28['config'][_0x5e36('0x4a')](_0x5e36('0xd'))||(_0x53e24d=_0x5e36('0x4')),_0x3e605a={'type':_0x5e36('0x10'),'content':_0x218de4(_0x28905d,_0x53e24d,_0x218de4(_0x28905d,'ELEMENT_BULLETED_LIST'))};break;case _0x5e36('0x7'):_0x3726a6=_0x36c7a3[_0x5e36('0x49')][0x0][_0x5e36('0x2e')],_0x4a17c2=_0x46af7d(_0x36c7a3[_0x5e36('0x32')]),_0x53e24d=_0x3726a6?_0x5e36('0x38'):_0x5e36('0x33'),!_0x4a17c2&&_0x54cd28[_0x5e36('0x4b')][_0x5e36('0x4a')]('list.multiBlock')||(_0x53e24d=_0x5e36('0x4')),_0x3e605a={'type':_0x5e36('0x10'),'content':_0x218de4(_0x28905d,_0x53e24d,_0x218de4(_0x28905d,'ELEMENT_NUMBERED_LIST'))};break;case _0x5e36('0x41'):_0x53e24d='*Indent:*\x20%0',_0x3e605a={'type':_0x5e36('0x10'),'content':_0x218de4(_0x28905d,_0x53e24d,_0x218de4(_0x28905d,_0x5e36('0xc')))};break;case'outdentList':_0x53e24d=function(_0x1d89af){const _0x5e76ff=_0x1d89af[_0x5e36('0x24')]();let _0x11ed9e=_0x5e76ff[_0x5e36('0x12')][_0x5e36('0x3e')];for(;_0x11ed9e&&_0x5e76ff[_0x5e36('0x9')](_0x11ed9e);){if(_0x11ed9e['getAttribute'](_0x5e36('0x3f'))>0x0)return!0x1;_0x11ed9e=_0x11ed9e[_0x5e36('0xe')];}return!0x0;}(_0x3db61d)?_0x218de4(_0x28905d,_0x5e36('0x33'),_0x218de4(_0x28905d,function(_0x556943){const _0x31b98d=_0x556943[_0x5e36('0x24')]()[_0x5e36('0x12')][_0x5e36('0x3e')];return _0x5e36('0xb')+_0x31b98d[_0x5e36('0x1b')](_0x5e36('0x11'))[_0x5e36('0x40')]()+_0x5e36('0x3a');}(_0x3db61d))):_0x218de4(_0x28905d,_0x5e36('0x1c'),_0x218de4(_0x28905d,_0x5e36('0xc'))),_0x3e605a={'type':_0x5e36('0x10'),'content':_0x53e24d};break;case _0x5e36('0x1a'):case _0x5e36('0x28'):!0x1===_0x36c7a3['multipleBlocks']&&(_0x53e24d=_0x5e36('0x45'),_0x3e605a={'type':_0x5e36('0x2d'),'content':_0x218de4(_0x28905d,_0x53e24d,_0x218de4(_0x28905d,_0x5e36('0xc')))});}return _0x3e605a;}),_0x4ba6c0['_suggestionFactory'][_0x5e36('0x18')](_0x5e36('0x3b'),_0x5e36('0x1e'),'accept',function(_0x425f31,_0x54fdec){const _0x24d587=[];for(let _0xa2cfcd of _0x425f31)_0xa2cfcd[_0x5e36('0x12')][_0x5e36('0x3e')]===_0xa2cfcd[_0x5e36('0x20')][_0x5e36('0x39')]&&(_0xa2cfcd=_0x54cd28['model'][_0x5e36('0x17')](_0x54cd28[_0x5e36('0x14')]['createPositionAt'](_0xa2cfcd[_0x5e36('0x12')]['nodeAfter'],0x0))),_0x24d587[_0x5e36('0x2f')](_0xa2cfcd);_0x54cd28[_0x5e36('0x14')][_0x5e36('0x13')](_0x4f2af8=>{const _0x522923=_0x54cd28[_0x5e36('0x14')]['document'][_0x5e36('0x36')],_0x138905=Array[_0x5e36('0x21')](_0x522923[_0x5e36('0x0')]())['map'](_0x1cc79c=>_0x2a4ab7[_0x5e36('0x8')](_0x1cc79c));_0x4f2af8[_0x5e36('0x1d')](_0x24d587),_0x54cd28[_0x5e36('0x31')][_0x5e36('0x4a')](_0x54fdec[_0x5e36('0x32')])['refresh'](),_0x54fdec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x54cd28[_0x5e36('0x46')](_0x54fdec['commandName'],..._0x54fdec['commandParams']),_0x4f2af8['setSelection'](_0x138905);for(const _0x4ae077 of _0x138905)_0x4ae077[_0x5e36('0x25')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3292=['replace','*Format:*\x20set\x20order\x20to\x20reversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','reversed','_getSuggestionBlocksForListStyle','_getSuggestionBlocks','handleListStyleCommand','format','_LIST_','length','numbered','handleListReversedCommand','*Change\x20to:*\x20%0','editor','formatBlock','list.properties','document','plugins','listStart','change','*Format:*\x20set\x20order\x20to\x20regular','selection','getSelectedBlocks','bind','type','listReversed','afterInit','startIndex','markMultiRangeBlockFormat','commandParams','config','model','listStyle','listType','get','filter','enableCommand','push','isListItemBlock','handleListStartCommand','expandListBlocksToCompleteList','from','formatInline','DocumentListPropertiesEditing','DocumentListUtils','has','TrackChangesEditing','styles','registerDescriptionCallback','isFirstBlockOfListItem','getAttribute','_getTranslationKeyForListStyle','toUpperCase','commandName'];(function(_0x32ec37,_0x329210){const _0x1aaf04=function(_0xc94e24){while(--_0xc94e24){_0x32ec37['push'](_0x32ec37['shift']());}};_0x1aaf04(++_0x329210);}(_0x3292,0x71));const _0x1aaf=function(_0x32ec37,_0x329210){_0x32ec37=_0x32ec37-0x0;let _0x1aaf04=_0x3292[_0x32ec37];return _0x1aaf04;};import{Plugin as _0x246d5c}from'ckeditor5/src/core';import{getTranslation as _0x1cef1a}from'../utils/common-translations';export default class z extends _0x246d5c{[_0x1aaf('0x15')](){if(!this[_0x1aaf('0x8')]['plugins'][_0x1aaf('0x28')](_0x1aaf('0x26')))return;const _0x3fe071=this[_0x1aaf('0x8')][_0x1aaf('0x19')][_0x1aaf('0x1d')](_0x1aaf('0xa')),_0x3b9488=this[_0x1aaf('0x8')]['plugins'][_0x1aaf('0x1d')](_0x1aaf('0x29'));_0x3fe071[_0x1aaf('0x2a')]&&_0x3b9488['enableCommand'](_0x1aaf('0x1b'),this[_0x1aaf('0x1')]['bind'](this)),_0x3fe071[_0x1aaf('0x34')]&&_0x3b9488[_0x1aaf('0x1f')](_0x1aaf('0x14'),this[_0x1aaf('0x6')][_0x1aaf('0x12')](this)),_0x3fe071[_0x1aaf('0x16')]&&_0x3b9488[_0x1aaf('0x1f')](_0x1aaf('0xd'),this[_0x1aaf('0x22')][_0x1aaf('0x12')](this)),_0x3b9488['_descriptionFactory'][_0x1aaf('0x2b')](this['handleDescriptions'][_0x1aaf('0x12')](this));}[_0x1aaf('0x1')](_0x35e8a3,_0x38ac82={}){const _0xa3580c=this['editor'][_0x1aaf('0xc')][_0x1aaf('0x1d')](_0x1aaf('0x29')),_0x38f192=this[_0x1aaf('0x35')]();this[_0x1aaf('0x8')][_0x1aaf('0x1a')]['change'](()=>{_0xa3580c[_0x1aaf('0x17')](_0x38f192,{'commandName':'listStyle','commandParams':[{'type':_0x38ac82[_0x1aaf('0x13')]}],'formatGroupId':_0x1aaf('0x1b')});});}['handleListReversedCommand'](_0xfda47,_0x182646={}){const _0x579bd6=this[_0x1aaf('0x8')]['plugins'][_0x1aaf('0x1d')](_0x1aaf('0x29')),_0xaedf8e=this['editor']['plugins'][_0x1aaf('0x1d')](_0x1aaf('0x27')),_0x27afba=this[_0x1aaf('0x0')](_0x149fc1=>_0xaedf8e[_0x1aaf('0x21')](_0x149fc1)&&_0x1aaf('0x5')===_0x149fc1['getAttribute']('listType'));null!==_0x27afba&&this[_0x1aaf('0x8')]['model'][_0x1aaf('0xe')](()=>{_0x579bd6['markMultiRangeBlockFormat'](_0x27afba,{'commandName':'listReversed','commandParams':[{'reversed':_0x182646[_0x1aaf('0x34')]}],'formatGroupId':_0x1aaf('0x14')});});}[_0x1aaf('0x22')](_0x221b76,_0x2089f={}){const _0x34cf27=this[_0x1aaf('0x8')][_0x1aaf('0xc')][_0x1aaf('0x1d')]('TrackChangesEditing'),_0x38100f=this['editor']['plugins']['get']('DocumentListUtils'),_0x3d6826=this[_0x1aaf('0x0')](_0x3627c0=>_0x38100f[_0x1aaf('0x21')](_0x3627c0)&&_0x1aaf('0x5')===_0x3627c0[_0x1aaf('0x2d')](_0x1aaf('0x1c')));null!==_0x3d6826&&this[_0x1aaf('0x8')][_0x1aaf('0x1a')][_0x1aaf('0xe')](()=>{_0x34cf27[_0x1aaf('0x17')](_0x3d6826,{'commandName':_0x1aaf('0xd'),'commandParams':[{'startIndex':_0x2089f['startIndex']}],'formatGroupId':_0x1aaf('0xd')});});}['handleDescriptions'](_0x59584f){if(_0x1aaf('0x9')!=_0x59584f[_0x1aaf('0x13')]&&_0x1aaf('0x25')!=_0x59584f[_0x1aaf('0x13')])return;const _0x50662a=this[_0x1aaf('0x8')]['locale'],{data:_0x3b9956}=_0x59584f;if(!_0x3b9956)return;let _0x20edb9,_0x500aee;switch(_0x3b9956[_0x1aaf('0x30')]){case _0x1aaf('0x1b'):_0x20edb9=_0x1aaf('0x7'),_0x500aee={'type':_0x1aaf('0x2'),'content':_0x1cef1a(_0x50662a,_0x20edb9,_0x1cef1a(_0x50662a,this['_getTranslationKeyForListStyle'](_0x3b9956[_0x1aaf('0x18')][0x0]['type'])))};break;case'listReversed':_0x20edb9=_0x3b9956[_0x1aaf('0x18')][0x0][_0x1aaf('0x34')]?_0x1aaf('0x32'):_0x1aaf('0xf'),_0x500aee={'type':_0x1aaf('0x2'),'content':_0x1cef1a(_0x50662a,_0x20edb9)};break;case'listStart':_0x20edb9=_0x1aaf('0x33'),_0x500aee={'type':_0x1aaf('0x2'),'content':_0x1cef1a(_0x50662a,_0x20edb9,_0x3b9956[_0x1aaf('0x18')][0x0][_0x1aaf('0x16')])};}return _0x500aee;}['_getSuggestionBlocksForListStyle'](){const _0x2dbd97=this[_0x1aaf('0x8')][_0x1aaf('0xc')]['get'](_0x1aaf('0x27'));let _0x284c51=Array[_0x1aaf('0x24')](this['editor']['model'][_0x1aaf('0xb')][_0x1aaf('0x10')][_0x1aaf('0x11')]());return _0x284c51[_0x1aaf('0x20')](..._0x2dbd97[_0x1aaf('0x23')](_0x284c51)),_0x284c51=[...new Set(_0x284c51)],_0x284c51;}[_0x1aaf('0x0')](_0xf67d1b){const _0x23562f=this[_0x1aaf('0x8')][_0x1aaf('0xc')][_0x1aaf('0x1d')](_0x1aaf('0x27'));let _0x5af139=Array[_0x1aaf('0x24')](this['editor'][_0x1aaf('0x1a')][_0x1aaf('0xb')][_0x1aaf('0x10')][_0x1aaf('0x11')]())[_0x1aaf('0x1e')](_0xf67d1b);if(!_0x5af139[_0x1aaf('0x4')])return null;_0x5af139=_0x23562f[_0x1aaf('0x23')](_0x5af139);const _0x502f8b=[];for(const _0x1a2ea9 of _0x5af139)_0x23562f[_0x1aaf('0x2c')](_0x1a2ea9)&&_0x502f8b['push'](_0x1a2ea9);return _0x502f8b;}[_0x1aaf('0x2e')](_0x513a89){return'ELEMENT_'+this['editor'][_0x1aaf('0xc')][_0x1aaf('0x1d')]('DocumentListPropertiesUtils')['getListTypeFromListStyleType'](_0x513a89)[_0x1aaf('0x2f')]()+_0x1aaf('0x3')+_0x513a89[_0x1aaf('0x2f')]()[_0x1aaf('0x31')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e9f=['enableCommand','change','removeMarker:suggestion:insertion','downcastDispatcher','enter','unbindElementFromMarkerName','commands','writer','markerName','editing','editor','createRange','afterExecute','high','requires','remove','enterBlock','model','data','getFirstRange','fire','addMarker:suggestion:insertion','document','end','parent','bind','markInsertion','split','markerNameToElements','showSuggestionHighlights','mapper','ck-suggestion-marker-split','getFirstPosition','detach'];(function(_0x2154cd,_0x3e9fa8){const _0x5a43fb=function(_0x409c6d){while(--_0x409c6d){_0x2154cd['push'](_0x2154cd['shift']());}};_0x5a43fb(++_0x3e9fa8);}(_0x3e9f,0xf0));const _0x5a43=function(_0x2154cd,_0x3e9fa8){_0x2154cd=_0x2154cd-0x0;let _0x5a43fb=_0x3e9f[_0x2154cd];return _0x5a43fb;};import{Plugin as _0x5f466e}from'ckeditor5/src/core';import{Enter as _0x4457c2}from'ckeditor5/src/enter';import{LiveRange as _0x51c91a}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x51ca01}from'./utils';export default class W extends _0x5f466e{static get[_0x5a43('0xc')](){return[_0x4457c2];}['init'](){const _0x515a33=this[_0x5a43('0x8')],_0x2cc553=_0x515a33['plugins']['get']('TrackChangesEditing'),_0x2f6f44=_0x515a33[_0x5a43('0x4')]['get'](_0x5a43('0x2'));_0x2cc553[_0x5a43('0x20')](_0x5a43('0x2'),()=>{_0x515a33[_0x5a43('0xf')][_0x5a43('0x21')](_0x1d7340=>{const _0x340433=_0x515a33[_0x5a43('0xf')][_0x5a43('0x14')]['selection'],_0x1ddb3e=_0x340433[_0x5a43('0x1e')](),_0x144d1a=_0x51c91a['fromRange'](_0x340433[_0x5a43('0x11')]());if(_0x2f6f44[_0x5a43('0xe')](_0x1d7340)){const _0x1a8299=_0x515a33[_0x5a43('0xf')]['createPositionAt'](_0x1ddb3e[_0x5a43('0x16')]['nextSibling'],0x0),_0x362d8b=_0x1d7340['createRange'](_0x1ddb3e,_0x1a8299);_0x2cc553[_0x5a43('0x18')](_0x362d8b);}else _0x1d7340['setSelection'](_0x1d7340[_0x5a43('0x9')](_0x144d1a[_0x5a43('0x15')]));_0x144d1a[_0x5a43('0x1f')](),_0x2f6f44[_0x5a43('0x12')](_0x5a43('0xa'),{'writer':_0x1d7340});});}),_0x515a33['editing']['downcastDispatcher']['on'](_0x5a43('0x13'),_0x51ca01(_0x515a33,_0x5a43('0x19')),{'priority':'high'}),_0x515a33[_0x5a43('0x7')][_0x5a43('0x1')]['on'](_0x5a43('0x0'),(_0x1cc3a6,_0x24ed85,_0x36cc3d)=>{const _0x24ead9=_0x36cc3d[_0x5a43('0x1c')][_0x5a43('0x1a')](_0x24ed85[_0x5a43('0x6')]);if(_0x24ead9)for(const _0x21f468 of _0x24ead9)_0x21f468['hasClass'](_0x5a43('0x1d'))&&(_0x36cc3d['mapper'][_0x5a43('0x3')](_0x21f468,_0x24ed85[_0x5a43('0x6')]),_0x36cc3d[_0x5a43('0x5')][_0x5a43('0xd')](_0x21f468));},{'priority':_0x5a43('0xb')}),_0x515a33[_0x5a43('0x10')][_0x5a43('0x1')]['on'](_0x5a43('0x13'),(_0xdc888e,_0x2e2867,_0x3a488f)=>{_0x3a488f['options'][_0x5a43('0x1b')]&&_0x51ca01(_0x515a33,_0x5a43('0x19'),{'showActiveMarker':!0x1})[_0x5a43('0x17')](this)(_0xdc888e,_0x2e2867,_0x3a488f);},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb3ac=['enableCommand','createRange','afterInit','model','replace','replaceAll','get','TrackChangesEditing','filter','_isInDeletionRange','getIntersection','getMarkersGroup','markers','handleFindCommand','item','findNext','has','createPositionAt','bind','find','editor','FindAndReplaceEditing','plugins','findPrevious','string'];(function(_0x48d39c,_0xb3ac57){const _0x184c12=function(_0xd34661){while(--_0xd34661){_0x48d39c['push'](_0x48d39c['shift']());}};_0x184c12(++_0xb3ac57);}(_0xb3ac,0x196));const _0x184c=function(_0x48d39c,_0xb3ac57){_0x48d39c=_0x48d39c-0x0;let _0x184c12=_0xb3ac[_0x48d39c];return _0x184c12;};import{Plugin as _0x6d056d}from'ckeditor5/src/core';export default class J extends _0x6d056d{[_0x184c('0x15')](){if(!this['editor'][_0x184c('0x10')][_0x184c('0xa')](_0x184c('0xf')))return;const _0x19891f=this[_0x184c('0xe')][_0x184c('0x10')][_0x184c('0x0')](_0x184c('0x1'));_0x19891f[_0x184c('0x13')](_0x184c('0xd'),this[_0x184c('0x7')][_0x184c('0xc')](this)),_0x19891f[_0x184c('0x13')](_0x184c('0x9')),_0x19891f['enableCommand'](_0x184c('0x11')),_0x19891f[_0x184c('0x13')](_0x184c('0x17')),_0x19891f[_0x184c('0x13')](_0x184c('0x18'));}[_0x184c('0x7')](_0x229911,_0xfb9880,_0x41b16b={}){const _0x12d86d=this[_0x184c('0xe')][_0x184c('0x10')][_0x184c('0x0')]('FindAndReplaceUtils');return _0x229911(_0xedc1fc=>(_0x184c('0x12')==typeof _0xfb9880?_0x12d86d['findByTextCallback'](_0xfb9880,_0x41b16b):_0xfb9880)(_0xedc1fc)[_0x184c('0x2')](_0x4e0c86=>!0x1===this['_isInDeletionRange'](_0x4e0c86,_0xedc1fc[_0x184c('0x8')])),_0x41b16b);}[_0x184c('0x3')](_0x339711,_0x447d3a){const _0x1c7fc9=this[_0x184c('0xe')]['model'][_0x184c('0x14')](this[_0x184c('0xe')][_0x184c('0x16')][_0x184c('0xb')](_0x447d3a,_0x339711['start']),this[_0x184c('0xe')][_0x184c('0x16')][_0x184c('0xb')](_0x447d3a,_0x339711['end']));for(const _0x3f65cb of this[_0x184c('0xe')][_0x184c('0x16')][_0x184c('0x6')][_0x184c('0x5')]('suggestion:deletion'))if(null!==_0x1c7fc9[_0x184c('0x4')](_0x3f65cb['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 _0xc9cd=['*Set\x20font\x20color:*\x20%0','FontFamilyEditing','format','commandName','fontFamily','fontColor','toLowerCase','trim','fontBackgroundColor.colors','*Reset\x20font\x20color*','has','value','plugins','FontColorEditing','formatInline','label','FontSize','_registerLegacyDescription','*Reset\x20font\x20size*','find','fontColor.colors','*Set\x20font\x20background\x20color:*\x20%0','_descriptionFactory','type','editor','fontSize','fontBackgroundColor','*Reset\x20font\x20background\x20color*','model','FontSizeEditing','normalizeSizeOptions','get','fontSize.options','afterInit','*Set\x20font\x20family:*\x20%0','commandParams','locale','TrackChangesEditing','registerAttributeLabel','title','FontBackgroundColorEditing','config','_enableDefaultAttributesIntegration'];(function(_0x28d179,_0xc9cdae){const _0x16a3ec=function(_0x5b64b3){while(--_0x5b64b3){_0x28d179['push'](_0x28d179['shift']());}};_0x16a3ec(++_0xc9cdae);}(_0xc9cd,0x10f));const _0x16a3=function(_0x28d179,_0xc9cdae){_0x28d179=_0x28d179-0x0;let _0x16a3ec=_0xc9cd[_0x28d179];return _0x16a3ec;};import{Plugin as _0x11d769}from'ckeditor5/src/core';import{normalizeColorOptions as _0x734e22}from'ckeditor5/src/ui';import{getTranslation as _0x30b75f}from'../utils/common-translations';const ro=[{'pluginName':_0x16a3('0x10'),'commandName':_0x16a3('0xc')},{'pluginName':_0x16a3('0x1f'),'commandName':_0x16a3('0x22')},{'pluginName':_0x16a3('0x0'),'commandName':_0x16a3('0x23')},{'pluginName':_0x16a3('0x1b'),'commandName':'fontBackgroundColor'}];export default class K extends _0x11d769{[_0x16a3('0x14')](){const _0x2f6cb9=this[_0x16a3('0xb')][_0x16a3('0x17')],_0x14cb99=this[_0x16a3('0xb')]['plugins'][_0x16a3('0x12')](_0x16a3('0x18'));for(const {pluginName:_0x1af799,commandName:_0x4775b0}of ro)this['editor'][_0x16a3('0x2a')][_0x16a3('0x28')](_0x1af799)&&_0x14cb99[_0x16a3('0x1d')](_0x4775b0,[_0x4775b0]);_0x2f6cb9['t'],(_0x14cb99['_descriptionFactory'][_0x16a3('0x19')](_0x16a3('0xc'),_0x30b75f(_0x2f6cb9,'FORMAT_FONT_SIZE')),_0x14cb99[_0x16a3('0x9')][_0x16a3('0x19')]('fontFamily',_0x30b75f(_0x2f6cb9,'FORMAT_FONT_FAMILY')),_0x14cb99[_0x16a3('0x9')][_0x16a3('0x19')](_0x16a3('0x23'),_0x30b75f(_0x2f6cb9,'FORMAT_FONT_COLOR')),_0x14cb99[_0x16a3('0x9')]['registerAttributeLabel'](_0x16a3('0xd'),_0x30b75f(_0x2f6cb9,'FORMAT_FONT_BACKGROUND')),this[_0x16a3('0x4')]());}[_0x16a3('0x4')](){const _0x4e5dae=this[_0x16a3('0xb')],_0x5d1043=_0x4e5dae[_0x16a3('0x17')];_0x4e5dae[_0x16a3('0x2a')][_0x16a3('0x12')](_0x16a3('0x18'))[_0x16a3('0x9')]['registerDescriptionCallback'](_0x5ae560=>{const _0x115c85=_0x5d1043['t'];if(_0x16a3('0x1')!=_0x5ae560[_0x16a3('0xa')])return;const {data:_0x50d793}=_0x5ae560;if(null!=_0x50d793){if(_0x16a3('0xc')==_0x50d793['commandName']){const _0x316b0a=_0x50d793[_0x16a3('0x16')][0x0][_0x16a3('0x29')];if(_0x316b0a){const _0x40628b=_0x115c85(this[_0x16a3('0xb')][_0x16a3('0x2a')][_0x16a3('0x12')](_0x16a3('0x3'))[_0x16a3('0x11')](this['editor'][_0x16a3('0x1c')]['get'](_0x16a3('0x13')))[_0x16a3('0x6')](_0x18cb79=>_0x18cb79[_0x16a3('0xf')]==_0x316b0a)[_0x16a3('0x1a')])[_0x16a3('0x24')]();return{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,'*Set\x20font\x20size:*\x20%0',_0x40628b)};}return{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0x5'))};}if(_0x16a3('0x22')==_0x50d793[_0x16a3('0x21')]){const _0x5584ad=_0x50d793[_0x16a3('0x16')][0x0][_0x16a3('0x29')];return _0x5584ad?{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0x15'),_0x5584ad)}:{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,'*Reset\x20font\x20family*')};}if('fontColor'==_0x50d793[_0x16a3('0x21')]){const _0x4879d2=_0x50d793[_0x16a3('0x16')][0x0][_0x16a3('0x29')];if(_0x4879d2){const _0x42aa58=_0x734e22(this[_0x16a3('0xb')][_0x16a3('0x1c')][_0x16a3('0x12')](_0x16a3('0x7')))[_0x16a3('0x6')](_0x53c39d=>_0x53c39d[_0x16a3('0xf')]==_0x4879d2);let _0x478ac3=_0x4879d2,_0x164bfe='';return _0x42aa58&&(_0x478ac3=_0x42aa58[_0x16a3('0x2')],_0x164bfe=_0x115c85(_0x478ac3)[_0x16a3('0x24')]()),{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0x1e'),_0x164bfe)['trim'](),'color':{'value':_0x4879d2,'title':_0x164bfe||_0x478ac3}};}return{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0x27'))};}if(_0x16a3('0xd')==_0x50d793[_0x16a3('0x21')]){const _0x42c67b=_0x50d793['commandParams'][0x0]['value'];if(_0x42c67b){const _0x2789ed=_0x734e22(this['editor'][_0x16a3('0x1c')][_0x16a3('0x12')](_0x16a3('0x26')))[_0x16a3('0x6')](_0x230ca5=>_0x230ca5[_0x16a3('0xf')]==_0x42c67b);let _0x2c957d=_0x42c67b,_0x2d2de7='';return _0x2789ed&&(_0x2c957d=_0x2789ed[_0x16a3('0x2')],_0x2d2de7=_0x115c85(_0x2c957d)['toLowerCase']()),{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0x8'),_0x2d2de7)[_0x16a3('0x25')](),'color':{'value':_0x42c67b,'title':_0x2d2de7||_0x2c957d}};}return{'type':_0x16a3('0x20'),'content':_0x30b75f(_0x5d1043,_0x16a3('0xe'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e96=['commandName','commandParams','formatBlock','fontBackgroundColor','entries','pasteFormat','push','model','locale','type','split','fontColor','*Remove\x20all\x20formatting*','normalizeSizeOptions','editor','config','_enableDefaultAttributesIntegration','length','_descriptionFactory','fontColor.colors','find','*Set\x20format\x20to:*\x20%0','FontSize','enableCommand','label','fontSize.options','_registerLegacyDescription','registerDescriptionCallback','get','plugins','copyFormat','boolean','TrackChangesEditing','toLowerCase','formatInline','commands','afterInit'];(function(_0x4a037e,_0x1e9684){const _0x23b039=function(_0x2db0fd){while(--_0x2db0fd){_0x4a037e['push'](_0x4a037e['shift']());}};_0x23b039(++_0x1e9684);}(_0x1e96,0x19b));const _0x23b0=function(_0x4a037e,_0x1e9684){_0x4a037e=_0x4a037e-0x0;let _0x23b039=_0x1e96[_0x4a037e];return _0x23b039;};import{Plugin as _0x46f415}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5de222}from'ckeditor5/src/ui';import{getTranslation as _0x47a382}from'../utils/common-translations';export default class Q extends _0x46f415{[_0x23b0('0x20')](){const _0x15b550=this[_0x23b0('0xa')],_0x4ce6e9=_0x15b550[_0x23b0('0x19')][_0x23b0('0x18')]('TrackChangesEditing'),_0x45427f=_0x15b550[_0x23b0('0x1f')][_0x23b0('0x18')]('copyFormat'),_0x1170fc=_0x15b550[_0x23b0('0x1f')][_0x23b0('0x18')](_0x23b0('0x1'));_0x45427f&&_0x1170fc&&(_0x4ce6e9[_0x23b0('0xc')](_0x23b0('0x1')),_0x4ce6e9[_0x23b0('0x13')](_0x23b0('0x1a')),this[_0x23b0('0x16')]());}[_0x23b0('0x16')](){const _0x674561=this[_0x23b0('0xa')],_0x150c7e=_0x674561[_0x23b0('0x4')];_0x674561[_0x23b0('0x19')][_0x23b0('0x18')](_0x23b0('0x1c'))[_0x23b0('0xe')][_0x23b0('0x17')](_0x2d4b00=>{if(_0x23b0('0x23')!=_0x2d4b00['type']&&_0x23b0('0x1e')!=_0x2d4b00[_0x23b0('0x5')])return;const {data:_0x3be630}=_0x2d4b00;if(_0x3be630&&'pasteFormat'===_0x3be630[_0x23b0('0x21')]){const _0xe23561=[],_0x20ca21=_0x3be630[_0x23b0('0x22')][0x0];for(const [_0x30ddea,_0x224ddc]of Object[_0x23b0('0x0')](_0x20ca21))_0xe23561[_0x23b0('0x2')](ao(_0x674561,_0x30ddea,_0x224ddc));return _0xe23561[_0x23b0('0xd')]?{'type':'format','content':_0x47a382(_0x150c7e,_0x23b0('0x11'),_0xe23561['join'](',\x20'))}:{'type':'format','content':_0x47a382(_0x150c7e,_0x23b0('0x8'))};}});}}function ao(_0x23489b,_0x513b33,_0x1b180c){const _0x1da738=_0x23489b[_0x23b0('0x4')]['t'],_0x172f4d=_0x513b33[_0x23b0('0x6')](/(?=[A-Z])/)['join']('\x20'),_0x39955c=_0x1da738(_0x172f4d['charAt'](0x0)['toUpperCase']()+_0x172f4d['slice'](0x1))[_0x23b0('0x1d')]();if(_0x23b0('0x1b')==typeof _0x1b180c)return _0x39955c;if(_0x23b0('0x7')===_0x513b33||_0x23b0('0x24')===_0x513b33){const _0x5d631c=_0x5de222(_0x23489b[_0x23b0('0xb')]['get'](_0x23b0('0xf')))[_0x23b0('0x10')](_0x5ccbb8=>_0x5ccbb8['model']==_0x1b180c);return _0x39955c+'\x20('+(_0x5d631c?_0x1da738(_0x5d631c[_0x23b0('0x14')])[_0x23b0('0x1d')]():_0x1b180c)+')';}if('fontSize'===_0x513b33&&isNaN(parseFloat(_0x1b180c))){const _0x1f933b=_0x23489b[_0x23b0('0x19')]['get'](_0x23b0('0x12'))[_0x23b0('0x9')](_0x23489b[_0x23b0('0xb')][_0x23b0('0x18')](_0x23b0('0x15')))[_0x23b0('0x10')](_0x43aee3=>_0x43aee3[_0x23b0('0x3')]==_0x1b180c);return _0x39955c+'\x20('+(_0x1f933b?_0x1da738(_0x1f933b['title'])['toLowerCase']():_0x1b180c)+')';}return _0x39955c+'\x20('+_0x1b180c+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44be=['locale','TrackChangesEditing','heading','get','view','ELEMENT_HEADING_CUSTOM','registerDescriptionCallback','HeadingEditing','title','registerElementLabel','ELEMENT_HEADING','*Change\x20to:*\x20%0','format','_descriptionFactory','heading.options','_enableDefaultAttributesIntegration','model','match','_getHeadingLevel','name','_headingOptions','afterInit','find','editor','_registerLegacyDescription','formatBlock','plugins'];(function(_0x1299af,_0x44be32){const _0x13210c=function(_0x29467b){while(--_0x29467b){_0x1299af['push'](_0x1299af['shift']());}};_0x13210c(++_0x44be32);}(_0x44be,0xb2));const _0x1321=function(_0x1299af,_0x44be32){_0x1299af=_0x1299af-0x0;let _0x13210c=_0x44be[_0x1299af];return _0x13210c;};import{Plugin as _0x2a3f48}from'ckeditor5/src/core';import{getTranslation as _0x4793c8}from'../utils/common-translations';export default class X extends _0x2a3f48{[_0x1321('0x5')](){const _0xf2ec1=this[_0x1321('0x7')];if(!_0xf2ec1[_0x1321('0xa')]['has'](_0x1321('0x12')))return;this[_0x1321('0x4')]=_0xf2ec1['config'][_0x1321('0xe')](_0x1321('0x19'));const _0x12babb=_0xf2ec1[_0x1321('0xb')],_0x3ba2ad=_0xf2ec1[_0x1321('0xa')][_0x1321('0xe')](_0x1321('0xc'));_0x3ba2ad[_0x1321('0x1a')](_0x1321('0xd'));for(const _0x25c16e of this['_headingOptions'])'paragraph'!=_0x25c16e[_0x1321('0x0')]&&_0x3ba2ad[_0x1321('0x18')][_0x1321('0x14')](_0x25c16e[_0x1321('0x0')],_0x233412=>{const _0x39b999=this['_getHeadingLevel'](_0x25c16e['model']);return null!==_0x39b999?_0x17c229(_0x233412,_0x39b999):_0x1b34b7(_0x233412,_0x25c16e[_0x1321('0x13')]);});function _0x17c229(_0x8f3714,_0x43b4f6){return _0x4793c8(_0x12babb,_0x1321('0x15'),[_0x8f3714,_0x43b4f6]);}function _0x1b34b7(_0x2d495a,_0x3217b4){return _0x4793c8(_0x12babb,_0x1321('0x10'),[_0x2d495a,_0x3217b4]);}this[_0x1321('0x8')]();}['_registerLegacyDescription'](){const _0x1e8aab=this[_0x1321('0x7')],_0x49d446=_0x1e8aab[_0x1321('0xb')];function _0x4284dd(_0x5499cd,_0x380d35){return _0x4793c8(_0x49d446,_0x1321('0x10'),[_0x5499cd,_0x380d35]);}_0x1e8aab[_0x1321('0xa')][_0x1321('0xe')](_0x1321('0xc'))[_0x1321('0x18')][_0x1321('0x11')](_0x40ca13=>{if(_0x1321('0x9')!=_0x40ca13['type'])return;const {data:_0x3e4100}=_0x40ca13;if(_0x3e4100&&_0x1321('0xd')==_0x3e4100['commandName']){const _0x26255d=_0x3e4100['commandParams'][0x0]['value'],_0x3e92c6=this['_getHeadingLevel'](_0x26255d);if(null!==_0x3e92c6)return{'type':_0x1321('0x17'),'content':_0x4793c8(_0x49d446,'*Change\x20to:*\x20%0',(_0x2835ae=0x1,_0x519775=_0x3e92c6,_0x4793c8(_0x49d446,'ELEMENT_HEADING',[_0x2835ae,_0x519775])))};const _0x309d02=this[_0x1321('0x4')][_0x1321('0x6')](_0x123b48=>_0x123b48[_0x1321('0x0')]===_0x26255d)['title'];return{'type':_0x1321('0x17'),'content':_0x4793c8(_0x49d446,_0x1321('0x16'),_0x4284dd(0x1,_0x309d02))};}var _0x2835ae,_0x519775;});}[_0x1321('0x2')](_0x3f46d3){var _0x41ed94,_0xc37e39;const _0x208b33=_0x3f46d3[_0x1321('0x1')](/^heading(\d+)/);if(_0x208b33)return _0x208b33[0x1];const _0x4f9936=null===(_0x41ed94=this[_0x1321('0x4')])||void 0x0===_0x41ed94?void 0x0:_0x41ed94[_0x1321('0x6')](_0x424267=>_0x424267[_0x1321('0x0')]==_0x3f46d3);if(_0x4f9936&&_0x4f9936[_0x1321('0xf')]){const _0xb638d2=_0x4f9936['view'],_0x224def=(null!==(_0xc37e39=_0xb638d2[_0x1321('0x3')])&&void 0x0!==_0xc37e39?_0xc37e39:_0xb638d2)[_0x1321('0x1')](/^h(\d+)/);if(_0x224def)return _0x224def[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36bb=['toLowerCase','commandName','editor','TrackChangesEditing','highlight.options','highlight','_enableDefaultAttributesIntegration','has','find','locale','type','_registerLegacyDescription','formatInline','model','get','*Set\x20highlight:*\x20%0','_descriptionFactory','commandParams','*Remove\x20highlight*','registerDescriptionCallback','format','FORMAT_HIGHLIGHT','plugins','registerAttributeLabel','title','afterInit'];(function(_0x29a45e,_0x36bba3){const _0x2323de=function(_0x1e14bc){while(--_0x1e14bc){_0x29a45e['push'](_0x29a45e['shift']());}};_0x2323de(++_0x36bba3);}(_0x36bb,0x113));const _0x2323=function(_0x29a45e,_0x36bba3){_0x29a45e=_0x29a45e-0x0;let _0x2323de=_0x36bb[_0x29a45e];return _0x2323de;};import{Plugin as _0x4d9a57}from'ckeditor5/src/core';import{getTranslation as _0x4263fb}from'../utils/common-translations';export default class Y extends _0x4d9a57{[_0x2323('0xa')](){const _0xe554d=this[_0x2323('0xd')];if(!_0xe554d[_0x2323('0x7')][_0x2323('0x12')]('HighlightEditing'))return;const _0x5d385f=_0xe554d[_0x2323('0x7')][_0x2323('0x19')](_0x2323('0xe')),_0x2837cb=_0xe554d['locale'];_0x5d385f[_0x2323('0x11')](_0x2323('0x10'),[_0x2323('0x10')]),_0x5d385f[_0x2323('0x1')][_0x2323('0x8')](_0x2323('0x10'),_0x4263fb(_0x2837cb,_0x2323('0x6'))),this['_registerLegacyDescription']();}[_0x2323('0x16')](){const _0x2820a1=this[_0x2323('0xd')],_0x458fc9=_0x2820a1[_0x2323('0x14')];_0x2820a1[_0x2323('0x7')][_0x2323('0x19')](_0x2323('0xe'))[_0x2323('0x1')][_0x2323('0x4')](_0x498519=>{if(_0x2323('0x17')!=_0x498519[_0x2323('0x15')])return;const {data:_0x30c7fd}=_0x498519;if(_0x30c7fd&&_0x2323('0x10')==_0x30c7fd[_0x2323('0xc')]){const _0x1a8578=_0x458fc9['t'],_0x3293b0=_0x30c7fd[_0x2323('0x2')][0x0]['value'];if(_0x3293b0){const _0x1ddfb1=_0x2820a1['config'][_0x2323('0x19')](_0x2323('0xf'))[_0x2323('0x13')](_0x5a4397=>_0x5a4397[_0x2323('0x18')]==_0x3293b0),_0x4a69c1=_0x1a8578(_0x1ddfb1[_0x2323('0x9')])[_0x2323('0xb')]();return{'type':'format','content':_0x4263fb(_0x458fc9,_0x2323('0x0'),_0x4a69c1),'color':{'value':_0x1ddfb1['color'],'title':_0x1ddfb1[_0x2323('0x9')]}};}return{'type':_0x2323('0x5'),'content':_0x4263fb(_0x458fc9,_0x2323('0x3'),_0x4263fb(_0x458fc9,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x599d=['createPositionAt','locale','ELEMENT_HORIZONTAL_LINE','showSuggestionHighlights','for','_descriptionFactory','plugins','editor','enableCommand','conversion','createContainerElement','high','get','createEmptyElement','HorizontalLineEditing','afterInit','addClass','elementToStructure','TrackChangesEditing','dataDowncast'];(function(_0x59b4c0,_0x599db3){const _0x36b251=function(_0x178212){while(--_0x178212){_0x59b4c0['push'](_0x59b4c0['shift']());}};_0x36b251(++_0x599db3);}(_0x599d,0x1dd));const _0x36b2=function(_0x59b4c0,_0x599db3){_0x59b4c0=_0x59b4c0-0x0;let _0x36b251=_0x599d[_0x59b4c0];return _0x36b251;};import{Plugin as _0x198400}from'ckeditor5/src/core';import{getTranslation as _0x539dd2}from'../utils/common-translations';export default class Z extends _0x198400{[_0x36b2('0x12')](){const _0x455970=this[_0x36b2('0xa')];if(!_0x455970[_0x36b2('0x9')]['has'](_0x36b2('0x11')))return;_0x455970[_0x36b2('0x9')][_0x36b2('0xf')](_0x36b2('0x1'))[_0x36b2('0xb')]('horizontalLine');const _0x1b2eff=_0x455970[_0x36b2('0x9')]['get']('TrackChangesEditing'),_0x28b646=_0x455970[_0x36b2('0x4')];_0x1b2eff[_0x36b2('0x8')]['registerElementLabel']('horizontalLine',_0x3f8948=>_0x539dd2(_0x28b646,_0x36b2('0x5'),_0x3f8948)),_0x455970[_0x36b2('0xc')][_0x36b2('0x7')](_0x36b2('0x2'))[_0x36b2('0x0')]({'model':'horizontalLine','view':(_0x22c26f,{writer:_0x17135d,options:_0x2efeb6})=>{if(!_0x2efeb6[_0x36b2('0x6')])return null;const _0x32a380=_0x17135d[_0x36b2('0xd')]('div'),_0x211957=_0x17135d[_0x36b2('0x10')]('hr');return _0x17135d[_0x36b2('0x13')]('ck-horizontal-line',_0x32a380),_0x17135d['insert'](_0x17135d[_0x36b2('0x3')](_0x32a380,0x0),_0x211957),_0x32a380;},'converterPriority':_0x36b2('0xe')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dee=['format','plugins','formatBlock','type','TrackChangesEditing','registerElementLabel','_descriptionFactory','locale','has','attribute','value','get','registerDescriptionCallback','htmlEmbed','getFirstRange','key','ELEMENT_HTML_EMBED','afterInit','commandName','editor','_registerLegacyDescription'];(function(_0x19977a,_0x5dee0d){const _0x461fdd=function(_0xa0a5c9){while(--_0xa0a5c9){_0x19977a['push'](_0x19977a['shift']());}};_0x461fdd(++_0x5dee0d);}(_0x5dee,0xcf));const _0x461f=function(_0x19977a,_0x5dee0d){_0x19977a=_0x19977a-0x0;let _0x461fdd=_0x5dee[_0x19977a];return _0x461fdd;};import{Plugin as _0x11cb8a}from'ckeditor5/src/core';import{getTranslation as _0x1bf840}from'../utils/common-translations';export default class tt extends _0x11cb8a{[_0x461f('0x14')](){const _0x181f0=this[_0x461f('0x1')];if(!_0x181f0[_0x461f('0x4')][_0x461f('0xb')]('HtmlEmbed'))return;const _0x4bbd81=_0x181f0[_0x461f('0x4')][_0x461f('0xe')]('TrackChangesEditing'),_0x2e82b9=_0x181f0[_0x461f('0xa')];_0x4bbd81[_0x461f('0x9')][_0x461f('0x8')]('rawHtml',_0x55cc25=>_0x1bf840(_0x2e82b9,'ELEMENT_HTML_EMBED',_0x55cc25)),_0x4bbd81['_enableDefaultAttributesIntegration'](_0x461f('0x10'),[],[_0x461f('0xd')]),_0x4bbd81[_0x461f('0x9')][_0x461f('0xf')](_0x41c0fd=>{if(_0x461f('0xc')!=_0x41c0fd['type'])return;const {data:_0x523de9}=_0x41c0fd;if(_0x523de9&&_0x461f('0xd')==_0x523de9[_0x461f('0x12')]&&_0x41c0fd[_0x461f('0x11')]()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15a1d7=_0x1bf840(_0x2e82b9,_0x461f('0x13'));return{'type':_0x461f('0x3'),'content':_0x1bf840(_0x2e82b9,'*Change\x20%0\x20content*',_0x15a1d7)};}}),this[_0x461f('0x2')]();}['_registerLegacyDescription'](){const _0x370121=this[_0x461f('0x1')],_0x32b9d4=_0x370121[_0x461f('0xa')];_0x370121[_0x461f('0x4')]['get'](_0x461f('0x7'))[_0x461f('0x9')][_0x461f('0xf')](_0x2c2cf1=>{if(_0x461f('0x5')!=_0x2c2cf1[_0x461f('0x6')])return;const {data:_0x2723f6}=_0x2c2cf1;if(_0x2723f6&&_0x461f('0x10')==_0x2723f6[_0x461f('0x0')]){const _0x50ebe1=_0x1bf840(_0x32b9d4,_0x461f('0x13'));return{'type':'format','content':_0x1bf840(_0x32b9d4,'*Change\x20%0\x20content*',_0x50ebe1)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x14ca=['findIndex','accept','forward','editor','createRangeOn','schema','removeObject','*Set\x20image\x20text\x20alternative:*\x20%0','format','_suggestionFactory','ELEMENT_IMAGE','ImageResize','imageTextAlternative','getCaptionFromImageModelElement','uploadImage','discard','registerDescriptionCallback','nodeBefore','start','ImageUploadEditing','get','attribute','ImageInlineEditing','key','ELEMENT_CAPTION','deletion','getNearestSelectionRange','imageStylePreApply','afterInit','imageInline','isOwn','registerCustomCallback','change','toPrevious','createRange','previous','FORMAT_IMAGE_SIZE','registerAttributeLabel','toNext','markBlockFormat','Block\x20image\x20to\x20inline\x20image','forceDefaultExecution','commandName','imageTypeBlock','caption','plugins','type','subType','join','isEqual','find','model','isBefore','ImageBlockEditing','length','commandParams','resizedWidth','isIntersecting','_registerLegacyDescription','convertBlockImageToInline','detach','isCollapsed','isBlockImage','_enableDefaultAttributesIntegration','imageTypeInline','alt','*Remove\x20image\x20text\x20alternative*','width','imageBlock','getFirstRange','resizeImage','_descriptionFactory','nodeAfter','end','registerElementLabel','formatBlock','filter','ImageCaptionUtils','has','backward','getClosestSelectedImageElement','selection','addObject','formatInline','document','enableCommand','element','chain','toggleImageCaption','ImageEditing','*Set\x20image\x20width:*\x20%0','getSuggestionCallback','markInsertion','ELEMENT_INLINE_IMAGE','fromPosition','convertInlineImageToBlock','insertion','imageCaption'];(function(_0x485cd1,_0x14ca29){const _0x494ea8=function(_0x2a7544){while(--_0x2a7544){_0x485cd1['push'](_0x485cd1['shift']());}};_0x494ea8(++_0x14ca29);}(_0x14ca,0x194));const _0x494e=function(_0x485cd1,_0x14ca29){_0x485cd1=_0x485cd1-0x0;let _0x494ea8=_0x14ca[_0x485cd1];return _0x494ea8;};import{Plugin as _0x534225}from'ckeditor5/src/core';import{LivePosition as _0x499a84}from'ckeditor5/src/engine';import{getTranslation as _0x8b8ba8}from'../utils/common-translations';export default class it extends _0x534225{[_0x494e('0x10')](){const _0x432ef6=this['editor'];if(!_0x432ef6[_0x494e('0x21')]['has'](_0x494e('0x4d')))return;const _0x13c73c=_0x432ef6['plugins'][_0x494e('0x8')]('TrackChangesEditing'),_0xbcbde8=_0x432ef6[_0x494e('0x21')]['get']('ImageUtils'),_0x475453=_0x432ef6['locale'];_0x13c73c['enableCommand']('insertImage'),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x38'),_0x3c1ce4=>_0x8b8ba8(_0x475453,_0x494e('0x60'),_0x3c1ce4)),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x11'),_0x4ff92e=>_0x8b8ba8(_0x475453,_0x494e('0x51'),_0x4ff92e)),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x20'),()=>_0x8b8ba8(_0x475453,_0x494e('0xc'))),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0x7'))&&_0x13c73c[_0x494e('0x49')](_0x494e('0x2')),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0x29'))&&_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0xa'))&&(_0x13c73c['enableCommand'](_0x494e('0x34'),(_0x1361c3,_0x4503cf)=>{const _0x58a4cb=_0xbcbde8['getClosestSelectedImageElement'](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')]['selection']);_0x432ef6['model'][_0x494e('0x14')](()=>{_0x13c73c['markBlockFormat'](_0x58a4cb,{'commandName':_0x494e('0x34'),'commandParams':[_0x4503cf]},[],_0x494e('0x2f'));});}),_0x13c73c[_0x494e('0x49')](_0x494e('0x1f'),(_0x3e28ea,_0x4b4d2e)=>{_0x432ef6[_0x494e('0x27')][_0x494e('0x14')](_0x152087=>{let _0x53461b=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')]['selection']),_0x4bc571=_0x152087['createRangeOn'](_0x53461b);const _0x3592ad=_0x499a84[_0x494e('0x52')](_0x4bc571[_0x494e('0x6')],_0x494e('0x15')),_0x40604e=_0x499a84[_0x494e('0x52')](_0x4bc571[_0x494e('0x3d')],_0x494e('0x1a'));_0x13c73c[_0x494e('0x1d')](()=>_0x3e28ea(_0x4b4d2e)),_0x53461b=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')]['document'][_0x494e('0x45')]),_0x4bc571=_0x152087[_0x494e('0x5a')](_0x53461b);const _0xb36929=_0x152087[_0x494e('0x16')](_0x3592ad,_0x40604e);_0x3592ad[_0x494e('0x30')](),_0x40604e[_0x494e('0x30')](),_0x13c73c[_0x494e('0x1b')](_0x53461b,{'commandName':_0x494e('0x34'),'commandParams':[_0x4b4d2e]},[],_0x494e('0x53')),_0xb36929[_0x494e('0x6')][_0x494e('0x28')](_0x4bc571[_0x494e('0x6')])&&_0x13c73c['markInsertion'](_0x152087[_0x494e('0x16')](_0xb36929[_0x494e('0x6')],_0x4bc571[_0x494e('0x6')]),'convertInlineImageToBlock'),_0x4bc571['end'][_0x494e('0x28')](_0xb36929['end'])&&_0x13c73c[_0x494e('0x50')](_0x152087[_0x494e('0x16')](_0x4bc571['end'],_0xb36929[_0x494e('0x3d')]),_0x494e('0x53'));});}),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x3f'),_0x494e('0x53'),_0x494e('0x24'),()=>!0x1),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')]('formatBlock',_0x494e('0x53'),_0x494e('0x57'),()=>!0x1),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')]('formatBlock',_0x494e('0x53'),_0x494e('0x3'),_0x13c73c[_0x494e('0x5f')][_0x494e('0x4f')](_0x494e('0x3f'),'','accept')),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')](_0x494e('0x54'),_0x494e('0x53'),_0x494e('0x24'),()=>!0x1),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x54'),'convertInlineImageToBlock',_0x494e('0x3'),([_0x4090e8])=>{const _0x34518b=_0x13c73c[_0x494e('0x5f')][_0x494e('0x4f')](_0x494e('0x54'),'','discard');let _0x45d6f7=_0x4090e8['start'],_0x322cd5=_0x4090e8['end'];const _0x301101=_0x432ef6[_0x494e('0x27')][_0x494e('0x5b')][_0x494e('0xe')](_0x45d6f7,_0x494e('0x43')),_0x4e5965=_0x432ef6[_0x494e('0x27')]['schema'][_0x494e('0xe')](_0x322cd5,_0x494e('0x58'));_0x301101[_0x494e('0x31')]&&(_0x45d6f7=_0x301101[_0x494e('0x6')]),_0x4e5965[_0x494e('0x31')]&&(_0x322cd5=_0x4e5965[_0x494e('0x3d')]),_0x34518b([_0x432ef6[_0x494e('0x27')][_0x494e('0x16')](_0x45d6f7,_0x322cd5)]);}),_0x13c73c['_suggestionFactory'][_0x494e('0x13')](_0x494e('0x3f'),_0x494e('0x53'),_0x494e('0x4b'),_0x41a6cf),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x54'),_0x494e('0x53'),_0x494e('0x4b'),_0x41a6cf)),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')]('ImageCaptionEditing')&&(_0x13c73c['enableCommand'](_0x494e('0x4c'),(_0x4e11d4,_0xe6b01f)=>{const _0x5528d7=_0x432ef6['plugins']['get'](_0x494e('0x41'));let _0x551db5=_0xbcbde8['getClosestSelectedImageElement'](_0x432ef6['model'][_0x494e('0x48')][_0x494e('0x45')]),_0x1abc4b=_0x5528d7[_0x494e('0x1')](_0x551db5);_0x432ef6[_0x494e('0x27')]['change'](()=>{if(_0x1abc4b)return void _0x13c73c['markDeletion'](_0x432ef6['model'][_0x494e('0x5a')](_0x1abc4b));const _0x585d1c=_0xbcbde8[_0x494e('0x32')](_0x551db5);_0x4e11d4(_0xe6b01f),_0x551db5=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')][_0x494e('0x45')]),_0x1abc4b=_0x5528d7[_0x494e('0x1')](_0x551db5),_0x13c73c[_0x494e('0x50')](_0x432ef6[_0x494e('0x27')][_0x494e('0x5a')](_0x1abc4b),_0x585d1c?null:_0x494e('0x55'));});}),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')](_0x494e('0x54'),_0x494e('0x55'),_0x494e('0x4b'),_0x41a6cf));const _0x1dc242=[{'type':_0x494e('0x3f'),'subType':_0x494e('0xf')},{'type':_0x494e('0x54'),'subType':_0x494e('0x55')},{'type':_0x494e('0x3f'),'subType':_0x494e('0x53')},{'type':_0x494e('0x54'),'subType':'convertInlineImageToBlock'}];function _0x2c9b9a(_0x3b1a33,_0x5c1caf){const _0x22be57=_0x1dc242[_0x494e('0x56')](({type:_0xa216c3,subType:_0x1b0d25})=>_0x3b1a33[_0x494e('0x22')]==_0xa216c3&&_0x3b1a33[_0x494e('0x23')]==_0x1b0d25),_0x20f06d=_0x1dc242[_0x494e('0x56')](({type:_0x442b68,subType:_0x1af483})=>_0x5c1caf[_0x494e('0x22')]==_0x442b68&&_0x5c1caf[_0x494e('0x23')]==_0x1af483);if(_0x22be57<0x0||_0x20f06d<0x0)return!0x1;const _0x2e1d19=_0x3b1a33[_0x494e('0x39')](),_0x1a9073=_0x5c1caf[_0x494e('0x39')]();if((0x0==_0x22be57||0x1==_0x22be57)&&0x2==_0x20f06d&&_0x2e1d19[_0x494e('0x2d')](_0x1a9073))return!0x0;if(0x2==_0x22be57&&0x3==_0x20f06d){const _0x28ba11=_0x13c73c['_findSuggestions'](_0x2e1d19,_0x494e('0x54'))[_0x494e('0x40')](({suggestion:_0x325f30,meta:_0xa0f25a})=>_0xa0f25a[_0x494e('0x12')]&&'convertInlineImageToBlock'==_0x325f30[_0x494e('0x23')]);if(_0x28ba11[_0x494e('0x2a')]>0x1&&_0x1a9073[_0x494e('0x3d')]['isEqual'](_0x2e1d19[_0x494e('0x6')]))return!0x0;if(0x1==_0x28ba11['length']&&(_0x2e1d19[_0x494e('0x6')][_0x494e('0x25')](_0x1a9073[_0x494e('0x3d')])||_0x2e1d19[_0x494e('0x3d')][_0x494e('0x25')](_0x1a9073[_0x494e('0x6')])))return!0x0;}if(0x3==_0x22be57&&0x3==_0x20f06d&&_0x2e1d19[_0x494e('0x6')][_0x494e('0x28')](_0x1a9073[_0x494e('0x6')])){const _0x2647c7=_0x2e1d19[_0x494e('0x3d')][_0x494e('0x3c')],_0x3cfc67=_0x1a9073[_0x494e('0x6')][_0x494e('0x5')];return _0xbcbde8[_0x494e('0x32')](_0x2647c7)&&_0x2647c7===_0x3cfc67;}return!0x1;}function _0x41a6cf(_0x38086a,_0x477075){return _0x2c9b9a(_0x38086a,_0x477075)?[_0x38086a,_0x477075]:_0x2c9b9a(_0x477075,_0x38086a)?[_0x477075,_0x38086a]:null;}_0x432ef6['plugins']['has'](_0x494e('0x61'))&&(_0x13c73c[_0x494e('0x33')](_0x494e('0x3a'),[],[_0x494e('0x2c')]),_0x13c73c[_0x494e('0x3b')][_0x494e('0x19')](_0x494e('0x2c'),_0x8b8ba8(_0x475453,_0x494e('0x18')))),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')]('ImageTextAlternativeEditing')&&_0x13c73c['_enableDefaultAttributesIntegration'](_0x494e('0x0'),[],[_0x494e('0x35')]),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0xab1ad4=>{if(!!_0x1dc242[_0x494e('0x26')](({type:_0x4c1ee4,subType:_0x3a7b65})=>_0xab1ad4[_0x494e('0x22')]==_0x4c1ee4&&_0xab1ad4['subType']==_0x3a7b65))return _0xab1ad4[_0x494e('0x17')]?{}:void 0x0;}),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x108bde=>{if(_0x494e('0x54')==_0x108bde['type']||_0x494e('0xd')==_0x108bde[_0x494e('0x22')]){const _0x280d81=_0x108bde['getContainedElement']();if(_0x280d81&&_0x280d81['is'](_0x494e('0x4a'),_0x494e('0x20')))return{'type':_0x494e('0x54')==_0x108bde[_0x494e('0x22')]?_0x494e('0x46'):_0x494e('0x5c'),'element':_0x280d81,'quantity':0x1};}}),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x25bb40=>'formatBlock'==_0x25bb40[_0x494e('0x22')]&&_0x494e('0x53')==_0x25bb40[_0x494e('0x23')]?{'type':_0x494e('0x5e'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x494e('0x3f')==_0x25bb40['type']&&'convertBlockImageToInline'==_0x25bb40['subType']?{'type':'format','content':_0x494e('0x1c')}:void 0x0),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x3fa685=>{if(_0x494e('0x9')!=_0x3fa685[_0x494e('0x22')])return;const {data:_0x14aa0f}=_0x3fa685;if(!_0x14aa0f||_0x494e('0x35')!=_0x14aa0f[_0x494e('0xb')])return;const _0x2e2220=_0x14aa0f['newValue'];return _0x2e2220?{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x475453,_0x494e('0x5d'),'\x22'+_0x2e2220+'\x22')}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x475453,_0x494e('0x36'))};}),this[_0x494e('0x2e')]();}[_0x494e('0x2e')](){const _0x467caa=this[_0x494e('0x59')],_0x459336=_0x467caa['locale'];_0x467caa['plugins'][_0x494e('0x8')]('TrackChangesEditing')[_0x494e('0x3b')]['registerDescriptionCallback'](_0x2ef196=>{if(_0x494e('0x3f')!=_0x2ef196['type']&&_0x494e('0x47')!=_0x2ef196['type'])return;const {data:_0x1ddd86}=_0x2ef196;if(_0x1ddd86){if(_0x494e('0x0')==_0x1ddd86[_0x494e('0x1e')]){const _0x16f568=_0x1ddd86['commandParams'][0x0]['newValue'];return _0x16f568?{'type':'format','content':_0x8b8ba8(_0x459336,_0x494e('0x5d'),'\x22'+_0x16f568+'\x22')}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,_0x494e('0x36'))};}if(_0x494e('0x3a')==_0x1ddd86[_0x494e('0x1e')]){const _0x163570=_0x1ddd86[_0x494e('0x2b')][0x0][_0x494e('0x37')];return _0x163570?{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,_0x494e('0x4e'),_0x163570)}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x363f=['toggleImageCaption','isEqual','alt','isBefore','locale','removeObject','convertInlineImageToBlock','discard','afterInit','registerElementLabel','ImageResize','markDeletion','Block\x20image\x20to\x20inline\x20image','markInsertion','commandName','commandParams','start','toPrevious','ImageUtils','plugins','newValue','_descriptionFactory','chain','*Reset\x20image\x20width*','getFirstRange','createRange','isCollapsed','Inline\x20image\x20to\x20block\x20image','fromPosition','getClosestSelectedImageElement','document','join','editor','nodeBefore','registerCustomCallback','resizeImage','isOwn','key','_enableDefaultAttributesIntegration','ImageCaptionUtils','format','insertion','caption','getNearestSelectionRange','_findSuggestions','isBlockImage','imageInline','imageStylePreApply','getContainedElement','formatInline','findIndex','formatBlock','end','convertBlockImageToInline','forceDefaultExecution','imageTextAlternative','imageBlock','ImageEditing','forward','change','selection','*Set\x20image\x20text\x20alternative:*\x20%0','model','ImageTextAlternativeEditing','registerDescriptionCallback','_registerLegacyDescription','ELEMENT_INLINE_IMAGE','length','get','imageTypeInline','getSuggestionCallback','ELEMENT_IMAGE','has','createRangeOn','ELEMENT_CAPTION','schema','deletion','imageTypeBlock','registerAttributeLabel','detach','accept','imageCaption','subType','*Remove\x20image\x20text\x20alternative*','ImageCaptionEditing','element','backward','type','enableCommand','FORMAT_IMAGE_SIZE','resizedWidth','TrackChangesEditing','nodeAfter','_suggestionFactory','ImageBlockEditing','markBlockFormat','width'];(function(_0x36ad5d,_0x363f10){const _0x598066=function(_0x283e0c){while(--_0x283e0c){_0x36ad5d['push'](_0x36ad5d['shift']());}};_0x598066(++_0x363f10);}(_0x363f,0x149));const _0x5980=function(_0x36ad5d,_0x363f10){_0x36ad5d=_0x36ad5d-0x0;let _0x598066=_0x363f[_0x36ad5d];return _0x598066;};import{Plugin as _0x46b64e}from'ckeditor5/src/core';import{LivePosition as _0x34204b}from'ckeditor5/src/engine';import{getTranslation as _0x37991f}from'../utils/common-translations';export default class it extends _0x46b64e{[_0x5980('0x43')](){const _0x266442=this[_0x5980('0x5b')];if(!_0x266442['plugins']['has'](_0x5980('0x13')))return;const _0x157606=_0x266442[_0x5980('0x4e')]['get'](_0x5980('0x35')),_0x2d8094=_0x266442['plugins'][_0x5980('0x1e')](_0x5980('0x4d')),_0x571571=_0x266442[_0x5980('0x3f')];_0x157606[_0x5980('0x32')]('insertImage'),_0x157606[_0x5980('0x50')][_0x5980('0x44')](_0x5980('0x12'),_0x521a00=>_0x37991f(_0x571571,_0x5980('0x21'),_0x521a00)),_0x157606[_0x5980('0x50')][_0x5980('0x44')](_0x5980('0x8'),_0x2fe365=>_0x37991f(_0x571571,_0x5980('0x1c'),_0x2fe365)),_0x157606[_0x5980('0x50')][_0x5980('0x44')]('caption',()=>_0x37991f(_0x571571,_0x5980('0x24'))),_0x266442[_0x5980('0x4e')][_0x5980('0x22')]('ImageUploadEditing')&&_0x157606[_0x5980('0x32')]('uploadImage'),_0x266442[_0x5980('0x4e')][_0x5980('0x22')](_0x5980('0x38'))&&_0x266442[_0x5980('0x4e')][_0x5980('0x22')]('ImageInlineEditing')&&(_0x157606[_0x5980('0x32')]('imageTypeInline',(_0x1739c6,_0x3606f5)=>{const _0x3cf8f0=_0x2d8094[_0x5980('0x58')](_0x266442['model'][_0x5980('0x59')][_0x5980('0x16')]);_0x266442[_0x5980('0x18')][_0x5980('0x15')](()=>{_0x157606[_0x5980('0x39')](_0x3cf8f0,{'commandName':_0x5980('0x1f'),'commandParams':[_0x3606f5]},[],_0x5980('0xf'));});}),_0x157606['enableCommand'](_0x5980('0x27'),(_0x1000bd,_0x281b57)=>{_0x266442[_0x5980('0x18')][_0x5980('0x15')](_0xbbb3cf=>{let _0x4177b1=_0x2d8094[_0x5980('0x58')](_0x266442['model'][_0x5980('0x59')][_0x5980('0x16')]),_0x27f43d=_0xbbb3cf[_0x5980('0x23')](_0x4177b1);const _0x1cd0eb=_0x34204b[_0x5980('0x57')](_0x27f43d['start'],_0x5980('0x4c')),_0x4508ab=_0x34204b['fromPosition'](_0x27f43d[_0x5980('0xe')],'toNext');_0x157606[_0x5980('0x10')](()=>_0x1000bd(_0x281b57)),_0x4177b1=_0x2d8094[_0x5980('0x58')](_0x266442[_0x5980('0x18')]['document'][_0x5980('0x16')]),_0x27f43d=_0xbbb3cf[_0x5980('0x23')](_0x4177b1);const _0x91a220=_0xbbb3cf[_0x5980('0x54')](_0x1cd0eb,_0x4508ab);_0x1cd0eb[_0x5980('0x29')](),_0x4508ab[_0x5980('0x29')](),_0x157606[_0x5980('0x39')](_0x4177b1,{'commandName':'imageTypeInline','commandParams':[_0x281b57]},[],_0x5980('0x41')),_0x91a220[_0x5980('0x4b')][_0x5980('0x3e')](_0x27f43d['start'])&&_0x157606[_0x5980('0x48')](_0xbbb3cf[_0x5980('0x54')](_0x91a220[_0x5980('0x4b')],_0x27f43d[_0x5980('0x4b')]),_0x5980('0x41')),_0x27f43d[_0x5980('0xe')]['isBefore'](_0x91a220[_0x5980('0xe')])&&_0x157606[_0x5980('0x48')](_0xbbb3cf[_0x5980('0x54')](_0x27f43d['end'],_0x91a220[_0x5980('0xe')]),_0x5980('0x41'));});}),_0x157606[_0x5980('0x37')]['registerCustomCallback'](_0x5980('0xd'),_0x5980('0x41'),'join',()=>!0x1),_0x157606[_0x5980('0x37')][_0x5980('0x5d')](_0x5980('0xd'),'convertInlineImageToBlock','accept',()=>!0x1),_0x157606[_0x5980('0x37')][_0x5980('0x5d')](_0x5980('0xd'),_0x5980('0x41'),_0x5980('0x42'),_0x157606[_0x5980('0x37')][_0x5980('0x20')](_0x5980('0xd'),'',_0x5980('0x2a'))),_0x157606[_0x5980('0x37')]['registerCustomCallback']('insertion',_0x5980('0x41'),_0x5980('0x5a'),()=>!0x1),_0x157606['_suggestionFactory']['registerCustomCallback'](_0x5980('0x3'),_0x5980('0x41'),_0x5980('0x42'),([_0x470916])=>{const _0x593bd3=_0x157606[_0x5980('0x37')][_0x5980('0x20')]('insertion','',_0x5980('0x42'));let _0x2c2924=_0x470916[_0x5980('0x4b')],_0x226623=_0x470916[_0x5980('0xe')];const _0x40433b=_0x266442[_0x5980('0x18')]['schema'][_0x5980('0x5')](_0x2c2924,_0x5980('0x30')),_0x5db1b3=_0x266442[_0x5980('0x18')][_0x5980('0x25')]['getNearestSelectionRange'](_0x226623,_0x5980('0x14'));_0x40433b[_0x5980('0x55')]&&(_0x2c2924=_0x40433b['start']),_0x5db1b3[_0x5980('0x55')]&&(_0x226623=_0x5db1b3[_0x5980('0xe')]),_0x593bd3([_0x266442[_0x5980('0x18')][_0x5980('0x54')](_0x2c2924,_0x226623)]);}),_0x157606['_suggestionFactory'][_0x5980('0x5d')]('formatBlock',_0x5980('0x41'),'chain',_0x5e4ba2),_0x157606[_0x5980('0x37')][_0x5980('0x5d')](_0x5980('0x3'),_0x5980('0x41'),'chain',_0x5e4ba2)),_0x266442[_0x5980('0x4e')][_0x5980('0x22')](_0x5980('0x2e'))&&(_0x157606['enableCommand'](_0x5980('0x3b'),(_0xef528e,_0x3fb798)=>{const _0x5d3299=_0x266442['plugins'][_0x5980('0x1e')](_0x5980('0x1'));let _0x153a11=_0x2d8094['getClosestSelectedImageElement'](_0x266442[_0x5980('0x18')][_0x5980('0x59')][_0x5980('0x16')]),_0xd4ee01=_0x5d3299['getCaptionFromImageModelElement'](_0x153a11);_0x266442[_0x5980('0x18')][_0x5980('0x15')](()=>{if(_0xd4ee01)return void _0x157606[_0x5980('0x46')](_0x266442[_0x5980('0x18')]['createRangeOn'](_0xd4ee01));const _0x258946=_0x2d8094[_0x5980('0x7')](_0x153a11);_0xef528e(_0x3fb798),_0x153a11=_0x2d8094[_0x5980('0x58')](_0x266442['model'][_0x5980('0x59')][_0x5980('0x16')]),_0xd4ee01=_0x5d3299['getCaptionFromImageModelElement'](_0x153a11),_0x157606[_0x5980('0x48')](_0x266442[_0x5980('0x18')][_0x5980('0x23')](_0xd4ee01),_0x258946?null:'imageCaption');});}),_0x157606[_0x5980('0x37')][_0x5980('0x5d')](_0x5980('0x3'),_0x5980('0x2b'),_0x5980('0x51'),_0x5e4ba2));const _0x2d4016=[{'type':_0x5980('0xd'),'subType':_0x5980('0x9')},{'type':_0x5980('0x3'),'subType':_0x5980('0x2b')},{'type':_0x5980('0xd'),'subType':_0x5980('0x41')},{'type':'insertion','subType':_0x5980('0x41')}];function _0x2e9b91(_0x3d28c2,_0x29ff0d){const _0x3ecc02=_0x2d4016[_0x5980('0xc')](({type:_0x3bdcb5,subType:_0x573074})=>_0x3d28c2['type']==_0x3bdcb5&&_0x3d28c2[_0x5980('0x2c')]==_0x573074),_0x320d76=_0x2d4016[_0x5980('0xc')](({type:_0x47fcb4,subType:_0x120c7f})=>_0x29ff0d[_0x5980('0x31')]==_0x47fcb4&&_0x29ff0d[_0x5980('0x2c')]==_0x120c7f);if(_0x3ecc02<0x0||_0x320d76<0x0)return!0x1;const _0x491b6d=_0x3d28c2[_0x5980('0x53')](),_0x151a51=_0x29ff0d[_0x5980('0x53')]();if((0x0==_0x3ecc02||0x1==_0x3ecc02)&&0x2==_0x320d76&&_0x491b6d['isIntersecting'](_0x151a51))return!0x0;if(0x2==_0x3ecc02&&0x3==_0x320d76){const _0x2c7be2=_0x157606[_0x5980('0x6')](_0x491b6d,_0x5980('0x3'))['filter'](({suggestion:_0x460900,meta:_0x161064})=>_0x161064[_0x5980('0x5f')]&&_0x5980('0x41')==_0x460900[_0x5980('0x2c')]);if(_0x2c7be2[_0x5980('0x1d')]>0x1&&_0x151a51[_0x5980('0xe')]['isEqual'](_0x491b6d[_0x5980('0x4b')]))return!0x0;if(0x1==_0x2c7be2[_0x5980('0x1d')]&&(_0x491b6d['start'][_0x5980('0x3c')](_0x151a51['end'])||_0x491b6d[_0x5980('0xe')][_0x5980('0x3c')](_0x151a51[_0x5980('0x4b')])))return!0x0;}if(0x3==_0x3ecc02&&0x3==_0x320d76&&_0x491b6d[_0x5980('0x4b')][_0x5980('0x3e')](_0x151a51['start'])){const _0x7aeda3=_0x491b6d[_0x5980('0xe')][_0x5980('0x36')],_0x167411=_0x151a51['start'][_0x5980('0x5c')];return _0x2d8094[_0x5980('0x7')](_0x7aeda3)&&_0x7aeda3===_0x167411;}return!0x1;}function _0x5e4ba2(_0x391768,_0x234b98){return _0x2e9b91(_0x391768,_0x234b98)?[_0x391768,_0x234b98]:_0x2e9b91(_0x234b98,_0x391768)?[_0x234b98,_0x391768]:null;}_0x266442[_0x5980('0x4e')][_0x5980('0x22')](_0x5980('0x45'))&&(_0x157606[_0x5980('0x0')](_0x5980('0x5e'),[],[_0x5980('0x34')]),_0x157606[_0x5980('0x50')][_0x5980('0x28')](_0x5980('0x34'),_0x37991f(_0x571571,_0x5980('0x33')))),_0x266442['plugins'][_0x5980('0x22')](_0x5980('0x19'))&&_0x157606[_0x5980('0x0')](_0x5980('0x11'),[],[_0x5980('0x3d')]),_0x157606[_0x5980('0x50')]['registerDescriptionCallback'](_0x180224=>{if(!!_0x2d4016['find'](({type:_0x4c184c,subType:_0xe02726})=>_0x180224[_0x5980('0x31')]==_0x4c184c&&_0x180224['subType']==_0xe02726))return _0x180224['previous']?{}:void 0x0;}),_0x157606['_descriptionFactory']['registerDescriptionCallback'](_0x27c99b=>{if(_0x5980('0x3')==_0x27c99b[_0x5980('0x31')]||_0x5980('0x26')==_0x27c99b[_0x5980('0x31')]){const _0x34d038=_0x27c99b[_0x5980('0xa')]();if(_0x34d038&&_0x34d038['is'](_0x5980('0x2f'),_0x5980('0x4')))return{'type':_0x5980('0x3')==_0x27c99b['type']?'addObject':_0x5980('0x40'),'element':_0x34d038,'quantity':0x1};}}),_0x157606['_descriptionFactory'][_0x5980('0x1a')](_0x555b46=>_0x5980('0xd')==_0x555b46[_0x5980('0x31')]&&_0x5980('0x41')==_0x555b46['subType']?{'type':_0x5980('0x2'),'content':_0x5980('0x56')}:'formatBlock'==_0x555b46[_0x5980('0x31')]&&_0x5980('0xf')==_0x555b46[_0x5980('0x2c')]?{'type':_0x5980('0x2'),'content':_0x5980('0x47')}:void 0x0),_0x157606[_0x5980('0x50')][_0x5980('0x1a')](_0x44be5b=>{if('attribute'!=_0x44be5b['type'])return;const {data:_0xd61741}=_0x44be5b;if(!_0xd61741||_0x5980('0x3d')!=_0xd61741[_0x5980('0x60')])return;const _0x4a6015=_0xd61741[_0x5980('0x4f')];return _0x4a6015?{'type':_0x5980('0x2'),'content':_0x37991f(_0x571571,_0x5980('0x17'),'\x22'+_0x4a6015+'\x22')}:{'type':'format','content':_0x37991f(_0x571571,_0x5980('0x2d'))};}),this[_0x5980('0x1b')]();}['_registerLegacyDescription'](){const _0x3c1e65=this['editor'],_0x3fa253=_0x3c1e65[_0x5980('0x3f')];_0x3c1e65[_0x5980('0x4e')][_0x5980('0x1e')](_0x5980('0x35'))['_descriptionFactory'][_0x5980('0x1a')](_0x31f717=>{if(_0x5980('0xd')!=_0x31f717[_0x5980('0x31')]&&_0x5980('0xb')!=_0x31f717['type'])return;const {data:_0xadc6f1}=_0x31f717;if(_0xadc6f1){if(_0x5980('0x11')==_0xadc6f1['commandName']){const _0x451dfa=_0xadc6f1[_0x5980('0x4a')][0x0][_0x5980('0x4f')];return _0x451dfa?{'type':'format','content':_0x37991f(_0x3fa253,_0x5980('0x17'),'\x22'+_0x451dfa+'\x22')}:{'type':_0x5980('0x2'),'content':_0x37991f(_0x3fa253,'*Remove\x20image\x20text\x20alternative*')};}if(_0x5980('0x5e')==_0xadc6f1[_0x5980('0x49')]){const _0x47fad5=_0xadc6f1['commandParams'][0x0][_0x5980('0x3a')];return _0x47fad5?{'type':_0x5980('0x2'),'content':_0x37991f(_0x3fa253,'*Set\x20image\x20width:*\x20%0',_0x47fad5)}:{'type':'format','content':_0x37991f(_0x3fa253,_0x5980('0x52'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3916=['getSuggestionCallback','oldValue','newValue','has','registerDescriptionCallback','TrackChangesEditing','formatInline','attribute','discard','formatBlock','*Format:*\x20replace\x20image\x20URL','afterInit','format','type','key','editor','ImageEditing','_enableDefaultAttributesIntegration','_handleLegacySuggestions','get','commandName','*Replace\x20image\x20URL*','_suggestionFactory','replaceImageSource','accept','_descriptionFactory','registerCustomCallback','src','locale','plugins'];(function(_0x48e008,_0x39165e){const _0x5c18ef=function(_0x4c6248){while(--_0x4c6248){_0x48e008['push'](_0x48e008['shift']());}};_0x5c18ef(++_0x39165e);}(_0x3916,0x196));const _0x5c18=function(_0x48e008,_0x39165e){_0x48e008=_0x48e008-0x0;let _0x5c18ef=_0x3916[_0x48e008];return _0x5c18ef;};import{Plugin as _0x23bebd}from'ckeditor5/src/core';import{getTranslation as _0x36157e}from'../utils/common-translations';export default class et extends _0x23bebd{[_0x5c18('0x19')](){if(!this['editor']['plugins'][_0x5c18('0x11')](_0x5c18('0x0')))return;const _0x57ab43=this[_0x5c18('0x1d')][_0x5c18('0xc')],_0x3b14cf=this[_0x5c18('0x1d')][_0x5c18('0xd')]['get'](_0x5c18('0x13'));_0x3b14cf[_0x5c18('0x1')](_0x5c18('0x7'),[],[_0x5c18('0xb')]),_0x3b14cf[_0x5c18('0x9')][_0x5c18('0x12')](_0x2e2f22=>{if(_0x5c18('0x15')!=_0x2e2f22[_0x5c18('0x1b')])return;const {data:_0x28851a}=_0x2e2f22;return _0x28851a&&_0x5c18('0xb')==_0x28851a[_0x5c18('0x1c')]?_0x28851a[_0x5c18('0x10')]&&_0x28851a[_0x5c18('0xf')]?{'type':_0x5c18('0x1a'),'content':_0x36157e(_0x57ab43,_0x5c18('0x5'))}:{'type':_0x5c18('0x1a'),'content':''}:void 0x0;}),this[_0x5c18('0x2')]();}[_0x5c18('0x2')](){const _0x4d53cf=this[_0x5c18('0x1d')][_0x5c18('0xd')][_0x5c18('0x3')](_0x5c18('0x13'));_0x4d53cf[_0x5c18('0x6')][_0x5c18('0xa')]('formatBlock',_0x5c18('0x7'),'accept',_0x4d53cf['_suggestionFactory'][_0x5c18('0xe')](_0x5c18('0x17'),null,_0x5c18('0x16'))),_0x4d53cf['_suggestionFactory'][_0x5c18('0xa')]('formatBlock',_0x5c18('0x7'),_0x5c18('0x16'),_0x4d53cf[_0x5c18('0x6')][_0x5c18('0xe')]('formatBlock',null,_0x5c18('0x8'))),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56979d=this[_0x5c18('0x1d')],_0x4d0050=_0x56979d[_0x5c18('0xc')];_0x56979d['plugins'][_0x5c18('0x3')](_0x5c18('0x13'))[_0x5c18('0x9')][_0x5c18('0x12')](_0x549424=>{if(_0x5c18('0x17')!=_0x549424['type']&&_0x5c18('0x14')!=_0x549424[_0x5c18('0x1b')])return;const {data:_0x4dd875}=_0x549424;if(!_0x4dd875||_0x5c18('0x7')!=_0x4dd875[_0x5c18('0x4')])return;return{'type':_0x5c18('0x1a'),'content':_0x36157e(_0x4d0050,_0x5c18('0x18'))};});}}
|