@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231201.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- 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 _0x141f=['accept','getContainedElement','editor','getFirstRange','end','change:data','ELEMENT_TABLE_COLUMN_WITH_TEXT','_splitMarkerName','min','low','createRangeOn','createPositionAt','item','_tablePostFixingSubtypes','insertion','insertTable','highest','map','last','tablePaste','order','getSuggestion','showSuggestionHighlights','enableCommand','includes','length','*Insert:*\x20%0','registerCustomCallback','isInContent','batch','_getCoordsForCells','model','_getSuggestionCoords','$textProxy','setSelection','rowspan','createTableWalker','minColumn','root','get','rootName','max','MIN_SAFE_INTEGER','getSelectionAffectedTableCells','isEqual','tableCell','nodeAfter','maxRow','ELEMENT_TABLE_ROW','_acceptFormatSuggestionCallbackFactory','getItems','differ','has','nodeBefore','tableColumn','enqueueChange','TableUtils','findAncestor','_descriptionFactory','$graveyard','selectTableColumn','classes','substr','change','addRange','fromRange','writer','some','cell','removeClass','discard','markMultiRangeInsertion','getChangedMarkers','markMultiRangeDeletion','insertTableColumnRight','mapper','join','registerDescriptionCallback','selectTableRow','minRow','hasAttribute','first','toLowerCase','isArray','insertTableRowAbove','getCellLocation','removeTableRow','toViewElement','getRanges','position','isIntersectingWithRange','insert','subType','deletion','maxColumn','selection','afterInit','every','data','insertTableRowBelow','tableRow','getColumnIndexes','push','options','document','detach','getChanges','above','ELEMENT_TABLE_COLUMN','forceValue','suggestion','ELEMENT_TABLE_ROW_WITH_TEXT','execute','removeTableColumn','filter','createRangeIn','locale','TrackChangesEditing','start','type','_tableSuggestions','plugins','getRowIndexes','commands','addMarker:suggestion','_suggestionFactory','name','_setupColumnsRowsFixing','addClass','add','getAttribute','oldRange','ELEMENT_TABLE_WITH_TEXT','from','colspan','values','table','refresh','getChildren','ELEMENT_TABLE','*Remove:*\x20%0'];(function(_0x5c444e,_0x141f9a){const _0x5c33f8=function(_0x3e2d64){while(--_0x3e2d64){_0x5c444e['push'](_0x5c444e['shift']());}};_0x5c33f8(++_0x141f9a);}(_0x141f,0x1e7));const _0x5c33=function(_0x5c444e,_0x141f9a){_0x5c444e=_0x5c444e-0x0;let _0x5c33f8=_0x141f[_0x5c444e];return _0x5c33f8;};import{Plugin as _0x1f9a8b}from'ckeditor5/src/core';import{LiveRange as _0x28a563}from'ckeditor5/src/engine';import{setHighlightHandling as _0x6f0d28}from'ckeditor5/src/widget';import{getTranslation as _0x5f11b2}from'../utils/common-translations';export default class wt extends _0x1f9a8b{constructor(_0x21c693){super(_0x21c693),this[_0x5c33('0x5a')]=[_0x5c33('0x24'),_0x5c33('0x83')],this[_0x5c33('0x38')]=new Set();}[_0x5c33('0x20')](){const _0x5baedb=this[_0x5c33('0x4f')],_0xc35a5=_0x5baedb[_0x5c33('0x6c')]['document'][_0x5c33('0x1f')];if(!_0x5baedb[_0x5c33('0x39')][_0x5c33('0x81')]('TableEditing'))return;const _0xa5792f=_0x5baedb[_0x5c33('0x34')],_0x51763d=_0x5baedb[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x35')),_0x1d8997=_0x5baedb[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x85'));_0x51763d['_descriptionFactory']['registerElementLabel'](_0x5c33('0x48'),_0x2f42ed=>_0x5f11b2(_0xa5792f,_0x5c33('0x4b'),_0x2f42ed)),this[_0x5c33('0x3f')](),_0x51763d[_0x5c33('0x64')](_0x5c33('0x5c')),_0x51763d[_0x5c33('0x64')](_0x5c33('0xe')),_0x51763d['enableCommand'](_0x5c33('0x89'));for(const _0x259fe8 of[_0x5c33('0x14'),_0x5c33('0x23')]){const _0x59440f=_0x5baedb[_0x5c33('0x3b')][_0x5c33('0x74')](_0x259fe8);_0x51763d[_0x5c33('0x64')](_0x259fe8,_0x350ed9=>{_0x5baedb[_0x5c33('0x6c')]['change'](_0xe1696d=>{_0x350ed9();const _0x2526d9=_0x5c33('0x2b')===_0x59440f['order'],_0x580639=_0x1d8997['getSelectionAffectedTableCells'](_0xc35a5),_0xa9c79f=_0x1d8997[_0x5c33('0x3a')](_0x580639),_0xb51bb7=_0x2526d9?_0xa9c79f[_0x5c33('0x11')]-0x1:_0xa9c79f[_0x5c33('0x5f')]+0x1,_0x5e98dc=_0x580639[0x0][_0x5c33('0x86')](_0x5c33('0x48')),_0x10be75=_0x1d8997[_0x5c33('0x71')](_0x5e98dc,{'startRow':_0xb51bb7,'endRow':_0xb51bb7}),_0x4b8ff5=Array[_0x5c33('0x45')](_0x10be75)[_0x5c33('0x5e')](_0x3f1545=>_0xe1696d[_0x5c33('0x57')](_0x3f1545[_0x5c33('0x4')]));_0x51763d[_0x5c33('0x7')](_0x4b8ff5,_0x5c33('0x24'));});});}for(const _0x33057d of['insertTableColumnLeft',_0x5c33('0xa')]){const _0x109d10=_0x5baedb[_0x5c33('0x3b')][_0x5c33('0x74')](_0x33057d);_0x51763d[_0x5c33('0x64')](_0x33057d,_0x45918e=>{_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x32e724=>{_0x45918e();const _0x444ced='left'===_0x109d10[_0x5c33('0x61')],_0x36e017=_0x1d8997[_0x5c33('0x78')](_0xc35a5),_0x2eaacf=_0x1d8997[_0x5c33('0x25')](_0x36e017),_0x55935a=_0x444ced?_0x2eaacf[_0x5c33('0x11')]-0x1:_0x2eaacf[_0x5c33('0x5f')]+0x1,_0x25b6f4=_0x36e017[0x0][_0x5c33('0x86')](_0x5c33('0x48')),_0x8c2c54=_0x1d8997[_0x5c33('0x71')](_0x25b6f4,{'startRow':0x0,'column':_0x55935a,'includeAllSlots':!0x1}),_0x54967c=Array[_0x5c33('0x45')](_0x8c2c54)['map'](_0x16b1b5=>_0x32e724[_0x5c33('0x57')](_0x16b1b5[_0x5c33('0x4')]));_0x51763d['markMultiRangeInsertion'](_0x54967c,_0x5c33('0x83'));});});}for(const _0x5dc526 of['removeTableRow',_0x5c33('0x31')]){const _0x5d835d=_0x5dc526[_0x5c33('0x8b')](0xb),_0x1f0695=_0x5d835d[_0x5c33('0x12')](),_0x5588ab=_0x1f0695[_0x5c33('0x8b')](0x0,0x3)+'span',_0x4dd371=_0x5c33('0x48')+_0x5d835d,_0xa76333=_0x5c33('0x55')+_0x5d835d,_0x376b44=_0x5c33('0x76')+_0x5d835d;_0x51763d[_0x5c33('0x64')](_0x5dc526,()=>{_0x5baedb['model'][_0x5c33('0x8c')](_0x4f6bee=>{const _0xeda40c=_0x1d8997[_0x5c33('0x78')](_0xc35a5),_0x50ac0b=_0xeda40c[0x0]['findAncestor'](_0x5c33('0x48'));let _0x568efb;if(_0x5c33('0x16')==_0x5dc526){const _0x4f1eeb=_0x1d8997[_0x5c33('0x3a')](_0xeda40c);_0x568efb={'startRow':_0x4f1eeb['first'],'endRow':_0x4f1eeb[_0x5c33('0x5f')],'includeAllSlots':!0x0};}else{const _0x4c4986=_0x1d8997['getColumnIndexes'](_0xeda40c);_0x568efb={'startColumn':_0x4c4986[_0x5c33('0x11')],'endColumn':_0x4c4986[_0x5c33('0x5f')],'includeAllSlots':!0x0};}const _0x3f2894=_0x1d8997['createTableWalker'](_0x50ac0b,_0x568efb),_0xe31904=Array[_0x5c33('0x45')](_0x3f2894)[_0x5c33('0x5e')](({cell:_0x1bf44a})=>_0x1bf44a),_0x163069=se(_0xe31904[_0x5c33('0x32')](_0x5ac3d1=>_0x5ac3d1[_0x5c33('0x10')](_0x5588ab))),_0x3fa97b=se(_0xe31904[_0x5c33('0x32')](_0x4c20f9=>!_0x4c20f9[_0x5c33('0x10')](_0x5588ab)))[_0x5c33('0x5e')](_0x318944=>_0x4f6bee['createRangeOn'](_0x318944)),_0x59efd5=_0x51763d[_0x5c33('0x9')](_0x3fa97b,_0x4dd371);if(_0x59efd5&&(_0x5c33('0x24')==_0x59efd5[_0x5c33('0x1c')]||_0x5c33('0x83')==_0x59efd5[_0x5c33('0x1c')])){const _0x285cd6=this['_getSuggestionCoords'](_0x59efd5);for(const _0x3c1a8f of _0x163069){const _0x367c24=_0x4f6bee[_0x5c33('0x57')](_0x3c1a8f),_0x6d097b=_0x1d8997['getCellLocation'](_0x3c1a8f),_0x1eec49=_0x3c1a8f[_0x5c33('0x42')](_0x5588ab)-0x1,_0x165a84=_0x285cd6[_0xa76333],_0xf693f9=_0x285cd6[_0x376b44];_0x165a84<=_0x6d097b[_0x1f0695]&&_0x6d097b[_0x1f0695]+_0x1eec49<=_0xf693f9&&_0x59efd5['addRange'](_0x367c24);}}});});}function _0x3af810(_0x286e25){const _0x2f99f6=Array[_0x5c33('0x45')](_0xc35a5[_0x5c33('0x18')]())[_0x5c33('0x5e')](_0x2eb970=>_0x28a563['fromRange'](_0x2eb970));_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x3d7a97=>{const _0x32928a=_0x3d7a97[_0x5c33('0x6a')];_0x286e25=_0x286e25['filter'](_0x20eac7=>_0x5c33('0x88')!=_0x20eac7['root'][_0x5c33('0x75')]),_0x3d7a97[_0x5c33('0x6f')](_0x286e25),_0x5baedb['commands']['get'](_0x5c33('0x16'))['refresh'](),_0x5baedb[_0x5c33('0x30')](_0x5c33('0x16'),{'forceDefaultExecution':!0x0}),_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x84')](()=>{_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x84')](_0x32928a,_0x2747e1=>{const _0x51773a=_0x2f99f6[_0x5c33('0x32')](_0x54585a=>_0x5c33('0x88')!=_0x54585a[_0x5c33('0x73')][_0x5c33('0x75')]);_0x51773a[_0x5c33('0x66')]>0x0&&_0x2747e1[_0x5c33('0x6f')](_0x51773a);for(const _0x18978b of _0x2f99f6)_0x18978b[_0x5c33('0x29')]();});});});}function _0x5136f0(_0x36de45){_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x21eb87=>{const _0xf2a440=Array['from'](_0xc35a5[_0x5c33('0x18')]())[_0x5c33('0x5e')](_0x3755f3=>_0x28a563['fromRange'](_0x3755f3)),_0x4720d2=[];for(const _0x98c17c of _0x36de45)for(const _0x130e02 of _0x98c17c['getItems']({'shallow':!0x0}))_0x4720d2[_0x5c33('0x26')](_0x130e02);for(const _0x176708 of _0x4720d2)_0x5c33('0x88')!=_0x176708['root'][_0x5c33('0x75')]&&(_0x21eb87[_0x5c33('0x6f')](_0x21eb87[_0x5c33('0x58')](_0x176708,0x0)),_0x5baedb[_0x5c33('0x3b')]['get'](_0x5c33('0x31'))[_0x5c33('0x49')](),_0x5baedb[_0x5c33('0x30')](_0x5c33('0x31'),{'forceDefaultExecution':!0x0}));const _0x4234e5=_0xf2a440[_0x5c33('0x32')](_0x1450c0=>_0x5c33('0x88')!=_0x1450c0[_0x5c33('0x73')][_0x5c33('0x75')]);_0x4234e5[_0x5c33('0x66')]>0x0&&_0x21eb87[_0x5c33('0x6f')](_0x4234e5);for(const _0x4f1236 of _0xf2a440)_0x4f1236['detach']();});}function _0x31adcc(_0x2826ff,_0xc0964c){return _0xc0964c[_0x5c33('0x21')](_0xaacd12=>_0x2826ff['some'](_0x2b8683=>_0x2b8683[_0x5c33('0x51')][_0x5c33('0x79')](_0xaacd12[_0x5c33('0x36')])||_0xaacd12['end']['isEqual'](_0x2b8683[_0x5c33('0x36')])));}function _0x1f59de(_0xc01c1a,_0x5a22d4){return _0xc01c1a['some'](_0x533aad=>_0x5a22d4[_0x5c33('0x3')](_0x2528f6=>_0x533aad[_0x5c33('0x51')]['isTouching'](_0x2528f6[_0x5c33('0x36')])));}_0x5baedb[_0x5c33('0x22')]['downcastDispatcher']['on'](_0x5c33('0x3c'),(_0x481249,_0x4cc89d,_0x3dade4)=>{if(!_0x3dade4[_0x5c33('0x27')][_0x5c33('0x63')])return;const _0x4ff857=_0x4cc89d[_0x5c33('0x59')];if(!_0x4ff857)return;const _0x13851c=_0x3dade4[_0x5c33('0xb')][_0x5c33('0x17')](_0x4ff857);function _0x268d96(_0x4bca15){return Array[_0x5c33('0x13')](_0x4bca15)?_0x4bca15:[_0x4bca15];}_0x13851c&&_0x5c33('0x7a')===_0x4ff857[_0x5c33('0x3e')]&&_0x6f0d28(_0x13851c,_0x3dade4[_0x5c33('0x2')],(_0x419ce2,_0x2c80a8,_0x2db3f5)=>_0x2db3f5[_0x5c33('0x40')](_0x268d96(_0x2c80a8[_0x5c33('0x8a')]),_0x419ce2),(_0x4230c0,_0x150d72,_0x1a98c9)=>_0x1a98c9[_0x5c33('0x5')](_0x268d96(_0x150d72[_0x5c33('0x8a')]),_0x4230c0));},{'priority':_0x5c33('0x5d')}),_0x51763d[_0x5c33('0x87')][_0x5c33('0xd')](_0x39c959=>{if(_0x5c33('0x5b')!=_0x39c959['type']&&_0x5c33('0x1d')!=_0x39c959['type'])return;const _0x36db9f=_0x39c959[_0x5c33('0x4e')]();if(null!=_0x36db9f&&_0x36db9f['is']('element','table')){if(_0x5c33('0x5b')==_0x39c959[_0x5c33('0x37')]){const _0x1217a8=_0x39c959['getItems']()[_0x5c33('0x32')](_0x32cdc8=>_0x32cdc8['is'](_0x5c33('0x6e')))['map'](_0x1a9d8d=>_0x1a9d8d[_0x5c33('0x22')]);if(_0x1217a8[_0x5c33('0x66')])return{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,'*Insert:*\x20%0',_0x5f11b2(_0xa5792f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1217a8['join']('\x20')+'\x22'))};}if(_0x5c33('0x1d')==_0x39c959[_0x5c33('0x37')]){const _0x4cf330=_0x39c959[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x468c86=>_0x468c86['is']('$textProxy'))[_0x5c33('0x5e')](_0x19a2d4=>_0x19a2d4['data']);if(_0x4cf330[_0x5c33('0x66')])return{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x44'),'\x22'+_0x4cf330[_0x5c33('0xc')]('\x20')+'\x22'))};}}}),_0x51763d[_0x5c33('0x87')][_0x5c33('0xd')](_0x151fde=>{if('tableRow'==_0x151fde['subType']){const _0x2c75bb=_0x151fde[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x181bb3=>_0x181bb3['is']('$textProxy'))[_0x5c33('0x5e')](_0xd0ec78=>_0xd0ec78[_0x5c33('0x22')]),_0x536672=this['_getSuggestionCoords'](_0x151fde),_0x2e67c2=_0x536672[_0x5c33('0x7c')]-_0x536672[_0x5c33('0xf')]+0x1;if(_0x5c33('0x5b')==_0x151fde[_0x5c33('0x37')])return _0x2c75bb['length']?{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x2f'),[_0x2e67c2,'\x22'+_0x2c75bb[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,'ELEMENT_TABLE_ROW',_0x2e67c2))};if(_0x5c33('0x1d')==_0x151fde[_0x5c33('0x37')])return _0x2c75bb['length']?{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x2f'),[_0x2e67c2,'\x22'+_0x2c75bb['join']('\x20')+'\x22']))}:{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x7d'),_0x2e67c2))};}if('tableColumn'==_0x151fde[_0x5c33('0x1c')]){const _0x21463c=_0x151fde[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x352437=>_0x352437['is'](_0x5c33('0x6e')))['map'](_0x97982a=>_0x97982a['data']),_0x1de66c=this[_0x5c33('0x6d')](_0x151fde),_0x509452=_0x1de66c[_0x5c33('0x1e')]-_0x1de66c[_0x5c33('0x72')]+0x1;if('insertion'==_0x151fde[_0x5c33('0x37')])return _0x21463c[_0x5c33('0x66')]?{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x53'),[_0x509452,'\x22'+_0x21463c[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x2c'),_0x509452))};if(_0x5c33('0x1d')==_0x151fde[_0x5c33('0x37')])return _0x21463c[_0x5c33('0x66')]?{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x53'),[_0x509452,'\x22'+_0x21463c[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,'*Remove:*\x20%0',_0x5f11b2(_0xa5792f,_0x5c33('0x2c'),_0x509452))};}}),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),'tableRow',_0x5c33('0x6'),_0x3af810),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x24'),_0x5c33('0x4d'),_0x3af810),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),_0x5c33('0x83'),_0x5c33('0x6'),_0x5136f0),_0x51763d[_0x5c33('0x3d')]['registerCustomCallback'](_0x5c33('0x1d'),_0x5c33('0x83'),_0x5c33('0x4d'),_0x5136f0),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),_0x5c33('0x83'),_0x5c33('0xc'),_0x31adcc),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x83'),_0x5c33('0xc'),_0x31adcc),_0x51763d['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c33('0x24'),_0x5c33('0xc'),_0x1f59de),_0x51763d['_suggestionFactory'][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x24'),'join',_0x1f59de);}[_0x5c33('0x7e')](){const _0x14ebaa=this[_0x5c33('0x4f')],_0x576ad1=_0x14ebaa['model'][_0x5c33('0x28')][_0x5c33('0x1f')];return(_0x22ac47,_0x3ead17)=>{_0x14ebaa[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x3183b5=>{const {commandName:_0xdf4e85,commandParams:_0x16e233}=_0x3ead17;let _0x5335bb=_0x22ac47[0x0]['end'][_0x5c33('0x82')];_0x16e233&&_0x16e233[0x0]&&!0x1===_0x16e233[0x0][_0x5c33('0x2d')]&&(_0x5335bb=_0x22ac47[0x0][_0x5c33('0x36')][_0x5c33('0x7b')]);const _0x4b11bd=_0x3183b5[_0x5c33('0x33')](_0x5335bb);if('$graveyard'==_0x4b11bd[_0x5c33('0x73')]['rootName'])return;const _0x386bad=Array[_0x5c33('0x45')](_0x576ad1['getRanges']())[_0x5c33('0x5e')](_0x49e056=>_0x28a563[_0x5c33('0x1')](_0x49e056));_0x3183b5[_0x5c33('0x6f')](_0x4b11bd),_0x14ebaa['commands'][_0x5c33('0x74')](_0xdf4e85)[_0x5c33('0x49')](),_0x16e233[_0x5c33('0x26')]({'forceDefaultExecution':!0x0}),_0x14ebaa[_0x5c33('0x30')](_0xdf4e85,..._0x16e233);const _0x56f28c=_0x386bad[_0x5c33('0x32')](_0x3af9ff=>_0x5c33('0x88')!=_0x3af9ff['root']['rootName']);_0x56f28c[_0x5c33('0x66')]>0x0&&_0x3183b5[_0x5c33('0x6f')](_0x56f28c);for(const _0x2876ee of _0x386bad)_0x2876ee['detach']();});};}[_0x5c33('0x6b')](_0x21d09e){const _0x2191b0=this[_0x5c33('0x4f')]['plugins'][_0x5c33('0x74')](_0x5c33('0x85'));let _0x4914ab=Number['MAX_SAFE_INTEGER'],_0x501bc0=Number[_0x5c33('0x77')],_0x2e7a9d=Number['MAX_SAFE_INTEGER'],_0x5b7fea=Number[_0x5c33('0x77')];for(const _0x3f86dd of _0x21d09e){if(_0x5c33('0x88')==_0x3f86dd[_0x5c33('0x73')][_0x5c33('0x75')])continue;const {row:_0x339b06,column:_0x57d66d}=_0x2191b0[_0x5c33('0x15')](_0x3f86dd),_0x57ac41=_0x3f86dd[_0x5c33('0x10')](_0x5c33('0x70'))?_0x3f86dd[_0x5c33('0x42')]('rowspan')-0x1:0x0,_0x44b413=_0x3f86dd[_0x5c33('0x10')](_0x5c33('0x46'))?_0x3f86dd['getAttribute'](_0x5c33('0x46'))-0x1:0x0;_0x4914ab=_0x339b06<_0x4914ab?_0x339b06:_0x4914ab,_0x501bc0=_0x339b06+_0x57ac41>_0x501bc0?_0x339b06+_0x57ac41:_0x501bc0,_0x2e7a9d=_0x57d66d<_0x2e7a9d?_0x57d66d:_0x2e7a9d,_0x5b7fea=_0x57d66d+_0x44b413>_0x5b7fea?_0x57d66d+_0x44b413:_0x5b7fea;}return{'minRow':_0x4914ab,'maxRow':_0x501bc0,'minColumn':_0x2e7a9d,'maxColumn':_0x5b7fea};}['_setupColumnsRowsFixing'](){const _0x59fc19=this[_0x5c33('0x4f')],_0x3db809=_0x59fc19['plugins'][_0x5c33('0x74')](_0x5c33('0x35')),_0x2d8db2=_0x59fc19[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x85'));_0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')]['on'](_0x5c33('0x52'),()=>{const _0x491544=Array[_0x5c33('0x45')](_0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')][_0x5c33('0x80')][_0x5c33('0x8')]());for(const {name:_0x437c7e,data:_0x307555}of _0x491544){const {group:_0x1af539,id:_0x597c91,subType:_0x375c28}=_0x3db809[_0x5c33('0x54')](_0x437c7e);if(_0x5c33('0x2e')!=_0x1af539)continue;if(null!=_0x307555[_0x5c33('0x43')])continue;const _0x1eff3a=_0x3db809[_0x5c33('0x62')](_0x597c91);this[_0x5c33('0x5a')][_0x5c33('0x65')](_0x375c28)&&this[_0x5c33('0x38')][_0x5c33('0x41')](_0x1eff3a);}},{'priority':_0x5c33('0x56')});const _0x53ab1d=(_0x2bdd4b,_0x2d5199)=>{let _0x2dcb3f=!0x1;const _0x11a643=_0x2d5199['createRangeOn'](_0x2bdd4b),_0x3bcfa7=_0x2bdd4b[_0x5c33('0x86')](_0x5c33('0x48')),_0x5baa0b=_0x2d8db2[_0x5c33('0x15')](_0x2bdd4b);for(const _0x387810 of this[_0x5c33('0x38')]){const _0x24a242=_0x387810[_0x5c33('0x1c')],_0x30eb3c=_0x24a242['startsWith'](_0x5c33('0x60')),_0x4ff366=_0x24a242[_0x5c33('0x8b')](_0x30eb3c?0xa:0x5),_0x2f74f2=_0x4ff366[_0x5c33('0x12')](),_0x2647d7=_0x2f74f2[_0x5c33('0x8b')](0x0,0x3)+'span',_0x1362c8=_0x5c33('0x55')+_0x4ff366,_0x497f60=_0x5c33('0x76')+_0x4ff366;if(!_0x387810[_0x5c33('0x69')])continue;if(_0x3bcfa7!=_0x387810[_0x5c33('0x50')]()[_0x5c33('0x36')][_0x5c33('0x86')](_0x5c33('0x48')))continue;if(_0x387810[_0x5c33('0x1a')](_0x11a643))continue;const _0x298aee=_0x2bdd4b[_0x5c33('0x10')](_0x2647d7)?_0x2bdd4b[_0x5c33('0x42')](_0x2647d7)-0x1:0x0,_0x52ba0d=this['_getSuggestionCoords'](_0x387810),_0x3ebbb4=_0x52ba0d[_0x1362c8],_0x3f1c9a=_0x52ba0d[_0x497f60];_0x3ebbb4<=_0x5baa0b[_0x2f74f2]&&_0x5baa0b[_0x2f74f2]+_0x298aee<=_0x3f1c9a&&(_0x387810[_0x5c33('0x0')](_0x11a643),_0x2dcb3f=!0x0);}return _0x2dcb3f;};_0x59fc19['model'][_0x5c33('0x28')]['registerPostFixer'](_0x33b1db=>{let _0x4ce2be=!0x1;for(const _0x137be0 of _0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')]['differ'][_0x5c33('0x2a')]())if(_0x5c33('0x1b')==_0x137be0[_0x5c33('0x37')]){if(_0x5c33('0x24')==_0x137be0[_0x5c33('0x3e')])for(const _0x16afe8 of _0x137be0[_0x5c33('0x19')][_0x5c33('0x7b')][_0x5c33('0x4a')]())_0x4ce2be=_0x4ce2be||_0x53ab1d(_0x16afe8,_0x33b1db);else _0x5c33('0x7a')==_0x137be0[_0x5c33('0x3e')]&&(_0x4ce2be=_0x4ce2be||_0x53ab1d(_0x137be0['position'][_0x5c33('0x7b')],_0x33b1db));}return _0x4ce2be;});}['_getSuggestionCoords'](_0x4966a1){return this[_0x5c33('0x6b')](_0x4966a1[_0x5c33('0x18')]()[_0x5c33('0x5e')](_0x41372b=>_0x41372b[_0x5c33('0x36')][_0x5c33('0x7b')]));}}function se(_0x20c932){return Array[_0x5c33('0x45')](new Set(_0x20c932)[_0x5c33('0x47')]());}
|
|
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'));}}
|