@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231124.0 → 0.0.0-nightly-20231125.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 _0x6684=['listItem','push','markBlockFormat','listType','previousSibling','name','blockName','format','element','locale','editor','paragraph','getAttribute','get','_selectedElements','createPositionAt','_descriptionFactory','*Uncheck\x20item*','model','List','listIndent','selection','bulletedList','registerDescriptionCallback','formatInline','value','filter','from','replace','type','getSelectedBlocks','createRange','forceValue','add','TodoListEditing','checkTodoList','slice','parent','todoList','numbered','ELEMENT_LIST_ITEM','*Indent:*\x20%0','outdentList','commandParams','plugins','todo','document','before','numberedList','commandName','has','change','registerElementLabel','afterInit','checkChild','nextSibling','schema','indentList','enableCommand','length','commands','findIndex','ELEMENT_BULLETED_LIST'];(function(_0x5a2615,_0x66849b){const _0x4dba9b=function(_0x533f88){while(--_0x533f88){_0x5a2615['push'](_0x5a2615['shift']());}};_0x4dba9b(++_0x66849b);}(_0x6684,0x7b));const _0x4dba=function(_0x5a2615,_0x66849b){_0x5a2615=_0x5a2615-0x0;let _0x4dba9b=_0x6684[_0x5a2615];return _0x4dba9b;};import{Plugin as _0x3e2935}from'ckeditor5/src/core';import{getTranslation as _0x149648}from'../utils/common-translations';export default class ct extends _0x3e2935{[_0x4dba('0x38')](){const _0x37e880=this[_0x4dba('0xd')],_0x62a71e=_0x37e880[_0x4dba('0xc')];if(!_0x37e880[_0x4dba('0x2f')][_0x4dba('0x35')]('ListEditing'))return;const _0x3e72ab=_0x37e880['plugins']['get']('TrackChangesEditing'),_0x169b57=_0x37e880[_0x4dba('0x2f')][_0x4dba('0x35')](_0x4dba('0x25'));function _0x2c7ac2(_0x2b5947){return()=>{const _0x5726f9=_0x37e880[_0x4dba('0x15')]['document'][_0x4dba('0x18')],_0x4faf2a=_0x37e880[_0x4dba('0x0')][_0x4dba('0x10')](_0x2b5947);if(_0x4faf2a[_0x4dba('0x1c')])return void _0x37e880['execute'](_0x4dba('0xe'),{});const _0x39f913=_0x2b5947[_0x4dba('0x27')](0x0,-0x4),_0x28fd55=function(_0x7ce86f,_0xadb2ee,_0x29510a){let _0x365759=Array[_0x4dba('0x1e')](_0x7ce86f)['filter'](_0x4193cd=>function(_0x2f835b,_0x3407c8){return _0x3407c8[_0x4dba('0x39')](_0x2f835b[_0x4dba('0x28')],_0x4dba('0x3'))&&!_0x3407c8['isObject'](_0x2f835b);}(_0x4193cd,_0x29510a));_0x365759=_0x365759[_0x4dba('0x1d')](_0x2af8ec=>!_0x2af8ec['is'](_0x4dba('0xb'),_0x4dba('0x3'))||_0x2af8ec['getAttribute'](_0x4dba('0x6'))!=_0xadb2ee);const _0x44a609=new Set();for(const _0x32878e of _0x365759)_0x32878e['is'](_0x4dba('0xb'),_0x4dba('0x3'))?_0x44a609[_0x4dba('0x24')](ne(_0x32878e)):_0x44a609[_0x4dba('0x24')](_0x32878e);return Array['from'](_0x44a609);}(_0x5726f9[_0x4dba('0x21')](),_0x39f913,_0x37e880[_0x4dba('0x15')][_0x4dba('0x3b')]);_0x37e880[_0x4dba('0x15')]['change'](()=>{for(const _0xd80066 of _0x28fd55)_0x3e72ab['markBlockFormat'](_0xd80066,{'commandName':_0x2b5947,'commandParams':[{'forceValue':!_0x4faf2a[_0x4dba('0x1c')]}],'formatGroupId':_0x4dba('0x9')},oe(_0xd80066));});};}function _0x2bb205(_0x46ec35){return()=>{const _0x22bb80=function(_0x411331){let _0x55cf9a=Array[_0x4dba('0x1e')](_0x411331);const _0x3d87c8=_0x55cf9a[_0x4dba('0x1')](_0x294e11=>'listItem'!=_0x294e11['name']);return _0x3d87c8>-0x1&&(_0x55cf9a=_0x55cf9a[_0x4dba('0x27')](0x0,_0x3d87c8)),_0x55cf9a;}(_0x37e880['model'][_0x4dba('0x31')]['selection'][_0x4dba('0x21')]()),_0x459974=_0x37e880[_0x4dba('0x15')][_0x4dba('0x22')](_0x37e880[_0x4dba('0x15')][_0x4dba('0x12')](_0x22bb80[0x0],_0x4dba('0x32')),_0x37e880[_0x4dba('0x15')][_0x4dba('0x12')](_0x22bb80[_0x22bb80[_0x4dba('0x3e')]-0x1],'end'));_0x37e880[_0x4dba('0x15')]['change'](()=>{_0x3e72ab['markBlockFormat'](_0x459974,{'commandName':_0x46ec35,'commandParams':[],'formatGroupId':'listIndent'},function(_0x361660){const _0x416f42=new Set();for(const _0x154ad0 of _0x361660){let _0x33ce5d=_0x154ad0[_0x4dba('0x3a')];for(;_0x33ce5d&&_0x33ce5d[_0x4dba('0xf')](_0x4dba('0x17'))>_0x154ad0[_0x4dba('0xf')](_0x4dba('0x17'));)_0x416f42[_0x4dba('0x24')](_0x33ce5d),_0x33ce5d=_0x33ce5d[_0x4dba('0x3a')];}return Array[_0x4dba('0x1e')](_0x416f42);}(_0x22bb80));});};}_0x3e72ab[_0x4dba('0x3d')](_0x4dba('0x33'),_0x2c7ac2(_0x4dba('0x33'))),_0x3e72ab[_0x4dba('0x3d')](_0x4dba('0x19'),_0x2c7ac2('bulletedList')),_0x169b57&&_0x3e72ab[_0x4dba('0x3d')](_0x4dba('0x29'),_0x2c7ac2(_0x4dba('0x29'))),_0x3e72ab['enableCommand'](_0x4dba('0x3c'),_0x2bb205('indentList')),_0x3e72ab[_0x4dba('0x3d')](_0x4dba('0x2d'),_0x2bb205(_0x4dba('0x2d'))),_0x169b57&&_0x3e72ab[_0x4dba('0x3d')]('checkTodoList',()=>{const _0x193e8c=_0x37e880[_0x4dba('0x0')][_0x4dba('0x10')]('checkTodoList'),_0x77c18a=Array[_0x4dba('0x1e')](_0x193e8c[_0x4dba('0x11')]);_0x77c18a[_0x4dba('0x1d')](_0x52c5a7=>_0x52c5a7['getAttribute']('todoListChecked')!=_0x193e8c[_0x4dba('0x1c')]),_0x37e880[_0x4dba('0x15')][_0x4dba('0x36')](()=>{for(const _0x758635 of _0x77c18a)_0x3e72ab[_0x4dba('0x5')](_0x758635,{'commandName':_0x4dba('0x26'),'commandParams':[{'forceValue':!_0x193e8c[_0x4dba('0x1c')]}]});});}),_0x3e72ab[_0x4dba('0x13')][_0x4dba('0x37')](_0x4dba('0x3'),_0x3c2b88=>_0x149648(_0x62a71e,'ELEMENT_LIST_ITEM',_0x3c2b88)),_0x3e72ab[_0x4dba('0x13')][_0x4dba('0x1a')](_0x1ee7de=>{if('formatBlock'!=_0x1ee7de[_0x4dba('0x20')]&&_0x4dba('0x1b')!=_0x1ee7de[_0x4dba('0x20')])return;const {data:_0x131905}=_0x1ee7de;if(_0x131905){if(_0x4dba('0x33')==_0x131905[_0x4dba('0x34')]||_0x4dba('0x19')==_0x131905[_0x4dba('0x34')]||_0x4dba('0x29')==_0x131905['commandName'])switch(_0x131905[_0x4dba('0x34')][_0x4dba('0x1f')](_0x4dba('0x16'),'')){case'bulleted':return _0x5acada(_0x149648(_0x62a71e,_0x4dba('0x2')));case _0x4dba('0x2a'):return _0x5acada(_0x149648(_0x62a71e,'ELEMENT_NUMBERED_LIST'));case _0x4dba('0x30'):return _0x5acada(_0x149648(_0x62a71e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x131905[_0x4dba('0x34')])return{'type':_0x4dba('0xa'),'content':_0x149648(_0x62a71e,_0x4dba('0x2c'),_0x149648(_0x62a71e,_0x4dba('0x2b')))};if(_0x4dba('0x2d')==_0x131905[_0x4dba('0x34')])return{'type':_0x4dba('0xa'),'content':_0x149648(_0x62a71e,'*Outdent:*\x20%0',_0x149648(_0x62a71e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x131905[_0x4dba('0x34')])return _0x131905[_0x4dba('0x2e')][0x0][_0x4dba('0x23')]?{'type':_0x4dba('0xa'),'content':_0x149648(_0x62a71e,'*Check\x20item*')}:{'type':_0x4dba('0xa'),'content':_0x149648(_0x62a71e,_0x4dba('0x14'))};}function _0x5acada(_0x2fbad4){return{'type':'format','content':_0x149648(_0x62a71e,'*Change\x20to:*\x20%0',_0x2fbad4)};}});}}function ne(_0x546651){const _0x1b0dee=_0x546651['getAttribute'](_0x4dba('0x17'));if(0x0==_0x1b0dee)return _0x546651;let _0xc0d0be=_0x546651;for(;_0x546651['previousSibling']&&_0x546651[_0x4dba('0x7')]['is'](_0x4dba('0xb'),_0x4dba('0x3'));){const _0x77abfb=_0x546651['previousSibling'][_0x4dba('0xf')](_0x4dba('0x17'));if(_0x77abfb==_0x1b0dee)_0xc0d0be=_0x546651['previousSibling'];else{if(_0x77abfb<_0x1b0dee)break;}_0x546651=_0x546651[_0x4dba('0x7')];}return _0xc0d0be;}function oe(_0x103ff1){const _0x3c8760=[];if(_0x103ff1['is'](_0x4dba('0xb'),_0x4dba('0x3'))&&_0x103ff1[_0x4dba('0xf')]('listIndent')>0x0){let _0x15d147=_0x103ff1[_0x4dba('0x3a')];for(;_0x15d147&&_0x4dba('0x3')==_0x15d147[_0x4dba('0x8')]&&_0x15d147[_0x4dba('0xf')](_0x4dba('0x17'))==_0x103ff1[_0x4dba('0xf')]('listIndent');)_0x3c8760[_0x4dba('0x4')](_0x15d147),_0x15d147=_0x15d147[_0x4dba('0x3a')];}return _0x3c8760;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1212=['listItem','backward','element','commandName','format','model','enableCommand','map','styles','getListTypeFromListStyleType','afterInit','editor','filter','*Format:*\x20set\x20order\x20to\x20reversed','change','registerDescriptionCallback','flat','_LIST_','_getSuggestionBlocks','getFirstPosition','*Change\x20to:*\x20%0','getAttribute','createPositionAt','startIndex','getSelectedBlocks','reversed','ListUtils','numbered','document','forward','listStart','plugins','handleListStyleCommand','handleDescriptions','getSiblingNodes','_getTranslationKeyForListStyle','length','type','formatInline','locale','commandParams','handleListStartCommand','createRange','has','handleListReversedCommand','selection','before','formatBlock','ListPropertiesEditing','ELEMENT_','from','*Format:*\x20set\x20start\x20index\x20to\x20%0','toUpperCase','bind','get','push','markMultiRangeBlockFormat','listReversed','listStyle','listType','TrackChangesEditing','_getSuggestionBlocksForListStyle'];(function(_0x23590d,_0x12126b){const _0x17a8ca=function(_0x447d52){while(--_0x447d52){_0x23590d['push'](_0x23590d['shift']());}};_0x17a8ca(++_0x12126b);}(_0x1212,0xf8));const _0x17a8=function(_0x23590d,_0x12126b){_0x23590d=_0x23590d-0x0;let _0x17a8ca=_0x1212[_0x23590d];return _0x17a8ca;};import{Plugin as _0x5073bd}from'ckeditor5/src/core';import{getTranslation as _0x11392a}from'../utils/common-translations';export default class ut extends _0x5073bd{[_0x17a8('0xa')](){if(!this[_0x17a8('0xb')][_0x17a8('0x1f')][_0x17a8('0x2b')](_0x17a8('0x30')))return;const _0x53f963=this[_0x17a8('0xb')]['config'][_0x17a8('0x36')]('list.properties'),_0x275348=this['editor'][_0x17a8('0x1f')][_0x17a8('0x36')](_0x17a8('0x3c'));_0x53f963[_0x17a8('0x8')]&&_0x275348[_0x17a8('0x6')](_0x17a8('0x3a'),this[_0x17a8('0x20')]['bind'](this)),_0x53f963[_0x17a8('0x19')]&&_0x275348['enableCommand']('listReversed',this[_0x17a8('0x2c')]['bind'](this)),_0x53f963[_0x17a8('0x17')]&&_0x275348[_0x17a8('0x6')]('listStart',this['handleListStartCommand'][_0x17a8('0x35')](this)),_0x275348['_descriptionFactory'][_0x17a8('0xf')](this[_0x17a8('0x21')][_0x17a8('0x35')](this));}[_0x17a8('0x20')](_0xe83ee,_0x471d78={}){const _0x1b52c3=this[_0x17a8('0xb')]['plugins'][_0x17a8('0x36')](_0x17a8('0x3c')),_0x19c59e=this[_0x17a8('0x3d')]();this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0xe')](()=>{_0x1b52c3[_0x17a8('0x38')](_0x19c59e,{'commandName':'listStyle','commandParams':[{'type':_0x471d78[_0x17a8('0x25')]}],'formatGroupId':_0x17a8('0x3a')});});}[_0x17a8('0x2c')](_0x152be7,_0x78afeb={}){const _0x2d6c47=this[_0x17a8('0xb')]['plugins'][_0x17a8('0x36')](_0x17a8('0x3c')),_0x5d14f3=this['_getSuggestionBlocks'](_0x30e8d5=>_0x30e8d5['is'](_0x17a8('0x2'),_0x17a8('0x0'))&&'numbered'===_0x30e8d5[_0x17a8('0x15')]('listType'));if(_0x5d14f3[_0x17a8('0x24')]<0x1)return;const _0x54b525=_0x5d14f3['map'](_0x55fecc=>this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x2a')](this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x16')](_0x55fecc,_0x17a8('0x2e')),this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x16')](_0x55fecc,0x0)));this['editor'][_0x17a8('0x5')][_0x17a8('0xe')](()=>{_0x2d6c47['markMultiRangeBlockFormat'](_0x54b525,{'commandName':_0x17a8('0x39'),'commandParams':[{'reversed':_0x78afeb[_0x17a8('0x19')]}],'formatGroupId':_0x17a8('0x39')});});}[_0x17a8('0x29')](_0x1e82b1,_0x5d0038={}){const _0x405460=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31791f=this['_getSuggestionBlocks'](_0x21bdb9=>_0x21bdb9['is'](_0x17a8('0x2'),_0x17a8('0x0'))&&_0x17a8('0x1b')===_0x21bdb9['getAttribute'](_0x17a8('0x3b')));if(_0x31791f[_0x17a8('0x24')]<0x1)return;const _0x345175=_0x31791f['map'](_0x13e4b7=>this['editor'][_0x17a8('0x5')][_0x17a8('0x2a')](this[_0x17a8('0xb')]['model']['createPositionAt'](_0x13e4b7,'before'),this[_0x17a8('0xb')][_0x17a8('0x5')]['createPositionAt'](_0x13e4b7,0x0)));this['editor'][_0x17a8('0x5')][_0x17a8('0xe')](()=>{_0x405460[_0x17a8('0x38')](_0x345175,{'commandName':_0x17a8('0x1e'),'commandParams':[{'startIndex':_0x5d0038[_0x17a8('0x17')]}],'formatGroupId':_0x17a8('0x1e')});});}[_0x17a8('0x21')](_0x44a8a1){if(_0x17a8('0x2f')!=_0x44a8a1[_0x17a8('0x25')]&&_0x17a8('0x26')!=_0x44a8a1[_0x17a8('0x25')])return;const _0x18d76a=this[_0x17a8('0xb')][_0x17a8('0x27')],{data:_0x549db6}=_0x44a8a1;if(!_0x549db6)return;let _0x4727fb,_0x34ae33;switch(_0x549db6[_0x17a8('0x3')]){case _0x17a8('0x3a'):_0x4727fb=_0x17a8('0x14'),_0x34ae33={'type':'format','content':_0x11392a(_0x18d76a,_0x4727fb,_0x11392a(_0x18d76a,this[_0x17a8('0x23')](_0x549db6[_0x17a8('0x28')][0x0][_0x17a8('0x25')])))};break;case _0x17a8('0x39'):_0x4727fb=_0x549db6['commandParams'][0x0]['reversed']?_0x17a8('0xd'):'*Format:*\x20set\x20order\x20to\x20regular',_0x34ae33={'type':'format','content':_0x11392a(_0x18d76a,_0x4727fb)};break;case'listStart':_0x4727fb=_0x17a8('0x33'),_0x34ae33={'type':_0x17a8('0x4'),'content':_0x11392a(_0x18d76a,_0x4727fb,_0x549db6['commandParams'][0x0][_0x17a8('0x17')])};}return _0x34ae33;}[_0x17a8('0x3d')](){var _0x87240d,_0x3f6ad9,_0x51b7a3,_0x235761;const _0x14a807=this[_0x17a8('0xb')][_0x17a8('0x1f')][_0x17a8('0x36')]('ListUtils');let _0x405579=Array['from'](this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x1c')][_0x17a8('0x2d')]['getSelectedBlocks']());return(null===(_0x87240d=_0x405579[0x0])||void 0x0===_0x87240d?void 0x0:_0x87240d['is'](_0x17a8('0x2'),'listItem'))&&_0x405579['unshift'](..._0x14a807[_0x17a8('0x22')](this[_0x17a8('0xb')][_0x17a8('0x5')]['document']['selection'][_0x17a8('0x13')](),_0x17a8('0x1'))),(null===(_0x3f6ad9=_0x405579[_0x405579[_0x17a8('0x24')]-0x1])||void 0x0===_0x3f6ad9?void 0x0:_0x3f6ad9['is']('element',_0x17a8('0x0')))&&_0x405579[_0x17a8('0x37')](..._0x14a807[_0x17a8('0x22')](this[_0x17a8('0xb')]['model'][_0x17a8('0x1c')][_0x17a8('0x2d')]['getLastPosition'](),_0x17a8('0x1d'))),_0x405579=[...new Set(_0x405579)],(null===(_0x235761=null===(_0x51b7a3=this[_0x17a8('0xb')]['model'][_0x17a8('0x1c')][_0x17a8('0x2d')][_0x17a8('0x13')]())||void 0x0===_0x51b7a3?void 0x0:_0x51b7a3['parent'])||void 0x0===_0x235761?void 0x0:_0x235761['is']('element','listItem'))&&(_0x405579=_0x405579[_0x17a8('0xc')](_0x3996ff=>_0x3996ff['is'](_0x17a8('0x2'),_0x17a8('0x0')))),_0x405579;}[_0x17a8('0x12')](_0x4d35c9){const _0x1fd8b0=this[_0x17a8('0xb')][_0x17a8('0x1f')]['get']('ListUtils');let _0x4037af=Array[_0x17a8('0x32')](this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x1c')]['selection'][_0x17a8('0x18')]())['filter'](_0x4d35c9)[_0x17a8('0x7')](_0x237173=>{const _0x35cc28=this[_0x17a8('0xb')][_0x17a8('0x5')][_0x17a8('0x16')](_0x237173,0x0);return[..._0x1fd8b0[_0x17a8('0x22')](_0x35cc28,'backward'),..._0x1fd8b0[_0x17a8('0x22')](_0x35cc28,'forward')];})[_0x17a8('0x10')]();return _0x4037af=[...new Set(_0x4037af)],_0x4037af;}[_0x17a8('0x23')](_0x23ab64){return _0x17a8('0x31')+this[_0x17a8('0xb')][_0x17a8('0x1f')][_0x17a8('0x36')](_0x17a8('0x1a'))[_0x17a8('0x9')](_0x23ab64)[_0x17a8('0x34')]()+_0x17a8('0x11')+_0x23ab64[_0x17a8('0x34')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e27=['createEmptyElement','attribute:url:media','stop','MediaEmbedEditing','downcastDispatcher','for','registerElementLabel','media','options','TrackChangesEditing','locale','afterInit','has','plugins','high','editor','showSuggestionHighlights','conversion','_descriptionFactory','ELEMENT_MEDIA','get','dataDowncast','enableCommand'];(function(_0x23c03a,_0x3e2768){const _0x26d636=function(_0x573f85){while(--_0x573f85){_0x23c03a['push'](_0x23c03a['shift']());}};_0x26d636(++_0x3e2768);}(_0x3e27,0xfa));const _0x26d6=function(_0x23c03a,_0x3e2768){_0x23c03a=_0x23c03a-0x0;let _0x26d636=_0x3e27[_0x23c03a];return _0x26d636;};import{Plugin as _0x50b21a}from'ckeditor5/src/core';import{getTranslation as _0x1ca519}from'../utils/common-translations';export default class ht extends _0x50b21a{[_0x26d6('0xe')](){const _0x47320d=this[_0x26d6('0x12')];if(!_0x47320d[_0x26d6('0x10')][_0x26d6('0xf')](_0x26d6('0x6')))return;const _0xe2130f=_0x47320d[_0x26d6('0x10')][_0x26d6('0x0')](_0x26d6('0xc')),_0x35caf7=_0x47320d[_0x26d6('0xd')];_0xe2130f[_0x26d6('0x2')]('mediaEmbed'),_0xe2130f[_0x26d6('0x15')][_0x26d6('0x9')]('media',_0x548702=>_0x1ca519(_0x35caf7,_0x26d6('0x16'),_0x548702)),_0x47320d[_0x26d6('0x14')][_0x26d6('0x8')](_0x26d6('0x1'))['elementToElement']({'model':_0x26d6('0xa'),'view':(_0x357e6e,{writer:_0x50ac6f,options:_0x39dbff})=>{if(_0x39dbff['showSuggestionHighlights'])return _0x50ac6f[_0x26d6('0x3')]('div');},'converterPriority':_0x26d6('0x11')}),_0x47320d['data'][_0x26d6('0x7')]['on'](_0x26d6('0x4'),(_0x5afd88,_0x256bc1,_0x127afb)=>{_0x127afb[_0x26d6('0xb')][_0x26d6('0x13')]&&_0x5afd88[_0x26d6('0x5')]();},{'priority':_0x26d6('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a8d=['TrackChangesEditing','has','plugins','enableCommand','mention','MentionEditing','editor','get','afterInit'];(function(_0xeb3e7c,_0x5a8d53){const _0xcce91c=function(_0x1d1140){while(--_0x1d1140){_0xeb3e7c['push'](_0xeb3e7c['shift']());}};_0xcce91c(++_0x5a8d53);}(_0x5a8d,0xa1));const _0xcce9=function(_0xeb3e7c,_0x5a8d53){_0xeb3e7c=_0xeb3e7c-0x0;let _0xcce91c=_0x5a8d[_0xeb3e7c];return _0xcce91c;};import{Plugin as _0x1d0634}from'ckeditor5/src/core';export default class ft extends _0x1d0634{[_0xcce9('0x0')](){const _0x14bdb1=this[_0xcce9('0x7')];_0x14bdb1['plugins'][_0xcce9('0x2')](_0xcce9('0x6'))&&_0x14bdb1[_0xcce9('0x3')][_0xcce9('0x8')](_0xcce9('0x1'))[_0xcce9('0x4')](_0xcce9('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2264=['registerElementLabel','get','_descriptionFactory','has','enableCommand','editor','locale','afterInit','pageBreak','plugins','ELEMENT_PAGE_BREAK','PageBreakEditing','TrackChangesEditing'];(function(_0x5cada4,_0x2264cd){const _0xf8bd7d=function(_0xe6b8f5){while(--_0xe6b8f5){_0x5cada4['push'](_0x5cada4['shift']());}};_0xf8bd7d(++_0x2264cd);}(_0x2264,0x1e9));const _0xf8bd=function(_0x5cada4,_0x2264cd){_0x5cada4=_0x5cada4-0x0;let _0xf8bd7d=_0x2264[_0x5cada4];return _0xf8bd7d;};import{Plugin as _0x184a65}from'ckeditor5/src/core';import{getTranslation as _0x4cf041}from'../utils/common-translations';export default class gt extends _0x184a65{[_0xf8bd('0xc')](){const _0x5e78cd=this[_0xf8bd('0xa')];if(!_0x5e78cd['plugins'][_0xf8bd('0x8')](_0xf8bd('0x3')))return;_0x5e78cd[_0xf8bd('0x1')][_0xf8bd('0x6')](_0xf8bd('0x4'))[_0xf8bd('0x9')]('pageBreak');const _0x2ab7a3=_0x5e78cd[_0xf8bd('0x1')]['get'](_0xf8bd('0x4')),_0x3b8f7a=_0x5e78cd[_0xf8bd('0xb')];_0x2ab7a3[_0xf8bd('0x7')][_0xf8bd('0x5')](_0xf8bd('0x0'),_0x13130e=>_0x4cf041(_0x3b8f7a,_0xf8bd('0x2'),_0x13130e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c18=['format','plugins','registerDescriptionCallback','*Insert:*\x20%0','getFirstRange','get','_registerLegacyDescription','model','end','_descriptionFactory','isTouching','highest','commandName','$text','isBlock','addMarker:suggestion:insertion','toViewPosition','span','schema','writer','data','mapper','downcastDispatcher','addClass','nodeAfter','type','editor','*Change\x20to:*\x20%0','markerName','showSuggestionHighlights','consume','editing','TrackChangesEditing','paragraph','insertion','insertParagraph','_enableDefaultAttributesIntegration','createUIElement','markerRange','ck-suggestion-marker--active','formatBlock','getItemLabel','start','consumable','name','locale','has','insert','isLimit','includes'];(function(_0x18669e,_0x5c185a){const _0x51b0c0=function(_0x45a651){while(--_0x45a651){_0x18669e['push'](_0x18669e['shift']());}};_0x51b0c0(++_0x5c185a);}(_0x5c18,0xca));const _0x51b0=function(_0x18669e,_0x5c185a){_0x18669e=_0x18669e-0x0;let _0x51b0c0=_0x5c18[_0x18669e];return _0x51b0c0;};import{Plugin as _0x27a54d}from'ckeditor5/src/core';import{getTranslation as _0x2a359c}from'../utils/common-translations';export default class lt extends _0x27a54d{['afterInit'](){const _0x552336=this['editor'];if(!_0x552336['plugins'][_0x51b0('0x2c')]('Paragraph'))return;const _0x505de6=_0x552336[_0x51b0('0x2b')],_0xda357d=_0x552336[_0x51b0('0x31')][_0x51b0('0x3')](_0x51b0('0x1e'));_0xda357d['_descriptionFactory']['registerElementLabel'](_0x51b0('0x1f'),_0x385afc=>_0x2a359c(_0x505de6,'ELEMENT_PARAGRAPH',_0x385afc)),_0xda357d[_0x51b0('0x22')]('paragraph'),_0xda357d['enableCommand'](_0x51b0('0x21')),_0x552336[_0x51b0('0x1d')][_0x51b0('0x14')]['on'](_0x51b0('0xd'),nr(_0x552336),{'priority':_0x51b0('0x9')}),_0x552336[_0x51b0('0x12')][_0x51b0('0x14')]['on'](_0x51b0('0xd'),(_0x1c4eea,_0x10dea9,_0x2bb8fb)=>{_0x2bb8fb['options'][_0x51b0('0x1b')]&&nr(_0x552336,{'showActiveMarker':!0x1})(_0x1c4eea,_0x10dea9,_0x2bb8fb);},{'priority':'highest'});const _0x44d1eb=_0xda357d['_descriptionFactory'];_0x44d1eb['registerDescriptionCallback'](_0x19fc72=>{if(_0x51b0('0x20')!==_0x19fc72[_0x51b0('0x17')])return;const {start:_0x307680,end:_0x26e205}=_0x19fc72[_0x51b0('0x2')]();if(!_0x307680[_0x51b0('0x8')](_0x26e205)||!_0x307680['nodeAfter'])return;const _0x3de6c4=_0x552336[_0x51b0('0x5')][_0x51b0('0x10')],_0x1c83d7=_0x307680[_0x51b0('0x16')];return _0x3de6c4[_0x51b0('0xc')](_0x1c83d7)&&!_0x3de6c4[_0x51b0('0x2e')](_0x1c83d7)&&_0x3de6c4['checkChild'](_0x1c83d7,_0x51b0('0xb'))?{'type':_0x51b0('0x20'),'content':_0x2a359c(_0x505de6,_0x51b0('0x1'),_0x44d1eb[_0x51b0('0x27')](_0x1c83d7,0x1))}:void 0x0;}),this[_0x51b0('0x4')]();}[_0x51b0('0x4')](){const _0xb8445b=this[_0x51b0('0x18')],_0x1f3866=_0xb8445b[_0x51b0('0x2b')];_0xb8445b[_0x51b0('0x31')][_0x51b0('0x3')]('TrackChangesEditing')[_0x51b0('0x7')][_0x51b0('0x0')](_0x4c96fd=>{if(_0x51b0('0x26')!=_0x4c96fd['type'])return;const {data:_0x92899d}=_0x4c96fd;return _0x92899d&&_0x51b0('0x1f')==_0x92899d[_0x51b0('0xa')]?{'type':_0x51b0('0x30'),'content':_0x2a359c(_0x1f3866,_0x51b0('0x19'),_0x2a359c(_0x1f3866,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x100c82,{showActiveMarker:_0x241399=!0x0}={}){return(_0x9fadf1,_0x454f1e,_0x2bbf0e)=>{const _0x21e5cc=_0x100c82[_0x51b0('0x31')][_0x51b0('0x3')](_0x51b0('0x1e')),_0x41643b=_0x454f1e[_0x51b0('0x24')][_0x51b0('0x28')],_0x41c75a=_0x454f1e[_0x51b0('0x24')][_0x51b0('0x6')],_0x37df40=_0x100c82[_0x51b0('0x5')][_0x51b0('0x10')];if(!_0x41643b[_0x51b0('0x8')](_0x41c75a)||!_0x41643b[_0x51b0('0x16')])return;const _0x28e800=_0x41643b[_0x51b0('0x16')];if(_0x37df40[_0x51b0('0xc')](_0x28e800)&&!_0x37df40[_0x51b0('0x2e')](_0x28e800)&&_0x37df40['checkChild'](_0x28e800,_0x51b0('0xb'))){if(!_0x2bbf0e[_0x51b0('0x29')][_0x51b0('0x1c')](_0x454f1e[_0x51b0('0x24')],_0x9fadf1[_0x51b0('0x2a')]))return;const _0x5d11c3=_0x2bbf0e['writer'][_0x51b0('0x23')](_0x51b0('0xf'),{'class':'ck-suggestion-marker-split'}),_0x4f581f=_0x2bbf0e[_0x51b0('0x13')][_0x51b0('0xe')](_0x41c75a);_0x241399&&_0x21e5cc['activeMarkers'][_0x51b0('0x2f')](_0x454f1e[_0x51b0('0x1a')])&&_0x2bbf0e[_0x51b0('0x11')][_0x51b0('0x15')](_0x51b0('0x25'),_0x5d11c3),_0x2bbf0e[_0x51b0('0x11')][_0x51b0('0x2d')](_0x4f581f,_0x5d11c3),_0x2bbf0e[_0x51b0('0x13')]['bindElementToMarker'](_0x5d11c3,_0x454f1e[_0x51b0('0x1a')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c53=['registerDescriptionCallback','*Remove\x20all\x20formatting*','formatBlock','formatInline','TrackChangesEditing','locale','type','_enableDefaultAttributesIntegration','RemoveFormatEditing','plugins','commandName','removeFormat'];(function(_0x354d42,_0x5c53f0){const _0x32930a=function(_0x1d8e10){while(--_0x1d8e10){_0x354d42['push'](_0x354d42['shift']());}};_0x32930a(++_0x5c53f0);}(_0x5c53,0x144));const _0x3293=function(_0x354d42,_0x5c53f0){_0x354d42=_0x354d42-0x0;let _0x32930a=_0x5c53[_0x354d42];return _0x32930a;};import{Plugin as _0x3622f6}from'ckeditor5/src/core';import{getTranslation as _0x51b90f}from'../utils/common-translations';export default class mt extends _0x3622f6{['afterInit'](){const _0x50421c=this['editor'];if(!_0x50421c[_0x3293('0x9')]['has'](_0x3293('0x8')))return;_0x50421c[_0x3293('0x9')]['get'](_0x3293('0x4'))[_0x3293('0x7')](_0x3293('0xb')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f010c=this['editor'];_0x4f010c[_0x3293('0x9')]['get'](_0x3293('0x4'))['_descriptionFactory'][_0x3293('0x0')](_0x35b358=>{if(_0x3293('0x2')!=_0x35b358[_0x3293('0x6')]&&_0x3293('0x3')!=_0x35b358[_0x3293('0x6')])return;const {data:_0x45e3c7}=_0x35b358;return _0x45e3c7&&'removeFormat'==_0x45e3c7[_0x3293('0xa')]?{'type':'format','content':_0x51b90f(_0x4f010c[_0x3293('0x5')],_0x3293('0x1'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x242a=['acceptSelectedSuggestions','trackChanges','has','acceptAllSuggestions','enableCommand','discardAllSuggestions','editor','discardSelectedSuggestions','plugins','discardSuggestion','get','goToPreviousRestrictedEditingException','acceptSuggestion','goToNextRestrictedEditingException','afterInit','RestrictedEditingModeEditing'];(function(_0x4adfc5,_0x242ab4){const _0x5a67fc=function(_0x271d8a){while(--_0x271d8a){_0x4adfc5['push'](_0x4adfc5['shift']());}};_0x5a67fc(++_0x242ab4);}(_0x242a,0x19e));const _0x5a67=function(_0x4adfc5,_0x242ab4){_0x4adfc5=_0x4adfc5-0x0;let _0x5a67fc=_0x242a[_0x4adfc5];return _0x5a67fc;};import{Plugin as _0x438cc9}from'ckeditor5/src/core';export default class dt extends _0x438cc9{[_0x5a67('0x0')](){const _0x4cf999=this[_0x5a67('0x8')];if(!_0x4cf999['plugins'][_0x5a67('0x4')](_0x5a67('0x1')))return;const _0x3f1b88=_0x4cf999[_0x5a67('0xa')][_0x5a67('0xc')]('TrackChangesEditing');_0x3f1b88[_0x5a67('0x6')](_0x5a67('0xd')),_0x3f1b88[_0x5a67('0x6')](_0x5a67('0xf'));const _0x1bebe4=_0x4cf999[_0x5a67('0xa')][_0x5a67('0xc')](_0x5a67('0x1'));_0x1bebe4[_0x5a67('0x6')](_0x5a67('0x3')),_0x1bebe4[_0x5a67('0x6')](_0x5a67('0xe')),_0x1bebe4['enableCommand'](_0x5a67('0xb')),_0x1bebe4[_0x5a67('0x6')](_0x5a67('0x5')),_0x1bebe4[_0x5a67('0x6')](_0x5a67('0x7')),_0x1bebe4[_0x5a67('0x6')](_0x5a67('0x2')),_0x1bebe4['enableCommand'](_0x5a67('0x9'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ba=['deletion','model','softBreak','getItems','enableCommand','data','consumable','addClass','bindElementToMarker','ck-suggestion-marker--active','ELEMENT_LINE_BREAK','writer','mapper','merge','ck-suggestion-marker-','addMarker:suggestion:insertion','TrackChangesEditing','get','downcastDispatcher','options','plugins','toViewPosition','shiftEnter','addMarker:suggestion:deletion','split','test','init','includes','markerRange','addMarker:suggestion','locale','high','registerElementLabel','createUIElement','requires','markerName','editing'];(function(_0xb57b1e,_0x39ba02){const _0x3f262b=function(_0xdf950e){while(--_0xdf950e){_0xb57b1e['push'](_0xb57b1e['shift']());}};_0x3f262b(++_0x39ba02);}(_0x39ba,0x93));const _0x3f26=function(_0xb57b1e,_0x39ba02){_0xb57b1e=_0xb57b1e-0x0;let _0x3f262b=_0x39ba[_0xb57b1e];return _0x3f262b;};import{Plugin as _0x18c9a4}from'ckeditor5/src/core';import{ShiftEnter as _0x2eede5}from'ckeditor5/src/enter';import{getTranslation as _0x3760f0}from'../utils/common-translations';export default class pt extends _0x18c9a4{static get[_0x3f26('0x23')](){return[_0x2eede5];}[_0x3f26('0x1b')](){const _0x14f006=this['editor'],_0xe7c9da=_0x14f006['plugins'][_0x3f26('0x12')](_0x3f26('0x11'));_0xe7c9da[_0x3f26('0x5')](_0x3f26('0x17')),_0x14f006[_0x3f26('0x0')][_0x3f26('0x13')]['on'](_0x3f26('0x10'),re(_0x14f006),{'priority':_0x3f26('0x20')}),_0x14f006[_0x3f26('0x0')][_0x3f26('0x13')]['on'](_0x3f26('0x18'),re(_0x14f006),{'priority':_0x3f26('0x20')}),_0x14f006[_0x3f26('0x6')]['downcastDispatcher']['on'](_0x3f26('0x1e'),(_0x15bb52,_0x535b80,_0x1c7c9e)=>{_0x1c7c9e[_0x3f26('0x14')]['showSuggestionHighlights']&&re(_0x14f006,{'showActiveMarker':!0x1})(_0x15bb52,_0x535b80,_0x1c7c9e);}),_0xe7c9da['_descriptionFactory'][_0x3f26('0x21')](_0x3f26('0x3'),_0x14a934=>_0x3760f0(_0x14f006[_0x3f26('0x1f')],_0x3f26('0xb'),_0x14a934));}}function re(_0x55ffa3,{showActiveMarker:_0x5e28aa=!0x0}={}){return(_0x24520b,_0x163909,_0x346997)=>{const _0x1e2edc=_0x55ffa3[_0x3f26('0x15')]['get'](_0x3f26('0x11'));if(!_0x346997[_0x3f26('0x7')][_0x3f26('0x1a')](_0x163909[_0x3f26('0x1d')],_0x24520b['name']))return;const _0x2ac461=_0x55ffa3[_0x3f26('0x2')];for(const _0x359516 of _0x163909[_0x3f26('0x1d')][_0x3f26('0x4')]()){if(!_0x359516['is']('element',_0x3f26('0x3')))continue;const _0x464861=_0x3f26('0x1')==_0x163909[_0x3f26('0x24')]['split'](':')[0x1]?_0x3f26('0xe'):_0x3f26('0x19'),_0x8b1fce=_0x346997[_0x3f26('0xc')][_0x3f26('0x22')]('span',{'class':_0x3f26('0xf')+_0x464861}),_0x80d848=_0x346997[_0x3f26('0xd')][_0x3f26('0x16')](_0x2ac461['createPositionBefore'](_0x359516));_0x5e28aa&&_0x1e2edc['activeMarkers'][_0x3f26('0x1c')](_0x163909['markerName'])&&_0x346997['writer'][_0x3f26('0x8')](_0x3f26('0xa'),_0x8b1fce),_0x346997[_0x3f26('0xc')]['insert'](_0x80d848,_0x8b1fce),_0x346997[_0x3f26('0xd')][_0x3f26('0x9')](_0x8b1fce,_0x163909[_0x3f26('0x24')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1780=['forceValue','has','from','TrackChangesEditing','FORMAT_RESTRICTED_DISABLED','format','formatInline','formatBlock','commandParams','restrictedEditingException','document','get','plugins','enableCommand','commands','commandName','StandardEditingModeEditing','type','_descriptionFactory','FORMAT_RESTRICTED_ENABLED','change','afterInit','getRanges'];(function(_0x52b742,_0x178067){const _0x168c73=function(_0x353135){while(--_0x353135){_0x52b742['push'](_0x52b742['shift']());}};_0x168c73(++_0x178067);}(_0x1780,0x1bf));const _0x168c=function(_0x52b742,_0x178067){_0x52b742=_0x52b742-0x0;let _0x168c73=_0x1780[_0x52b742];return _0x168c73;};import{Plugin as _0x1f2d8c}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x56d0fe}from'./utils';import{getTranslation as _0x5ae2c8}from'../utils/common-translations';export default class kt extends _0x1f2d8c{[_0x168c('0xb')](){const _0x23dfff=this['editor'],_0x5bb9c2=_0x23dfff['model'],_0x31b1ae=_0x23dfff['locale'];if(!_0x23dfff[_0x168c('0x2')][_0x168c('0xe')](_0x168c('0x6')))return;const _0x5b4f00=_0x23dfff['plugins'][_0x168c('0x1')](_0x168c('0x10')),_0x216dc2=_0x168c('0x16'),_0xc8d50b=_0x23dfff[_0x168c('0x4')][_0x168c('0x1')](_0x216dc2);_0x5b4f00[_0x168c('0x3')](_0x216dc2,(_0x44b59c,_0x229a21={})=>{const _0x2c1a27=_0x5bb9c2[_0x168c('0x0')]['selection'];if(_0x2c1a27['isCollapsed'])return void _0x44b59c(_0x229a21);const _0x1b39ac=void 0x0!==_0x229a21[_0x168c('0xd')]?_0x229a21['forceValue']:!_0xc8d50b['value'];_0x5bb9c2[_0x168c('0xa')](()=>{const _0x1aaa0f=Array[_0x168c('0xf')](_0x2c1a27[_0x168c('0xc')]());for(const _0x5a6791 of _0x1aaa0f){const _0x3a47d3=_0x1b39ac?[_0x5a6791]:_0x56d0fe(_0x216dc2,_0x5a6791,_0x5bb9c2);for(const _0x87a6a6 of _0x3a47d3)_0x5b4f00['markInlineFormat'](_0x87a6a6,{'commandName':_0x216dc2,'commandParams':[{'forceValue':_0x1b39ac}]});}});}),_0x5b4f00[_0x168c('0x8')]['registerDescriptionCallback'](_0x286a0a=>{if(_0x168c('0x14')!=_0x286a0a['type']&&_0x168c('0x13')!=_0x286a0a[_0x168c('0x7')])return;const {data:_0x302887}=_0x286a0a;return _0x302887&&_0x302887[_0x168c('0x5')]==_0x216dc2?_0x302887[_0x168c('0x15')][0x0][_0x168c('0xd')]?{'type':_0x168c('0x12'),'content':_0x5ae2c8(_0x31b1ae,_0x168c('0x9'))}:{'type':'format','content':_0x5ae2c8(_0x31b1ae,_0x168c('0x11'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x250d=['_registerBlockAttribute','_descriptionFactory','config','has','*Remove\x20format:*\x20%0','GeneralHtmlSupport','add','get','_registerInlineAttribute','element','formatInline','normalizeConfig','registerAttributeLabel','styleName','plugins','formatBlock','commandName','_registerLegacyDescription','DataSchema','definitions','type','block','FORMAT_STYLE','*Set\x20format:*\x20%0','forceValue','TrackChangesEditing','commandParams','_enableDefaultAttributesIntegration','format','style','toLowerCase','getGhsAttributeNameForElement','locale','registerDescriptionCallback'];(function(_0x504c22,_0x250ddf){const _0x2b9353=function(_0x3ca3e4){while(--_0x3ca3e4){_0x504c22['push'](_0x504c22['shift']());}};_0x2b9353(++_0x250ddf);}(_0x250d,0x79));const _0x2b93=function(_0x504c22,_0x250ddf){_0x504c22=_0x504c22-0x0;let _0x2b9353=_0x250d[_0x504c22];return _0x2b9353;};import{Plugin as _0x581a1f}from'ckeditor5/src/core';import{getTranslation as _0x3ad5b3}from'../utils/common-translations';export default class bt extends _0x581a1f{['afterInit'](){const _0x21bf17=this['editor'];if(!_0x21bf17[_0x2b93('0x1d')][_0x2b93('0x12')]('Style')||!_0x21bf17[_0x2b93('0x1d')][_0x2b93('0x12')](_0x2b93('0x21')))return;const _0x4c221c=_0x21bf17[_0x2b93('0x1d')][_0x2b93('0x16')](_0x2b93('0x6')),_0x5da409=_0x21bf17[_0x2b93('0xd')],_0x164f80=_0x21bf17[_0x2b93('0x11')]['get']('style'),_0x49ff12=_0x21bf17[_0x2b93('0x1d')][_0x2b93('0x16')](_0x2b93('0x14')),_0xa453ac=_0x21bf17['plugins']['get']('StyleUtils')[_0x2b93('0x1a')](_0x21bf17[_0x2b93('0x1d')]['get'](_0x2b93('0x21')),_0x164f80[_0x2b93('0x0')]);_0x4c221c[_0x2b93('0x8')](_0x2b93('0xa'));const _0x12d29c=new Set();for(const _0x29b523 of _0xa453ac[_0x2b93('0x2')]){const _0x201f27=_0x49ff12[_0x2b93('0xc')](_0x29b523['element']);_0x12d29c[_0x2b93('0x15')](_0x201f27);}const _0x40675f=new Set();for(const _0x493387 of _0xa453ac['inline']){const _0xb48d1=_0x49ff12['getGhsAttributeNameForElement'](_0x493387[_0x2b93('0x18')]);_0x40675f[_0x2b93('0x15')](_0xb48d1);for(const _0x3f8c08 of _0x493387['ghsAttributes'])_0x40675f['add'](_0x3f8c08);}for(const _0x518f22 of _0x12d29c)_0x4c221c[_0x2b93('0xf')](_0x518f22),_0x4c221c[_0x2b93('0x10')]['registerAttributeLabel'](_0x518f22,_0x3ad5b3(_0x5da409,_0x2b93('0x3')));for(const _0x4e3793 of _0x40675f)_0x4c221c[_0x2b93('0x17')](_0x4e3793),_0x4c221c[_0x2b93('0x10')][_0x2b93('0x1b')](_0x4e3793,_0x3ad5b3(_0x5da409,'FORMAT_STYLE'));this['_registerLegacyDescription']();}[_0x2b93('0x20')](){const _0x372262=this['editor'],_0x2b1b6d=_0x372262[_0x2b93('0xd')];_0x372262['plugins']['get'](_0x2b93('0x6'))[_0x2b93('0x10')][_0x2b93('0xe')](_0x522755=>{if(_0x2b93('0x1e')!=_0x522755[_0x2b93('0x1')]&&_0x2b93('0x19')!=_0x522755[_0x2b93('0x1')])return;const {data:_0x1f0d18}=_0x522755;return _0x1f0d18&&_0x2b93('0xa')===_0x1f0d18[_0x2b93('0x1f')]?_0x1f0d18[_0x2b93('0x7')][0x0][_0x2b93('0x5')]?{'type':_0x2b93('0x9'),'content':_0x3ad5b3(_0x2b1b6d,_0x2b93('0x4'),_0x1f0d18[_0x2b93('0x7')][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':_0x3ad5b3(_0x2b1b6d,_0x2b93('0x13'),_0x1f0d18['commandParams'][0x0][_0x2b93('0x1c')][_0x2b93('0xb')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x14fb=['table','removeTableColumn','_splitMarkerName','above','getFirstRange','hasAttribute','model','writer','min','some','ELEMENT_TABLE_COLUMN','accept','isInContent','_tableSuggestions','cell','getSuggestion','classes','add','enqueueChange','getChildren','_tablePostFixingSubtypes','ELEMENT_TABLE','push','setSelection','values','getChanges','_descriptionFactory','highest','getRowIndexes','nodeAfter','createPositionAt','MIN_SAFE_INTEGER','discard','deletion','ELEMENT_TABLE_WITH_TEXT','insertion','detach','$textProxy','getCellLocation','addMarker:suggestion','insertTable','subType','type','$graveyard','from','change:data','execute','markMultiRangeInsertion','createTableWalker','MAX_SAFE_INTEGER','_suggestionFactory','createRangeIn','has','registerElementLabel','batch','editor','showSuggestionHighlights','options','fromRange','end','TrackChangesEditing','registerCustomCallback','start','document','data','left','_acceptFormatSuggestionCallbackFactory','downcastDispatcher','addRange','length','isEqual','insert','enableCommand','rowspan','getRanges','includes','ELEMENT_TABLE_COLUMN_WITH_TEXT','ELEMENT_TABLE_ROW_WITH_TEXT','change','getColumnIndexes','getItems','first','removeTableRow','registerPostFixer','selectTableRow','toLowerCase','filter','TableUtils','refresh','isIntersectingWithRange','rootName','substr','colspan','*Remove:*\x20%0','TableEditing','maxRow','markMultiRangeDeletion','minColumn','mapper','isArray','startsWith','removeClass','plugins','position','_getSuggestionCoords','getChangedMarkers','join','tablePaste','name','item','last','_setupColumnsRowsFixing','insertTableColumnLeft','insertTableColumnRight','ELEMENT_TABLE_ROW','selectTableColumn','element','tableCell','order','nodeBefore','addClass','map','insertTableRowAbove','root','tableRow','insertTableRowBelow','getAttribute','low','findAncestor','max','getSelectionAffectedTableCells','*Insert:*\x20%0','get','forceValue','tableColumn','commands','createRangeOn','minRow','selection'];(function(_0x1644d2,_0x14fb93){const _0x1f1ca4=function(_0x48cbf4){while(--_0x48cbf4){_0x1644d2['push'](_0x1644d2['shift']());}};_0x1f1ca4(++_0x14fb93);}(_0x14fb,0xc1));const _0x1f1c=function(_0x1644d2,_0x14fb93){_0x1644d2=_0x1644d2-0x0;let _0x1f1ca4=_0x14fb[_0x1644d2];return _0x1f1ca4;};import{Plugin as _0x25b4d9}from'ckeditor5/src/core';import{LiveRange as _0x32cf65}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5795a8}from'ckeditor5/src/widget';import{getTranslation as _0x44a660}from'../utils/common-translations';export default class wt extends _0x25b4d9{constructor(_0x12327c){super(_0x12327c),this[_0x1f1c('0x69')]=[_0x1f1c('0x46'),_0x1f1c('0x50')],this[_0x1f1c('0x62')]=new Set();}['afterInit'](){const _0x3a9242=this[_0x1f1c('0x1')],_0x258ba8=_0x3a9242[_0x1f1c('0x5b')][_0x1f1c('0x9')][_0x1f1c('0x54')];if(!_0x3a9242[_0x1f1c('0x30')][_0x1f1c('0x89')](_0x1f1c('0x28')))return;const _0x28f700=_0x3a9242['locale'],_0x17329b=_0x3a9242['plugins'][_0x1f1c('0x4e')](_0x1f1c('0x6')),_0x1e5bbc=_0x3a9242[_0x1f1c('0x30')][_0x1f1c('0x4e')](_0x1f1c('0x21'));_0x17329b[_0x1f1c('0x6f')][_0x1f1c('0x8a')](_0x1f1c('0x55'),_0x5ef8de=>_0x44a660(_0x28f700,_0x1f1c('0x6a'),_0x5ef8de)),this['_setupColumnsRowsFixing'](),_0x17329b['enableCommand'](_0x1f1c('0x7d')),_0x17329b[_0x1f1c('0x12')](_0x1f1c('0x1e')),_0x17329b[_0x1f1c('0x12')](_0x1f1c('0x3d'));for(const _0x4fe02f of[_0x1f1c('0x44'),_0x1f1c('0x47')]){const _0xeff527=_0x3a9242['commands'][_0x1f1c('0x4e')](_0x4fe02f);_0x17329b[_0x1f1c('0x12')](_0x4fe02f,_0xab1ad3=>{_0x3a9242[_0x1f1c('0x5b')][_0x1f1c('0x18')](_0x1d4553=>{_0xab1ad3();const _0xb2f316=_0x1f1c('0x58')===_0xeff527[_0x1f1c('0x40')],_0x45fc7f=_0x1e5bbc['getSelectionAffectedTableCells'](_0x258ba8),_0x22b461=_0x1e5bbc[_0x1f1c('0x71')](_0x45fc7f),_0x562abe=_0xb2f316?_0x22b461[_0x1f1c('0x1b')]-0x1:_0x22b461[_0x1f1c('0x38')]+0x1,_0x2e3c92=_0x45fc7f[0x0]['findAncestor'](_0x1f1c('0x55')),_0x38267f=_0x1e5bbc[_0x1f1c('0x85')](_0x2e3c92,{'startRow':_0x562abe,'endRow':_0x562abe}),_0x5aa267=Array['from'](_0x38267f)['map'](_0x5a33fb=>_0x1d4553['createRangeOn'](_0x5a33fb[_0x1f1c('0x63')]));_0x17329b['markMultiRangeInsertion'](_0x5aa267,'tableRow');});});}for(const _0x708b8e of[_0x1f1c('0x3a'),_0x1f1c('0x3b')]){const _0x242640=_0x3a9242[_0x1f1c('0x51')][_0x1f1c('0x4e')](_0x708b8e);_0x17329b[_0x1f1c('0x12')](_0x708b8e,_0x4425e5=>{_0x3a9242[_0x1f1c('0x5b')][_0x1f1c('0x18')](_0x2cad18=>{_0x4425e5();const _0x63982b=_0x1f1c('0xb')===_0x242640[_0x1f1c('0x40')],_0x1b893a=_0x1e5bbc[_0x1f1c('0x4c')](_0x258ba8),_0x5217e3=_0x1e5bbc[_0x1f1c('0x19')](_0x1b893a),_0x1f4a3b=_0x63982b?_0x5217e3['first']-0x1:_0x5217e3[_0x1f1c('0x38')]+0x1,_0x22fbb8=_0x1b893a[0x0][_0x1f1c('0x4a')](_0x1f1c('0x55')),_0x403e53=_0x1e5bbc[_0x1f1c('0x85')](_0x22fbb8,{'startRow':0x0,'column':_0x1f4a3b,'includeAllSlots':!0x1}),_0x1bf92a=Array[_0x1f1c('0x81')](_0x403e53)[_0x1f1c('0x43')](_0x82f8a1=>_0x2cad18[_0x1f1c('0x52')](_0x82f8a1['cell']));_0x17329b[_0x1f1c('0x84')](_0x1bf92a,_0x1f1c('0x50'));});});}for(const _0x4162c3 of['removeTableRow','removeTableColumn']){const _0x390e46=_0x4162c3[_0x1f1c('0x25')](0xb),_0x4147b8=_0x390e46['toLowerCase'](),_0x4c9328=_0x4147b8[_0x1f1c('0x25')](0x0,0x3)+'span',_0x40cfd5=_0x1f1c('0x55')+_0x390e46,_0xf725d4=_0x1f1c('0x5d')+_0x390e46,_0x626541=_0x1f1c('0x4b')+_0x390e46;_0x17329b['enableCommand'](_0x4162c3,()=>{_0x3a9242['model'][_0x1f1c('0x18')](_0x2dccf5=>{const _0x1fba90=_0x1e5bbc[_0x1f1c('0x4c')](_0x258ba8),_0x3e5b93=_0x1fba90[0x0][_0x1f1c('0x4a')]('table');let _0x1f4952;if(_0x1f1c('0x1c')==_0x4162c3){const _0xc50f95=_0x1e5bbc[_0x1f1c('0x71')](_0x1fba90);_0x1f4952={'startRow':_0xc50f95['first'],'endRow':_0xc50f95[_0x1f1c('0x38')],'includeAllSlots':!0x0};}else{const _0x40c80f=_0x1e5bbc[_0x1f1c('0x19')](_0x1fba90);_0x1f4952={'startColumn':_0x40c80f['first'],'endColumn':_0x40c80f[_0x1f1c('0x38')],'includeAllSlots':!0x0};}const _0x5e6062=_0x1e5bbc[_0x1f1c('0x85')](_0x3e5b93,_0x1f4952),_0x186d48=Array[_0x1f1c('0x81')](_0x5e6062)[_0x1f1c('0x43')](({cell:_0x5efa0d})=>_0x5efa0d),_0xf9f058=se(_0x186d48[_0x1f1c('0x20')](_0x314bf9=>_0x314bf9[_0x1f1c('0x5a')](_0x4c9328))),_0xdd707b=se(_0x186d48['filter'](_0x2b0ff4=>!_0x2b0ff4[_0x1f1c('0x5a')](_0x4c9328)))['map'](_0x3cb5de=>_0x2dccf5['createRangeOn'](_0x3cb5de)),_0x3b893a=_0x17329b[_0x1f1c('0x2a')](_0xdd707b,_0x40cfd5);if(_0x3b893a&&(_0x1f1c('0x46')==_0x3b893a[_0x1f1c('0x7e')]||'tableColumn'==_0x3b893a['subType'])){const _0x1e6e69=this[_0x1f1c('0x32')](_0x3b893a);for(const _0xf4520b of _0xf9f058){const _0x166a70=_0x2dccf5[_0x1f1c('0x52')](_0xf4520b),_0x58934a=_0x1e5bbc['getCellLocation'](_0xf4520b),_0x54eee7=_0xf4520b[_0x1f1c('0x48')](_0x4c9328)-0x1,_0xee4c1d=_0x1e6e69[_0xf725d4],_0x5e3286=_0x1e6e69[_0x626541];_0xee4c1d<=_0x58934a[_0x4147b8]&&_0x58934a[_0x4147b8]+_0x54eee7<=_0x5e3286&&_0x3b893a[_0x1f1c('0xe')](_0x166a70);}}});});}function _0x358ef9(_0x53cd09){const _0x23dbad=Array['from'](_0x258ba8[_0x1f1c('0x14')]())[_0x1f1c('0x43')](_0x3e9bde=>_0x32cf65[_0x1f1c('0x4')](_0x3e9bde));_0x3a9242[_0x1f1c('0x5b')][_0x1f1c('0x18')](_0x282423=>{const _0x1033ab=_0x282423[_0x1f1c('0x0')];_0x53cd09=_0x53cd09[_0x1f1c('0x20')](_0x3ff061=>'$graveyard'!=_0x3ff061[_0x1f1c('0x45')][_0x1f1c('0x24')]),_0x282423[_0x1f1c('0x6c')](_0x53cd09),_0x3a9242['commands'][_0x1f1c('0x4e')](_0x1f1c('0x1c'))[_0x1f1c('0x22')](),_0x3a9242[_0x1f1c('0x83')](_0x1f1c('0x1c'),{'forceDefaultExecution':!0x0}),_0x3a9242['model'][_0x1f1c('0x67')](()=>{_0x3a9242[_0x1f1c('0x5b')][_0x1f1c('0x67')](_0x1033ab,_0x1dce7d=>{const _0x333daf=_0x23dbad[_0x1f1c('0x20')](_0x2c5760=>_0x1f1c('0x80')!=_0x2c5760[_0x1f1c('0x45')][_0x1f1c('0x24')]);_0x333daf[_0x1f1c('0xf')]>0x0&&_0x1dce7d['setSelection'](_0x333daf);for(const _0x5a5d0c of _0x23dbad)_0x5a5d0c['detach']();});});});}function _0x596206(_0x5a285e){_0x3a9242['model'][_0x1f1c('0x18')](_0x23f4d0=>{const _0x34a2ac=Array['from'](_0x258ba8[_0x1f1c('0x14')]())[_0x1f1c('0x43')](_0x1b65c9=>_0x32cf65[_0x1f1c('0x4')](_0x1b65c9)),_0x49f8cd=[];for(const _0x55e217 of _0x5a285e)for(const _0x373ef4 of _0x55e217['getItems']({'shallow':!0x0}))_0x49f8cd[_0x1f1c('0x6b')](_0x373ef4);for(const _0x47e3c3 of _0x49f8cd)_0x1f1c('0x80')!=_0x47e3c3[_0x1f1c('0x45')][_0x1f1c('0x24')]&&(_0x23f4d0['setSelection'](_0x23f4d0[_0x1f1c('0x73')](_0x47e3c3,0x0)),_0x3a9242[_0x1f1c('0x51')][_0x1f1c('0x4e')](_0x1f1c('0x56'))[_0x1f1c('0x22')](),_0x3a9242[_0x1f1c('0x83')](_0x1f1c('0x56'),{'forceDefaultExecution':!0x0}));const _0x40c306=_0x34a2ac[_0x1f1c('0x20')](_0x5563e8=>'$graveyard'!=_0x5563e8[_0x1f1c('0x45')][_0x1f1c('0x24')]);_0x40c306[_0x1f1c('0xf')]>0x0&&_0x23f4d0[_0x1f1c('0x6c')](_0x40c306);for(const _0x434026 of _0x34a2ac)_0x434026['detach']();});}function _0x1fbeed(_0x1c595f,_0x38e28a){return _0x38e28a['every'](_0x242517=>_0x1c595f[_0x1f1c('0x5e')](_0x36e8f9=>_0x36e8f9[_0x1f1c('0x5')][_0x1f1c('0x10')](_0x242517['start'])||_0x242517[_0x1f1c('0x5')][_0x1f1c('0x10')](_0x36e8f9['start'])));}function _0x572e8d(_0x1e68f9,_0x2b2aee){return _0x1e68f9[_0x1f1c('0x5e')](_0x567007=>_0x2b2aee[_0x1f1c('0x5e')](_0x35df66=>_0x567007[_0x1f1c('0x5')]['isTouching'](_0x35df66[_0x1f1c('0x8')])));}_0x3a9242[_0x1f1c('0xa')][_0x1f1c('0xd')]['on'](_0x1f1c('0x7c'),(_0x176aaa,_0x52c1ff,_0x780e2a)=>{if(!_0x780e2a[_0x1f1c('0x3')][_0x1f1c('0x2')])return;const _0x134778=_0x52c1ff[_0x1f1c('0x37')];if(!_0x134778)return;const _0x4926fc=_0x780e2a[_0x1f1c('0x2c')]['toViewElement'](_0x134778);function _0xa2c5bd(_0xbdcf6d){return Array[_0x1f1c('0x2d')](_0xbdcf6d)?_0xbdcf6d:[_0xbdcf6d];}_0x4926fc&&_0x1f1c('0x3f')===_0x134778['name']&&_0x5795a8(_0x4926fc,_0x780e2a[_0x1f1c('0x5c')],(_0x27157a,_0x1f3485,_0x58b535)=>_0x58b535[_0x1f1c('0x42')](_0xa2c5bd(_0x1f3485['classes']),_0x27157a),(_0x54714a,_0x6fc260,_0x3ae0cb)=>_0x3ae0cb[_0x1f1c('0x2f')](_0xa2c5bd(_0x6fc260[_0x1f1c('0x65')]),_0x54714a));},{'priority':_0x1f1c('0x70')}),_0x17329b[_0x1f1c('0x6f')]['registerDescriptionCallback'](_0x4a3588=>{if(_0x1f1c('0x78')!=_0x4a3588[_0x1f1c('0x7f')]&&_0x1f1c('0x76')!=_0x4a3588[_0x1f1c('0x7f')])return;const _0x2ca4e2=_0x4a3588['getContainedElement']();if(null!=_0x2ca4e2&&_0x2ca4e2['is'](_0x1f1c('0x3e'),_0x1f1c('0x55'))){if(_0x1f1c('0x78')==_0x4a3588[_0x1f1c('0x7f')]){const _0x123fb8=_0x4a3588[_0x1f1c('0x1a')]()[_0x1f1c('0x20')](_0x15d89b=>_0x15d89b['is'](_0x1f1c('0x7a')))[_0x1f1c('0x43')](_0x3e2f0a=>_0x3e2f0a[_0x1f1c('0xa')]);if(_0x123fb8['length'])return{'type':_0x1f1c('0x78'),'content':_0x44a660(_0x28f700,_0x1f1c('0x4d'),_0x44a660(_0x28f700,_0x1f1c('0x77'),'\x22'+_0x123fb8[_0x1f1c('0x34')]('\x20')+'\x22'))};}if(_0x1f1c('0x76')==_0x4a3588[_0x1f1c('0x7f')]){const _0x20dd1e=_0x4a3588['getItems']()[_0x1f1c('0x20')](_0x559b11=>_0x559b11['is']('$textProxy'))[_0x1f1c('0x43')](_0x3e9ba7=>_0x3e9ba7['data']);if(_0x20dd1e[_0x1f1c('0xf')])return{'type':'deletion','content':_0x44a660(_0x28f700,_0x1f1c('0x27'),_0x44a660(_0x28f700,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20dd1e[_0x1f1c('0x34')]('\x20')+'\x22'))};}}}),_0x17329b[_0x1f1c('0x6f')]['registerDescriptionCallback'](_0x53e478=>{if('tableRow'==_0x53e478['subType']){const _0x576e54=_0x53e478[_0x1f1c('0x1a')]()[_0x1f1c('0x20')](_0x3b6569=>_0x3b6569['is'](_0x1f1c('0x7a')))['map'](_0xd73106=>_0xd73106[_0x1f1c('0xa')]),_0xc613dc=this['_getSuggestionCoords'](_0x53e478),_0x49c4b6=_0xc613dc[_0x1f1c('0x29')]-_0xc613dc[_0x1f1c('0x53')]+0x1;if('insertion'==_0x53e478[_0x1f1c('0x7f')])return _0x576e54[_0x1f1c('0xf')]?{'type':_0x1f1c('0x78'),'content':_0x44a660(_0x28f700,_0x1f1c('0x4d'),_0x44a660(_0x28f700,_0x1f1c('0x17'),[_0x49c4b6,'\x22'+_0x576e54[_0x1f1c('0x34')]('\x20')+'\x22']))}:{'type':_0x1f1c('0x78'),'content':_0x44a660(_0x28f700,'*Insert:*\x20%0',_0x44a660(_0x28f700,_0x1f1c('0x3c'),_0x49c4b6))};if('deletion'==_0x53e478[_0x1f1c('0x7f')])return _0x576e54['length']?{'type':'deletion','content':_0x44a660(_0x28f700,_0x1f1c('0x27'),_0x44a660(_0x28f700,_0x1f1c('0x17'),[_0x49c4b6,'\x22'+_0x576e54[_0x1f1c('0x34')]('\x20')+'\x22']))}:{'type':_0x1f1c('0x76'),'content':_0x44a660(_0x28f700,_0x1f1c('0x27'),_0x44a660(_0x28f700,_0x1f1c('0x3c'),_0x49c4b6))};}if(_0x1f1c('0x50')==_0x53e478[_0x1f1c('0x7e')]){const _0x1be130=_0x53e478[_0x1f1c('0x1a')]()[_0x1f1c('0x20')](_0x4f4ee0=>_0x4f4ee0['is'](_0x1f1c('0x7a')))['map'](_0x30ae8f=>_0x30ae8f[_0x1f1c('0xa')]),_0x37784b=this[_0x1f1c('0x32')](_0x53e478),_0x1ac9ec=_0x37784b['maxColumn']-_0x37784b[_0x1f1c('0x2b')]+0x1;if(_0x1f1c('0x78')==_0x53e478[_0x1f1c('0x7f')])return _0x1be130[_0x1f1c('0xf')]?{'type':_0x1f1c('0x78'),'content':_0x44a660(_0x28f700,_0x1f1c('0x4d'),_0x44a660(_0x28f700,_0x1f1c('0x16'),[_0x1ac9ec,'\x22'+_0x1be130[_0x1f1c('0x34')]('\x20')+'\x22']))}:{'type':_0x1f1c('0x78'),'content':_0x44a660(_0x28f700,'*Insert:*\x20%0',_0x44a660(_0x28f700,'ELEMENT_TABLE_COLUMN',_0x1ac9ec))};if('deletion'==_0x53e478[_0x1f1c('0x7f')])return _0x1be130[_0x1f1c('0xf')]?{'type':_0x1f1c('0x76'),'content':_0x44a660(_0x28f700,_0x1f1c('0x27'),_0x44a660(_0x28f700,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ac9ec,'\x22'+_0x1be130['join']('\x20')+'\x22']))}:{'type':_0x1f1c('0x76'),'content':_0x44a660(_0x28f700,_0x1f1c('0x27'),_0x44a660(_0x28f700,_0x1f1c('0x5f'),_0x1ac9ec))};}}),_0x17329b[_0x1f1c('0x87')]['registerCustomCallback'](_0x1f1c('0x78'),_0x1f1c('0x46'),_0x1f1c('0x75'),_0x358ef9),_0x17329b[_0x1f1c('0x87')]['registerCustomCallback'](_0x1f1c('0x76'),_0x1f1c('0x46'),_0x1f1c('0x60'),_0x358ef9),_0x17329b[_0x1f1c('0x87')][_0x1f1c('0x7')](_0x1f1c('0x78'),_0x1f1c('0x50'),_0x1f1c('0x75'),_0x596206),_0x17329b[_0x1f1c('0x87')][_0x1f1c('0x7')](_0x1f1c('0x76'),_0x1f1c('0x50'),_0x1f1c('0x60'),_0x596206),_0x17329b[_0x1f1c('0x87')]['registerCustomCallback'](_0x1f1c('0x78'),_0x1f1c('0x50'),_0x1f1c('0x34'),_0x1fbeed),_0x17329b[_0x1f1c('0x87')][_0x1f1c('0x7')]('deletion',_0x1f1c('0x50'),_0x1f1c('0x34'),_0x1fbeed),_0x17329b[_0x1f1c('0x87')][_0x1f1c('0x7')](_0x1f1c('0x78'),_0x1f1c('0x46'),_0x1f1c('0x34'),_0x572e8d),_0x17329b[_0x1f1c('0x87')][_0x1f1c('0x7')](_0x1f1c('0x76'),_0x1f1c('0x46'),'join',_0x572e8d);}[_0x1f1c('0xc')](){const _0x23399=this[_0x1f1c('0x1')],_0x69321=_0x23399[_0x1f1c('0x5b')][_0x1f1c('0x9')]['selection'];return(_0x2cabe9,_0x5320ed)=>{_0x23399[_0x1f1c('0x5b')]['change'](_0x279fe9=>{const {commandName:_0x4d73fc,commandParams:_0x30c8fa}=_0x5320ed;let _0x2d8618=_0x2cabe9[0x0][_0x1f1c('0x5')][_0x1f1c('0x41')];_0x30c8fa&&_0x30c8fa[0x0]&&!0x1===_0x30c8fa[0x0][_0x1f1c('0x4f')]&&(_0x2d8618=_0x2cabe9[0x0][_0x1f1c('0x8')]['nodeAfter']);const _0x28d6c0=_0x279fe9[_0x1f1c('0x88')](_0x2d8618);if(_0x1f1c('0x80')==_0x28d6c0['root'][_0x1f1c('0x24')])return;const _0x3d2e60=Array['from'](_0x69321[_0x1f1c('0x14')]())[_0x1f1c('0x43')](_0x13d857=>_0x32cf65['fromRange'](_0x13d857));_0x279fe9[_0x1f1c('0x6c')](_0x28d6c0),_0x23399['commands']['get'](_0x4d73fc)[_0x1f1c('0x22')](),_0x30c8fa['push']({'forceDefaultExecution':!0x0}),_0x23399[_0x1f1c('0x83')](_0x4d73fc,..._0x30c8fa);const _0x55986a=_0x3d2e60['filter'](_0x1a944a=>_0x1f1c('0x80')!=_0x1a944a[_0x1f1c('0x45')][_0x1f1c('0x24')]);_0x55986a[_0x1f1c('0xf')]>0x0&&_0x279fe9['setSelection'](_0x55986a);for(const _0x1de091 of _0x3d2e60)_0x1de091[_0x1f1c('0x79')]();});};}['_getCoordsForCells'](_0x39ee53){const _0x6e3131=this[_0x1f1c('0x1')][_0x1f1c('0x30')][_0x1f1c('0x4e')](_0x1f1c('0x21'));let _0x346b6e=Number[_0x1f1c('0x86')],_0x3d0215=Number['MIN_SAFE_INTEGER'],_0x41786a=Number[_0x1f1c('0x86')],_0x300326=Number[_0x1f1c('0x74')];for(const _0x255b80 of _0x39ee53){if(_0x1f1c('0x80')==_0x255b80[_0x1f1c('0x45')][_0x1f1c('0x24')])continue;const {row:_0x2b1e30,column:_0x14d1dd}=_0x6e3131[_0x1f1c('0x7b')](_0x255b80),_0x1fdda8=_0x255b80[_0x1f1c('0x5a')]('rowspan')?_0x255b80[_0x1f1c('0x48')](_0x1f1c('0x13'))-0x1:0x0,_0x317c93=_0x255b80['hasAttribute']('colspan')?_0x255b80[_0x1f1c('0x48')](_0x1f1c('0x26'))-0x1:0x0;_0x346b6e=_0x2b1e30<_0x346b6e?_0x2b1e30:_0x346b6e,_0x3d0215=_0x2b1e30+_0x1fdda8>_0x3d0215?_0x2b1e30+_0x1fdda8:_0x3d0215,_0x41786a=_0x14d1dd<_0x41786a?_0x14d1dd:_0x41786a,_0x300326=_0x14d1dd+_0x317c93>_0x300326?_0x14d1dd+_0x317c93:_0x300326;}return{'minRow':_0x346b6e,'maxRow':_0x3d0215,'minColumn':_0x41786a,'maxColumn':_0x300326};}[_0x1f1c('0x39')](){const _0x3085fc=this[_0x1f1c('0x1')],_0x5db264=_0x3085fc['plugins'][_0x1f1c('0x4e')](_0x1f1c('0x6')),_0x56a672=_0x3085fc['plugins'][_0x1f1c('0x4e')](_0x1f1c('0x21'));_0x3085fc['model']['document']['on'](_0x1f1c('0x82'),()=>{const _0x14748e=Array[_0x1f1c('0x81')](_0x3085fc[_0x1f1c('0x5b')][_0x1f1c('0x9')]['differ'][_0x1f1c('0x33')]());for(const {name:_0x4eaf96,data:_0x328302}of _0x14748e){const {group:_0x3691f7,id:_0x2fdd11,subType:_0x1cbfc3}=_0x5db264[_0x1f1c('0x57')](_0x4eaf96);if('suggestion'!=_0x3691f7)continue;if(null!=_0x328302['oldRange'])continue;const _0xb08eb0=_0x5db264[_0x1f1c('0x64')](_0x2fdd11);this['_tablePostFixingSubtypes'][_0x1f1c('0x15')](_0x1cbfc3)&&this[_0x1f1c('0x62')][_0x1f1c('0x66')](_0xb08eb0);}},{'priority':_0x1f1c('0x49')});const _0x30b025=(_0x58af2d,_0x4f87db)=>{let _0x5b5658=!0x1;const _0x21ce0f=_0x4f87db[_0x1f1c('0x52')](_0x58af2d),_0x487b6e=_0x58af2d[_0x1f1c('0x4a')](_0x1f1c('0x55')),_0x2410d9=_0x56a672['getCellLocation'](_0x58af2d);for(const _0x562061 of this[_0x1f1c('0x62')]){const _0x143cf3=_0x562061['subType'],_0x51285c=_0x143cf3[_0x1f1c('0x2e')](_0x1f1c('0x35')),_0x352bf9=_0x143cf3[_0x1f1c('0x25')](_0x51285c?0xa:0x5),_0x56fd7c=_0x352bf9[_0x1f1c('0x1f')](),_0xcb49ca=_0x56fd7c['substr'](0x0,0x3)+'span',_0x369a1f=_0x1f1c('0x5d')+_0x352bf9,_0x427bf8='max'+_0x352bf9;if(!_0x562061[_0x1f1c('0x61')])continue;if(_0x487b6e!=_0x562061[_0x1f1c('0x59')]()[_0x1f1c('0x8')][_0x1f1c('0x4a')](_0x1f1c('0x55')))continue;if(_0x562061[_0x1f1c('0x23')](_0x21ce0f))continue;const _0x563344=_0x58af2d[_0x1f1c('0x5a')](_0xcb49ca)?_0x58af2d[_0x1f1c('0x48')](_0xcb49ca)-0x1:0x0,_0x57fbeb=this['_getSuggestionCoords'](_0x562061),_0x13d8a0=_0x57fbeb[_0x369a1f],_0x5e8839=_0x57fbeb[_0x427bf8];_0x13d8a0<=_0x2410d9[_0x56fd7c]&&_0x2410d9[_0x56fd7c]+_0x563344<=_0x5e8839&&(_0x562061[_0x1f1c('0xe')](_0x21ce0f),_0x5b5658=!0x0);}return _0x5b5658;};_0x3085fc[_0x1f1c('0x5b')][_0x1f1c('0x9')][_0x1f1c('0x1d')](_0x3018ba=>{let _0x237675=!0x1;for(const _0x171ffc of _0x3085fc[_0x1f1c('0x5b')][_0x1f1c('0x9')]['differ'][_0x1f1c('0x6e')]())if(_0x1f1c('0x11')==_0x171ffc[_0x1f1c('0x7f')]){if(_0x1f1c('0x46')==_0x171ffc[_0x1f1c('0x36')])for(const _0xa9b994 of _0x171ffc[_0x1f1c('0x31')][_0x1f1c('0x72')][_0x1f1c('0x68')]())_0x237675=_0x237675||_0x30b025(_0xa9b994,_0x3018ba);else _0x1f1c('0x3f')==_0x171ffc[_0x1f1c('0x36')]&&(_0x237675=_0x237675||_0x30b025(_0x171ffc[_0x1f1c('0x31')][_0x1f1c('0x72')],_0x3018ba));}return _0x237675;});}[_0x1f1c('0x32')](_0x621936){return this['_getCoordsForCells'](_0x621936[_0x1f1c('0x14')]()[_0x1f1c('0x43')](_0x3283e3=>_0x3283e3['start'][_0x1f1c('0x72')]));}}function se(_0x3a2183){return Array['from'](new Set(_0x3a2183)[_0x1f1c('0x6d')]());}
|
|
23
|
+
const _0x4821=['toLowerCase','add','registerElementLabel','insertTableColumnLeft','_suggestionFactory','differ','first','classes','enableCommand','some','ELEMENT_TABLE_COLUMN_WITH_TEXT','MIN_SAFE_INTEGER','addClass','refresh','last','plugins','insertTable','data','filter','mapper','showSuggestionHighlights','document','ELEMENT_TABLE','MAX_SAFE_INTEGER','afterInit','createTableWalker','removeClass','colspan','ELEMENT_TABLE_ROW_WITH_TEXT','rootName','nodeAfter','TableEditing','from','model','*Remove:*\x20%0','fromRange','removeTableRow','getContainedElement','isEqual','execute','setSelection','item','change','name','order','downcastDispatcher','selection','has','table','ELEMENT_TABLE_WITH_TEXT','writer','ELEMENT_TABLE_ROW','getColumnIndexes','above','getRowIndexes','every','map','_tableSuggestions','selectTableRow','addRange','$graveyard','includes','cell','findAncestor','highest','insert','getSelectionAffectedTableCells','$textProxy','minRow','getCellLocation','tablePaste','markMultiRangeDeletion','commands','addMarker:suggestion','tableRow','editor','_tablePostFixingSubtypes','position','selectTableColumn','nodeBefore','span','registerCustomCallback','TrackChangesEditing','batch','change:data','accept','join','registerDescriptionCallback','min','_descriptionFactory','isArray','createRangeIn','TableUtils','low','get','getRanges','max','rowspan','left','values','locale','*Insert:*\x20%0','_getSuggestionCoords','_splitMarkerName','tableCell','maxColumn','hasAttribute','length','isIntersectingWithRange','_getCoordsForCells','isTouching','subType','_setupColumnsRowsFixing','enqueueChange','getChangedMarkers','type','getSuggestion','substr','insertTableRowAbove','removeTableColumn','insertion','deletion','toViewElement','ELEMENT_TABLE_COLUMN','push','start','getAttribute','createRangeOn','getItems','end','_acceptFormatSuggestionCallbackFactory','root','getFirstRange','tableColumn','detach'];(function(_0x51af64,_0x4821c7){const _0x5973d8=function(_0x40e7df){while(--_0x40e7df){_0x51af64['push'](_0x51af64['shift']());}};_0x5973d8(++_0x4821c7);}(_0x4821,0x1bb));const _0x5973=function(_0x51af64,_0x4821c7){_0x51af64=_0x51af64-0x0;let _0x5973d8=_0x4821[_0x51af64];return _0x5973d8;};import{Plugin as _0x518a72}from'ckeditor5/src/core';import{LiveRange as _0x28d167}from'ckeditor5/src/engine';import{setHighlightHandling as _0x11a970}from'ckeditor5/src/widget';import{getTranslation as _0x3de8bf}from'../utils/common-translations';export default class wt extends _0x518a72{constructor(_0x2f986c){super(_0x2f986c),this[_0x5973('0x26')]=[_0x5973('0x24'),_0x5973('0x5f')],this[_0x5973('0x13')]=new Set();}[_0x5973('0x79')](){const _0x3beefc=this[_0x5973('0x25')],_0x41e2aa=_0x3beefc[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x8')];if(!_0x3beefc[_0x5973('0x70')][_0x5973('0x9')](_0x5973('0x80')))return;const _0x852002=_0x3beefc[_0x5973('0x3e')],_0xf2adaa=_0x3beefc[_0x5973('0x70')][_0x5973('0x38')](_0x5973('0x2c')),_0x1f29b9=_0x3beefc['plugins'][_0x5973('0x38')](_0x5973('0x36'));_0xf2adaa[_0x5973('0x33')][_0x5973('0x63')](_0x5973('0xa'),_0x4b4f7b=>_0x3de8bf(_0x852002,_0x5973('0x77'),_0x4b4f7b)),this[_0x5973('0x4a')](),_0xf2adaa[_0x5973('0x69')](_0x5973('0x71')),_0xf2adaa[_0x5973('0x69')](_0x5973('0x14')),_0xf2adaa[_0x5973('0x69')](_0x5973('0x28'));for(const _0x21b527 of[_0x5973('0x50'),'insertTableRowBelow']){const _0x498bce=_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x21b527);_0xf2adaa[_0x5973('0x69')](_0x21b527,_0x244c03=>{_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x2d5632=>{_0x244c03();const _0x556db5=_0x5973('0xf')===_0x498bce[_0x5973('0x6')],_0x4b3689=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x33658e=_0x1f29b9[_0x5973('0x10')](_0x4b3689),_0x33faf9=_0x556db5?_0x33658e[_0x5973('0x67')]-0x1:_0x33658e[_0x5973('0x6f')]+0x1,_0x4a0c9b=_0x4b3689[0x0]['findAncestor'](_0x5973('0xa')),_0x797dc2=_0x1f29b9[_0x5973('0x7a')](_0x4a0c9b,{'startRow':_0x33faf9,'endRow':_0x33faf9}),_0xe388c2=Array[_0x5973('0x81')](_0x797dc2)['map'](_0x22cc54=>_0x2d5632[_0x5973('0x59')](_0x22cc54[_0x5973('0x18')]));_0xf2adaa['markMultiRangeInsertion'](_0xe388c2,'tableRow');});});}for(const _0x42a373 of[_0x5973('0x64'),'insertTableColumnRight']){const _0x163b07=_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x42a373);_0xf2adaa[_0x5973('0x69')](_0x42a373,_0x2f04d7=>{_0x3beefc['model'][_0x5973('0x4')](_0xe7f689=>{_0x2f04d7();const _0x45dedf=_0x5973('0x3c')===_0x163b07[_0x5973('0x6')],_0x2a0235=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x5cb2d0=_0x1f29b9[_0x5973('0xe')](_0x2a0235),_0x30c73b=_0x45dedf?_0x5cb2d0[_0x5973('0x67')]-0x1:_0x5cb2d0[_0x5973('0x6f')]+0x1,_0x546709=_0x2a0235[0x0][_0x5973('0x19')]('table'),_0x2b3c13=_0x1f29b9[_0x5973('0x7a')](_0x546709,{'startRow':0x0,'column':_0x30c73b,'includeAllSlots':!0x1}),_0x5e7021=Array[_0x5973('0x81')](_0x2b3c13)[_0x5973('0x12')](_0x147867=>_0xe7f689[_0x5973('0x59')](_0x147867[_0x5973('0x18')]));_0xf2adaa['markMultiRangeInsertion'](_0x5e7021,_0x5973('0x5f'));});});}for(const _0x395103 of[_0x5973('0x85'),'removeTableColumn']){const _0x4ee6de=_0x395103[_0x5973('0x4f')](0xb),_0x2a474b=_0x4ee6de[_0x5973('0x61')](),_0xa7b274=_0x2a474b[_0x5973('0x4f')](0x0,0x3)+_0x5973('0x2a'),_0x51f2e9=_0x5973('0xa')+_0x4ee6de,_0x4d87ad='min'+_0x4ee6de,_0x1d3e0b=_0x5973('0x3a')+_0x4ee6de;_0xf2adaa['enableCommand'](_0x395103,()=>{_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x4a6b41=>{const _0x4b028d=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x386b76=_0x4b028d[0x0][_0x5973('0x19')](_0x5973('0xa'));let _0x5b0a19;if(_0x5973('0x85')==_0x395103){const _0x5868a7=_0x1f29b9[_0x5973('0x10')](_0x4b028d);_0x5b0a19={'startRow':_0x5868a7[_0x5973('0x67')],'endRow':_0x5868a7[_0x5973('0x6f')],'includeAllSlots':!0x0};}else{const _0x42ca79=_0x1f29b9[_0x5973('0xe')](_0x4b028d);_0x5b0a19={'startColumn':_0x42ca79['first'],'endColumn':_0x42ca79[_0x5973('0x6f')],'includeAllSlots':!0x0};}const _0x19ca87=_0x1f29b9[_0x5973('0x7a')](_0x386b76,_0x5b0a19),_0x2f0801=Array[_0x5973('0x81')](_0x19ca87)[_0x5973('0x12')](({cell:_0x1b6288})=>_0x1b6288),_0x505f82=se(_0x2f0801['filter'](_0x119c3b=>_0x119c3b[_0x5973('0x44')](_0xa7b274))),_0xdee404=se(_0x2f0801[_0x5973('0x73')](_0x191fb3=>!_0x191fb3[_0x5973('0x44')](_0xa7b274)))[_0x5973('0x12')](_0x1752f9=>_0x4a6b41[_0x5973('0x59')](_0x1752f9)),_0x3bb418=_0xf2adaa[_0x5973('0x21')](_0xdee404,_0x51f2e9);if(_0x3bb418&&('tableRow'==_0x3bb418['subType']||_0x5973('0x5f')==_0x3bb418['subType'])){const _0x508879=this['_getSuggestionCoords'](_0x3bb418);for(const _0x3a92d7 of _0x505f82){const _0x116c64=_0x4a6b41[_0x5973('0x59')](_0x3a92d7),_0x25c110=_0x1f29b9[_0x5973('0x1f')](_0x3a92d7),_0xb074e0=_0x3a92d7[_0x5973('0x58')](_0xa7b274)-0x1,_0x4a5e74=_0x508879[_0x4d87ad],_0x4aac38=_0x508879[_0x1d3e0b];_0x4a5e74<=_0x25c110[_0x2a474b]&&_0x25c110[_0x2a474b]+_0xb074e0<=_0x4aac38&&_0x3bb418[_0x5973('0x15')](_0x116c64);}}});});}function _0x2039e5(_0x5ca2a0){const _0x3fd7d4=Array['from'](_0x41e2aa[_0x5973('0x39')]())[_0x5973('0x12')](_0x319739=>_0x28d167[_0x5973('0x84')](_0x319739));_0x3beefc[_0x5973('0x82')]['change'](_0x4c2b4a=>{const _0x4f4cad=_0x4c2b4a[_0x5973('0x2d')];_0x5ca2a0=_0x5ca2a0[_0x5973('0x73')](_0x3602b2=>_0x5973('0x16')!=_0x3602b2[_0x5973('0x5d')][_0x5973('0x7e')]),_0x4c2b4a[_0x5973('0x2')](_0x5ca2a0),_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x5973('0x85'))[_0x5973('0x6e')](),_0x3beefc[_0x5973('0x1')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3beefc[_0x5973('0x82')][_0x5973('0x4b')](()=>{_0x3beefc['model'][_0x5973('0x4b')](_0x4f4cad,_0x30e6fd=>{const _0x18386a=_0x3fd7d4[_0x5973('0x73')](_0x102384=>_0x5973('0x16')!=_0x102384[_0x5973('0x5d')]['rootName']);_0x18386a[_0x5973('0x45')]>0x0&&_0x30e6fd[_0x5973('0x2')](_0x18386a);for(const _0xe94797 of _0x3fd7d4)_0xe94797[_0x5973('0x60')]();});});});}function _0x33ba81(_0x1f47ea){_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x3501e6=>{const _0x1ff494=Array[_0x5973('0x81')](_0x41e2aa['getRanges']())['map'](_0x222698=>_0x28d167[_0x5973('0x84')](_0x222698)),_0x179653=[];for(const _0x408f1d of _0x1f47ea)for(const _0x41ca7e of _0x408f1d[_0x5973('0x5a')]({'shallow':!0x0}))_0x179653[_0x5973('0x56')](_0x41ca7e);for(const _0x25cbb7 of _0x179653)_0x5973('0x16')!=_0x25cbb7[_0x5973('0x5d')]['rootName']&&(_0x3501e6[_0x5973('0x2')](_0x3501e6['createPositionAt'](_0x25cbb7,0x0)),_0x3beefc[_0x5973('0x22')][_0x5973('0x38')]('removeTableColumn')['refresh'](),_0x3beefc['execute'](_0x5973('0x51'),{'forceDefaultExecution':!0x0}));const _0x18c06c=_0x1ff494[_0x5973('0x73')](_0x376da1=>'$graveyard'!=_0x376da1[_0x5973('0x5d')][_0x5973('0x7e')]);_0x18c06c[_0x5973('0x45')]>0x0&&_0x3501e6['setSelection'](_0x18c06c);for(const _0x3380d3 of _0x1ff494)_0x3380d3[_0x5973('0x60')]();});}function _0x4e8db6(_0x44f451,_0x2d6b83){return _0x2d6b83[_0x5973('0x11')](_0x24908e=>_0x44f451[_0x5973('0x6a')](_0x1186d6=>_0x1186d6[_0x5973('0x5b')][_0x5973('0x0')](_0x24908e[_0x5973('0x57')])||_0x24908e['end']['isEqual'](_0x1186d6[_0x5973('0x57')])));}function _0x37f0be(_0x1a65bc,_0x328079){return _0x1a65bc[_0x5973('0x6a')](_0x1e4f13=>_0x328079[_0x5973('0x6a')](_0x5b3766=>_0x1e4f13['end'][_0x5973('0x48')](_0x5b3766[_0x5973('0x57')])));}_0x3beefc[_0x5973('0x72')][_0x5973('0x7')]['on'](_0x5973('0x23'),(_0x4dc4bf,_0x1d5fee,_0x576f0e)=>{if(!_0x576f0e['options'][_0x5973('0x75')])return;const _0x55ec37=_0x1d5fee[_0x5973('0x3')];if(!_0x55ec37)return;const _0x29b5e=_0x576f0e[_0x5973('0x74')][_0x5973('0x54')](_0x55ec37);function _0x19730f(_0x5ed1f7){return Array[_0x5973('0x34')](_0x5ed1f7)?_0x5ed1f7:[_0x5ed1f7];}_0x29b5e&&_0x5973('0x42')===_0x55ec37[_0x5973('0x5')]&&_0x11a970(_0x29b5e,_0x576f0e[_0x5973('0xc')],(_0x4b1b56,_0x2154bd,_0x2b08cb)=>_0x2b08cb[_0x5973('0x6d')](_0x19730f(_0x2154bd[_0x5973('0x68')]),_0x4b1b56),(_0x4ce60b,_0x2d0a5a,_0x51d6ec)=>_0x51d6ec[_0x5973('0x7b')](_0x19730f(_0x2d0a5a[_0x5973('0x68')]),_0x4ce60b));},{'priority':_0x5973('0x1a')}),_0xf2adaa[_0x5973('0x33')][_0x5973('0x31')](_0xc3cfda=>{if(_0x5973('0x52')!=_0xc3cfda[_0x5973('0x4d')]&&_0x5973('0x53')!=_0xc3cfda[_0x5973('0x4d')])return;const _0x36556f=_0xc3cfda[_0x5973('0x86')]();if(null!=_0x36556f&&_0x36556f['is']('element',_0x5973('0xa'))){if(_0x5973('0x52')==_0xc3cfda[_0x5973('0x4d')]){const _0x52d3d0=_0xc3cfda[_0x5973('0x5a')]()[_0x5973('0x73')](_0x3cb35a=>_0x3cb35a['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x2e11b9=>_0x2e11b9[_0x5973('0x72')]);if(_0x52d3d0[_0x5973('0x45')])return{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,_0x5973('0xb'),'\x22'+_0x52d3d0['join']('\x20')+'\x22'))};}if(_0x5973('0x53')==_0xc3cfda['type']){const _0x163407=_0xc3cfda[_0x5973('0x5a')]()[_0x5973('0x73')](_0x8a073d=>_0x8a073d['is']('$textProxy'))[_0x5973('0x12')](_0x4bf0e0=>_0x4bf0e0['data']);if(_0x163407['length'])return{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0xb'),'\x22'+_0x163407[_0x5973('0x30')]('\x20')+'\x22'))};}}}),_0xf2adaa[_0x5973('0x33')][_0x5973('0x31')](_0x2e7c35=>{if(_0x5973('0x24')==_0x2e7c35[_0x5973('0x49')]){const _0x300ce8=_0x2e7c35[_0x5973('0x5a')]()[_0x5973('0x73')](_0x3401b0=>_0x3401b0['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x123d3d=>_0x123d3d['data']),_0xce42d2=this[_0x5973('0x40')](_0x2e7c35),_0x4453f4=_0xce42d2['maxRow']-_0xce42d2[_0x5973('0x1e')]+0x1;if('insertion'==_0x2e7c35[_0x5973('0x4d')])return _0x300ce8[_0x5973('0x45')]?{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,'*Insert:*\x20%0',_0x3de8bf(_0x852002,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4453f4,'\x22'+_0x300ce8['join']('\x20')+'\x22']))}:{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,'*Insert:*\x20%0',_0x3de8bf(_0x852002,_0x5973('0xd'),_0x4453f4))};if(_0x5973('0x53')==_0x2e7c35['type'])return _0x300ce8[_0x5973('0x45')]?{'type':_0x5973('0x53'),'content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0x7d'),[_0x4453f4,'\x22'+_0x300ce8[_0x5973('0x30')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0xd'),_0x4453f4))};}if(_0x5973('0x5f')==_0x2e7c35[_0x5973('0x49')]){const _0x14d604=_0x2e7c35[_0x5973('0x5a')]()[_0x5973('0x73')](_0x46d82f=>_0x46d82f['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x881815=>_0x881815['data']),_0x545eef=this['_getSuggestionCoords'](_0x2e7c35),_0x36881b=_0x545eef[_0x5973('0x43')]-_0x545eef['minColumn']+0x1;if(_0x5973('0x52')==_0x2e7c35[_0x5973('0x4d')])return _0x14d604[_0x5973('0x45')]?{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,_0x5973('0x6b'),[_0x36881b,'\x22'+_0x14d604[_0x5973('0x30')]('\x20')+'\x22']))}:{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,'ELEMENT_TABLE_COLUMN',_0x36881b))};if('deletion'==_0x2e7c35[_0x5973('0x4d')])return _0x14d604[_0x5973('0x45')]?{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0x6b'),[_0x36881b,'\x22'+_0x14d604['join']('\x20')+'\x22']))}:{'type':_0x5973('0x53'),'content':_0x3de8bf(_0x852002,'*Remove:*\x20%0',_0x3de8bf(_0x852002,_0x5973('0x55'),_0x36881b))};}}),_0xf2adaa['_suggestionFactory']['registerCustomCallback'](_0x5973('0x52'),_0x5973('0x24'),'discard',_0x2039e5),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),'tableRow',_0x5973('0x2f'),_0x2039e5),_0xf2adaa[_0x5973('0x65')]['registerCustomCallback'](_0x5973('0x52'),_0x5973('0x5f'),'discard',_0x33ba81),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),_0x5973('0x5f'),_0x5973('0x2f'),_0x33ba81),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x52'),_0x5973('0x5f'),_0x5973('0x30'),_0x4e8db6),_0xf2adaa['_suggestionFactory']['registerCustomCallback']('deletion',_0x5973('0x5f'),_0x5973('0x30'),_0x4e8db6),_0xf2adaa['_suggestionFactory'][_0x5973('0x2b')](_0x5973('0x52'),_0x5973('0x24'),'join',_0x37f0be),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),_0x5973('0x24'),_0x5973('0x30'),_0x37f0be);}[_0x5973('0x5c')](){const _0x87bdee=this[_0x5973('0x25')],_0x50479d=_0x87bdee[_0x5973('0x82')]['document'][_0x5973('0x8')];return(_0x3c8b7e,_0x361372)=>{_0x87bdee[_0x5973('0x82')][_0x5973('0x4')](_0x1928f0=>{const {commandName:_0x12c909,commandParams:_0x2e79fd}=_0x361372;let _0x129e06=_0x3c8b7e[0x0][_0x5973('0x5b')][_0x5973('0x29')];_0x2e79fd&&_0x2e79fd[0x0]&&!0x1===_0x2e79fd[0x0]['forceValue']&&(_0x129e06=_0x3c8b7e[0x0][_0x5973('0x57')][_0x5973('0x7f')]);const _0x351e7f=_0x1928f0[_0x5973('0x35')](_0x129e06);if(_0x5973('0x16')==_0x351e7f['root'][_0x5973('0x7e')])return;const _0x3feb95=Array['from'](_0x50479d['getRanges']())[_0x5973('0x12')](_0x31f011=>_0x28d167['fromRange'](_0x31f011));_0x1928f0['setSelection'](_0x351e7f),_0x87bdee[_0x5973('0x22')][_0x5973('0x38')](_0x12c909)[_0x5973('0x6e')](),_0x2e79fd[_0x5973('0x56')]({'forceDefaultExecution':!0x0}),_0x87bdee['execute'](_0x12c909,..._0x2e79fd);const _0x565ce5=_0x3feb95[_0x5973('0x73')](_0x313d61=>_0x5973('0x16')!=_0x313d61[_0x5973('0x5d')][_0x5973('0x7e')]);_0x565ce5[_0x5973('0x45')]>0x0&&_0x1928f0['setSelection'](_0x565ce5);for(const _0x48631d of _0x3feb95)_0x48631d[_0x5973('0x60')]();});};}[_0x5973('0x47')](_0x3aff5d){const _0x5a4173=this[_0x5973('0x25')]['plugins']['get']('TableUtils');let _0x53d0c2=Number[_0x5973('0x78')],_0x1bcc8d=Number[_0x5973('0x6c')],_0x2ccb2b=Number['MAX_SAFE_INTEGER'],_0x34e011=Number[_0x5973('0x6c')];for(const _0x193cb5 of _0x3aff5d){if('$graveyard'==_0x193cb5[_0x5973('0x5d')]['rootName'])continue;const {row:_0x4ba841,column:_0x916b1d}=_0x5a4173[_0x5973('0x1f')](_0x193cb5),_0x5bad45=_0x193cb5[_0x5973('0x44')](_0x5973('0x3b'))?_0x193cb5[_0x5973('0x58')](_0x5973('0x3b'))-0x1:0x0,_0x402ea3=_0x193cb5[_0x5973('0x44')](_0x5973('0x7c'))?_0x193cb5['getAttribute']('colspan')-0x1:0x0;_0x53d0c2=_0x4ba841<_0x53d0c2?_0x4ba841:_0x53d0c2,_0x1bcc8d=_0x4ba841+_0x5bad45>_0x1bcc8d?_0x4ba841+_0x5bad45:_0x1bcc8d,_0x2ccb2b=_0x916b1d<_0x2ccb2b?_0x916b1d:_0x2ccb2b,_0x34e011=_0x916b1d+_0x402ea3>_0x34e011?_0x916b1d+_0x402ea3:_0x34e011;}return{'minRow':_0x53d0c2,'maxRow':_0x1bcc8d,'minColumn':_0x2ccb2b,'maxColumn':_0x34e011};}['_setupColumnsRowsFixing'](){const _0x3a5dab=this[_0x5973('0x25')],_0x4493da=_0x3a5dab['plugins'][_0x5973('0x38')](_0x5973('0x2c')),_0x1497f5=_0x3a5dab[_0x5973('0x70')][_0x5973('0x38')]('TableUtils');_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')]['on'](_0x5973('0x2e'),()=>{const _0x4f2321=Array['from'](_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x66')][_0x5973('0x4c')]());for(const {name:_0x4b19fe,data:_0x3f7947}of _0x4f2321){const {group:_0x2ee6ec,id:_0x476e1f,subType:_0x53b268}=_0x4493da[_0x5973('0x41')](_0x4b19fe);if('suggestion'!=_0x2ee6ec)continue;if(null!=_0x3f7947['oldRange'])continue;const _0x2b7064=_0x4493da[_0x5973('0x4e')](_0x476e1f);this[_0x5973('0x26')][_0x5973('0x17')](_0x53b268)&&this[_0x5973('0x13')][_0x5973('0x62')](_0x2b7064);}},{'priority':_0x5973('0x37')});const _0x176a8c=(_0x5b36b2,_0x1079b8)=>{let _0x3afca0=!0x1;const _0x487992=_0x1079b8['createRangeOn'](_0x5b36b2),_0x31cef2=_0x5b36b2[_0x5973('0x19')](_0x5973('0xa')),_0x6fa5c4=_0x1497f5[_0x5973('0x1f')](_0x5b36b2);for(const _0x3f7174 of this['_tableSuggestions']){const _0x1626da=_0x3f7174[_0x5973('0x49')],_0xe8cf92=_0x1626da['startsWith'](_0x5973('0x20')),_0x40cc82=_0x1626da[_0x5973('0x4f')](_0xe8cf92?0xa:0x5),_0x1febc3=_0x40cc82['toLowerCase'](),_0x41bb27=_0x1febc3['substr'](0x0,0x3)+'span',_0x5162eb=_0x5973('0x32')+_0x40cc82,_0x53cffb=_0x5973('0x3a')+_0x40cc82;if(!_0x3f7174['isInContent'])continue;if(_0x31cef2!=_0x3f7174[_0x5973('0x5e')]()[_0x5973('0x57')][_0x5973('0x19')]('table'))continue;if(_0x3f7174[_0x5973('0x46')](_0x487992))continue;const _0x433a65=_0x5b36b2[_0x5973('0x44')](_0x41bb27)?_0x5b36b2['getAttribute'](_0x41bb27)-0x1:0x0,_0x1c0831=this[_0x5973('0x40')](_0x3f7174),_0x59126e=_0x1c0831[_0x5162eb],_0x441e49=_0x1c0831[_0x53cffb];_0x59126e<=_0x6fa5c4[_0x1febc3]&&_0x6fa5c4[_0x1febc3]+_0x433a65<=_0x441e49&&(_0x3f7174[_0x5973('0x15')](_0x487992),_0x3afca0=!0x0);}return _0x3afca0;};_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')]['registerPostFixer'](_0x841c91=>{let _0x2692dd=!0x1;for(const _0x2fc691 of _0x3a5dab[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x66')]['getChanges']())if(_0x5973('0x1b')==_0x2fc691[_0x5973('0x4d')]){if(_0x5973('0x24')==_0x2fc691['name'])for(const _0x200fbe of _0x2fc691[_0x5973('0x27')][_0x5973('0x7f')]['getChildren']())_0x2692dd=_0x2692dd||_0x176a8c(_0x200fbe,_0x841c91);else _0x5973('0x42')==_0x2fc691['name']&&(_0x2692dd=_0x2692dd||_0x176a8c(_0x2fc691['position']['nodeAfter'],_0x841c91));}return _0x2692dd;});}[_0x5973('0x40')](_0x52c27e){return this[_0x5973('0x47')](_0x52c27e[_0x5973('0x39')]()['map'](_0x5818d5=>_0x5818d5[_0x5973('0x57')][_0x5973('0x7f')]));}}function se(_0x4c7935){return Array['from'](new Set(_0x4c7935)[_0x5973('0x3d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c4=['TableCaptionEditing','editor','toggleTableCaption','afterInit','plugins','has','TrackChangesEditing','requires','get','enableCommand'];(function(_0x493228,_0x46c4dc){const _0x35cc62=function(_0x2affa9){while(--_0x2affa9){_0x493228['push'](_0x493228['shift']());}};_0x35cc62(++_0x46c4dc);}(_0x46c4,0x77));const _0x35cc=function(_0x493228,_0x46c4dc){_0x493228=_0x493228-0x0;let _0x35cc62=_0x46c4[_0x493228];return _0x35cc62;};import{Plugin as _0x1086c5}from'ckeditor5/src/core';import _0x276c28 from'./table';export default class Nt extends _0x1086c5{static get[_0x35cc('0x8')](){return[_0x276c28];}[_0x35cc('0x4')](){const _0x220f04=this[_0x35cc('0x2')];if(!_0x220f04[_0x35cc('0x5')][_0x35cc('0x6')](_0x35cc('0x1')))return;_0x220f04[_0x35cc('0x5')][_0x35cc('0x9')](_0x35cc('0x7'))[_0x35cc('0x0')](_0x35cc('0x3'));}}
|