@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231130.0 → 0.0.0-nightly-20231202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/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
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfb5e=['end','_descriptionFactory','outdentList','formatInline','markBlockFormat','value','enableCommand','ELEMENT_NUMBERED_LIST','TrackChangesEditing','listItem','commandName','numberedList','selection','listIndent','ELEMENT_LIST_ITEM','nextSibling','listType','element','name','push','indentList','get','length','paragraph','change','filter','commands','format','*Check\x20item*','replace','add','List','checkTodoList','bulletedList','slice','registerDescriptionCallback','bulleted','getSelectedBlocks','before','schema','TodoListEditing','blockName','createPositionAt','todoList','model','has','commandParams','findIndex','*Change\x20to:*\x20%0','ListEditing','type','execute','getAttribute','isObject','*Indent:*\x20%0','document','*Uncheck\x20item*','from','checkChild','formatBlock','plugins','previousSibling','registerElementLabel'];(function(_0x430d86,_0xfb5ee1){const _0x44718e=function(_0x15c8c3){while(--_0x15c8c3){_0x430d86['push'](_0x430d86['shift']());}};_0x44718e(++_0xfb5ee1);}(_0xfb5e,0x17d));const _0x4471=function(_0x430d86,_0xfb5ee1){_0x430d86=_0x430d86-0x0;let _0x44718e=_0xfb5e[_0x430d86];return _0x44718e;};import{Plugin as _0x1f4189}from'ckeditor5/src/core';import{getTranslation as _0x1530a0}from'../utils/common-translations';export default class ct extends _0x1f4189{['afterInit'](){const _0x958cf2=this['editor'],_0x12da4b=_0x958cf2['locale'];if(!_0x958cf2['plugins'][_0x4471('0x2a')](_0x4471('0x2e')))return;const _0x1833a6=_0x958cf2[_0x4471('0x39')]['get'](_0x4471('0x5')),_0x41956b=_0x958cf2[_0x4471('0x39')][_0x4471('0x2a')](_0x4471('0x25'));function _0xd38a60(_0x5c4e8b){return()=>{const _0x514109=_0x958cf2[_0x4471('0x29')][_0x4471('0x34')][_0x4471('0x9')],_0x27dc30=_0x958cf2[_0x4471('0x17')][_0x4471('0x12')](_0x5c4e8b);if(_0x27dc30[_0x4471('0x2')])return void _0x958cf2[_0x4471('0x30')](_0x4471('0x14'),{});const _0x8d1eda=_0x5c4e8b[_0x4471('0x1f')](0x0,-0x4),_0x327a30=function(_0x24c730,_0x1061d9,_0x5c03f0){let _0x3a12b9=Array[_0x4471('0x36')](_0x24c730)[_0x4471('0x16')](_0x2e018e=>function(_0x460ae8,_0x30a2c2){return _0x30a2c2[_0x4471('0x37')](_0x460ae8['parent'],_0x4471('0x6'))&&!_0x30a2c2[_0x4471('0x32')](_0x460ae8);}(_0x2e018e,_0x5c03f0));_0x3a12b9=_0x3a12b9['filter'](_0x210cb8=>!_0x210cb8['is'](_0x4471('0xe'),_0x4471('0x6'))||_0x210cb8[_0x4471('0x31')](_0x4471('0xd'))!=_0x1061d9);const _0x37d6b6=new Set();for(const _0x4e0935 of _0x3a12b9)_0x4e0935['is'](_0x4471('0xe'),_0x4471('0x6'))?_0x37d6b6[_0x4471('0x1b')](ne(_0x4e0935)):_0x37d6b6['add'](_0x4e0935);return Array['from'](_0x37d6b6);}(_0x514109[_0x4471('0x22')](),_0x8d1eda,_0x958cf2[_0x4471('0x29')][_0x4471('0x24')]);_0x958cf2[_0x4471('0x29')][_0x4471('0x15')](()=>{for(const _0x276a5b of _0x327a30)_0x1833a6[_0x4471('0x1')](_0x276a5b,{'commandName':_0x5c4e8b,'commandParams':[{'forceValue':!_0x27dc30[_0x4471('0x2')]}],'formatGroupId':_0x4471('0x26')},oe(_0x276a5b));});};}function _0xdf8522(_0x3953db){return()=>{const _0x55fd28=function(_0x5df6cc){let _0x213f53=Array[_0x4471('0x36')](_0x5df6cc);const _0x434548=_0x213f53[_0x4471('0x2c')](_0x4e4b4e=>_0x4471('0x6')!=_0x4e4b4e[_0x4471('0xf')]);return _0x434548>-0x1&&(_0x213f53=_0x213f53[_0x4471('0x1f')](0x0,_0x434548)),_0x213f53;}(_0x958cf2[_0x4471('0x29')]['document'][_0x4471('0x9')][_0x4471('0x22')]()),_0x20abcb=_0x958cf2[_0x4471('0x29')]['createRange'](_0x958cf2[_0x4471('0x29')][_0x4471('0x27')](_0x55fd28[0x0],_0x4471('0x23')),_0x958cf2['model']['createPositionAt'](_0x55fd28[_0x55fd28[_0x4471('0x13')]-0x1],_0x4471('0x3c')));_0x958cf2[_0x4471('0x29')][_0x4471('0x15')](()=>{_0x1833a6['markBlockFormat'](_0x20abcb,{'commandName':_0x3953db,'commandParams':[],'formatGroupId':_0x4471('0xa')},function(_0x5a45a9){const _0x374fc8=new Set();for(const _0x5919cd of _0x5a45a9){let _0x34abc8=_0x5919cd['nextSibling'];for(;_0x34abc8&&_0x34abc8['getAttribute'](_0x4471('0xa'))>_0x5919cd['getAttribute'](_0x4471('0xa'));)_0x374fc8['add'](_0x34abc8),_0x34abc8=_0x34abc8[_0x4471('0xc')];}return Array[_0x4471('0x36')](_0x374fc8);}(_0x55fd28));});};}_0x1833a6['enableCommand'](_0x4471('0x8'),_0xd38a60(_0x4471('0x8'))),_0x1833a6['enableCommand'](_0x4471('0x1e'),_0xd38a60(_0x4471('0x1e'))),_0x41956b&&_0x1833a6[_0x4471('0x3')]('todoList',_0xd38a60(_0x4471('0x28'))),_0x1833a6[_0x4471('0x3')]('indentList',_0xdf8522(_0x4471('0x11'))),_0x1833a6[_0x4471('0x3')](_0x4471('0x3e'),_0xdf8522(_0x4471('0x3e'))),_0x41956b&&_0x1833a6['enableCommand'](_0x4471('0x1d'),()=>{const _0x778462=_0x958cf2[_0x4471('0x17')][_0x4471('0x12')]('checkTodoList'),_0x5076f6=Array[_0x4471('0x36')](_0x778462['_selectedElements']);_0x5076f6['filter'](_0x52cd38=>_0x52cd38['getAttribute']('todoListChecked')!=_0x778462['value']),_0x958cf2[_0x4471('0x29')][_0x4471('0x15')](()=>{for(const _0x1a6fb0 of _0x5076f6)_0x1833a6[_0x4471('0x1')](_0x1a6fb0,{'commandName':_0x4471('0x1d'),'commandParams':[{'forceValue':!_0x778462[_0x4471('0x2')]}]});});}),_0x1833a6[_0x4471('0x3d')][_0x4471('0x3b')](_0x4471('0x6'),_0x3c2077=>_0x1530a0(_0x12da4b,_0x4471('0xb'),_0x3c2077)),_0x1833a6['_descriptionFactory'][_0x4471('0x20')](_0x50d577=>{if(_0x4471('0x38')!=_0x50d577[_0x4471('0x2f')]&&_0x4471('0x0')!=_0x50d577[_0x4471('0x2f')])return;const {data:_0x561608}=_0x50d577;if(_0x561608){if('numberedList'==_0x561608[_0x4471('0x7')]||_0x4471('0x1e')==_0x561608[_0x4471('0x7')]||_0x4471('0x28')==_0x561608['commandName'])switch(_0x561608[_0x4471('0x7')][_0x4471('0x1a')](_0x4471('0x1c'),'')){case _0x4471('0x21'):return _0x265a19(_0x1530a0(_0x12da4b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x265a19(_0x1530a0(_0x12da4b,_0x4471('0x4')));case'todo':return _0x265a19(_0x1530a0(_0x12da4b,'ELEMENT_TODO_LIST'));}if(_0x4471('0x11')==_0x561608[_0x4471('0x7')])return{'type':_0x4471('0x18'),'content':_0x1530a0(_0x12da4b,_0x4471('0x33'),_0x1530a0(_0x12da4b,_0x4471('0xb')))};if('outdentList'==_0x561608[_0x4471('0x7')])return{'type':_0x4471('0x18'),'content':_0x1530a0(_0x12da4b,'*Outdent:*\x20%0',_0x1530a0(_0x12da4b,_0x4471('0xb')))};if(_0x4471('0x1d')==_0x561608[_0x4471('0x7')])return _0x561608[_0x4471('0x2b')][0x0]['forceValue']?{'type':'format','content':_0x1530a0(_0x12da4b,_0x4471('0x19'))}:{'type':_0x4471('0x18'),'content':_0x1530a0(_0x12da4b,_0x4471('0x35'))};}function _0x265a19(_0x11b078){return{'type':_0x4471('0x18'),'content':_0x1530a0(_0x12da4b,_0x4471('0x2d'),_0x11b078)};}});}}function ne(_0x5bdb7f){const _0x555215=_0x5bdb7f['getAttribute'](_0x4471('0xa'));if(0x0==_0x555215)return _0x5bdb7f;let _0x10b841=_0x5bdb7f;for(;_0x5bdb7f[_0x4471('0x3a')]&&_0x5bdb7f[_0x4471('0x3a')]['is'](_0x4471('0xe'),_0x4471('0x6'));){const _0x233f5f=_0x5bdb7f[_0x4471('0x3a')]['getAttribute'](_0x4471('0xa'));if(_0x233f5f==_0x555215)_0x10b841=_0x5bdb7f[_0x4471('0x3a')];else{if(_0x233f5f<_0x555215)break;}_0x5bdb7f=_0x5bdb7f[_0x4471('0x3a')];}return _0x10b841;}function oe(_0x7e073a){const _0x1a6531=[];if(_0x7e073a['is'](_0x4471('0xe'),_0x4471('0x6'))&&_0x7e073a[_0x4471('0x31')](_0x4471('0xa'))>0x0){let _0x5f1e36=_0x7e073a['nextSibling'];for(;_0x5f1e36&&_0x4471('0x6')==_0x5f1e36[_0x4471('0xf')]&&_0x5f1e36[_0x4471('0x31')](_0x4471('0xa'))==_0x7e073a[_0x4471('0x31')](_0x4471('0xa'));)_0x1a6531[_0x4471('0x10')](_0x5f1e36),_0x5f1e36=_0x5f1e36['nextSibling'];}return _0x1a6531;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x70c3=['plugins','selection','filter','locale','createPositionAt','unshift','listReversed','_LIST_','ListPropertiesEditing','enableCommand','listType','flat','type','getSiblingNodes','handleListStyleCommand','*Format:*\x20set\x20order\x20to\x20regular','list.properties','commandName','listItem','document','map','_descriptionFactory','change','format','_getSuggestionBlocksForListStyle','createRange','TrackChangesEditing','styles','commandParams','handleDescriptions','has','bind','getListTypeFromListStyleType','formatBlock','registerDescriptionCallback','before','forward','*Change\x20to:*\x20%0','listStyle','getSelectedBlocks','markMultiRangeBlockFormat','get','ELEMENT_','ListUtils','listStart','element','length','_getSuggestionBlocks','from','editor','backward','startIndex','handleListReversedCommand','getFirstPosition','toUpperCase','model','*Format:*\x20set\x20order\x20to\x20reversed','reversed'];(function(_0x409c9c,_0x70c38e){const _0x1f5d95=function(_0x2f4e08){while(--_0x2f4e08){_0x409c9c['push'](_0x409c9c['shift']());}};_0x1f5d95(++_0x70c38e);}(_0x70c3,0x173));const _0x1f5d=function(_0x409c9c,_0x70c38e){_0x409c9c=_0x409c9c-0x0;let _0x1f5d95=_0x70c3[_0x409c9c];return _0x1f5d95;};import{Plugin as _0x18aca2}from'ckeditor5/src/core';import{getTranslation as _0xd90118}from'../utils/common-translations';export default class ut extends _0x18aca2{['afterInit'](){if(!this['editor'][_0x1f5d('0x23')][_0x1f5d('0x7')](_0x1f5d('0x2b')))return;const _0x863fab=this[_0x1f5d('0x1a')]['config'][_0x1f5d('0x12')](_0x1f5d('0x33')),_0x578da7=this[_0x1f5d('0x1a')][_0x1f5d('0x23')]['get'](_0x1f5d('0x3'));_0x863fab[_0x1f5d('0x4')]&&_0x578da7[_0x1f5d('0x2c')](_0x1f5d('0xf'),this['handleListStyleCommand'][_0x1f5d('0x8')](this)),_0x863fab[_0x1f5d('0x22')]&&_0x578da7[_0x1f5d('0x2c')]('listReversed',this[_0x1f5d('0x1d')][_0x1f5d('0x8')](this)),_0x863fab['startIndex']&&_0x578da7[_0x1f5d('0x2c')](_0x1f5d('0x15'),this['handleListStartCommand'][_0x1f5d('0x8')](this)),_0x578da7[_0x1f5d('0x38')][_0x1f5d('0xb')](this['handleDescriptions'][_0x1f5d('0x8')](this));}[_0x1f5d('0x31')](_0x1b20fd,_0x568a1a={}){const _0x4d89d9=this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')]('TrackChangesEditing'),_0x2986e4=this[_0x1f5d('0x1')]();this[_0x1f5d('0x1a')]['model'][_0x1f5d('0x39')](()=>{_0x4d89d9[_0x1f5d('0x11')](_0x2986e4,{'commandName':_0x1f5d('0xf'),'commandParams':[{'type':_0x568a1a[_0x1f5d('0x2f')]}],'formatGroupId':'listStyle'});});}[_0x1f5d('0x1d')](_0x563207,_0x59e95d={}){const _0x2177cd=this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')](_0x1f5d('0x3')),_0x25f090=this[_0x1f5d('0x18')](_0x175e65=>_0x175e65['is'](_0x1f5d('0x16'),_0x1f5d('0x35'))&&'numbered'===_0x175e65['getAttribute'](_0x1f5d('0x2d')));if(_0x25f090[_0x1f5d('0x17')]<0x1)return;const _0x12ec0b=_0x25f090['map'](_0x289ff4=>this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x2')](this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x27')](_0x289ff4,_0x1f5d('0xc')),this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x27')](_0x289ff4,0x0)));this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x39')](()=>{_0x2177cd[_0x1f5d('0x11')](_0x12ec0b,{'commandName':_0x1f5d('0x29'),'commandParams':[{'reversed':_0x59e95d[_0x1f5d('0x22')]}],'formatGroupId':_0x1f5d('0x29')});});}['handleListStartCommand'](_0x4390ff,_0xbfc545={}){const _0xbfbea6=this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')](_0x1f5d('0x3')),_0x30409d=this[_0x1f5d('0x18')](_0xedbe4a=>_0xedbe4a['is'](_0x1f5d('0x16'),_0x1f5d('0x35'))&&'numbered'===_0xedbe4a['getAttribute']('listType'));if(_0x30409d[_0x1f5d('0x17')]<0x1)return;const _0x4d5407=_0x30409d[_0x1f5d('0x37')](_0x288159=>this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x2')](this[_0x1f5d('0x1a')]['model'][_0x1f5d('0x27')](_0x288159,'before'),this['editor']['model'][_0x1f5d('0x27')](_0x288159,0x0)));this['editor']['model']['change'](()=>{_0xbfbea6['markMultiRangeBlockFormat'](_0x4d5407,{'commandName':_0x1f5d('0x15'),'commandParams':[{'startIndex':_0xbfc545[_0x1f5d('0x1c')]}],'formatGroupId':_0x1f5d('0x15')});});}[_0x1f5d('0x6')](_0x1b59e9){if(_0x1f5d('0xa')!=_0x1b59e9['type']&&'formatInline'!=_0x1b59e9[_0x1f5d('0x2f')])return;const _0x276469=this[_0x1f5d('0x1a')][_0x1f5d('0x26')],{data:_0x3a2534}=_0x1b59e9;if(!_0x3a2534)return;let _0x3c0cbd,_0x574535;switch(_0x3a2534[_0x1f5d('0x34')]){case'listStyle':_0x3c0cbd=_0x1f5d('0xe'),_0x574535={'type':_0x1f5d('0x0'),'content':_0xd90118(_0x276469,_0x3c0cbd,_0xd90118(_0x276469,this['_getTranslationKeyForListStyle'](_0x3a2534[_0x1f5d('0x5')][0x0][_0x1f5d('0x2f')])))};break;case _0x1f5d('0x29'):_0x3c0cbd=_0x3a2534[_0x1f5d('0x5')][0x0]['reversed']?_0x1f5d('0x21'):_0x1f5d('0x32'),_0x574535={'type':_0x1f5d('0x0'),'content':_0xd90118(_0x276469,_0x3c0cbd)};break;case _0x1f5d('0x15'):_0x3c0cbd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x574535={'type':'format','content':_0xd90118(_0x276469,_0x3c0cbd,_0x3a2534['commandParams'][0x0]['startIndex'])};}return _0x574535;}['_getSuggestionBlocksForListStyle'](){var _0x5962f4,_0x6f53c3,_0x2a77eb,_0x40ebb3;const _0x3a1f3a=this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')]('ListUtils');let _0x512d66=Array[_0x1f5d('0x19')](this[_0x1f5d('0x1a')][_0x1f5d('0x20')]['document'][_0x1f5d('0x24')][_0x1f5d('0x10')]());return(null===(_0x5962f4=_0x512d66[0x0])||void 0x0===_0x5962f4?void 0x0:_0x5962f4['is'](_0x1f5d('0x16'),_0x1f5d('0x35')))&&_0x512d66[_0x1f5d('0x28')](..._0x3a1f3a['getSiblingNodes'](this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x36')][_0x1f5d('0x24')][_0x1f5d('0x1e')](),'backward')),(null===(_0x6f53c3=_0x512d66[_0x512d66[_0x1f5d('0x17')]-0x1])||void 0x0===_0x6f53c3?void 0x0:_0x6f53c3['is'](_0x1f5d('0x16'),_0x1f5d('0x35')))&&_0x512d66['push'](..._0x3a1f3a[_0x1f5d('0x30')](this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x36')][_0x1f5d('0x24')]['getLastPosition'](),_0x1f5d('0xd'))),_0x512d66=[...new Set(_0x512d66)],(null===(_0x40ebb3=null===(_0x2a77eb=this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x36')][_0x1f5d('0x24')][_0x1f5d('0x1e')]())||void 0x0===_0x2a77eb?void 0x0:_0x2a77eb['parent'])||void 0x0===_0x40ebb3?void 0x0:_0x40ebb3['is'](_0x1f5d('0x16'),_0x1f5d('0x35')))&&(_0x512d66=_0x512d66[_0x1f5d('0x25')](_0x2d96fd=>_0x2d96fd['is'](_0x1f5d('0x16'),_0x1f5d('0x35')))),_0x512d66;}[_0x1f5d('0x18')](_0x300f0a){const _0x4e5da5=this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')](_0x1f5d('0x14'));let _0x58dd36=Array[_0x1f5d('0x19')](this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x36')][_0x1f5d('0x24')][_0x1f5d('0x10')]())[_0x1f5d('0x25')](_0x300f0a)[_0x1f5d('0x37')](_0x1deaaf=>{const _0x311fb6=this[_0x1f5d('0x1a')][_0x1f5d('0x20')][_0x1f5d('0x27')](_0x1deaaf,0x0);return[..._0x4e5da5[_0x1f5d('0x30')](_0x311fb6,_0x1f5d('0x1b')),..._0x4e5da5[_0x1f5d('0x30')](_0x311fb6,_0x1f5d('0xd'))];})[_0x1f5d('0x2e')]();return _0x58dd36=[...new Set(_0x58dd36)],_0x58dd36;}['_getTranslationKeyForListStyle'](_0x2d27e0){return _0x1f5d('0x13')+this[_0x1f5d('0x1a')][_0x1f5d('0x23')][_0x1f5d('0x12')](_0x1f5d('0x14'))[_0x1f5d('0x9')](_0x2d27e0)[_0x1f5d('0x1f')]()+_0x1f5d('0x2a')+_0x2d27e0[_0x1f5d('0x1f')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5142=['afterInit','locale','media','div','createEmptyElement','elementToElement','stop','options','mediaEmbed','dataDowncast','TrackChangesEditing','has','plugins','showSuggestionHighlights','get','ELEMENT_MEDIA','high','_descriptionFactory','MediaEmbedEditing','attribute:url:media','data'];(function(_0x359d01,_0x5142f1){const _0x128631=function(_0x47d9f6){while(--_0x47d9f6){_0x359d01['push'](_0x359d01['shift']());}};_0x128631(++_0x5142f1);}(_0x5142,0x145));const _0x1286=function(_0x359d01,_0x5142f1){_0x359d01=_0x359d01-0x0;let _0x128631=_0x5142[_0x359d01];return _0x128631;};import{Plugin as _0x23df04}from'ckeditor5/src/core';import{getTranslation as _0x5a2965}from'../utils/common-translations';export default class ht extends _0x23df04{[_0x1286('0xb')](){const _0x453cf9=this['editor'];if(!_0x453cf9[_0x1286('0x2')][_0x1286('0x1')](_0x1286('0x8')))return;const _0x348f38=_0x453cf9[_0x1286('0x2')][_0x1286('0x4')](_0x1286('0x0')),_0x320120=_0x453cf9[_0x1286('0xc')];_0x348f38['enableCommand'](_0x1286('0x13')),_0x348f38[_0x1286('0x7')]['registerElementLabel'](_0x1286('0xd'),_0x50a3c3=>_0x5a2965(_0x320120,_0x1286('0x5'),_0x50a3c3)),_0x453cf9['conversion']['for'](_0x1286('0x14'))[_0x1286('0x10')]({'model':_0x1286('0xd'),'view':(_0x26ae21,{writer:_0x55e744,options:_0x23adb4})=>{if(_0x23adb4[_0x1286('0x3')])return _0x55e744[_0x1286('0xf')](_0x1286('0xe'));},'converterPriority':_0x1286('0x6')}),_0x453cf9[_0x1286('0xa')]['downcastDispatcher']['on'](_0x1286('0x9'),(_0x165974,_0xf164e8,_0x21edcf)=>{_0x21edcf[_0x1286('0x12')][_0x1286('0x3')]&&_0x165974[_0x1286('0x11')]();},{'priority':_0x1286('0x6')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32d1=['get','TrackChangesEditing','plugins','afterInit','enableCommand','MentionEditing','mention'];(function(_0x491f68,_0x32d10b){const _0x1528c0=function(_0x5cffb5){while(--_0x5cffb5){_0x491f68['push'](_0x491f68['shift']());}};_0x1528c0(++_0x32d10b);}(_0x32d1,0x197));const _0x1528=function(_0x491f68,_0x32d10b){_0x491f68=_0x491f68-0x0;let _0x1528c0=_0x32d1[_0x491f68];return _0x1528c0;};import{Plugin as _0x26281d}from'ckeditor5/src/core';export default class ft extends _0x26281d{[_0x1528('0x2')](){const _0x1e99f3=this['editor'];_0x1e99f3[_0x1528('0x1')]['has'](_0x1528('0x4'))&&_0x1e99f3[_0x1528('0x1')][_0x1528('0x6')](_0x1528('0x0'))[_0x1528('0x3')](_0x1528('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1df6=['enableCommand','get','plugins','TrackChangesEditing','editor','locale','pageBreak','PageBreakEditing','afterInit','ELEMENT_PAGE_BREAK','_descriptionFactory','has'];(function(_0x5bc6f8,_0x1df631){const _0x11cb2c=function(_0x2678b7){while(--_0x2678b7){_0x5bc6f8['push'](_0x5bc6f8['shift']());}};_0x11cb2c(++_0x1df631);}(_0x1df6,0x7c));const _0x11cb=function(_0x5bc6f8,_0x1df631){_0x5bc6f8=_0x5bc6f8-0x0;let _0x11cb2c=_0x1df6[_0x5bc6f8];return _0x11cb2c;};import{Plugin as _0x1a6cc6}from'ckeditor5/src/core';import{getTranslation as _0x44ed55}from'../utils/common-translations';export default class gt extends _0x1a6cc6{[_0x11cb('0x4')](){const _0x1618c9=this[_0x11cb('0x0')];if(!_0x1618c9[_0x11cb('0xa')][_0x11cb('0x7')](_0x11cb('0x3')))return;_0x1618c9['plugins'][_0x11cb('0x9')](_0x11cb('0xb'))[_0x11cb('0x8')](_0x11cb('0x2'));const _0x9482d0=_0x1618c9[_0x11cb('0xa')]['get'](_0x11cb('0xb')),_0x1955e7=_0x1618c9[_0x11cb('0x1')];_0x9482d0[_0x11cb('0x6')]['registerElementLabel'](_0x11cb('0x2'),_0x1600cc=>_0x44ed55(_0x1955e7,_0x11cb('0x5'),_0x1600cc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x85c5=['*Insert:*\x20%0','paragraph','consumable','getFirstRange','ck-suggestion-marker--active','checkChild','plugins','start','isLimit','editor','insert','model','ck-suggestion-marker-split','schema','name','markerName','addClass','type','locale','afterInit','showSuggestionHighlights','nodeAfter','data','writer','isBlock','*Change\x20to:*\x20%0','mapper','insertion','format','markerRange','isTouching','editing','consume','get','addMarker:suggestion:insertion','_registerLegacyDescription','commandName','downcastDispatcher','includes','_enableDefaultAttributesIntegration','has','registerDescriptionCallback','insertParagraph','_descriptionFactory','getItemLabel','TrackChangesEditing','$text'];(function(_0x1ae8b9,_0x85c55){const _0x23cca6=function(_0x4e1f14){while(--_0x4e1f14){_0x1ae8b9['push'](_0x1ae8b9['shift']());}};_0x23cca6(++_0x85c55);}(_0x85c5,0xd5));const _0x23cc=function(_0x1ae8b9,_0x85c55){_0x1ae8b9=_0x1ae8b9-0x0;let _0x23cca6=_0x85c5[_0x1ae8b9];return _0x23cca6;};import{Plugin as _0x421a62}from'ckeditor5/src/core';import{getTranslation as _0x2e9f5a}from'../utils/common-translations';export default class lt extends _0x421a62{[_0x23cc('0x29')](){const _0x29b606=this[_0x23cc('0x1f')];if(!_0x29b606['plugins'][_0x23cc('0xf')]('Paragraph'))return;const _0x4d87f6=_0x29b606['locale'],_0x343bb1=_0x29b606[_0x23cc('0x1c')][_0x23cc('0x8')](_0x23cc('0x14'));_0x343bb1[_0x23cc('0x12')]['registerElementLabel']('paragraph',_0x501103=>_0x2e9f5a(_0x4d87f6,'ELEMENT_PARAGRAPH',_0x501103)),_0x343bb1[_0x23cc('0xe')](_0x23cc('0x17')),_0x343bb1['enableCommand'](_0x23cc('0x11')),_0x29b606[_0x23cc('0x6')][_0x23cc('0xc')]['on'](_0x23cc('0x9'),nr(_0x29b606),{'priority':'highest'}),_0x29b606[_0x23cc('0x2c')][_0x23cc('0xc')]['on'](_0x23cc('0x9'),(_0x5f0602,_0x1baa74,_0x2dc129)=>{_0x2dc129['options'][_0x23cc('0x2a')]&&nr(_0x29b606,{'showActiveMarker':!0x1})(_0x5f0602,_0x1baa74,_0x2dc129);},{'priority':'highest'});const _0x3803bc=_0x343bb1[_0x23cc('0x12')];_0x3803bc[_0x23cc('0x10')](_0x3e5742=>{if('insertion'!==_0x3e5742[_0x23cc('0x27')])return;const {start:_0x3b0451,end:_0x5798e5}=_0x3e5742[_0x23cc('0x19')]();if(!_0x3b0451[_0x23cc('0x5')](_0x5798e5)||!_0x3b0451[_0x23cc('0x2b')])return;const _0x418c4d=_0x29b606[_0x23cc('0x21')][_0x23cc('0x23')],_0xe3299=_0x3b0451[_0x23cc('0x2b')];return _0x418c4d[_0x23cc('0x2e')](_0xe3299)&&!_0x418c4d[_0x23cc('0x1e')](_0xe3299)&&_0x418c4d[_0x23cc('0x1b')](_0xe3299,_0x23cc('0x15'))?{'type':_0x23cc('0x2'),'content':_0x2e9f5a(_0x4d87f6,_0x23cc('0x16'),_0x3803bc[_0x23cc('0x13')](_0xe3299,0x1))}:void 0x0;}),this[_0x23cc('0xa')]();}[_0x23cc('0xa')](){const _0x3dbfed=this[_0x23cc('0x1f')],_0x2c10c5=_0x3dbfed[_0x23cc('0x28')];_0x3dbfed[_0x23cc('0x1c')][_0x23cc('0x8')]('TrackChangesEditing')['_descriptionFactory'][_0x23cc('0x10')](_0x126903=>{if('formatBlock'!=_0x126903[_0x23cc('0x27')])return;const {data:_0x13eeb9}=_0x126903;return _0x13eeb9&&_0x23cc('0x17')==_0x13eeb9[_0x23cc('0xb')]?{'type':_0x23cc('0x3'),'content':_0x2e9f5a(_0x2c10c5,_0x23cc('0x0'),_0x2e9f5a(_0x2c10c5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc96181,{showActiveMarker:_0x5f29ea=!0x0}={}){return(_0x4d9337,_0x10d49e,_0x3a0556)=>{const _0x2de49d=_0xc96181[_0x23cc('0x1c')][_0x23cc('0x8')](_0x23cc('0x14')),_0x595fc6=_0x10d49e[_0x23cc('0x4')][_0x23cc('0x1d')],_0x39effe=_0x10d49e[_0x23cc('0x4')]['end'],_0x3a04ce=_0xc96181['model'][_0x23cc('0x23')];if(!_0x595fc6[_0x23cc('0x5')](_0x39effe)||!_0x595fc6['nodeAfter'])return;const _0x3efbd7=_0x595fc6[_0x23cc('0x2b')];if(_0x3a04ce[_0x23cc('0x2e')](_0x3efbd7)&&!_0x3a04ce[_0x23cc('0x1e')](_0x3efbd7)&&_0x3a04ce[_0x23cc('0x1b')](_0x3efbd7,_0x23cc('0x15'))){if(!_0x3a0556[_0x23cc('0x18')][_0x23cc('0x7')](_0x10d49e[_0x23cc('0x4')],_0x4d9337[_0x23cc('0x24')]))return;const _0x53bedb=_0x3a0556[_0x23cc('0x2d')]['createUIElement']('span',{'class':_0x23cc('0x22')}),_0x2d46de=_0x3a0556['mapper']['toViewPosition'](_0x39effe);_0x5f29ea&&_0x2de49d['activeMarkers'][_0x23cc('0xd')](_0x10d49e[_0x23cc('0x25')])&&_0x3a0556[_0x23cc('0x2d')][_0x23cc('0x26')](_0x23cc('0x1a'),_0x53bedb),_0x3a0556[_0x23cc('0x2d')][_0x23cc('0x20')](_0x2d46de,_0x53bedb),_0x3a0556[_0x23cc('0x1')]['bindElementToMarker'](_0x53bedb,_0x10d49e[_0x23cc('0x25')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ef4=['_descriptionFactory','TrackChangesEditing','plugins','locale','formatBlock','registerDescriptionCallback','removeFormat','_registerLegacyDescription','afterInit','has','commandName','editor','type','get'];(function(_0x22eb08,_0x3ef43a){const _0x41f6c2=function(_0x27a3d6){while(--_0x27a3d6){_0x22eb08['push'](_0x22eb08['shift']());}};_0x41f6c2(++_0x3ef43a);}(_0x3ef4,0xf6));const _0x41f6=function(_0x22eb08,_0x3ef43a){_0x22eb08=_0x22eb08-0x0;let _0x41f6c2=_0x3ef4[_0x22eb08];return _0x41f6c2;};import{Plugin as _0x4e7c28}from'ckeditor5/src/core';import{getTranslation as _0x126b4d}from'../utils/common-translations';export default class mt extends _0x4e7c28{[_0x41f6('0x0')](){const _0x4f167e=this['editor'];if(!_0x4f167e[_0x41f6('0x8')][_0x41f6('0x1')]('RemoveFormatEditing'))return;_0x4f167e[_0x41f6('0x8')][_0x41f6('0x5')](_0x41f6('0x7'))['_enableDefaultAttributesIntegration'](_0x41f6('0xc')),this[_0x41f6('0xd')]();}[_0x41f6('0xd')](){const _0x351af2=this[_0x41f6('0x3')];_0x351af2['plugins']['get'](_0x41f6('0x7'))[_0x41f6('0x6')][_0x41f6('0xb')](_0x1ced75=>{if(_0x41f6('0xa')!=_0x1ced75['type']&&'formatInline'!=_0x1ced75[_0x41f6('0x4')])return;const {data:_0x25fa60}=_0x1ced75;return _0x25fa60&&'removeFormat'==_0x25fa60[_0x41f6('0x2')]?{'type':'format','content':_0x126b4d(_0x351af2[_0x41f6('0x9')],'*Remove\x20all\x20formatting*')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x108d=['enableCommand','get','plugins','acceptSuggestion','acceptAllSuggestions','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','TrackChangesEditing','discardAllSuggestions','discardSuggestion','has','RestrictedEditingModeEditing','editor','afterInit'];(function(_0x24cc4a,_0x108d03){const _0x504fa6=function(_0x16454f){while(--_0x16454f){_0x24cc4a['push'](_0x24cc4a['shift']());}};_0x504fa6(++_0x108d03);}(_0x108d,0xfe));const _0x504f=function(_0x24cc4a,_0x108d03){_0x24cc4a=_0x24cc4a-0x0;let _0x504fa6=_0x108d[_0x24cc4a];return _0x504fa6;};import{Plugin as _0x3159fd}from'ckeditor5/src/core';export default class dt extends _0x3159fd{[_0x504f('0xb')](){const _0x45036f=this[_0x504f('0xa')];if(!_0x45036f[_0x504f('0x0')][_0x504f('0x8')](_0x504f('0x9')))return;const _0x3d19f3=_0x45036f['plugins'][_0x504f('0xd')](_0x504f('0x5'));_0x3d19f3[_0x504f('0xc')](_0x504f('0x4')),_0x3d19f3['enableCommand']('goToNextRestrictedEditingException');const _0x1c30a=_0x45036f['plugins'][_0x504f('0xd')](_0x504f('0x9'));_0x1c30a[_0x504f('0xc')]('trackChanges'),_0x1c30a[_0x504f('0xc')](_0x504f('0x1')),_0x1c30a[_0x504f('0xc')](_0x504f('0x7')),_0x1c30a[_0x504f('0xc')](_0x504f('0x2')),_0x1c30a['enableCommand'](_0x504f('0x6')),_0x1c30a[_0x504f('0xc')](_0x504f('0x3')),_0x1c30a[_0x504f('0xc')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33b3=['editing','split','name','test','high','insert','getItems','shiftEnter','downcastDispatcher','writer','mapper','ELEMENT_LINE_BREAK','requires','TrackChangesEditing','deletion','init','_descriptionFactory','ck-suggestion-marker--active','createPositionBefore','activeMarkers','softBreak','showSuggestionHighlights','includes','addClass','addMarker:suggestion:insertion','editor','options','addMarker:suggestion:deletion','ck-suggestion-marker-','markerName','toViewPosition','bindElementToMarker','model'];(function(_0x5b35fe,_0x33b3ab){const _0x573dcb=function(_0x282032){while(--_0x282032){_0x5b35fe['push'](_0x5b35fe['shift']());}};_0x573dcb(++_0x33b3ab);}(_0x33b3,0x1e3));const _0x573d=function(_0x5b35fe,_0x33b3ab){_0x5b35fe=_0x5b35fe-0x0;let _0x573dcb=_0x33b3[_0x5b35fe];return _0x573dcb;};import{Plugin as _0x755d8d}from'ckeditor5/src/core';import{ShiftEnter as _0x1d326e}from'ckeditor5/src/enter';import{getTranslation as _0x5bf952}from'../utils/common-translations';export default class pt extends _0x755d8d{static get[_0x573d('0x18')](){return[_0x1d326e];}[_0x573d('0x1b')](){const _0x67028=this[_0x573d('0x4')],_0x5d9917=_0x67028['plugins']['get'](_0x573d('0x19'));_0x5d9917['enableCommand'](_0x573d('0x13')),_0x67028[_0x573d('0xc')][_0x573d('0x14')]['on'](_0x573d('0x3'),re(_0x67028),{'priority':_0x573d('0x10')}),_0x67028[_0x573d('0xc')][_0x573d('0x14')]['on'](_0x573d('0x6'),re(_0x67028),{'priority':'high'}),_0x67028['data'][_0x573d('0x14')]['on']('addMarker:suggestion',(_0x4f4d79,_0x163a71,_0x38207f)=>{_0x38207f[_0x573d('0x5')][_0x573d('0x0')]&&re(_0x67028,{'showActiveMarker':!0x1})(_0x4f4d79,_0x163a71,_0x38207f);}),_0x5d9917[_0x573d('0x1c')]['registerElementLabel'](_0x573d('0x20'),_0x4f255b=>_0x5bf952(_0x67028['locale'],_0x573d('0x17'),_0x4f255b));}}function re(_0x1ef7f8,{showActiveMarker:_0x5e680a=!0x0}={}){return(_0x26066b,_0x58693d,_0x228e0b)=>{const _0x75d832=_0x1ef7f8['plugins']['get'](_0x573d('0x19'));if(!_0x228e0b['consumable'][_0x573d('0xf')](_0x58693d['markerRange'],_0x26066b[_0x573d('0xe')]))return;const _0x48ad94=_0x1ef7f8[_0x573d('0xb')];for(const _0x19a9f6 of _0x58693d['markerRange'][_0x573d('0x12')]()){if(!_0x19a9f6['is']('element','softBreak'))continue;const _0x1e7cd7=_0x573d('0x1a')==_0x58693d[_0x573d('0x8')][_0x573d('0xd')](':')[0x1]?'merge':_0x573d('0xd'),_0x515ba9=_0x228e0b[_0x573d('0x15')]['createUIElement']('span',{'class':_0x573d('0x7')+_0x1e7cd7}),_0x8f58c1=_0x228e0b[_0x573d('0x16')][_0x573d('0x9')](_0x48ad94[_0x573d('0x1e')](_0x19a9f6));_0x5e680a&&_0x75d832[_0x573d('0x1f')][_0x573d('0x1')](_0x58693d['markerName'])&&_0x228e0b['writer'][_0x573d('0x2')](_0x573d('0x1d'),_0x515ba9),_0x228e0b[_0x573d('0x15')][_0x573d('0x11')](_0x8f58c1,_0x515ba9),_0x228e0b['mapper'][_0x573d('0xa')](_0x515ba9,_0x58693d[_0x573d('0x8')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4acb=['getRanges','document','isCollapsed','StandardEditingModeEditing','model','FORMAT_RESTRICTED_ENABLED','forceValue','registerDescriptionCallback','afterInit','commandParams','formatBlock','type','plugins','markInlineFormat','commands','commandName','editor','selection','enableCommand','change','restrictedEditingException','has','get','formatInline','locale'];(function(_0x1b17cb,_0x4acb9e){const _0x54e3a0=function(_0x21cafb){while(--_0x21cafb){_0x1b17cb['push'](_0x1b17cb['shift']());}};_0x54e3a0(++_0x4acb9e);}(_0x4acb,0xd5));const _0x54e3=function(_0x1b17cb,_0x4acb9e){_0x1b17cb=_0x1b17cb-0x0;let _0x54e3a0=_0x4acb[_0x1b17cb];return _0x54e3a0;};import{Plugin as _0x5bf92a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5726bb}from'./utils';import{getTranslation as _0x3e5b71}from'../utils/common-translations';export default class kt extends _0x5bf92a{[_0x54e3('0x14')](){const _0x20de28=this[_0x54e3('0x3')],_0x483d34=_0x20de28[_0x54e3('0x10')],_0x513b61=_0x20de28[_0x54e3('0xb')];if(!_0x20de28[_0x54e3('0x18')][_0x54e3('0x8')](_0x54e3('0xf')))return;const _0x4962ea=_0x20de28[_0x54e3('0x18')][_0x54e3('0x9')]('TrackChangesEditing'),_0x245670=_0x54e3('0x7'),_0x2dd448=_0x20de28[_0x54e3('0x1')][_0x54e3('0x9')](_0x245670);_0x4962ea[_0x54e3('0x5')](_0x245670,(_0x188083,_0x38d300={})=>{const _0x3b0d40=_0x483d34[_0x54e3('0xd')][_0x54e3('0x4')];if(_0x3b0d40[_0x54e3('0xe')])return void _0x188083(_0x38d300);const _0x126f3f=void 0x0!==_0x38d300[_0x54e3('0x12')]?_0x38d300['forceValue']:!_0x2dd448['value'];_0x483d34[_0x54e3('0x6')](()=>{const _0x9f090d=Array['from'](_0x3b0d40[_0x54e3('0xc')]());for(const _0x471bf5 of _0x9f090d){const _0x18886b=_0x126f3f?[_0x471bf5]:_0x5726bb(_0x245670,_0x471bf5,_0x483d34);for(const _0x581aac of _0x18886b)_0x4962ea[_0x54e3('0x0')](_0x581aac,{'commandName':_0x245670,'commandParams':[{'forceValue':_0x126f3f}]});}});}),_0x4962ea['_descriptionFactory'][_0x54e3('0x13')](_0xc7e511=>{if(_0x54e3('0x16')!=_0xc7e511[_0x54e3('0x17')]&&_0x54e3('0xa')!=_0xc7e511[_0x54e3('0x17')])return;const {data:_0x320407}=_0xc7e511;return _0x320407&&_0x320407[_0x54e3('0x2')]==_0x245670?_0x320407[_0x54e3('0x15')][0x0][_0x54e3('0x12')]?{'type':'format','content':_0x3e5b71(_0x513b61,_0x54e3('0x11'))}:{'type':'format','content':_0x3e5b71(_0x513b61,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5974=['definitions','StyleUtils','ghsAttributes','formatInline','add','normalizeConfig','_registerBlockAttribute','_descriptionFactory','config','has','Style','getGhsAttributeNameForElement','_registerInlineAttribute','inline','_enableDefaultAttributesIntegration','format','*Set\x20format:*\x20%0','afterInit','editor','type','registerAttributeLabel','block','_registerLegacyDescription','styleName','element','DataSchema','style','FORMAT_STYLE','TrackChangesEditing','locale','forceValue','commandParams','registerDescriptionCallback','plugins','get','toLowerCase'];(function(_0x781e6,_0x597470){const _0x499777=function(_0x5927a0){while(--_0x5927a0){_0x781e6['push'](_0x781e6['shift']());}};_0x499777(++_0x597470);}(_0x5974,0x65));const _0x4997=function(_0x781e6,_0x597470){_0x781e6=_0x781e6-0x0;let _0x499777=_0x5974[_0x781e6];return _0x499777;};import{Plugin as _0x421550}from'ckeditor5/src/core';import{getTranslation as _0x13a148}from'../utils/common-translations';export default class bt extends _0x421550{[_0x4997('0x18')](){const _0x512b54=this['editor'];if(!_0x512b54[_0x4997('0x4')][_0x4997('0x10')](_0x4997('0x11'))||!_0x512b54[_0x4997('0x4')][_0x4997('0x10')](_0x4997('0x20')))return;const _0x3cf576=_0x512b54[_0x4997('0x4')][_0x4997('0x5')](_0x4997('0x23')),_0x3ac11a=_0x512b54[_0x4997('0x0')],_0x4f5f60=_0x512b54[_0x4997('0xf')]['get'](_0x4997('0x21')),_0x1ca518=_0x512b54[_0x4997('0x4')][_0x4997('0x5')]('GeneralHtmlSupport'),_0x32a00d=_0x512b54[_0x4997('0x4')][_0x4997('0x5')](_0x4997('0x8'))[_0x4997('0xc')](_0x512b54[_0x4997('0x4')][_0x4997('0x5')]('DataSchema'),_0x4f5f60[_0x4997('0x7')]);_0x3cf576[_0x4997('0x15')]('style');const _0x2be2a8=new Set();for(const _0x294fdf of _0x32a00d[_0x4997('0x1c')]){const _0x17a541=_0x1ca518[_0x4997('0x12')](_0x294fdf[_0x4997('0x1f')]);_0x2be2a8[_0x4997('0xb')](_0x17a541);}const _0x49a144=new Set();for(const _0x1b7c5d of _0x32a00d[_0x4997('0x14')]){const _0x4c4782=_0x1ca518['getGhsAttributeNameForElement'](_0x1b7c5d[_0x4997('0x1f')]);_0x49a144[_0x4997('0xb')](_0x4c4782);for(const _0x16267b of _0x1b7c5d[_0x4997('0x9')])_0x49a144[_0x4997('0xb')](_0x16267b);}for(const _0x4657ac of _0x2be2a8)_0x3cf576[_0x4997('0xd')](_0x4657ac),_0x3cf576[_0x4997('0xe')]['registerAttributeLabel'](_0x4657ac,_0x13a148(_0x3ac11a,_0x4997('0x22')));for(const _0x395e2b of _0x49a144)_0x3cf576[_0x4997('0x13')](_0x395e2b),_0x3cf576[_0x4997('0xe')][_0x4997('0x1b')](_0x395e2b,_0x13a148(_0x3ac11a,_0x4997('0x22')));this[_0x4997('0x1d')]();}[_0x4997('0x1d')](){const _0x22ee9a=this[_0x4997('0x19')],_0x3d80d4=_0x22ee9a['locale'];_0x22ee9a[_0x4997('0x4')][_0x4997('0x5')](_0x4997('0x23'))[_0x4997('0xe')][_0x4997('0x3')](_0x1d9d22=>{if('formatBlock'!=_0x1d9d22[_0x4997('0x1a')]&&_0x4997('0xa')!=_0x1d9d22[_0x4997('0x1a')])return;const {data:_0x2a447b}=_0x1d9d22;return _0x2a447b&&'style'===_0x2a447b['commandName']?_0x2a447b[_0x4997('0x2')][0x0][_0x4997('0x1')]?{'type':_0x4997('0x16'),'content':_0x13a148(_0x3d80d4,_0x4997('0x17'),_0x2a447b[_0x4997('0x2')][0x0][_0x4997('0x1e')][_0x4997('0x6')]())}:{'type':_0x4997('0x16'),'content':_0x13a148(_0x3d80d4,'*Remove\x20format:*\x20%0',_0x2a447b[_0x4997('0x2')][0x0][_0x4997('0x1e')][_0x4997('0x6')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2851=['setSelection','_acceptFormatSuggestionCallbackFactory','TableEditing','createTableWalker','plugins','registerPostFixer','getAttribute','*Insert:*\x20%0','_getCoordsForCells','suggestion','element','registerDescriptionCallback','createRangeOn','addMarker:suggestion','subType','_tableSuggestions','accept','min','ELEMENT_TABLE_COLUMN','discard','MAX_SAFE_INTEGER','_suggestionFactory','editor','root','values','execute','some','batch','last','ELEMENT_TABLE_ROW_WITH_TEXT','get','ELEMENT_TABLE','findAncestor','refresh','ELEMENT_TABLE_COLUMN_WITH_TEXT','classes','_tablePostFixingSubtypes','getSelectionAffectedTableCells','name','TableUtils','deletion','removeTableRow','nodeAfter','table','model','isEqual','getSuggestion','filter','_descriptionFactory','$graveyard','enableCommand','markMultiRangeInsertion','insertTableColumnRight','getFirstRange','every','first','enqueueChange','getItems','nodeBefore','getRowIndexes','rootName','change','$textProxy','length','getContainedElement','_setupColumnsRowsFixing','options','colspan','markMultiRangeDeletion','getChildren','getCellLocation','addRange','maxRow','startsWith','max','differ','forceValue','above','substr','commands','has','addClass','insertion','toLowerCase','registerCustomCallback','join','createPositionAt','document','tableCell','from','position','data','MIN_SAFE_INTEGER','insertTableRowAbove','TrackChangesEditing','afterInit','map','hasAttribute','rowspan','tableColumn','isInContent','*Remove:*\x20%0','tableRow','ELEMENT_TABLE_WITH_TEXT','selectTableColumn','_getSuggestionCoords','_splitMarkerName','writer','span','ELEMENT_TABLE_ROW','type','removeTableColumn','start','end','insertTableRowBelow','tablePaste','left','isArray','insertTableColumnLeft','change:data','order','fromRange','isIntersectingWithRange','showSuggestionHighlights','item','detach','getChanges','highest','removeClass','getRanges'];(function(_0x37eaf9,_0x2851af){const _0x3bb732=function(_0x300dd6){while(--_0x300dd6){_0x37eaf9['push'](_0x37eaf9['shift']());}};_0x3bb732(++_0x2851af);}(_0x2851,0x14f));const _0x3bb7=function(_0x37eaf9,_0x2851af){_0x37eaf9=_0x37eaf9-0x0;let _0x3bb732=_0x2851[_0x37eaf9];return _0x3bb732;};import{Plugin as _0x226363}from'ckeditor5/src/core';import{LiveRange as _0x3f1242}from'ckeditor5/src/engine';import{setHighlightHandling as _0x45aa62}from'ckeditor5/src/widget';import{getTranslation as _0x4fcb4d}from'../utils/common-translations';export default class wt extends _0x226363{constructor(_0x5afc95){super(_0x5afc95),this[_0x3bb7('0x5b')]=[_0x3bb7('0x1b'),'tableColumn'],this[_0x3bb7('0x46')]=new Set();}[_0x3bb7('0x14')](){const _0x22c1e7=this[_0x3bb7('0x4d')],_0x12d704=_0x22c1e7[_0x3bb7('0x63')][_0x3bb7('0xc')]['selection'];if(!_0x22c1e7[_0x3bb7('0x3b')][_0x3bb7('0x5')](_0x3bb7('0x39')))return;const _0x2ab477=_0x22c1e7['locale'],_0x4e08d4=_0x22c1e7[_0x3bb7('0x3b')][_0x3bb7('0x55')](_0x3bb7('0x13')),_0x1cc020=_0x22c1e7['plugins'][_0x3bb7('0x55')]('TableUtils');_0x4e08d4[_0x3bb7('0x67')]['registerElementLabel'](_0x3bb7('0x62'),_0x16e0e9=>_0x4fcb4d(_0x2ab477,_0x3bb7('0x56'),_0x16e0e9)),this['_setupColumnsRowsFixing'](),_0x4e08d4[_0x3bb7('0x69')]('insertTable'),_0x4e08d4[_0x3bb7('0x69')]('selectTableRow'),_0x4e08d4[_0x3bb7('0x69')](_0x3bb7('0x1d'));for(const _0xc595da of[_0x3bb7('0x12'),_0x3bb7('0x27')]){const _0xa025f5=_0x22c1e7[_0x3bb7('0x4')][_0x3bb7('0x55')](_0xc595da);_0x4e08d4[_0x3bb7('0x69')](_0xc595da,_0x800cdf=>{_0x22c1e7[_0x3bb7('0x63')]['change'](_0x503f44=>{_0x800cdf();const _0x2bb1de=_0x3bb7('0x2')===_0xa025f5[_0x3bb7('0x2d')],_0x1782ba=_0x1cc020[_0x3bb7('0x5c')](_0x12d704),_0x2248e8=_0x1cc020[_0x3bb7('0x72')](_0x1782ba),_0x16aee0=_0x2bb1de?_0x2248e8['first']-0x1:_0x2248e8[_0x3bb7('0x53')]+0x1,_0x43f2f9=_0x1782ba[0x0][_0x3bb7('0x57')](_0x3bb7('0x62')),_0x4a40d1=_0x1cc020[_0x3bb7('0x3a')](_0x43f2f9,{'startRow':_0x16aee0,'endRow':_0x16aee0}),_0x27d22e=Array[_0x3bb7('0xe')](_0x4a40d1)['map'](_0x22062a=>_0x503f44[_0x3bb7('0x43')](_0x22062a['cell']));_0x4e08d4[_0x3bb7('0x6a')](_0x27d22e,'tableRow');});});}for(const _0x34f3ff of[_0x3bb7('0x2b'),_0x3bb7('0x6b')]){const _0x488cd5=_0x22c1e7[_0x3bb7('0x4')]['get'](_0x34f3ff);_0x4e08d4['enableCommand'](_0x34f3ff,_0x480cc4=>{_0x22c1e7[_0x3bb7('0x63')]['change'](_0xe1a52c=>{_0x480cc4();const _0x5249e1=_0x3bb7('0x29')===_0x488cd5[_0x3bb7('0x2d')],_0x453dba=_0x1cc020[_0x3bb7('0x5c')](_0x12d704),_0x38501c=_0x1cc020['getColumnIndexes'](_0x453dba),_0x2849f5=_0x5249e1?_0x38501c[_0x3bb7('0x6e')]-0x1:_0x38501c[_0x3bb7('0x53')]+0x1,_0x1e0350=_0x453dba[0x0][_0x3bb7('0x57')]('table'),_0x589de4=_0x1cc020['createTableWalker'](_0x1e0350,{'startRow':0x0,'column':_0x2849f5,'includeAllSlots':!0x1}),_0x184c1b=Array['from'](_0x589de4)['map'](_0x4a1bba=>_0xe1a52c[_0x3bb7('0x43')](_0x4a1bba['cell']));_0x4e08d4[_0x3bb7('0x6a')](_0x184c1b,'tableColumn');});});}for(const _0x18c812 of[_0x3bb7('0x60'),_0x3bb7('0x24')]){const _0x113d99=_0x18c812[_0x3bb7('0x3')](0xb),_0x2d0548=_0x113d99[_0x3bb7('0x8')](),_0x4f352f=_0x2d0548[_0x3bb7('0x3')](0x0,0x3)+_0x3bb7('0x21'),_0x59b64d=_0x3bb7('0x62')+_0x113d99,_0x34cdc4=_0x3bb7('0x48')+_0x113d99,_0x4ef2be='max'+_0x113d99;_0x4e08d4['enableCommand'](_0x18c812,()=>{_0x22c1e7[_0x3bb7('0x63')]['change'](_0x245c3f=>{const _0x3dd265=_0x1cc020[_0x3bb7('0x5c')](_0x12d704),_0x3360df=_0x3dd265[0x0][_0x3bb7('0x57')](_0x3bb7('0x62'));let _0xaa6029;if(_0x3bb7('0x60')==_0x18c812){const _0x36c891=_0x1cc020['getRowIndexes'](_0x3dd265);_0xaa6029={'startRow':_0x36c891[_0x3bb7('0x6e')],'endRow':_0x36c891[_0x3bb7('0x53')],'includeAllSlots':!0x0};}else{const _0x432d41=_0x1cc020['getColumnIndexes'](_0x3dd265);_0xaa6029={'startColumn':_0x432d41[_0x3bb7('0x6e')],'endColumn':_0x432d41[_0x3bb7('0x53')],'includeAllSlots':!0x0};}const _0x3e4a5b=_0x1cc020['createTableWalker'](_0x3360df,_0xaa6029),_0x378e2b=Array['from'](_0x3e4a5b)[_0x3bb7('0x15')](({cell:_0x2de211})=>_0x2de211),_0x521376=se(_0x378e2b['filter'](_0x33853d=>_0x33853d[_0x3bb7('0x16')](_0x4f352f))),_0x113135=se(_0x378e2b[_0x3bb7('0x66')](_0x4a6e49=>!_0x4a6e49[_0x3bb7('0x16')](_0x4f352f)))[_0x3bb7('0x15')](_0x4f5b11=>_0x245c3f[_0x3bb7('0x43')](_0x4f5b11)),_0x448c79=_0x4e08d4[_0x3bb7('0x7b')](_0x113135,_0x59b64d);if(_0x448c79&&(_0x3bb7('0x1b')==_0x448c79[_0x3bb7('0x45')]||'tableColumn'==_0x448c79[_0x3bb7('0x45')])){const _0x36da26=this['_getSuggestionCoords'](_0x448c79);for(const _0x551639 of _0x521376){const _0x1e0394=_0x245c3f['createRangeOn'](_0x551639),_0x1dd035=_0x1cc020[_0x3bb7('0x7d')](_0x551639),_0x37c828=_0x551639['getAttribute'](_0x4f352f)-0x1,_0x1f4729=_0x36da26[_0x34cdc4],_0x5c77ac=_0x36da26[_0x4ef2be];_0x1f4729<=_0x1dd035[_0x2d0548]&&_0x1dd035[_0x2d0548]+_0x37c828<=_0x5c77ac&&_0x448c79[_0x3bb7('0x7e')](_0x1e0394);}}});});}function _0x61578e(_0x4d46cd){const _0x35571b=Array['from'](_0x12d704[_0x3bb7('0x36')]())[_0x3bb7('0x15')](_0x3c6bc6=>_0x3f1242['fromRange'](_0x3c6bc6));_0x22c1e7['model'][_0x3bb7('0x74')](_0x2f31be=>{const _0x429a28=_0x2f31be[_0x3bb7('0x52')];_0x4d46cd=_0x4d46cd['filter'](_0x45f243=>_0x3bb7('0x68')!=_0x45f243[_0x3bb7('0x4e')][_0x3bb7('0x73')]),_0x2f31be['setSelection'](_0x4d46cd),_0x22c1e7[_0x3bb7('0x4')][_0x3bb7('0x55')](_0x3bb7('0x60'))[_0x3bb7('0x58')](),_0x22c1e7[_0x3bb7('0x50')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22c1e7[_0x3bb7('0x63')][_0x3bb7('0x6f')](()=>{_0x22c1e7['model'][_0x3bb7('0x6f')](_0x429a28,_0x11e6a8=>{const _0x34b88f=_0x35571b[_0x3bb7('0x66')](_0x159c96=>_0x3bb7('0x68')!=_0x159c96[_0x3bb7('0x4e')][_0x3bb7('0x73')]);_0x34b88f[_0x3bb7('0x76')]>0x0&&_0x11e6a8[_0x3bb7('0x37')](_0x34b88f);for(const _0x5740b8 of _0x35571b)_0x5740b8['detach']();});});});}function _0x1a5723(_0x425b3c){_0x22c1e7[_0x3bb7('0x63')][_0x3bb7('0x74')](_0x37be58=>{const _0x46d885=Array[_0x3bb7('0xe')](_0x12d704[_0x3bb7('0x36')]())['map'](_0x42e65b=>_0x3f1242[_0x3bb7('0x2e')](_0x42e65b)),_0x84118f=[];for(const _0x71bef9 of _0x425b3c)for(const _0x7bcc10 of _0x71bef9['getItems']({'shallow':!0x0}))_0x84118f['push'](_0x7bcc10);for(const _0x2ed27c of _0x84118f)_0x3bb7('0x68')!=_0x2ed27c[_0x3bb7('0x4e')][_0x3bb7('0x73')]&&(_0x37be58[_0x3bb7('0x37')](_0x37be58[_0x3bb7('0xb')](_0x2ed27c,0x0)),_0x22c1e7[_0x3bb7('0x4')][_0x3bb7('0x55')](_0x3bb7('0x24'))[_0x3bb7('0x58')](),_0x22c1e7[_0x3bb7('0x50')](_0x3bb7('0x24'),{'forceDefaultExecution':!0x0}));const _0x3e513e=_0x46d885[_0x3bb7('0x66')](_0x58264d=>_0x3bb7('0x68')!=_0x58264d[_0x3bb7('0x4e')][_0x3bb7('0x73')]);_0x3e513e['length']>0x0&&_0x37be58[_0x3bb7('0x37')](_0x3e513e);for(const _0x379ebb of _0x46d885)_0x379ebb[_0x3bb7('0x32')]();});}function _0x2801bd(_0x4cc631,_0x3b8ae3){return _0x3b8ae3[_0x3bb7('0x6d')](_0x50adf4=>_0x4cc631[_0x3bb7('0x51')](_0x132171=>_0x132171[_0x3bb7('0x26')][_0x3bb7('0x64')](_0x50adf4[_0x3bb7('0x25')])||_0x50adf4['end'][_0x3bb7('0x64')](_0x132171[_0x3bb7('0x25')])));}function _0x507c58(_0x31f1f7,_0x561af5){return _0x31f1f7[_0x3bb7('0x51')](_0x1ad99=>_0x561af5['some'](_0x21c52c=>_0x1ad99['end']['isTouching'](_0x21c52c[_0x3bb7('0x25')])));}_0x22c1e7[_0x3bb7('0x10')]['downcastDispatcher']['on'](_0x3bb7('0x44'),(_0x4bcd50,_0x54f200,_0x562c77)=>{if(!_0x562c77[_0x3bb7('0x79')][_0x3bb7('0x30')])return;const _0xab13d3=_0x54f200[_0x3bb7('0x31')];if(!_0xab13d3)return;const _0x531f99=_0x562c77['mapper']['toViewElement'](_0xab13d3);function _0x57c98b(_0x5eee70){return Array[_0x3bb7('0x2a')](_0x5eee70)?_0x5eee70:[_0x5eee70];}_0x531f99&&_0x3bb7('0xd')===_0xab13d3[_0x3bb7('0x5d')]&&_0x45aa62(_0x531f99,_0x562c77[_0x3bb7('0x20')],(_0x17125e,_0x1bba16,_0x3c5176)=>_0x3c5176[_0x3bb7('0x6')](_0x57c98b(_0x1bba16[_0x3bb7('0x5a')]),_0x17125e),(_0x4158fb,_0x58650f,_0x5b13c6)=>_0x5b13c6[_0x3bb7('0x35')](_0x57c98b(_0x58650f[_0x3bb7('0x5a')]),_0x4158fb));},{'priority':_0x3bb7('0x34')}),_0x4e08d4[_0x3bb7('0x67')][_0x3bb7('0x42')](_0x59aea2=>{if(_0x3bb7('0x7')!=_0x59aea2[_0x3bb7('0x23')]&&'deletion'!=_0x59aea2[_0x3bb7('0x23')])return;const _0xc111df=_0x59aea2[_0x3bb7('0x77')]();if(null!=_0xc111df&&_0xc111df['is'](_0x3bb7('0x41'),'table')){if(_0x3bb7('0x7')==_0x59aea2[_0x3bb7('0x23')]){const _0x1fb1a8=_0x59aea2[_0x3bb7('0x70')]()[_0x3bb7('0x66')](_0x8b8921=>_0x8b8921['is'](_0x3bb7('0x75')))[_0x3bb7('0x15')](_0x3b284f=>_0x3b284f[_0x3bb7('0x10')]);if(_0x1fb1a8[_0x3bb7('0x76')])return{'type':'insertion','content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x3e'),_0x4fcb4d(_0x2ab477,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb1a8[_0x3bb7('0xa')]('\x20')+'\x22'))};}if(_0x3bb7('0x5f')==_0x59aea2[_0x3bb7('0x23')]){const _0x3a4530=_0x59aea2[_0x3bb7('0x70')]()['filter'](_0x139502=>_0x139502['is'](_0x3bb7('0x75')))[_0x3bb7('0x15')](_0x1fd7cf=>_0x1fd7cf[_0x3bb7('0x10')]);if(_0x3a4530[_0x3bb7('0x76')])return{'type':'deletion','content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x1a'),_0x4fcb4d(_0x2ab477,_0x3bb7('0x1c'),'\x22'+_0x3a4530[_0x3bb7('0xa')]('\x20')+'\x22'))};}}}),_0x4e08d4['_descriptionFactory'][_0x3bb7('0x42')](_0x44ee62=>{if(_0x3bb7('0x1b')==_0x44ee62[_0x3bb7('0x45')]){const _0x2d8b0f=_0x44ee62[_0x3bb7('0x70')]()[_0x3bb7('0x66')](_0x3bbf6a=>_0x3bbf6a['is'](_0x3bb7('0x75')))[_0x3bb7('0x15')](_0x297832=>_0x297832[_0x3bb7('0x10')]),_0x29d376=this[_0x3bb7('0x1e')](_0x44ee62),_0x2af21a=_0x29d376[_0x3bb7('0x7f')]-_0x29d376['minRow']+0x1;if(_0x3bb7('0x7')==_0x44ee62['type'])return _0x2d8b0f[_0x3bb7('0x76')]?{'type':_0x3bb7('0x7'),'content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x3e'),_0x4fcb4d(_0x2ab477,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2af21a,'\x22'+_0x2d8b0f[_0x3bb7('0xa')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x3e'),_0x4fcb4d(_0x2ab477,_0x3bb7('0x22'),_0x2af21a))};if(_0x3bb7('0x5f')==_0x44ee62[_0x3bb7('0x23')])return _0x2d8b0f[_0x3bb7('0x76')]?{'type':'deletion','content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x1a'),_0x4fcb4d(_0x2ab477,_0x3bb7('0x54'),[_0x2af21a,'\x22'+_0x2d8b0f[_0x3bb7('0xa')]('\x20')+'\x22']))}:{'type':_0x3bb7('0x5f'),'content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x1a'),_0x4fcb4d(_0x2ab477,_0x3bb7('0x22'),_0x2af21a))};}if('tableColumn'==_0x44ee62[_0x3bb7('0x45')]){const _0x284254=_0x44ee62[_0x3bb7('0x70')]()[_0x3bb7('0x66')](_0x356630=>_0x356630['is'](_0x3bb7('0x75')))['map'](_0x3b3cfa=>_0x3b3cfa[_0x3bb7('0x10')]),_0x1a4990=this[_0x3bb7('0x1e')](_0x44ee62),_0x3699a0=_0x1a4990['maxColumn']-_0x1a4990['minColumn']+0x1;if(_0x3bb7('0x7')==_0x44ee62['type'])return _0x284254[_0x3bb7('0x76')]?{'type':_0x3bb7('0x7'),'content':_0x4fcb4d(_0x2ab477,'*Insert:*\x20%0',_0x4fcb4d(_0x2ab477,_0x3bb7('0x59'),[_0x3699a0,'\x22'+_0x284254[_0x3bb7('0xa')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x4fcb4d(_0x2ab477,_0x3bb7('0x3e'),_0x4fcb4d(_0x2ab477,_0x3bb7('0x49'),_0x3699a0))};if(_0x3bb7('0x5f')==_0x44ee62[_0x3bb7('0x23')])return _0x284254[_0x3bb7('0x76')]?{'type':_0x3bb7('0x5f'),'content':_0x4fcb4d(_0x2ab477,'*Remove:*\x20%0',_0x4fcb4d(_0x2ab477,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3699a0,'\x22'+_0x284254[_0x3bb7('0xa')]('\x20')+'\x22']))}:{'type':_0x3bb7('0x5f'),'content':_0x4fcb4d(_0x2ab477,'*Remove:*\x20%0',_0x4fcb4d(_0x2ab477,_0x3bb7('0x49'),_0x3699a0))};}}),_0x4e08d4[_0x3bb7('0x4c')][_0x3bb7('0x9')]('insertion',_0x3bb7('0x1b'),_0x3bb7('0x4a'),_0x61578e),_0x4e08d4[_0x3bb7('0x4c')][_0x3bb7('0x9')](_0x3bb7('0x5f'),'tableRow',_0x3bb7('0x47'),_0x61578e),_0x4e08d4['_suggestionFactory'][_0x3bb7('0x9')]('insertion',_0x3bb7('0x18'),_0x3bb7('0x4a'),_0x1a5723),_0x4e08d4[_0x3bb7('0x4c')][_0x3bb7('0x9')](_0x3bb7('0x5f'),_0x3bb7('0x18'),'accept',_0x1a5723),_0x4e08d4[_0x3bb7('0x4c')][_0x3bb7('0x9')](_0x3bb7('0x7'),_0x3bb7('0x18'),_0x3bb7('0xa'),_0x2801bd),_0x4e08d4['_suggestionFactory'][_0x3bb7('0x9')](_0x3bb7('0x5f'),_0x3bb7('0x18'),_0x3bb7('0xa'),_0x2801bd),_0x4e08d4['_suggestionFactory'][_0x3bb7('0x9')]('insertion',_0x3bb7('0x1b'),_0x3bb7('0xa'),_0x507c58),_0x4e08d4['_suggestionFactory'][_0x3bb7('0x9')](_0x3bb7('0x5f'),_0x3bb7('0x1b'),_0x3bb7('0xa'),_0x507c58);}[_0x3bb7('0x38')](){const _0x13ecd6=this[_0x3bb7('0x4d')],_0x410a87=_0x13ecd6[_0x3bb7('0x63')][_0x3bb7('0xc')]['selection'];return(_0x46e5a4,_0x17795b)=>{_0x13ecd6[_0x3bb7('0x63')]['change'](_0x492608=>{const {commandName:_0x59bc47,commandParams:_0x3aa23f}=_0x17795b;let _0x31a127=_0x46e5a4[0x0][_0x3bb7('0x26')][_0x3bb7('0x71')];_0x3aa23f&&_0x3aa23f[0x0]&&!0x1===_0x3aa23f[0x0][_0x3bb7('0x1')]&&(_0x31a127=_0x46e5a4[0x0][_0x3bb7('0x25')][_0x3bb7('0x61')]);const _0x8673d7=_0x492608['createRangeIn'](_0x31a127);if(_0x3bb7('0x68')==_0x8673d7['root'][_0x3bb7('0x73')])return;const _0x3e00be=Array['from'](_0x410a87[_0x3bb7('0x36')]())['map'](_0x35fc89=>_0x3f1242[_0x3bb7('0x2e')](_0x35fc89));_0x492608[_0x3bb7('0x37')](_0x8673d7),_0x13ecd6['commands'][_0x3bb7('0x55')](_0x59bc47)[_0x3bb7('0x58')](),_0x3aa23f['push']({'forceDefaultExecution':!0x0}),_0x13ecd6['execute'](_0x59bc47,..._0x3aa23f);const _0x3c9953=_0x3e00be[_0x3bb7('0x66')](_0x2897c7=>'$graveyard'!=_0x2897c7[_0x3bb7('0x4e')]['rootName']);_0x3c9953[_0x3bb7('0x76')]>0x0&&_0x492608[_0x3bb7('0x37')](_0x3c9953);for(const _0x3e72a6 of _0x3e00be)_0x3e72a6[_0x3bb7('0x32')]();});};}[_0x3bb7('0x3f')](_0xb4b7f){const _0x264465=this[_0x3bb7('0x4d')][_0x3bb7('0x3b')][_0x3bb7('0x55')](_0x3bb7('0x5e'));let _0x4dfefe=Number['MAX_SAFE_INTEGER'],_0x444de1=Number[_0x3bb7('0x11')],_0x4f8550=Number[_0x3bb7('0x4b')],_0x2d624f=Number['MIN_SAFE_INTEGER'];for(const _0x1fcc60 of _0xb4b7f){if(_0x3bb7('0x68')==_0x1fcc60[_0x3bb7('0x4e')][_0x3bb7('0x73')])continue;const {row:_0x596815,column:_0x39f638}=_0x264465[_0x3bb7('0x7d')](_0x1fcc60),_0x44b563=_0x1fcc60[_0x3bb7('0x16')](_0x3bb7('0x17'))?_0x1fcc60[_0x3bb7('0x3d')]('rowspan')-0x1:0x0,_0x19fa82=_0x1fcc60[_0x3bb7('0x16')](_0x3bb7('0x7a'))?_0x1fcc60[_0x3bb7('0x3d')](_0x3bb7('0x7a'))-0x1:0x0;_0x4dfefe=_0x596815<_0x4dfefe?_0x596815:_0x4dfefe,_0x444de1=_0x596815+_0x44b563>_0x444de1?_0x596815+_0x44b563:_0x444de1,_0x4f8550=_0x39f638<_0x4f8550?_0x39f638:_0x4f8550,_0x2d624f=_0x39f638+_0x19fa82>_0x2d624f?_0x39f638+_0x19fa82:_0x2d624f;}return{'minRow':_0x4dfefe,'maxRow':_0x444de1,'minColumn':_0x4f8550,'maxColumn':_0x2d624f};}[_0x3bb7('0x78')](){const _0x4e9edb=this[_0x3bb7('0x4d')],_0x516655=_0x4e9edb['plugins'][_0x3bb7('0x55')](_0x3bb7('0x13')),_0x411fb6=_0x4e9edb['plugins'][_0x3bb7('0x55')]('TableUtils');_0x4e9edb['model']['document']['on'](_0x3bb7('0x2c'),()=>{const _0x3f304c=Array[_0x3bb7('0xe')](_0x4e9edb[_0x3bb7('0x63')][_0x3bb7('0xc')][_0x3bb7('0x0')]['getChangedMarkers']());for(const {name:_0x35bdff,data:_0x3b7a51}of _0x3f304c){const {group:_0x2fd921,id:_0x2ffaa8,subType:_0x35b7a2}=_0x516655[_0x3bb7('0x1f')](_0x35bdff);if(_0x3bb7('0x40')!=_0x2fd921)continue;if(null!=_0x3b7a51['oldRange'])continue;const _0x51b14b=_0x516655[_0x3bb7('0x65')](_0x2ffaa8);this[_0x3bb7('0x5b')]['includes'](_0x35b7a2)&&this[_0x3bb7('0x46')]['add'](_0x51b14b);}},{'priority':'low'});const _0x5a226b=(_0x819cf6,_0x2af4a3)=>{let _0x5716f3=!0x1;const _0x18815=_0x2af4a3[_0x3bb7('0x43')](_0x819cf6),_0x381997=_0x819cf6[_0x3bb7('0x57')](_0x3bb7('0x62')),_0x104a74=_0x411fb6[_0x3bb7('0x7d')](_0x819cf6);for(const _0x40ac52 of this[_0x3bb7('0x46')]){const _0x2de486=_0x40ac52[_0x3bb7('0x45')],_0x39925b=_0x2de486[_0x3bb7('0x80')](_0x3bb7('0x28')),_0x3a9f95=_0x2de486[_0x3bb7('0x3')](_0x39925b?0xa:0x5),_0xb0b729=_0x3a9f95[_0x3bb7('0x8')](),_0x2e9ce5=_0xb0b729[_0x3bb7('0x3')](0x0,0x3)+_0x3bb7('0x21'),_0xfef9c9=_0x3bb7('0x48')+_0x3a9f95,_0x42f86d=_0x3bb7('0x81')+_0x3a9f95;if(!_0x40ac52[_0x3bb7('0x19')])continue;if(_0x381997!=_0x40ac52[_0x3bb7('0x6c')]()[_0x3bb7('0x25')][_0x3bb7('0x57')](_0x3bb7('0x62')))continue;if(_0x40ac52[_0x3bb7('0x2f')](_0x18815))continue;const _0x2bc8bc=_0x819cf6[_0x3bb7('0x16')](_0x2e9ce5)?_0x819cf6[_0x3bb7('0x3d')](_0x2e9ce5)-0x1:0x0,_0x22acbd=this[_0x3bb7('0x1e')](_0x40ac52),_0x54f56e=_0x22acbd[_0xfef9c9],_0x3304d4=_0x22acbd[_0x42f86d];_0x54f56e<=_0x104a74[_0xb0b729]&&_0x104a74[_0xb0b729]+_0x2bc8bc<=_0x3304d4&&(_0x40ac52['addRange'](_0x18815),_0x5716f3=!0x0);}return _0x5716f3;};_0x4e9edb[_0x3bb7('0x63')][_0x3bb7('0xc')][_0x3bb7('0x3c')](_0xbc4dae=>{let _0x4e659b=!0x1;for(const _0x3f27e4 of _0x4e9edb[_0x3bb7('0x63')][_0x3bb7('0xc')][_0x3bb7('0x0')][_0x3bb7('0x33')]())if('insert'==_0x3f27e4[_0x3bb7('0x23')]){if(_0x3bb7('0x1b')==_0x3f27e4[_0x3bb7('0x5d')])for(const _0x307de0 of _0x3f27e4[_0x3bb7('0xf')][_0x3bb7('0x61')][_0x3bb7('0x7c')]())_0x4e659b=_0x4e659b||_0x5a226b(_0x307de0,_0xbc4dae);else _0x3bb7('0xd')==_0x3f27e4[_0x3bb7('0x5d')]&&(_0x4e659b=_0x4e659b||_0x5a226b(_0x3f27e4[_0x3bb7('0xf')]['nodeAfter'],_0xbc4dae));}return _0x4e659b;});}[_0x3bb7('0x1e')](_0x1d1e29){return this[_0x3bb7('0x3f')](_0x1d1e29[_0x3bb7('0x36')]()[_0x3bb7('0x15')](_0x356396=>_0x356396['start']['nodeAfter']));}}function se(_0x4a17dc){return Array[_0x3bb7('0xe')](new Set(_0x4a17dc)[_0x3bb7('0x4f')]());}
|
|
23
|
+
const _0x39c2=['filter','insert','plugins','suggestion','element','tableRow','removeTableColumn','TrackChangesEditing','tableCell','highest','removeTableRow','data','_descriptionFactory','createTableWalker','end','map','deletion','insertTableRowBelow','registerDescriptionCallback','_getCoordsForCells','type','insertTableRowAbove','createRangeOn','markMultiRangeDeletion','batch','insertion','min','commands','push','substr','length','$textProxy','editor','subType','createPositionAt','fromRange','low','registerCustomCallback','insertTableColumnLeft','rootName','insertTableColumnRight','cell','model','ELEMENT_TABLE_ROW','downcastDispatcher','createRangeIn','afterInit','getSelectionAffectedTableCells','execute','discard','accept','registerElementLabel','tableColumn','tablePaste','addRange','ELEMENT_TABLE_ROW_WITH_TEXT','minColumn','getFirstRange','nodeAfter','oldRange','name','from','root','maxRow','getChanges','colspan','TableUtils','last','getSuggestion','findAncestor','options','nodeBefore','position','isInContent','table','maxColumn','some','first','detach','hasAttribute','max','refresh','getContainedElement','ELEMENT_TABLE_COLUMN','_tableSuggestions','_getSuggestionCoords','start','order','getCellLocation','_splitMarkerName','getColumnIndexes','getRanges','above','$graveyard','ELEMENT_TABLE_COLUMN_WITH_TEXT','isEqual','startsWith','isIntersectingWithRange','TableEditing','enqueueChange','*Insert:*\x20%0','values','has','MIN_SAFE_INTEGER','getItems','*Remove:*\x20%0','getAttribute','addMarker:suggestion','setSelection','span','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','addClass','differ','locale','writer','ELEMENT_TABLE','change','toLowerCase','get','insertTable','enableCommand','rowspan','toViewElement','markMultiRangeInsertion','_setupColumnsRowsFixing','left','change:data','MAX_SAFE_INTEGER','classes','selection','document','join','isTouching'];(function(_0x25e6e9,_0x39c2ff){const _0x1aac08=function(_0x549903){while(--_0x549903){_0x25e6e9['push'](_0x25e6e9['shift']());}};_0x1aac08(++_0x39c2ff);}(_0x39c2,0x103));const _0x1aac=function(_0x25e6e9,_0x39c2ff){_0x25e6e9=_0x25e6e9-0x0;let _0x1aac08=_0x39c2[_0x25e6e9];return _0x1aac08;};import{Plugin as _0x1c2dd1}from'ckeditor5/src/core';import{LiveRange as _0x194adf}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3cc5f2}from'ckeditor5/src/widget';import{getTranslation as _0x244273}from'../utils/common-translations';export default class wt extends _0x1c2dd1{constructor(_0x68fa3f){super(_0x68fa3f),this['_tablePostFixingSubtypes']=[_0x1aac('0xe'),_0x1aac('0x3d')],this[_0x1aac('0x5d')]=new Set();}[_0x1aac('0x37')](){const _0x4bcc92=this['editor'],_0x4089cd=_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x5')];if(!_0x4bcc92[_0x1aac('0xb')][_0x1aac('0x6f')](_0x1aac('0x6b')))return;const _0x467dfa=_0x4bcc92[_0x1aac('0x7b')],_0x38a711=_0x4bcc92[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x10')),_0x1c9e22=_0x4bcc92[_0x1aac('0xb')]['get'](_0x1aac('0x4b'));_0x38a711[_0x1aac('0x15')][_0x1aac('0x3c')](_0x1aac('0x53'),_0x4799ee=>_0x244273(_0x467dfa,_0x1aac('0x7d'),_0x4799ee)),this[_0x1aac('0x0')](),_0x38a711[_0x1aac('0x82')](_0x1aac('0x81')),_0x38a711[_0x1aac('0x82')]('selectTableRow'),_0x38a711[_0x1aac('0x82')]('selectTableColumn');for(const _0x357d8a of[_0x1aac('0x1e'),_0x1aac('0x1a')]){const _0x236451=_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')](_0x357d8a);_0x38a711[_0x1aac('0x82')](_0x357d8a,_0x467b8f=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x2d4ba6=>{_0x467b8f();const _0xd9ee05=_0x1aac('0x65')===_0x236451[_0x1aac('0x60')],_0x2ed627=_0x1c9e22[_0x1aac('0x38')](_0x4089cd),_0xa0cbdb=_0x1c9e22['getRowIndexes'](_0x2ed627),_0x50b8da=_0xd9ee05?_0xa0cbdb[_0x1aac('0x56')]-0x1:_0xa0cbdb['last']+0x1,_0x348524=_0x2ed627[0x0][_0x1aac('0x4e')](_0x1aac('0x53')),_0x1c67ef=_0x1c9e22['createTableWalker'](_0x348524,{'startRow':_0x50b8da,'endRow':_0x50b8da}),_0x339a05=Array[_0x1aac('0x46')](_0x1c67ef)[_0x1aac('0x18')](_0x5846d2=>_0x2d4ba6[_0x1aac('0x1f')](_0x5846d2[_0x1aac('0x32')]));_0x38a711[_0x1aac('0x85')](_0x339a05,_0x1aac('0xe'));});});}for(const _0x4ea058 of[_0x1aac('0x2f'),_0x1aac('0x31')]){const _0x3f1b03=_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')](_0x4ea058);_0x38a711['enableCommand'](_0x4ea058,_0x1a6677=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x4fd324=>{_0x1a6677();const _0xbecba9=_0x1aac('0x1')===_0x3f1b03[_0x1aac('0x60')],_0x3e39f5=_0x1c9e22['getSelectionAffectedTableCells'](_0x4089cd),_0xcdc16d=_0x1c9e22['getColumnIndexes'](_0x3e39f5),_0x117702=_0xbecba9?_0xcdc16d['first']-0x1:_0xcdc16d[_0x1aac('0x4c')]+0x1,_0x3b46ea=_0x3e39f5[0x0][_0x1aac('0x4e')](_0x1aac('0x53')),_0xb84ded=_0x1c9e22[_0x1aac('0x16')](_0x3b46ea,{'startRow':0x0,'column':_0x117702,'includeAllSlots':!0x1}),_0x32b36d=Array['from'](_0xb84ded)[_0x1aac('0x18')](_0x472d36=>_0x4fd324[_0x1aac('0x1f')](_0x472d36['cell']));_0x38a711[_0x1aac('0x85')](_0x32b36d,_0x1aac('0x3d'));});});}for(const _0x408250 of['removeTableRow',_0x1aac('0xf')]){const _0x26adec=_0x408250['substr'](0xb),_0x3d9e36=_0x26adec[_0x1aac('0x7f')](),_0x193727=_0x3d9e36[_0x1aac('0x26')](0x0,0x3)+'span',_0x4140a3=_0x1aac('0x53')+_0x26adec,_0x43ffe0=_0x1aac('0x23')+_0x26adec,_0x55bc96='max'+_0x26adec;_0x38a711['enableCommand'](_0x408250,()=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x1684fe=>{const _0x54a309=_0x1c9e22[_0x1aac('0x38')](_0x4089cd),_0x2c60fb=_0x54a309[0x0]['findAncestor'](_0x1aac('0x53'));let _0x4861d1;if(_0x1aac('0x13')==_0x408250){const _0x43bd07=_0x1c9e22['getRowIndexes'](_0x54a309);_0x4861d1={'startRow':_0x43bd07[_0x1aac('0x56')],'endRow':_0x43bd07[_0x1aac('0x4c')],'includeAllSlots':!0x0};}else{const _0x4b45ab=_0x1c9e22[_0x1aac('0x63')](_0x54a309);_0x4861d1={'startColumn':_0x4b45ab[_0x1aac('0x56')],'endColumn':_0x4b45ab[_0x1aac('0x4c')],'includeAllSlots':!0x0};}const _0x3d140a=_0x1c9e22[_0x1aac('0x16')](_0x2c60fb,_0x4861d1),_0x1b24d5=Array['from'](_0x3d140a)[_0x1aac('0x18')](({cell:_0x50987f})=>_0x50987f),_0x1b6f62=se(_0x1b24d5['filter'](_0x3ac970=>_0x3ac970[_0x1aac('0x58')](_0x193727))),_0x36c6e6=se(_0x1b24d5[_0x1aac('0x9')](_0x88b6ac=>!_0x88b6ac['hasAttribute'](_0x193727)))[_0x1aac('0x18')](_0x22c4ba=>_0x1684fe[_0x1aac('0x1f')](_0x22c4ba)),_0x3ef2a0=_0x38a711[_0x1aac('0x20')](_0x36c6e6,_0x4140a3);if(_0x3ef2a0&&('tableRow'==_0x3ef2a0[_0x1aac('0x2a')]||'tableColumn'==_0x3ef2a0['subType'])){const _0x501618=this[_0x1aac('0x5e')](_0x3ef2a0);for(const _0x46bc7e of _0x1b6f62){const _0x432761=_0x1684fe[_0x1aac('0x1f')](_0x46bc7e),_0x2fabc1=_0x1c9e22[_0x1aac('0x61')](_0x46bc7e),_0x3eec01=_0x46bc7e['getAttribute'](_0x193727)-0x1,_0x673ed=_0x501618[_0x43ffe0],_0xe8075=_0x501618[_0x55bc96];_0x673ed<=_0x2fabc1[_0x3d9e36]&&_0x2fabc1[_0x3d9e36]+_0x3eec01<=_0xe8075&&_0x3ef2a0[_0x1aac('0x3f')](_0x432761);}}});});}function _0x2e89fa(_0x2f1215){const _0x187cad=Array[_0x1aac('0x46')](_0x4089cd['getRanges']())['map'](_0x37ef59=>_0x194adf[_0x1aac('0x2c')](_0x37ef59));_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x310c55=>{const _0x5bb6ac=_0x310c55[_0x1aac('0x21')];_0x2f1215=_0x2f1215['filter'](_0x55a533=>_0x1aac('0x66')!=_0x55a533[_0x1aac('0x47')][_0x1aac('0x30')]),_0x310c55['setSelection'](_0x2f1215),_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')]('removeTableRow')[_0x1aac('0x5a')](),_0x4bcc92[_0x1aac('0x39')](_0x1aac('0x13'),{'forceDefaultExecution':!0x0}),_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6c')](()=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6c')](_0x5bb6ac,_0x1fa6c4=>{const _0x39c50b=_0x187cad['filter'](_0x1a10e3=>_0x1aac('0x66')!=_0x1a10e3[_0x1aac('0x47')][_0x1aac('0x30')]);_0x39c50b[_0x1aac('0x27')]>0x0&&_0x1fa6c4[_0x1aac('0x75')](_0x39c50b);for(const _0x43ca55 of _0x187cad)_0x43ca55[_0x1aac('0x57')]();});});});}function _0x2a7d70(_0x37d9ef){_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x2ee209=>{const _0x403526=Array[_0x1aac('0x46')](_0x4089cd[_0x1aac('0x64')]())[_0x1aac('0x18')](_0x371793=>_0x194adf[_0x1aac('0x2c')](_0x371793)),_0x5505ad=[];for(const _0xeb8548 of _0x37d9ef)for(const _0x2859c8 of _0xeb8548[_0x1aac('0x71')]({'shallow':!0x0}))_0x5505ad[_0x1aac('0x25')](_0x2859c8);for(const _0x25b62c of _0x5505ad)_0x1aac('0x66')!=_0x25b62c['root'][_0x1aac('0x30')]&&(_0x2ee209[_0x1aac('0x75')](_0x2ee209[_0x1aac('0x2b')](_0x25b62c,0x0)),_0x4bcc92[_0x1aac('0x24')]['get']('removeTableColumn')['refresh'](),_0x4bcc92[_0x1aac('0x39')](_0x1aac('0xf'),{'forceDefaultExecution':!0x0}));const _0x15eb9a=_0x403526[_0x1aac('0x9')](_0x26d20a=>_0x1aac('0x66')!=_0x26d20a['root']['rootName']);_0x15eb9a[_0x1aac('0x27')]>0x0&&_0x2ee209[_0x1aac('0x75')](_0x15eb9a);for(const _0x121747 of _0x403526)_0x121747[_0x1aac('0x57')]();});}function _0x37fffc(_0x1e8df6,_0x26a959){return _0x26a959['every'](_0x1eefc3=>_0x1e8df6[_0x1aac('0x55')](_0x39a76f=>_0x39a76f['end'][_0x1aac('0x68')](_0x1eefc3[_0x1aac('0x5f')])||_0x1eefc3[_0x1aac('0x17')][_0x1aac('0x68')](_0x39a76f[_0x1aac('0x5f')])));}function _0x42994d(_0xccda5c,_0x14f2ab){return _0xccda5c[_0x1aac('0x55')](_0x219c0f=>_0x14f2ab[_0x1aac('0x55')](_0x334608=>_0x219c0f[_0x1aac('0x17')][_0x1aac('0x8')](_0x334608[_0x1aac('0x5f')])));}_0x4bcc92[_0x1aac('0x14')][_0x1aac('0x35')]['on'](_0x1aac('0x74'),(_0x116b01,_0x485cef,_0x4321fb)=>{if(!_0x4321fb[_0x1aac('0x4f')]['showSuggestionHighlights'])return;const _0x28c640=_0x485cef['item'];if(!_0x28c640)return;const _0x2e9002=_0x4321fb['mapper'][_0x1aac('0x84')](_0x28c640);function _0x32f44b(_0x81b509){return Array['isArray'](_0x81b509)?_0x81b509:[_0x81b509];}_0x2e9002&&'tableCell'===_0x28c640[_0x1aac('0x45')]&&_0x3cc5f2(_0x2e9002,_0x4321fb[_0x1aac('0x7c')],(_0x1254b9,_0x27c4f3,_0x19c400)=>_0x19c400[_0x1aac('0x79')](_0x32f44b(_0x27c4f3[_0x1aac('0x4')]),_0x1254b9),(_0x594568,_0x2f1b96,_0x4db2c7)=>_0x4db2c7['removeClass'](_0x32f44b(_0x2f1b96[_0x1aac('0x4')]),_0x594568));},{'priority':_0x1aac('0x12')}),_0x38a711['_descriptionFactory']['registerDescriptionCallback'](_0x27a881=>{if('insertion'!=_0x27a881[_0x1aac('0x1d')]&&_0x1aac('0x19')!=_0x27a881[_0x1aac('0x1d')])return;const _0x281eab=_0x27a881[_0x1aac('0x5b')]();if(null!=_0x281eab&&_0x281eab['is'](_0x1aac('0xd'),'table')){if(_0x1aac('0x22')==_0x27a881['type']){const _0x220d45=_0x27a881['getItems']()[_0x1aac('0x9')](_0x2f1f6d=>_0x2f1f6d['is'](_0x1aac('0x28')))['map'](_0x4d2400=>_0x4d2400[_0x1aac('0x14')]);if(_0x220d45['length'])return{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x220d45[_0x1aac('0x7')]('\x20')+'\x22'))};}if(_0x1aac('0x19')==_0x27a881['type']){const _0x27fc19=_0x27a881['getItems']()[_0x1aac('0x9')](_0x5c992f=>_0x5c992f['is'](_0x1aac('0x28')))['map'](_0x77855d=>_0x77855d[_0x1aac('0x14')]);if(_0x27fc19['length'])return{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27fc19[_0x1aac('0x7')]('\x20')+'\x22'))};}}}),_0x38a711[_0x1aac('0x15')][_0x1aac('0x1b')](_0x5b8382=>{if('tableRow'==_0x5b8382[_0x1aac('0x2a')]){const _0x17a700=_0x5b8382[_0x1aac('0x71')]()[_0x1aac('0x9')](_0x571ff0=>_0x571ff0['is'](_0x1aac('0x28')))[_0x1aac('0x18')](_0x3e396e=>_0x3e396e['data']),_0x5a7703=this['_getSuggestionCoords'](_0x5b8382),_0x49549d=_0x5a7703[_0x1aac('0x48')]-_0x5a7703['minRow']+0x1;if(_0x1aac('0x22')==_0x5b8382[_0x1aac('0x1d')])return _0x17a700[_0x1aac('0x27')]?{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,'*Insert:*\x20%0',_0x244273(_0x467dfa,_0x1aac('0x40'),[_0x49549d,'\x22'+_0x17a700[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x34'),_0x49549d))};if('deletion'==_0x5b8382[_0x1aac('0x1d')])return _0x17a700[_0x1aac('0x27')]?{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,'*Remove:*\x20%0',_0x244273(_0x467dfa,_0x1aac('0x40'),[_0x49549d,'\x22'+_0x17a700[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x34'),_0x49549d))};}if('tableColumn'==_0x5b8382['subType']){const _0x2c73c9=_0x5b8382[_0x1aac('0x71')]()[_0x1aac('0x9')](_0x5c71aa=>_0x5c71aa['is']('$textProxy'))[_0x1aac('0x18')](_0x31179d=>_0x31179d['data']),_0x154d8c=this[_0x1aac('0x5e')](_0x5b8382),_0x20f1bf=_0x154d8c[_0x1aac('0x54')]-_0x154d8c[_0x1aac('0x41')]+0x1;if(_0x1aac('0x22')==_0x5b8382['type'])return _0x2c73c9['length']?{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x67'),[_0x20f1bf,'\x22'+_0x2c73c9[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x5c'),_0x20f1bf))};if(_0x1aac('0x19')==_0x5b8382['type'])return _0x2c73c9[_0x1aac('0x27')]?{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x67'),[_0x20f1bf,'\x22'+_0x2c73c9[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x5c'),_0x20f1bf))};}}),_0x38a711['_suggestionFactory']['registerCustomCallback'](_0x1aac('0x22'),'tableRow',_0x1aac('0x3a'),_0x2e89fa),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')](_0x1aac('0x19'),_0x1aac('0xe'),_0x1aac('0x3b'),_0x2e89fa),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')]('insertion',_0x1aac('0x3d'),_0x1aac('0x3a'),_0x2a7d70),_0x38a711['_suggestionFactory']['registerCustomCallback'](_0x1aac('0x19'),_0x1aac('0x3d'),'accept',_0x2a7d70),_0x38a711['_suggestionFactory'][_0x1aac('0x2e')](_0x1aac('0x22'),'tableColumn',_0x1aac('0x7'),_0x37fffc),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')](_0x1aac('0x19'),_0x1aac('0x3d'),_0x1aac('0x7'),_0x37fffc),_0x38a711[_0x1aac('0x77')]['registerCustomCallback'](_0x1aac('0x22'),_0x1aac('0xe'),_0x1aac('0x7'),_0x42994d),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')]('deletion',_0x1aac('0xe'),'join',_0x42994d);}[_0x1aac('0x78')](){const _0x2e5e85=this[_0x1aac('0x29')],_0x5d9de6=_0x2e5e85[_0x1aac('0x33')]['document']['selection'];return(_0x594346,_0x5b27ef)=>{_0x2e5e85[_0x1aac('0x33')]['change'](_0x17985c=>{const {commandName:_0x4320ee,commandParams:_0x3201e8}=_0x5b27ef;let _0x542ef4=_0x594346[0x0][_0x1aac('0x17')][_0x1aac('0x50')];_0x3201e8&&_0x3201e8[0x0]&&!0x1===_0x3201e8[0x0]['forceValue']&&(_0x542ef4=_0x594346[0x0][_0x1aac('0x5f')][_0x1aac('0x43')]);const _0x238e61=_0x17985c[_0x1aac('0x36')](_0x542ef4);if(_0x1aac('0x66')==_0x238e61[_0x1aac('0x47')][_0x1aac('0x30')])return;const _0x2480b7=Array[_0x1aac('0x46')](_0x5d9de6[_0x1aac('0x64')]())['map'](_0x10c469=>_0x194adf['fromRange'](_0x10c469));_0x17985c[_0x1aac('0x75')](_0x238e61),_0x2e5e85[_0x1aac('0x24')][_0x1aac('0x80')](_0x4320ee)['refresh'](),_0x3201e8[_0x1aac('0x25')]({'forceDefaultExecution':!0x0}),_0x2e5e85['execute'](_0x4320ee,..._0x3201e8);const _0x582deb=_0x2480b7[_0x1aac('0x9')](_0x56437f=>_0x1aac('0x66')!=_0x56437f['root']['rootName']);_0x582deb[_0x1aac('0x27')]>0x0&&_0x17985c[_0x1aac('0x75')](_0x582deb);for(const _0x3cadd4 of _0x2480b7)_0x3cadd4[_0x1aac('0x57')]();});};}[_0x1aac('0x1c')](_0xd780aa){const _0x46624d=this['editor']['plugins'][_0x1aac('0x80')](_0x1aac('0x4b'));let _0x10e1ed=Number[_0x1aac('0x3')],_0x2f7795=Number[_0x1aac('0x70')],_0x4e3de6=Number[_0x1aac('0x3')],_0x51e699=Number[_0x1aac('0x70')];for(const _0x5af932 of _0xd780aa){if(_0x1aac('0x66')==_0x5af932[_0x1aac('0x47')][_0x1aac('0x30')])continue;const {row:_0x3c2be5,column:_0x1a8dfa}=_0x46624d['getCellLocation'](_0x5af932),_0x264916=_0x5af932['hasAttribute'](_0x1aac('0x83'))?_0x5af932[_0x1aac('0x73')](_0x1aac('0x83'))-0x1:0x0,_0x9032b=_0x5af932[_0x1aac('0x58')](_0x1aac('0x4a'))?_0x5af932[_0x1aac('0x73')](_0x1aac('0x4a'))-0x1:0x0;_0x10e1ed=_0x3c2be5<_0x10e1ed?_0x3c2be5:_0x10e1ed,_0x2f7795=_0x3c2be5+_0x264916>_0x2f7795?_0x3c2be5+_0x264916:_0x2f7795,_0x4e3de6=_0x1a8dfa<_0x4e3de6?_0x1a8dfa:_0x4e3de6,_0x51e699=_0x1a8dfa+_0x9032b>_0x51e699?_0x1a8dfa+_0x9032b:_0x51e699;}return{'minRow':_0x10e1ed,'maxRow':_0x2f7795,'minColumn':_0x4e3de6,'maxColumn':_0x51e699};}[_0x1aac('0x0')](){const _0x4f2f66=this[_0x1aac('0x29')],_0x59f579=_0x4f2f66[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x10')),_0x171882=_0x4f2f66[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x4b'));_0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')]['on'](_0x1aac('0x2'),()=>{const _0x16a8eb=Array[_0x1aac('0x46')](_0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x7a')]['getChangedMarkers']());for(const {name:_0x430929,data:_0x10c9da}of _0x16a8eb){const {group:_0x69ab46,id:_0x38a0a7,subType:_0x1da8c7}=_0x59f579[_0x1aac('0x62')](_0x430929);if(_0x1aac('0xc')!=_0x69ab46)continue;if(null!=_0x10c9da[_0x1aac('0x44')])continue;const _0xc09c5e=_0x59f579[_0x1aac('0x4d')](_0x38a0a7);this['_tablePostFixingSubtypes']['includes'](_0x1da8c7)&&this['_tableSuggestions']['add'](_0xc09c5e);}},{'priority':_0x1aac('0x2d')});const _0x10676e=(_0x488e79,_0x149571)=>{let _0x1c164f=!0x1;const _0x16a424=_0x149571[_0x1aac('0x1f')](_0x488e79),_0x367054=_0x488e79[_0x1aac('0x4e')](_0x1aac('0x53')),_0x44ff8e=_0x171882[_0x1aac('0x61')](_0x488e79);for(const _0x26833e of this['_tableSuggestions']){const _0x35305f=_0x26833e[_0x1aac('0x2a')],_0x27fba3=_0x35305f[_0x1aac('0x69')](_0x1aac('0x3e')),_0x432c94=_0x35305f[_0x1aac('0x26')](_0x27fba3?0xa:0x5),_0x440b39=_0x432c94['toLowerCase'](),_0x3798e8=_0x440b39['substr'](0x0,0x3)+_0x1aac('0x76'),_0x501644=_0x1aac('0x23')+_0x432c94,_0x4931af=_0x1aac('0x59')+_0x432c94;if(!_0x26833e[_0x1aac('0x52')])continue;if(_0x367054!=_0x26833e[_0x1aac('0x42')]()[_0x1aac('0x5f')][_0x1aac('0x4e')](_0x1aac('0x53')))continue;if(_0x26833e[_0x1aac('0x6a')](_0x16a424))continue;const _0x3d59ab=_0x488e79['hasAttribute'](_0x3798e8)?_0x488e79[_0x1aac('0x73')](_0x3798e8)-0x1:0x0,_0x1ba9f2=this[_0x1aac('0x5e')](_0x26833e),_0x19b365=_0x1ba9f2[_0x501644],_0x26c5d7=_0x1ba9f2[_0x4931af];_0x19b365<=_0x44ff8e[_0x440b39]&&_0x44ff8e[_0x440b39]+_0x3d59ab<=_0x26c5d7&&(_0x26833e[_0x1aac('0x3f')](_0x16a424),_0x1c164f=!0x0);}return _0x1c164f;};_0x4f2f66['model'][_0x1aac('0x6')]['registerPostFixer'](_0x43cfc9=>{let _0x1c2d39=!0x1;for(const _0x47a711 of _0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x7a')][_0x1aac('0x49')]())if(_0x1aac('0xa')==_0x47a711[_0x1aac('0x1d')]){if('tableRow'==_0x47a711[_0x1aac('0x45')])for(const _0x55cb73 of _0x47a711[_0x1aac('0x51')]['nodeAfter']['getChildren']())_0x1c2d39=_0x1c2d39||_0x10676e(_0x55cb73,_0x43cfc9);else _0x1aac('0x11')==_0x47a711[_0x1aac('0x45')]&&(_0x1c2d39=_0x1c2d39||_0x10676e(_0x47a711[_0x1aac('0x51')]['nodeAfter'],_0x43cfc9));}return _0x1c2d39;});}[_0x1aac('0x5e')](_0x2a3ca1){return this['_getCoordsForCells'](_0x2a3ca1[_0x1aac('0x64')]()[_0x1aac('0x18')](_0x4edff4=>_0x4edff4[_0x1aac('0x5f')][_0x1aac('0x43')]));}}function se(_0x550116){return Array[_0x1aac('0x46')](new Set(_0x550116)[_0x1aac('0x6e')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42dc=['afterInit','toggleTableCaption','editor','enableCommand','has','plugins','requires','get','TableCaptionEditing'];(function(_0x1e06b6,_0x42dcef){const _0x3cf232=function(_0x262f4b){while(--_0x262f4b){_0x1e06b6['push'](_0x1e06b6['shift']());}};_0x3cf232(++_0x42dcef);}(_0x42dc,0xe2));const _0x3cf2=function(_0x1e06b6,_0x42dcef){_0x1e06b6=_0x1e06b6-0x0;let _0x3cf232=_0x42dc[_0x1e06b6];return _0x3cf232;};import{Plugin as _0x25e97e}from'ckeditor5/src/core';import _0x29c355 from'./table';export default class Nt extends _0x25e97e{static get[_0x3cf2('0x5')](){return[_0x29c355];}[_0x3cf2('0x8')](){const _0x43dfb9=this[_0x3cf2('0x1')];if(!_0x43dfb9[_0x3cf2('0x4')][_0x3cf2('0x3')](_0x3cf2('0x7')))return;_0x43dfb9['plugins'][_0x3cf2('0x6')]('TrackChangesEditing')[_0x3cf2('0x2')](_0x3cf2('0x0'));}}
|