@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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 _0x5935=['parent','replace','blockName','formatInline','formatBlock','*Check\x20item*','commandName','locale','todoList','from','markBlockFormat','bulletedList','has','commands','getSelectedBlocks','push','model','commandParams','plugins','get','isObject','listType','listIndent','bulleted','findIndex','schema','todo','numbered','createPositionAt','forceValue','slice','_descriptionFactory','*Change\x20to:*\x20%0','type','nextSibling','paragraph','value','add','execute','numberedList','ListEditing','createRange','checkTodoList','previousSibling','end','element','listItem','*Outdent:*\x20%0','*Uncheck\x20item*','ELEMENT_LIST_ITEM','selection','getAttribute','ELEMENT_NUMBERED_LIST','afterInit','TodoListEditing','format','length','registerDescriptionCallback','indentList','todoListChecked','document','ELEMENT_BULLETED_LIST','_selectedElements','enableCommand','filter','change','name','outdentList'];(function(_0x5ad4fc,_0x5935b9){const _0x42efe0=function(_0x1c6e50){while(--_0x1c6e50){_0x5ad4fc['push'](_0x5ad4fc['shift']());}};_0x42efe0(++_0x5935b9);}(_0x5935,0x1e1));const _0x42ef=function(_0x5ad4fc,_0x5935b9){_0x5ad4fc=_0x5ad4fc-0x0;let _0x42efe0=_0x5935[_0x5ad4fc];return _0x42efe0;};import{Plugin as _0x303604}from'ckeditor5/src/core';import{getTranslation as _0x2afc04}from'../utils/common-translations';export default class ct extends _0x303604{[_0x42ef('0x30')](){const _0xb92542=this['editor'],_0x3698f4=_0xb92542[_0x42ef('0x2')];if(!_0xb92542[_0x42ef('0xd')][_0x42ef('0x7')](_0x42ef('0x23')))return;const _0x3201a2=_0xb92542[_0x42ef('0xd')][_0x42ef('0xe')]('TrackChangesEditing'),_0x3cfc7e=_0xb92542[_0x42ef('0xd')]['has'](_0x42ef('0x31'));function _0x491084(_0x57b7d7){return()=>{const _0x1288ed=_0xb92542['model'][_0x42ef('0x37')][_0x42ef('0x2d')],_0x40b223=_0xb92542[_0x42ef('0x8')][_0x42ef('0xe')](_0x57b7d7);if(_0x40b223[_0x42ef('0x1f')])return void _0xb92542[_0x42ef('0x21')](_0x42ef('0x1e'),{});const _0xdd83e8=_0x57b7d7[_0x42ef('0x19')](0x0,-0x4),_0x1084e7=function(_0x1f5198,_0x460e4f,_0x435162){let _0x441b77=Array[_0x42ef('0x4')](_0x1f5198)[_0x42ef('0x3b')](_0xe3340=>function(_0x13eee3,_0x1d86e4){return _0x1d86e4['checkChild'](_0x13eee3[_0x42ef('0x3f')],_0x42ef('0x29'))&&!_0x1d86e4[_0x42ef('0xf')](_0x13eee3);}(_0xe3340,_0x435162));_0x441b77=_0x441b77['filter'](_0x3be1b1=>!_0x3be1b1['is'](_0x42ef('0x28'),_0x42ef('0x29'))||_0x3be1b1['getAttribute'](_0x42ef('0x10'))!=_0x460e4f);const _0xb3c2b3=new Set();for(const _0x171f06 of _0x441b77)_0x171f06['is'](_0x42ef('0x28'),_0x42ef('0x29'))?_0xb3c2b3[_0x42ef('0x20')](ne(_0x171f06)):_0xb3c2b3[_0x42ef('0x20')](_0x171f06);return Array[_0x42ef('0x4')](_0xb3c2b3);}(_0x1288ed['getSelectedBlocks'](),_0xdd83e8,_0xb92542[_0x42ef('0xb')][_0x42ef('0x14')]);_0xb92542[_0x42ef('0xb')]['change'](()=>{for(const _0x29dc77 of _0x1084e7)_0x3201a2['markBlockFormat'](_0x29dc77,{'commandName':_0x57b7d7,'commandParams':[{'forceValue':!_0x40b223[_0x42ef('0x1f')]}],'formatGroupId':_0x42ef('0x41')},oe(_0x29dc77));});};}function _0x12ae18(_0x34b012){return()=>{const _0x41ae2b=function(_0x13dda1){let _0x5996bf=Array[_0x42ef('0x4')](_0x13dda1);const _0x255a41=_0x5996bf[_0x42ef('0x13')](_0x484928=>_0x42ef('0x29')!=_0x484928[_0x42ef('0x3d')]);return _0x255a41>-0x1&&(_0x5996bf=_0x5996bf[_0x42ef('0x19')](0x0,_0x255a41)),_0x5996bf;}(_0xb92542[_0x42ef('0xb')]['document'][_0x42ef('0x2d')][_0x42ef('0x9')]()),_0x493efe=_0xb92542[_0x42ef('0xb')][_0x42ef('0x24')](_0xb92542[_0x42ef('0xb')]['createPositionAt'](_0x41ae2b[0x0],'before'),_0xb92542[_0x42ef('0xb')][_0x42ef('0x17')](_0x41ae2b[_0x41ae2b[_0x42ef('0x33')]-0x1],_0x42ef('0x27')));_0xb92542[_0x42ef('0xb')][_0x42ef('0x3c')](()=>{_0x3201a2[_0x42ef('0x5')](_0x493efe,{'commandName':_0x34b012,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4db379){const _0xc39eba=new Set();for(const _0x233ec9 of _0x4db379){let _0x4c1da5=_0x233ec9['nextSibling'];for(;_0x4c1da5&&_0x4c1da5[_0x42ef('0x2e')](_0x42ef('0x11'))>_0x233ec9[_0x42ef('0x2e')](_0x42ef('0x11'));)_0xc39eba[_0x42ef('0x20')](_0x4c1da5),_0x4c1da5=_0x4c1da5['nextSibling'];}return Array[_0x42ef('0x4')](_0xc39eba);}(_0x41ae2b));});};}_0x3201a2[_0x42ef('0x3a')](_0x42ef('0x22'),_0x491084(_0x42ef('0x22'))),_0x3201a2[_0x42ef('0x3a')](_0x42ef('0x6'),_0x491084('bulletedList')),_0x3cfc7e&&_0x3201a2[_0x42ef('0x3a')]('todoList',_0x491084(_0x42ef('0x3'))),_0x3201a2[_0x42ef('0x3a')](_0x42ef('0x35'),_0x12ae18(_0x42ef('0x35'))),_0x3201a2[_0x42ef('0x3a')](_0x42ef('0x3e'),_0x12ae18(_0x42ef('0x3e'))),_0x3cfc7e&&_0x3201a2[_0x42ef('0x3a')]('checkTodoList',()=>{const _0x22861a=_0xb92542[_0x42ef('0x8')][_0x42ef('0xe')](_0x42ef('0x25')),_0x170f6f=Array[_0x42ef('0x4')](_0x22861a[_0x42ef('0x39')]);_0x170f6f[_0x42ef('0x3b')](_0x18f89f=>_0x18f89f[_0x42ef('0x2e')](_0x42ef('0x36'))!=_0x22861a[_0x42ef('0x1f')]),_0xb92542[_0x42ef('0xb')][_0x42ef('0x3c')](()=>{for(const _0x2edbbc of _0x170f6f)_0x3201a2[_0x42ef('0x5')](_0x2edbbc,{'commandName':_0x42ef('0x25'),'commandParams':[{'forceValue':!_0x22861a[_0x42ef('0x1f')]}]});});}),_0x3201a2['_descriptionFactory']['registerElementLabel']('listItem',_0x46a269=>_0x2afc04(_0x3698f4,_0x42ef('0x2c'),_0x46a269)),_0x3201a2[_0x42ef('0x1a')][_0x42ef('0x34')](_0x5164d6=>{if(_0x42ef('0x43')!=_0x5164d6[_0x42ef('0x1c')]&&_0x42ef('0x42')!=_0x5164d6[_0x42ef('0x1c')])return;const {data:_0x1369d8}=_0x5164d6;if(_0x1369d8){if(_0x42ef('0x22')==_0x1369d8[_0x42ef('0x1')]||_0x42ef('0x6')==_0x1369d8['commandName']||'todoList'==_0x1369d8[_0x42ef('0x1')])switch(_0x1369d8[_0x42ef('0x1')][_0x42ef('0x40')]('List','')){case _0x42ef('0x12'):return _0x28f693(_0x2afc04(_0x3698f4,_0x42ef('0x38')));case _0x42ef('0x16'):return _0x28f693(_0x2afc04(_0x3698f4,_0x42ef('0x2f')));case _0x42ef('0x15'):return _0x28f693(_0x2afc04(_0x3698f4,'ELEMENT_TODO_LIST'));}if(_0x42ef('0x35')==_0x1369d8[_0x42ef('0x1')])return{'type':_0x42ef('0x32'),'content':_0x2afc04(_0x3698f4,'*Indent:*\x20%0',_0x2afc04(_0x3698f4,'ELEMENT_LIST_ITEM'))};if(_0x42ef('0x3e')==_0x1369d8[_0x42ef('0x1')])return{'type':_0x42ef('0x32'),'content':_0x2afc04(_0x3698f4,_0x42ef('0x2a'),_0x2afc04(_0x3698f4,_0x42ef('0x2c')))};if(_0x42ef('0x25')==_0x1369d8[_0x42ef('0x1')])return _0x1369d8[_0x42ef('0xc')][0x0][_0x42ef('0x18')]?{'type':_0x42ef('0x32'),'content':_0x2afc04(_0x3698f4,_0x42ef('0x0'))}:{'type':_0x42ef('0x32'),'content':_0x2afc04(_0x3698f4,_0x42ef('0x2b'))};}function _0x28f693(_0x390e56){return{'type':_0x42ef('0x32'),'content':_0x2afc04(_0x3698f4,_0x42ef('0x1b'),_0x390e56)};}});}}function ne(_0x2e66a6){const _0x449132=_0x2e66a6[_0x42ef('0x2e')](_0x42ef('0x11'));if(0x0==_0x449132)return _0x2e66a6;let _0xeaf39b=_0x2e66a6;for(;_0x2e66a6['previousSibling']&&_0x2e66a6['previousSibling']['is']('element',_0x42ef('0x29'));){const _0x334432=_0x2e66a6[_0x42ef('0x26')][_0x42ef('0x2e')](_0x42ef('0x11'));if(_0x334432==_0x449132)_0xeaf39b=_0x2e66a6[_0x42ef('0x26')];else{if(_0x334432<_0x449132)break;}_0x2e66a6=_0x2e66a6[_0x42ef('0x26')];}return _0xeaf39b;}function oe(_0xdc63c8){const _0xe5ec13=[];if(_0xdc63c8['is'](_0x42ef('0x28'),'listItem')&&_0xdc63c8[_0x42ef('0x2e')]('listIndent')>0x0){let _0x386329=_0xdc63c8[_0x42ef('0x1d')];for(;_0x386329&&_0x42ef('0x29')==_0x386329['name']&&_0x386329[_0x42ef('0x2e')](_0x42ef('0x11'))==_0xdc63c8['getAttribute'](_0x42ef('0x11'));)_0xe5ec13[_0x42ef('0xa')](_0x386329),_0x386329=_0x386329['nextSibling'];}return _0xe5ec13;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f10=['handleDescriptions','ELEMENT_','handleListStyleCommand','listReversed','enableCommand','getSiblingNodes','createPositionAt','getAttribute','listStyle','*Format:*\x20set\x20order\x20to\x20reversed','from','handleListReversedCommand','forward','*Change\x20to:*\x20%0','parent','config','_getSuggestionBlocksForListStyle','list.properties','commandParams','reversed','numbered','_getSuggestionBlocks','listType','listItem','createRange','format','locale','toUpperCase','flat','map','has','TrackChangesEditing','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','*Format:*\x20set\x20start\x20index\x20to\x20%0','backward','before','editor','_getTranslationKeyForListStyle','change','type','bind','replace','getFirstPosition','_descriptionFactory','length','ListUtils','getLastPosition','model','ListPropertiesEditing','registerDescriptionCallback','filter','commandName','listStart','document','get','unshift','element','selection','afterInit','startIndex','plugins','handleListStartCommand','formatBlock'];(function(_0x1b8163,_0x1f1026){const _0x49b370=function(_0x346efb){while(--_0x346efb){_0x1b8163['push'](_0x1b8163['shift']());}};_0x49b370(++_0x1f1026);}(_0x1f10,0xd7));const _0x49b3=function(_0x1b8163,_0x1f1026){_0x1b8163=_0x1b8163-0x0;let _0x49b370=_0x1f10[_0x1b8163];return _0x49b370;};import{Plugin as _0x241dba}from'ckeditor5/src/core';import{getTranslation as _0x358d8c}from'../utils/common-translations';export default class ut extends _0x241dba{[_0x49b3('0x24')](){if(!this[_0x49b3('0xe')]['plugins'][_0x49b3('0x7')](_0x49b3('0x1a')))return;const _0x49694b=this[_0x49b3('0xe')][_0x49b3('0x38')][_0x49b3('0x20')](_0x49b3('0x3a')),_0x1f87ad=this[_0x49b3('0xe')][_0x49b3('0x26')][_0x49b3('0x20')](_0x49b3('0x8'));_0x49694b['styles']&&_0x1f87ad[_0x49b3('0x2d')]('listStyle',this[_0x49b3('0x2b')][_0x49b3('0x12')](this)),_0x49694b[_0x49b3('0x3c')]&&_0x1f87ad[_0x49b3('0x2d')]('listReversed',this['handleListReversedCommand'][_0x49b3('0x12')](this)),_0x49694b[_0x49b3('0x25')]&&_0x1f87ad[_0x49b3('0x2d')]('listStart',this[_0x49b3('0x27')][_0x49b3('0x12')](this)),_0x1f87ad[_0x49b3('0x15')][_0x49b3('0x1b')](this[_0x49b3('0x29')][_0x49b3('0x12')](this));}[_0x49b3('0x2b')](_0x24d4f3,_0x2d1cbd={}){const _0xfa3d4c=this['editor'][_0x49b3('0x26')][_0x49b3('0x20')](_0x49b3('0x8')),_0x5c6fe6=this['_getSuggestionBlocksForListStyle']();this['editor'][_0x49b3('0x19')]['change'](()=>{_0xfa3d4c['markMultiRangeBlockFormat'](_0x5c6fe6,{'commandName':_0x49b3('0x31'),'commandParams':[{'type':_0x2d1cbd['type']}],'formatGroupId':'listStyle'});});}[_0x49b3('0x34')](_0x55ac16,_0x3e223a={}){const _0x611da4=this[_0x49b3('0xe')][_0x49b3('0x26')][_0x49b3('0x20')](_0x49b3('0x8')),_0x43bece=this[_0x49b3('0x3e')](_0x4e1a05=>_0x4e1a05['is'](_0x49b3('0x22'),_0x49b3('0x0'))&&'numbered'===_0x4e1a05['getAttribute']('listType'));if(_0x43bece[_0x49b3('0x16')]<0x1)return;const _0x6b520c=_0x43bece[_0x49b3('0x6')](_0x2fd194=>this['editor'][_0x49b3('0x19')][_0x49b3('0x1')](this['editor'][_0x49b3('0x19')][_0x49b3('0x2f')](_0x2fd194,_0x49b3('0xd')),this[_0x49b3('0xe')][_0x49b3('0x19')]['createPositionAt'](_0x2fd194,0x0)));this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x10')](()=>{_0x611da4[_0x49b3('0x9')](_0x6b520c,{'commandName':_0x49b3('0x2c'),'commandParams':[{'reversed':_0x3e223a[_0x49b3('0x3c')]}],'formatGroupId':'listReversed'});});}[_0x49b3('0x27')](_0x223a78,_0x2879fd={}){const _0x3b2b88=this[_0x49b3('0xe')][_0x49b3('0x26')][_0x49b3('0x20')](_0x49b3('0x8')),_0x19ca19=this[_0x49b3('0x3e')](_0x5bfc89=>_0x5bfc89['is'](_0x49b3('0x22'),_0x49b3('0x0'))&&_0x49b3('0x3d')===_0x5bfc89[_0x49b3('0x30')](_0x49b3('0x3f')));if(_0x19ca19['length']<0x1)return;const _0x3a449e=_0x19ca19['map'](_0x3fd243=>this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x1')](this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x2f')](_0x3fd243,_0x49b3('0xd')),this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x2f')](_0x3fd243,0x0)));this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x10')](()=>{_0x3b2b88[_0x49b3('0x9')](_0x3a449e,{'commandName':_0x49b3('0x1e'),'commandParams':[{'startIndex':_0x2879fd['startIndex']}],'formatGroupId':_0x49b3('0x1e')});});}['handleDescriptions'](_0x4f670e){if(_0x49b3('0x28')!=_0x4f670e[_0x49b3('0x11')]&&'formatInline'!=_0x4f670e[_0x49b3('0x11')])return;const _0x53eed9=this[_0x49b3('0xe')][_0x49b3('0x3')],{data:_0x4381ba}=_0x4f670e;if(!_0x4381ba)return;let _0x3357b5,_0x55adfa;switch(_0x4381ba[_0x49b3('0x1d')]){case'listStyle':_0x3357b5=_0x49b3('0x36'),_0x55adfa={'type':_0x49b3('0x2'),'content':_0x358d8c(_0x53eed9,_0x3357b5,_0x358d8c(_0x53eed9,this['_getTranslationKeyForListStyle'](_0x4381ba['commandParams'][0x0][_0x49b3('0x11')])))};break;case'listReversed':_0x3357b5=_0x4381ba[_0x49b3('0x3b')][0x0][_0x49b3('0x3c')]?_0x49b3('0x32'):_0x49b3('0xa'),_0x55adfa={'type':_0x49b3('0x2'),'content':_0x358d8c(_0x53eed9,_0x3357b5)};break;case'listStart':_0x3357b5=_0x49b3('0xb'),_0x55adfa={'type':_0x49b3('0x2'),'content':_0x358d8c(_0x53eed9,_0x3357b5,_0x4381ba[_0x49b3('0x3b')][0x0][_0x49b3('0x25')])};}return _0x55adfa;}[_0x49b3('0x39')](){var _0x58d37b,_0x1ede43,_0xa75067,_0x2ce439;const _0x5533d6=this[_0x49b3('0xe')]['plugins']['get'](_0x49b3('0x17'));let _0x32aa12=Array[_0x49b3('0x33')](this[_0x49b3('0xe')]['model'][_0x49b3('0x1f')][_0x49b3('0x23')]['getSelectedBlocks']());return(null===(_0x58d37b=_0x32aa12[0x0])||void 0x0===_0x58d37b?void 0x0:_0x58d37b['is'](_0x49b3('0x22'),_0x49b3('0x0')))&&_0x32aa12[_0x49b3('0x21')](..._0x5533d6[_0x49b3('0x2e')](this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x1f')]['selection']['getFirstPosition'](),_0x49b3('0xc'))),(null===(_0x1ede43=_0x32aa12[_0x32aa12['length']-0x1])||void 0x0===_0x1ede43?void 0x0:_0x1ede43['is'](_0x49b3('0x22'),_0x49b3('0x0')))&&_0x32aa12['push'](..._0x5533d6[_0x49b3('0x2e')](this[_0x49b3('0xe')][_0x49b3('0x19')][_0x49b3('0x1f')][_0x49b3('0x23')][_0x49b3('0x18')](),_0x49b3('0x35'))),_0x32aa12=[...new Set(_0x32aa12)],(null===(_0x2ce439=null===(_0xa75067=this['editor'][_0x49b3('0x19')][_0x49b3('0x1f')][_0x49b3('0x23')][_0x49b3('0x14')]())||void 0x0===_0xa75067?void 0x0:_0xa75067[_0x49b3('0x37')])||void 0x0===_0x2ce439?void 0x0:_0x2ce439['is'](_0x49b3('0x22'),_0x49b3('0x0')))&&(_0x32aa12=_0x32aa12[_0x49b3('0x1c')](_0x304368=>_0x304368['is'](_0x49b3('0x22'),_0x49b3('0x0')))),_0x32aa12;}[_0x49b3('0x3e')](_0x407a47){const _0x17530e=this[_0x49b3('0xe')][_0x49b3('0x26')][_0x49b3('0x20')](_0x49b3('0x17'));let _0xd3a6b2=Array[_0x49b3('0x33')](this[_0x49b3('0xe')]['model']['document'][_0x49b3('0x23')]['getSelectedBlocks']())[_0x49b3('0x1c')](_0x407a47)[_0x49b3('0x6')](_0x1516c4=>{const _0x37ed43=this['editor'][_0x49b3('0x19')][_0x49b3('0x2f')](_0x1516c4,0x0);return[..._0x17530e[_0x49b3('0x2e')](_0x37ed43,_0x49b3('0xc')),..._0x17530e['getSiblingNodes'](_0x37ed43,'forward')];})[_0x49b3('0x5')]();return _0xd3a6b2=[...new Set(_0xd3a6b2)],_0xd3a6b2;}[_0x49b3('0xf')](_0x2b59f6){return _0x49b3('0x2a')+this['editor'][_0x49b3('0x26')]['get'](_0x49b3('0x17'))['getListTypeFromListStyleType'](_0x2b59f6)[_0x49b3('0x4')]()+'_LIST_'+_0x2b59f6[_0x49b3('0x4')]()[_0x49b3('0x13')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eb6=['for','data','locale','TrackChangesEditing','enableCommand','createEmptyElement','get','_descriptionFactory','options','conversion','mediaEmbed','div','media','high','registerElementLabel','dataDowncast','has','ELEMENT_MEDIA','plugins','showSuggestionHighlights'];(function(_0x44f8c3,_0x3eb6c9){const _0x317300=function(_0x114a5e){while(--_0x114a5e){_0x44f8c3['push'](_0x44f8c3['shift']());}};_0x317300(++_0x3eb6c9);}(_0x3eb6,0x186));const _0x3173=function(_0x44f8c3,_0x3eb6c9){_0x44f8c3=_0x44f8c3-0x0;let _0x317300=_0x3eb6[_0x44f8c3];return _0x317300;};import{Plugin as _0x2ea8fc}from'ckeditor5/src/core';import{getTranslation as _0x5691f6}from'../utils/common-translations';export default class ht extends _0x2ea8fc{['afterInit'](){const _0x42126d=this['editor'];if(!_0x42126d[_0x3173('0x8')][_0x3173('0x6')]('MediaEmbedEditing'))return;const _0x5b85d2=_0x42126d[_0x3173('0x8')][_0x3173('0x10')](_0x3173('0xd')),_0x391aa7=_0x42126d[_0x3173('0xc')];_0x5b85d2[_0x3173('0xe')](_0x3173('0x0')),_0x5b85d2[_0x3173('0x11')][_0x3173('0x4')]('media',_0x5317bf=>_0x5691f6(_0x391aa7,_0x3173('0x7'),_0x5317bf)),_0x42126d[_0x3173('0x13')][_0x3173('0xa')](_0x3173('0x5'))['elementToElement']({'model':_0x3173('0x2'),'view':(_0x5f41c2,{writer:_0x15d585,options:_0x2cb615})=>{if(_0x2cb615[_0x3173('0x9')])return _0x15d585[_0x3173('0xf')](_0x3173('0x1'));},'converterPriority':_0x3173('0x3')}),_0x42126d[_0x3173('0xb')]['downcastDispatcher']['on']('attribute:url:media',(_0x55312e,_0xa0a43c,_0x170e47)=>{_0x170e47[_0x3173('0x12')][_0x3173('0x9')]&&_0x55312e['stop']();},{'priority':_0x3173('0x3')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c5c=['plugins','editor','mention','MentionEditing','has','TrackChangesEditing'];(function(_0x36e1b4,_0x1c5c74){const _0x1b203b=function(_0x59fd7f){while(--_0x59fd7f){_0x36e1b4['push'](_0x36e1b4['shift']());}};_0x1b203b(++_0x1c5c74);}(_0x1c5c,0x14a));const _0x1b20=function(_0x36e1b4,_0x1c5c74){_0x36e1b4=_0x36e1b4-0x0;let _0x1b203b=_0x1c5c[_0x36e1b4];return _0x1b203b;};import{Plugin as _0x4746ab}from'ckeditor5/src/core';export default class ft extends _0x4746ab{['afterInit'](){const _0x2c976a=this[_0x1b20('0x1')];_0x2c976a[_0x1b20('0x0')][_0x1b20('0x4')](_0x1b20('0x3'))&&_0x2c976a[_0x1b20('0x0')]['get'](_0x1b20('0x5'))['enableCommand'](_0x1b20('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45e6=['registerElementLabel','TrackChangesEditing','get','PageBreakEditing','pageBreak','afterInit','has','ELEMENT_PAGE_BREAK','editor','locale','enableCommand','_descriptionFactory','plugins'];(function(_0x4a2e82,_0x45e67d){const _0x3fd4b1=function(_0x8344d9){while(--_0x8344d9){_0x4a2e82['push'](_0x4a2e82['shift']());}};_0x3fd4b1(++_0x45e67d);}(_0x45e6,0x19b));const _0x3fd4=function(_0x4a2e82,_0x45e67d){_0x4a2e82=_0x4a2e82-0x0;let _0x3fd4b1=_0x45e6[_0x4a2e82];return _0x3fd4b1;};import{Plugin as _0x44ebea}from'ckeditor5/src/core';import{getTranslation as _0x1242fd}from'../utils/common-translations';export default class gt extends _0x44ebea{[_0x3fd4('0xa')](){const _0x35bd42=this[_0x3fd4('0x0')];if(!_0x35bd42[_0x3fd4('0x4')][_0x3fd4('0xb')](_0x3fd4('0x8')))return;_0x35bd42[_0x3fd4('0x4')][_0x3fd4('0x7')](_0x3fd4('0x6'))[_0x3fd4('0x2')](_0x3fd4('0x9'));const _0x2f0af5=_0x35bd42[_0x3fd4('0x4')][_0x3fd4('0x7')](_0x3fd4('0x6')),_0x265409=_0x35bd42[_0x3fd4('0x1')];_0x2f0af5[_0x3fd4('0x3')][_0x3fd4('0x5')](_0x3fd4('0x9'),_0x590028=>_0x1242fd(_0x265409,_0x3fd4('0xc'),_0x590028));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c86=['consumable','start','isTouching','afterInit','model','downcastDispatcher','ck-suggestion-marker--active','nodeAfter','commandName','createUIElement','registerElementLabel','writer','TrackChangesEditing','enableCommand','markerRange','get','schema','name','_enableDefaultAttributesIntegration','type','_descriptionFactory','$text','ELEMENT_PARAGRAPH','has','paragraph','span','isLimit','getFirstRange','markerName','bindElementToMarker','showSuggestionHighlights','checkChild','includes','formatBlock','insertion','toViewPosition','isBlock','end','editor','ck-suggestion-marker-split','options','plugins','data','editing','mapper','registerDescriptionCallback','_registerLegacyDescription','*Insert:*\x20%0','highest','activeMarkers'];(function(_0x572a64,_0x5c869b){const _0xf2e62d=function(_0x238138){while(--_0x238138){_0x572a64['push'](_0x572a64['shift']());}};_0xf2e62d(++_0x5c869b);}(_0x5c86,0x1d2));const _0xf2e6=function(_0x572a64,_0x5c869b){_0x572a64=_0x572a64-0x0;let _0xf2e62d=_0x5c86[_0x572a64];return _0xf2e62d;};import{Plugin as _0x106bbe}from'ckeditor5/src/core';import{getTranslation as _0x12b860}from'../utils/common-translations';export default class lt extends _0x106bbe{[_0xf2e6('0x25')](){const _0x49574b=this[_0xf2e6('0x16')];if(!_0x49574b[_0xf2e6('0x19')][_0xf2e6('0x7')]('Paragraph'))return;const _0x14cb09=_0x49574b['locale'],_0x378604=_0x49574b[_0xf2e6('0x19')]['get']('TrackChangesEditing');_0x378604['_descriptionFactory'][_0xf2e6('0x2c')](_0xf2e6('0x8'),_0x574b70=>_0x12b860(_0x14cb09,_0xf2e6('0x6'),_0x574b70)),_0x378604[_0xf2e6('0x2')]('paragraph'),_0x378604[_0xf2e6('0x2f')]('insertParagraph'),_0x49574b[_0xf2e6('0x1b')][_0xf2e6('0x27')]['on']('addMarker:suggestion:insertion',nr(_0x49574b),{'priority':_0xf2e6('0x20')}),_0x49574b[_0xf2e6('0x1a')][_0xf2e6('0x27')]['on']('addMarker:suggestion:insertion',(_0x158f74,_0x4cdc24,_0x3ba456)=>{_0x3ba456[_0xf2e6('0x18')][_0xf2e6('0xe')]&&nr(_0x49574b,{'showActiveMarker':!0x1})(_0x158f74,_0x4cdc24,_0x3ba456);},{'priority':'highest'});const _0x3d23b1=_0x378604[_0xf2e6('0x4')];_0x3d23b1[_0xf2e6('0x1d')](_0x4cd057=>{if(_0xf2e6('0x12')!==_0x4cd057[_0xf2e6('0x3')])return;const {start:_0x183313,end:_0x185795}=_0x4cd057[_0xf2e6('0xb')]();if(!_0x183313['isTouching'](_0x185795)||!_0x183313[_0xf2e6('0x29')])return;const _0x1d0a8f=_0x49574b[_0xf2e6('0x26')][_0xf2e6('0x0')],_0x1aa11e=_0x183313[_0xf2e6('0x29')];return _0x1d0a8f[_0xf2e6('0x14')](_0x1aa11e)&&!_0x1d0a8f['isLimit'](_0x1aa11e)&&_0x1d0a8f['checkChild'](_0x1aa11e,_0xf2e6('0x5'))?{'type':_0xf2e6('0x12'),'content':_0x12b860(_0x14cb09,_0xf2e6('0x1f'),_0x3d23b1['getItemLabel'](_0x1aa11e,0x1))}:void 0x0;}),this[_0xf2e6('0x1e')]();}[_0xf2e6('0x1e')](){const _0x1031ed=this['editor'],_0x1665f6=_0x1031ed['locale'];_0x1031ed[_0xf2e6('0x19')][_0xf2e6('0x31')]('TrackChangesEditing')[_0xf2e6('0x4')][_0xf2e6('0x1d')](_0x200fcd=>{if(_0xf2e6('0x11')!=_0x200fcd[_0xf2e6('0x3')])return;const {data:_0x57f669}=_0x200fcd;return _0x57f669&&_0xf2e6('0x8')==_0x57f669[_0xf2e6('0x2a')]?{'type':'format','content':_0x12b860(_0x1665f6,'*Change\x20to:*\x20%0',_0x12b860(_0x1665f6,_0xf2e6('0x6')))}:void 0x0;});}}function nr(_0x271387,{showActiveMarker:_0x69dd9d=!0x0}={}){return(_0xd7d22b,_0x58d898,_0x4432ea)=>{const _0x54f35c=_0x271387[_0xf2e6('0x19')][_0xf2e6('0x31')](_0xf2e6('0x2e')),_0x1dae76=_0x58d898[_0xf2e6('0x30')][_0xf2e6('0x23')],_0x556d8e=_0x58d898['markerRange'][_0xf2e6('0x15')],_0x295f34=_0x271387[_0xf2e6('0x26')]['schema'];if(!_0x1dae76[_0xf2e6('0x24')](_0x556d8e)||!_0x1dae76[_0xf2e6('0x29')])return;const _0x431f02=_0x1dae76['nodeAfter'];if(_0x295f34[_0xf2e6('0x14')](_0x431f02)&&!_0x295f34[_0xf2e6('0xa')](_0x431f02)&&_0x295f34[_0xf2e6('0xf')](_0x431f02,_0xf2e6('0x5'))){if(!_0x4432ea[_0xf2e6('0x22')]['consume'](_0x58d898[_0xf2e6('0x30')],_0xd7d22b[_0xf2e6('0x1')]))return;const _0xb21530=_0x4432ea[_0xf2e6('0x2d')][_0xf2e6('0x2b')](_0xf2e6('0x9'),{'class':_0xf2e6('0x17')}),_0x33b872=_0x4432ea['mapper'][_0xf2e6('0x13')](_0x556d8e);_0x69dd9d&&_0x54f35c[_0xf2e6('0x21')][_0xf2e6('0x10')](_0x58d898[_0xf2e6('0xc')])&&_0x4432ea[_0xf2e6('0x2d')]['addClass'](_0xf2e6('0x28'),_0xb21530),_0x4432ea[_0xf2e6('0x2d')]['insert'](_0x33b872,_0xb21530),_0x4432ea[_0xf2e6('0x1c')][_0xf2e6('0xd')](_0xb21530,_0x58d898[_0xf2e6('0xc')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11e0=['_registerLegacyDescription','format','TrackChangesEditing','registerDescriptionCallback','commandName','has','RemoveFormatEditing','formatInline','plugins','_descriptionFactory','removeFormat','formatBlock','get','locale','type','editor','*Remove\x20all\x20formatting*'];(function(_0x1e663a,_0x11e0e3){const _0xe6f31e=function(_0x33c7a3){while(--_0x33c7a3){_0x1e663a['push'](_0x1e663a['shift']());}};_0xe6f31e(++_0x11e0e3);}(_0x11e0,0xe3));const _0xe6f3=function(_0x1e663a,_0x11e0e3){_0x1e663a=_0x1e663a-0x0;let _0xe6f31e=_0x11e0[_0x1e663a];return _0xe6f31e;};import{Plugin as _0x5cb562}from'ckeditor5/src/core';import{getTranslation as _0x2534b5}from'../utils/common-translations';export default class mt extends _0x5cb562{['afterInit'](){const _0x1aacf5=this[_0xe6f3('0x9')];if(!_0x1aacf5[_0xe6f3('0x2')][_0xe6f3('0x10')](_0xe6f3('0x0')))return;_0x1aacf5[_0xe6f3('0x2')][_0xe6f3('0x6')](_0xe6f3('0xd'))['_enableDefaultAttributesIntegration']('removeFormat'),this[_0xe6f3('0xb')]();}[_0xe6f3('0xb')](){const _0x245540=this[_0xe6f3('0x9')];_0x245540[_0xe6f3('0x2')][_0xe6f3('0x6')](_0xe6f3('0xd'))[_0xe6f3('0x3')][_0xe6f3('0xe')](_0x27f29f=>{if(_0xe6f3('0x5')!=_0x27f29f[_0xe6f3('0x8')]&&_0xe6f3('0x1')!=_0x27f29f['type'])return;const {data:_0x36302f}=_0x27f29f;return _0x36302f&&_0xe6f3('0x4')==_0x36302f[_0xe6f3('0xf')]?{'type':_0xe6f3('0xc'),'content':_0x2534b5(_0x245540[_0xe6f3('0x7')],_0xe6f3('0xa'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ce0=['enableCommand','editor','discardSelectedSuggestions','goToPreviousRestrictedEditingException','plugins','afterInit','goToNextRestrictedEditingException','has','acceptSuggestion','RestrictedEditingModeEditing','get','trackChanges','discardAllSuggestions'];(function(_0x3cfcf3,_0x4ce014){const _0x45ba53=function(_0x3d997a){while(--_0x3d997a){_0x3cfcf3['push'](_0x3cfcf3['shift']());}};_0x45ba53(++_0x4ce014);}(_0x4ce0,0x164));const _0x45ba=function(_0x3cfcf3,_0x4ce014){_0x3cfcf3=_0x3cfcf3-0x0;let _0x45ba53=_0x4ce0[_0x3cfcf3];return _0x45ba53;};import{Plugin as _0x545d71}from'ckeditor5/src/core';export default class dt extends _0x545d71{[_0x45ba('0x0')](){const _0x3b46e7=this[_0x45ba('0x9')];if(!_0x3b46e7['plugins'][_0x45ba('0x2')](_0x45ba('0x4')))return;const _0x1dcf79=_0x3b46e7[_0x45ba('0xc')][_0x45ba('0x5')]('TrackChangesEditing');_0x1dcf79['enableCommand'](_0x45ba('0xb')),_0x1dcf79[_0x45ba('0x8')](_0x45ba('0x1'));const _0x4dfc28=_0x3b46e7['plugins']['get'](_0x45ba('0x4'));_0x4dfc28['enableCommand'](_0x45ba('0x6')),_0x4dfc28[_0x45ba('0x8')](_0x45ba('0x3')),_0x4dfc28['enableCommand']('discardSuggestion'),_0x4dfc28[_0x45ba('0x8')]('acceptAllSuggestions'),_0x4dfc28['enableCommand'](_0x45ba('0x7')),_0x4dfc28[_0x45ba('0x8')]('acceptSelectedSuggestions'),_0x4dfc28[_0x45ba('0x8')](_0x45ba('0xa'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47d8=['editing','downcastDispatcher','span','activeMarkers','locale','markerRange','editor','ck-suggestion-marker--active','mapper','split','registerElementLabel','showSuggestionHighlights','options','plugins','test','writer','addMarker:suggestion:deletion','deletion','bindElementToMarker','TrackChangesEditing','toViewPosition','requires','data','softBreak','insert','addClass','_descriptionFactory','consumable','enableCommand','shiftEnter','get','high','element','merge','includes','markerName','model','getItems'];(function(_0x416e02,_0x47d870){const _0x5c9ffb=function(_0x5cf386){while(--_0x5cf386){_0x416e02['push'](_0x416e02['shift']());}};_0x5c9ffb(++_0x47d870);}(_0x47d8,0x177));const _0x5c9f=function(_0x416e02,_0x47d870){_0x416e02=_0x416e02-0x0;let _0x5c9ffb=_0x47d8[_0x416e02];return _0x5c9ffb;};import{Plugin as _0x42a64a}from'ckeditor5/src/core';import{ShiftEnter as _0x2465d0}from'ckeditor5/src/enter';import{getTranslation as _0x4af03a}from'../utils/common-translations';export default class pt extends _0x42a64a{static get[_0x5c9f('0x1a')](){return[_0x2465d0];}['init'](){const _0x3ae17b=this[_0x5c9f('0xb')],_0x1c5560=_0x3ae17b[_0x5c9f('0x12')][_0x5c9f('0x23')](_0x5c9f('0x18'));_0x1c5560[_0x5c9f('0x21')](_0x5c9f('0x22')),_0x3ae17b[_0x5c9f('0x5')][_0x5c9f('0x6')]['on']('addMarker:suggestion:insertion',re(_0x3ae17b),{'priority':_0x5c9f('0x24')}),_0x3ae17b['editing']['downcastDispatcher']['on'](_0x5c9f('0x15'),re(_0x3ae17b),{'priority':_0x5c9f('0x24')}),_0x3ae17b[_0x5c9f('0x1b')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f2a24,_0x17cfd9,_0xf05143)=>{_0xf05143[_0x5c9f('0x11')][_0x5c9f('0x10')]&&re(_0x3ae17b,{'showActiveMarker':!0x1})(_0x3f2a24,_0x17cfd9,_0xf05143);}),_0x1c5560[_0x5c9f('0x1f')][_0x5c9f('0xf')](_0x5c9f('0x1c'),_0x5448d8=>_0x4af03a(_0x3ae17b[_0x5c9f('0x9')],'ELEMENT_LINE_BREAK',_0x5448d8));}}function re(_0x3bc383,{showActiveMarker:_0x3dc32a=!0x0}={}){return(_0x25680d,_0x591265,_0x6e2822)=>{const _0xba456=_0x3bc383['plugins'][_0x5c9f('0x23')]('TrackChangesEditing');if(!_0x6e2822[_0x5c9f('0x20')][_0x5c9f('0x13')](_0x591265['markerRange'],_0x25680d['name']))return;const _0x343ab5=_0x3bc383[_0x5c9f('0x3')];for(const _0x50085e of _0x591265[_0x5c9f('0xa')][_0x5c9f('0x4')]()){if(!_0x50085e['is'](_0x5c9f('0x25'),_0x5c9f('0x1c')))continue;const _0x4e5148=_0x5c9f('0x16')==_0x591265[_0x5c9f('0x2')][_0x5c9f('0xe')](':')[0x1]?_0x5c9f('0x0'):_0x5c9f('0xe'),_0x421004=_0x6e2822['writer']['createUIElement'](_0x5c9f('0x7'),{'class':'ck-suggestion-marker-'+_0x4e5148}),_0x53e49e=_0x6e2822[_0x5c9f('0xd')][_0x5c9f('0x19')](_0x343ab5['createPositionBefore'](_0x50085e));_0x3dc32a&&_0xba456[_0x5c9f('0x8')][_0x5c9f('0x1')](_0x591265['markerName'])&&_0x6e2822[_0x5c9f('0x14')][_0x5c9f('0x1e')](_0x5c9f('0xc'),_0x421004),_0x6e2822[_0x5c9f('0x14')][_0x5c9f('0x1d')](_0x53e49e,_0x421004),_0x6e2822[_0x5c9f('0xd')][_0x5c9f('0x17')](_0x421004,_0x591265[_0x5c9f('0x2')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52bb=['format','selection','model','has','document','isCollapsed','commandParams','FORMAT_RESTRICTED_DISABLED','change','TrackChangesEditing','forceValue','registerDescriptionCallback','value','from','formatBlock','getRanges','afterInit','plugins','type','enableCommand','editor','get','commandName'];(function(_0xb5dfa0,_0x52bbd4){const _0x55c0f5=function(_0x18afbd){while(--_0x18afbd){_0xb5dfa0['push'](_0xb5dfa0['shift']());}};_0x55c0f5(++_0x52bbd4);}(_0x52bb,0x93));const _0x55c0=function(_0xb5dfa0,_0x52bbd4){_0xb5dfa0=_0xb5dfa0-0x0;let _0x55c0f5=_0x52bb[_0xb5dfa0];return _0x55c0f5;};import{Plugin as _0x3f5fb0}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x41bb3a}from'./utils';import{getTranslation as _0x599266}from'../utils/common-translations';export default class kt extends _0x3f5fb0{[_0x55c0('0x7')](){const _0xab633=this[_0x55c0('0xb')],_0xbd1138=_0xab633[_0x55c0('0x10')],_0x3b5805=_0xab633['locale'];if(!_0xab633[_0x55c0('0x8')][_0x55c0('0x11')]('StandardEditingModeEditing'))return;const _0x2c0913=_0xab633[_0x55c0('0x8')][_0x55c0('0xc')](_0x55c0('0x0')),_0x6a1eda='restrictedEditingException',_0x301d43=_0xab633['commands'][_0x55c0('0xc')](_0x6a1eda);_0x2c0913[_0x55c0('0xa')](_0x6a1eda,(_0x39f32f,_0x4af41b={})=>{const _0xca9735=_0xbd1138[_0x55c0('0x12')][_0x55c0('0xf')];if(_0xca9735[_0x55c0('0x13')])return void _0x39f32f(_0x4af41b);const _0x3caee9=void 0x0!==_0x4af41b[_0x55c0('0x1')]?_0x4af41b[_0x55c0('0x1')]:!_0x301d43[_0x55c0('0x3')];_0xbd1138[_0x55c0('0x16')](()=>{const _0x428710=Array[_0x55c0('0x4')](_0xca9735[_0x55c0('0x6')]());for(const _0x2f4063 of _0x428710){const _0x157d4e=_0x3caee9?[_0x2f4063]:_0x41bb3a(_0x6a1eda,_0x2f4063,_0xbd1138);for(const _0x315c11 of _0x157d4e)_0x2c0913['markInlineFormat'](_0x315c11,{'commandName':_0x6a1eda,'commandParams':[{'forceValue':_0x3caee9}]});}});}),_0x2c0913['_descriptionFactory'][_0x55c0('0x2')](_0x223c0e=>{if(_0x55c0('0x5')!=_0x223c0e[_0x55c0('0x9')]&&'formatInline'!=_0x223c0e[_0x55c0('0x9')])return;const {data:_0x33c1a8}=_0x223c0e;return _0x33c1a8&&_0x33c1a8[_0x55c0('0xd')]==_0x6a1eda?_0x33c1a8[_0x55c0('0x14')][0x0][_0x55c0('0x1')]?{'type':_0x55c0('0xe'),'content':_0x599266(_0x3b5805,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x55c0('0xe'),'content':_0x599266(_0x3b5805,_0x55c0('0x15'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b88=['registerAttributeLabel','DataSchema','styleName','commandParams','config','element','block','afterInit','normalizeConfig','ghsAttributes','_enableDefaultAttributesIntegration','editor','inline','GeneralHtmlSupport','type','style','definitions','locale','getGhsAttributeNameForElement','_registerBlockAttribute','get','formatBlock','StyleUtils','FORMAT_STYLE','add','*Set\x20format:*\x20%0','toLowerCase','Style','_descriptionFactory','plugins','TrackChangesEditing','_registerLegacyDescription','commandName','registerDescriptionCallback','format','has','formatInline'];(function(_0x30a7c1,_0x1b8817){const _0x34e8f2=function(_0x18cffd){while(--_0x18cffd){_0x30a7c1['push'](_0x30a7c1['shift']());}};_0x34e8f2(++_0x1b8817);}(_0x1b88,0x130));const _0x34e8=function(_0x30a7c1,_0x1b8817){_0x30a7c1=_0x30a7c1-0x0;let _0x34e8f2=_0x1b88[_0x30a7c1];return _0x34e8f2;};import{Plugin as _0x371b38}from'ckeditor5/src/core';import{getTranslation as _0x3bebcf}from'../utils/common-translations';export default class bt extends _0x371b38{[_0x34e8('0x24')](){const _0x5eef39=this['editor'];if(!_0x5eef39[_0x34e8('0x15')][_0x34e8('0x1b')](_0x34e8('0x13'))||!_0x5eef39[_0x34e8('0x15')][_0x34e8('0x1b')](_0x34e8('0x1e')))return;const _0x4ba03f=_0x5eef39[_0x34e8('0x15')]['get'](_0x34e8('0x16')),_0x40f1bf=_0x5eef39[_0x34e8('0x9')],_0x4b2710=_0x5eef39[_0x34e8('0x21')][_0x34e8('0xc')](_0x34e8('0x7')),_0x2cd336=_0x5eef39['plugins'][_0x34e8('0xc')](_0x34e8('0x5')),_0x43c60b=_0x5eef39[_0x34e8('0x15')][_0x34e8('0xc')](_0x34e8('0xe'))[_0x34e8('0x0')](_0x5eef39[_0x34e8('0x15')][_0x34e8('0xc')]('DataSchema'),_0x4b2710[_0x34e8('0x8')]);_0x4ba03f[_0x34e8('0x2')]('style');const _0x55cb15=new Set();for(const _0x5f49de of _0x43c60b[_0x34e8('0x23')]){const _0x4fbc18=_0x2cd336[_0x34e8('0xa')](_0x5f49de[_0x34e8('0x22')]);_0x55cb15['add'](_0x4fbc18);}const _0x4dd8de=new Set();for(const _0x5b5cb5 of _0x43c60b[_0x34e8('0x4')]){const _0x515b8b=_0x2cd336['getGhsAttributeNameForElement'](_0x5b5cb5[_0x34e8('0x22')]);_0x4dd8de['add'](_0x515b8b);for(const _0x4aa357 of _0x5b5cb5[_0x34e8('0x1')])_0x4dd8de[_0x34e8('0x10')](_0x4aa357);}for(const _0x3dacef of _0x55cb15)_0x4ba03f[_0x34e8('0xb')](_0x3dacef),_0x4ba03f[_0x34e8('0x14')][_0x34e8('0x1d')](_0x3dacef,_0x3bebcf(_0x40f1bf,_0x34e8('0xf')));for(const _0x176e2c of _0x4dd8de)_0x4ba03f['_registerInlineAttribute'](_0x176e2c),_0x4ba03f[_0x34e8('0x14')][_0x34e8('0x1d')](_0x176e2c,_0x3bebcf(_0x40f1bf,_0x34e8('0xf')));this[_0x34e8('0x17')]();}['_registerLegacyDescription'](){const _0x3b27ba=this[_0x34e8('0x3')],_0x1906e5=_0x3b27ba[_0x34e8('0x9')];_0x3b27ba[_0x34e8('0x15')][_0x34e8('0xc')]('TrackChangesEditing')['_descriptionFactory'][_0x34e8('0x19')](_0x43bf08=>{if(_0x34e8('0xd')!=_0x43bf08[_0x34e8('0x6')]&&_0x34e8('0x1c')!=_0x43bf08[_0x34e8('0x6')])return;const {data:_0x52b7ec}=_0x43bf08;return _0x52b7ec&&_0x34e8('0x7')===_0x52b7ec[_0x34e8('0x18')]?_0x52b7ec[_0x34e8('0x20')][0x0]['forceValue']?{'type':'format','content':_0x3bebcf(_0x1906e5,_0x34e8('0x11'),_0x52b7ec['commandParams'][0x0]['styleName'][_0x34e8('0x12')]())}:{'type':_0x34e8('0x1a'),'content':_0x3bebcf(_0x1906e5,'*Remove\x20format:*\x20%0',_0x52b7ec[_0x34e8('0x20')][0x0][_0x34e8('0x1f')]['toLowerCase']())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a0a=['markMultiRangeDeletion','differ','maxRow','name','accept','forceValue','push','ELEMENT_TABLE','insertTableRowBelow','deletion','insertTableColumnRight','change','_getCoordsForCells','length','editor','insert','_suggestionFactory','createTableWalker','_setupColumnsRowsFixing','getFirstRange','getChanges','createRangeOn','setSelection','startsWith','getChildren','rowspan','root','document','enableCommand','toViewElement','tableColumn','getCellLocation','min','TrackChangesEditing','ELEMENT_TABLE_ROW','maxColumn','_descriptionFactory','selectTableRow','join','removeTableColumn','addClass','start','suggestion','some','ELEMENT_TABLE_WITH_TEXT','end','table','fromRange','first','last','*Remove:*\x20%0','add','tableRow','options','registerCustomCallback','_getSuggestionCoords','isTouching','TableEditing','rootName','ELEMENT_TABLE_COLUMN_WITH_TEXT','minColumn','get','left','getSelectionAffectedTableCells','locale','hasAttribute','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','*Insert:*\x20%0','refresh','minRow','$graveyard','tablePaste','highest','getAttribute','getRowIndexes','span','ELEMENT_TABLE_COLUMN','getRanges','insertion','has','type','isIntersectingWithRange','every','_splitMarkerName','removeTableRow','toLowerCase','getItems','classes','selection','nodeAfter','removeClass','isInContent','addMarker:suggestion','$textProxy','includes','tableCell','above','item','showSuggestionHighlights','plugins','registerDescriptionCallback','max','execute','enqueueChange','nodeBefore','_acceptFormatSuggestionCallbackFactory','afterInit','getColumnIndexes','registerElementLabel','isEqual','element','_tableSuggestions','order','detach','ELEMENT_TABLE_ROW_WITH_TEXT','from','map','commands','insertTableRowAbove','findAncestor','model','change:data','discard','data','colspan','cell','addRange','getChangedMarkers','_tablePostFixingSubtypes','values','substr','position','registerPostFixer','TableUtils','subType','filter','insertTable'];(function(_0x29b4d8,_0x4a0ac9){const _0x1ba584=function(_0x390216){while(--_0x390216){_0x29b4d8['push'](_0x29b4d8['shift']());}};_0x1ba584(++_0x4a0ac9);}(_0x4a0a,0x113));const _0x1ba5=function(_0x29b4d8,_0x4a0ac9){_0x29b4d8=_0x29b4d8-0x0;let _0x1ba584=_0x4a0a[_0x29b4d8];return _0x1ba584;};import{Plugin as _0x5d6a38}from'ckeditor5/src/core';import{LiveRange as _0x3bdbdf}from'ckeditor5/src/engine';import{setHighlightHandling as _0x78f988}from'ckeditor5/src/widget';import{getTranslation as _0x330e30}from'../utils/common-translations';export default class wt extends _0x5d6a38{constructor(_0x7e0c47){super(_0x7e0c47),this[_0x1ba5('0x82')]=['tableRow',_0x1ba5('0x1f')],this['_tableSuggestions']=new Set();}[_0x1ba5('0x6c')](){const _0x422f6a=this[_0x1ba5('0xf')],_0xbece0e=_0x422f6a['model'][_0x1ba5('0x1c')][_0x1ba5('0x5a')];if(!_0x422f6a[_0x1ba5('0x65')][_0x1ba5('0x51')](_0x1ba5('0x3a')))return;const _0x363ed4=_0x422f6a[_0x1ba5('0x41')],_0xedf038=_0x422f6a['plugins'][_0x1ba5('0x3e')](_0x1ba5('0x22')),_0x26bff4=_0x422f6a[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));_0xedf038[_0x1ba5('0x25')][_0x1ba5('0x6e')](_0x1ba5('0x2f'),_0x17093d=>_0x330e30(_0x363ed4,_0x1ba5('0x8'),_0x17093d)),this[_0x1ba5('0x13')](),_0xedf038[_0x1ba5('0x1d')](_0x1ba5('0x0')),_0xedf038[_0x1ba5('0x1d')](_0x1ba5('0x26')),_0xedf038[_0x1ba5('0x1d')]('selectTableColumn');for(const _0x450aa0 of[_0x1ba5('0x78'),_0x1ba5('0x9')]){const _0x594b58=_0x422f6a['commands'][_0x1ba5('0x3e')](_0x450aa0);_0xedf038[_0x1ba5('0x1d')](_0x450aa0,_0x185719=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2d6e8b=>{_0x185719();const _0x4d3e52=_0x1ba5('0x62')===_0x594b58[_0x1ba5('0x72')],_0x4a8ec8=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x4b4a71=_0x26bff4['getRowIndexes'](_0x4a8ec8),_0x1f4002=_0x4d3e52?_0x4b4a71[_0x1ba5('0x31')]-0x1:_0x4b4a71['last']+0x1,_0x140fbb=_0x4a8ec8[0x0][_0x1ba5('0x79')]('table'),_0x49b4a3=_0x26bff4[_0x1ba5('0x12')](_0x140fbb,{'startRow':_0x1f4002,'endRow':_0x1f4002}),_0x5b2d8b=Array['from'](_0x49b4a3)[_0x1ba5('0x76')](_0x25dce2=>_0x2d6e8b[_0x1ba5('0x16')](_0x25dce2[_0x1ba5('0x7f')]));_0xedf038['markMultiRangeInsertion'](_0x5b2d8b,_0x1ba5('0x35'));});});}for(const _0x55391b of['insertTableColumnLeft',_0x1ba5('0xb')]){const _0x217730=_0x422f6a[_0x1ba5('0x77')]['get'](_0x55391b);_0xedf038[_0x1ba5('0x1d')](_0x55391b,_0x5090ca=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2aff12=>{_0x5090ca();const _0x5410a8=_0x1ba5('0x3f')===_0x217730[_0x1ba5('0x72')],_0x34e18a=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x504f64=_0x26bff4[_0x1ba5('0x6d')](_0x34e18a),_0x1c3840=_0x5410a8?_0x504f64[_0x1ba5('0x31')]-0x1:_0x504f64[_0x1ba5('0x32')]+0x1,_0x43d34b=_0x34e18a[0x0]['findAncestor'](_0x1ba5('0x2f')),_0x3eb7fb=_0x26bff4[_0x1ba5('0x12')](_0x43d34b,{'startRow':0x0,'column':_0x1c3840,'includeAllSlots':!0x1}),_0x5d9052=Array[_0x1ba5('0x75')](_0x3eb7fb)[_0x1ba5('0x76')](_0x297f15=>_0x2aff12[_0x1ba5('0x16')](_0x297f15[_0x1ba5('0x7f')]));_0xedf038['markMultiRangeInsertion'](_0x5d9052,_0x1ba5('0x1f'));});});}for(const _0x458b22 of['removeTableRow',_0x1ba5('0x28')]){const _0x454fef=_0x458b22[_0x1ba5('0x84')](0xb),_0x41086f=_0x454fef[_0x1ba5('0x57')](),_0x58c01b=_0x41086f['substr'](0x0,0x3)+_0x1ba5('0x4d'),_0x57e39c='table'+_0x454fef,_0x58840c='min'+_0x454fef,_0x5738a5=_0x1ba5('0x67')+_0x454fef;_0xedf038['enableCommand'](_0x458b22,()=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x423211=>{const _0x425738=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x46d2fd=_0x425738[0x0][_0x1ba5('0x79')](_0x1ba5('0x2f'));let _0x401c48;if(_0x1ba5('0x56')==_0x458b22){const _0x395211=_0x26bff4[_0x1ba5('0x4c')](_0x425738);_0x401c48={'startRow':_0x395211[_0x1ba5('0x31')],'endRow':_0x395211['last'],'includeAllSlots':!0x0};}else{const _0x3d6b08=_0x26bff4[_0x1ba5('0x6d')](_0x425738);_0x401c48={'startColumn':_0x3d6b08['first'],'endColumn':_0x3d6b08['last'],'includeAllSlots':!0x0};}const _0x3f3bd9=_0x26bff4[_0x1ba5('0x12')](_0x46d2fd,_0x401c48),_0x319c71=Array[_0x1ba5('0x75')](_0x3f3bd9)[_0x1ba5('0x76')](({cell:_0x161f78})=>_0x161f78),_0x291bac=se(_0x319c71['filter'](_0x3cd9e5=>_0x3cd9e5[_0x1ba5('0x42')](_0x58c01b))),_0x2beec4=se(_0x319c71[_0x1ba5('0x89')](_0x47ceb9=>!_0x47ceb9[_0x1ba5('0x42')](_0x58c01b)))[_0x1ba5('0x76')](_0x48ca11=>_0x423211[_0x1ba5('0x16')](_0x48ca11)),_0x3aa2dc=_0xedf038[_0x1ba5('0x1')](_0x2beec4,_0x57e39c);if(_0x3aa2dc&&(_0x1ba5('0x35')==_0x3aa2dc[_0x1ba5('0x88')]||_0x1ba5('0x1f')==_0x3aa2dc[_0x1ba5('0x88')])){const _0x63d050=this[_0x1ba5('0x38')](_0x3aa2dc);for(const _0xd77dd5 of _0x291bac){const _0x5dc7ae=_0x423211['createRangeOn'](_0xd77dd5),_0x28336f=_0x26bff4[_0x1ba5('0x20')](_0xd77dd5),_0x3ca3ea=_0xd77dd5[_0x1ba5('0x4b')](_0x58c01b)-0x1,_0xc504c=_0x63d050[_0x58840c],_0x158bf7=_0x63d050[_0x5738a5];_0xc504c<=_0x28336f[_0x41086f]&&_0x28336f[_0x41086f]+_0x3ca3ea<=_0x158bf7&&_0x3aa2dc[_0x1ba5('0x80')](_0x5dc7ae);}}});});}function _0x13b936(_0x29174d){const _0x2e4130=Array[_0x1ba5('0x75')](_0xbece0e[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0xf666e8=>_0x3bdbdf[_0x1ba5('0x30')](_0xf666e8));_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x3c7b8f=>{const _0x3813dd=_0x3c7b8f['batch'];_0x29174d=_0x29174d[_0x1ba5('0x89')](_0x201688=>_0x1ba5('0x48')!=_0x201688[_0x1ba5('0x1b')][_0x1ba5('0x3b')]),_0x3c7b8f[_0x1ba5('0x17')](_0x29174d),_0x422f6a[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x1ba5('0x56'))[_0x1ba5('0x46')](),_0x422f6a[_0x1ba5('0x68')](_0x1ba5('0x56'),{'forceDefaultExecution':!0x0}),_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0x69')](()=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0x69')](_0x3813dd,_0x280fc6=>{const _0x217283=_0x2e4130[_0x1ba5('0x89')](_0x22e7e0=>_0x1ba5('0x48')!=_0x22e7e0['root'][_0x1ba5('0x3b')]);_0x217283[_0x1ba5('0xe')]>0x0&&_0x280fc6[_0x1ba5('0x17')](_0x217283);for(const _0x2d252b of _0x2e4130)_0x2d252b[_0x1ba5('0x73')]();});});});}function _0x176f29(_0x4bfef4){_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2ed225=>{const _0x32d726=Array['from'](_0xbece0e[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0x51c605=>_0x3bdbdf[_0x1ba5('0x30')](_0x51c605)),_0x417696=[];for(const _0x1d5f88 of _0x4bfef4)for(const _0x4191a6 of _0x1d5f88[_0x1ba5('0x58')]({'shallow':!0x0}))_0x417696[_0x1ba5('0x7')](_0x4191a6);for(const _0x2f0b09 of _0x417696)'$graveyard'!=_0x2f0b09[_0x1ba5('0x1b')][_0x1ba5('0x3b')]&&(_0x2ed225['setSelection'](_0x2ed225['createPositionAt'](_0x2f0b09,0x0)),_0x422f6a[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x1ba5('0x28'))[_0x1ba5('0x46')](),_0x422f6a['execute'](_0x1ba5('0x28'),{'forceDefaultExecution':!0x0}));const _0x46f143=_0x32d726[_0x1ba5('0x89')](_0x589c29=>_0x1ba5('0x48')!=_0x589c29['root'][_0x1ba5('0x3b')]);_0x46f143['length']>0x0&&_0x2ed225[_0x1ba5('0x17')](_0x46f143);for(const _0x4ce2a1 of _0x32d726)_0x4ce2a1['detach']();});}function _0x39fbd1(_0xfa9613,_0x2bab4f){return _0x2bab4f[_0x1ba5('0x54')](_0x5bcfb2=>_0xfa9613[_0x1ba5('0x2c')](_0x41f665=>_0x41f665[_0x1ba5('0x2e')][_0x1ba5('0x6f')](_0x5bcfb2[_0x1ba5('0x2a')])||_0x5bcfb2[_0x1ba5('0x2e')][_0x1ba5('0x6f')](_0x41f665['start'])));}function _0x6d9956(_0x338d34,_0x5ab1f5){return _0x338d34[_0x1ba5('0x2c')](_0x4d42ed=>_0x5ab1f5[_0x1ba5('0x2c')](_0xe9d9fd=>_0x4d42ed[_0x1ba5('0x2e')][_0x1ba5('0x39')](_0xe9d9fd[_0x1ba5('0x2a')])));}_0x422f6a[_0x1ba5('0x7d')]['downcastDispatcher']['on'](_0x1ba5('0x5e'),(_0x197a63,_0x13345f,_0x3f159a)=>{if(!_0x3f159a[_0x1ba5('0x36')][_0x1ba5('0x64')])return;const _0x16b51e=_0x13345f[_0x1ba5('0x63')];if(!_0x16b51e)return;const _0xc0c570=_0x3f159a['mapper'][_0x1ba5('0x1e')](_0x16b51e);function _0xb03d8c(_0x298eea){return Array['isArray'](_0x298eea)?_0x298eea:[_0x298eea];}_0xc0c570&&_0x1ba5('0x61')===_0x16b51e[_0x1ba5('0x4')]&&_0x78f988(_0xc0c570,_0x3f159a['writer'],(_0xbd99f2,_0x487b86,_0x390418)=>_0x390418[_0x1ba5('0x29')](_0xb03d8c(_0x487b86[_0x1ba5('0x59')]),_0xbd99f2),(_0x5e7ff0,_0x275238,_0x439a1f)=>_0x439a1f[_0x1ba5('0x5c')](_0xb03d8c(_0x275238[_0x1ba5('0x59')]),_0x5e7ff0));},{'priority':_0x1ba5('0x4a')}),_0xedf038['_descriptionFactory'][_0x1ba5('0x66')](_0x554d77=>{if('insertion'!=_0x554d77['type']&&'deletion'!=_0x554d77[_0x1ba5('0x52')])return;const _0xaa635d=_0x554d77['getContainedElement']();if(null!=_0xaa635d&&_0xaa635d['is'](_0x1ba5('0x70'),_0x1ba5('0x2f'))){if(_0x1ba5('0x50')==_0x554d77[_0x1ba5('0x52')]){const _0x735478=_0x554d77[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x3b1c32=>_0x3b1c32['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x4ad626=>_0x4ad626['data']);if(_0x735478[_0x1ba5('0xe')])return{'type':_0x1ba5('0x50'),'content':_0x330e30(_0x363ed4,'*Insert:*\x20%0',_0x330e30(_0x363ed4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x735478[_0x1ba5('0x27')]('\x20')+'\x22'))};}if(_0x1ba5('0xa')==_0x554d77[_0x1ba5('0x52')]){const _0x5345bf=_0x554d77[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x5d35a3=>_0x5d35a3['is'](_0x1ba5('0x5f')))['map'](_0xd42caf=>_0xd42caf[_0x1ba5('0x7d')]);if(_0x5345bf[_0x1ba5('0xe')])return{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x2d'),'\x22'+_0x5345bf[_0x1ba5('0x27')]('\x20')+'\x22'))};}}}),_0xedf038[_0x1ba5('0x25')][_0x1ba5('0x66')](_0x3f17d7=>{if('tableRow'==_0x3f17d7[_0x1ba5('0x88')]){const _0x2396e1=_0x3f17d7[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x17e422=>_0x17e422['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x4c45e1=>_0x4c45e1[_0x1ba5('0x7d')]),_0x2bdf96=this[_0x1ba5('0x38')](_0x3f17d7),_0x4c3944=_0x2bdf96[_0x1ba5('0x3')]-_0x2bdf96[_0x1ba5('0x47')]+0x1;if('insertion'==_0x3f17d7[_0x1ba5('0x52')])return _0x2396e1[_0x1ba5('0xe')]?{'type':_0x1ba5('0x50'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x74'),[_0x4c3944,'\x22'+_0x2396e1[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,'ELEMENT_TABLE_ROW',_0x4c3944))};if(_0x1ba5('0xa')==_0x3f17d7[_0x1ba5('0x52')])return _0x2396e1[_0x1ba5('0xe')]?{'type':'deletion','content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x74'),[_0x4c3944,'\x22'+_0x2396e1[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x23'),_0x4c3944))};}if('tableColumn'==_0x3f17d7[_0x1ba5('0x88')]){const _0x3bf9cf=_0x3f17d7[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x15a5cc=>_0x15a5cc['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x27d154=>_0x27d154[_0x1ba5('0x7d')]),_0x3853e8=this[_0x1ba5('0x38')](_0x3f17d7),_0x169189=_0x3853e8[_0x1ba5('0x24')]-_0x3853e8[_0x1ba5('0x3d')]+0x1;if('insertion'==_0x3f17d7[_0x1ba5('0x52')])return _0x3bf9cf[_0x1ba5('0xe')]?{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x3c'),[_0x169189,'\x22'+_0x3bf9cf[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x4e'),_0x169189))};if(_0x1ba5('0xa')==_0x3f17d7[_0x1ba5('0x52')])return _0x3bf9cf[_0x1ba5('0xe')]?{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x169189,'\x22'+_0x3bf9cf['join']('\x20')+'\x22']))}:{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x4e'),_0x169189))};}}),_0xedf038['_suggestionFactory'][_0x1ba5('0x37')]('insertion',_0x1ba5('0x35'),_0x1ba5('0x7c'),_0x13b936),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')]('deletion','tableRow',_0x1ba5('0x5'),_0x13b936),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0x50'),'tableColumn',_0x1ba5('0x7c'),_0x176f29),_0xedf038[_0x1ba5('0x11')]['registerCustomCallback']('deletion',_0x1ba5('0x1f'),_0x1ba5('0x5'),_0x176f29),_0xedf038['_suggestionFactory'][_0x1ba5('0x37')]('insertion',_0x1ba5('0x1f'),'join',_0x39fbd1),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0xa'),_0x1ba5('0x1f'),_0x1ba5('0x27'),_0x39fbd1),_0xedf038[_0x1ba5('0x11')]['registerCustomCallback'](_0x1ba5('0x50'),'tableRow',_0x1ba5('0x27'),_0x6d9956),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0xa'),_0x1ba5('0x35'),_0x1ba5('0x27'),_0x6d9956);}[_0x1ba5('0x6b')](){const _0x35f6a0=this[_0x1ba5('0xf')],_0x3f3793=_0x35f6a0[_0x1ba5('0x7a')][_0x1ba5('0x1c')][_0x1ba5('0x5a')];return(_0x4086fb,_0x1bcff1)=>{_0x35f6a0[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x3be942=>{const {commandName:_0x59f715,commandParams:_0x215f29}=_0x1bcff1;let _0x8d24bf=_0x4086fb[0x0][_0x1ba5('0x2e')][_0x1ba5('0x6a')];_0x215f29&&_0x215f29[0x0]&&!0x1===_0x215f29[0x0][_0x1ba5('0x6')]&&(_0x8d24bf=_0x4086fb[0x0][_0x1ba5('0x2a')][_0x1ba5('0x5b')]);const _0x465a20=_0x3be942['createRangeIn'](_0x8d24bf);if(_0x1ba5('0x48')==_0x465a20[_0x1ba5('0x1b')][_0x1ba5('0x3b')])return;const _0x838244=Array[_0x1ba5('0x75')](_0x3f3793[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0x1384ab=>_0x3bdbdf[_0x1ba5('0x30')](_0x1384ab));_0x3be942[_0x1ba5('0x17')](_0x465a20),_0x35f6a0[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x59f715)[_0x1ba5('0x46')](),_0x215f29['push']({'forceDefaultExecution':!0x0}),_0x35f6a0[_0x1ba5('0x68')](_0x59f715,..._0x215f29);const _0x25b606=_0x838244['filter'](_0x41dd98=>_0x1ba5('0x48')!=_0x41dd98['root'][_0x1ba5('0x3b')]);_0x25b606[_0x1ba5('0xe')]>0x0&&_0x3be942['setSelection'](_0x25b606);for(const _0x568370 of _0x838244)_0x568370[_0x1ba5('0x73')]();});};}[_0x1ba5('0xd')](_0x31b43f){const _0xdb1071=this[_0x1ba5('0xf')][_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));let _0x19ba11=Number['MAX_SAFE_INTEGER'],_0x398fbc=Number[_0x1ba5('0x43')],_0x23d211=Number[_0x1ba5('0x44')],_0x5586b9=Number[_0x1ba5('0x43')];for(const _0x2f6e42 of _0x31b43f){if('$graveyard'==_0x2f6e42[_0x1ba5('0x1b')][_0x1ba5('0x3b')])continue;const {row:_0x1f94ad,column:_0x5b1ec2}=_0xdb1071['getCellLocation'](_0x2f6e42),_0x1a3e41=_0x2f6e42[_0x1ba5('0x42')]('rowspan')?_0x2f6e42[_0x1ba5('0x4b')](_0x1ba5('0x1a'))-0x1:0x0,_0x54648b=_0x2f6e42[_0x1ba5('0x42')](_0x1ba5('0x7e'))?_0x2f6e42[_0x1ba5('0x4b')](_0x1ba5('0x7e'))-0x1:0x0;_0x19ba11=_0x1f94ad<_0x19ba11?_0x1f94ad:_0x19ba11,_0x398fbc=_0x1f94ad+_0x1a3e41>_0x398fbc?_0x1f94ad+_0x1a3e41:_0x398fbc,_0x23d211=_0x5b1ec2<_0x23d211?_0x5b1ec2:_0x23d211,_0x5586b9=_0x5b1ec2+_0x54648b>_0x5586b9?_0x5b1ec2+_0x54648b:_0x5586b9;}return{'minRow':_0x19ba11,'maxRow':_0x398fbc,'minColumn':_0x23d211,'maxColumn':_0x5586b9};}[_0x1ba5('0x13')](){const _0x3d1f83=this[_0x1ba5('0xf')],_0x18bd8f=_0x3d1f83[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x22')),_0x32f5c7=_0x3d1f83[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));_0x3d1f83[_0x1ba5('0x7a')][_0x1ba5('0x1c')]['on'](_0x1ba5('0x7b'),()=>{const _0x43a99b=Array[_0x1ba5('0x75')](_0x3d1f83['model'][_0x1ba5('0x1c')][_0x1ba5('0x2')][_0x1ba5('0x81')]());for(const {name:_0x1d0fc6,data:_0x22ea1b}of _0x43a99b){const {group:_0x10b1f5,id:_0x5d8729,subType:_0x584c0f}=_0x18bd8f[_0x1ba5('0x55')](_0x1d0fc6);if(_0x1ba5('0x2b')!=_0x10b1f5)continue;if(null!=_0x22ea1b['oldRange'])continue;const _0x5cd513=_0x18bd8f['getSuggestion'](_0x5d8729);this[_0x1ba5('0x82')][_0x1ba5('0x60')](_0x584c0f)&&this[_0x1ba5('0x71')][_0x1ba5('0x34')](_0x5cd513);}},{'priority':'low'});const _0x5609df=(_0x57bd33,_0x26035f)=>{let _0x6ee316=!0x1;const _0x2c458a=_0x26035f[_0x1ba5('0x16')](_0x57bd33),_0x58ed9b=_0x57bd33[_0x1ba5('0x79')](_0x1ba5('0x2f')),_0x11e986=_0x32f5c7[_0x1ba5('0x20')](_0x57bd33);for(const _0x3abb50 of this['_tableSuggestions']){const _0x244b11=_0x3abb50[_0x1ba5('0x88')],_0x2af7fe=_0x244b11[_0x1ba5('0x18')](_0x1ba5('0x49')),_0x5494d=_0x244b11[_0x1ba5('0x84')](_0x2af7fe?0xa:0x5),_0x5e107d=_0x5494d[_0x1ba5('0x57')](),_0x4012ee=_0x5e107d[_0x1ba5('0x84')](0x0,0x3)+_0x1ba5('0x4d'),_0x3bfc9d=_0x1ba5('0x21')+_0x5494d,_0x50ef7b=_0x1ba5('0x67')+_0x5494d;if(!_0x3abb50[_0x1ba5('0x5d')])continue;if(_0x58ed9b!=_0x3abb50[_0x1ba5('0x14')]()[_0x1ba5('0x2a')][_0x1ba5('0x79')](_0x1ba5('0x2f')))continue;if(_0x3abb50[_0x1ba5('0x53')](_0x2c458a))continue;const _0x3cd73b=_0x57bd33[_0x1ba5('0x42')](_0x4012ee)?_0x57bd33[_0x1ba5('0x4b')](_0x4012ee)-0x1:0x0,_0x150716=this[_0x1ba5('0x38')](_0x3abb50),_0xe905e6=_0x150716[_0x3bfc9d],_0x1203d5=_0x150716[_0x50ef7b];_0xe905e6<=_0x11e986[_0x5e107d]&&_0x11e986[_0x5e107d]+_0x3cd73b<=_0x1203d5&&(_0x3abb50['addRange'](_0x2c458a),_0x6ee316=!0x0);}return _0x6ee316;};_0x3d1f83[_0x1ba5('0x7a')]['document'][_0x1ba5('0x86')](_0x475da7=>{let _0x2c1072=!0x1;for(const _0x225631 of _0x3d1f83['model'][_0x1ba5('0x1c')][_0x1ba5('0x2')][_0x1ba5('0x15')]())if(_0x1ba5('0x10')==_0x225631['type']){if(_0x1ba5('0x35')==_0x225631[_0x1ba5('0x4')])for(const _0x5ccf00 of _0x225631[_0x1ba5('0x85')]['nodeAfter'][_0x1ba5('0x19')]())_0x2c1072=_0x2c1072||_0x5609df(_0x5ccf00,_0x475da7);else _0x1ba5('0x61')==_0x225631[_0x1ba5('0x4')]&&(_0x2c1072=_0x2c1072||_0x5609df(_0x225631[_0x1ba5('0x85')]['nodeAfter'],_0x475da7));}return _0x2c1072;});}[_0x1ba5('0x38')](_0x586dad){return this[_0x1ba5('0xd')](_0x586dad[_0x1ba5('0x4f')]()[_0x1ba5('0x76')](_0x31b827=>_0x31b827[_0x1ba5('0x2a')]['nodeAfter']));}}function se(_0x471cd8){return Array[_0x1ba5('0x75')](new Set(_0x471cd8)[_0x1ba5('0x83')]());}
|
|
23
|
+
const _0x141f=['accept','getContainedElement','editor','getFirstRange','end','change:data','ELEMENT_TABLE_COLUMN_WITH_TEXT','_splitMarkerName','min','low','createRangeOn','createPositionAt','item','_tablePostFixingSubtypes','insertion','insertTable','highest','map','last','tablePaste','order','getSuggestion','showSuggestionHighlights','enableCommand','includes','length','*Insert:*\x20%0','registerCustomCallback','isInContent','batch','_getCoordsForCells','model','_getSuggestionCoords','$textProxy','setSelection','rowspan','createTableWalker','minColumn','root','get','rootName','max','MIN_SAFE_INTEGER','getSelectionAffectedTableCells','isEqual','tableCell','nodeAfter','maxRow','ELEMENT_TABLE_ROW','_acceptFormatSuggestionCallbackFactory','getItems','differ','has','nodeBefore','tableColumn','enqueueChange','TableUtils','findAncestor','_descriptionFactory','$graveyard','selectTableColumn','classes','substr','change','addRange','fromRange','writer','some','cell','removeClass','discard','markMultiRangeInsertion','getChangedMarkers','markMultiRangeDeletion','insertTableColumnRight','mapper','join','registerDescriptionCallback','selectTableRow','minRow','hasAttribute','first','toLowerCase','isArray','insertTableRowAbove','getCellLocation','removeTableRow','toViewElement','getRanges','position','isIntersectingWithRange','insert','subType','deletion','maxColumn','selection','afterInit','every','data','insertTableRowBelow','tableRow','getColumnIndexes','push','options','document','detach','getChanges','above','ELEMENT_TABLE_COLUMN','forceValue','suggestion','ELEMENT_TABLE_ROW_WITH_TEXT','execute','removeTableColumn','filter','createRangeIn','locale','TrackChangesEditing','start','type','_tableSuggestions','plugins','getRowIndexes','commands','addMarker:suggestion','_suggestionFactory','name','_setupColumnsRowsFixing','addClass','add','getAttribute','oldRange','ELEMENT_TABLE_WITH_TEXT','from','colspan','values','table','refresh','getChildren','ELEMENT_TABLE','*Remove:*\x20%0'];(function(_0x5c444e,_0x141f9a){const _0x5c33f8=function(_0x3e2d64){while(--_0x3e2d64){_0x5c444e['push'](_0x5c444e['shift']());}};_0x5c33f8(++_0x141f9a);}(_0x141f,0x1e7));const _0x5c33=function(_0x5c444e,_0x141f9a){_0x5c444e=_0x5c444e-0x0;let _0x5c33f8=_0x141f[_0x5c444e];return _0x5c33f8;};import{Plugin as _0x1f9a8b}from'ckeditor5/src/core';import{LiveRange as _0x28a563}from'ckeditor5/src/engine';import{setHighlightHandling as _0x6f0d28}from'ckeditor5/src/widget';import{getTranslation as _0x5f11b2}from'../utils/common-translations';export default class wt extends _0x1f9a8b{constructor(_0x21c693){super(_0x21c693),this[_0x5c33('0x5a')]=[_0x5c33('0x24'),_0x5c33('0x83')],this[_0x5c33('0x38')]=new Set();}[_0x5c33('0x20')](){const _0x5baedb=this[_0x5c33('0x4f')],_0xc35a5=_0x5baedb[_0x5c33('0x6c')]['document'][_0x5c33('0x1f')];if(!_0x5baedb[_0x5c33('0x39')][_0x5c33('0x81')]('TableEditing'))return;const _0xa5792f=_0x5baedb[_0x5c33('0x34')],_0x51763d=_0x5baedb[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x35')),_0x1d8997=_0x5baedb[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x85'));_0x51763d['_descriptionFactory']['registerElementLabel'](_0x5c33('0x48'),_0x2f42ed=>_0x5f11b2(_0xa5792f,_0x5c33('0x4b'),_0x2f42ed)),this[_0x5c33('0x3f')](),_0x51763d[_0x5c33('0x64')](_0x5c33('0x5c')),_0x51763d[_0x5c33('0x64')](_0x5c33('0xe')),_0x51763d['enableCommand'](_0x5c33('0x89'));for(const _0x259fe8 of[_0x5c33('0x14'),_0x5c33('0x23')]){const _0x59440f=_0x5baedb[_0x5c33('0x3b')][_0x5c33('0x74')](_0x259fe8);_0x51763d[_0x5c33('0x64')](_0x259fe8,_0x350ed9=>{_0x5baedb[_0x5c33('0x6c')]['change'](_0xe1696d=>{_0x350ed9();const _0x2526d9=_0x5c33('0x2b')===_0x59440f['order'],_0x580639=_0x1d8997['getSelectionAffectedTableCells'](_0xc35a5),_0xa9c79f=_0x1d8997[_0x5c33('0x3a')](_0x580639),_0xb51bb7=_0x2526d9?_0xa9c79f[_0x5c33('0x11')]-0x1:_0xa9c79f[_0x5c33('0x5f')]+0x1,_0x5e98dc=_0x580639[0x0][_0x5c33('0x86')](_0x5c33('0x48')),_0x10be75=_0x1d8997[_0x5c33('0x71')](_0x5e98dc,{'startRow':_0xb51bb7,'endRow':_0xb51bb7}),_0x4b8ff5=Array[_0x5c33('0x45')](_0x10be75)[_0x5c33('0x5e')](_0x3f1545=>_0xe1696d[_0x5c33('0x57')](_0x3f1545[_0x5c33('0x4')]));_0x51763d[_0x5c33('0x7')](_0x4b8ff5,_0x5c33('0x24'));});});}for(const _0x33057d of['insertTableColumnLeft',_0x5c33('0xa')]){const _0x109d10=_0x5baedb[_0x5c33('0x3b')][_0x5c33('0x74')](_0x33057d);_0x51763d[_0x5c33('0x64')](_0x33057d,_0x45918e=>{_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x32e724=>{_0x45918e();const _0x444ced='left'===_0x109d10[_0x5c33('0x61')],_0x36e017=_0x1d8997[_0x5c33('0x78')](_0xc35a5),_0x2eaacf=_0x1d8997[_0x5c33('0x25')](_0x36e017),_0x55935a=_0x444ced?_0x2eaacf[_0x5c33('0x11')]-0x1:_0x2eaacf[_0x5c33('0x5f')]+0x1,_0x25b6f4=_0x36e017[0x0][_0x5c33('0x86')](_0x5c33('0x48')),_0x8c2c54=_0x1d8997[_0x5c33('0x71')](_0x25b6f4,{'startRow':0x0,'column':_0x55935a,'includeAllSlots':!0x1}),_0x54967c=Array[_0x5c33('0x45')](_0x8c2c54)['map'](_0x16b1b5=>_0x32e724[_0x5c33('0x57')](_0x16b1b5[_0x5c33('0x4')]));_0x51763d['markMultiRangeInsertion'](_0x54967c,_0x5c33('0x83'));});});}for(const _0x5dc526 of['removeTableRow',_0x5c33('0x31')]){const _0x5d835d=_0x5dc526[_0x5c33('0x8b')](0xb),_0x1f0695=_0x5d835d[_0x5c33('0x12')](),_0x5588ab=_0x1f0695[_0x5c33('0x8b')](0x0,0x3)+'span',_0x4dd371=_0x5c33('0x48')+_0x5d835d,_0xa76333=_0x5c33('0x55')+_0x5d835d,_0x376b44=_0x5c33('0x76')+_0x5d835d;_0x51763d[_0x5c33('0x64')](_0x5dc526,()=>{_0x5baedb['model'][_0x5c33('0x8c')](_0x4f6bee=>{const _0xeda40c=_0x1d8997[_0x5c33('0x78')](_0xc35a5),_0x50ac0b=_0xeda40c[0x0]['findAncestor'](_0x5c33('0x48'));let _0x568efb;if(_0x5c33('0x16')==_0x5dc526){const _0x4f1eeb=_0x1d8997[_0x5c33('0x3a')](_0xeda40c);_0x568efb={'startRow':_0x4f1eeb['first'],'endRow':_0x4f1eeb[_0x5c33('0x5f')],'includeAllSlots':!0x0};}else{const _0x4c4986=_0x1d8997['getColumnIndexes'](_0xeda40c);_0x568efb={'startColumn':_0x4c4986[_0x5c33('0x11')],'endColumn':_0x4c4986[_0x5c33('0x5f')],'includeAllSlots':!0x0};}const _0x3f2894=_0x1d8997['createTableWalker'](_0x50ac0b,_0x568efb),_0xe31904=Array[_0x5c33('0x45')](_0x3f2894)[_0x5c33('0x5e')](({cell:_0x1bf44a})=>_0x1bf44a),_0x163069=se(_0xe31904[_0x5c33('0x32')](_0x5ac3d1=>_0x5ac3d1[_0x5c33('0x10')](_0x5588ab))),_0x3fa97b=se(_0xe31904[_0x5c33('0x32')](_0x4c20f9=>!_0x4c20f9[_0x5c33('0x10')](_0x5588ab)))[_0x5c33('0x5e')](_0x318944=>_0x4f6bee['createRangeOn'](_0x318944)),_0x59efd5=_0x51763d[_0x5c33('0x9')](_0x3fa97b,_0x4dd371);if(_0x59efd5&&(_0x5c33('0x24')==_0x59efd5[_0x5c33('0x1c')]||_0x5c33('0x83')==_0x59efd5[_0x5c33('0x1c')])){const _0x285cd6=this['_getSuggestionCoords'](_0x59efd5);for(const _0x3c1a8f of _0x163069){const _0x367c24=_0x4f6bee[_0x5c33('0x57')](_0x3c1a8f),_0x6d097b=_0x1d8997['getCellLocation'](_0x3c1a8f),_0x1eec49=_0x3c1a8f[_0x5c33('0x42')](_0x5588ab)-0x1,_0x165a84=_0x285cd6[_0xa76333],_0xf693f9=_0x285cd6[_0x376b44];_0x165a84<=_0x6d097b[_0x1f0695]&&_0x6d097b[_0x1f0695]+_0x1eec49<=_0xf693f9&&_0x59efd5['addRange'](_0x367c24);}}});});}function _0x3af810(_0x286e25){const _0x2f99f6=Array[_0x5c33('0x45')](_0xc35a5[_0x5c33('0x18')]())[_0x5c33('0x5e')](_0x2eb970=>_0x28a563['fromRange'](_0x2eb970));_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x3d7a97=>{const _0x32928a=_0x3d7a97[_0x5c33('0x6a')];_0x286e25=_0x286e25['filter'](_0x20eac7=>_0x5c33('0x88')!=_0x20eac7['root'][_0x5c33('0x75')]),_0x3d7a97[_0x5c33('0x6f')](_0x286e25),_0x5baedb['commands']['get'](_0x5c33('0x16'))['refresh'](),_0x5baedb[_0x5c33('0x30')](_0x5c33('0x16'),{'forceDefaultExecution':!0x0}),_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x84')](()=>{_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x84')](_0x32928a,_0x2747e1=>{const _0x51773a=_0x2f99f6[_0x5c33('0x32')](_0x54585a=>_0x5c33('0x88')!=_0x54585a[_0x5c33('0x73')][_0x5c33('0x75')]);_0x51773a[_0x5c33('0x66')]>0x0&&_0x2747e1[_0x5c33('0x6f')](_0x51773a);for(const _0x18978b of _0x2f99f6)_0x18978b[_0x5c33('0x29')]();});});});}function _0x5136f0(_0x36de45){_0x5baedb[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x21eb87=>{const _0xf2a440=Array['from'](_0xc35a5[_0x5c33('0x18')]())[_0x5c33('0x5e')](_0x3755f3=>_0x28a563['fromRange'](_0x3755f3)),_0x4720d2=[];for(const _0x98c17c of _0x36de45)for(const _0x130e02 of _0x98c17c['getItems']({'shallow':!0x0}))_0x4720d2[_0x5c33('0x26')](_0x130e02);for(const _0x176708 of _0x4720d2)_0x5c33('0x88')!=_0x176708['root'][_0x5c33('0x75')]&&(_0x21eb87[_0x5c33('0x6f')](_0x21eb87[_0x5c33('0x58')](_0x176708,0x0)),_0x5baedb[_0x5c33('0x3b')]['get'](_0x5c33('0x31'))[_0x5c33('0x49')](),_0x5baedb[_0x5c33('0x30')](_0x5c33('0x31'),{'forceDefaultExecution':!0x0}));const _0x4234e5=_0xf2a440[_0x5c33('0x32')](_0x1450c0=>_0x5c33('0x88')!=_0x1450c0[_0x5c33('0x73')][_0x5c33('0x75')]);_0x4234e5[_0x5c33('0x66')]>0x0&&_0x21eb87[_0x5c33('0x6f')](_0x4234e5);for(const _0x4f1236 of _0xf2a440)_0x4f1236['detach']();});}function _0x31adcc(_0x2826ff,_0xc0964c){return _0xc0964c[_0x5c33('0x21')](_0xaacd12=>_0x2826ff['some'](_0x2b8683=>_0x2b8683[_0x5c33('0x51')][_0x5c33('0x79')](_0xaacd12[_0x5c33('0x36')])||_0xaacd12['end']['isEqual'](_0x2b8683[_0x5c33('0x36')])));}function _0x1f59de(_0xc01c1a,_0x5a22d4){return _0xc01c1a['some'](_0x533aad=>_0x5a22d4[_0x5c33('0x3')](_0x2528f6=>_0x533aad[_0x5c33('0x51')]['isTouching'](_0x2528f6[_0x5c33('0x36')])));}_0x5baedb[_0x5c33('0x22')]['downcastDispatcher']['on'](_0x5c33('0x3c'),(_0x481249,_0x4cc89d,_0x3dade4)=>{if(!_0x3dade4[_0x5c33('0x27')][_0x5c33('0x63')])return;const _0x4ff857=_0x4cc89d[_0x5c33('0x59')];if(!_0x4ff857)return;const _0x13851c=_0x3dade4[_0x5c33('0xb')][_0x5c33('0x17')](_0x4ff857);function _0x268d96(_0x4bca15){return Array[_0x5c33('0x13')](_0x4bca15)?_0x4bca15:[_0x4bca15];}_0x13851c&&_0x5c33('0x7a')===_0x4ff857[_0x5c33('0x3e')]&&_0x6f0d28(_0x13851c,_0x3dade4[_0x5c33('0x2')],(_0x419ce2,_0x2c80a8,_0x2db3f5)=>_0x2db3f5[_0x5c33('0x40')](_0x268d96(_0x2c80a8[_0x5c33('0x8a')]),_0x419ce2),(_0x4230c0,_0x150d72,_0x1a98c9)=>_0x1a98c9[_0x5c33('0x5')](_0x268d96(_0x150d72[_0x5c33('0x8a')]),_0x4230c0));},{'priority':_0x5c33('0x5d')}),_0x51763d[_0x5c33('0x87')][_0x5c33('0xd')](_0x39c959=>{if(_0x5c33('0x5b')!=_0x39c959['type']&&_0x5c33('0x1d')!=_0x39c959['type'])return;const _0x36db9f=_0x39c959[_0x5c33('0x4e')]();if(null!=_0x36db9f&&_0x36db9f['is']('element','table')){if(_0x5c33('0x5b')==_0x39c959[_0x5c33('0x37')]){const _0x1217a8=_0x39c959['getItems']()[_0x5c33('0x32')](_0x32cdc8=>_0x32cdc8['is'](_0x5c33('0x6e')))['map'](_0x1a9d8d=>_0x1a9d8d[_0x5c33('0x22')]);if(_0x1217a8[_0x5c33('0x66')])return{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,'*Insert:*\x20%0',_0x5f11b2(_0xa5792f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1217a8['join']('\x20')+'\x22'))};}if(_0x5c33('0x1d')==_0x39c959[_0x5c33('0x37')]){const _0x4cf330=_0x39c959[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x468c86=>_0x468c86['is']('$textProxy'))[_0x5c33('0x5e')](_0x19a2d4=>_0x19a2d4['data']);if(_0x4cf330[_0x5c33('0x66')])return{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x44'),'\x22'+_0x4cf330[_0x5c33('0xc')]('\x20')+'\x22'))};}}}),_0x51763d[_0x5c33('0x87')][_0x5c33('0xd')](_0x151fde=>{if('tableRow'==_0x151fde['subType']){const _0x2c75bb=_0x151fde[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x181bb3=>_0x181bb3['is']('$textProxy'))[_0x5c33('0x5e')](_0xd0ec78=>_0xd0ec78[_0x5c33('0x22')]),_0x536672=this['_getSuggestionCoords'](_0x151fde),_0x2e67c2=_0x536672[_0x5c33('0x7c')]-_0x536672[_0x5c33('0xf')]+0x1;if(_0x5c33('0x5b')==_0x151fde[_0x5c33('0x37')])return _0x2c75bb['length']?{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x2f'),[_0x2e67c2,'\x22'+_0x2c75bb[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,'ELEMENT_TABLE_ROW',_0x2e67c2))};if(_0x5c33('0x1d')==_0x151fde[_0x5c33('0x37')])return _0x2c75bb['length']?{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x2f'),[_0x2e67c2,'\x22'+_0x2c75bb['join']('\x20')+'\x22']))}:{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x7d'),_0x2e67c2))};}if('tableColumn'==_0x151fde[_0x5c33('0x1c')]){const _0x21463c=_0x151fde[_0x5c33('0x7f')]()[_0x5c33('0x32')](_0x352437=>_0x352437['is'](_0x5c33('0x6e')))['map'](_0x97982a=>_0x97982a['data']),_0x1de66c=this[_0x5c33('0x6d')](_0x151fde),_0x509452=_0x1de66c[_0x5c33('0x1e')]-_0x1de66c[_0x5c33('0x72')]+0x1;if('insertion'==_0x151fde[_0x5c33('0x37')])return _0x21463c[_0x5c33('0x66')]?{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x53'),[_0x509452,'\x22'+_0x21463c[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x5b'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x67'),_0x5f11b2(_0xa5792f,_0x5c33('0x2c'),_0x509452))};if(_0x5c33('0x1d')==_0x151fde[_0x5c33('0x37')])return _0x21463c[_0x5c33('0x66')]?{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,_0x5c33('0x4c'),_0x5f11b2(_0xa5792f,_0x5c33('0x53'),[_0x509452,'\x22'+_0x21463c[_0x5c33('0xc')]('\x20')+'\x22']))}:{'type':_0x5c33('0x1d'),'content':_0x5f11b2(_0xa5792f,'*Remove:*\x20%0',_0x5f11b2(_0xa5792f,_0x5c33('0x2c'),_0x509452))};}}),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),'tableRow',_0x5c33('0x6'),_0x3af810),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x24'),_0x5c33('0x4d'),_0x3af810),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),_0x5c33('0x83'),_0x5c33('0x6'),_0x5136f0),_0x51763d[_0x5c33('0x3d')]['registerCustomCallback'](_0x5c33('0x1d'),_0x5c33('0x83'),_0x5c33('0x4d'),_0x5136f0),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x5b'),_0x5c33('0x83'),_0x5c33('0xc'),_0x31adcc),_0x51763d[_0x5c33('0x3d')][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x83'),_0x5c33('0xc'),_0x31adcc),_0x51763d['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c33('0x24'),_0x5c33('0xc'),_0x1f59de),_0x51763d['_suggestionFactory'][_0x5c33('0x68')](_0x5c33('0x1d'),_0x5c33('0x24'),'join',_0x1f59de);}[_0x5c33('0x7e')](){const _0x14ebaa=this[_0x5c33('0x4f')],_0x576ad1=_0x14ebaa['model'][_0x5c33('0x28')][_0x5c33('0x1f')];return(_0x22ac47,_0x3ead17)=>{_0x14ebaa[_0x5c33('0x6c')][_0x5c33('0x8c')](_0x3183b5=>{const {commandName:_0xdf4e85,commandParams:_0x16e233}=_0x3ead17;let _0x5335bb=_0x22ac47[0x0]['end'][_0x5c33('0x82')];_0x16e233&&_0x16e233[0x0]&&!0x1===_0x16e233[0x0][_0x5c33('0x2d')]&&(_0x5335bb=_0x22ac47[0x0][_0x5c33('0x36')][_0x5c33('0x7b')]);const _0x4b11bd=_0x3183b5[_0x5c33('0x33')](_0x5335bb);if('$graveyard'==_0x4b11bd[_0x5c33('0x73')]['rootName'])return;const _0x386bad=Array[_0x5c33('0x45')](_0x576ad1['getRanges']())[_0x5c33('0x5e')](_0x49e056=>_0x28a563[_0x5c33('0x1')](_0x49e056));_0x3183b5[_0x5c33('0x6f')](_0x4b11bd),_0x14ebaa['commands'][_0x5c33('0x74')](_0xdf4e85)[_0x5c33('0x49')](),_0x16e233[_0x5c33('0x26')]({'forceDefaultExecution':!0x0}),_0x14ebaa[_0x5c33('0x30')](_0xdf4e85,..._0x16e233);const _0x56f28c=_0x386bad[_0x5c33('0x32')](_0x3af9ff=>_0x5c33('0x88')!=_0x3af9ff['root']['rootName']);_0x56f28c[_0x5c33('0x66')]>0x0&&_0x3183b5[_0x5c33('0x6f')](_0x56f28c);for(const _0x2876ee of _0x386bad)_0x2876ee['detach']();});};}[_0x5c33('0x6b')](_0x21d09e){const _0x2191b0=this[_0x5c33('0x4f')]['plugins'][_0x5c33('0x74')](_0x5c33('0x85'));let _0x4914ab=Number['MAX_SAFE_INTEGER'],_0x501bc0=Number[_0x5c33('0x77')],_0x2e7a9d=Number['MAX_SAFE_INTEGER'],_0x5b7fea=Number[_0x5c33('0x77')];for(const _0x3f86dd of _0x21d09e){if(_0x5c33('0x88')==_0x3f86dd[_0x5c33('0x73')][_0x5c33('0x75')])continue;const {row:_0x339b06,column:_0x57d66d}=_0x2191b0[_0x5c33('0x15')](_0x3f86dd),_0x57ac41=_0x3f86dd[_0x5c33('0x10')](_0x5c33('0x70'))?_0x3f86dd[_0x5c33('0x42')]('rowspan')-0x1:0x0,_0x44b413=_0x3f86dd[_0x5c33('0x10')](_0x5c33('0x46'))?_0x3f86dd['getAttribute'](_0x5c33('0x46'))-0x1:0x0;_0x4914ab=_0x339b06<_0x4914ab?_0x339b06:_0x4914ab,_0x501bc0=_0x339b06+_0x57ac41>_0x501bc0?_0x339b06+_0x57ac41:_0x501bc0,_0x2e7a9d=_0x57d66d<_0x2e7a9d?_0x57d66d:_0x2e7a9d,_0x5b7fea=_0x57d66d+_0x44b413>_0x5b7fea?_0x57d66d+_0x44b413:_0x5b7fea;}return{'minRow':_0x4914ab,'maxRow':_0x501bc0,'minColumn':_0x2e7a9d,'maxColumn':_0x5b7fea};}['_setupColumnsRowsFixing'](){const _0x59fc19=this[_0x5c33('0x4f')],_0x3db809=_0x59fc19['plugins'][_0x5c33('0x74')](_0x5c33('0x35')),_0x2d8db2=_0x59fc19[_0x5c33('0x39')][_0x5c33('0x74')](_0x5c33('0x85'));_0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')]['on'](_0x5c33('0x52'),()=>{const _0x491544=Array[_0x5c33('0x45')](_0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')][_0x5c33('0x80')][_0x5c33('0x8')]());for(const {name:_0x437c7e,data:_0x307555}of _0x491544){const {group:_0x1af539,id:_0x597c91,subType:_0x375c28}=_0x3db809[_0x5c33('0x54')](_0x437c7e);if(_0x5c33('0x2e')!=_0x1af539)continue;if(null!=_0x307555[_0x5c33('0x43')])continue;const _0x1eff3a=_0x3db809[_0x5c33('0x62')](_0x597c91);this[_0x5c33('0x5a')][_0x5c33('0x65')](_0x375c28)&&this[_0x5c33('0x38')][_0x5c33('0x41')](_0x1eff3a);}},{'priority':_0x5c33('0x56')});const _0x53ab1d=(_0x2bdd4b,_0x2d5199)=>{let _0x2dcb3f=!0x1;const _0x11a643=_0x2d5199['createRangeOn'](_0x2bdd4b),_0x3bcfa7=_0x2bdd4b[_0x5c33('0x86')](_0x5c33('0x48')),_0x5baa0b=_0x2d8db2[_0x5c33('0x15')](_0x2bdd4b);for(const _0x387810 of this[_0x5c33('0x38')]){const _0x24a242=_0x387810[_0x5c33('0x1c')],_0x30eb3c=_0x24a242['startsWith'](_0x5c33('0x60')),_0x4ff366=_0x24a242[_0x5c33('0x8b')](_0x30eb3c?0xa:0x5),_0x2f74f2=_0x4ff366[_0x5c33('0x12')](),_0x2647d7=_0x2f74f2[_0x5c33('0x8b')](0x0,0x3)+'span',_0x1362c8=_0x5c33('0x55')+_0x4ff366,_0x497f60=_0x5c33('0x76')+_0x4ff366;if(!_0x387810[_0x5c33('0x69')])continue;if(_0x3bcfa7!=_0x387810[_0x5c33('0x50')]()[_0x5c33('0x36')][_0x5c33('0x86')](_0x5c33('0x48')))continue;if(_0x387810[_0x5c33('0x1a')](_0x11a643))continue;const _0x298aee=_0x2bdd4b[_0x5c33('0x10')](_0x2647d7)?_0x2bdd4b[_0x5c33('0x42')](_0x2647d7)-0x1:0x0,_0x52ba0d=this['_getSuggestionCoords'](_0x387810),_0x3ebbb4=_0x52ba0d[_0x1362c8],_0x3f1c9a=_0x52ba0d[_0x497f60];_0x3ebbb4<=_0x5baa0b[_0x2f74f2]&&_0x5baa0b[_0x2f74f2]+_0x298aee<=_0x3f1c9a&&(_0x387810[_0x5c33('0x0')](_0x11a643),_0x2dcb3f=!0x0);}return _0x2dcb3f;};_0x59fc19['model'][_0x5c33('0x28')]['registerPostFixer'](_0x33b1db=>{let _0x4ce2be=!0x1;for(const _0x137be0 of _0x59fc19[_0x5c33('0x6c')][_0x5c33('0x28')]['differ'][_0x5c33('0x2a')]())if(_0x5c33('0x1b')==_0x137be0[_0x5c33('0x37')]){if(_0x5c33('0x24')==_0x137be0[_0x5c33('0x3e')])for(const _0x16afe8 of _0x137be0[_0x5c33('0x19')][_0x5c33('0x7b')][_0x5c33('0x4a')]())_0x4ce2be=_0x4ce2be||_0x53ab1d(_0x16afe8,_0x33b1db);else _0x5c33('0x7a')==_0x137be0[_0x5c33('0x3e')]&&(_0x4ce2be=_0x4ce2be||_0x53ab1d(_0x137be0['position'][_0x5c33('0x7b')],_0x33b1db));}return _0x4ce2be;});}['_getSuggestionCoords'](_0x4966a1){return this[_0x5c33('0x6b')](_0x4966a1[_0x5c33('0x18')]()[_0x5c33('0x5e')](_0x41372b=>_0x41372b[_0x5c33('0x36')][_0x5c33('0x7b')]));}}function se(_0x20c932){return Array[_0x5c33('0x45')](new Set(_0x20c932)[_0x5c33('0x47')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48be=['get','toggleTableCaption','requires','editor','TableCaptionEditing','TrackChangesEditing','afterInit','plugins'];(function(_0x3b288e,_0x48be08){const _0x4857d2=function(_0x3b4211){while(--_0x3b4211){_0x3b288e['push'](_0x3b288e['shift']());}};_0x4857d2(++_0x48be08);}(_0x48be,0x15c));const _0x4857=function(_0x3b288e,_0x48be08){_0x3b288e=_0x3b288e-0x0;let _0x4857d2=_0x48be[_0x3b288e];return _0x4857d2;};import{Plugin as _0x1f3369}from'ckeditor5/src/core';import _0x48628b from'./table';export default class Nt extends _0x1f3369{static get[_0x4857('0x6')](){return[_0x48628b];}[_0x4857('0x2')](){const _0x2493d2=this[_0x4857('0x7')];if(!_0x2493d2[_0x4857('0x3')]['has'](_0x4857('0x0')))return;_0x2493d2[_0x4857('0x3')][_0x4857('0x4')](_0x4857('0x1'))['enableCommand'](_0x4857('0x5'));}}
|