@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231122.0 → 0.0.0-nightly-20231124.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 _0x4c1b=['document','parent','bulleted','ELEMENT_NUMBERED_LIST','listItem','commands','commandParams','commandName','value','todo','todoList','indentList','ELEMENT_TODO_LIST','ELEMENT_LIST_ITEM','markBlockFormat','listType','replace','bulletedList','blockName','add','type','nextSibling','ELEMENT_BULLETED_LIST','paragraph','_selectedElements','getSelectedBlocks','format','createRange','get','plugins','outdentList','*Change\x20to:*\x20%0','schema','forceValue','TrackChangesEditing','from','enableCommand','formatBlock','afterInit','editor','List','createPositionAt','checkTodoList','todoListChecked','end','findIndex','element','previousSibling','selection','*Indent:*\x20%0','registerDescriptionCallback','ListEditing','change','formatInline','checkChild','push','has','model','numberedList','*Uncheck\x20item*','before','*Outdent:*\x20%0','listIndent','filter','getAttribute','slice'];(function(_0x77b3d7,_0x4c1b4){const _0x41e3f1=function(_0x3521c5){while(--_0x3521c5){_0x77b3d7['push'](_0x77b3d7['shift']());}};_0x41e3f1(++_0x4c1b4);}(_0x4c1b,0x83));const _0x41e3=function(_0x77b3d7,_0x4c1b4){_0x77b3d7=_0x77b3d7-0x0;let _0x41e3f1=_0x4c1b[_0x77b3d7];return _0x41e3f1;};import{Plugin as _0x15578b}from'ckeditor5/src/core';import{getTranslation as _0x4d4233}from'../utils/common-translations';export default class ct extends _0x15578b{[_0x41e3('0x27')](){const _0x2ea150=this[_0x41e3('0x28')],_0x14c06d=_0x2ea150['locale'];if(!_0x2ea150[_0x41e3('0x1e')][_0x41e3('0x39')](_0x41e3('0x34')))return;const _0x32d792=_0x2ea150[_0x41e3('0x1e')][_0x41e3('0x1d')](_0x41e3('0x23')),_0x528da3=_0x2ea150[_0x41e3('0x1e')][_0x41e3('0x39')]('TodoListEditing');function _0x216859(_0x6cd82){return()=>{const _0x5a08c5=_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x1')][_0x41e3('0x31')],_0x2fa78f=_0x2ea150['commands'][_0x41e3('0x1d')](_0x6cd82);if(_0x2fa78f[_0x41e3('0x9')])return void _0x2ea150['execute'](_0x41e3('0x18'),{});const _0x7f5354=_0x6cd82[_0x41e3('0x0')](0x0,-0x4),_0x3e7136=function(_0x598b9a,_0x39b065,_0x3724c9){let _0x55383c=Array['from'](_0x598b9a)[_0x41e3('0x40')](_0x1cae05=>function(_0x185bda,_0x47a775){return _0x47a775[_0x41e3('0x37')](_0x185bda[_0x41e3('0x2')],_0x41e3('0x5'))&&!_0x47a775['isObject'](_0x185bda);}(_0x1cae05,_0x3724c9));_0x55383c=_0x55383c[_0x41e3('0x40')](_0x11eb0f=>!_0x11eb0f['is']('element',_0x41e3('0x5'))||_0x11eb0f[_0x41e3('0x41')](_0x41e3('0x10'))!=_0x39b065);const _0xdba23=new Set();for(const _0x4f42ca of _0x55383c)_0x4f42ca['is'](_0x41e3('0x2f'),_0x41e3('0x5'))?_0xdba23['add'](ne(_0x4f42ca)):_0xdba23[_0x41e3('0x14')](_0x4f42ca);return Array[_0x41e3('0x24')](_0xdba23);}(_0x5a08c5[_0x41e3('0x1a')](),_0x7f5354,_0x2ea150['model'][_0x41e3('0x21')]);_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x35')](()=>{for(const _0x24af01 of _0x3e7136)_0x32d792[_0x41e3('0xf')](_0x24af01,{'commandName':_0x6cd82,'commandParams':[{'forceValue':!_0x2fa78f[_0x41e3('0x9')]}],'formatGroupId':_0x41e3('0x13')},oe(_0x24af01));});};}function _0x3585c3(_0x320bfb){return()=>{const _0x4cbb8a=function(_0x2fe0a5){let _0x33bdcf=Array['from'](_0x2fe0a5);const _0x16bcf3=_0x33bdcf[_0x41e3('0x2e')](_0x1554f1=>_0x41e3('0x5')!=_0x1554f1['name']);return _0x16bcf3>-0x1&&(_0x33bdcf=_0x33bdcf['slice'](0x0,_0x16bcf3)),_0x33bdcf;}(_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x1')]['selection']['getSelectedBlocks']()),_0x58a985=_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x1c')](_0x2ea150['model']['createPositionAt'](_0x4cbb8a[0x0],_0x41e3('0x3d')),_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x2a')](_0x4cbb8a[_0x4cbb8a['length']-0x1],_0x41e3('0x2d')));_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x35')](()=>{_0x32d792[_0x41e3('0xf')](_0x58a985,{'commandName':_0x320bfb,'commandParams':[],'formatGroupId':_0x41e3('0x3f')},function(_0x20a239){const _0x110217=new Set();for(const _0xd25934 of _0x20a239){let _0x51862a=_0xd25934['nextSibling'];for(;_0x51862a&&_0x51862a[_0x41e3('0x41')](_0x41e3('0x3f'))>_0xd25934[_0x41e3('0x41')](_0x41e3('0x3f'));)_0x110217[_0x41e3('0x14')](_0x51862a),_0x51862a=_0x51862a[_0x41e3('0x16')];}return Array[_0x41e3('0x24')](_0x110217);}(_0x4cbb8a));});};}_0x32d792[_0x41e3('0x25')](_0x41e3('0x3b'),_0x216859('numberedList')),_0x32d792['enableCommand'](_0x41e3('0x12'),_0x216859(_0x41e3('0x12'))),_0x528da3&&_0x32d792['enableCommand'](_0x41e3('0xb'),_0x216859(_0x41e3('0xb'))),_0x32d792[_0x41e3('0x25')]('indentList',_0x3585c3(_0x41e3('0xc'))),_0x32d792[_0x41e3('0x25')]('outdentList',_0x3585c3(_0x41e3('0x1f'))),_0x528da3&&_0x32d792['enableCommand'](_0x41e3('0x2b'),()=>{const _0x4a8abb=_0x2ea150[_0x41e3('0x6')][_0x41e3('0x1d')](_0x41e3('0x2b')),_0x34d514=Array[_0x41e3('0x24')](_0x4a8abb[_0x41e3('0x19')]);_0x34d514['filter'](_0x4ceee0=>_0x4ceee0[_0x41e3('0x41')](_0x41e3('0x2c'))!=_0x4a8abb['value']),_0x2ea150[_0x41e3('0x3a')][_0x41e3('0x35')](()=>{for(const _0x13ec14 of _0x34d514)_0x32d792[_0x41e3('0xf')](_0x13ec14,{'commandName':_0x41e3('0x2b'),'commandParams':[{'forceValue':!_0x4a8abb['value']}]});});}),_0x32d792['_descriptionFactory']['registerElementLabel'](_0x41e3('0x5'),_0x24a5a1=>_0x4d4233(_0x14c06d,'ELEMENT_LIST_ITEM',_0x24a5a1)),_0x32d792['_descriptionFactory'][_0x41e3('0x33')](_0x4cef93=>{if(_0x41e3('0x26')!=_0x4cef93[_0x41e3('0x15')]&&_0x41e3('0x36')!=_0x4cef93[_0x41e3('0x15')])return;const {data:_0xcffe43}=_0x4cef93;if(_0xcffe43){if(_0x41e3('0x3b')==_0xcffe43[_0x41e3('0x8')]||_0x41e3('0x12')==_0xcffe43[_0x41e3('0x8')]||_0x41e3('0xb')==_0xcffe43['commandName'])switch(_0xcffe43[_0x41e3('0x8')][_0x41e3('0x11')](_0x41e3('0x29'),'')){case _0x41e3('0x3'):return _0x56562f(_0x4d4233(_0x14c06d,_0x41e3('0x17')));case'numbered':return _0x56562f(_0x4d4233(_0x14c06d,_0x41e3('0x4')));case _0x41e3('0xa'):return _0x56562f(_0x4d4233(_0x14c06d,_0x41e3('0xd')));}if(_0x41e3('0xc')==_0xcffe43['commandName'])return{'type':_0x41e3('0x1b'),'content':_0x4d4233(_0x14c06d,_0x41e3('0x32'),_0x4d4233(_0x14c06d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xcffe43[_0x41e3('0x8')])return{'type':_0x41e3('0x1b'),'content':_0x4d4233(_0x14c06d,_0x41e3('0x3e'),_0x4d4233(_0x14c06d,_0x41e3('0xe')))};if(_0x41e3('0x2b')==_0xcffe43[_0x41e3('0x8')])return _0xcffe43[_0x41e3('0x7')][0x0][_0x41e3('0x22')]?{'type':'format','content':_0x4d4233(_0x14c06d,'*Check\x20item*')}:{'type':_0x41e3('0x1b'),'content':_0x4d4233(_0x14c06d,_0x41e3('0x3c'))};}function _0x56562f(_0x3b9d76){return{'type':_0x41e3('0x1b'),'content':_0x4d4233(_0x14c06d,_0x41e3('0x20'),_0x3b9d76)};}});}}function ne(_0x532e8f){const _0x54386c=_0x532e8f[_0x41e3('0x41')](_0x41e3('0x3f'));if(0x0==_0x54386c)return _0x532e8f;let _0x37745b=_0x532e8f;for(;_0x532e8f[_0x41e3('0x30')]&&_0x532e8f[_0x41e3('0x30')]['is'](_0x41e3('0x2f'),'listItem');){const _0x47c0e0=_0x532e8f[_0x41e3('0x30')][_0x41e3('0x41')](_0x41e3('0x3f'));if(_0x47c0e0==_0x54386c)_0x37745b=_0x532e8f[_0x41e3('0x30')];else{if(_0x47c0e0<_0x54386c)break;}_0x532e8f=_0x532e8f['previousSibling'];}return _0x37745b;}function oe(_0x2d65bb){const _0x23410d=[];if(_0x2d65bb['is'](_0x41e3('0x2f'),_0x41e3('0x5'))&&_0x2d65bb[_0x41e3('0x41')](_0x41e3('0x3f'))>0x0){let _0x560e73=_0x2d65bb['nextSibling'];for(;_0x560e73&&_0x41e3('0x5')==_0x560e73['name']&&_0x560e73['getAttribute']('listIndent')==_0x2d65bb[_0x41e3('0x41')](_0x41e3('0x3f'));)_0x23410d[_0x41e3('0x38')](_0x560e73),_0x560e73=_0x560e73[_0x41e3('0x16')];}return _0x23410d;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4251=['*Format:*\x20set\x20order\x20to\x20reversed','getSiblingNodes','createPositionAt','change','format','element','listItem','_getTranslationKeyForListStyle','getAttribute','enableCommand','handleDescriptions','model','registerDescriptionCallback','handleListStyleCommand','*Format:*\x20set\x20order\x20to\x20regular','getLastPosition','_LIST_','TrackChangesEditing','handleListReversedCommand','listStart','backward','numbered','filter','ListPropertiesEditing','parent','listReversed','config','bind','formatInline','styles','has','editor','type','_descriptionFactory','toUpperCase','reversed','formatBlock','getSelectedBlocks','listType','*Format:*\x20set\x20start\x20index\x20to\x20%0','createRange','locale','startIndex','from','document','afterInit','selection','get','commandParams','ELEMENT_','listStyle','ListUtils','push','map','commandName','plugins','unshift','replace','getFirstPosition','before','markMultiRangeBlockFormat','handleListStartCommand','length'];(function(_0x461665,_0x42517c){const _0x53ee8e=function(_0x3c6310){while(--_0x3c6310){_0x461665['push'](_0x461665['shift']());}};_0x53ee8e(++_0x42517c);}(_0x4251,0x18a));const _0x53ee=function(_0x461665,_0x42517c){_0x461665=_0x461665-0x0;let _0x53ee8e=_0x4251[_0x461665];return _0x53ee8e;};import{Plugin as _0x890f37}from'ckeditor5/src/core';import{getTranslation as _0x3d07de}from'../utils/common-translations';export default class ut extends _0x890f37{[_0x53ee('0x1d')](){if(!this[_0x53ee('0xf')][_0x53ee('0x27')][_0x53ee('0xe')](_0x53ee('0x7')))return;const _0xc2ceda=this[_0x53ee('0xf')][_0x53ee('0xa')]['get']('list.properties'),_0x156289=this[_0x53ee('0xf')]['plugins']['get']('TrackChangesEditing');_0xc2ceda[_0x53ee('0xd')]&&_0x156289[_0x53ee('0x38')](_0x53ee('0x22'),this[_0x53ee('0x3c')][_0x53ee('0xb')](this)),_0xc2ceda['reversed']&&_0x156289[_0x53ee('0x38')](_0x53ee('0x9'),this['handleListReversedCommand'][_0x53ee('0xb')](this)),_0xc2ceda[_0x53ee('0x1a')]&&_0x156289['enableCommand'](_0x53ee('0x3'),this[_0x53ee('0x2d')][_0x53ee('0xb')](this)),_0x156289[_0x53ee('0x11')][_0x53ee('0x3b')](this[_0x53ee('0x39')]['bind'](this));}[_0x53ee('0x3c')](_0x225afa,_0x1847ca={}){const _0x402971=this['editor'][_0x53ee('0x27')][_0x53ee('0x1f')](_0x53ee('0x1')),_0x6a2e22=this['_getSuggestionBlocksForListStyle']();this['editor'][_0x53ee('0x3a')][_0x53ee('0x32')](()=>{_0x402971[_0x53ee('0x2c')](_0x6a2e22,{'commandName':_0x53ee('0x22'),'commandParams':[{'type':_0x1847ca[_0x53ee('0x10')]}],'formatGroupId':_0x53ee('0x22')});});}[_0x53ee('0x2')](_0x338961,_0x56e3ad={}){const _0x4af592=this['editor'][_0x53ee('0x27')][_0x53ee('0x1f')](_0x53ee('0x1')),_0x2b3232=this['_getSuggestionBlocks'](_0x4db60e=>_0x4db60e['is'](_0x53ee('0x34'),'listItem')&&_0x53ee('0x5')===_0x4db60e[_0x53ee('0x37')](_0x53ee('0x16')));if(_0x2b3232[_0x53ee('0x2e')]<0x1)return;const _0x48be86=_0x2b3232[_0x53ee('0x25')](_0x17eb8c=>this[_0x53ee('0xf')][_0x53ee('0x3a')][_0x53ee('0x18')](this[_0x53ee('0xf')][_0x53ee('0x3a')]['createPositionAt'](_0x17eb8c,_0x53ee('0x2b')),this['editor'][_0x53ee('0x3a')][_0x53ee('0x31')](_0x17eb8c,0x0)));this[_0x53ee('0xf')][_0x53ee('0x3a')]['change'](()=>{_0x4af592[_0x53ee('0x2c')](_0x48be86,{'commandName':_0x53ee('0x9'),'commandParams':[{'reversed':_0x56e3ad[_0x53ee('0x13')]}],'formatGroupId':_0x53ee('0x9')});});}['handleListStartCommand'](_0x32e7d5,_0x5139d5={}){const _0xb170c9=this['editor'][_0x53ee('0x27')][_0x53ee('0x1f')]('TrackChangesEditing'),_0x225b8e=this['_getSuggestionBlocks'](_0x11db0f=>_0x11db0f['is'](_0x53ee('0x34'),_0x53ee('0x35'))&&_0x53ee('0x5')===_0x11db0f[_0x53ee('0x37')](_0x53ee('0x16')));if(_0x225b8e[_0x53ee('0x2e')]<0x1)return;const _0x35cdbd=_0x225b8e[_0x53ee('0x25')](_0x3b9a36=>this[_0x53ee('0xf')][_0x53ee('0x3a')][_0x53ee('0x18')](this[_0x53ee('0xf')]['model']['createPositionAt'](_0x3b9a36,_0x53ee('0x2b')),this['editor'][_0x53ee('0x3a')][_0x53ee('0x31')](_0x3b9a36,0x0)));this[_0x53ee('0xf')][_0x53ee('0x3a')]['change'](()=>{_0xb170c9[_0x53ee('0x2c')](_0x35cdbd,{'commandName':_0x53ee('0x3'),'commandParams':[{'startIndex':_0x5139d5[_0x53ee('0x1a')]}],'formatGroupId':_0x53ee('0x3')});});}[_0x53ee('0x39')](_0x828681){if(_0x53ee('0x14')!=_0x828681['type']&&_0x53ee('0xc')!=_0x828681[_0x53ee('0x10')])return;const _0x4341b3=this[_0x53ee('0xf')][_0x53ee('0x19')],{data:_0xe2b1fb}=_0x828681;if(!_0xe2b1fb)return;let _0x3eb42f,_0x5d4384;switch(_0xe2b1fb[_0x53ee('0x26')]){case'listStyle':_0x3eb42f='*Change\x20to:*\x20%0',_0x5d4384={'type':_0x53ee('0x33'),'content':_0x3d07de(_0x4341b3,_0x3eb42f,_0x3d07de(_0x4341b3,this[_0x53ee('0x36')](_0xe2b1fb[_0x53ee('0x20')][0x0]['type'])))};break;case'listReversed':_0x3eb42f=_0xe2b1fb[_0x53ee('0x20')][0x0]['reversed']?_0x53ee('0x2f'):_0x53ee('0x3d'),_0x5d4384={'type':_0x53ee('0x33'),'content':_0x3d07de(_0x4341b3,_0x3eb42f)};break;case _0x53ee('0x3'):_0x3eb42f=_0x53ee('0x17'),_0x5d4384={'type':_0x53ee('0x33'),'content':_0x3d07de(_0x4341b3,_0x3eb42f,_0xe2b1fb[_0x53ee('0x20')][0x0]['startIndex'])};}return _0x5d4384;}['_getSuggestionBlocksForListStyle'](){var _0x1a6157,_0x4c4018,_0xb6d36a,_0x3a08af;const _0x487d07=this[_0x53ee('0xf')][_0x53ee('0x27')]['get'](_0x53ee('0x23'));let _0x18cc45=Array[_0x53ee('0x1b')](this[_0x53ee('0xf')][_0x53ee('0x3a')][_0x53ee('0x1c')][_0x53ee('0x1e')]['getSelectedBlocks']());return(null===(_0x1a6157=_0x18cc45[0x0])||void 0x0===_0x1a6157?void 0x0:_0x1a6157['is'](_0x53ee('0x34'),_0x53ee('0x35')))&&_0x18cc45[_0x53ee('0x28')](..._0x487d07[_0x53ee('0x30')](this['editor']['model'][_0x53ee('0x1c')]['selection'][_0x53ee('0x2a')](),_0x53ee('0x4'))),(null===(_0x4c4018=_0x18cc45[_0x18cc45[_0x53ee('0x2e')]-0x1])||void 0x0===_0x4c4018?void 0x0:_0x4c4018['is'](_0x53ee('0x34'),_0x53ee('0x35')))&&_0x18cc45[_0x53ee('0x24')](..._0x487d07[_0x53ee('0x30')](this[_0x53ee('0xf')]['model']['document']['selection'][_0x53ee('0x3e')](),'forward')),_0x18cc45=[...new Set(_0x18cc45)],(null===(_0x3a08af=null===(_0xb6d36a=this[_0x53ee('0xf')][_0x53ee('0x3a')][_0x53ee('0x1c')][_0x53ee('0x1e')][_0x53ee('0x2a')]())||void 0x0===_0xb6d36a?void 0x0:_0xb6d36a[_0x53ee('0x8')])||void 0x0===_0x3a08af?void 0x0:_0x3a08af['is'](_0x53ee('0x34'),'listItem'))&&(_0x18cc45=_0x18cc45[_0x53ee('0x6')](_0x179237=>_0x179237['is'](_0x53ee('0x34'),_0x53ee('0x35')))),_0x18cc45;}['_getSuggestionBlocks'](_0x411ae0){const _0x26b653=this[_0x53ee('0xf')][_0x53ee('0x27')][_0x53ee('0x1f')]('ListUtils');let _0x1835e2=Array[_0x53ee('0x1b')](this[_0x53ee('0xf')][_0x53ee('0x3a')][_0x53ee('0x1c')]['selection'][_0x53ee('0x15')]())['filter'](_0x411ae0)['map'](_0x1a9436=>{const _0x2f7dca=this[_0x53ee('0xf')]['model']['createPositionAt'](_0x1a9436,0x0);return[..._0x26b653[_0x53ee('0x30')](_0x2f7dca,_0x53ee('0x4')),..._0x26b653[_0x53ee('0x30')](_0x2f7dca,'forward')];})['flat']();return _0x1835e2=[...new Set(_0x1835e2)],_0x1835e2;}[_0x53ee('0x36')](_0x1ca24c){return _0x53ee('0x21')+this[_0x53ee('0xf')][_0x53ee('0x27')]['get'](_0x53ee('0x23'))['getListTypeFromListStyleType'](_0x1ca24c)[_0x53ee('0x12')]()+_0x53ee('0x0')+_0x1ca24c[_0x53ee('0x12')]()[_0x53ee('0x29')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2760=['for','locale','showSuggestionHighlights','editor','registerElementLabel','attribute:url:media','data','afterInit','high','stop','plugins','_descriptionFactory','has','ELEMENT_MEDIA','TrackChangesEditing','div','createEmptyElement','mediaEmbed','options','media','MediaEmbedEditing','elementToElement','dataDowncast','enableCommand','downcastDispatcher'];(function(_0x45cc8c,_0x2760a4){const _0x4f6269=function(_0x1c8eca){while(--_0x1c8eca){_0x45cc8c['push'](_0x45cc8c['shift']());}};_0x4f6269(++_0x2760a4);}(_0x2760,0x189));const _0x4f62=function(_0x45cc8c,_0x2760a4){_0x45cc8c=_0x45cc8c-0x0;let _0x4f6269=_0x2760[_0x45cc8c];return _0x4f6269;};import{Plugin as _0x4b66b7}from'ckeditor5/src/core';import{getTranslation as _0x1bfb1e}from'../utils/common-translations';export default class ht extends _0x4b66b7{[_0x4f62('0xe')](){const _0x4f4c7d=this[_0x4f62('0xa')];if(!_0x4f4c7d['plugins'][_0x4f62('0x13')](_0x4f62('0x2')))return;const _0x1be8fb=_0x4f4c7d[_0x4f62('0x11')]['get'](_0x4f62('0x15')),_0x2c87cd=_0x4f4c7d[_0x4f62('0x8')];_0x1be8fb[_0x4f62('0x5')](_0x4f62('0x18')),_0x1be8fb[_0x4f62('0x12')][_0x4f62('0xb')]('media',_0x92f22=>_0x1bfb1e(_0x2c87cd,_0x4f62('0x14'),_0x92f22)),_0x4f4c7d['conversion'][_0x4f62('0x7')](_0x4f62('0x4'))[_0x4f62('0x3')]({'model':_0x4f62('0x1'),'view':(_0xd59a5c,{writer:_0x222a4e,options:_0xdec71a})=>{if(_0xdec71a[_0x4f62('0x9')])return _0x222a4e[_0x4f62('0x17')](_0x4f62('0x16'));},'converterPriority':_0x4f62('0xf')}),_0x4f4c7d[_0x4f62('0xd')][_0x4f62('0x6')]['on'](_0x4f62('0xc'),(_0x5847e2,_0x11d9fb,_0x2f3d1d)=>{_0x2f3d1d[_0x4f62('0x0')][_0x4f62('0x9')]&&_0x5847e2[_0x4f62('0x10')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15b2=['enableCommand','MentionEditing','afterInit','editor','TrackChangesEditing','has','plugins'];(function(_0x5a8e90,_0x15b28a){const _0x20a46f=function(_0x16d972){while(--_0x16d972){_0x5a8e90['push'](_0x5a8e90['shift']());}};_0x20a46f(++_0x15b28a);}(_0x15b2,0x1e0));const _0x20a4=function(_0x5a8e90,_0x15b28a){_0x5a8e90=_0x5a8e90-0x0;let _0x20a46f=_0x15b2[_0x5a8e90];return _0x20a46f;};import{Plugin as _0x5a108d}from'ckeditor5/src/core';export default class ft extends _0x5a108d{[_0x20a4('0x5')](){const _0x361e19=this[_0x20a4('0x6')];_0x361e19[_0x20a4('0x2')][_0x20a4('0x1')](_0x20a4('0x4'))&&_0x361e19[_0x20a4('0x2')]['get'](_0x20a4('0x0'))[_0x20a4('0x3')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20d6=['plugins','registerElementLabel','TrackChangesEditing','ELEMENT_PAGE_BREAK','PageBreakEditing','afterInit','pageBreak','get','locale','_descriptionFactory'];(function(_0x570f06,_0x20d6cd){const _0x37d8fb=function(_0x2bbe6d){while(--_0x2bbe6d){_0x570f06['push'](_0x570f06['shift']());}};_0x37d8fb(++_0x20d6cd);}(_0x20d6,0x1d2));const _0x37d8=function(_0x570f06,_0x20d6cd){_0x570f06=_0x570f06-0x0;let _0x37d8fb=_0x20d6[_0x570f06];return _0x37d8fb;};import{Plugin as _0x460b7a}from'ckeditor5/src/core';import{getTranslation as _0x2b7c6e}from'../utils/common-translations';export default class gt extends _0x460b7a{[_0x37d8('0x9')](){const _0x51eafd=this['editor'];if(!_0x51eafd[_0x37d8('0x4')]['has'](_0x37d8('0x8')))return;_0x51eafd[_0x37d8('0x4')][_0x37d8('0x1')](_0x37d8('0x6'))['enableCommand'](_0x37d8('0x0'));const _0x43c33e=_0x51eafd[_0x37d8('0x4')][_0x37d8('0x1')](_0x37d8('0x6')),_0x2ff586=_0x51eafd[_0x37d8('0x2')];_0x43c33e[_0x37d8('0x3')][_0x37d8('0x5')](_0x37d8('0x0'),_0x2e9c3f=>_0x2b7c6e(_0x2ff586,_0x37d8('0x7'),_0x2e9c3f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x290d=['options','$text','insertParagraph','commandName','getItemLabel','ck-suggestion-marker-split','showSuggestionHighlights','_descriptionFactory','type','ck-suggestion-marker--active','includes','markerRange','Paragraph','enableCommand','has','highest','get','plugins','end','ELEMENT_PARAGRAPH','editor','markerName','addMarker:suggestion:insertion','formatBlock','TrackChangesEditing','bindElementToMarker','checkChild','format','insert','registerDescriptionCallback','consumable','_registerLegacyDescription','_enableDefaultAttributesIntegration','createUIElement','downcastDispatcher','consume','writer','addClass','span','nodeAfter','afterInit','data','getFirstRange','paragraph','model','locale','insertion','toViewPosition','isTouching','schema','activeMarkers','isLimit','start'];(function(_0x6d7806,_0x290dee){const _0x3a3493=function(_0x29ddaf){while(--_0x29ddaf){_0x6d7806['push'](_0x6d7806['shift']());}};_0x3a3493(++_0x290dee);}(_0x290d,0x80));const _0x3a34=function(_0x6d7806,_0x290dee){_0x6d7806=_0x6d7806-0x0;let _0x3a3493=_0x290d[_0x6d7806];return _0x3a3493;};import{Plugin as _0x105e61}from'ckeditor5/src/core';import{getTranslation as _0xa85de1}from'../utils/common-translations';export default class lt extends _0x105e61{[_0x3a34('0x12')](){const _0x4db47d=this['editor'];if(!_0x4db47d[_0x3a34('0x30')][_0x3a34('0x2d')](_0x3a34('0x2b')))return;const _0xfa62b7=_0x4db47d['locale'],_0x931300=_0x4db47d[_0x3a34('0x30')][_0x3a34('0x2f')](_0x3a34('0x2'));_0x931300[_0x3a34('0x26')]['registerElementLabel'](_0x3a34('0x15'),_0x1958c1=>_0xa85de1(_0xfa62b7,_0x3a34('0x32'),_0x1958c1)),_0x931300[_0x3a34('0xa')]('paragraph'),_0x931300[_0x3a34('0x2c')](_0x3a34('0x21')),_0x4db47d['editing'][_0x3a34('0xc')]['on'](_0x3a34('0x0'),nr(_0x4db47d),{'priority':_0x3a34('0x2e')}),_0x4db47d[_0x3a34('0x13')][_0x3a34('0xc')]['on'](_0x3a34('0x0'),(_0xfc61d6,_0x25f9f0,_0x3acdbe)=>{_0x3acdbe[_0x3a34('0x1f')][_0x3a34('0x25')]&&nr(_0x4db47d,{'showActiveMarker':!0x1})(_0xfc61d6,_0x25f9f0,_0x3acdbe);},{'priority':_0x3a34('0x2e')});const _0x345ae6=_0x931300[_0x3a34('0x26')];_0x345ae6[_0x3a34('0x7')](_0x2f4e1c=>{if(_0x3a34('0x18')!==_0x2f4e1c[_0x3a34('0x27')])return;const {start:_0x5b8713,end:_0x334636}=_0x2f4e1c[_0x3a34('0x14')]();if(!_0x5b8713[_0x3a34('0x1a')](_0x334636)||!_0x5b8713[_0x3a34('0x11')])return;const _0x2e26ac=_0x4db47d[_0x3a34('0x16')][_0x3a34('0x1b')],_0x3f6f87=_0x5b8713['nodeAfter'];return _0x2e26ac['isBlock'](_0x3f6f87)&&!_0x2e26ac['isLimit'](_0x3f6f87)&&_0x2e26ac[_0x3a34('0x4')](_0x3f6f87,_0x3a34('0x20'))?{'type':_0x3a34('0x18'),'content':_0xa85de1(_0xfa62b7,'*Insert:*\x20%0',_0x345ae6[_0x3a34('0x23')](_0x3f6f87,0x1))}:void 0x0;}),this[_0x3a34('0x9')]();}[_0x3a34('0x9')](){const _0xa59420=this[_0x3a34('0x33')],_0x1707ff=_0xa59420[_0x3a34('0x17')];_0xa59420[_0x3a34('0x30')]['get'](_0x3a34('0x2'))['_descriptionFactory'][_0x3a34('0x7')](_0x3d5a71=>{if(_0x3a34('0x1')!=_0x3d5a71[_0x3a34('0x27')])return;const {data:_0x890a58}=_0x3d5a71;return _0x890a58&&_0x3a34('0x15')==_0x890a58[_0x3a34('0x22')]?{'type':_0x3a34('0x5'),'content':_0xa85de1(_0x1707ff,'*Change\x20to:*\x20%0',_0xa85de1(_0x1707ff,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2bb2a9,{showActiveMarker:_0x23993a=!0x0}={}){return(_0x160744,_0x25b516,_0x4d5c07)=>{const _0x1af720=_0x2bb2a9[_0x3a34('0x30')]['get']('TrackChangesEditing'),_0x166766=_0x25b516[_0x3a34('0x2a')][_0x3a34('0x1e')],_0x269e8a=_0x25b516[_0x3a34('0x2a')][_0x3a34('0x31')],_0x43bdff=_0x2bb2a9[_0x3a34('0x16')][_0x3a34('0x1b')];if(!_0x166766[_0x3a34('0x1a')](_0x269e8a)||!_0x166766['nodeAfter'])return;const _0x37e682=_0x166766[_0x3a34('0x11')];if(_0x43bdff['isBlock'](_0x37e682)&&!_0x43bdff[_0x3a34('0x1d')](_0x37e682)&&_0x43bdff[_0x3a34('0x4')](_0x37e682,_0x3a34('0x20'))){if(!_0x4d5c07[_0x3a34('0x8')][_0x3a34('0xd')](_0x25b516[_0x3a34('0x2a')],_0x160744['name']))return;const _0x59149b=_0x4d5c07[_0x3a34('0xe')][_0x3a34('0xb')](_0x3a34('0x10'),{'class':_0x3a34('0x24')}),_0x16157e=_0x4d5c07['mapper'][_0x3a34('0x19')](_0x269e8a);_0x23993a&&_0x1af720[_0x3a34('0x1c')][_0x3a34('0x29')](_0x25b516['markerName'])&&_0x4d5c07[_0x3a34('0xe')][_0x3a34('0xf')](_0x3a34('0x28'),_0x59149b),_0x4d5c07[_0x3a34('0xe')][_0x3a34('0x6')](_0x16157e,_0x59149b),_0x4d5c07['mapper'][_0x3a34('0x3')](_0x59149b,_0x25b516[_0x3a34('0x34')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5042=['afterInit','has','locale','_enableDefaultAttributesIntegration','commandName','_registerLegacyDescription','RemoveFormatEditing','registerDescriptionCallback','plugins','get','editor','formatBlock','_descriptionFactory','removeFormat','type','TrackChangesEditing'];(function(_0x5814b0,_0x5042c0){const _0x2d4e57=function(_0xc1f33a){while(--_0xc1f33a){_0x5814b0['push'](_0x5814b0['shift']());}};_0x2d4e57(++_0x5042c0);}(_0x5042,0x1d6));const _0x2d4e=function(_0x5814b0,_0x5042c0){_0x5814b0=_0x5814b0-0x0;let _0x2d4e57=_0x5042[_0x5814b0];return _0x2d4e57;};import{Plugin as _0x200dc1}from'ckeditor5/src/core';import{getTranslation as _0x4e14cd}from'../utils/common-translations';export default class mt extends _0x200dc1{[_0x2d4e('0xa')](){const _0x1108a3=this[_0x2d4e('0x4')];if(!_0x1108a3['plugins'][_0x2d4e('0xb')](_0x2d4e('0x0')))return;_0x1108a3[_0x2d4e('0x2')][_0x2d4e('0x3')](_0x2d4e('0x9'))[_0x2d4e('0xd')](_0x2d4e('0x7')),this[_0x2d4e('0xf')]();}[_0x2d4e('0xf')](){const _0x20c8af=this[_0x2d4e('0x4')];_0x20c8af[_0x2d4e('0x2')]['get']('TrackChangesEditing')[_0x2d4e('0x6')][_0x2d4e('0x1')](_0xf9a011=>{if(_0x2d4e('0x5')!=_0xf9a011[_0x2d4e('0x8')]&&'formatInline'!=_0xf9a011[_0x2d4e('0x8')])return;const {data:_0x2f70a3}=_0xf9a011;return _0x2f70a3&&_0x2d4e('0x7')==_0x2f70a3[_0x2d4e('0xe')]?{'type':'format','content':_0x4e14cd(_0x20c8af[_0x2d4e('0xc')],'*Remove\x20all\x20formatting*')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d20=['discardSelectedSuggestions','afterInit','acceptSuggestion','RestrictedEditingModeEditing','goToNextRestrictedEditingException','TrackChangesEditing','acceptAllSuggestions','enableCommand','trackChanges','plugins','get','goToPreviousRestrictedEditingException','discardAllSuggestions','discardSuggestion','has','acceptSelectedSuggestions'];(function(_0x251bfa,_0x1d2015){const _0x81cc79=function(_0x538bd9){while(--_0x538bd9){_0x251bfa['push'](_0x251bfa['shift']());}};_0x81cc79(++_0x1d2015);}(_0x1d20,0x100));const _0x81cc=function(_0x251bfa,_0x1d2015){_0x251bfa=_0x251bfa-0x0;let _0x81cc79=_0x1d20[_0x251bfa];return _0x81cc79;};import{Plugin as _0x417234}from'ckeditor5/src/core';export default class dt extends _0x417234{[_0x81cc('0x1')](){const _0x16caaf=this['editor'];if(!_0x16caaf[_0x81cc('0x9')][_0x81cc('0xe')](_0x81cc('0x3')))return;const _0x40da1a=_0x16caaf['plugins'][_0x81cc('0xa')](_0x81cc('0x5'));_0x40da1a[_0x81cc('0x7')](_0x81cc('0xb')),_0x40da1a[_0x81cc('0x7')](_0x81cc('0x4'));const _0x5961b4=_0x16caaf[_0x81cc('0x9')][_0x81cc('0xa')](_0x81cc('0x3'));_0x5961b4[_0x81cc('0x7')](_0x81cc('0x8')),_0x5961b4[_0x81cc('0x7')](_0x81cc('0x2')),_0x5961b4[_0x81cc('0x7')](_0x81cc('0xd')),_0x5961b4[_0x81cc('0x7')](_0x81cc('0x6')),_0x5961b4[_0x81cc('0x7')](_0x81cc('0xc')),_0x5961b4['enableCommand'](_0x81cc('0xf')),_0x5961b4[_0x81cc('0x7')](_0x81cc('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1268=['bindElementToMarker','createUIElement','merge','_descriptionFactory','TrackChangesEditing','locale','ck-suggestion-marker--active','span','createPositionBefore','shiftEnter','high','split','insert','name','markerRange','activeMarkers','test','downcastDispatcher','addMarker:suggestion:insertion','getItems','softBreak','addMarker:suggestion:deletion','enableCommand','plugins','model','toViewPosition','get','options','editing','deletion','mapper','markerName','addMarker:suggestion','init','data','addClass','registerElementLabel'];(function(_0x1ccc6a,_0x1268a1){const _0x1c3031=function(_0x4dbeee){while(--_0x4dbeee){_0x1ccc6a['push'](_0x1ccc6a['shift']());}};_0x1c3031(++_0x1268a1);}(_0x1268,0xdd));const _0x1c30=function(_0x1ccc6a,_0x1268a1){_0x1ccc6a=_0x1ccc6a-0x0;let _0x1c3031=_0x1268[_0x1ccc6a];return _0x1c3031;};import{Plugin as _0x2822c5}from'ckeditor5/src/core';import{ShiftEnter as _0x52fd3f}from'ckeditor5/src/enter';import{getTranslation as _0x386787}from'../utils/common-translations';export default class pt extends _0x2822c5{static get['requires'](){return[_0x52fd3f];}[_0x1c30('0x22')](){const _0x24c171=this['editor'],_0x1b7f0e=_0x24c171[_0x1c30('0x18')][_0x1c30('0x1b')]('TrackChangesEditing');_0x1b7f0e[_0x1c30('0x17')](_0x1c30('0xa')),_0x24c171[_0x1c30('0x1d')][_0x1c30('0x12')]['on'](_0x1c30('0x13'),re(_0x24c171),{'priority':_0x1c30('0xb')}),_0x24c171[_0x1c30('0x1d')][_0x1c30('0x12')]['on'](_0x1c30('0x16'),re(_0x24c171),{'priority':_0x1c30('0xb')}),_0x24c171[_0x1c30('0x23')][_0x1c30('0x12')]['on'](_0x1c30('0x21'),(_0x58dbc9,_0x13eeac,_0x43adcc)=>{_0x43adcc[_0x1c30('0x1c')]['showSuggestionHighlights']&&re(_0x24c171,{'showActiveMarker':!0x1})(_0x58dbc9,_0x13eeac,_0x43adcc);}),_0x1b7f0e[_0x1c30('0x4')][_0x1c30('0x0')]('softBreak',_0x4b15ad=>_0x386787(_0x24c171[_0x1c30('0x6')],'ELEMENT_LINE_BREAK',_0x4b15ad));}}function re(_0x5a4ba3,{showActiveMarker:_0x367d1d=!0x0}={}){return(_0x1b3482,_0xdaaae1,_0x57dde0)=>{const _0x155234=_0x5a4ba3['plugins'][_0x1c30('0x1b')](_0x1c30('0x5'));if(!_0x57dde0['consumable'][_0x1c30('0x11')](_0xdaaae1[_0x1c30('0xf')],_0x1b3482[_0x1c30('0xe')]))return;const _0x2780ac=_0x5a4ba3[_0x1c30('0x19')];for(const _0x2dd0eb of _0xdaaae1[_0x1c30('0xf')][_0x1c30('0x14')]()){if(!_0x2dd0eb['is']('element',_0x1c30('0x15')))continue;const _0x580592=_0x1c30('0x1e')==_0xdaaae1[_0x1c30('0x20')][_0x1c30('0xc')](':')[0x1]?_0x1c30('0x3'):'split',_0x1ffac5=_0x57dde0['writer'][_0x1c30('0x2')](_0x1c30('0x8'),{'class':'ck-suggestion-marker-'+_0x580592}),_0x57e8a7=_0x57dde0[_0x1c30('0x1f')][_0x1c30('0x1a')](_0x2780ac[_0x1c30('0x9')](_0x2dd0eb));_0x367d1d&&_0x155234[_0x1c30('0x10')]['includes'](_0xdaaae1['markerName'])&&_0x57dde0['writer'][_0x1c30('0x24')](_0x1c30('0x7'),_0x1ffac5),_0x57dde0['writer'][_0x1c30('0xd')](_0x57e8a7,_0x1ffac5),_0x57dde0[_0x1c30('0x1f')][_0x1c30('0x1')](_0x1ffac5,_0xdaaae1[_0x1c30('0x20')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2284=['FORMAT_RESTRICTED_DISABLED','has','format','plugins','registerDescriptionCallback','selection','change','commands','editor','type','StandardEditingModeEditing','from','get','restrictedEditingException','afterInit','document','commandParams','commandName','forceValue','enableCommand','model','formatInline','formatBlock','getRanges','_descriptionFactory','value','locale'];(function(_0x141f5d,_0x2284f1){const _0x5d8974=function(_0x528546){while(--_0x528546){_0x141f5d['push'](_0x141f5d['shift']());}};_0x5d8974(++_0x2284f1);}(_0x2284,0xb8));const _0x5d89=function(_0x141f5d,_0x2284f1){_0x141f5d=_0x141f5d-0x0;let _0x5d8974=_0x2284[_0x141f5d];return _0x5d8974;};import{Plugin as _0x4523e4}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3d465d}from'./utils';import{getTranslation as _0x529454}from'../utils/common-translations';export default class kt extends _0x4523e4{[_0x5d89('0x13')](){const _0x2eebf6=this[_0x5d89('0xd')],_0x3d926f=_0x2eebf6[_0x5d89('0x19')],_0x102322=_0x2eebf6[_0x5d89('0x4')];if(!_0x2eebf6[_0x5d89('0x8')][_0x5d89('0x6')](_0x5d89('0xf')))return;const _0x59bb74=_0x2eebf6[_0x5d89('0x8')][_0x5d89('0x11')]('TrackChangesEditing'),_0x54e327=_0x5d89('0x12'),_0x4c955d=_0x2eebf6[_0x5d89('0xc')]['get'](_0x54e327);_0x59bb74[_0x5d89('0x18')](_0x54e327,(_0x1a9fbd,_0x4e997f={})=>{const _0x5af25c=_0x3d926f[_0x5d89('0x14')][_0x5d89('0xa')];if(_0x5af25c['isCollapsed'])return void _0x1a9fbd(_0x4e997f);const _0x28cbd9=void 0x0!==_0x4e997f[_0x5d89('0x17')]?_0x4e997f[_0x5d89('0x17')]:!_0x4c955d[_0x5d89('0x3')];_0x3d926f[_0x5d89('0xb')](()=>{const _0x2104bd=Array[_0x5d89('0x10')](_0x5af25c[_0x5d89('0x1')]());for(const _0x158db5 of _0x2104bd){const _0x46b31f=_0x28cbd9?[_0x158db5]:_0x3d465d(_0x54e327,_0x158db5,_0x3d926f);for(const _0x132cbe of _0x46b31f)_0x59bb74['markInlineFormat'](_0x132cbe,{'commandName':_0x54e327,'commandParams':[{'forceValue':_0x28cbd9}]});}});}),_0x59bb74[_0x5d89('0x2')][_0x5d89('0x9')](_0x2bdd63=>{if(_0x5d89('0x0')!=_0x2bdd63[_0x5d89('0xe')]&&_0x5d89('0x1a')!=_0x2bdd63[_0x5d89('0xe')])return;const {data:_0x137ce4}=_0x2bdd63;return _0x137ce4&&_0x137ce4[_0x5d89('0x16')]==_0x54e327?_0x137ce4[_0x5d89('0x15')][0x0]['forceValue']?{'type':_0x5d89('0x7'),'content':_0x529454(_0x102322,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x5d89('0x7'),'content':_0x529454(_0x102322,_0x5d89('0x5'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7601=['style','config','block','definitions','inline','type','formatBlock','plugins','_enableDefaultAttributesIntegration','registerDescriptionCallback','afterInit','ghsAttributes','_registerLegacyDescription','FORMAT_STYLE','StyleUtils','*Remove\x20format:*\x20%0','has','registerAttributeLabel','normalizeConfig','editor','_registerBlockAttribute','_descriptionFactory','forceValue','get','add','element','toLowerCase','*Set\x20format:*\x20%0','commandParams','format','TrackChangesEditing','_registerInlineAttribute'];(function(_0x6623f7,_0x760197){const _0x325919=function(_0x2e66a5){while(--_0x2e66a5){_0x6623f7['push'](_0x6623f7['shift']());}};_0x325919(++_0x760197);}(_0x7601,0x7e));const _0x3259=function(_0x6623f7,_0x760197){_0x6623f7=_0x6623f7-0x0;let _0x325919=_0x7601[_0x6623f7];return _0x325919;};import{Plugin as _0x276bff}from'ckeditor5/src/core';import{getTranslation as _0x5b8100}from'../utils/common-translations';export default class bt extends _0x276bff{[_0x3259('0xc')](){const _0x118890=this['editor'];if(!_0x118890[_0x3259('0x9')][_0x3259('0x12')]('Style')||!_0x118890[_0x3259('0x9')][_0x3259('0x12')]('DataSchema'))return;const _0x28317a=_0x118890[_0x3259('0x9')][_0x3259('0x19')](_0x3259('0x0')),_0x260688=_0x118890['locale'],_0x55850f=_0x118890[_0x3259('0x3')][_0x3259('0x19')](_0x3259('0x2')),_0x2d9381=_0x118890[_0x3259('0x9')]['get']('GeneralHtmlSupport'),_0x14783e=_0x118890['plugins'][_0x3259('0x19')](_0x3259('0x10'))[_0x3259('0x14')](_0x118890[_0x3259('0x9')]['get']('DataSchema'),_0x55850f[_0x3259('0x5')]);_0x28317a[_0x3259('0xa')](_0x3259('0x2'));const _0x2c39e8=new Set();for(const _0x12fff6 of _0x14783e[_0x3259('0x4')]){const _0x19b2ff=_0x2d9381['getGhsAttributeNameForElement'](_0x12fff6['element']);_0x2c39e8[_0x3259('0x1a')](_0x19b2ff);}const _0x2400e7=new Set();for(const _0x4649ee of _0x14783e[_0x3259('0x6')]){const _0x21cc71=_0x2d9381['getGhsAttributeNameForElement'](_0x4649ee[_0x3259('0x1b')]);_0x2400e7[_0x3259('0x1a')](_0x21cc71);for(const _0x31093c of _0x4649ee[_0x3259('0xd')])_0x2400e7['add'](_0x31093c);}for(const _0x401fef of _0x2c39e8)_0x28317a[_0x3259('0x16')](_0x401fef),_0x28317a[_0x3259('0x17')][_0x3259('0x13')](_0x401fef,_0x5b8100(_0x260688,'FORMAT_STYLE'));for(const _0x4f9242 of _0x2400e7)_0x28317a[_0x3259('0x1')](_0x4f9242),_0x28317a['_descriptionFactory'][_0x3259('0x13')](_0x4f9242,_0x5b8100(_0x260688,_0x3259('0xf')));this[_0x3259('0xe')]();}[_0x3259('0xe')](){const _0x17d509=this[_0x3259('0x15')],_0x392e1b=_0x17d509['locale'];_0x17d509['plugins']['get'](_0x3259('0x0'))[_0x3259('0x17')][_0x3259('0xb')](_0x470982=>{if(_0x3259('0x8')!=_0x470982['type']&&'formatInline'!=_0x470982[_0x3259('0x7')])return;const {data:_0xa6ff8d}=_0x470982;return _0xa6ff8d&&_0x3259('0x2')===_0xa6ff8d['commandName']?_0xa6ff8d[_0x3259('0x1e')][0x0][_0x3259('0x18')]?{'type':_0x3259('0x1f'),'content':_0x5b8100(_0x392e1b,_0x3259('0x1d'),_0xa6ff8d[_0x3259('0x1e')][0x0]['styleName'][_0x3259('0x1c')]())}:{'type':_0x3259('0x1f'),'content':_0x5b8100(_0x392e1b,_0x3259('0x11'),_0xa6ff8d[_0x3259('0x1e')][0x0]['styleName'][_0x3259('0x1c')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3dcc=['createPositionAt','writer','root','commands','TableEditing','item','plugins','_tablePostFixingSubtypes','differ','ELEMENT_TABLE_ROW','editor','nodeAfter','isArray','ELEMENT_TABLE_ROW_WITH_TEXT','registerCustomCallback','tableColumn','hasAttribute','ELEMENT_TABLE_COLUMN_WITH_TEXT','_suggestionFactory','insert','ELEMENT_TABLE_WITH_TEXT','oldRange','data','registerDescriptionCallback','getRowIndexes','tableRow','document','get','insertion','afterInit','toViewElement','insertTableRowAbove','isTouching','last','classes','getColumnIndexes','type','getCellLocation','TrackChangesEditing','insertTable','showSuggestionHighlights','change','_descriptionFactory','downcastDispatcher','name','removeClass','insertTableColumnLeft','insertTableRowBelow','enqueueChange','fromRange','table','substr','selection','getChangedMarkers','removeTableRow','markMultiRangeInsertion','start','end','refresh','locale','enableCommand','findAncestor','model','ELEMENT_TABLE_COLUMN','forceValue','registerPostFixer','min','getSelectionAffectedTableCells','registerElementLabel','getAttribute','options','selectTableColumn','first','map','markMultiRangeDeletion','selectTableRow','isIntersectingWithRange','join','discard','$textProxy','has','setSelection','push','filter','*Insert:*\x20%0','maxRow','insertTableColumnRight','getSuggestion','span','length','getFirstRange','startsWith','rootName','MAX_SAFE_INTEGER','maxColumn','colspan','rowspan','highest','TableUtils','from','accept','change:data','element','tablePaste','tableCell','subType','isEqual','isInContent','$graveyard','values','removeTableColumn','createTableWalker','_setupColumnsRowsFixing','execute','minRow','*Remove:*\x20%0','getRanges','_getSuggestionCoords','cell','createRangeOn','createRangeIn','deletion','_tableSuggestions','low','detach','getItems','MIN_SAFE_INTEGER'];(function(_0x59d24c,_0x3dccf0){const _0x15373b=function(_0x15f683){while(--_0x15f683){_0x59d24c['push'](_0x59d24c['shift']());}};_0x15373b(++_0x3dccf0);}(_0x3dcc,0x1dd));const _0x1537=function(_0x59d24c,_0x3dccf0){_0x59d24c=_0x59d24c-0x0;let _0x15373b=_0x3dcc[_0x59d24c];return _0x15373b;};import{Plugin as _0x37e42f}from'ckeditor5/src/core';import{LiveRange as _0x278a3f}from'ckeditor5/src/engine';import{setHighlightHandling as _0x81ddcf}from'ckeditor5/src/widget';import{getTranslation as _0x34198e}from'../utils/common-translations';export default class wt extends _0x37e42f{constructor(_0x2c02e2){super(_0x2c02e2),this[_0x1537('0x26')]=[_0x1537('0x38'),_0x1537('0x2e')],this[_0x1537('0x1a')]=new Set();}[_0x1537('0x3c')](){const _0x41a2d8=this['editor'],_0x4a21da=_0x41a2d8['model'][_0x1537('0x39')]['selection'];if(!_0x41a2d8[_0x1537('0x25')][_0x1537('0x6f')](_0x1537('0x23')))return;const _0x196583=_0x41a2d8[_0x1537('0x5a')],_0x4eac52=_0x41a2d8[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x45')),_0x591792=_0x41a2d8[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x2'));_0x4eac52['_descriptionFactory'][_0x1537('0x63')](_0x1537('0x51'),_0x2db98e=>_0x34198e(_0x196583,'ELEMENT_TABLE',_0x2db98e)),this[_0x1537('0x10')](),_0x4eac52[_0x1537('0x5b')](_0x1537('0x46')),_0x4eac52['enableCommand'](_0x1537('0x6a')),_0x4eac52[_0x1537('0x5b')](_0x1537('0x66'));for(const _0x3b6c56 of[_0x1537('0x3e'),_0x1537('0x4e')]){const _0x39445b=_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x3b6c56);_0x4eac52['enableCommand'](_0x3b6c56,_0x1fbfa7=>{_0x41a2d8['model'][_0x1537('0x48')](_0x59498b=>{_0x1fbfa7();const _0x632a04='above'===_0x39445b['order'],_0x3289d2=_0x591792[_0x1537('0x62')](_0x4a21da),_0x475541=_0x591792[_0x1537('0x37')](_0x3289d2),_0x174e63=_0x632a04?_0x475541['first']-0x1:_0x475541[_0x1537('0x40')]+0x1,_0x47cf64=_0x3289d2[0x0]['findAncestor'](_0x1537('0x51')),_0x8b3a5f=_0x591792['createTableWalker'](_0x47cf64,{'startRow':_0x174e63,'endRow':_0x174e63}),_0x1cc4fc=Array[_0x1537('0x3')](_0x8b3a5f)[_0x1537('0x68')](_0x577d09=>_0x59498b[_0x1537('0x17')](_0x577d09[_0x1537('0x16')]));_0x4eac52[_0x1537('0x56')](_0x1cc4fc,_0x1537('0x38'));});});}for(const _0x27bfb3 of[_0x1537('0x4d'),_0x1537('0x75')]){const _0x111984=_0x41a2d8['commands'][_0x1537('0x3a')](_0x27bfb3);_0x4eac52['enableCommand'](_0x27bfb3,_0x33e89a=>{_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x241660=>{_0x33e89a();const _0x461f69='left'===_0x111984['order'],_0x4b4286=_0x591792[_0x1537('0x62')](_0x4a21da),_0x1f720e=_0x591792[_0x1537('0x42')](_0x4b4286),_0x202638=_0x461f69?_0x1f720e['first']-0x1:_0x1f720e[_0x1537('0x40')]+0x1,_0x4fdb91=_0x4b4286[0x0]['findAncestor'](_0x1537('0x51')),_0x4e4088=_0x591792[_0x1537('0xf')](_0x4fdb91,{'startRow':0x0,'column':_0x202638,'includeAllSlots':!0x1}),_0x42cf11=Array[_0x1537('0x3')](_0x4e4088)[_0x1537('0x68')](_0x52331a=>_0x241660[_0x1537('0x17')](_0x52331a['cell']));_0x4eac52['markMultiRangeInsertion'](_0x42cf11,_0x1537('0x2e'));});});}for(const _0x4359b6 of[_0x1537('0x55'),_0x1537('0xe')]){const _0x22f06a=_0x4359b6[_0x1537('0x52')](0xb),_0x2576c1=_0x22f06a['toLowerCase'](),_0x245992=_0x2576c1[_0x1537('0x52')](0x0,0x3)+_0x1537('0x77'),_0x1beeb8=_0x1537('0x51')+_0x22f06a,_0x52da7c=_0x1537('0x61')+_0x22f06a,_0x25b1ee='max'+_0x22f06a;_0x4eac52[_0x1537('0x5b')](_0x4359b6,()=>{_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x5b7c43=>{const _0x4002cd=_0x591792[_0x1537('0x62')](_0x4a21da),_0x588928=_0x4002cd[0x0][_0x1537('0x5c')](_0x1537('0x51'));let _0xaf17d3;if(_0x1537('0x55')==_0x4359b6){const _0x42f1c1=_0x591792[_0x1537('0x37')](_0x4002cd);_0xaf17d3={'startRow':_0x42f1c1[_0x1537('0x67')],'endRow':_0x42f1c1[_0x1537('0x40')],'includeAllSlots':!0x0};}else{const _0x214893=_0x591792['getColumnIndexes'](_0x4002cd);_0xaf17d3={'startColumn':_0x214893[_0x1537('0x67')],'endColumn':_0x214893[_0x1537('0x40')],'includeAllSlots':!0x0};}const _0x2caadf=_0x591792['createTableWalker'](_0x588928,_0xaf17d3),_0x29ae04=Array[_0x1537('0x3')](_0x2caadf)[_0x1537('0x68')](({cell:_0x45cf65})=>_0x45cf65),_0x37f7fe=se(_0x29ae04[_0x1537('0x72')](_0x2d98ad=>_0x2d98ad[_0x1537('0x2f')](_0x245992))),_0x1282a2=se(_0x29ae04[_0x1537('0x72')](_0x391bbc=>!_0x391bbc['hasAttribute'](_0x245992)))[_0x1537('0x68')](_0x3bfba5=>_0x5b7c43[_0x1537('0x17')](_0x3bfba5)),_0x1d8daf=_0x4eac52[_0x1537('0x69')](_0x1282a2,_0x1beeb8);if(_0x1d8daf&&(_0x1537('0x38')==_0x1d8daf[_0x1537('0x9')]||'tableColumn'==_0x1d8daf[_0x1537('0x9')])){const _0x39113f=this[_0x1537('0x15')](_0x1d8daf);for(const _0x4027c6 of _0x37f7fe){const _0x3475a7=_0x5b7c43[_0x1537('0x17')](_0x4027c6),_0x34e2a0=_0x591792[_0x1537('0x44')](_0x4027c6),_0xbfadc1=_0x4027c6[_0x1537('0x64')](_0x245992)-0x1,_0x726d3c=_0x39113f[_0x52da7c],_0x229a0a=_0x39113f[_0x25b1ee];_0x726d3c<=_0x34e2a0[_0x2576c1]&&_0x34e2a0[_0x2576c1]+_0xbfadc1<=_0x229a0a&&_0x1d8daf['addRange'](_0x3475a7);}}});});}function _0x53a6f2(_0x4f9dbe){const _0x134d79=Array[_0x1537('0x3')](_0x4a21da[_0x1537('0x14')]())[_0x1537('0x68')](_0x1e3c70=>_0x278a3f[_0x1537('0x50')](_0x1e3c70));_0x41a2d8[_0x1537('0x5d')]['change'](_0x13d851=>{const _0x7d8060=_0x13d851['batch'];_0x4f9dbe=_0x4f9dbe[_0x1537('0x72')](_0xd3b5e4=>'$graveyard'!=_0xd3b5e4[_0x1537('0x21')][_0x1537('0x7b')]),_0x13d851['setSelection'](_0x4f9dbe),_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x1537('0x55'))[_0x1537('0x59')](),_0x41a2d8[_0x1537('0x11')](_0x1537('0x55'),{'forceDefaultExecution':!0x0}),_0x41a2d8[_0x1537('0x5d')][_0x1537('0x4f')](()=>{_0x41a2d8['model'][_0x1537('0x4f')](_0x7d8060,_0x326e17=>{const _0x1200cf=_0x134d79[_0x1537('0x72')](_0x30aab4=>_0x1537('0xc')!=_0x30aab4[_0x1537('0x21')]['rootName']);_0x1200cf[_0x1537('0x78')]>0x0&&_0x326e17['setSelection'](_0x1200cf);for(const _0x2745ed of _0x134d79)_0x2745ed[_0x1537('0x1c')]();});});});}function _0x4f5221(_0xe202e2){_0x41a2d8[_0x1537('0x5d')][_0x1537('0x48')](_0x20e603=>{const _0x11308d=Array[_0x1537('0x3')](_0x4a21da[_0x1537('0x14')]())[_0x1537('0x68')](_0x915c2a=>_0x278a3f['fromRange'](_0x915c2a)),_0x4fe1a5=[];for(const _0x14545b of _0xe202e2)for(const _0x3d639a of _0x14545b['getItems']({'shallow':!0x0}))_0x4fe1a5[_0x1537('0x71')](_0x3d639a);for(const _0x727149 of _0x4fe1a5)_0x1537('0xc')!=_0x727149['root']['rootName']&&(_0x20e603['setSelection'](_0x20e603[_0x1537('0x1f')](_0x727149,0x0)),_0x41a2d8[_0x1537('0x22')][_0x1537('0x3a')](_0x1537('0xe'))['refresh'](),_0x41a2d8['execute'](_0x1537('0xe'),{'forceDefaultExecution':!0x0}));const _0x4ddad3=_0x11308d['filter'](_0x41b588=>_0x1537('0xc')!=_0x41b588[_0x1537('0x21')][_0x1537('0x7b')]);_0x4ddad3[_0x1537('0x78')]>0x0&&_0x20e603[_0x1537('0x70')](_0x4ddad3);for(const _0xa6891f of _0x11308d)_0xa6891f[_0x1537('0x1c')]();});}function _0x45ea53(_0x4b5ee8,_0x49796d){return _0x49796d['every'](_0x4c4c32=>_0x4b5ee8['some'](_0x2eca32=>_0x2eca32[_0x1537('0x58')]['isEqual'](_0x4c4c32[_0x1537('0x57')])||_0x4c4c32[_0x1537('0x58')][_0x1537('0xa')](_0x2eca32[_0x1537('0x57')])));}function _0x57d5ad(_0x317087,_0x608ec0){return _0x317087['some'](_0x328eff=>_0x608ec0['some'](_0x3668a8=>_0x328eff[_0x1537('0x58')][_0x1537('0x3f')](_0x3668a8[_0x1537('0x57')])));}_0x41a2d8[_0x1537('0x35')][_0x1537('0x4a')]['on']('addMarker:suggestion',(_0x105f1a,_0x3c589b,_0x3a1c2c)=>{if(!_0x3a1c2c[_0x1537('0x65')][_0x1537('0x47')])return;const _0x377c3d=_0x3c589b[_0x1537('0x24')];if(!_0x377c3d)return;const _0x13e402=_0x3a1c2c['mapper'][_0x1537('0x3d')](_0x377c3d);function _0x17f383(_0x2bc2ff){return Array[_0x1537('0x2b')](_0x2bc2ff)?_0x2bc2ff:[_0x2bc2ff];}_0x13e402&&_0x1537('0x8')===_0x377c3d[_0x1537('0x4b')]&&_0x81ddcf(_0x13e402,_0x3a1c2c[_0x1537('0x20')],(_0x290673,_0x1a57e3,_0x128461)=>_0x128461['addClass'](_0x17f383(_0x1a57e3[_0x1537('0x41')]),_0x290673),(_0x540f2f,_0x2e413e,_0x40d441)=>_0x40d441[_0x1537('0x4c')](_0x17f383(_0x2e413e[_0x1537('0x41')]),_0x540f2f));},{'priority':_0x1537('0x1')}),_0x4eac52[_0x1537('0x49')]['registerDescriptionCallback'](_0x3ec928=>{if(_0x1537('0x3b')!=_0x3ec928[_0x1537('0x43')]&&_0x1537('0x19')!=_0x3ec928[_0x1537('0x43')])return;const _0x5889ad=_0x3ec928['getContainedElement']();if(null!=_0x5889ad&&_0x5889ad['is'](_0x1537('0x6'),_0x1537('0x51'))){if('insertion'==_0x3ec928[_0x1537('0x43')]){const _0x30d0d9=_0x3ec928['getItems']()[_0x1537('0x72')](_0x5ee355=>_0x5ee355['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x4e55f5=>_0x4e55f5['data']);if(_0x30d0d9[_0x1537('0x78')])return{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30d0d9['join']('\x20')+'\x22'))};}if(_0x1537('0x19')==_0x3ec928[_0x1537('0x43')]){const _0x4dc805=_0x3ec928['getItems']()[_0x1537('0x72')](_0x5b25a0=>_0x5b25a0['is'](_0x1537('0x6e')))['map'](_0x1912e4=>_0x1912e4[_0x1537('0x35')]);if(_0x4dc805[_0x1537('0x78')])return{'type':'deletion','content':_0x34198e(_0x196583,'*Remove:*\x20%0',_0x34198e(_0x196583,_0x1537('0x33'),'\x22'+_0x4dc805['join']('\x20')+'\x22'))};}}}),_0x4eac52[_0x1537('0x49')][_0x1537('0x36')](_0x33a10a=>{if('tableRow'==_0x33a10a[_0x1537('0x9')]){const _0x367c1f=_0x33a10a[_0x1537('0x1d')]()['filter'](_0x39f0e0=>_0x39f0e0['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x530ba9=>_0x530ba9[_0x1537('0x35')]),_0x1a9def=this[_0x1537('0x15')](_0x33a10a),_0x23f365=_0x1a9def[_0x1537('0x74')]-_0x1a9def[_0x1537('0x12')]+0x1;if(_0x1537('0x3b')==_0x33a10a[_0x1537('0x43')])return _0x367c1f[_0x1537('0x78')]?{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,'*Insert:*\x20%0',_0x34198e(_0x196583,_0x1537('0x2c'),[_0x23f365,'\x22'+_0x367c1f[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x28'),_0x23f365))};if(_0x1537('0x19')==_0x33a10a[_0x1537('0x43')])return _0x367c1f[_0x1537('0x78')]?{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x2c'),[_0x23f365,'\x22'+_0x367c1f[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x28'),_0x23f365))};}if('tableColumn'==_0x33a10a[_0x1537('0x9')]){const _0x4c4463=_0x33a10a['getItems']()['filter'](_0x42532f=>_0x42532f['is'](_0x1537('0x6e')))[_0x1537('0x68')](_0x19a584=>_0x19a584['data']),_0x53c48a=this['_getSuggestionCoords'](_0x33a10a),_0x5c6e9b=_0x53c48a[_0x1537('0x7d')]-_0x53c48a['minColumn']+0x1;if(_0x1537('0x3b')==_0x33a10a[_0x1537('0x43')])return _0x4c4463[_0x1537('0x78')]?{'type':'insertion','content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x30'),[_0x5c6e9b,'\x22'+_0x4c4463[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x3b'),'content':_0x34198e(_0x196583,_0x1537('0x73'),_0x34198e(_0x196583,_0x1537('0x5e'),_0x5c6e9b))};if(_0x1537('0x19')==_0x33a10a['type'])return _0x4c4463[_0x1537('0x78')]?{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,_0x1537('0x13'),_0x34198e(_0x196583,_0x1537('0x30'),[_0x5c6e9b,'\x22'+_0x4c4463[_0x1537('0x6c')]('\x20')+'\x22']))}:{'type':_0x1537('0x19'),'content':_0x34198e(_0x196583,'*Remove:*\x20%0',_0x34198e(_0x196583,_0x1537('0x5e'),_0x5c6e9b))};}}),_0x4eac52['_suggestionFactory'][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x38'),_0x1537('0x6d'),_0x53a6f2),_0x4eac52[_0x1537('0x31')]['registerCustomCallback'](_0x1537('0x19'),_0x1537('0x38'),_0x1537('0x4'),_0x53a6f2),_0x4eac52['_suggestionFactory'][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x2e'),'discard',_0x4f5221),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x19'),_0x1537('0x2e'),_0x1537('0x4'),_0x4f5221),_0x4eac52['_suggestionFactory']['registerCustomCallback']('insertion',_0x1537('0x2e'),_0x1537('0x6c'),_0x45ea53),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x19'),_0x1537('0x2e'),_0x1537('0x6c'),_0x45ea53),_0x4eac52[_0x1537('0x31')][_0x1537('0x2d')](_0x1537('0x3b'),_0x1537('0x38'),_0x1537('0x6c'),_0x57d5ad),_0x4eac52[_0x1537('0x31')]['registerCustomCallback']('deletion',_0x1537('0x38'),_0x1537('0x6c'),_0x57d5ad);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10b588=this[_0x1537('0x29')],_0x448b2c=_0x10b588[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x53')];return(_0x64a799,_0x59de4b)=>{_0x10b588[_0x1537('0x5d')][_0x1537('0x48')](_0x56b9a7=>{const {commandName:_0x1adf63,commandParams:_0x340956}=_0x59de4b;let _0x23d2bb=_0x64a799[0x0]['end']['nodeBefore'];_0x340956&&_0x340956[0x0]&&!0x1===_0x340956[0x0][_0x1537('0x5f')]&&(_0x23d2bb=_0x64a799[0x0][_0x1537('0x57')][_0x1537('0x2a')]);const _0x1df5a3=_0x56b9a7[_0x1537('0x18')](_0x23d2bb);if('$graveyard'==_0x1df5a3[_0x1537('0x21')]['rootName'])return;const _0x4033d=Array[_0x1537('0x3')](_0x448b2c[_0x1537('0x14')]())[_0x1537('0x68')](_0x131671=>_0x278a3f[_0x1537('0x50')](_0x131671));_0x56b9a7[_0x1537('0x70')](_0x1df5a3),_0x10b588[_0x1537('0x22')][_0x1537('0x3a')](_0x1adf63)[_0x1537('0x59')](),_0x340956[_0x1537('0x71')]({'forceDefaultExecution':!0x0}),_0x10b588[_0x1537('0x11')](_0x1adf63,..._0x340956);const _0x1c7ba9=_0x4033d[_0x1537('0x72')](_0x369df5=>_0x1537('0xc')!=_0x369df5[_0x1537('0x21')][_0x1537('0x7b')]);_0x1c7ba9['length']>0x0&&_0x56b9a7[_0x1537('0x70')](_0x1c7ba9);for(const _0x28d438 of _0x4033d)_0x28d438[_0x1537('0x1c')]();});};}['_getCoordsForCells'](_0x5b49d1){const _0x54edc7=this[_0x1537('0x29')][_0x1537('0x25')][_0x1537('0x3a')]('TableUtils');let _0x3fe948=Number[_0x1537('0x7c')],_0x1a1e1c=Number[_0x1537('0x1e')],_0xe575d3=Number[_0x1537('0x7c')],_0x242d7a=Number[_0x1537('0x1e')];for(const _0x69ead9 of _0x5b49d1){if(_0x1537('0xc')==_0x69ead9[_0x1537('0x21')]['rootName'])continue;const {row:_0x3074bc,column:_0x4ff0fe}=_0x54edc7[_0x1537('0x44')](_0x69ead9),_0x1031b8=_0x69ead9[_0x1537('0x2f')]('rowspan')?_0x69ead9[_0x1537('0x64')](_0x1537('0x0'))-0x1:0x0,_0x42eb2a=_0x69ead9[_0x1537('0x2f')](_0x1537('0x7e'))?_0x69ead9[_0x1537('0x64')](_0x1537('0x7e'))-0x1:0x0;_0x3fe948=_0x3074bc<_0x3fe948?_0x3074bc:_0x3fe948,_0x1a1e1c=_0x3074bc+_0x1031b8>_0x1a1e1c?_0x3074bc+_0x1031b8:_0x1a1e1c,_0xe575d3=_0x4ff0fe<_0xe575d3?_0x4ff0fe:_0xe575d3,_0x242d7a=_0x4ff0fe+_0x42eb2a>_0x242d7a?_0x4ff0fe+_0x42eb2a:_0x242d7a;}return{'minRow':_0x3fe948,'maxRow':_0x1a1e1c,'minColumn':_0xe575d3,'maxColumn':_0x242d7a};}['_setupColumnsRowsFixing'](){const _0x571484=this[_0x1537('0x29')],_0x1aa78a=_0x571484[_0x1537('0x25')][_0x1537('0x3a')]('TrackChangesEditing'),_0x39d7b7=_0x571484[_0x1537('0x25')][_0x1537('0x3a')](_0x1537('0x2'));_0x571484[_0x1537('0x5d')][_0x1537('0x39')]['on'](_0x1537('0x5'),()=>{const _0x3d20e0=Array['from'](_0x571484[_0x1537('0x5d')]['document'][_0x1537('0x27')][_0x1537('0x54')]());for(const {name:_0x152945,data:_0x38ab06}of _0x3d20e0){const {group:_0x58fa02,id:_0x2c3159,subType:_0x31e098}=_0x1aa78a['_splitMarkerName'](_0x152945);if('suggestion'!=_0x58fa02)continue;if(null!=_0x38ab06[_0x1537('0x34')])continue;const _0x23bafd=_0x1aa78a[_0x1537('0x76')](_0x2c3159);this[_0x1537('0x26')]['includes'](_0x31e098)&&this[_0x1537('0x1a')]['add'](_0x23bafd);}},{'priority':_0x1537('0x1b')});const _0x2dde17=(_0x714c3d,_0x2db110)=>{let _0x599057=!0x1;const _0x159b27=_0x2db110[_0x1537('0x17')](_0x714c3d),_0x3d5426=_0x714c3d[_0x1537('0x5c')](_0x1537('0x51')),_0x47fbc9=_0x39d7b7['getCellLocation'](_0x714c3d);for(const _0x26b4c4 of this[_0x1537('0x1a')]){const _0x3d8b37=_0x26b4c4[_0x1537('0x9')],_0x30a551=_0x3d8b37[_0x1537('0x7a')](_0x1537('0x7')),_0x120ae0=_0x3d8b37[_0x1537('0x52')](_0x30a551?0xa:0x5),_0x3362da=_0x120ae0['toLowerCase'](),_0x3d06a6=_0x3362da[_0x1537('0x52')](0x0,0x3)+'span',_0x5b9502=_0x1537('0x61')+_0x120ae0,_0x5ad976='max'+_0x120ae0;if(!_0x26b4c4[_0x1537('0xb')])continue;if(_0x3d5426!=_0x26b4c4[_0x1537('0x79')]()[_0x1537('0x57')][_0x1537('0x5c')](_0x1537('0x51')))continue;if(_0x26b4c4[_0x1537('0x6b')](_0x159b27))continue;const _0x494104=_0x714c3d[_0x1537('0x2f')](_0x3d06a6)?_0x714c3d[_0x1537('0x64')](_0x3d06a6)-0x1:0x0,_0x4ece2e=this[_0x1537('0x15')](_0x26b4c4),_0x3ff44b=_0x4ece2e[_0x5b9502],_0x2a17af=_0x4ece2e[_0x5ad976];_0x3ff44b<=_0x47fbc9[_0x3362da]&&_0x47fbc9[_0x3362da]+_0x494104<=_0x2a17af&&(_0x26b4c4['addRange'](_0x159b27),_0x599057=!0x0);}return _0x599057;};_0x571484[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x60')](_0x42b906=>{let _0x5b9206=!0x1;for(const _0xae240d of _0x571484[_0x1537('0x5d')][_0x1537('0x39')][_0x1537('0x27')]['getChanges']())if(_0x1537('0x32')==_0xae240d[_0x1537('0x43')]){if(_0x1537('0x38')==_0xae240d[_0x1537('0x4b')])for(const _0x4a52d3 of _0xae240d['position']['nodeAfter']['getChildren']())_0x5b9206=_0x5b9206||_0x2dde17(_0x4a52d3,_0x42b906);else _0x1537('0x8')==_0xae240d[_0x1537('0x4b')]&&(_0x5b9206=_0x5b9206||_0x2dde17(_0xae240d['position'][_0x1537('0x2a')],_0x42b906));}return _0x5b9206;});}[_0x1537('0x15')](_0x280e13){return this['_getCoordsForCells'](_0x280e13['getRanges']()[_0x1537('0x68')](_0x3a3dd1=>_0x3a3dd1[_0x1537('0x57')][_0x1537('0x2a')]));}}function se(_0x1f4319){return Array[_0x1537('0x3')](new Set(_0x1f4319)[_0x1537('0xd')]());}
|
|
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')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1de8=['toggleTableCaption','get','editor','TableCaptionEditing','plugins','TrackChangesEditing','enableCommand'];(function(_0x2df40a,_0x1de8df){const _0x1ae281=function(_0x5f0205){while(--_0x5f0205){_0x2df40a['push'](_0x2df40a['shift']());}};_0x1ae281(++_0x1de8df);}(_0x1de8,0x125));const _0x1ae2=function(_0x2df40a,_0x1de8df){_0x2df40a=_0x2df40a-0x0;let _0x1ae281=_0x1de8[_0x2df40a];return _0x1ae281;};import{Plugin as _0x4f2a91}from'ckeditor5/src/core';import _0x534fb2 from'./table';export default class Nt extends _0x4f2a91{static get['requires'](){return[_0x534fb2];}['afterInit'](){const _0x113259=this[_0x1ae2('0x3')];if(!_0x113259[_0x1ae2('0x5')]['has'](_0x1ae2('0x4')))return;_0x113259[_0x1ae2('0x5')][_0x1ae2('0x2')](_0x1ae2('0x6'))[_0x1ae2('0x0')](_0x1ae2('0x1'));}}
|