@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231205.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 _0x1b4c=['enableCommand','from','push','schema','locale','get','_selectedElements','isObject','afterInit','getSelectedBlocks','value','registerDescriptionCallback','listType','add','slice','format','TrackChangesEditing','*Uncheck\x20item*','paragraph','ELEMENT_LIST_ITEM','commandParams','ListEditing','*Outdent:*\x20%0','document','ELEMENT_TODO_LIST','*Change\x20to:*\x20%0','has','outdentList','selection','end','type','filter','listItem','createPositionAt','commandName','change','todoList','name','formatInline','formatBlock','checkTodoList','execute','List','editor','nextSibling','commands','findIndex','checkChild','listIndent','registerElementLabel','parent','plugins','numberedList','previousSibling','TodoListEditing','getAttribute','indentList','createRange','replace','_descriptionFactory','ELEMENT_NUMBERED_LIST','model','blockName','element','todo','markBlockFormat'];(function(_0x32f0f1,_0x1b4c17){const _0x57e360=function(_0x486eac){while(--_0x486eac){_0x32f0f1['push'](_0x32f0f1['shift']());}};_0x57e360(++_0x1b4c17);}(_0x1b4c,0x13a));const _0x57e3=function(_0x32f0f1,_0x1b4c17){_0x32f0f1=_0x32f0f1-0x0;let _0x57e360=_0x1b4c[_0x32f0f1];return _0x57e360;};import{Plugin as _0x4ca68e}from'ckeditor5/src/core';import{getTranslation as _0x4ac2de}from'../utils/common-translations';export default class ct extends _0x4ca68e{[_0x57e3('0x18')](){const _0x300fca=this[_0x57e3('0x3b')],_0x29acb5=_0x300fca[_0x57e3('0x14')];if(!_0x300fca[_0x57e3('0x1')][_0x57e3('0x2a')](_0x57e3('0x25')))return;const _0x23d3a7=_0x300fca[_0x57e3('0x1')][_0x57e3('0x15')](_0x57e3('0x20')),_0x5b609b=_0x300fca[_0x57e3('0x1')][_0x57e3('0x2a')](_0x57e3('0x4'));function _0xb2ff86(_0x390c9c){return()=>{const _0x4214c8=_0x300fca['model']['document'][_0x57e3('0x2c')],_0x1ba2c4=_0x300fca[_0x57e3('0x3d')][_0x57e3('0x15')](_0x390c9c);if(_0x1ba2c4[_0x57e3('0x1a')])return void _0x300fca[_0x57e3('0x39')](_0x57e3('0x22'),{});const _0x395384=_0x390c9c[_0x57e3('0x1e')](0x0,-0x4),_0xfd7281=function(_0x57aa8a,_0x51f06d,_0x18eae7){let _0x3af8ea=Array[_0x57e3('0x11')](_0x57aa8a)['filter'](_0x49f15c=>function(_0x485857,_0x5b5bd2){return _0x5b5bd2[_0x57e3('0x3f')](_0x485857[_0x57e3('0x0')],_0x57e3('0x30'))&&!_0x5b5bd2[_0x57e3('0x17')](_0x485857);}(_0x49f15c,_0x18eae7));_0x3af8ea=_0x3af8ea['filter'](_0x1e6205=>!_0x1e6205['is'](_0x57e3('0xd'),'listItem')||_0x1e6205['getAttribute'](_0x57e3('0x1c'))!=_0x51f06d);const _0x12f4b2=new Set();for(const _0x4bbdd0 of _0x3af8ea)_0x4bbdd0['is'](_0x57e3('0xd'),_0x57e3('0x30'))?_0x12f4b2[_0x57e3('0x1d')](ne(_0x4bbdd0)):_0x12f4b2['add'](_0x4bbdd0);return Array['from'](_0x12f4b2);}(_0x4214c8[_0x57e3('0x19')](),_0x395384,_0x300fca[_0x57e3('0xb')][_0x57e3('0x13')]);_0x300fca[_0x57e3('0xb')][_0x57e3('0x33')](()=>{for(const _0x551387 of _0xfd7281)_0x23d3a7[_0x57e3('0xf')](_0x551387,{'commandName':_0x390c9c,'commandParams':[{'forceValue':!_0x1ba2c4[_0x57e3('0x1a')]}],'formatGroupId':_0x57e3('0xc')},oe(_0x551387));});};}function _0x1b4f17(_0x4b6930){return()=>{const _0x165657=function(_0x11b018){let _0x33db37=Array[_0x57e3('0x11')](_0x11b018);const _0xbdbc9a=_0x33db37[_0x57e3('0x3e')](_0xa49659=>_0x57e3('0x30')!=_0xa49659[_0x57e3('0x35')]);return _0xbdbc9a>-0x1&&(_0x33db37=_0x33db37['slice'](0x0,_0xbdbc9a)),_0x33db37;}(_0x300fca[_0x57e3('0xb')][_0x57e3('0x27')][_0x57e3('0x2c')][_0x57e3('0x19')]()),_0x138d57=_0x300fca[_0x57e3('0xb')][_0x57e3('0x7')](_0x300fca[_0x57e3('0xb')][_0x57e3('0x31')](_0x165657[0x0],'before'),_0x300fca[_0x57e3('0xb')][_0x57e3('0x31')](_0x165657[_0x165657['length']-0x1],_0x57e3('0x2d')));_0x300fca['model']['change'](()=>{_0x23d3a7[_0x57e3('0xf')](_0x138d57,{'commandName':_0x4b6930,'commandParams':[],'formatGroupId':_0x57e3('0x40')},function(_0x11d3bd){const _0x5813d2=new Set();for(const _0x5d540a of _0x11d3bd){let _0x72f8db=_0x5d540a[_0x57e3('0x3c')];for(;_0x72f8db&&_0x72f8db[_0x57e3('0x5')](_0x57e3('0x40'))>_0x5d540a[_0x57e3('0x5')](_0x57e3('0x40'));)_0x5813d2[_0x57e3('0x1d')](_0x72f8db),_0x72f8db=_0x72f8db['nextSibling'];}return Array[_0x57e3('0x11')](_0x5813d2);}(_0x165657));});};}_0x23d3a7[_0x57e3('0x10')]('numberedList',_0xb2ff86(_0x57e3('0x2'))),_0x23d3a7['enableCommand']('bulletedList',_0xb2ff86('bulletedList')),_0x5b609b&&_0x23d3a7[_0x57e3('0x10')](_0x57e3('0x34'),_0xb2ff86(_0x57e3('0x34'))),_0x23d3a7[_0x57e3('0x10')]('indentList',_0x1b4f17(_0x57e3('0x6'))),_0x23d3a7[_0x57e3('0x10')](_0x57e3('0x2b'),_0x1b4f17(_0x57e3('0x2b'))),_0x5b609b&&_0x23d3a7[_0x57e3('0x10')](_0x57e3('0x38'),()=>{const _0x18438d=_0x300fca[_0x57e3('0x3d')]['get']('checkTodoList'),_0x305899=Array[_0x57e3('0x11')](_0x18438d[_0x57e3('0x16')]);_0x305899[_0x57e3('0x2f')](_0x40e827=>_0x40e827[_0x57e3('0x5')]('todoListChecked')!=_0x18438d[_0x57e3('0x1a')]),_0x300fca[_0x57e3('0xb')][_0x57e3('0x33')](()=>{for(const _0x379e6f of _0x305899)_0x23d3a7['markBlockFormat'](_0x379e6f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x18438d[_0x57e3('0x1a')]}]});});}),_0x23d3a7[_0x57e3('0x9')][_0x57e3('0x41')](_0x57e3('0x30'),_0x1f290e=>_0x4ac2de(_0x29acb5,_0x57e3('0x23'),_0x1f290e)),_0x23d3a7['_descriptionFactory'][_0x57e3('0x1b')](_0xb7fd8b=>{if(_0x57e3('0x37')!=_0xb7fd8b[_0x57e3('0x2e')]&&_0x57e3('0x36')!=_0xb7fd8b['type'])return;const {data:_0x4a2d6c}=_0xb7fd8b;if(_0x4a2d6c){if(_0x57e3('0x2')==_0x4a2d6c[_0x57e3('0x32')]||'bulletedList'==_0x4a2d6c[_0x57e3('0x32')]||'todoList'==_0x4a2d6c[_0x57e3('0x32')])switch(_0x4a2d6c[_0x57e3('0x32')][_0x57e3('0x8')](_0x57e3('0x3a'),'')){case'bulleted':return _0x3e3639(_0x4ac2de(_0x29acb5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e3639(_0x4ac2de(_0x29acb5,_0x57e3('0xa')));case _0x57e3('0xe'):return _0x3e3639(_0x4ac2de(_0x29acb5,_0x57e3('0x28')));}if('indentList'==_0x4a2d6c[_0x57e3('0x32')])return{'type':_0x57e3('0x1f'),'content':_0x4ac2de(_0x29acb5,'*Indent:*\x20%0',_0x4ac2de(_0x29acb5,_0x57e3('0x23')))};if(_0x57e3('0x2b')==_0x4a2d6c[_0x57e3('0x32')])return{'type':_0x57e3('0x1f'),'content':_0x4ac2de(_0x29acb5,_0x57e3('0x26'),_0x4ac2de(_0x29acb5,_0x57e3('0x23')))};if(_0x57e3('0x38')==_0x4a2d6c[_0x57e3('0x32')])return _0x4a2d6c[_0x57e3('0x24')][0x0]['forceValue']?{'type':'format','content':_0x4ac2de(_0x29acb5,'*Check\x20item*')}:{'type':_0x57e3('0x1f'),'content':_0x4ac2de(_0x29acb5,_0x57e3('0x21'))};}function _0x3e3639(_0x3336b7){return{'type':_0x57e3('0x1f'),'content':_0x4ac2de(_0x29acb5,_0x57e3('0x29'),_0x3336b7)};}});}}function ne(_0x36dc90){const _0x167db7=_0x36dc90[_0x57e3('0x5')](_0x57e3('0x40'));if(0x0==_0x167db7)return _0x36dc90;let _0xd15780=_0x36dc90;for(;_0x36dc90[_0x57e3('0x3')]&&_0x36dc90[_0x57e3('0x3')]['is'](_0x57e3('0xd'),'listItem');){const _0x4bc7b4=_0x36dc90['previousSibling'][_0x57e3('0x5')]('listIndent');if(_0x4bc7b4==_0x167db7)_0xd15780=_0x36dc90[_0x57e3('0x3')];else{if(_0x4bc7b4<_0x167db7)break;}_0x36dc90=_0x36dc90[_0x57e3('0x3')];}return _0xd15780;}function oe(_0x4ec7a1){const _0x14f68b=[];if(_0x4ec7a1['is']('element',_0x57e3('0x30'))&&_0x4ec7a1[_0x57e3('0x5')](_0x57e3('0x40'))>0x0){let _0x509809=_0x4ec7a1['nextSibling'];for(;_0x509809&&_0x57e3('0x30')==_0x509809[_0x57e3('0x35')]&&_0x509809[_0x57e3('0x5')](_0x57e3('0x40'))==_0x4ec7a1[_0x57e3('0x5')]('listIndent');)_0x14f68b[_0x57e3('0x12')](_0x509809),_0x509809=_0x509809[_0x57e3('0x3c')];}return _0x14f68b;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5942=['getLastPosition','*Format:*\x20set\x20order\x20to\x20reversed','length','*Format:*\x20set\x20order\x20to\x20regular','registerDescriptionCallback','_LIST_','backward','markMultiRangeBlockFormat','_getSuggestionBlocks','element','model','startIndex','list.properties','handleListStartCommand','numbered','get','push','afterInit','TrackChangesEditing','listStart','getFirstPosition','reversed','config','plugins','bind','toUpperCase','handleListReversedCommand','_getTranslationKeyForListStyle','replace','_descriptionFactory','change','_getSuggestionBlocksForListStyle','ELEMENT_','getAttribute','ListPropertiesEditing','flat','*Change\x20to:*\x20%0','createRange','createPositionAt','forward','from','map','listType','document','styles','listStyle','filter','format','listItem','enableCommand','commandName','ListUtils','type','listReversed','before','handleDescriptions','getSiblingNodes','parent','editor','getSelectedBlocks','selection'];(function(_0x5e425d,_0x59428f){const _0x165631=function(_0x73b76a){while(--_0x73b76a){_0x5e425d['push'](_0x5e425d['shift']());}};_0x165631(++_0x59428f);}(_0x5942,0x1f0));const _0x1656=function(_0x5e425d,_0x59428f){_0x5e425d=_0x5e425d-0x0;let _0x165631=_0x5942[_0x5e425d];return _0x165631;};import{Plugin as _0x2d1e11}from'ckeditor5/src/core';import{getTranslation as _0x12d1ba}from'../utils/common-translations';export default class ut extends _0x2d1e11{[_0x1656('0x9')](){if(!this[_0x1656('0x32')]['plugins']['has'](_0x1656('0x1a')))return;const _0x1ddbc0=this['editor'][_0x1656('0xe')][_0x1656('0x7')](_0x1656('0x4')),_0x2babef=this[_0x1656('0x32')][_0x1656('0xf')]['get']('TrackChangesEditing');_0x1ddbc0[_0x1656('0x24')]&&_0x2babef[_0x1656('0x29')](_0x1656('0x25'),this['handleListStyleCommand'][_0x1656('0x10')](this)),_0x1ddbc0[_0x1656('0xd')]&&_0x2babef[_0x1656('0x29')](_0x1656('0x2d'),this[_0x1656('0x12')]['bind'](this)),_0x1ddbc0[_0x1656('0x3')]&&_0x2babef[_0x1656('0x29')]('listStart',this[_0x1656('0x5')][_0x1656('0x10')](this)),_0x2babef[_0x1656('0x15')][_0x1656('0x39')](this[_0x1656('0x2f')][_0x1656('0x10')](this));}['handleListStyleCommand'](_0x589ebb,_0x53b5dc={}){const _0x53b6b7=this[_0x1656('0x32')][_0x1656('0xf')]['get'](_0x1656('0xa')),_0x48e759=this[_0x1656('0x17')]();this['editor'][_0x1656('0x2')][_0x1656('0x16')](()=>{_0x53b6b7[_0x1656('0x3c')](_0x48e759,{'commandName':'listStyle','commandParams':[{'type':_0x53b5dc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x214744,_0x1bf965={}){const _0x5f5917=this[_0x1656('0x32')][_0x1656('0xf')][_0x1656('0x7')](_0x1656('0xa')),_0x50f041=this['_getSuggestionBlocks'](_0x8dacda=>_0x8dacda['is']('element','listItem')&&_0x1656('0x6')===_0x8dacda[_0x1656('0x19')](_0x1656('0x22')));if(_0x50f041[_0x1656('0x37')]<0x1)return;const _0x1a142f=_0x50f041['map'](_0x61ebc7=>this[_0x1656('0x32')][_0x1656('0x2')]['createRange'](this[_0x1656('0x32')]['model'][_0x1656('0x1e')](_0x61ebc7,_0x1656('0x2e')),this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x1e')](_0x61ebc7,0x0)));this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x16')](()=>{_0x5f5917['markMultiRangeBlockFormat'](_0x1a142f,{'commandName':_0x1656('0x2d'),'commandParams':[{'reversed':_0x1bf965[_0x1656('0xd')]}],'formatGroupId':_0x1656('0x2d')});});}[_0x1656('0x5')](_0x51b5e9,_0x1de3d2={}){const _0x2332a0=this[_0x1656('0x32')]['plugins'][_0x1656('0x7')](_0x1656('0xa')),_0x5e333f=this[_0x1656('0x0')](_0xc028ee=>_0xc028ee['is'](_0x1656('0x1'),'listItem')&&_0x1656('0x6')===_0xc028ee[_0x1656('0x19')]('listType'));if(_0x5e333f['length']<0x1)return;const _0x266901=_0x5e333f[_0x1656('0x21')](_0xcab4d9=>this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x1d')](this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x1e')](_0xcab4d9,'before'),this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x1e')](_0xcab4d9,0x0)));this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x16')](()=>{_0x2332a0['markMultiRangeBlockFormat'](_0x266901,{'commandName':_0x1656('0xb'),'commandParams':[{'startIndex':_0x1de3d2[_0x1656('0x3')]}],'formatGroupId':_0x1656('0xb')});});}['handleDescriptions'](_0x32ab84){if('formatBlock'!=_0x32ab84['type']&&'formatInline'!=_0x32ab84[_0x1656('0x2c')])return;const _0x5c7a59=this[_0x1656('0x32')]['locale'],{data:_0x3f8e5e}=_0x32ab84;if(!_0x3f8e5e)return;let _0x518f7f,_0x5b1416;switch(_0x3f8e5e[_0x1656('0x2a')]){case'listStyle':_0x518f7f=_0x1656('0x1c'),_0x5b1416={'type':_0x1656('0x27'),'content':_0x12d1ba(_0x5c7a59,_0x518f7f,_0x12d1ba(_0x5c7a59,this[_0x1656('0x13')](_0x3f8e5e['commandParams'][0x0][_0x1656('0x2c')])))};break;case _0x1656('0x2d'):_0x518f7f=_0x3f8e5e['commandParams'][0x0][_0x1656('0xd')]?_0x1656('0x36'):_0x1656('0x38'),_0x5b1416={'type':_0x1656('0x27'),'content':_0x12d1ba(_0x5c7a59,_0x518f7f)};break;case _0x1656('0xb'):_0x518f7f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b1416={'type':'format','content':_0x12d1ba(_0x5c7a59,_0x518f7f,_0x3f8e5e['commandParams'][0x0][_0x1656('0x3')])};}return _0x5b1416;}[_0x1656('0x17')](){var _0x346aba,_0x3e4ad1,_0x54f2ca,_0x4fb3d5;const _0x555ccd=this['editor'][_0x1656('0xf')]['get'](_0x1656('0x2b'));let _0x27de68=Array[_0x1656('0x20')](this['editor']['model']['document'][_0x1656('0x34')][_0x1656('0x33')]());return(null===(_0x346aba=_0x27de68[0x0])||void 0x0===_0x346aba?void 0x0:_0x346aba['is'](_0x1656('0x1'),_0x1656('0x28')))&&_0x27de68['unshift'](..._0x555ccd[_0x1656('0x30')](this['editor']['model'][_0x1656('0x23')][_0x1656('0x34')][_0x1656('0xc')](),_0x1656('0x3b'))),(null===(_0x3e4ad1=_0x27de68[_0x27de68[_0x1656('0x37')]-0x1])||void 0x0===_0x3e4ad1?void 0x0:_0x3e4ad1['is'](_0x1656('0x1'),_0x1656('0x28')))&&_0x27de68[_0x1656('0x8')](..._0x555ccd[_0x1656('0x30')](this['editor'][_0x1656('0x2')][_0x1656('0x23')][_0x1656('0x34')][_0x1656('0x35')](),_0x1656('0x1f'))),_0x27de68=[...new Set(_0x27de68)],(null===(_0x4fb3d5=null===(_0x54f2ca=this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x23')][_0x1656('0x34')][_0x1656('0xc')]())||void 0x0===_0x54f2ca?void 0x0:_0x54f2ca[_0x1656('0x31')])||void 0x0===_0x4fb3d5?void 0x0:_0x4fb3d5['is'](_0x1656('0x1'),_0x1656('0x28')))&&(_0x27de68=_0x27de68[_0x1656('0x26')](_0x41aaec=>_0x41aaec['is']('element','listItem'))),_0x27de68;}[_0x1656('0x0')](_0x3662e7){const _0x4b91ad=this[_0x1656('0x32')][_0x1656('0xf')][_0x1656('0x7')](_0x1656('0x2b'));let _0x5c0530=Array[_0x1656('0x20')](this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x23')][_0x1656('0x34')][_0x1656('0x33')]())[_0x1656('0x26')](_0x3662e7)[_0x1656('0x21')](_0x52383b=>{const _0x2bb3da=this[_0x1656('0x32')][_0x1656('0x2')][_0x1656('0x1e')](_0x52383b,0x0);return[..._0x4b91ad[_0x1656('0x30')](_0x2bb3da,_0x1656('0x3b')),..._0x4b91ad[_0x1656('0x30')](_0x2bb3da,_0x1656('0x1f'))];})[_0x1656('0x1b')]();return _0x5c0530=[...new Set(_0x5c0530)],_0x5c0530;}[_0x1656('0x13')](_0x4f2824){return _0x1656('0x18')+this['editor'][_0x1656('0xf')][_0x1656('0x7')](_0x1656('0x2b'))['getListTypeFromListStyleType'](_0x4f2824)[_0x1656('0x11')]()+_0x1656('0x3a')+_0x4f2824['toUpperCase']()[_0x1656('0x14')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x354c=['for','plugins','stop','div','_descriptionFactory','data','mediaEmbed','high','has','createEmptyElement','showSuggestionHighlights','editor','dataDowncast','options','afterInit','conversion','MediaEmbedEditing','downcastDispatcher','TrackChangesEditing','enableCommand','locale','elementToElement'];(function(_0x2c28c2,_0x354cc9){const _0x1952e3=function(_0x3d6fd6){while(--_0x3d6fd6){_0x2c28c2['push'](_0x2c28c2['shift']());}};_0x1952e3(++_0x354cc9);}(_0x354c,0x11d));const _0x1952=function(_0x2c28c2,_0x354cc9){_0x2c28c2=_0x2c28c2-0x0;let _0x1952e3=_0x354c[_0x2c28c2];return _0x1952e3;};import{Plugin as _0x5ef7fa}from'ckeditor5/src/core';import{getTranslation as _0x11b8b9}from'../utils/common-translations';export default class ht extends _0x5ef7fa{[_0x1952('0xf')](){const _0xe87075=this[_0x1952('0xc')];if(!_0xe87075['plugins'][_0x1952('0x9')](_0x1952('0x11')))return;const _0x520b34=_0xe87075[_0x1952('0x2')]['get'](_0x1952('0x13')),_0x51fcd1=_0xe87075[_0x1952('0x15')];_0x520b34[_0x1952('0x14')](_0x1952('0x7')),_0x520b34[_0x1952('0x5')]['registerElementLabel']('media',_0x5f2860=>_0x11b8b9(_0x51fcd1,'ELEMENT_MEDIA',_0x5f2860)),_0xe87075[_0x1952('0x10')][_0x1952('0x1')](_0x1952('0xd'))[_0x1952('0x0')]({'model':'media','view':(_0x482716,{writer:_0x581c60,options:_0x43ea98})=>{if(_0x43ea98[_0x1952('0xb')])return _0x581c60[_0x1952('0xa')](_0x1952('0x4'));},'converterPriority':_0x1952('0x8')}),_0xe87075[_0x1952('0x6')][_0x1952('0x12')]['on']('attribute:url:media',(_0x1398b0,_0x42b3ca,_0xf52029)=>{_0xf52029[_0x1952('0xe')][_0x1952('0xb')]&&_0x1398b0[_0x1952('0x3')]();},{'priority':_0x1952('0x8')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8b=['mention','plugins','editor','enableCommand','TrackChangesEditing','MentionEditing','has','get'];(function(_0x71ea4a,_0x2e8b60){const _0x1f7fa1=function(_0x180ee6){while(--_0x180ee6){_0x71ea4a['push'](_0x71ea4a['shift']());}};_0x1f7fa1(++_0x2e8b60);}(_0x2e8b,0x81));const _0x1f7f=function(_0x71ea4a,_0x2e8b60){_0x71ea4a=_0x71ea4a-0x0;let _0x1f7fa1=_0x2e8b[_0x71ea4a];return _0x1f7fa1;};import{Plugin as _0x1f7b11}from'ckeditor5/src/core';export default class ft extends _0x1f7b11{['afterInit'](){const _0x3ebcb1=this[_0x1f7f('0x1')];_0x3ebcb1[_0x1f7f('0x0')][_0x1f7f('0x5')](_0x1f7f('0x4'))&&_0x3ebcb1[_0x1f7f('0x0')][_0x1f7f('0x6')](_0x1f7f('0x3'))[_0x1f7f('0x2')](_0x1f7f('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45e7=['TrackChangesEditing','PageBreakEditing','registerElementLabel','_descriptionFactory','enableCommand','pageBreak','has','plugins','afterInit','get','locale'];(function(_0x424c34,_0x45e7c6){const _0x158195=function(_0x27363c){while(--_0x27363c){_0x424c34['push'](_0x424c34['shift']());}};_0x158195(++_0x45e7c6);}(_0x45e7,0x17a));const _0x1581=function(_0x424c34,_0x45e7c6){_0x424c34=_0x424c34-0x0;let _0x158195=_0x45e7[_0x424c34];return _0x158195;};import{Plugin as _0xac5a50}from'ckeditor5/src/core';import{getTranslation as _0x407ed1}from'../utils/common-translations';export default class gt extends _0xac5a50{[_0x1581('0x4')](){const _0x29c43f=this['editor'];if(!_0x29c43f[_0x1581('0x3')][_0x1581('0x2')](_0x1581('0x8')))return;_0x29c43f[_0x1581('0x3')]['get'](_0x1581('0x7'))[_0x1581('0x0')](_0x1581('0x1'));const _0x2fe320=_0x29c43f[_0x1581('0x3')][_0x1581('0x5')]('TrackChangesEditing'),_0x1de7c7=_0x29c43f[_0x1581('0x6')];_0x2fe320[_0x1581('0xa')][_0x1581('0x9')](_0x1581('0x1'),_0x17870f=>_0x407ed1(_0x1de7c7,'ELEMENT_PAGE_BREAK',_0x17870f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d95=['name','has','enableCommand','mapper','insert','bindElementToMarker','markerName','*Change\x20to:*\x20%0','TrackChangesEditing','format','options','end','markerRange','Paragraph','isTouching','_descriptionFactory','formatBlock','highest','nodeAfter','consume','_registerLegacyDescription','checkChild','$text','model','commandName','paragraph','editing','editor','isLimit','_enableDefaultAttributesIntegration','isBlock','afterInit','get','toViewPosition','activeMarkers','ck-suggestion-marker--active','registerDescriptionCallback','showSuggestionHighlights','addClass','plugins','writer','getItemLabel','*Insert:*\x20%0','type','insertParagraph','addMarker:suggestion:insertion','ck-suggestion-marker-split','insertion','schema','data','locale'];(function(_0x2cb744,_0x3d95d4){const _0x3f608b=function(_0xf1977e){while(--_0xf1977e){_0x2cb744['push'](_0x2cb744['shift']());}};_0x3f608b(++_0x3d95d4);}(_0x3d95,0x11f));const _0x3f60=function(_0x2cb744,_0x3d95d4){_0x2cb744=_0x2cb744-0x0;let _0x3f608b=_0x3d95[_0x2cb744];return _0x3f608b;};import{Plugin as _0x3aacdb}from'ckeditor5/src/core';import{getTranslation as _0x69d337}from'../utils/common-translations';export default class lt extends _0x3aacdb{[_0x3f60('0x32')](){const _0x224044=this[_0x3f60('0x2e')];if(!_0x224044[_0x3f60('0x7')][_0x3f60('0x14')](_0x3f60('0x20')))return;const _0x1a3212=_0x224044[_0x3f60('0x12')],_0x33d3e5=_0x224044[_0x3f60('0x7')]['get'](_0x3f60('0x1b'));_0x33d3e5['_descriptionFactory']['registerElementLabel']('paragraph',_0x426af8=>_0x69d337(_0x1a3212,'ELEMENT_PARAGRAPH',_0x426af8)),_0x33d3e5[_0x3f60('0x30')](_0x3f60('0x2c')),_0x33d3e5[_0x3f60('0x15')](_0x3f60('0xc')),_0x224044[_0x3f60('0x2d')]['downcastDispatcher']['on'](_0x3f60('0xd'),nr(_0x224044),{'priority':_0x3f60('0x24')}),_0x224044[_0x3f60('0x11')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbaffde,_0x2d934a,_0x2da21c)=>{_0x2da21c[_0x3f60('0x1d')][_0x3f60('0x5')]&&nr(_0x224044,{'showActiveMarker':!0x1})(_0xbaffde,_0x2d934a,_0x2da21c);},{'priority':_0x3f60('0x24')});const _0x4aaa68=_0x33d3e5['_descriptionFactory'];_0x4aaa68[_0x3f60('0x4')](_0x1b5976=>{if(_0x3f60('0xf')!==_0x1b5976['type'])return;const {start:_0xb8dc9e,end:_0x2db8ad}=_0x1b5976['getFirstRange']();if(!_0xb8dc9e['isTouching'](_0x2db8ad)||!_0xb8dc9e[_0x3f60('0x25')])return;const _0x502c51=_0x224044[_0x3f60('0x2a')][_0x3f60('0x10')],_0x24ec3f=_0xb8dc9e['nodeAfter'];return _0x502c51[_0x3f60('0x31')](_0x24ec3f)&&!_0x502c51[_0x3f60('0x2f')](_0x24ec3f)&&_0x502c51['checkChild'](_0x24ec3f,_0x3f60('0x29'))?{'type':_0x3f60('0xf'),'content':_0x69d337(_0x1a3212,_0x3f60('0xa'),_0x4aaa68[_0x3f60('0x9')](_0x24ec3f,0x1))}:void 0x0;}),this[_0x3f60('0x27')]();}[_0x3f60('0x27')](){const _0x1cf3bf=this[_0x3f60('0x2e')],_0x2ef0fd=_0x1cf3bf[_0x3f60('0x12')];_0x1cf3bf[_0x3f60('0x7')][_0x3f60('0x0')](_0x3f60('0x1b'))[_0x3f60('0x22')]['registerDescriptionCallback'](_0x56ca84=>{if(_0x3f60('0x23')!=_0x56ca84[_0x3f60('0xb')])return;const {data:_0x38abde}=_0x56ca84;return _0x38abde&&_0x3f60('0x2c')==_0x38abde[_0x3f60('0x2b')]?{'type':_0x3f60('0x1c'),'content':_0x69d337(_0x2ef0fd,_0x3f60('0x1a'),_0x69d337(_0x2ef0fd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf54d42,{showActiveMarker:_0x2925c9=!0x0}={}){return(_0x508c7c,_0x319e88,_0x3d8538)=>{const _0x2ae606=_0xf54d42[_0x3f60('0x7')][_0x3f60('0x0')](_0x3f60('0x1b')),_0x5e562d=_0x319e88[_0x3f60('0x1f')]['start'],_0xbdb46e=_0x319e88[_0x3f60('0x1f')][_0x3f60('0x1e')],_0x494174=_0xf54d42[_0x3f60('0x2a')]['schema'];if(!_0x5e562d[_0x3f60('0x21')](_0xbdb46e)||!_0x5e562d[_0x3f60('0x25')])return;const _0x1bca51=_0x5e562d[_0x3f60('0x25')];if(_0x494174[_0x3f60('0x31')](_0x1bca51)&&!_0x494174[_0x3f60('0x2f')](_0x1bca51)&&_0x494174[_0x3f60('0x28')](_0x1bca51,_0x3f60('0x29'))){if(!_0x3d8538['consumable'][_0x3f60('0x26')](_0x319e88[_0x3f60('0x1f')],_0x508c7c[_0x3f60('0x13')]))return;const _0x4f1c6e=_0x3d8538['writer']['createUIElement']('span',{'class':_0x3f60('0xe')}),_0x52d870=_0x3d8538[_0x3f60('0x16')][_0x3f60('0x1')](_0xbdb46e);_0x2925c9&&_0x2ae606[_0x3f60('0x2')]['includes'](_0x319e88[_0x3f60('0x19')])&&_0x3d8538[_0x3f60('0x8')][_0x3f60('0x6')](_0x3f60('0x3'),_0x4f1c6e),_0x3d8538[_0x3f60('0x8')][_0x3f60('0x17')](_0x52d870,_0x4f1c6e),_0x3d8538[_0x3f60('0x16')][_0x3f60('0x18')](_0x4f1c6e,_0x319e88['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50ad=['get','*Remove\x20all\x20formatting*','TrackChangesEditing','format','afterInit','_enableDefaultAttributesIntegration','RemoveFormatEditing','has','_registerLegacyDescription','commandName','plugins','type','locale'];(function(_0x258108,_0x50addb){const _0x5cfb8b=function(_0x1e659d){while(--_0x1e659d){_0x258108['push'](_0x258108['shift']());}};_0x5cfb8b(++_0x50addb);}(_0x50ad,0x101));const _0x5cfb=function(_0x258108,_0x50addb){_0x258108=_0x258108-0x0;let _0x5cfb8b=_0x50ad[_0x258108];return _0x5cfb8b;};import{Plugin as _0x45fe36}from'ckeditor5/src/core';import{getTranslation as _0x47c14d}from'../utils/common-translations';export default class mt extends _0x45fe36{[_0x5cfb('0x7')](){const _0x153b56=this['editor'];if(!_0x153b56['plugins'][_0x5cfb('0xa')](_0x5cfb('0x9')))return;_0x153b56[_0x5cfb('0x0')][_0x5cfb('0x3')](_0x5cfb('0x5'))[_0x5cfb('0x8')]('removeFormat'),this['_registerLegacyDescription']();}[_0x5cfb('0xb')](){const _0x127906=this['editor'];_0x127906[_0x5cfb('0x0')][_0x5cfb('0x3')](_0x5cfb('0x5'))['_descriptionFactory']['registerDescriptionCallback'](_0x253bfb=>{if('formatBlock'!=_0x253bfb[_0x5cfb('0x1')]&&'formatInline'!=_0x253bfb['type'])return;const {data:_0x5b4443}=_0x253bfb;return _0x5b4443&&'removeFormat'==_0x5b4443[_0x5cfb('0xc')]?{'type':_0x5cfb('0x6'),'content':_0x47c14d(_0x127906[_0x5cfb('0x2')],_0x5cfb('0x4'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5267=['plugins','RestrictedEditingModeEditing','get','editor','enableCommand','trackChanges','goToNextRestrictedEditingException','acceptSelectedSuggestions','discardSelectedSuggestions','afterInit','discardAllSuggestions','acceptAllSuggestions','discardSuggestion','TrackChangesEditing','acceptSuggestion','has','goToPreviousRestrictedEditingException'];(function(_0x396c92,_0x5267c8){const _0x3e7006=function(_0x5d915c){while(--_0x5d915c){_0x396c92['push'](_0x396c92['shift']());}};_0x3e7006(++_0x5267c8);}(_0x5267,0x155));const _0x3e70=function(_0x396c92,_0x5267c8){_0x396c92=_0x396c92-0x0;let _0x3e7006=_0x5267[_0x396c92];return _0x3e7006;};import{Plugin as _0x17b9f2}from'ckeditor5/src/core';export default class dt extends _0x17b9f2{[_0x3e70('0x8')](){const _0x206961=this[_0x3e70('0x2')];if(!_0x206961[_0x3e70('0x10')][_0x3e70('0xe')](_0x3e70('0x0')))return;const _0x26f871=_0x206961[_0x3e70('0x10')][_0x3e70('0x1')](_0x3e70('0xc'));_0x26f871[_0x3e70('0x3')](_0x3e70('0xf')),_0x26f871['enableCommand'](_0x3e70('0x5'));const _0x407a09=_0x206961[_0x3e70('0x10')][_0x3e70('0x1')](_0x3e70('0x0'));_0x407a09['enableCommand'](_0x3e70('0x4')),_0x407a09[_0x3e70('0x3')](_0x3e70('0xd')),_0x407a09[_0x3e70('0x3')](_0x3e70('0xb')),_0x407a09[_0x3e70('0x3')](_0x3e70('0xa')),_0x407a09[_0x3e70('0x3')](_0x3e70('0x9')),_0x407a09[_0x3e70('0x3')](_0x3e70('0x6')),_0x407a09[_0x3e70('0x3')](_0x3e70('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47ca=['markerRange','get','data','locale','toViewPosition','test','ck-suggestion-marker--active','init','ELEMENT_LINE_BREAK','insert','_descriptionFactory','requires','enableCommand','addMarker:suggestion:deletion','registerElementLabel','markerName','shiftEnter','high','deletion','merge','bindElementToMarker','TrackChangesEditing','downcastDispatcher','activeMarkers','ck-suggestion-marker-','split','editor','editing','addMarker:suggestion:insertion','writer','mapper'];(function(_0x38b7d7,_0x47caa9){const _0xd8ccc2=function(_0x30ddc0){while(--_0x30ddc0){_0x38b7d7['push'](_0x38b7d7['shift']());}};_0xd8ccc2(++_0x47caa9);}(_0x47ca,0x152));const _0xd8cc=function(_0x38b7d7,_0x47caa9){_0x38b7d7=_0x38b7d7-0x0;let _0xd8ccc2=_0x47ca[_0x38b7d7];return _0xd8ccc2;};import{Plugin as _0x543ad8}from'ckeditor5/src/core';import{ShiftEnter as _0x556018}from'ckeditor5/src/enter';import{getTranslation as _0x2be231}from'../utils/common-translations';export default class pt extends _0x543ad8{static get[_0xd8cc('0xe')](){return[_0x556018];}[_0xd8cc('0xa')](){const _0x30d375=this[_0xd8cc('0x1d')],_0x58490a=_0x30d375['plugins'][_0xd8cc('0x4')](_0xd8cc('0x18'));_0x58490a[_0xd8cc('0xf')](_0xd8cc('0x13')),_0x30d375[_0xd8cc('0x1e')][_0xd8cc('0x19')]['on'](_0xd8cc('0x0'),re(_0x30d375),{'priority':_0xd8cc('0x14')}),_0x30d375[_0xd8cc('0x1e')][_0xd8cc('0x19')]['on'](_0xd8cc('0x10'),re(_0x30d375),{'priority':_0xd8cc('0x14')}),_0x30d375[_0xd8cc('0x5')][_0xd8cc('0x19')]['on']('addMarker:suggestion',(_0x141955,_0x508372,_0x4a06ee)=>{_0x4a06ee['options']['showSuggestionHighlights']&&re(_0x30d375,{'showActiveMarker':!0x1})(_0x141955,_0x508372,_0x4a06ee);}),_0x58490a[_0xd8cc('0xd')][_0xd8cc('0x11')]('softBreak',_0x476471=>_0x2be231(_0x30d375[_0xd8cc('0x6')],_0xd8cc('0xb'),_0x476471));}}function re(_0x367904,{showActiveMarker:_0x467d7a=!0x0}={}){return(_0x37aae2,_0x32ff39,_0x14dfdb)=>{const _0x3d66ec=_0x367904['plugins'][_0xd8cc('0x4')](_0xd8cc('0x18'));if(!_0x14dfdb['consumable'][_0xd8cc('0x8')](_0x32ff39[_0xd8cc('0x3')],_0x37aae2['name']))return;const _0x2b2b94=_0x367904['model'];for(const _0x12bcbb of _0x32ff39['markerRange']['getItems']()){if(!_0x12bcbb['is']('element','softBreak'))continue;const _0x7ce66d=_0xd8cc('0x15')==_0x32ff39[_0xd8cc('0x12')]['split'](':')[0x1]?_0xd8cc('0x16'):_0xd8cc('0x1c'),_0x6c0e39=_0x14dfdb[_0xd8cc('0x1')]['createUIElement']('span',{'class':_0xd8cc('0x1b')+_0x7ce66d}),_0x6cbda9=_0x14dfdb['mapper'][_0xd8cc('0x7')](_0x2b2b94['createPositionBefore'](_0x12bcbb));_0x467d7a&&_0x3d66ec[_0xd8cc('0x1a')]['includes'](_0x32ff39[_0xd8cc('0x12')])&&_0x14dfdb[_0xd8cc('0x1')]['addClass'](_0xd8cc('0x9'),_0x6c0e39),_0x14dfdb[_0xd8cc('0x1')][_0xd8cc('0xc')](_0x6cbda9,_0x6c0e39),_0x14dfdb[_0xd8cc('0x2')][_0xd8cc('0x17')](_0x6c0e39,_0x32ff39['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fff=['has','locale','enableCommand','editor','model','markInlineFormat','formatInline','getRanges','change','_descriptionFactory','TrackChangesEditing','restrictedEditingException','isCollapsed','formatBlock','plugins','FORMAT_RESTRICTED_DISABLED','get','StandardEditingModeEditing','selection','forceValue','type','commandParams','afterInit','commands','format'];(function(_0x4fea04,_0x2fff3e){const _0x1fa953=function(_0x2f054e){while(--_0x2f054e){_0x4fea04['push'](_0x4fea04['shift']());}};_0x1fa953(++_0x2fff3e);}(_0x2fff,0x1b4));const _0x1fa9=function(_0x4fea04,_0x2fff3e){_0x4fea04=_0x4fea04-0x0;let _0x1fa953=_0x2fff[_0x4fea04];return _0x1fa953;};import{Plugin as _0x568077}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x50bd5e}from'./utils';import{getTranslation as _0x447404}from'../utils/common-translations';export default class kt extends _0x568077{[_0x1fa9('0xb')](){const _0x20ef50=this[_0x1fa9('0x11')],_0x25e36b=_0x20ef50[_0x1fa9('0x12')],_0x466572=_0x20ef50[_0x1fa9('0xf')];if(!_0x20ef50[_0x1fa9('0x3')][_0x1fa9('0xe')](_0x1fa9('0x6')))return;const _0x35c9cc=_0x20ef50[_0x1fa9('0x3')][_0x1fa9('0x5')](_0x1fa9('0x18')),_0x2de8f3=_0x1fa9('0x0'),_0x2d770c=_0x20ef50[_0x1fa9('0xc')]['get'](_0x2de8f3);_0x35c9cc[_0x1fa9('0x10')](_0x2de8f3,(_0x4c22d1,_0x3a5481={})=>{const _0x397e95=_0x25e36b['document'][_0x1fa9('0x7')];if(_0x397e95[_0x1fa9('0x1')])return void _0x4c22d1(_0x3a5481);const _0x4bca02=void 0x0!==_0x3a5481[_0x1fa9('0x8')]?_0x3a5481['forceValue']:!_0x2d770c['value'];_0x25e36b[_0x1fa9('0x16')](()=>{const _0x2a8272=Array['from'](_0x397e95[_0x1fa9('0x15')]());for(const _0x126ea1 of _0x2a8272){const _0x40132d=_0x4bca02?[_0x126ea1]:_0x50bd5e(_0x2de8f3,_0x126ea1,_0x25e36b);for(const _0x10239c of _0x40132d)_0x35c9cc[_0x1fa9('0x13')](_0x10239c,{'commandName':_0x2de8f3,'commandParams':[{'forceValue':_0x4bca02}]});}});}),_0x35c9cc[_0x1fa9('0x17')]['registerDescriptionCallback'](_0x34e4b0=>{if(_0x1fa9('0x2')!=_0x34e4b0[_0x1fa9('0x9')]&&_0x1fa9('0x14')!=_0x34e4b0['type'])return;const {data:_0xe1e8a6}=_0x34e4b0;return _0xe1e8a6&&_0xe1e8a6['commandName']==_0x2de8f3?_0xe1e8a6[_0x1fa9('0xa')][0x0][_0x1fa9('0x8')]?{'type':_0x1fa9('0xd'),'content':_0x447404(_0x466572,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x1fa9('0xd'),'content':_0x447404(_0x466572,_0x1fa9('0x4'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d89=['get','type','commandName','definitions','forceValue','DataSchema','format','has','FORMAT_STYLE','editor','toLowerCase','element','add','locale','inline','commandParams','TrackChangesEditing','styleName','*Remove\x20format:*\x20%0','_registerInlineAttribute','getGhsAttributeNameForElement','plugins','ghsAttributes','_descriptionFactory','afterInit','formatInline','_registerLegacyDescription','*Set\x20format:*\x20%0','registerAttributeLabel','Style','registerDescriptionCallback','normalizeConfig','_enableDefaultAttributesIntegration','style'];(function(_0x22459f,_0x4d8933){const _0x5a4b46=function(_0x5e0927){while(--_0x5e0927){_0x22459f['push'](_0x22459f['shift']());}};_0x5a4b46(++_0x4d8933);}(_0x4d89,0xf4));const _0x5a4b=function(_0x22459f,_0x4d8933){_0x22459f=_0x22459f-0x0;let _0x5a4b46=_0x4d89[_0x22459f];return _0x5a4b46;};import{Plugin as _0x5eaa74}from'ckeditor5/src/core';import{getTranslation as _0x152fdd}from'../utils/common-translations';export default class bt extends _0x5eaa74{[_0x5a4b('0x12')](){const _0x532791=this[_0x5a4b('0x3')];if(!_0x532791[_0x5a4b('0xf')][_0x5a4b('0x1')](_0x5a4b('0x17'))||!_0x532791[_0x5a4b('0xf')]['has'](_0x5a4b('0x21')))return;const _0x51b5c5=_0x532791[_0x5a4b('0xf')]['get'](_0x5a4b('0xa')),_0x4d7166=_0x532791[_0x5a4b('0x7')],_0x45ceb3=_0x532791['config'][_0x5a4b('0x1c')]('style'),_0x110bcc=_0x532791['plugins']['get']('GeneralHtmlSupport'),_0x396c39=_0x532791[_0x5a4b('0xf')][_0x5a4b('0x1c')]('StyleUtils')[_0x5a4b('0x19')](_0x532791[_0x5a4b('0xf')][_0x5a4b('0x1c')]('DataSchema'),_0x45ceb3[_0x5a4b('0x1f')]);_0x51b5c5[_0x5a4b('0x1a')](_0x5a4b('0x1b'));const _0xc4cac8=new Set();for(const _0x1fc5c4 of _0x396c39['block']){const _0x444096=_0x110bcc['getGhsAttributeNameForElement'](_0x1fc5c4[_0x5a4b('0x5')]);_0xc4cac8[_0x5a4b('0x6')](_0x444096);}const _0x5b03d1=new Set();for(const _0x427565 of _0x396c39[_0x5a4b('0x8')]){const _0x43b472=_0x110bcc[_0x5a4b('0xe')](_0x427565[_0x5a4b('0x5')]);_0x5b03d1[_0x5a4b('0x6')](_0x43b472);for(const _0x343146 of _0x427565[_0x5a4b('0x10')])_0x5b03d1['add'](_0x343146);}for(const _0x58d3a6 of _0xc4cac8)_0x51b5c5['_registerBlockAttribute'](_0x58d3a6),_0x51b5c5[_0x5a4b('0x11')][_0x5a4b('0x16')](_0x58d3a6,_0x152fdd(_0x4d7166,_0x5a4b('0x2')));for(const _0x1c1dab of _0x5b03d1)_0x51b5c5[_0x5a4b('0xd')](_0x1c1dab),_0x51b5c5[_0x5a4b('0x11')]['registerAttributeLabel'](_0x1c1dab,_0x152fdd(_0x4d7166,_0x5a4b('0x2')));this[_0x5a4b('0x14')]();}[_0x5a4b('0x14')](){const _0x467c4d=this[_0x5a4b('0x3')],_0x388226=_0x467c4d['locale'];_0x467c4d[_0x5a4b('0xf')]['get'](_0x5a4b('0xa'))[_0x5a4b('0x11')][_0x5a4b('0x18')](_0x41f21e=>{if('formatBlock'!=_0x41f21e[_0x5a4b('0x1d')]&&_0x5a4b('0x13')!=_0x41f21e['type'])return;const {data:_0x1f154c}=_0x41f21e;return _0x1f154c&&_0x5a4b('0x1b')===_0x1f154c[_0x5a4b('0x1e')]?_0x1f154c['commandParams'][0x0][_0x5a4b('0x20')]?{'type':_0x5a4b('0x0'),'content':_0x152fdd(_0x388226,_0x5a4b('0x15'),_0x1f154c[_0x5a4b('0x9')][0x0][_0x5a4b('0xb')][_0x5a4b('0x4')]())}:{'type':_0x5a4b('0x0'),'content':_0x152fdd(_0x388226,_0x5a4b('0xc'),_0x1f154c[_0x5a4b('0x9')][0x0]['styleName'][_0x5a4b('0x4')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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')]());}
|
|
23
|
+
const _0x4d43=['model','$graveyard','forceValue','suggestion','registerPostFixer','tableColumn','min','showSuggestionHighlights','insertTableRowBelow','ELEMENT_TABLE_COLUMN_WITH_TEXT','getColumnIndexes','detach','change:data','join','isTouching','get','data','editor','low','toViewElement','last','first','nodeAfter','item','maxRow','includes','removeTableRow','rootName','findAncestor','rowspan','isArray','addClass','push','substr','registerElementLabel','order','getChangedMarkers','isInContent','insertTableColumnLeft','insertTable','TableEditing','insertion','_suggestionFactory','start','commands','table','minRow','end','minColumn','batch','fromRange','tableRow','element','*Insert:*\x20%0','writer','isIntersectingWithRange','tableCell','options','differ','createRangeIn','registerCustomCallback','add','deletion','_splitMarkerName','hasAttribute','some','type','execute','insertTableRowAbove','_tableSuggestions','cell','enableCommand','getSelectionAffectedTableCells','filter','ELEMENT_TABLE_COLUMN','map','selection','selectTableRow','from','max','selectTableColumn','insert','_setupColumnsRowsFixing','span','getContainedElement','oldRange','accept','length','mapper','document','TableUtils','downcastDispatcher','_acceptFormatSuggestionCallbackFactory','colspan','ELEMENT_TABLE_ROW','addRange','plugins','startsWith','getSuggestion','locale','getAttribute','_getCoordsForCells','toLowerCase','getRanges','subType','removeTableColumn','refresh','getFirstRange','registerDescriptionCallback','$textProxy','highest','change','has','setSelection','afterInit','markMultiRangeInsertion','_descriptionFactory','enqueueChange','isEqual','createRangeOn','classes','values','*Remove:*\x20%0','left','MAX_SAFE_INTEGER','createTableWalker','name','TrackChangesEditing','getRowIndexes','getCellLocation','getItems','_getSuggestionCoords','maxColumn','above','markMultiRangeDeletion','position','root','MIN_SAFE_INTEGER'];(function(_0x4ed2a0,_0x4d435c){const _0x201122=function(_0x47b186){while(--_0x47b186){_0x4ed2a0['push'](_0x4ed2a0['shift']());}};_0x201122(++_0x4d435c);}(_0x4d43,0x1af));const _0x2011=function(_0x4ed2a0,_0x4d435c){_0x4ed2a0=_0x4ed2a0-0x0;let _0x201122=_0x4d43[_0x4ed2a0];return _0x201122;};import{Plugin as _0x41fd3e}from'ckeditor5/src/core';import{LiveRange as _0x34e9b0}from'ckeditor5/src/engine';import{setHighlightHandling as _0x42f190}from'ckeditor5/src/widget';import{getTranslation as _0x39ce34}from'../utils/common-translations';export default class wt extends _0x41fd3e{constructor(_0x120959){super(_0x120959),this['_tablePostFixingSubtypes']=[_0x2011('0x22'),_0x2011('0x7e')],this['_tableSuggestions']=new Set();}[_0x2011('0x61')](){const _0x33216e=this[_0x2011('0x0')],_0x3e05d5=_0x33216e[_0x2011('0x79')][_0x2011('0x48')][_0x2011('0x3b')];if(!_0x33216e[_0x2011('0x4f')][_0x2011('0x5f')](_0x2011('0x17')))return;const _0x25c7c1=_0x33216e[_0x2011('0x52')],_0x399402=_0x33216e[_0x2011('0x4f')]['get'](_0x2011('0x6e')),_0x2e7304=_0x33216e[_0x2011('0x4f')][_0x2011('0x88')]('TableUtils');_0x399402['_descriptionFactory'][_0x2011('0x11')](_0x2011('0x1c'),_0x5bb11a=>_0x39ce34(_0x25c7c1,'ELEMENT_TABLE',_0x5bb11a)),this[_0x2011('0x41')](),_0x399402[_0x2011('0x36')](_0x2011('0x16')),_0x399402['enableCommand'](_0x2011('0x3c')),_0x399402[_0x2011('0x36')](_0x2011('0x3f'));for(const _0x55d3f8 of[_0x2011('0x33'),_0x2011('0x81')]){const _0xee8471=_0x33216e[_0x2011('0x1b')]['get'](_0x55d3f8);_0x399402['enableCommand'](_0x55d3f8,_0x30d5ae=>{_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x118283=>{_0x30d5ae();const _0x9cbc9=_0x2011('0x74')===_0xee8471[_0x2011('0x12')],_0x2daa32=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0x25fe4f=_0x2e7304['getRowIndexes'](_0x2daa32),_0x3923ee=_0x9cbc9?_0x25fe4f[_0x2011('0x4')]-0x1:_0x25fe4f[_0x2011('0x3')]+0x1,_0x12d733=_0x2daa32[0x0]['findAncestor'](_0x2011('0x1c')),_0x415750=_0x2e7304['createTableWalker'](_0x12d733,{'startRow':_0x3923ee,'endRow':_0x3923ee}),_0x5cf504=Array[_0x2011('0x3d')](_0x415750)[_0x2011('0x3a')](_0x102f36=>_0x118283[_0x2011('0x66')](_0x102f36['cell']));_0x399402[_0x2011('0x62')](_0x5cf504,_0x2011('0x22'));});});}for(const _0x229080 of[_0x2011('0x15'),'insertTableColumnRight']){const _0x369fde=_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x229080);_0x399402['enableCommand'](_0x229080,_0x7896d8=>{_0x33216e['model'][_0x2011('0x5e')](_0x24ded7=>{_0x7896d8();const _0x320cd3=_0x2011('0x6a')===_0x369fde[_0x2011('0x12')],_0x4c12e8=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0xdcacea=_0x2e7304[_0x2011('0x83')](_0x4c12e8),_0x218840=_0x320cd3?_0xdcacea[_0x2011('0x4')]-0x1:_0xdcacea[_0x2011('0x3')]+0x1,_0x56be7b=_0x4c12e8[0x0][_0x2011('0xb')]('table'),_0x25da80=_0x2e7304[_0x2011('0x6c')](_0x56be7b,{'startRow':0x0,'column':_0x218840,'includeAllSlots':!0x1}),_0x554108=Array[_0x2011('0x3d')](_0x25da80)[_0x2011('0x3a')](_0x262e54=>_0x24ded7[_0x2011('0x66')](_0x262e54[_0x2011('0x35')]));_0x399402['markMultiRangeInsertion'](_0x554108,'tableColumn');});});}for(const _0x41243d of[_0x2011('0x9'),_0x2011('0x58')]){const _0x4a668f=_0x41243d[_0x2011('0x10')](0xb),_0x5d1155=_0x4a668f['toLowerCase'](),_0x53f60d=_0x5d1155[_0x2011('0x10')](0x0,0x3)+_0x2011('0x42'),_0xc30569=_0x2011('0x1c')+_0x4a668f,_0x397b80=_0x2011('0x7f')+_0x4a668f,_0x3d564d=_0x2011('0x3e')+_0x4a668f;_0x399402[_0x2011('0x36')](_0x41243d,()=>{_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x77a3a5=>{const _0x1060bb=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0x40c0c3=_0x1060bb[0x0][_0x2011('0xb')](_0x2011('0x1c'));let _0x14bf95;if(_0x2011('0x9')==_0x41243d){const _0x5c39b1=_0x2e7304[_0x2011('0x6f')](_0x1060bb);_0x14bf95={'startRow':_0x5c39b1[_0x2011('0x4')],'endRow':_0x5c39b1[_0x2011('0x3')],'includeAllSlots':!0x0};}else{const _0xa51e33=_0x2e7304['getColumnIndexes'](_0x1060bb);_0x14bf95={'startColumn':_0xa51e33[_0x2011('0x4')],'endColumn':_0xa51e33[_0x2011('0x3')],'includeAllSlots':!0x0};}const _0x49b28f=_0x2e7304['createTableWalker'](_0x40c0c3,_0x14bf95),_0x39ea1a=Array[_0x2011('0x3d')](_0x49b28f)[_0x2011('0x3a')](({cell:_0x57d83d})=>_0x57d83d),_0x1a2aa5=se(_0x39ea1a[_0x2011('0x38')](_0x3c37e4=>_0x3c37e4[_0x2011('0x2f')](_0x53f60d))),_0x302a35=se(_0x39ea1a[_0x2011('0x38')](_0x1baccd=>!_0x1baccd[_0x2011('0x2f')](_0x53f60d)))[_0x2011('0x3a')](_0x3b70d6=>_0x77a3a5[_0x2011('0x66')](_0x3b70d6)),_0x54291a=_0x399402[_0x2011('0x75')](_0x302a35,_0xc30569);if(_0x54291a&&('tableRow'==_0x54291a[_0x2011('0x57')]||_0x2011('0x7e')==_0x54291a[_0x2011('0x57')])){const _0x77804b=this[_0x2011('0x72')](_0x54291a);for(const _0x5f2933 of _0x1a2aa5){const _0x3f335e=_0x77a3a5[_0x2011('0x66')](_0x5f2933),_0x49d458=_0x2e7304[_0x2011('0x70')](_0x5f2933),_0x3ea983=_0x5f2933['getAttribute'](_0x53f60d)-0x1,_0x4135a9=_0x77804b[_0x397b80],_0x3f9dad=_0x77804b[_0x3d564d];_0x4135a9<=_0x49d458[_0x5d1155]&&_0x49d458[_0x5d1155]+_0x3ea983<=_0x3f9dad&&_0x54291a[_0x2011('0x4e')](_0x3f335e);}}});});}function _0x475845(_0x3caf59){const _0x28d0cf=Array['from'](_0x3e05d5['getRanges']())[_0x2011('0x3a')](_0xa1e1e=>_0x34e9b0[_0x2011('0x21')](_0xa1e1e));_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x5a8943=>{const _0x62a7cd=_0x5a8943[_0x2011('0x20')];_0x3caf59=_0x3caf59[_0x2011('0x38')](_0x59b5ea=>_0x2011('0x7a')!=_0x59b5ea[_0x2011('0x77')][_0x2011('0xa')]),_0x5a8943[_0x2011('0x60')](_0x3caf59),_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x2011('0x9'))[_0x2011('0x59')](),_0x33216e[_0x2011('0x32')](_0x2011('0x9'),{'forceDefaultExecution':!0x0}),_0x33216e[_0x2011('0x79')][_0x2011('0x64')](()=>{_0x33216e[_0x2011('0x79')]['enqueueChange'](_0x62a7cd,_0x431b06=>{const _0x2428eb=_0x28d0cf['filter'](_0x3483c0=>_0x2011('0x7a')!=_0x3483c0[_0x2011('0x77')][_0x2011('0xa')]);_0x2428eb[_0x2011('0x46')]>0x0&&_0x431b06[_0x2011('0x60')](_0x2428eb);for(const _0x4e0b00 of _0x28d0cf)_0x4e0b00[_0x2011('0x84')]();});});});}function _0x53084e(_0x395a0b){_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x5fddb8=>{const _0x40433a=Array[_0x2011('0x3d')](_0x3e05d5['getRanges']())[_0x2011('0x3a')](_0x1db16c=>_0x34e9b0['fromRange'](_0x1db16c)),_0x1e6b61=[];for(const _0x43f071 of _0x395a0b)for(const _0x303ecd of _0x43f071[_0x2011('0x71')]({'shallow':!0x0}))_0x1e6b61[_0x2011('0xf')](_0x303ecd);for(const _0x229d93 of _0x1e6b61)_0x2011('0x7a')!=_0x229d93[_0x2011('0x77')][_0x2011('0xa')]&&(_0x5fddb8[_0x2011('0x60')](_0x5fddb8['createPositionAt'](_0x229d93,0x0)),_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x2011('0x58'))[_0x2011('0x59')](),_0x33216e[_0x2011('0x32')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x40437d=_0x40433a[_0x2011('0x38')](_0x4d93e9=>_0x2011('0x7a')!=_0x4d93e9['root'][_0x2011('0xa')]);_0x40437d[_0x2011('0x46')]>0x0&&_0x5fddb8[_0x2011('0x60')](_0x40437d);for(const _0x27c386 of _0x40433a)_0x27c386['detach']();});}function _0x395373(_0x349778,_0x5abc38){return _0x5abc38['every'](_0x4e2600=>_0x349778[_0x2011('0x30')](_0x13d8c8=>_0x13d8c8[_0x2011('0x1e')]['isEqual'](_0x4e2600[_0x2011('0x1a')])||_0x4e2600[_0x2011('0x1e')][_0x2011('0x65')](_0x13d8c8[_0x2011('0x1a')])));}function _0x12187f(_0x33fd39,_0x151a8b){return _0x33fd39[_0x2011('0x30')](_0x12f6ef=>_0x151a8b[_0x2011('0x30')](_0x5b0c9a=>_0x12f6ef[_0x2011('0x1e')][_0x2011('0x87')](_0x5b0c9a[_0x2011('0x1a')])));}_0x33216e[_0x2011('0x89')][_0x2011('0x4a')]['on']('addMarker:suggestion',(_0x3b403c,_0x5552b2,_0x1c052e)=>{if(!_0x1c052e[_0x2011('0x28')][_0x2011('0x80')])return;const _0x3253b2=_0x5552b2[_0x2011('0x6')];if(!_0x3253b2)return;const _0x3fccde=_0x1c052e[_0x2011('0x47')][_0x2011('0x2')](_0x3253b2);function _0xc8ce7f(_0x4dba77){return Array[_0x2011('0xd')](_0x4dba77)?_0x4dba77:[_0x4dba77];}_0x3fccde&&_0x2011('0x27')===_0x3253b2[_0x2011('0x6d')]&&_0x42f190(_0x3fccde,_0x1c052e[_0x2011('0x25')],(_0x58d6f5,_0x35fa29,_0x4c574c)=>_0x4c574c[_0x2011('0xe')](_0xc8ce7f(_0x35fa29[_0x2011('0x67')]),_0x58d6f5),(_0x40c89e,_0x3b0076,_0x226e51)=>_0x226e51['removeClass'](_0xc8ce7f(_0x3b0076[_0x2011('0x67')]),_0x40c89e));},{'priority':_0x2011('0x5d')}),_0x399402[_0x2011('0x63')]['registerDescriptionCallback'](_0x232350=>{if(_0x2011('0x18')!=_0x232350[_0x2011('0x31')]&&'deletion'!=_0x232350['type'])return;const _0x49a448=_0x232350[_0x2011('0x43')]();if(null!=_0x49a448&&_0x49a448['is'](_0x2011('0x23'),_0x2011('0x1c'))){if(_0x2011('0x18')==_0x232350['type']){const _0x4e8829=_0x232350[_0x2011('0x71')]()['filter'](_0x3534e6=>_0x3534e6['is'](_0x2011('0x5c')))[_0x2011('0x3a')](_0xbe5ede=>_0xbe5ede[_0x2011('0x89')]);if(_0x4e8829[_0x2011('0x46')])return{'type':'insertion','content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e8829[_0x2011('0x86')]('\x20')+'\x22'))};}if(_0x2011('0x2d')==_0x232350['type']){const _0x4c992e=_0x232350['getItems']()['filter'](_0x24a07a=>_0x24a07a['is'](_0x2011('0x5c')))['map'](_0x24b085=>_0x24b085['data']);if(_0x4c992e[_0x2011('0x46')])return{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c992e[_0x2011('0x86')]('\x20')+'\x22'))};}}}),_0x399402[_0x2011('0x63')][_0x2011('0x5b')](_0x3c9b27=>{if(_0x2011('0x22')==_0x3c9b27[_0x2011('0x57')]){const _0x582de7=_0x3c9b27[_0x2011('0x71')]()['filter'](_0x14c569=>_0x14c569['is'](_0x2011('0x5c')))['map'](_0x2c667a=>_0x2c667a[_0x2011('0x89')]),_0x44f315=this[_0x2011('0x72')](_0x3c9b27),_0x15ec69=_0x44f315[_0x2011('0x7')]-_0x44f315[_0x2011('0x1d')]+0x1;if(_0x2011('0x18')==_0x3c9b27['type'])return _0x582de7['length']?{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x15ec69,'\x22'+_0x582de7[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,'*Insert:*\x20%0',_0x39ce34(_0x25c7c1,_0x2011('0x4d'),_0x15ec69))};if('deletion'==_0x3c9b27[_0x2011('0x31')])return _0x582de7[_0x2011('0x46')]?{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x15ec69,'\x22'+_0x582de7[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x4d'),_0x15ec69))};}if(_0x2011('0x7e')==_0x3c9b27['subType']){const _0x5c9225=_0x3c9b27[_0x2011('0x71')]()[_0x2011('0x38')](_0x3abc5c=>_0x3abc5c['is'](_0x2011('0x5c')))[_0x2011('0x3a')](_0x2c0afa=>_0x2c0afa[_0x2011('0x89')]),_0x156f6f=this[_0x2011('0x72')](_0x3c9b27),_0x4dded0=_0x156f6f[_0x2011('0x73')]-_0x156f6f[_0x2011('0x1f')]+0x1;if(_0x2011('0x18')==_0x3c9b27['type'])return _0x5c9225[_0x2011('0x46')]?{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,_0x2011('0x82'),[_0x4dded0,'\x22'+_0x5c9225['join']('\x20')+'\x22']))}:{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,_0x2011('0x39'),_0x4dded0))};if(_0x2011('0x2d')==_0x3c9b27['type'])return _0x5c9225[_0x2011('0x46')]?{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x82'),[_0x4dded0,'\x22'+_0x5c9225[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x39'),_0x4dded0))};}}),_0x399402[_0x2011('0x19')][_0x2011('0x2b')]('insertion',_0x2011('0x22'),'discard',_0x475845),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x22'),_0x2011('0x45'),_0x475845),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),_0x2011('0x7e'),'discard',_0x53084e),_0x399402['_suggestionFactory'][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x7e'),_0x2011('0x45'),_0x53084e),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),_0x2011('0x7e'),_0x2011('0x86'),_0x395373),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x7e'),_0x2011('0x86'),_0x395373),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),'tableRow',_0x2011('0x86'),_0x12187f),_0x399402[_0x2011('0x19')][_0x2011('0x2b')]('deletion',_0x2011('0x22'),_0x2011('0x86'),_0x12187f);}[_0x2011('0x4b')](){const _0x125565=this['editor'],_0x18346a=_0x125565['model']['document']['selection'];return(_0x198749,_0x3df47f)=>{_0x125565[_0x2011('0x79')][_0x2011('0x5e')](_0x2a5f94=>{const {commandName:_0x4959b4,commandParams:_0x38bd70}=_0x3df47f;let _0x405f2c=_0x198749[0x0][_0x2011('0x1e')]['nodeBefore'];_0x38bd70&&_0x38bd70[0x0]&&!0x1===_0x38bd70[0x0][_0x2011('0x7b')]&&(_0x405f2c=_0x198749[0x0]['start'][_0x2011('0x5')]);const _0x560177=_0x2a5f94[_0x2011('0x2a')](_0x405f2c);if(_0x2011('0x7a')==_0x560177[_0x2011('0x77')][_0x2011('0xa')])return;const _0x1a9439=Array[_0x2011('0x3d')](_0x18346a[_0x2011('0x56')]())[_0x2011('0x3a')](_0x521165=>_0x34e9b0[_0x2011('0x21')](_0x521165));_0x2a5f94[_0x2011('0x60')](_0x560177),_0x125565[_0x2011('0x1b')][_0x2011('0x88')](_0x4959b4)[_0x2011('0x59')](),_0x38bd70['push']({'forceDefaultExecution':!0x0}),_0x125565[_0x2011('0x32')](_0x4959b4,..._0x38bd70);const _0x131eff=_0x1a9439[_0x2011('0x38')](_0x1ae663=>_0x2011('0x7a')!=_0x1ae663[_0x2011('0x77')][_0x2011('0xa')]);_0x131eff[_0x2011('0x46')]>0x0&&_0x2a5f94['setSelection'](_0x131eff);for(const _0x51fdc1 of _0x1a9439)_0x51fdc1[_0x2011('0x84')]();});};}[_0x2011('0x54')](_0x4db794){const _0x3004b6=this[_0x2011('0x0')]['plugins'][_0x2011('0x88')](_0x2011('0x49'));let _0x58ece2=Number[_0x2011('0x6b')],_0xb891a=Number[_0x2011('0x78')],_0xa84266=Number['MAX_SAFE_INTEGER'],_0x3e7230=Number['MIN_SAFE_INTEGER'];for(const _0x4eb90f of _0x4db794){if(_0x2011('0x7a')==_0x4eb90f['root'][_0x2011('0xa')])continue;const {row:_0x4db5cf,column:_0x38acc8}=_0x3004b6[_0x2011('0x70')](_0x4eb90f),_0x189a23=_0x4eb90f[_0x2011('0x2f')](_0x2011('0xc'))?_0x4eb90f[_0x2011('0x53')](_0x2011('0xc'))-0x1:0x0,_0xc33b89=_0x4eb90f['hasAttribute'](_0x2011('0x4c'))?_0x4eb90f[_0x2011('0x53')]('colspan')-0x1:0x0;_0x58ece2=_0x4db5cf<_0x58ece2?_0x4db5cf:_0x58ece2,_0xb891a=_0x4db5cf+_0x189a23>_0xb891a?_0x4db5cf+_0x189a23:_0xb891a,_0xa84266=_0x38acc8<_0xa84266?_0x38acc8:_0xa84266,_0x3e7230=_0x38acc8+_0xc33b89>_0x3e7230?_0x38acc8+_0xc33b89:_0x3e7230;}return{'minRow':_0x58ece2,'maxRow':_0xb891a,'minColumn':_0xa84266,'maxColumn':_0x3e7230};}['_setupColumnsRowsFixing'](){const _0x51bc67=this[_0x2011('0x0')],_0x30384a=_0x51bc67['plugins'][_0x2011('0x88')](_0x2011('0x6e')),_0x1d768c=_0x51bc67[_0x2011('0x4f')][_0x2011('0x88')](_0x2011('0x49'));_0x51bc67[_0x2011('0x79')][_0x2011('0x48')]['on'](_0x2011('0x85'),()=>{const _0x40c4f3=Array[_0x2011('0x3d')](_0x51bc67[_0x2011('0x79')][_0x2011('0x48')]['differ'][_0x2011('0x13')]());for(const {name:_0x1254f7,data:_0x3cc402}of _0x40c4f3){const {group:_0x378490,id:_0x574024,subType:_0x5a0864}=_0x30384a[_0x2011('0x2e')](_0x1254f7);if(_0x2011('0x7c')!=_0x378490)continue;if(null!=_0x3cc402[_0x2011('0x44')])continue;const _0x2fd2af=_0x30384a[_0x2011('0x51')](_0x574024);this['_tablePostFixingSubtypes'][_0x2011('0x8')](_0x5a0864)&&this[_0x2011('0x34')][_0x2011('0x2c')](_0x2fd2af);}},{'priority':_0x2011('0x1')});const _0x32d9a3=(_0xdc7489,_0x15ccb0)=>{let _0x5e908d=!0x1;const _0x2dd019=_0x15ccb0[_0x2011('0x66')](_0xdc7489),_0xa68dd3=_0xdc7489[_0x2011('0xb')](_0x2011('0x1c')),_0x5d90fe=_0x1d768c[_0x2011('0x70')](_0xdc7489);for(const _0x392dd5 of this[_0x2011('0x34')]){const _0x3f23ed=_0x392dd5[_0x2011('0x57')],_0x348f2e=_0x3f23ed[_0x2011('0x50')]('tablePaste'),_0x4825c8=_0x3f23ed['substr'](_0x348f2e?0xa:0x5),_0x1a2aaf=_0x4825c8[_0x2011('0x55')](),_0x6fec06=_0x1a2aaf[_0x2011('0x10')](0x0,0x3)+_0x2011('0x42'),_0x1b0acd=_0x2011('0x7f')+_0x4825c8,_0x4cfa42='max'+_0x4825c8;if(!_0x392dd5[_0x2011('0x14')])continue;if(_0xa68dd3!=_0x392dd5[_0x2011('0x5a')]()[_0x2011('0x1a')][_0x2011('0xb')](_0x2011('0x1c')))continue;if(_0x392dd5[_0x2011('0x26')](_0x2dd019))continue;const _0x33f433=_0xdc7489[_0x2011('0x2f')](_0x6fec06)?_0xdc7489[_0x2011('0x53')](_0x6fec06)-0x1:0x0,_0x4e1af8=this[_0x2011('0x72')](_0x392dd5),_0x38312b=_0x4e1af8[_0x1b0acd],_0xaea2fc=_0x4e1af8[_0x4cfa42];_0x38312b<=_0x5d90fe[_0x1a2aaf]&&_0x5d90fe[_0x1a2aaf]+_0x33f433<=_0xaea2fc&&(_0x392dd5[_0x2011('0x4e')](_0x2dd019),_0x5e908d=!0x0);}return _0x5e908d;};_0x51bc67[_0x2011('0x79')]['document'][_0x2011('0x7d')](_0x8c3158=>{let _0x16d985=!0x1;for(const _0x211bca of _0x51bc67[_0x2011('0x79')]['document'][_0x2011('0x29')]['getChanges']())if(_0x2011('0x40')==_0x211bca['type']){if(_0x2011('0x22')==_0x211bca[_0x2011('0x6d')])for(const _0xcff5c5 of _0x211bca[_0x2011('0x76')]['nodeAfter']['getChildren']())_0x16d985=_0x16d985||_0x32d9a3(_0xcff5c5,_0x8c3158);else _0x2011('0x27')==_0x211bca['name']&&(_0x16d985=_0x16d985||_0x32d9a3(_0x211bca['position'][_0x2011('0x5')],_0x8c3158));}return _0x16d985;});}[_0x2011('0x72')](_0x20446b){return this[_0x2011('0x54')](_0x20446b[_0x2011('0x56')]()[_0x2011('0x3a')](_0x5687f5=>_0x5687f5[_0x2011('0x1a')][_0x2011('0x5')]));}}function se(_0x49d61a){return Array['from'](new Set(_0x49d61a)[_0x2011('0x68')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x356d=['plugins','has','TableCaptionEditing','TrackChangesEditing','requires','get','editor','toggleTableCaption','afterInit'];(function(_0x158c32,_0x356df3){const _0x2bf193=function(_0x12c1c1){while(--_0x12c1c1){_0x158c32['push'](_0x158c32['shift']());}};_0x2bf193(++_0x356df3);}(_0x356d,0xbe));const _0x2bf1=function(_0x158c32,_0x356df3){_0x158c32=_0x158c32-0x0;let _0x2bf193=_0x356d[_0x158c32];return _0x2bf193;};import{Plugin as _0x303c95}from'ckeditor5/src/core';import _0x4172c8 from'./table';export default class Nt extends _0x303c95{static get[_0x2bf1('0x3')](){return[_0x4172c8];}[_0x2bf1('0x7')](){const _0x377026=this[_0x2bf1('0x5')];if(!_0x377026['plugins'][_0x2bf1('0x0')](_0x2bf1('0x1')))return;_0x377026[_0x2bf1('0x8')][_0x2bf1('0x4')](_0x2bf1('0x2'))['enableCommand'](_0x2bf1('0x6'));}}
|