@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.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 +10 -8
- 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/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.d.ts +3 -2
- 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.d.ts +3 -2
- 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/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +3 -2
- 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.d.ts +3 -2
- 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.d.ts +3 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +3 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +3 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +3 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +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.d.ts +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +4 -5
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +49 -5
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +5 -5
- 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.d.ts +0 -2
- 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 _0x1ffd=['ELEMENT_BULLETED_LIST','commands','filter','*Change\x20to:*\x20%0','get','getAttribute','findIndex','add','model','execute','ELEMENT_TODO_LIST','registerElementLabel','TodoListEditing','commandParams','locale','nextSibling','from','paragraph','name','bulletedList','selection','indentList','push','ListEditing','slice','blockName','length','commandName','element','listIndent','value','outdentList','todoList','_descriptionFactory','ELEMENT_NUMBERED_LIST','afterInit','change','previousSibling','*Indent:*\x20%0','before','getSelectedBlocks','registerDescriptionCallback','todo','schema','ELEMENT_LIST_ITEM','plugins','listType','end','checkTodoList','enableCommand','_selectedElements','markBlockFormat','has','createPositionAt','TrackChangesEditing','document','format','forceValue','listItem','createRange','numberedList'];(function(_0x17a6a1,_0x1ffdfe){const _0x298417=function(_0x55b65d){while(--_0x55b65d){_0x17a6a1['push'](_0x17a6a1['shift']());}};_0x298417(++_0x1ffdfe);}(_0x1ffd,0xc7));const _0x2984=function(_0x17a6a1,_0x1ffdfe){_0x17a6a1=_0x17a6a1-0x0;let _0x298417=_0x1ffd[_0x17a6a1];return _0x298417;};import{Plugin as _0x5ee380}from'ckeditor5/src/core';import{getTranslation as _0x41df16}from'../utils/common-translations';export default class st extends _0x5ee380{[_0x2984('0x13')](){const _0x286b07=this['editor'],_0x25403a=_0x286b07[_0x2984('0x3b')];if(!_0x286b07['plugins'][_0x2984('0x24')](_0x2984('0x7')))return;const _0x48aabc=_0x286b07['plugins'][_0x2984('0x31')](_0x2984('0x26')),_0x54e5cc=_0x286b07[_0x2984('0x1d')][_0x2984('0x24')](_0x2984('0x39'));function _0x5c5edf(_0x4d34fb){return()=>{const _0x7a8a5b=_0x286b07[_0x2984('0x35')][_0x2984('0x27')][_0x2984('0x4')],_0x4d15f2=_0x286b07['commands'][_0x2984('0x31')](_0x4d34fb);if(_0x4d15f2[_0x2984('0xe')])return void _0x286b07[_0x2984('0x36')](_0x2984('0x1'),{});const _0x3c1487=_0x4d34fb['slice'](0x0,-0x4),_0x1fd61b=function(_0x120daf,_0x57c99a,_0x49f215){let _0x52f121=Array[_0x2984('0x0')](_0x120daf)[_0x2984('0x2f')](_0x5a428e=>function(_0x5b7df7,_0x4ba206){return _0x4ba206['checkChild'](_0x5b7df7['parent'],_0x2984('0x2a'))&&!_0x4ba206['isObject'](_0x5b7df7);}(_0x5a428e,_0x49f215));_0x52f121=_0x52f121['filter'](_0x47e673=>!_0x47e673['is'](_0x2984('0xc'),'listItem')||_0x47e673[_0x2984('0x32')](_0x2984('0x1e'))!=_0x57c99a);const _0x46f9cd=new Set();for(const _0x3fb217 of _0x52f121)_0x3fb217['is'](_0x2984('0xc'),_0x2984('0x2a'))?_0x46f9cd['add'](ne(_0x3fb217)):_0x46f9cd['add'](_0x3fb217);return Array['from'](_0x46f9cd);}(_0x7a8a5b['getSelectedBlocks'](),_0x3c1487,_0x286b07[_0x2984('0x35')][_0x2984('0x1b')]);_0x286b07[_0x2984('0x35')][_0x2984('0x14')](()=>{for(const _0x25592a of _0x1fd61b)_0x48aabc[_0x2984('0x23')](_0x25592a,{'commandName':_0x4d34fb,'commandParams':[{'forceValue':!_0x4d15f2[_0x2984('0xe')]}],'formatGroupId':_0x2984('0x9')},oe(_0x25592a));});};}function _0x361360(_0x39aa09){return()=>{const _0x49cf23=function(_0x3c9488){let _0x41c5b7=Array[_0x2984('0x0')](_0x3c9488);const _0x4226bb=_0x41c5b7[_0x2984('0x33')](_0x7680cc=>_0x2984('0x2a')!=_0x7680cc[_0x2984('0x2')]);return _0x4226bb>-0x1&&(_0x41c5b7=_0x41c5b7[_0x2984('0x8')](0x0,_0x4226bb)),_0x41c5b7;}(_0x286b07[_0x2984('0x35')][_0x2984('0x27')][_0x2984('0x4')][_0x2984('0x18')]()),_0x3a9b7f=_0x286b07['model'][_0x2984('0x2b')](_0x286b07[_0x2984('0x35')][_0x2984('0x25')](_0x49cf23[0x0],_0x2984('0x17')),_0x286b07['model'][_0x2984('0x25')](_0x49cf23[_0x49cf23[_0x2984('0xa')]-0x1],_0x2984('0x1f')));_0x286b07[_0x2984('0x35')][_0x2984('0x14')](()=>{_0x48aabc[_0x2984('0x23')](_0x3a9b7f,{'commandName':_0x39aa09,'commandParams':[],'formatGroupId':_0x2984('0xd')},function(_0x42994a){const _0x137028=new Set();for(const _0xfc754 of _0x42994a){let _0x34c635=_0xfc754[_0x2984('0x3c')];for(;_0x34c635&&_0x34c635[_0x2984('0x32')]('listIndent')>_0xfc754[_0x2984('0x32')](_0x2984('0xd'));)_0x137028[_0x2984('0x34')](_0x34c635),_0x34c635=_0x34c635[_0x2984('0x3c')];}return Array['from'](_0x137028);}(_0x49cf23));});};}_0x48aabc[_0x2984('0x21')]('numberedList',_0x5c5edf(_0x2984('0x2c'))),_0x48aabc['enableCommand'](_0x2984('0x3'),_0x5c5edf(_0x2984('0x3'))),_0x54e5cc&&_0x48aabc['enableCommand'](_0x2984('0x10'),_0x5c5edf(_0x2984('0x10'))),_0x48aabc[_0x2984('0x21')](_0x2984('0x5'),_0x361360(_0x2984('0x5'))),_0x48aabc[_0x2984('0x21')](_0x2984('0xf'),_0x361360(_0x2984('0xf'))),_0x54e5cc&&_0x48aabc[_0x2984('0x21')]('checkTodoList',()=>{const _0x22af17=_0x286b07[_0x2984('0x2e')][_0x2984('0x31')](_0x2984('0x20')),_0x261709=Array[_0x2984('0x0')](_0x22af17[_0x2984('0x22')]);_0x261709['filter'](_0x544966=>_0x544966[_0x2984('0x32')]('todoListChecked')!=_0x22af17['value']),_0x286b07[_0x2984('0x35')]['change'](()=>{for(const _0x3fabc8 of _0x261709)_0x48aabc[_0x2984('0x23')](_0x3fabc8,{'commandName':_0x2984('0x20'),'commandParams':[{'forceValue':!_0x22af17['value']}]});});}),_0x48aabc[_0x2984('0x11')][_0x2984('0x38')](_0x2984('0x2a'),_0x3e77f7=>_0x41df16(_0x25403a,_0x2984('0x1c'),_0x3e77f7)),_0x48aabc[_0x2984('0x11')][_0x2984('0x19')](_0x4c718d=>{const {data:_0x88ed80}=_0x4c718d;if(_0x88ed80){if(_0x2984('0x2c')==_0x88ed80[_0x2984('0xb')]||_0x2984('0x3')==_0x88ed80['commandName']||_0x2984('0x10')==_0x88ed80[_0x2984('0xb')])switch(_0x88ed80['commandName']['replace']('List','')){case'bulleted':return _0x557152(_0x41df16(_0x25403a,_0x2984('0x2d')));case'numbered':return _0x557152(_0x41df16(_0x25403a,_0x2984('0x12')));case _0x2984('0x1a'):return _0x557152(_0x41df16(_0x25403a,_0x2984('0x37')));}if(_0x2984('0x5')==_0x88ed80[_0x2984('0xb')])return{'type':_0x2984('0x28'),'content':_0x41df16(_0x25403a,_0x2984('0x16'),_0x41df16(_0x25403a,_0x2984('0x1c')))};if(_0x2984('0xf')==_0x88ed80['commandName'])return{'type':_0x2984('0x28'),'content':_0x41df16(_0x25403a,'*Outdent:*\x20%0',_0x41df16(_0x25403a,_0x2984('0x1c')))};if('checkTodoList'==_0x88ed80[_0x2984('0xb')])return _0x88ed80[_0x2984('0x3a')][0x0][_0x2984('0x29')]?{'type':_0x2984('0x28'),'content':_0x41df16(_0x25403a,'*Check\x20item*')}:{'type':_0x2984('0x28'),'content':_0x41df16(_0x25403a,'*Uncheck\x20item*')};}function _0x557152(_0xb7457b){return{'type':_0x2984('0x28'),'content':_0x41df16(_0x25403a,_0x2984('0x30'),_0xb7457b)};}});}}function ne(_0x3b557d){const _0x144c3c=_0x3b557d[_0x2984('0x32')](_0x2984('0xd'));if(0x0==_0x144c3c)return _0x3b557d;let _0x5defcd=_0x3b557d;for(;_0x3b557d[_0x2984('0x15')]&&_0x3b557d['previousSibling']['is'](_0x2984('0xc'),_0x2984('0x2a'));){const _0x1f5210=_0x3b557d['previousSibling'][_0x2984('0x32')]('listIndent');if(_0x1f5210==_0x144c3c)_0x5defcd=_0x3b557d[_0x2984('0x15')];else{if(_0x1f5210<_0x144c3c)break;}_0x3b557d=_0x3b557d[_0x2984('0x15')];}return _0x5defcd;}function oe(_0x17961a){const _0x1ea7cd=[];if(_0x17961a['is'](_0x2984('0xc'),_0x2984('0x2a'))&&_0x17961a[_0x2984('0x32')]('listIndent')>0x0){let _0x1374e5=_0x17961a[_0x2984('0x3c')];for(;_0x1374e5&&'listItem'==_0x1374e5[_0x2984('0x2')]&&_0x1374e5['getAttribute']('listIndent')==_0x17961a[_0x2984('0x32')](_0x2984('0xd'));)_0x1ea7cd[_0x2984('0x6')](_0x1374e5),_0x1374e5=_0x1374e5[_0x2984('0x3c')];}return _0x1ea7cd;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ce8=['_getSuggestionBlocks','from','_getTranslationKeyForListStyle','registerDescriptionCallback','commandName','length','ELEMENT_','has','map','document','listStyle','*Format:*\x20set\x20order\x20to\x20reversed','type','_descriptionFactory','*Change\x20to:*\x20%0','getFirstPosition','parent','listReversed','commandParams','reversed','listItem','handleListReversedCommand','getListTypeFromListStyleType','startIndex','backward','before','afterInit','getSiblingNodes','selection','handleListStyleCommand','_getSuggestionBlocksForListStyle','listStart','toUpperCase','listType','flat','change','list.properties','plugins','element','ListPropertiesEditing','getLastPosition','numbered','replace','createRange','bind','handleListStartCommand','*Format:*\x20set\x20order\x20to\x20regular','ListUtils','editor','*Format:*\x20set\x20start\x20index\x20to\x20%0','getSelectedBlocks','get','markMultiRangeBlockFormat','config','createPositionAt','model','filter','TrackChangesEditing','getAttribute','format','enableCommand','forward','locale','handleDescriptions','push'];(function(_0xa31cd5,_0x2ce8f2){const _0x9a48b0=function(_0x29394c){while(--_0x29394c){_0xa31cd5['push'](_0xa31cd5['shift']());}};_0x9a48b0(++_0x2ce8f2);}(_0x2ce8,0x8e));const _0x9a48=function(_0xa31cd5,_0x2ce8f2){_0xa31cd5=_0xa31cd5-0x0;let _0x9a48b0=_0x2ce8[_0xa31cd5];return _0x9a48b0;};import{Plugin as _0x3215a0}from'ckeditor5/src/core';import{getTranslation as _0x5387c4}from'../utils/common-translations';export default class nt extends _0x3215a0{[_0x9a48('0xe')](){if(!this['editor'][_0x9a48('0x19')][_0x9a48('0x3c')](_0x9a48('0x1b')))return;const _0x542d42=this['editor'][_0x9a48('0x29')][_0x9a48('0x27')](_0x9a48('0x18')),_0x524cc6=this[_0x9a48('0x24')][_0x9a48('0x19')][_0x9a48('0x27')](_0x9a48('0x2d'));_0x542d42['styles']&&_0x524cc6['enableCommand'](_0x9a48('0x3f'),this[_0x9a48('0x11')]['bind'](this)),_0x542d42[_0x9a48('0x7')]&&_0x524cc6[_0x9a48('0x30')](_0x9a48('0x5'),this['handleListReversedCommand'][_0x9a48('0x20')](this)),_0x542d42[_0x9a48('0xb')]&&_0x524cc6[_0x9a48('0x30')](_0x9a48('0x13'),this[_0x9a48('0x21')][_0x9a48('0x20')](this)),_0x524cc6[_0x9a48('0x1')][_0x9a48('0x38')](this[_0x9a48('0x33')][_0x9a48('0x20')](this));}[_0x9a48('0x11')](_0x27d28b,_0x45c941={}){const _0x557328=this['editor'][_0x9a48('0x19')]['get'](_0x9a48('0x2d')),_0xccaaeb=this[_0x9a48('0x12')]();this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x17')](()=>{_0x557328[_0x9a48('0x28')](_0xccaaeb,{'commandName':_0x9a48('0x3f'),'commandParams':[{'type':_0x45c941[_0x9a48('0x0')]}],'formatGroupId':'listStyle'});});}[_0x9a48('0x9')](_0x484600,_0x941ad={}){const _0x5c4f6a=this['editor'][_0x9a48('0x19')]['get'](_0x9a48('0x2d')),_0x46f8b7=this['_getSuggestionBlocks'](_0x301248=>_0x301248['is'](_0x9a48('0x1a'),_0x9a48('0x8'))&&_0x9a48('0x1d')===_0x301248['getAttribute'](_0x9a48('0x15')));if(_0x46f8b7[_0x9a48('0x3a')]<0x1)return;const _0x3c00ce=_0x46f8b7[_0x9a48('0x3d')](_0x1682b3=>this[_0x9a48('0x24')]['model'][_0x9a48('0x1f')](this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x2a')](_0x1682b3,_0x9a48('0xd')),this['editor']['model'][_0x9a48('0x2a')](_0x1682b3,0x0)));this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x17')](()=>{_0x5c4f6a[_0x9a48('0x28')](_0x3c00ce,{'commandName':_0x9a48('0x5'),'commandParams':[{'reversed':_0x941ad['reversed']}],'formatGroupId':_0x9a48('0x5')});});}[_0x9a48('0x21')](_0x55844f,_0x2c886c={}){const _0x230db3=this[_0x9a48('0x24')][_0x9a48('0x19')][_0x9a48('0x27')](_0x9a48('0x2d')),_0x5e11ce=this[_0x9a48('0x35')](_0xa821ff=>_0xa821ff['is'](_0x9a48('0x1a'),_0x9a48('0x8'))&&_0x9a48('0x1d')===_0xa821ff[_0x9a48('0x2e')]('listType'));if(_0x5e11ce[_0x9a48('0x3a')]<0x1)return;const _0xb0e603=_0x5e11ce[_0x9a48('0x3d')](_0x5cbc1e=>this[_0x9a48('0x24')][_0x9a48('0x2b')]['createRange'](this[_0x9a48('0x24')][_0x9a48('0x2b')]['createPositionAt'](_0x5cbc1e,_0x9a48('0xd')),this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x2a')](_0x5cbc1e,0x0)));this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x17')](()=>{_0x230db3[_0x9a48('0x28')](_0xb0e603,{'commandName':_0x9a48('0x13'),'commandParams':[{'startIndex':_0x2c886c[_0x9a48('0xb')]}],'formatGroupId':_0x9a48('0x13')});});}[_0x9a48('0x33')](_0x37d951){const _0x3a16ab=this[_0x9a48('0x24')][_0x9a48('0x32')],{data:_0x3f56c2}=_0x37d951;if(!_0x3f56c2)return;let _0x10d86f,_0x2911db;switch(_0x3f56c2[_0x9a48('0x39')]){case _0x9a48('0x3f'):_0x10d86f=_0x9a48('0x2'),_0x2911db={'type':_0x9a48('0x2f'),'content':_0x5387c4(_0x3a16ab,_0x10d86f,_0x5387c4(_0x3a16ab,this['_getTranslationKeyForListStyle'](_0x3f56c2[_0x9a48('0x6')][0x0][_0x9a48('0x0')])))};break;case _0x9a48('0x5'):_0x10d86f=_0x3f56c2[_0x9a48('0x6')][0x0]['reversed']?_0x9a48('0x40'):_0x9a48('0x22'),_0x2911db={'type':_0x9a48('0x2f'),'content':_0x5387c4(_0x3a16ab,_0x10d86f)};break;case _0x9a48('0x13'):_0x10d86f=_0x9a48('0x25'),_0x2911db={'type':_0x9a48('0x2f'),'content':_0x5387c4(_0x3a16ab,_0x10d86f,_0x3f56c2[_0x9a48('0x6')][0x0]['startIndex'])};}return _0x2911db;}['_getSuggestionBlocksForListStyle'](){var _0x4d648e,_0x35be33,_0x1028ea,_0x42dd32;const _0x813b92=this[_0x9a48('0x24')]['plugins'][_0x9a48('0x27')](_0x9a48('0x23'));let _0x349d6f=Array[_0x9a48('0x36')](this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x3e')][_0x9a48('0x10')][_0x9a48('0x26')]());return(null===(_0x4d648e=_0x349d6f[0x0])||void 0x0===_0x4d648e?void 0x0:_0x4d648e['is'](_0x9a48('0x1a'),'listItem'))&&_0x349d6f['unshift'](..._0x813b92['getSiblingNodes'](this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x3e')]['selection'][_0x9a48('0x3')](),_0x9a48('0xc'))),(null===(_0x35be33=_0x349d6f[_0x349d6f[_0x9a48('0x3a')]-0x1])||void 0x0===_0x35be33?void 0x0:_0x35be33['is'](_0x9a48('0x1a'),'listItem'))&&_0x349d6f[_0x9a48('0x34')](..._0x813b92['getSiblingNodes'](this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x3e')]['selection'][_0x9a48('0x1c')](),'forward')),_0x349d6f=[...new Set(_0x349d6f)],(null===(_0x42dd32=null===(_0x1028ea=this[_0x9a48('0x24')][_0x9a48('0x2b')]['document']['selection'][_0x9a48('0x3')]())||void 0x0===_0x1028ea?void 0x0:_0x1028ea[_0x9a48('0x4')])||void 0x0===_0x42dd32?void 0x0:_0x42dd32['is'](_0x9a48('0x1a'),_0x9a48('0x8')))&&(_0x349d6f=_0x349d6f[_0x9a48('0x2c')](_0x56e994=>_0x56e994['is'](_0x9a48('0x1a'),_0x9a48('0x8')))),_0x349d6f;}[_0x9a48('0x35')](_0x252005){const _0x2f094a=this[_0x9a48('0x24')][_0x9a48('0x19')]['get'](_0x9a48('0x23'));let _0x5b4c56=Array[_0x9a48('0x36')](this['editor']['model']['document'][_0x9a48('0x10')]['getSelectedBlocks']())[_0x9a48('0x2c')](_0x252005)[_0x9a48('0x3d')](_0x1965cd=>{const _0x414873=this[_0x9a48('0x24')][_0x9a48('0x2b')][_0x9a48('0x2a')](_0x1965cd,0x0);return[..._0x2f094a['getSiblingNodes'](_0x414873,'backward'),..._0x2f094a[_0x9a48('0xf')](_0x414873,_0x9a48('0x31'))];})[_0x9a48('0x16')]();return _0x5b4c56=[...new Set(_0x5b4c56)],_0x5b4c56;}[_0x9a48('0x37')](_0x57c5eb){return _0x9a48('0x3b')+this[_0x9a48('0x24')]['plugins']['get'](_0x9a48('0x23'))[_0x9a48('0xa')](_0x57c5eb)['toUpperCase']()+'_LIST_'+_0x57c5eb[_0x9a48('0x14')]()[_0x9a48('0x1e')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35d4=['downcastDispatcher','plugins','editor','TrackChangesEditing','registerElementLabel','_descriptionFactory','ELEMENT_MEDIA','options','afterInit','attribute:url:media','MediaEmbedEditing','showSuggestionHighlights','conversion','enableCommand','for','high'];(function(_0x1263be,_0x35d47f){const _0xd77aae=function(_0x159a62){while(--_0x159a62){_0x1263be['push'](_0x1263be['shift']());}};_0xd77aae(++_0x35d47f);}(_0x35d4,0xb1));const _0xd77a=function(_0x1263be,_0x35d47f){_0x1263be=_0x1263be-0x0;let _0xd77aae=_0x35d4[_0x1263be];return _0xd77aae;};import{Plugin as _0x370ac1}from'ckeditor5/src/core';import{getTranslation as _0x1f5220}from'../utils/common-translations';export default class ot extends _0x370ac1{[_0xd77a('0x7')](){const _0x318010=this[_0xd77a('0x1')];if(!_0x318010[_0xd77a('0x0')]['has'](_0xd77a('0x9')))return;const _0x5b1c31=_0x318010[_0xd77a('0x0')]['get'](_0xd77a('0x2')),_0xd91df0=_0x318010['locale'];_0x5b1c31[_0xd77a('0xc')]('mediaEmbed'),_0x5b1c31[_0xd77a('0x4')][_0xd77a('0x3')]('media',_0x25ce67=>_0x1f5220(_0xd91df0,_0xd77a('0x5'),_0x25ce67)),_0x318010[_0xd77a('0xb')][_0xd77a('0xd')]('dataDowncast')['elementToElement']({'model':'media','view':(_0x26e2ab,{writer:_0x248a49,options:_0xdee67d})=>{if(_0xdee67d['showSuggestionHighlights'])return _0x248a49['createEmptyElement']('div');},'converterPriority':_0xd77a('0xe')}),_0x318010['data'][_0xd77a('0xf')]['on'](_0xd77a('0x8'),(_0x265487,_0x3989dd,_0x103ae0)=>{_0x103ae0[_0xd77a('0x6')][_0xd77a('0xa')]&&_0x265487['stop']();},{'priority':_0xd77a('0xe')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f2d=['plugins','get','afterInit','editor','MentionEditing','has','TrackChangesEditing','mention'];(function(_0x1e084b,_0x3f2dc4){const _0x19472f=function(_0x50a54b){while(--_0x50a54b){_0x1e084b['push'](_0x1e084b['shift']());}};_0x19472f(++_0x3f2dc4);}(_0x3f2d,0xe2));const _0x1947=function(_0x1e084b,_0x3f2dc4){_0x1e084b=_0x1e084b-0x0;let _0x19472f=_0x3f2d[_0x1e084b];return _0x19472f;};import{Plugin as _0x4cca20}from'ckeditor5/src/core';export default class rt extends _0x4cca20{[_0x1947('0x0')](){const _0x236e0c=this[_0x1947('0x1')];_0x236e0c[_0x1947('0x6')][_0x1947('0x3')](_0x1947('0x2'))&&_0x236e0c['plugins'][_0x1947('0x7')](_0x1947('0x4'))['enableCommand'](_0x1947('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeadb=['has','locale','get','TrackChangesEditing','ELEMENT_PAGE_BREAK','enableCommand','editor','pageBreak','plugins','_descriptionFactory','afterInit'];(function(_0x180866,_0xeadbac){const _0x2727ba=function(_0x254e60){while(--_0x254e60){_0x180866['push'](_0x180866['shift']());}};_0x2727ba(++_0xeadbac);}(_0xeadb,0xc9));const _0x2727=function(_0x180866,_0xeadbac){_0x180866=_0x180866-0x0;let _0x2727ba=_0xeadb[_0x180866];return _0x2727ba;};import{Plugin as _0x295eab}from'ckeditor5/src/core';import{getTranslation as _0x5e0cd0}from'../utils/common-translations';export default class at extends _0x295eab{[_0x2727('0x7')](){const _0x2cba39=this[_0x2727('0x3')];if(!_0x2cba39['plugins'][_0x2727('0x8')]('PageBreakEditing'))return;_0x2cba39[_0x2727('0x5')][_0x2727('0xa')](_0x2727('0x0'))[_0x2727('0x2')](_0x2727('0x4'));const _0x1a31f0=_0x2cba39['plugins'][_0x2727('0xa')]('TrackChangesEditing'),_0x390f4d=_0x2cba39[_0x2727('0x9')];_0x1a31f0[_0x2727('0x6')]['registerElementLabel'](_0x2727('0x4'),_0x12f768=>_0x5e0cd0(_0x390f4d,_0x2727('0x1'),_0x12f768));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3474=['get','markerName','showSuggestionHighlights','filter','getSelectedBlocks','nodeAfter','createUIElement','options','editor','blockName','registerDescriptionCallback','parent','toViewPosition','change','isBlock','activeMarkers','isLimit','Paragraph','format','enableCommand','model','$text','ck-suggestion-marker--active','afterInit','consume','*Change\x20to:*\x20%0','addClass','commandName','_descriptionFactory','ck-suggestion-marker-split','checkChild','has','getItemLabel','writer','markerRange','*Insert:*\x20%0','markBlockFormat','getFirstRange','TrackChangesEditing','document','downcastDispatcher','end','locale','insertParagraph','isTouching','name','includes','registerElementLabel','data','selection','paragraph','highest','type','plugins','schema','editing'];(function(_0x51d153,_0x34747c){const _0xe45942=function(_0x5958ca){while(--_0x5958ca){_0x51d153['push'](_0x51d153['shift']());}};_0xe45942(++_0x34747c);}(_0x3474,0x1bc));const _0xe459=function(_0x51d153,_0x34747c){_0x51d153=_0x51d153-0x0;let _0xe45942=_0x3474[_0x51d153];return _0xe45942;};import{Plugin as _0x80ee9c}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x38ad0e}from'./utils';import{getTranslation as _0x5b0ca0}from'../utils/common-translations';export default class ct extends _0x80ee9c{[_0xe459('0x1b')](){const _0x5674dc=this[_0xe459('0xc')];if(!_0x5674dc[_0xe459('0x1')][_0xe459('0x23')](_0xe459('0x15')))return;const _0x4fa985=_0x5674dc[_0xe459('0x2e')],_0x26dc94=_0x5674dc[_0xe459('0x1')]['get'](_0xe459('0x2a'));_0x26dc94[_0xe459('0x20')][_0xe459('0x33')](_0xe459('0x36'),_0x51db6b=>_0x5b0ca0(_0x4fa985,'ELEMENT_PARAGRAPH',_0x51db6b)),_0x26dc94[_0xe459('0x17')](_0xe459('0x36'),(_0x42e6ab,_0x2448d0={})=>{const _0x239997=_0x5674dc[_0xe459('0x18')][_0xe459('0x2b')],_0x170a7f=_0x2448d0[_0xe459('0x35')]||_0x239997[_0xe459('0x35')],_0x711270=Array['from'](_0x170a7f[_0xe459('0x8')]())[_0xe459('0x7')](_0x1fee2b=>function(_0x4e8d09,_0x3369ed){return _0x3369ed[_0xe459('0x22')](_0x4e8d09[_0xe459('0xf')],'paragraph')&&!_0x3369ed['isObject'](_0x4e8d09)&&_0xe459('0x36')!=_0x4e8d09['name'];}(_0x1fee2b,this[_0xe459('0xc')][_0xe459('0x18')][_0xe459('0x2')]));_0x5674dc[_0xe459('0x18')][_0xe459('0x11')](()=>{for(const _0xa015 of _0x711270)_0x26dc94[_0xe459('0x28')](_0xa015,{'commandName':_0xe459('0x36'),'commandParams':[],'formatGroupId':_0xe459('0xd')},_0x38ad0e(_0xa015));});}),_0x26dc94[_0xe459('0x20')][_0xe459('0xe')](_0x1d57a3=>{const {data:_0x2fd91b}=_0x1d57a3;if(_0x2fd91b&&'paragraph'==_0x2fd91b[_0xe459('0x1f')])return{'type':_0xe459('0x16'),'content':_0x5b0ca0(_0x4fa985,_0xe459('0x1d'),_0x5b0ca0(_0x4fa985,'ELEMENT_PARAGRAPH'))};}),_0x26dc94['enableCommand'](_0xe459('0x2f')),_0x5674dc[_0xe459('0x3')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',ar(_0x5674dc),{'priority':_0xe459('0x37')}),_0x5674dc[_0xe459('0x34')][_0xe459('0x2c')]['on']('addMarker:suggestion:insertion',(_0x50a1e2,_0x391e3f,_0x186422)=>{_0x186422[_0xe459('0xb')][_0xe459('0x6')]&&ar(_0x5674dc,{'showActiveMarker':!0x1})(_0x50a1e2,_0x391e3f,_0x186422);},{'priority':'highest'});const _0x226423=_0x26dc94[_0xe459('0x20')];_0x226423[_0xe459('0xe')](_0x299e84=>{if('insertion'!==_0x299e84[_0xe459('0x0')])return;const {start:_0x167f9e,end:_0x2e424a}=_0x299e84[_0xe459('0x29')]();if(!_0x167f9e[_0xe459('0x30')](_0x2e424a)||!_0x167f9e[_0xe459('0x9')])return;const _0x400fd8=_0x5674dc[_0xe459('0x18')][_0xe459('0x2')],_0x2d45e7=_0x167f9e['nodeAfter'];return _0x400fd8[_0xe459('0x12')](_0x2d45e7)&&!_0x400fd8[_0xe459('0x14')](_0x2d45e7)&&_0x400fd8[_0xe459('0x22')](_0x2d45e7,_0xe459('0x19'))?{'type':'insertion','content':_0x5b0ca0(_0x4fa985,_0xe459('0x27'),_0x226423[_0xe459('0x24')](_0x2d45e7,0x1))}:void 0x0;});}}function ar(_0x6cfdd2,{showActiveMarker:_0x5b9d8d=!0x0}={}){return(_0x4af530,_0x449883,_0x1cb45d)=>{const _0x59571f=_0x6cfdd2[_0xe459('0x1')][_0xe459('0x4')]('TrackChangesEditing'),_0x3f468a=_0x449883[_0xe459('0x26')]['start'],_0x1d08df=_0x449883[_0xe459('0x26')][_0xe459('0x2d')],_0x16c648=_0x6cfdd2[_0xe459('0x18')][_0xe459('0x2')];if(!_0x3f468a[_0xe459('0x30')](_0x1d08df)||!_0x3f468a[_0xe459('0x9')])return;const _0x59de3c=_0x3f468a[_0xe459('0x9')];if(_0x16c648['isBlock'](_0x59de3c)&&!_0x16c648['isLimit'](_0x59de3c)&&_0x16c648[_0xe459('0x22')](_0x59de3c,'$text')){if(!_0x1cb45d['consumable'][_0xe459('0x1c')](_0x449883['markerRange'],_0x4af530[_0xe459('0x31')]))return;const _0x446602=_0x1cb45d[_0xe459('0x25')][_0xe459('0xa')]('span',{'class':_0xe459('0x21')}),_0x1c0639=_0x1cb45d['mapper'][_0xe459('0x10')](_0x1d08df);_0x5b9d8d&&_0x59571f[_0xe459('0x13')][_0xe459('0x32')](_0x449883[_0xe459('0x5')])&&_0x1cb45d[_0xe459('0x25')][_0xe459('0x1e')](_0xe459('0x1a'),_0x446602),_0x1cb45d['writer']['insert'](_0x1c0639,_0x446602),_0x1cb45d['mapper']['bindElementToMarker'](_0x446602,_0x449883[_0xe459('0x5')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33d4=['commandName','TrackChangesEditing','from','document','registerDescriptionCallback','RemoveFormatEditing','markInlineFormat','*Remove\x20all\x20formatting*','removeFormat','afterInit','get','getAttributeProperties','editor','enableCommand','getItems','getAttributes','plugins','model','selection'];(function(_0x2bc118,_0x33d480){const _0x1c075f=function(_0x261ed1){while(--_0x261ed1){_0x2bc118['push'](_0x2bc118['shift']());}};_0x1c075f(++_0x33d480);}(_0x33d4,0x11b));const _0x1c07=function(_0x2bc118,_0x33d480){_0x2bc118=_0x2bc118-0x0;let _0x1c075f=_0x33d4[_0x2bc118];return _0x1c075f;};import{Plugin as _0x1ec398}from'ckeditor5/src/core';import{getTranslation as _0x371a62}from'../utils/common-translations';export default class ht extends _0x1ec398{[_0x1c07('0xb')](){const _0x2433bf=this[_0x1c07('0xe')];if(!_0x2433bf[_0x1c07('0x12')]['has'](_0x1c07('0x7')))return;const _0x541f58=_0x2433bf[_0x1c07('0x12')][_0x1c07('0xc')](_0x1c07('0x3'));_0x541f58[_0x1c07('0xf')](_0x1c07('0xa'),_0x4cae1c=>{const _0x1283f7=_0x2433bf['model'][_0x1c07('0x5')][_0x1c07('0x1')];_0x1283f7['isCollapsed']?_0x4cae1c():_0x2433bf[_0x1c07('0x0')]['change'](()=>{const _0x493a5e=Array[_0x1c07('0x4')](_0x1283f7['getRanges']());for(const _0x4c5ece of _0x493a5e)for(const _0x3d7cb6 of _0x4c5ece[_0x1c07('0x10')]())eo(_0x3d7cb6,_0x2433bf[_0x1c07('0x0')]['schema'])&&_0x541f58[_0x1c07('0x8')](_0x2433bf[_0x1c07('0x0')]['createRangeOn'](_0x3d7cb6),{'commandName':'removeFormat','commandParams':[]});});}),_0x541f58['_descriptionFactory'][_0x1c07('0x6')](_0x7cea91=>{const {data:_0x575177}=_0x7cea91;if(_0x575177&&_0x1c07('0xa')==_0x575177[_0x1c07('0x2')])return{'type':'format','content':_0x371a62(_0x2433bf['locale'],_0x1c07('0x9'))};});}}function eo(_0x34e888,_0x555e27){for(const [_0xc0dd26]of _0x34e888[_0x1c07('0x11')]()){const _0x36e74e=_0x555e27[_0x1c07('0xd')](_0xc0dd26);if(_0x36e74e&&_0x36e74e['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18e7=['TrackChangesEditing','discardAllSuggestions','get','has','goToNextRestrictedEditingException','discardSuggestion','RestrictedEditingModeEditing','enableCommand','acceptAllSuggestions','discardSelectedSuggestions','plugins','afterInit'];(function(_0x1a1270,_0x18e7c8){const _0x222841=function(_0x330f93){while(--_0x330f93){_0x1a1270['push'](_0x1a1270['shift']());}};_0x222841(++_0x18e7c8);}(_0x18e7,0xd1));const _0x2228=function(_0x1a1270,_0x18e7c8){_0x1a1270=_0x1a1270-0x0;let _0x222841=_0x18e7[_0x1a1270];return _0x222841;};import{Plugin as _0x70b1e3}from'ckeditor5/src/core';export default class ut extends _0x70b1e3{[_0x2228('0x6')](){const _0x5dfd73=this['editor'];if(!_0x5dfd73['plugins'][_0x2228('0xa')](_0x2228('0x1')))return;const _0xcb402e=_0x5dfd73[_0x2228('0x5')][_0x2228('0x9')](_0x2228('0x7'));_0xcb402e[_0x2228('0x2')]('goToPreviousRestrictedEditingException'),_0xcb402e[_0x2228('0x2')](_0x2228('0xb'));const _0x2bf831=_0x5dfd73[_0x2228('0x5')][_0x2228('0x9')](_0x2228('0x1'));_0x2bf831['enableCommand']('trackChanges'),_0x2bf831[_0x2228('0x2')]('acceptSuggestion'),_0x2bf831[_0x2228('0x2')](_0x2228('0x0')),_0x2bf831[_0x2228('0x2')](_0x2228('0x3')),_0x2bf831['enableCommand'](_0x2228('0x8')),_0x2bf831[_0x2228('0x2')]('acceptSelectedSuggestions'),_0x2bf831['enableCommand'](_0x2228('0x4'));}}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/shiftentercommand
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
5
6
|
/**
|
|
6
7
|
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
7
8
|
*/
|
|
8
9
|
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
9
|
-
static get requires():
|
|
10
|
+
static get requires(): readonly [typeof ShiftEnter];
|
|
10
11
|
init(): void;
|
|
11
12
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd769=['locale','high','name','mapper','activeMarkers','deletion','merge','writer','split','addMarker:suggestion','options','shiftEnter','bindElementToMarker','_descriptionFactory','init','model','markerRange','TrackChangesEditing','requires','createUIElement','addMarker:suggestion:deletion','element','consumable','createPositionBefore','plugins','includes','ELEMENT_LINE_BREAK','ck-suggestion-marker-','editing','markerName','editor','data','enableCommand','downcastDispatcher'];(function(_0x1d6904,_0xd7696d){const _0xb07db7=function(_0xd403c4){while(--_0xd403c4){_0x1d6904['push'](_0x1d6904['shift']());}};_0xb07db7(++_0xd7696d);}(_0xd769,0xdf));const _0xb07d=function(_0x1d6904,_0xd7696d){_0x1d6904=_0x1d6904-0x0;let _0xb07db7=_0xd769[_0x1d6904];return _0xb07db7;};import{Plugin as _0x3cd5a1}from'ckeditor5/src/core';import{ShiftEnter as _0x127d08}from'ckeditor5/src/enter';import{getTranslation as _0x43d5cd}from'../utils/common-translations';export default class ft extends _0x3cd5a1{static get[_0xb07d('0x21')](){return[_0x127d08];}[_0xb07d('0x1d')](){const _0xbe13b3=this[_0xb07d('0xb')],_0x3c937d=_0xbe13b3[_0xb07d('0x5')]['get'](_0xb07d('0x20'));_0x3c937d[_0xb07d('0xd')](_0xb07d('0x1a')),_0xbe13b3[_0xb07d('0x9')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0xbe13b3),{'priority':'high'}),_0xbe13b3[_0xb07d('0x9')][_0xb07d('0xe')]['on'](_0xb07d('0x1'),re(_0xbe13b3),{'priority':_0xb07d('0x10')}),_0xbe13b3[_0xb07d('0xc')][_0xb07d('0xe')]['on'](_0xb07d('0x18'),(_0x25b8bb,_0x2bd817,_0x58ad6b)=>{_0x58ad6b[_0xb07d('0x19')]['showSuggestionHighlights']&&re(_0xbe13b3,{'showActiveMarker':!0x1})(_0x25b8bb,_0x2bd817,_0x58ad6b);}),_0x3c937d[_0xb07d('0x1c')]['registerElementLabel']('softBreak',_0x3ce4ec=>_0x43d5cd(_0xbe13b3[_0xb07d('0xf')],_0xb07d('0x7'),_0x3ce4ec));}}function re(_0x181920,{showActiveMarker:_0x9431c9=!0x0}={}){return(_0x492fbc,_0x189a90,_0x46c998)=>{const _0x3b1ae8=_0x181920['plugins']['get'](_0xb07d('0x20'));if(!_0x46c998[_0xb07d('0x3')]['test'](_0x189a90['markerRange'],_0x492fbc[_0xb07d('0x11')]))return;const _0x2e044d=_0x181920[_0xb07d('0x1e')];for(const _0x3e806f of _0x189a90[_0xb07d('0x1f')]['getItems']()){if(!_0x3e806f['is'](_0xb07d('0x2'),'softBreak'))continue;const _0x3a24b9=_0xb07d('0x14')==_0x189a90[_0xb07d('0xa')][_0xb07d('0x17')](':')[0x1]?_0xb07d('0x15'):_0xb07d('0x17'),_0xe32275=_0x46c998[_0xb07d('0x16')][_0xb07d('0x0')]('span',{'class':_0xb07d('0x8')+_0x3a24b9}),_0x33cca5=_0x46c998[_0xb07d('0x12')]['toViewPosition'](_0x2e044d[_0xb07d('0x4')](_0x3e806f));_0x9431c9&&_0x3b1ae8[_0xb07d('0x13')][_0xb07d('0x6')](_0x189a90[_0xb07d('0xa')])&&_0x46c998[_0xb07d('0x16')]['addClass']('ck-suggestion-marker--active',_0xe32275),_0x46c998[_0xb07d('0x16')]['insert'](_0x33cca5,_0xe32275),_0x46c998['mapper'][_0xb07d('0x1b')](_0xe32275,_0x189a90[_0xb07d('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x490a=['commandParams','editor','plugins','registerDescriptionCallback','restrictedEditingException','commands','markInlineFormat','has','TrackChangesEditing','forceValue','get','from','value','document','StandardEditingModeEditing','selection','model','_descriptionFactory','format','getRanges','enableCommand','isCollapsed','FORMAT_RESTRICTED_DISABLED','commandName','FORMAT_RESTRICTED_ENABLED','locale','afterInit'];(function(_0x5e58c8,_0x490aeb){const _0x8691ff=function(_0x501d60){while(--_0x501d60){_0x5e58c8['push'](_0x5e58c8['shift']());}};_0x8691ff(++_0x490aeb);}(_0x490a,0x1f0));const _0x8691=function(_0x5e58c8,_0x490aeb){_0x5e58c8=_0x5e58c8-0x0;let _0x8691ff=_0x490a[_0x5e58c8];return _0x8691ff;};import{Plugin as _0x111d5a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x497f6d}from'./utils';import{getTranslation as _0x2b36e6}from'../utils/common-translations';export default class lt extends _0x111d5a{[_0x8691('0x10')](){const _0x4076b8=this[_0x8691('0x12')],_0x5bdc21=_0x4076b8[_0x8691('0x6')],_0x7b3dfb=_0x4076b8[_0x8691('0xf')];if(!_0x4076b8[_0x8691('0x13')][_0x8691('0x18')](_0x8691('0x4')))return;const _0x187328=_0x4076b8[_0x8691('0x13')][_0x8691('0x0')](_0x8691('0x19')),_0x552c59=_0x8691('0x15'),_0x334e97=_0x4076b8[_0x8691('0x16')]['get'](_0x552c59);_0x187328[_0x8691('0xa')](_0x552c59,(_0x4a89b1,_0x1f7459={})=>{const _0x4c8921=_0x5bdc21[_0x8691('0x3')][_0x8691('0x5')];if(_0x4c8921[_0x8691('0xb')])return void _0x4a89b1(_0x1f7459);const _0x25cdc1=void 0x0!==_0x1f7459['forceValue']?_0x1f7459[_0x8691('0x1a')]:!_0x334e97[_0x8691('0x2')];_0x5bdc21['change'](()=>{const _0x3d5e21=Array[_0x8691('0x1')](_0x4c8921[_0x8691('0x9')]());for(const _0x1009f7 of _0x3d5e21){const _0x57666c=_0x25cdc1?[_0x1009f7]:_0x497f6d(_0x552c59,_0x1009f7,_0x5bdc21);for(const _0x4fe257 of _0x57666c)_0x187328[_0x8691('0x17')](_0x4fe257,{'commandName':_0x552c59,'commandParams':[{'forceValue':_0x25cdc1}]});}});}),_0x187328[_0x8691('0x7')][_0x8691('0x14')](_0x2b7b98=>{const {data:_0x4d0ff1}=_0x2b7b98;if(_0x4d0ff1&&_0x4d0ff1[_0x8691('0xd')]==_0x552c59)return _0x4d0ff1[_0x8691('0x11')][0x0][_0x8691('0x1a')]?{'type':_0x8691('0x8'),'content':_0x2b36e6(_0x7b3dfb,_0x8691('0xe'))}:{'type':'format','content':_0x2b36e6(_0x7b3dfb,_0x8691('0xc'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37be=['isCollapsed','createRangeOn','document','StyleUtils','markInlineFormat','style','getAttribute','commandParams','includes','element','plugins','get','format','_descriptionFactory','enableCommand','Style','commands','afterInit','getItems','inline','editor','TrackChangesEditing','getAncestors','every','styleName','commandName','change','normalizeConfig','toLowerCase','getDefinitionsForView','has','config','name','*Format:*\x20%0','_getStyleDefinition','DataSchema','enabledStyles','block','from','find','style:','value','model','registerDescriptionCallback','markBlockFormat','style.definitions','forceValue','classes','push','isBlock','_getRangesWithClasses','add'];(function(_0x2f169a,_0x37bea5){const _0x47e223=function(_0x1751d2){while(--_0x1751d2){_0x2f169a['push'](_0x2f169a['shift']());}};_0x47e223(++_0x37bea5);}(_0x37be,0x129));const _0x47e2=function(_0x2f169a,_0x37bea5){_0x2f169a=_0x2f169a-0x0;let _0x47e223=_0x37be[_0x2f169a];return _0x47e223;};import{Plugin as _0x5a4e28}from'ckeditor5/src/core';import{getTranslation as _0x247908}from'../utils/common-translations';export default class gt extends _0x5a4e28{[_0x47e2('0x20')](){const _0x4449a1=this[_0x47e2('0x23')];if(!_0x4449a1[_0x47e2('0x19')][_0x47e2('0x2d')](_0x47e2('0x1e')))return;const _0x343d5c=_0x4449a1[_0x47e2('0x1f')][_0x47e2('0x1a')](_0x47e2('0x14')),_0x4dd6d1=_0x4449a1[_0x47e2('0x19')][_0x47e2('0x1a')](_0x47e2('0x24')),_0x46e6df=_0x4449a1['locale'],_0x1ddcbc=_0x4449a1[_0x47e2('0x19')][_0x47e2('0x1a')](_0x47e2('0x32')),_0x515be7=_0x4449a1[_0x47e2('0x19')][_0x47e2('0x1a')](_0x47e2('0x12'))[_0x47e2('0x2a')](_0x1ddcbc,_0x4449a1[_0x47e2('0x2e')]['get'](_0x47e2('0x8')));_0x4dd6d1[_0x47e2('0x1d')]('style',(_0x30cb8d,{styleName:_0x2a3b7e})=>{const _0x10f982=_0x4449a1[_0x47e2('0x5')][_0x47e2('0x11')]['selection'],_0xfcd022=this[_0x47e2('0x31')](_0x2a3b7e,_0x515be7);if(!_0xfcd022)return;if(!_0x343d5c[_0x47e2('0x33')][_0x47e2('0x17')](_0x2a3b7e))return;if(_0x10f982[_0x47e2('0xf')]&&!_0xfcd022[_0x47e2('0xc')])return void _0x30cb8d({'styleName':_0x2a3b7e});const _0x5bd8c6=!_0x343d5c[_0x47e2('0x4')][_0x47e2('0x17')](_0xfcd022[_0x47e2('0x2f')]);if(_0xfcd022[_0x47e2('0xc')]){const _0x1984ce=function(_0x550adc,_0x14e8d0){const _0x8def9=new Set();for(const _0x54492a of _0x550adc){const _0x7bdf5e=_0x54492a[_0x47e2('0x25')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x44bbfc of _0x7bdf5e)if(_0x14e8d0[_0x47e2('0x17')](_0x44bbfc['name'])){_0x8def9[_0x47e2('0xe')](_0x44bbfc);break;}}return _0x8def9;}(_0x10f982['getSelectedBlocks'](),_0xfcd022['modelElements']);_0x4449a1[_0x47e2('0x5')]['change'](()=>{for(const _0x29cc42 of _0x1984ce)_0x4dd6d1[_0x47e2('0x7')](_0x29cc42,{'commandName':'style','commandParams':[{'styleName':_0x2a3b7e,'forceValue':_0x5bd8c6}],'formatGroupId':_0x47e2('0x3')+_0x2a3b7e});});}else{let _0x4050e0=Array[_0x47e2('0x1')](_0x10f982['getRanges']());if(!_0x5bd8c6){const _0x4a2aa3=Array['from'](_0x1ddcbc[_0x47e2('0x2c')](_0xfcd022[_0x47e2('0x18')],!0x1))[0x0][_0x47e2('0x5')],_0xf30150=[];for(const _0x5a7732 of _0x4050e0){const _0x36cde4=this[_0x47e2('0xd')](_0x4449a1[_0x47e2('0x5')],_0x5a7732,_0xfcd022['classes'],_0x4a2aa3);_0xf30150[_0x47e2('0xb')](..._0x36cde4);}_0x4050e0=_0xf30150;}_0x4449a1[_0x47e2('0x5')][_0x47e2('0x29')](()=>{for(const _0x228b83 of _0x4050e0)_0x4dd6d1[_0x47e2('0x13')](_0x228b83,{'commandName':_0x47e2('0x14'),'commandParams':[{'styleName':_0x2a3b7e,'forceValue':_0x5bd8c6}]});});}}),_0x4dd6d1[_0x47e2('0x1c')][_0x47e2('0x6')](_0x210832=>{const {data:_0x43dd36}=_0x210832;if(_0x43dd36&&_0x47e2('0x14')===_0x43dd36[_0x47e2('0x28')])return _0x43dd36[_0x47e2('0x16')][0x0][_0x47e2('0x9')]?{'type':_0x47e2('0x1b'),'content':_0x247908(_0x46e6df,_0x47e2('0x30'),_0x43dd36[_0x47e2('0x16')][0x0][_0x47e2('0x27')]['toLowerCase']())}:{'type':_0x47e2('0x1b'),'content':_0x247908(_0x46e6df,'*Remove\x20format:*\x20%0',_0x43dd36[_0x47e2('0x16')][0x0][_0x47e2('0x27')][_0x47e2('0x2b')]())};});}[_0x47e2('0x31')](_0x1cc84c,_0x4b0335){let _0x2bffea=_0x4b0335[_0x47e2('0x0')][_0x47e2('0x2')](_0x1da498=>_0x1da498[_0x47e2('0x2f')]===_0x1cc84c);return _0x2bffea||(_0x2bffea=_0x4b0335[_0x47e2('0x22')][_0x47e2('0x2')](_0x4c95aa=>_0x4c95aa['name']===_0x1cc84c)),_0x2bffea;}[_0x47e2('0xd')](_0x569b67,_0x28d7f5,_0xfd6959,_0x54f61f){const _0x71ef2e=[];for(const _0x44cb50 of _0x28d7f5[_0x47e2('0x21')]()){const _0x4ae099=_0x44cb50[_0x47e2('0x15')](_0x54f61f);_0x4ae099&&(_0xfd6959[_0x47e2('0x26')](_0x269e47=>_0x4ae099[_0x47e2('0xa')][_0x47e2('0x17')](_0x269e47))&&_0x71ef2e[_0x47e2('0xb')](_0x569b67[_0x47e2('0x10')](_0x44cb50)));}return _0x71ef2e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44c1=['options','differ','hasAttribute','addRange','createRangeIn','forceValue','push','getAttribute','every','change:data','writer','batch','removeTableRow','element','ELEMENT_TABLE_COLUMN_WITH_TEXT','join','rowspan','mapper','maxRow','insert','removeClass','map','nodeAfter','markMultiRangeInsertion','above','*Remove:*\x20%0','locale','selectTableColumn','root','ELEMENT_TABLE_ROW_WITH_TEXT','some','insertion','getCellLocation','data','classes','getColumnIndexes','MIN_SAFE_INTEGER','highest','min','name','subType','tableColumn','detach','item','_tablePostFixingSubtypes','insertTableColumnRight','table','tableCell','accept','addMarker:suggestion','oldRange','createPositionAt','$graveyard','selection','isInContent','createTableWalker','toLowerCase','isEqual','add','get','values','maxColumn','_tableSuggestions','span','deletion','_getCoordsForCells','addClass','setSelection','type','last','getSuggestion','getChildren','getFirstRange','enableCommand','model','getRanges','getItems','createRangeOn','commands','_getSuggestionCoords','getSelectionAffectedTableCells','findAncestor','execute','ELEMENT_TABLE_ROW','has','TableUtils','_descriptionFactory','$textProxy','cell','start','insertTableRowBelow','suggestion','getChanges','document','plugins','tablePaste','downcastDispatcher','substr','getContainedElement','max','editor','showSuggestionHighlights','rootName','isIntersectingWithRange','colspan','afterInit','tableRow','filter','refresh','nodeBefore','first','enqueueChange','removeTableColumn','*Insert:*\x20%0','length','MAX_SAFE_INTEGER','getChangedMarkers','isTouching','change','minRow','startsWith','_setupColumnsRowsFixing','from','left','end','TrackChangesEditing','_splitMarkerName','_suggestionFactory','fromRange','_acceptFormatSuggestionCallbackFactory','registerCustomCallback','getRowIndexes','ELEMENT_TABLE_WITH_TEXT','ELEMENT_TABLE_COLUMN'];(function(_0x181bb5,_0x44c168){const _0x415afb=function(_0x161e0f){while(--_0x161e0f){_0x181bb5['push'](_0x181bb5['shift']());}};_0x415afb(++_0x44c168);}(_0x44c1,0xc9));const _0x415a=function(_0x181bb5,_0x44c168){_0x181bb5=_0x181bb5-0x0;let _0x415afb=_0x44c1[_0x181bb5];return _0x415afb;};import{Plugin as _0x131160}from'ckeditor5/src/core';import{LiveRange as _0xeafbc7}from'ckeditor5/src/engine';import{setHighlightHandling as _0x493a31}from'ckeditor5/src/widget';import{getTranslation as _0x313188}from'../utils/common-translations';export default class mt extends _0x131160{constructor(_0x2150a2){super(_0x2150a2),this[_0x415a('0x6f')]=[_0x415a('0x27'),_0x415a('0x6c')],this[_0x415a('0x81')]=new Set();}[_0x415a('0x26')](){const _0x14238f=this[_0x415a('0x21')],_0xfe88a0=_0x14238f[_0x415a('0x7')][_0x415a('0x1a')]['selection'];if(!_0x14238f['plugins'][_0x415a('0x11')]('TableEditing'))return;const _0x5f4768=_0x14238f[_0x415a('0x5d')],_0x142b26=_0x14238f[_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x3a')),_0x2ee131=_0x14238f['plugins'][_0x415a('0x7e')]('TableUtils');_0x142b26[_0x415a('0x13')]['registerElementLabel'](_0x415a('0x71'),_0x42681b=>_0x313188(_0x5f4768,'ELEMENT_TABLE',_0x42681b)),this[_0x415a('0x36')](),_0x142b26[_0x415a('0x6')]('insertTable'),_0x142b26[_0x415a('0x6')]('selectTableRow'),_0x142b26[_0x415a('0x6')](_0x415a('0x5e'));for(const _0x24da05 of['insertTableRowAbove',_0x415a('0x17')]){const _0x5f3ffe=_0x14238f['commands'][_0x415a('0x7e')](_0x24da05);_0x142b26['enableCommand'](_0x24da05,_0x1df2d4=>{_0x14238f[_0x415a('0x7')][_0x415a('0x33')](_0x5e7925=>{_0x1df2d4();const _0x41dd56=_0x415a('0x5b')===_0x5f3ffe['order'],_0x585133=_0x2ee131[_0x415a('0xd')](_0xfe88a0),_0x4e4459=_0x2ee131[_0x415a('0x40')](_0x585133),_0xcb97b5=_0x41dd56?_0x4e4459['first']-0x1:_0x4e4459[_0x415a('0x2')]+0x1,_0x10d204=_0x585133[0x0][_0x415a('0xe')]('table'),_0x5b4c54=_0x2ee131['createTableWalker'](_0x10d204,{'startRow':_0xcb97b5,'endRow':_0xcb97b5}),_0x55bad6=Array['from'](_0x5b4c54)[_0x415a('0x58')](_0x539eab=>_0x5e7925[_0x415a('0xa')](_0x539eab[_0x415a('0x15')]));_0x142b26[_0x415a('0x5a')](_0x55bad6,'tableRow');});});}for(const _0x410398 of['insertTableColumnLeft',_0x415a('0x70')]){const _0x5a23a4=_0x14238f['commands']['get'](_0x410398);_0x142b26[_0x415a('0x6')](_0x410398,_0x5be921=>{_0x14238f[_0x415a('0x7')][_0x415a('0x33')](_0x5cfd9f=>{_0x5be921();const _0xbf9bae=_0x415a('0x38')===_0x5a23a4['order'],_0x2b2ab8=_0x2ee131['getSelectionAffectedTableCells'](_0xfe88a0),_0x3a6e3=_0x2ee131['getColumnIndexes'](_0x2b2ab8),_0x47861d=_0xbf9bae?_0x3a6e3['first']-0x1:_0x3a6e3[_0x415a('0x2')]+0x1,_0x793d32=_0x2b2ab8[0x0][_0x415a('0xe')](_0x415a('0x71')),_0x4dba9f=_0x2ee131[_0x415a('0x7a')](_0x793d32,{'startRow':0x0,'column':_0x47861d,'includeAllSlots':!0x1}),_0x486fd2=Array[_0x415a('0x37')](_0x4dba9f)[_0x415a('0x58')](_0xc0029a=>_0x5cfd9f[_0x415a('0xa')](_0xc0029a[_0x415a('0x15')]));_0x142b26[_0x415a('0x5a')](_0x486fd2,'tableColumn');});});}for(const _0x139dfc of[_0x415a('0x4f'),_0x415a('0x2d')]){const _0xe98fe7=_0x139dfc[_0x415a('0x1e')](0xb),_0x3b457f=_0xe98fe7[_0x415a('0x7b')](),_0x500a3b=_0x3b457f[_0x415a('0x1e')](0x0,0x3)+_0x415a('0x82'),_0x572ca1=_0x415a('0x71')+_0xe98fe7,_0x3b9f51=_0x415a('0x69')+_0xe98fe7,_0x50d746='max'+_0xe98fe7;_0x142b26[_0x415a('0x6')](_0x139dfc,()=>{_0x14238f[_0x415a('0x7')]['change'](_0x59b602=>{const _0xbba55c=_0x2ee131[_0x415a('0xd')](_0xfe88a0),_0x110e54=_0xbba55c[0x0][_0x415a('0xe')](_0x415a('0x71'));let _0x1feb2f;if(_0x415a('0x4f')==_0x139dfc){const _0x58fda5=_0x2ee131[_0x415a('0x40')](_0xbba55c);_0x1feb2f={'startRow':_0x58fda5[_0x415a('0x2b')],'endRow':_0x58fda5[_0x415a('0x2')],'includeAllSlots':!0x0};}else{const _0x40113f=_0x2ee131[_0x415a('0x66')](_0xbba55c);_0x1feb2f={'startColumn':_0x40113f[_0x415a('0x2b')],'endColumn':_0x40113f[_0x415a('0x2')],'includeAllSlots':!0x0};}const _0x5a39ad=_0x2ee131[_0x415a('0x7a')](_0x110e54,_0x1feb2f),_0x3ee534=Array[_0x415a('0x37')](_0x5a39ad)[_0x415a('0x58')](({cell:_0x2ccc3e})=>_0x2ccc3e),_0x43d305=se(_0x3ee534['filter'](_0x8d8946=>_0x8d8946['hasAttribute'](_0x500a3b))),_0x4942e7=se(_0x3ee534[_0x415a('0x28')](_0x514bbc=>!_0x514bbc['hasAttribute'](_0x500a3b)))['map'](_0x16f968=>_0x59b602[_0x415a('0xa')](_0x16f968)),_0xebb0b=_0x142b26['markMultiRangeDeletion'](_0x4942e7,_0x572ca1);if(_0xebb0b&&(_0x415a('0x27')==_0xebb0b[_0x415a('0x6b')]||_0x415a('0x6c')==_0xebb0b['subType'])){const _0x26a5c5=this[_0x415a('0xc')](_0xebb0b);for(const _0x34b375 of _0x43d305){const _0x1b4bd3=_0x59b602[_0x415a('0xa')](_0x34b375),_0x419cea=_0x2ee131[_0x415a('0x63')](_0x34b375),_0x2ee30a=_0x34b375[_0x415a('0x4a')](_0x500a3b)-0x1,_0x49571e=_0x26a5c5[_0x3b9f51],_0x1df714=_0x26a5c5[_0x50d746];_0x49571e<=_0x419cea[_0x3b457f]&&_0x419cea[_0x3b457f]+_0x2ee30a<=_0x1df714&&_0xebb0b['addRange'](_0x1b4bd3);}}});});}function _0x78bdad(_0x5232a2){const _0x953fdd=Array[_0x415a('0x37')](_0xfe88a0[_0x415a('0x8')]())[_0x415a('0x58')](_0x348ad2=>_0xeafbc7[_0x415a('0x3d')](_0x348ad2));_0x14238f[_0x415a('0x7')]['change'](_0x3825ab=>{const _0x6eee50=_0x3825ab[_0x415a('0x4e')];_0x5232a2=_0x5232a2[_0x415a('0x28')](_0x33ceec=>_0x415a('0x77')!=_0x33ceec['root'][_0x415a('0x23')]),_0x3825ab[_0x415a('0x0')](_0x5232a2),_0x14238f[_0x415a('0xb')][_0x415a('0x7e')](_0x415a('0x4f'))[_0x415a('0x29')](),_0x14238f['execute'](_0x415a('0x4f'),{'forceDefaultExecution':!0x0}),_0x14238f['model']['enqueueChange'](()=>{_0x14238f[_0x415a('0x7')][_0x415a('0x2c')](_0x6eee50,_0x30ec12=>{const _0x25127a=_0x953fdd[_0x415a('0x28')](_0x20b3f4=>'$graveyard'!=_0x20b3f4[_0x415a('0x5f')][_0x415a('0x23')]);_0x25127a[_0x415a('0x2f')]>0x0&&_0x30ec12['setSelection'](_0x25127a);for(const _0x328548 of _0x953fdd)_0x328548[_0x415a('0x6d')]();});});});}function _0x1f260a(_0x315823){_0x14238f['model'][_0x415a('0x33')](_0x1f32f9=>{const _0xdba518=Array['from'](_0xfe88a0[_0x415a('0x8')]())[_0x415a('0x58')](_0x1ad3bc=>_0xeafbc7[_0x415a('0x3d')](_0x1ad3bc)),_0xb9bca1=[];for(const _0x21d4ea of _0x315823)for(const _0x18ca60 of _0x21d4ea[_0x415a('0x9')]({'shallow':!0x0}))_0xb9bca1[_0x415a('0x49')](_0x18ca60);for(const _0x1954de of _0xb9bca1)_0x415a('0x77')!=_0x1954de[_0x415a('0x5f')]['rootName']&&(_0x1f32f9['setSelection'](_0x1f32f9[_0x415a('0x76')](_0x1954de,0x0)),_0x14238f['commands'][_0x415a('0x7e')](_0x415a('0x2d'))[_0x415a('0x29')](),_0x14238f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x469e0e=_0xdba518[_0x415a('0x28')](_0x1c851d=>'$graveyard'!=_0x1c851d[_0x415a('0x5f')][_0x415a('0x23')]);_0x469e0e[_0x415a('0x2f')]>0x0&&_0x1f32f9[_0x415a('0x0')](_0x469e0e);for(const _0x4b1578 of _0xdba518)_0x4b1578[_0x415a('0x6d')]();});}function _0x500661(_0x48071b,_0x598bd1){return _0x598bd1[_0x415a('0x4b')](_0x10b5b1=>_0x48071b[_0x415a('0x61')](_0x55cc71=>_0x55cc71['end'][_0x415a('0x7c')](_0x10b5b1[_0x415a('0x16')])||_0x10b5b1[_0x415a('0x39')][_0x415a('0x7c')](_0x55cc71[_0x415a('0x16')])));}function _0x4480c9(_0x133b0f,_0x3ebeb9){return _0x133b0f[_0x415a('0x61')](_0x2b689a=>_0x3ebeb9[_0x415a('0x61')](_0x35aada=>_0x2b689a[_0x415a('0x39')][_0x415a('0x32')](_0x35aada['start'])));}_0x14238f['data'][_0x415a('0x1d')]['on'](_0x415a('0x74'),(_0x383aa9,_0x39e485,_0x10f83c)=>{if(!_0x10f83c[_0x415a('0x43')][_0x415a('0x22')])return;const _0x567d2d=_0x39e485[_0x415a('0x6e')];if(!_0x567d2d)return;const _0x48e0e5=_0x10f83c[_0x415a('0x54')]['toViewElement'](_0x567d2d);function _0x458b00(_0xe8d843){return Array['isArray'](_0xe8d843)?_0xe8d843:[_0xe8d843];}_0x48e0e5&&_0x415a('0x72')===_0x567d2d['name']&&_0x493a31(_0x48e0e5,_0x10f83c[_0x415a('0x4d')],(_0x3d94f2,_0x49d184,_0x496240)=>_0x496240[_0x415a('0x85')](_0x458b00(_0x49d184[_0x415a('0x65')]),_0x3d94f2),(_0x4b480c,_0x28ba28,_0xd7e87)=>_0xd7e87[_0x415a('0x57')](_0x458b00(_0x28ba28['classes']),_0x4b480c));},{'priority':_0x415a('0x68')}),_0x142b26['_descriptionFactory']['registerDescriptionCallback'](_0x50cdb3=>{if(_0x415a('0x62')!=_0x50cdb3[_0x415a('0x1')]&&'deletion'!=_0x50cdb3[_0x415a('0x1')])return;const _0x5af855=_0x50cdb3[_0x415a('0x1f')]();if(null!=_0x5af855&&_0x5af855['is'](_0x415a('0x50'),_0x415a('0x71'))){if('insertion'==_0x50cdb3[_0x415a('0x1')]){const _0x37defc=_0x50cdb3['getItems']()[_0x415a('0x28')](_0x47be46=>_0x47be46['is']('$textProxy'))[_0x415a('0x58')](_0x54888d=>_0x54888d[_0x415a('0x64')]);if(_0x37defc[_0x415a('0x2f')])return{'type':'insertion','content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37defc['join']('\x20')+'\x22'))};}if(_0x415a('0x83')==_0x50cdb3[_0x415a('0x1')]){const _0xb88381=_0x50cdb3[_0x415a('0x9')]()['filter'](_0x354d6c=>_0x354d6c['is'](_0x415a('0x14')))['map'](_0x526a45=>_0x526a45[_0x415a('0x64')]);if(_0xb88381[_0x415a('0x2f')])return{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,'*Remove:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x41'),'\x22'+_0xb88381[_0x415a('0x52')]('\x20')+'\x22'))};}}}),_0x142b26['_descriptionFactory']['registerDescriptionCallback'](_0x411c65=>{if(_0x415a('0x27')==_0x411c65[_0x415a('0x6b')]){const _0x4850d6=_0x411c65['getItems']()[_0x415a('0x28')](_0x2abd87=>_0x2abd87['is'](_0x415a('0x14')))[_0x415a('0x58')](_0x3709d7=>_0x3709d7[_0x415a('0x64')]),_0x476b7d=this[_0x415a('0xc')](_0x411c65),_0x7c2749=_0x476b7d[_0x415a('0x55')]-_0x476b7d[_0x415a('0x34')]+0x1;if(_0x415a('0x62')==_0x411c65[_0x415a('0x1')])return _0x4850d6[_0x415a('0x2f')]?{'type':'insertion','content':_0x313188(_0x5f4768,'*Insert:*\x20%0',_0x313188(_0x5f4768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7c2749,'\x22'+_0x4850d6[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,'*Insert:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x10'),_0x7c2749))};if(_0x415a('0x83')==_0x411c65[_0x415a('0x1')])return _0x4850d6[_0x415a('0x2f')]?{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,_0x415a('0x60'),[_0x7c2749,'\x22'+_0x4850d6[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x313188(_0x5f4768,'*Remove:*\x20%0',_0x313188(_0x5f4768,_0x415a('0x10'),_0x7c2749))};}if(_0x415a('0x6c')==_0x411c65[_0x415a('0x6b')]){const _0xa14096=_0x411c65[_0x415a('0x9')]()[_0x415a('0x28')](_0x1f3736=>_0x1f3736['is'](_0x415a('0x14')))[_0x415a('0x58')](_0x159c69=>_0x159c69[_0x415a('0x64')]),_0x5269bb=this[_0x415a('0xc')](_0x411c65),_0x54091e=_0x5269bb[_0x415a('0x80')]-_0x5269bb['minColumn']+0x1;if(_0x415a('0x62')==_0x411c65[_0x415a('0x1')])return _0xa14096[_0x415a('0x2f')]?{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,_0x415a('0x51'),[_0x54091e,'\x22'+_0xa14096['join']('\x20')+'\x22']))}:{'type':_0x415a('0x62'),'content':_0x313188(_0x5f4768,_0x415a('0x2e'),_0x313188(_0x5f4768,_0x415a('0x42'),_0x54091e))};if(_0x415a('0x83')==_0x411c65[_0x415a('0x1')])return _0xa14096[_0x415a('0x2f')]?{'type':_0x415a('0x83'),'content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54091e,'\x22'+_0xa14096[_0x415a('0x52')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x313188(_0x5f4768,_0x415a('0x5c'),_0x313188(_0x5f4768,_0x415a('0x42'),_0x54091e))};}}),_0x142b26[_0x415a('0x3c')]['registerCustomCallback'](_0x415a('0x62'),_0x415a('0x27'),'discard',_0x78bdad),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x83'),'tableRow','accept',_0x78bdad),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x62'),_0x415a('0x6c'),'discard',_0x1f260a),_0x142b26[_0x415a('0x3c')]['registerCustomCallback']('deletion',_0x415a('0x6c'),_0x415a('0x73'),_0x1f260a),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')](_0x415a('0x62'),'tableColumn','join',_0x500661),_0x142b26[_0x415a('0x3c')]['registerCustomCallback']('deletion','tableColumn',_0x415a('0x52'),_0x500661),_0x142b26['_suggestionFactory']['registerCustomCallback'](_0x415a('0x62'),'tableRow','join',_0x4480c9),_0x142b26[_0x415a('0x3c')][_0x415a('0x3f')]('deletion','tableRow',_0x415a('0x52'),_0x4480c9);}[_0x415a('0x3e')](){const _0x26c117=this[_0x415a('0x21')],_0x4541dc=_0x26c117[_0x415a('0x7')]['document'][_0x415a('0x78')];return(_0x3de249,_0x5c3e73)=>{_0x26c117[_0x415a('0x7')][_0x415a('0x33')](_0x46cfad=>{const {commandName:_0xdaf560,commandParams:_0x330ae8}=_0x5c3e73;let _0x532c11=_0x3de249[0x0][_0x415a('0x39')][_0x415a('0x2a')];_0x330ae8&&_0x330ae8[0x0]&&!0x1===_0x330ae8[0x0][_0x415a('0x48')]&&(_0x532c11=_0x3de249[0x0][_0x415a('0x16')]['nodeAfter']);const _0x504d04=_0x46cfad[_0x415a('0x47')](_0x532c11);if(_0x415a('0x77')==_0x504d04[_0x415a('0x5f')][_0x415a('0x23')])return;const _0x765509=Array['from'](_0x4541dc[_0x415a('0x8')]())[_0x415a('0x58')](_0x56e160=>_0xeafbc7[_0x415a('0x3d')](_0x56e160));_0x46cfad[_0x415a('0x0')](_0x504d04),_0x26c117[_0x415a('0xb')][_0x415a('0x7e')](_0xdaf560)['refresh'](),_0x330ae8['push']({'forceDefaultExecution':!0x0}),_0x26c117[_0x415a('0xf')](_0xdaf560,..._0x330ae8);const _0x17ee7a=_0x765509['filter'](_0xccc68b=>_0x415a('0x77')!=_0xccc68b[_0x415a('0x5f')][_0x415a('0x23')]);_0x17ee7a[_0x415a('0x2f')]>0x0&&_0x46cfad[_0x415a('0x0')](_0x17ee7a);for(const _0x120b82 of _0x765509)_0x120b82[_0x415a('0x6d')]();});};}[_0x415a('0x84')](_0x31335b){const _0x2ef98a=this[_0x415a('0x21')][_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x12'));let _0x5d258d=Number[_0x415a('0x30')],_0x238b9c=Number[_0x415a('0x67')],_0x24952d=Number[_0x415a('0x30')],_0x5539f0=Number[_0x415a('0x67')];for(const _0x346959 of _0x31335b){if('$graveyard'==_0x346959[_0x415a('0x5f')][_0x415a('0x23')])continue;const {row:_0x587dab,column:_0x86ef47}=_0x2ef98a[_0x415a('0x63')](_0x346959),_0xdcc15d=_0x346959[_0x415a('0x45')](_0x415a('0x53'))?_0x346959[_0x415a('0x4a')](_0x415a('0x53'))-0x1:0x0,_0x243a5e=_0x346959[_0x415a('0x45')](_0x415a('0x25'))?_0x346959[_0x415a('0x4a')](_0x415a('0x25'))-0x1:0x0;_0x5d258d=_0x587dab<_0x5d258d?_0x587dab:_0x5d258d,_0x238b9c=_0x587dab+_0xdcc15d>_0x238b9c?_0x587dab+_0xdcc15d:_0x238b9c,_0x24952d=_0x86ef47<_0x24952d?_0x86ef47:_0x24952d,_0x5539f0=_0x86ef47+_0x243a5e>_0x5539f0?_0x86ef47+_0x243a5e:_0x5539f0;}return{'minRow':_0x5d258d,'maxRow':_0x238b9c,'minColumn':_0x24952d,'maxColumn':_0x5539f0};}[_0x415a('0x36')](){const _0x32b5cf=this[_0x415a('0x21')],_0xaa66b4=_0x32b5cf[_0x415a('0x1b')][_0x415a('0x7e')](_0x415a('0x3a')),_0x222980=_0x32b5cf[_0x415a('0x1b')]['get'](_0x415a('0x12'));_0x32b5cf['model']['document']['on'](_0x415a('0x4c'),()=>{const _0x4a207b=Array[_0x415a('0x37')](_0x32b5cf['model'][_0x415a('0x1a')][_0x415a('0x44')][_0x415a('0x31')]());for(const {name:_0xe20032,data:_0x4f7ff6}of _0x4a207b){const {group:_0x469d9f,id:_0x144664,subType:_0x1431b8}=_0xaa66b4[_0x415a('0x3b')](_0xe20032);if(_0x415a('0x18')!=_0x469d9f)continue;if(null!=_0x4f7ff6[_0x415a('0x75')])continue;const _0x33c71f=_0xaa66b4[_0x415a('0x3')](_0x144664);this[_0x415a('0x6f')]['includes'](_0x1431b8)&&this[_0x415a('0x81')][_0x415a('0x7d')](_0x33c71f);}},{'priority':'low'});const _0x50782b=(_0x6785e3,_0x9799f2)=>{let _0x5a404d=!0x1;const _0xf6f432=_0x9799f2[_0x415a('0xa')](_0x6785e3),_0x3eab95=_0x6785e3[_0x415a('0xe')](_0x415a('0x71')),_0x52fc34=_0x222980[_0x415a('0x63')](_0x6785e3);for(const _0x3d87fb of this[_0x415a('0x81')]){const _0x443986=_0x3d87fb['subType'],_0x32d957=_0x443986[_0x415a('0x35')](_0x415a('0x1c')),_0x2088dc=_0x443986[_0x415a('0x1e')](_0x32d957?0xa:0x5),_0x381eaa=_0x2088dc[_0x415a('0x7b')](),_0x19ea05=_0x381eaa[_0x415a('0x1e')](0x0,0x3)+_0x415a('0x82'),_0x3e1a37='min'+_0x2088dc,_0x4bd284=_0x415a('0x20')+_0x2088dc;if(!_0x3d87fb[_0x415a('0x79')])continue;if(_0x3eab95!=_0x3d87fb[_0x415a('0x5')]()[_0x415a('0x16')][_0x415a('0xe')]('table'))continue;if(_0x3d87fb[_0x415a('0x24')](_0xf6f432))continue;const _0x56e3e1=_0x6785e3[_0x415a('0x45')](_0x19ea05)?_0x6785e3['getAttribute'](_0x19ea05)-0x1:0x0,_0x1efab1=this[_0x415a('0xc')](_0x3d87fb),_0x5a567a=_0x1efab1[_0x3e1a37],_0x362115=_0x1efab1[_0x4bd284];_0x5a567a<=_0x52fc34[_0x381eaa]&&_0x52fc34[_0x381eaa]+_0x56e3e1<=_0x362115&&(_0x3d87fb[_0x415a('0x46')](_0xf6f432),_0x5a404d=!0x0);}return _0x5a404d;};_0x32b5cf[_0x415a('0x7')][_0x415a('0x1a')]['registerPostFixer'](_0x1d4826=>{let _0x1a57bf=!0x1;for(const _0x3047c2 of _0x32b5cf[_0x415a('0x7')][_0x415a('0x1a')][_0x415a('0x44')][_0x415a('0x19')]())if(_0x415a('0x56')==_0x3047c2[_0x415a('0x1')]){if('tableRow'==_0x3047c2[_0x415a('0x6a')])for(const _0x4e1221 of _0x3047c2['position'][_0x415a('0x59')][_0x415a('0x4')]())_0x1a57bf=_0x1a57bf||_0x50782b(_0x4e1221,_0x1d4826);else'tableCell'==_0x3047c2[_0x415a('0x6a')]&&(_0x1a57bf=_0x1a57bf||_0x50782b(_0x3047c2['position'][_0x415a('0x59')],_0x1d4826));}return _0x1a57bf;});}[_0x415a('0xc')](_0x5d7f90){return this['_getCoordsForCells'](_0x5d7f90[_0x415a('0x8')]()[_0x415a('0x58')](_0x5f0f9b=>_0x5f0f9b[_0x415a('0x16')][_0x415a('0x59')]));}}function se(_0x43e34f){return Array[_0x415a('0x37')](new Set(_0x43e34f)[_0x415a('0x7f')]());}
|
|
23
|
+
const _0x3674=['getContainedElement','registerPostFixer','filter','detach','maxRow','some','markMultiRangeInsertion','isArray','removeClass','isEqual','getItems','change','addRange','end','tableCell','getCellLocation','push','_tablePostFixingSubtypes','isTouching','first','minColumn','highest','markMultiRangeDeletion','batch','tablePaste','$textProxy','hasAttribute','createRangeOn','selection','element','from','options','getSuggestion','ELEMENT_TABLE_WITH_TEXT','last','discard','ELEMENT_TABLE_ROW_WITH_TEXT','position','MIN_SAFE_INTEGER','insertTableColumnRight','start','document','nodeBefore','enqueueChange','item','tableRow','getSelectionAffectedTableCells','accept','cell','toLowerCase','createTableWalker','insertTableRowBelow','subType','getRanges','rootName','createRangeIn','isIntersectingWithRange','_descriptionFactory','downcastDispatcher','*Insert:*\x20%0','change:data','above','insertTable','editor','locale','findAncestor','fromRange','name','insertion','forceValue','getChanges','*Remove:*\x20%0','map','enableCommand','ELEMENT_TABLE_ROW','getColumnIndexes','selectTableColumn','insertTableRowAbove','root','addClass','$graveyard','includes','substr','TableUtils','_suggestionFactory','_tableSuggestions','refresh','min','deletion','classes','tableColumn','table','colspan','_getCoordsForCells','ELEMENT_TABLE_COLUMN_WITH_TEXT','setSelection','commands','values','getFirstRange','ELEMENT_TABLE','nodeAfter','oldRange','model','getChangedMarkers','low','_setupColumnsRowsFixing','span','left','type','MAX_SAFE_INTEGER','get','join','registerCustomCallback','rowspan','TableEditing','_getSuggestionCoords','insertTableColumnLeft','add','data','_splitMarkerName','insert','differ','ELEMENT_TABLE_COLUMN','TrackChangesEditing','length','mapper','execute','plugins','removeTableRow','order','getAttribute','registerDescriptionCallback','getRowIndexes','minRow','removeTableColumn','max','writer'];(function(_0x3dcd19,_0x367488){const _0x23de90=function(_0x552ed1){while(--_0x552ed1){_0x3dcd19['push'](_0x3dcd19['shift']());}};_0x23de90(++_0x367488);}(_0x3674,0x167));const _0x23de=function(_0x3dcd19,_0x367488){_0x3dcd19=_0x3dcd19-0x0;let _0x23de90=_0x3674[_0x3dcd19];return _0x23de90;};import{Plugin as _0x539bec}from'ckeditor5/src/core';import{LiveRange as _0xab8c01}from'ckeditor5/src/engine';import{setHighlightHandling as _0x169e26}from'ckeditor5/src/widget';import{getTranslation as _0x3c6b5d}from'../utils/common-translations';export default class mt extends _0x539bec{constructor(_0x1040b1){super(_0x1040b1),this[_0x23de('0x45')]=[_0x23de('0x61'),_0x23de('0x5')],this[_0x23de('0x0')]=new Set();}['afterInit'](){const _0x3e21e7=this['editor'],_0x5d9430=_0x3e21e7['model'][_0x23de('0x5d')]['selection'];if(!_0x3e21e7[_0x23de('0x2a')]['has'](_0x23de('0x1d')))return;const _0x3966b7=_0x3e21e7[_0x23de('0x74')],_0x1c5bc2=_0x3e21e7[_0x23de('0x2a')][_0x23de('0x19')](_0x23de('0x26')),_0x219fb3=_0x3e21e7[_0x23de('0x2a')][_0x23de('0x19')]('TableUtils');_0x1c5bc2[_0x23de('0x6d')]['registerElementLabel'](_0x23de('0x6'),_0x12a85c=>_0x3c6b5d(_0x3966b7,_0x23de('0xe'),_0x12a85c)),this[_0x23de('0x14')](),_0x1c5bc2[_0x23de('0x7d')](_0x23de('0x72')),_0x1c5bc2[_0x23de('0x7d')]('selectTableRow'),_0x1c5bc2[_0x23de('0x7d')](_0x23de('0x80'));for(const _0x175ab5 of[_0x23de('0x81'),_0x23de('0x67')]){const _0x1be80f=_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')](_0x175ab5);_0x1c5bc2[_0x23de('0x7d')](_0x175ab5,_0x45f068=>{_0x3e21e7['model']['change'](_0x5b9ff6=>{_0x45f068();const _0x5b994e=_0x23de('0x71')===_0x1be80f[_0x23de('0x2c')],_0x40d120=_0x219fb3[_0x23de('0x62')](_0x5d9430),_0x5d36e0=_0x219fb3['getRowIndexes'](_0x40d120),_0x3e5156=_0x5b994e?_0x5d36e0[_0x23de('0x47')]-0x1:_0x5d36e0[_0x23de('0x56')]+0x1,_0x18f265=_0x40d120[0x0][_0x23de('0x75')](_0x23de('0x6')),_0x421ab2=_0x219fb3['createTableWalker'](_0x18f265,{'startRow':_0x3e5156,'endRow':_0x3e5156}),_0x4d7780=Array[_0x23de('0x52')](_0x421ab2)[_0x23de('0x7c')](_0xf68860=>_0x5b9ff6[_0x23de('0x4f')](_0xf68860[_0x23de('0x64')]));_0x1c5bc2[_0x23de('0x3a')](_0x4d7780,_0x23de('0x61'));});});}for(const _0x1c94f4 of[_0x23de('0x1f'),_0x23de('0x5b')]){const _0x24be04=_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')](_0x1c94f4);_0x1c5bc2[_0x23de('0x7d')](_0x1c94f4,_0x577422=>{_0x3e21e7[_0x23de('0x11')][_0x23de('0x3f')](_0x55fe2b=>{_0x577422();const _0x2c4441=_0x23de('0x16')===_0x24be04[_0x23de('0x2c')],_0x31bf5f=_0x219fb3['getSelectionAffectedTableCells'](_0x5d9430),_0x3d8a85=_0x219fb3['getColumnIndexes'](_0x31bf5f),_0x4f4087=_0x2c4441?_0x3d8a85[_0x23de('0x47')]-0x1:_0x3d8a85['last']+0x1,_0x42f2af=_0x31bf5f[0x0][_0x23de('0x75')](_0x23de('0x6')),_0x2001fd=_0x219fb3[_0x23de('0x66')](_0x42f2af,{'startRow':0x0,'column':_0x4f4087,'includeAllSlots':!0x1}),_0x55c406=Array[_0x23de('0x52')](_0x2001fd)[_0x23de('0x7c')](_0x35be34=>_0x55fe2b[_0x23de('0x4f')](_0x35be34[_0x23de('0x64')]));_0x1c5bc2[_0x23de('0x3a')](_0x55c406,'tableColumn');});});}for(const _0x2d3dd0 of['removeTableRow','removeTableColumn']){const _0x3380ae=_0x2d3dd0[_0x23de('0x86')](0xb),_0x32653b=_0x3380ae['toLowerCase'](),_0x3c1215=_0x32653b[_0x23de('0x86')](0x0,0x3)+_0x23de('0x15'),_0x297e4f='table'+_0x3380ae,_0x5bcb3a=_0x23de('0x2')+_0x3380ae,_0x49f37e=_0x23de('0x32')+_0x3380ae;_0x1c5bc2[_0x23de('0x7d')](_0x2d3dd0,()=>{_0x3e21e7['model'][_0x23de('0x3f')](_0x50fe5d=>{const _0x548349=_0x219fb3[_0x23de('0x62')](_0x5d9430),_0x55e82c=_0x548349[0x0][_0x23de('0x75')](_0x23de('0x6'));let _0x3ac893;if(_0x23de('0x2b')==_0x2d3dd0){const _0x8e5ad6=_0x219fb3[_0x23de('0x2f')](_0x548349);_0x3ac893={'startRow':_0x8e5ad6[_0x23de('0x47')],'endRow':_0x8e5ad6[_0x23de('0x56')],'includeAllSlots':!0x0};}else{const _0x193f0d=_0x219fb3[_0x23de('0x7f')](_0x548349);_0x3ac893={'startColumn':_0x193f0d[_0x23de('0x47')],'endColumn':_0x193f0d[_0x23de('0x56')],'includeAllSlots':!0x0};}const _0x3824ab=_0x219fb3['createTableWalker'](_0x55e82c,_0x3ac893),_0x16018a=Array[_0x23de('0x52')](_0x3824ab)['map'](({cell:_0x98ded1})=>_0x98ded1),_0x2b0d36=se(_0x16018a['filter'](_0xc561c6=>_0xc561c6['hasAttribute'](_0x3c1215))),_0x32689c=se(_0x16018a['filter'](_0x47c745=>!_0x47c745[_0x23de('0x4e')](_0x3c1215)))['map'](_0x18a997=>_0x50fe5d[_0x23de('0x4f')](_0x18a997)),_0x4d8082=_0x1c5bc2[_0x23de('0x4a')](_0x32689c,_0x297e4f);if(_0x4d8082&&(_0x23de('0x61')==_0x4d8082['subType']||'tableColumn'==_0x4d8082[_0x23de('0x68')])){const _0x257002=this['_getSuggestionCoords'](_0x4d8082);for(const _0x11adad of _0x2b0d36){const _0x2c4dc3=_0x50fe5d[_0x23de('0x4f')](_0x11adad),_0x1b3f97=_0x219fb3[_0x23de('0x43')](_0x11adad),_0x5c3db6=_0x11adad['getAttribute'](_0x3c1215)-0x1,_0x578dd2=_0x257002[_0x5bcb3a],_0x485cf3=_0x257002[_0x49f37e];_0x578dd2<=_0x1b3f97[_0x32653b]&&_0x1b3f97[_0x32653b]+_0x5c3db6<=_0x485cf3&&_0x4d8082[_0x23de('0x40')](_0x2c4dc3);}}});});}function _0x42ebce(_0x21925d){const _0x224292=Array[_0x23de('0x52')](_0x5d9430[_0x23de('0x69')]())[_0x23de('0x7c')](_0x5a0de7=>_0xab8c01['fromRange'](_0x5a0de7));_0x3e21e7[_0x23de('0x11')]['change'](_0x1887d3=>{const _0x5e8127=_0x1887d3[_0x23de('0x4b')];_0x21925d=_0x21925d[_0x23de('0x36')](_0x3fbc80=>_0x23de('0x84')!=_0x3fbc80[_0x23de('0x82')]['rootName']),_0x1887d3[_0x23de('0xa')](_0x21925d),_0x3e21e7[_0x23de('0xb')][_0x23de('0x19')]('removeTableRow')[_0x23de('0x1')](),_0x3e21e7[_0x23de('0x29')](_0x23de('0x2b'),{'forceDefaultExecution':!0x0}),_0x3e21e7['model']['enqueueChange'](()=>{_0x3e21e7['model'][_0x23de('0x5f')](_0x5e8127,_0x260b84=>{const _0x35a882=_0x224292['filter'](_0x52e950=>_0x23de('0x84')!=_0x52e950[_0x23de('0x82')]['rootName']);_0x35a882[_0x23de('0x27')]>0x0&&_0x260b84[_0x23de('0xa')](_0x35a882);for(const _0x306c8d of _0x224292)_0x306c8d[_0x23de('0x37')]();});});});}function _0x59fdf3(_0x14919a){_0x3e21e7[_0x23de('0x11')]['change'](_0x5cf210=>{const _0x344250=Array['from'](_0x5d9430[_0x23de('0x69')]())['map'](_0x3fa9da=>_0xab8c01[_0x23de('0x76')](_0x3fa9da)),_0x170ff2=[];for(const _0x343ece of _0x14919a)for(const _0x1ecebe of _0x343ece[_0x23de('0x3e')]({'shallow':!0x0}))_0x170ff2[_0x23de('0x44')](_0x1ecebe);for(const _0x406980 of _0x170ff2)_0x23de('0x84')!=_0x406980[_0x23de('0x82')]['rootName']&&(_0x5cf210['setSelection'](_0x5cf210['createPositionAt'](_0x406980,0x0)),_0x3e21e7[_0x23de('0xb')]['get'](_0x23de('0x31'))['refresh'](),_0x3e21e7[_0x23de('0x29')](_0x23de('0x31'),{'forceDefaultExecution':!0x0}));const _0x228dbc=_0x344250[_0x23de('0x36')](_0x1b5293=>'$graveyard'!=_0x1b5293['root'][_0x23de('0x6a')]);_0x228dbc[_0x23de('0x27')]>0x0&&_0x5cf210[_0x23de('0xa')](_0x228dbc);for(const _0x3c3b08 of _0x344250)_0x3c3b08['detach']();});}function _0x507df0(_0x2450e8,_0x338b0f){return _0x338b0f['every'](_0x155e4a=>_0x2450e8['some'](_0xc3bd72=>_0xc3bd72[_0x23de('0x41')][_0x23de('0x3d')](_0x155e4a[_0x23de('0x5c')])||_0x155e4a['end']['isEqual'](_0xc3bd72[_0x23de('0x5c')])));}function _0x2d45cb(_0x5aac16,_0x3c7ced){return _0x5aac16[_0x23de('0x39')](_0x4c1115=>_0x3c7ced[_0x23de('0x39')](_0x2b7e1b=>_0x4c1115[_0x23de('0x41')][_0x23de('0x46')](_0x2b7e1b[_0x23de('0x5c')])));}_0x3e21e7['data'][_0x23de('0x6e')]['on']('addMarker:suggestion',(_0x3b10fd,_0x5c33ba,_0x137ee0)=>{if(!_0x137ee0[_0x23de('0x53')]['showSuggestionHighlights'])return;const _0xbf792a=_0x5c33ba[_0x23de('0x60')];if(!_0xbf792a)return;const _0x476835=_0x137ee0[_0x23de('0x28')]['toViewElement'](_0xbf792a);function _0x6c2a44(_0x283648){return Array[_0x23de('0x3b')](_0x283648)?_0x283648:[_0x283648];}_0x476835&&_0x23de('0x42')===_0xbf792a[_0x23de('0x77')]&&_0x169e26(_0x476835,_0x137ee0[_0x23de('0x33')],(_0x1f812b,_0x5d1e1e,_0x5b8522)=>_0x5b8522[_0x23de('0x83')](_0x6c2a44(_0x5d1e1e['classes']),_0x1f812b),(_0x2ca5f5,_0x3b860f,_0x5b121c)=>_0x5b121c[_0x23de('0x3c')](_0x6c2a44(_0x3b860f[_0x23de('0x4')]),_0x2ca5f5));},{'priority':_0x23de('0x49')}),_0x1c5bc2[_0x23de('0x6d')][_0x23de('0x2e')](_0x243823=>{if(_0x23de('0x78')!=_0x243823[_0x23de('0x17')]&&'deletion'!=_0x243823['type'])return;const _0x4bd369=_0x243823[_0x23de('0x34')]();if(null!=_0x4bd369&&_0x4bd369['is'](_0x23de('0x51'),_0x23de('0x6'))){if(_0x23de('0x78')==_0x243823[_0x23de('0x17')]){const _0x2cd44b=_0x243823[_0x23de('0x3e')]()[_0x23de('0x36')](_0x4a3742=>_0x4a3742['is'](_0x23de('0x4d')))[_0x23de('0x7c')](_0x5bb49c=>_0x5bb49c[_0x23de('0x21')]);if(_0x2cd44b[_0x23de('0x27')])return{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x55'),'\x22'+_0x2cd44b[_0x23de('0x1a')]('\x20')+'\x22'))};}if('deletion'==_0x243823[_0x23de('0x17')]){const _0x42de36=_0x243823['getItems']()[_0x23de('0x36')](_0x1a5365=>_0x1a5365['is']('$textProxy'))[_0x23de('0x7c')](_0x2607ce=>_0x2607ce[_0x23de('0x21')]);if(_0x42de36[_0x23de('0x27')])return{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x55'),'\x22'+_0x42de36['join']('\x20')+'\x22'))};}}}),_0x1c5bc2[_0x23de('0x6d')]['registerDescriptionCallback'](_0x3532dc=>{if('tableRow'==_0x3532dc['subType']){const _0x5582e1=_0x3532dc['getItems']()[_0x23de('0x36')](_0x548d22=>_0x548d22['is'](_0x23de('0x4d')))[_0x23de('0x7c')](_0x3efc9a=>_0x3efc9a[_0x23de('0x21')]),_0x5318b0=this[_0x23de('0x1e')](_0x3532dc),_0x49ea4a=_0x5318b0[_0x23de('0x38')]-_0x5318b0[_0x23de('0x30')]+0x1;if(_0x23de('0x78')==_0x3532dc[_0x23de('0x17')])return _0x5582e1[_0x23de('0x27')]?{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,'*Insert:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x58'),[_0x49ea4a,'\x22'+_0x5582e1['join']('\x20')+'\x22']))}:{'type':_0x23de('0x78'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,'ELEMENT_TABLE_ROW',_0x49ea4a))};if('deletion'==_0x3532dc[_0x23de('0x17')])return _0x5582e1[_0x23de('0x27')]?{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x58'),[_0x49ea4a,'\x22'+_0x5582e1[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,_0x23de('0x7b'),_0x3c6b5d(_0x3966b7,_0x23de('0x7e'),_0x49ea4a))};}if(_0x23de('0x5')==_0x3532dc['subType']){const _0x10bb6a=_0x3532dc[_0x23de('0x3e')]()[_0x23de('0x36')](_0x3a1319=>_0x3a1319['is']('$textProxy'))[_0x23de('0x7c')](_0x21b14c=>_0x21b14c[_0x23de('0x21')]),_0x1aea33=this[_0x23de('0x1e')](_0x3532dc),_0x174f1d=_0x1aea33['maxColumn']-_0x1aea33[_0x23de('0x48')]+0x1;if('insertion'==_0x3532dc[_0x23de('0x17')])return _0x10bb6a[_0x23de('0x27')]?{'type':'insertion','content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x9'),[_0x174f1d,'\x22'+_0x10bb6a[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3c6b5d(_0x3966b7,_0x23de('0x6f'),_0x3c6b5d(_0x3966b7,_0x23de('0x25'),_0x174f1d))};if(_0x23de('0x3')==_0x3532dc['type'])return _0x10bb6a[_0x23de('0x27')]?{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,'*Remove:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x9'),[_0x174f1d,'\x22'+_0x10bb6a[_0x23de('0x1a')]('\x20')+'\x22']))}:{'type':_0x23de('0x3'),'content':_0x3c6b5d(_0x3966b7,'*Remove:*\x20%0',_0x3c6b5d(_0x3966b7,_0x23de('0x25'),_0x174f1d))};}}),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x61'),_0x23de('0x57'),_0x42ebce),_0x1c5bc2[_0x23de('0x88')]['registerCustomCallback'](_0x23de('0x3'),'tableRow',_0x23de('0x63'),_0x42ebce),_0x1c5bc2['_suggestionFactory'][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x5'),_0x23de('0x57'),_0x59fdf3),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x3'),_0x23de('0x5'),_0x23de('0x63'),_0x59fdf3),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x78'),_0x23de('0x5'),_0x23de('0x1a'),_0x507df0),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')]('deletion',_0x23de('0x5'),'join',_0x507df0),_0x1c5bc2[_0x23de('0x88')]['registerCustomCallback'](_0x23de('0x78'),_0x23de('0x61'),_0x23de('0x1a'),_0x2d45cb),_0x1c5bc2[_0x23de('0x88')][_0x23de('0x1b')](_0x23de('0x3'),_0x23de('0x61'),_0x23de('0x1a'),_0x2d45cb);}['_acceptFormatSuggestionCallbackFactory'](){const _0xdbcaeb=this[_0x23de('0x73')],_0x4f3f48=_0xdbcaeb['model']['document'][_0x23de('0x50')];return(_0xdcbb66,_0x296a3b)=>{_0xdbcaeb[_0x23de('0x11')][_0x23de('0x3f')](_0x4c7eba=>{const {commandName:_0x461e26,commandParams:_0x540120}=_0x296a3b;let _0x1df222=_0xdcbb66[0x0][_0x23de('0x41')][_0x23de('0x5e')];_0x540120&&_0x540120[0x0]&&!0x1===_0x540120[0x0][_0x23de('0x79')]&&(_0x1df222=_0xdcbb66[0x0]['start']['nodeAfter']);const _0x57f936=_0x4c7eba[_0x23de('0x6b')](_0x1df222);if(_0x23de('0x84')==_0x57f936[_0x23de('0x82')]['rootName'])return;const _0x48674c=Array[_0x23de('0x52')](_0x4f3f48[_0x23de('0x69')]())[_0x23de('0x7c')](_0x28eb30=>_0xab8c01['fromRange'](_0x28eb30));_0x4c7eba[_0x23de('0xa')](_0x57f936),_0xdbcaeb['commands'][_0x23de('0x19')](_0x461e26)[_0x23de('0x1')](),_0x540120[_0x23de('0x44')]({'forceDefaultExecution':!0x0}),_0xdbcaeb[_0x23de('0x29')](_0x461e26,..._0x540120);const _0x5192d4=_0x48674c[_0x23de('0x36')](_0x23a09b=>_0x23de('0x84')!=_0x23a09b[_0x23de('0x82')][_0x23de('0x6a')]);_0x5192d4[_0x23de('0x27')]>0x0&&_0x4c7eba[_0x23de('0xa')](_0x5192d4);for(const _0x55b61d of _0x48674c)_0x55b61d[_0x23de('0x37')]();});};}[_0x23de('0x8')](_0x584475){const _0x28c56a=this[_0x23de('0x73')][_0x23de('0x2a')][_0x23de('0x19')](_0x23de('0x87'));let _0x5b2fe2=Number['MAX_SAFE_INTEGER'],_0x433d55=Number['MIN_SAFE_INTEGER'],_0x2bfff3=Number[_0x23de('0x18')],_0x265e18=Number[_0x23de('0x5a')];for(const _0x13250c of _0x584475){if(_0x23de('0x84')==_0x13250c['root'][_0x23de('0x6a')])continue;const {row:_0x999de7,column:_0x2087ee}=_0x28c56a['getCellLocation'](_0x13250c),_0x479c64=_0x13250c[_0x23de('0x4e')]('rowspan')?_0x13250c[_0x23de('0x2d')](_0x23de('0x1c'))-0x1:0x0,_0x3f2588=_0x13250c['hasAttribute']('colspan')?_0x13250c[_0x23de('0x2d')](_0x23de('0x7'))-0x1:0x0;_0x5b2fe2=_0x999de7<_0x5b2fe2?_0x999de7:_0x5b2fe2,_0x433d55=_0x999de7+_0x479c64>_0x433d55?_0x999de7+_0x479c64:_0x433d55,_0x2bfff3=_0x2087ee<_0x2bfff3?_0x2087ee:_0x2bfff3,_0x265e18=_0x2087ee+_0x3f2588>_0x265e18?_0x2087ee+_0x3f2588:_0x265e18;}return{'minRow':_0x5b2fe2,'maxRow':_0x433d55,'minColumn':_0x2bfff3,'maxColumn':_0x265e18};}[_0x23de('0x14')](){const _0x59fce6=this[_0x23de('0x73')],_0x3bd60d=_0x59fce6[_0x23de('0x2a')]['get'](_0x23de('0x26')),_0x290c7f=_0x59fce6[_0x23de('0x2a')][_0x23de('0x19')]('TableUtils');_0x59fce6[_0x23de('0x11')][_0x23de('0x5d')]['on'](_0x23de('0x70'),()=>{const _0x47af3a=Array[_0x23de('0x52')](_0x59fce6['model'][_0x23de('0x5d')][_0x23de('0x24')][_0x23de('0x12')]());for(const {name:_0x50e472,data:_0x52ff05}of _0x47af3a){const {group:_0x17041a,id:_0x4b4fba,subType:_0x5a33c9}=_0x3bd60d[_0x23de('0x22')](_0x50e472);if('suggestion'!=_0x17041a)continue;if(null!=_0x52ff05[_0x23de('0x10')])continue;const _0x1ed512=_0x3bd60d[_0x23de('0x54')](_0x4b4fba);this['_tablePostFixingSubtypes'][_0x23de('0x85')](_0x5a33c9)&&this[_0x23de('0x0')][_0x23de('0x20')](_0x1ed512);}},{'priority':_0x23de('0x13')});const _0x57f7fc=(_0x5acfbd,_0x1c8dcf)=>{let _0x334701=!0x1;const _0x276da2=_0x1c8dcf[_0x23de('0x4f')](_0x5acfbd),_0x2a2282=_0x5acfbd[_0x23de('0x75')](_0x23de('0x6')),_0x38bd87=_0x290c7f[_0x23de('0x43')](_0x5acfbd);for(const _0x7c80a of this[_0x23de('0x0')]){const _0x6eaaab=_0x7c80a[_0x23de('0x68')],_0x3d2a0e=_0x6eaaab['startsWith'](_0x23de('0x4c')),_0x11f1c3=_0x6eaaab[_0x23de('0x86')](_0x3d2a0e?0xa:0x5),_0xe84cc0=_0x11f1c3[_0x23de('0x65')](),_0x5d71fe=_0xe84cc0['substr'](0x0,0x3)+_0x23de('0x15'),_0x8f2bd2=_0x23de('0x2')+_0x11f1c3,_0x10c339=_0x23de('0x32')+_0x11f1c3;if(!_0x7c80a['isInContent'])continue;if(_0x2a2282!=_0x7c80a[_0x23de('0xd')]()[_0x23de('0x5c')][_0x23de('0x75')](_0x23de('0x6')))continue;if(_0x7c80a[_0x23de('0x6c')](_0x276da2))continue;const _0x2ed9f1=_0x5acfbd[_0x23de('0x4e')](_0x5d71fe)?_0x5acfbd[_0x23de('0x2d')](_0x5d71fe)-0x1:0x0,_0x5ca9ce=this[_0x23de('0x1e')](_0x7c80a),_0x4e7360=_0x5ca9ce[_0x8f2bd2],_0x3f1b4a=_0x5ca9ce[_0x10c339];_0x4e7360<=_0x38bd87[_0xe84cc0]&&_0x38bd87[_0xe84cc0]+_0x2ed9f1<=_0x3f1b4a&&(_0x7c80a[_0x23de('0x40')](_0x276da2),_0x334701=!0x0);}return _0x334701;};_0x59fce6[_0x23de('0x11')][_0x23de('0x5d')][_0x23de('0x35')](_0x5c0a81=>{let _0x9bba10=!0x1;for(const _0x5b23b8 of _0x59fce6[_0x23de('0x11')]['document'][_0x23de('0x24')][_0x23de('0x7a')]())if(_0x23de('0x23')==_0x5b23b8[_0x23de('0x17')]){if(_0x23de('0x61')==_0x5b23b8[_0x23de('0x77')])for(const _0x545cee of _0x5b23b8[_0x23de('0x59')][_0x23de('0xf')]['getChildren']())_0x9bba10=_0x9bba10||_0x57f7fc(_0x545cee,_0x5c0a81);else _0x23de('0x42')==_0x5b23b8['name']&&(_0x9bba10=_0x9bba10||_0x57f7fc(_0x5b23b8[_0x23de('0x59')]['nodeAfter'],_0x5c0a81));}return _0x9bba10;});}[_0x23de('0x1e')](_0x1858ab){return this['_getCoordsForCells'](_0x1858ab[_0x23de('0x69')]()[_0x23de('0x7c')](_0x91ef84=>_0x91ef84[_0x23de('0x5c')]['nodeAfter']));}}function se(_0x3ffbe9){return Array[_0x23de('0x52')](new Set(_0x3ffbe9)[_0x23de('0xc')]());}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/tablecaption
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import TrackChangesTable from './table';
|
|
5
6
|
/**
|
|
6
7
|
* Provides track changes plugin integration for {@link module:table/table~Table table feature} caption.
|
|
7
8
|
*/
|
|
@@ -9,7 +10,7 @@ export default class TrackChangesTableCaption extends Plugin {
|
|
|
9
10
|
/**
|
|
10
11
|
* @inheritDoc
|
|
11
12
|
*/
|
|
12
|
-
static get requires():
|
|
13
|
+
static get requires(): readonly [typeof TrackChangesTable];
|
|
13
14
|
/**
|
|
14
15
|
* @inheritDoc
|
|
15
16
|
*/
|