@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231127.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 _0x4821=['toLowerCase','add','registerElementLabel','insertTableColumnLeft','_suggestionFactory','differ','first','classes','enableCommand','some','ELEMENT_TABLE_COLUMN_WITH_TEXT','MIN_SAFE_INTEGER','addClass','refresh','last','plugins','insertTable','data','filter','mapper','showSuggestionHighlights','document','ELEMENT_TABLE','MAX_SAFE_INTEGER','afterInit','createTableWalker','removeClass','colspan','ELEMENT_TABLE_ROW_WITH_TEXT','rootName','nodeAfter','TableEditing','from','model','*Remove:*\x20%0','fromRange','removeTableRow','getContainedElement','isEqual','execute','setSelection','item','change','name','order','downcastDispatcher','selection','has','table','ELEMENT_TABLE_WITH_TEXT','writer','ELEMENT_TABLE_ROW','getColumnIndexes','above','getRowIndexes','every','map','_tableSuggestions','selectTableRow','addRange','$graveyard','includes','cell','findAncestor','highest','insert','getSelectionAffectedTableCells','$textProxy','minRow','getCellLocation','tablePaste','markMultiRangeDeletion','commands','addMarker:suggestion','tableRow','editor','_tablePostFixingSubtypes','position','selectTableColumn','nodeBefore','span','registerCustomCallback','TrackChangesEditing','batch','change:data','accept','join','registerDescriptionCallback','min','_descriptionFactory','isArray','createRangeIn','TableUtils','low','get','getRanges','max','rowspan','left','values','locale','*Insert:*\x20%0','_getSuggestionCoords','_splitMarkerName','tableCell','maxColumn','hasAttribute','length','isIntersectingWithRange','_getCoordsForCells','isTouching','subType','_setupColumnsRowsFixing','enqueueChange','getChangedMarkers','type','getSuggestion','substr','insertTableRowAbove','removeTableColumn','insertion','deletion','toViewElement','ELEMENT_TABLE_COLUMN','push','start','getAttribute','createRangeOn','getItems','end','_acceptFormatSuggestionCallbackFactory','root','getFirstRange','tableColumn','detach'];(function(_0x51af64,_0x4821c7){const _0x5973d8=function(_0x40e7df){while(--_0x40e7df){_0x51af64['push'](_0x51af64['shift']());}};_0x5973d8(++_0x4821c7);}(_0x4821,0x1bb));const _0x5973=function(_0x51af64,_0x4821c7){_0x51af64=_0x51af64-0x0;let _0x5973d8=_0x4821[_0x51af64];return _0x5973d8;};import{Plugin as _0x518a72}from'ckeditor5/src/core';import{LiveRange as _0x28d167}from'ckeditor5/src/engine';import{setHighlightHandling as _0x11a970}from'ckeditor5/src/widget';import{getTranslation as _0x3de8bf}from'../utils/common-translations';export default class wt extends _0x518a72{constructor(_0x2f986c){super(_0x2f986c),this[_0x5973('0x26')]=[_0x5973('0x24'),_0x5973('0x5f')],this[_0x5973('0x13')]=new Set();}[_0x5973('0x79')](){const _0x3beefc=this[_0x5973('0x25')],_0x41e2aa=_0x3beefc[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x8')];if(!_0x3beefc[_0x5973('0x70')][_0x5973('0x9')](_0x5973('0x80')))return;const _0x852002=_0x3beefc[_0x5973('0x3e')],_0xf2adaa=_0x3beefc[_0x5973('0x70')][_0x5973('0x38')](_0x5973('0x2c')),_0x1f29b9=_0x3beefc['plugins'][_0x5973('0x38')](_0x5973('0x36'));_0xf2adaa[_0x5973('0x33')][_0x5973('0x63')](_0x5973('0xa'),_0x4b4f7b=>_0x3de8bf(_0x852002,_0x5973('0x77'),_0x4b4f7b)),this[_0x5973('0x4a')](),_0xf2adaa[_0x5973('0x69')](_0x5973('0x71')),_0xf2adaa[_0x5973('0x69')](_0x5973('0x14')),_0xf2adaa[_0x5973('0x69')](_0x5973('0x28'));for(const _0x21b527 of[_0x5973('0x50'),'insertTableRowBelow']){const _0x498bce=_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x21b527);_0xf2adaa[_0x5973('0x69')](_0x21b527,_0x244c03=>{_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x2d5632=>{_0x244c03();const _0x556db5=_0x5973('0xf')===_0x498bce[_0x5973('0x6')],_0x4b3689=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x33658e=_0x1f29b9[_0x5973('0x10')](_0x4b3689),_0x33faf9=_0x556db5?_0x33658e[_0x5973('0x67')]-0x1:_0x33658e[_0x5973('0x6f')]+0x1,_0x4a0c9b=_0x4b3689[0x0]['findAncestor'](_0x5973('0xa')),_0x797dc2=_0x1f29b9[_0x5973('0x7a')](_0x4a0c9b,{'startRow':_0x33faf9,'endRow':_0x33faf9}),_0xe388c2=Array[_0x5973('0x81')](_0x797dc2)['map'](_0x22cc54=>_0x2d5632[_0x5973('0x59')](_0x22cc54[_0x5973('0x18')]));_0xf2adaa['markMultiRangeInsertion'](_0xe388c2,'tableRow');});});}for(const _0x42a373 of[_0x5973('0x64'),'insertTableColumnRight']){const _0x163b07=_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x42a373);_0xf2adaa[_0x5973('0x69')](_0x42a373,_0x2f04d7=>{_0x3beefc['model'][_0x5973('0x4')](_0xe7f689=>{_0x2f04d7();const _0x45dedf=_0x5973('0x3c')===_0x163b07[_0x5973('0x6')],_0x2a0235=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x5cb2d0=_0x1f29b9[_0x5973('0xe')](_0x2a0235),_0x30c73b=_0x45dedf?_0x5cb2d0[_0x5973('0x67')]-0x1:_0x5cb2d0[_0x5973('0x6f')]+0x1,_0x546709=_0x2a0235[0x0][_0x5973('0x19')]('table'),_0x2b3c13=_0x1f29b9[_0x5973('0x7a')](_0x546709,{'startRow':0x0,'column':_0x30c73b,'includeAllSlots':!0x1}),_0x5e7021=Array[_0x5973('0x81')](_0x2b3c13)[_0x5973('0x12')](_0x147867=>_0xe7f689[_0x5973('0x59')](_0x147867[_0x5973('0x18')]));_0xf2adaa['markMultiRangeInsertion'](_0x5e7021,_0x5973('0x5f'));});});}for(const _0x395103 of[_0x5973('0x85'),'removeTableColumn']){const _0x4ee6de=_0x395103[_0x5973('0x4f')](0xb),_0x2a474b=_0x4ee6de[_0x5973('0x61')](),_0xa7b274=_0x2a474b[_0x5973('0x4f')](0x0,0x3)+_0x5973('0x2a'),_0x51f2e9=_0x5973('0xa')+_0x4ee6de,_0x4d87ad='min'+_0x4ee6de,_0x1d3e0b=_0x5973('0x3a')+_0x4ee6de;_0xf2adaa['enableCommand'](_0x395103,()=>{_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x4a6b41=>{const _0x4b028d=_0x1f29b9[_0x5973('0x1c')](_0x41e2aa),_0x386b76=_0x4b028d[0x0][_0x5973('0x19')](_0x5973('0xa'));let _0x5b0a19;if(_0x5973('0x85')==_0x395103){const _0x5868a7=_0x1f29b9[_0x5973('0x10')](_0x4b028d);_0x5b0a19={'startRow':_0x5868a7[_0x5973('0x67')],'endRow':_0x5868a7[_0x5973('0x6f')],'includeAllSlots':!0x0};}else{const _0x42ca79=_0x1f29b9[_0x5973('0xe')](_0x4b028d);_0x5b0a19={'startColumn':_0x42ca79['first'],'endColumn':_0x42ca79[_0x5973('0x6f')],'includeAllSlots':!0x0};}const _0x19ca87=_0x1f29b9[_0x5973('0x7a')](_0x386b76,_0x5b0a19),_0x2f0801=Array[_0x5973('0x81')](_0x19ca87)[_0x5973('0x12')](({cell:_0x1b6288})=>_0x1b6288),_0x505f82=se(_0x2f0801['filter'](_0x119c3b=>_0x119c3b[_0x5973('0x44')](_0xa7b274))),_0xdee404=se(_0x2f0801[_0x5973('0x73')](_0x191fb3=>!_0x191fb3[_0x5973('0x44')](_0xa7b274)))[_0x5973('0x12')](_0x1752f9=>_0x4a6b41[_0x5973('0x59')](_0x1752f9)),_0x3bb418=_0xf2adaa[_0x5973('0x21')](_0xdee404,_0x51f2e9);if(_0x3bb418&&('tableRow'==_0x3bb418['subType']||_0x5973('0x5f')==_0x3bb418['subType'])){const _0x508879=this['_getSuggestionCoords'](_0x3bb418);for(const _0x3a92d7 of _0x505f82){const _0x116c64=_0x4a6b41[_0x5973('0x59')](_0x3a92d7),_0x25c110=_0x1f29b9[_0x5973('0x1f')](_0x3a92d7),_0xb074e0=_0x3a92d7[_0x5973('0x58')](_0xa7b274)-0x1,_0x4a5e74=_0x508879[_0x4d87ad],_0x4aac38=_0x508879[_0x1d3e0b];_0x4a5e74<=_0x25c110[_0x2a474b]&&_0x25c110[_0x2a474b]+_0xb074e0<=_0x4aac38&&_0x3bb418[_0x5973('0x15')](_0x116c64);}}});});}function _0x2039e5(_0x5ca2a0){const _0x3fd7d4=Array['from'](_0x41e2aa[_0x5973('0x39')]())[_0x5973('0x12')](_0x319739=>_0x28d167[_0x5973('0x84')](_0x319739));_0x3beefc[_0x5973('0x82')]['change'](_0x4c2b4a=>{const _0x4f4cad=_0x4c2b4a[_0x5973('0x2d')];_0x5ca2a0=_0x5ca2a0[_0x5973('0x73')](_0x3602b2=>_0x5973('0x16')!=_0x3602b2[_0x5973('0x5d')][_0x5973('0x7e')]),_0x4c2b4a[_0x5973('0x2')](_0x5ca2a0),_0x3beefc[_0x5973('0x22')][_0x5973('0x38')](_0x5973('0x85'))[_0x5973('0x6e')](),_0x3beefc[_0x5973('0x1')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3beefc[_0x5973('0x82')][_0x5973('0x4b')](()=>{_0x3beefc['model'][_0x5973('0x4b')](_0x4f4cad,_0x30e6fd=>{const _0x18386a=_0x3fd7d4[_0x5973('0x73')](_0x102384=>_0x5973('0x16')!=_0x102384[_0x5973('0x5d')]['rootName']);_0x18386a[_0x5973('0x45')]>0x0&&_0x30e6fd[_0x5973('0x2')](_0x18386a);for(const _0xe94797 of _0x3fd7d4)_0xe94797[_0x5973('0x60')]();});});});}function _0x33ba81(_0x1f47ea){_0x3beefc[_0x5973('0x82')][_0x5973('0x4')](_0x3501e6=>{const _0x1ff494=Array[_0x5973('0x81')](_0x41e2aa['getRanges']())['map'](_0x222698=>_0x28d167[_0x5973('0x84')](_0x222698)),_0x179653=[];for(const _0x408f1d of _0x1f47ea)for(const _0x41ca7e of _0x408f1d[_0x5973('0x5a')]({'shallow':!0x0}))_0x179653[_0x5973('0x56')](_0x41ca7e);for(const _0x25cbb7 of _0x179653)_0x5973('0x16')!=_0x25cbb7[_0x5973('0x5d')]['rootName']&&(_0x3501e6[_0x5973('0x2')](_0x3501e6['createPositionAt'](_0x25cbb7,0x0)),_0x3beefc[_0x5973('0x22')][_0x5973('0x38')]('removeTableColumn')['refresh'](),_0x3beefc['execute'](_0x5973('0x51'),{'forceDefaultExecution':!0x0}));const _0x18c06c=_0x1ff494[_0x5973('0x73')](_0x376da1=>'$graveyard'!=_0x376da1[_0x5973('0x5d')][_0x5973('0x7e')]);_0x18c06c[_0x5973('0x45')]>0x0&&_0x3501e6['setSelection'](_0x18c06c);for(const _0x3380d3 of _0x1ff494)_0x3380d3[_0x5973('0x60')]();});}function _0x4e8db6(_0x44f451,_0x2d6b83){return _0x2d6b83[_0x5973('0x11')](_0x24908e=>_0x44f451[_0x5973('0x6a')](_0x1186d6=>_0x1186d6[_0x5973('0x5b')][_0x5973('0x0')](_0x24908e[_0x5973('0x57')])||_0x24908e['end']['isEqual'](_0x1186d6[_0x5973('0x57')])));}function _0x37f0be(_0x1a65bc,_0x328079){return _0x1a65bc[_0x5973('0x6a')](_0x1e4f13=>_0x328079[_0x5973('0x6a')](_0x5b3766=>_0x1e4f13['end'][_0x5973('0x48')](_0x5b3766[_0x5973('0x57')])));}_0x3beefc[_0x5973('0x72')][_0x5973('0x7')]['on'](_0x5973('0x23'),(_0x4dc4bf,_0x1d5fee,_0x576f0e)=>{if(!_0x576f0e['options'][_0x5973('0x75')])return;const _0x55ec37=_0x1d5fee[_0x5973('0x3')];if(!_0x55ec37)return;const _0x29b5e=_0x576f0e[_0x5973('0x74')][_0x5973('0x54')](_0x55ec37);function _0x19730f(_0x5ed1f7){return Array[_0x5973('0x34')](_0x5ed1f7)?_0x5ed1f7:[_0x5ed1f7];}_0x29b5e&&_0x5973('0x42')===_0x55ec37[_0x5973('0x5')]&&_0x11a970(_0x29b5e,_0x576f0e[_0x5973('0xc')],(_0x4b1b56,_0x2154bd,_0x2b08cb)=>_0x2b08cb[_0x5973('0x6d')](_0x19730f(_0x2154bd[_0x5973('0x68')]),_0x4b1b56),(_0x4ce60b,_0x2d0a5a,_0x51d6ec)=>_0x51d6ec[_0x5973('0x7b')](_0x19730f(_0x2d0a5a[_0x5973('0x68')]),_0x4ce60b));},{'priority':_0x5973('0x1a')}),_0xf2adaa[_0x5973('0x33')][_0x5973('0x31')](_0xc3cfda=>{if(_0x5973('0x52')!=_0xc3cfda[_0x5973('0x4d')]&&_0x5973('0x53')!=_0xc3cfda[_0x5973('0x4d')])return;const _0x36556f=_0xc3cfda[_0x5973('0x86')]();if(null!=_0x36556f&&_0x36556f['is']('element',_0x5973('0xa'))){if(_0x5973('0x52')==_0xc3cfda[_0x5973('0x4d')]){const _0x52d3d0=_0xc3cfda[_0x5973('0x5a')]()[_0x5973('0x73')](_0x3cb35a=>_0x3cb35a['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x2e11b9=>_0x2e11b9[_0x5973('0x72')]);if(_0x52d3d0[_0x5973('0x45')])return{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,_0x5973('0xb'),'\x22'+_0x52d3d0['join']('\x20')+'\x22'))};}if(_0x5973('0x53')==_0xc3cfda['type']){const _0x163407=_0xc3cfda[_0x5973('0x5a')]()[_0x5973('0x73')](_0x8a073d=>_0x8a073d['is']('$textProxy'))[_0x5973('0x12')](_0x4bf0e0=>_0x4bf0e0['data']);if(_0x163407['length'])return{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0xb'),'\x22'+_0x163407[_0x5973('0x30')]('\x20')+'\x22'))};}}}),_0xf2adaa[_0x5973('0x33')][_0x5973('0x31')](_0x2e7c35=>{if(_0x5973('0x24')==_0x2e7c35[_0x5973('0x49')]){const _0x300ce8=_0x2e7c35[_0x5973('0x5a')]()[_0x5973('0x73')](_0x3401b0=>_0x3401b0['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x123d3d=>_0x123d3d['data']),_0xce42d2=this[_0x5973('0x40')](_0x2e7c35),_0x4453f4=_0xce42d2['maxRow']-_0xce42d2[_0x5973('0x1e')]+0x1;if('insertion'==_0x2e7c35[_0x5973('0x4d')])return _0x300ce8[_0x5973('0x45')]?{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,'*Insert:*\x20%0',_0x3de8bf(_0x852002,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4453f4,'\x22'+_0x300ce8['join']('\x20')+'\x22']))}:{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,'*Insert:*\x20%0',_0x3de8bf(_0x852002,_0x5973('0xd'),_0x4453f4))};if(_0x5973('0x53')==_0x2e7c35['type'])return _0x300ce8[_0x5973('0x45')]?{'type':_0x5973('0x53'),'content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0x7d'),[_0x4453f4,'\x22'+_0x300ce8[_0x5973('0x30')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0xd'),_0x4453f4))};}if(_0x5973('0x5f')==_0x2e7c35[_0x5973('0x49')]){const _0x14d604=_0x2e7c35[_0x5973('0x5a')]()[_0x5973('0x73')](_0x46d82f=>_0x46d82f['is'](_0x5973('0x1d')))[_0x5973('0x12')](_0x881815=>_0x881815['data']),_0x545eef=this['_getSuggestionCoords'](_0x2e7c35),_0x36881b=_0x545eef[_0x5973('0x43')]-_0x545eef['minColumn']+0x1;if(_0x5973('0x52')==_0x2e7c35[_0x5973('0x4d')])return _0x14d604[_0x5973('0x45')]?{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,_0x5973('0x6b'),[_0x36881b,'\x22'+_0x14d604[_0x5973('0x30')]('\x20')+'\x22']))}:{'type':_0x5973('0x52'),'content':_0x3de8bf(_0x852002,_0x5973('0x3f'),_0x3de8bf(_0x852002,'ELEMENT_TABLE_COLUMN',_0x36881b))};if('deletion'==_0x2e7c35[_0x5973('0x4d')])return _0x14d604[_0x5973('0x45')]?{'type':'deletion','content':_0x3de8bf(_0x852002,_0x5973('0x83'),_0x3de8bf(_0x852002,_0x5973('0x6b'),[_0x36881b,'\x22'+_0x14d604['join']('\x20')+'\x22']))}:{'type':_0x5973('0x53'),'content':_0x3de8bf(_0x852002,'*Remove:*\x20%0',_0x3de8bf(_0x852002,_0x5973('0x55'),_0x36881b))};}}),_0xf2adaa['_suggestionFactory']['registerCustomCallback'](_0x5973('0x52'),_0x5973('0x24'),'discard',_0x2039e5),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),'tableRow',_0x5973('0x2f'),_0x2039e5),_0xf2adaa[_0x5973('0x65')]['registerCustomCallback'](_0x5973('0x52'),_0x5973('0x5f'),'discard',_0x33ba81),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),_0x5973('0x5f'),_0x5973('0x2f'),_0x33ba81),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x52'),_0x5973('0x5f'),_0x5973('0x30'),_0x4e8db6),_0xf2adaa['_suggestionFactory']['registerCustomCallback']('deletion',_0x5973('0x5f'),_0x5973('0x30'),_0x4e8db6),_0xf2adaa['_suggestionFactory'][_0x5973('0x2b')](_0x5973('0x52'),_0x5973('0x24'),'join',_0x37f0be),_0xf2adaa[_0x5973('0x65')][_0x5973('0x2b')](_0x5973('0x53'),_0x5973('0x24'),_0x5973('0x30'),_0x37f0be);}[_0x5973('0x5c')](){const _0x87bdee=this[_0x5973('0x25')],_0x50479d=_0x87bdee[_0x5973('0x82')]['document'][_0x5973('0x8')];return(_0x3c8b7e,_0x361372)=>{_0x87bdee[_0x5973('0x82')][_0x5973('0x4')](_0x1928f0=>{const {commandName:_0x12c909,commandParams:_0x2e79fd}=_0x361372;let _0x129e06=_0x3c8b7e[0x0][_0x5973('0x5b')][_0x5973('0x29')];_0x2e79fd&&_0x2e79fd[0x0]&&!0x1===_0x2e79fd[0x0]['forceValue']&&(_0x129e06=_0x3c8b7e[0x0][_0x5973('0x57')][_0x5973('0x7f')]);const _0x351e7f=_0x1928f0[_0x5973('0x35')](_0x129e06);if(_0x5973('0x16')==_0x351e7f['root'][_0x5973('0x7e')])return;const _0x3feb95=Array['from'](_0x50479d['getRanges']())[_0x5973('0x12')](_0x31f011=>_0x28d167['fromRange'](_0x31f011));_0x1928f0['setSelection'](_0x351e7f),_0x87bdee[_0x5973('0x22')][_0x5973('0x38')](_0x12c909)[_0x5973('0x6e')](),_0x2e79fd[_0x5973('0x56')]({'forceDefaultExecution':!0x0}),_0x87bdee['execute'](_0x12c909,..._0x2e79fd);const _0x565ce5=_0x3feb95[_0x5973('0x73')](_0x313d61=>_0x5973('0x16')!=_0x313d61[_0x5973('0x5d')][_0x5973('0x7e')]);_0x565ce5[_0x5973('0x45')]>0x0&&_0x1928f0['setSelection'](_0x565ce5);for(const _0x48631d of _0x3feb95)_0x48631d[_0x5973('0x60')]();});};}[_0x5973('0x47')](_0x3aff5d){const _0x5a4173=this[_0x5973('0x25')]['plugins']['get']('TableUtils');let _0x53d0c2=Number[_0x5973('0x78')],_0x1bcc8d=Number[_0x5973('0x6c')],_0x2ccb2b=Number['MAX_SAFE_INTEGER'],_0x34e011=Number[_0x5973('0x6c')];for(const _0x193cb5 of _0x3aff5d){if('$graveyard'==_0x193cb5[_0x5973('0x5d')]['rootName'])continue;const {row:_0x4ba841,column:_0x916b1d}=_0x5a4173[_0x5973('0x1f')](_0x193cb5),_0x5bad45=_0x193cb5[_0x5973('0x44')](_0x5973('0x3b'))?_0x193cb5[_0x5973('0x58')](_0x5973('0x3b'))-0x1:0x0,_0x402ea3=_0x193cb5[_0x5973('0x44')](_0x5973('0x7c'))?_0x193cb5['getAttribute']('colspan')-0x1:0x0;_0x53d0c2=_0x4ba841<_0x53d0c2?_0x4ba841:_0x53d0c2,_0x1bcc8d=_0x4ba841+_0x5bad45>_0x1bcc8d?_0x4ba841+_0x5bad45:_0x1bcc8d,_0x2ccb2b=_0x916b1d<_0x2ccb2b?_0x916b1d:_0x2ccb2b,_0x34e011=_0x916b1d+_0x402ea3>_0x34e011?_0x916b1d+_0x402ea3:_0x34e011;}return{'minRow':_0x53d0c2,'maxRow':_0x1bcc8d,'minColumn':_0x2ccb2b,'maxColumn':_0x34e011};}['_setupColumnsRowsFixing'](){const _0x3a5dab=this[_0x5973('0x25')],_0x4493da=_0x3a5dab['plugins'][_0x5973('0x38')](_0x5973('0x2c')),_0x1497f5=_0x3a5dab[_0x5973('0x70')][_0x5973('0x38')]('TableUtils');_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')]['on'](_0x5973('0x2e'),()=>{const _0x4f2321=Array['from'](_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x66')][_0x5973('0x4c')]());for(const {name:_0x4b19fe,data:_0x3f7947}of _0x4f2321){const {group:_0x2ee6ec,id:_0x476e1f,subType:_0x53b268}=_0x4493da[_0x5973('0x41')](_0x4b19fe);if('suggestion'!=_0x2ee6ec)continue;if(null!=_0x3f7947['oldRange'])continue;const _0x2b7064=_0x4493da[_0x5973('0x4e')](_0x476e1f);this[_0x5973('0x26')][_0x5973('0x17')](_0x53b268)&&this[_0x5973('0x13')][_0x5973('0x62')](_0x2b7064);}},{'priority':_0x5973('0x37')});const _0x176a8c=(_0x5b36b2,_0x1079b8)=>{let _0x3afca0=!0x1;const _0x487992=_0x1079b8['createRangeOn'](_0x5b36b2),_0x31cef2=_0x5b36b2[_0x5973('0x19')](_0x5973('0xa')),_0x6fa5c4=_0x1497f5[_0x5973('0x1f')](_0x5b36b2);for(const _0x3f7174 of this['_tableSuggestions']){const _0x1626da=_0x3f7174[_0x5973('0x49')],_0xe8cf92=_0x1626da['startsWith'](_0x5973('0x20')),_0x40cc82=_0x1626da[_0x5973('0x4f')](_0xe8cf92?0xa:0x5),_0x1febc3=_0x40cc82['toLowerCase'](),_0x41bb27=_0x1febc3['substr'](0x0,0x3)+'span',_0x5162eb=_0x5973('0x32')+_0x40cc82,_0x53cffb=_0x5973('0x3a')+_0x40cc82;if(!_0x3f7174['isInContent'])continue;if(_0x31cef2!=_0x3f7174[_0x5973('0x5e')]()[_0x5973('0x57')][_0x5973('0x19')]('table'))continue;if(_0x3f7174[_0x5973('0x46')](_0x487992))continue;const _0x433a65=_0x5b36b2[_0x5973('0x44')](_0x41bb27)?_0x5b36b2['getAttribute'](_0x41bb27)-0x1:0x0,_0x1c0831=this[_0x5973('0x40')](_0x3f7174),_0x59126e=_0x1c0831[_0x5162eb],_0x441e49=_0x1c0831[_0x53cffb];_0x59126e<=_0x6fa5c4[_0x1febc3]&&_0x6fa5c4[_0x1febc3]+_0x433a65<=_0x441e49&&(_0x3f7174[_0x5973('0x15')](_0x487992),_0x3afca0=!0x0);}return _0x3afca0;};_0x3a5dab[_0x5973('0x82')][_0x5973('0x76')]['registerPostFixer'](_0x841c91=>{let _0x2692dd=!0x1;for(const _0x2fc691 of _0x3a5dab[_0x5973('0x82')][_0x5973('0x76')][_0x5973('0x66')]['getChanges']())if(_0x5973('0x1b')==_0x2fc691[_0x5973('0x4d')]){if(_0x5973('0x24')==_0x2fc691['name'])for(const _0x200fbe of _0x2fc691[_0x5973('0x27')][_0x5973('0x7f')]['getChildren']())_0x2692dd=_0x2692dd||_0x176a8c(_0x200fbe,_0x841c91);else _0x5973('0x42')==_0x2fc691['name']&&(_0x2692dd=_0x2692dd||_0x176a8c(_0x2fc691['position']['nodeAfter'],_0x841c91));}return _0x2692dd;});}[_0x5973('0x40')](_0x52c27e){return this[_0x5973('0x47')](_0x52c27e[_0x5973('0x39')]()['map'](_0x5818d5=>_0x5818d5[_0x5973('0x57')][_0x5973('0x7f')]));}}function se(_0x4c7935){return Array['from'](new Set(_0x4c7935)[_0x5973('0x3d')]());}
|
|
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'));}}
|