@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231126.0 → 0.0.0-nightly-20231128.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 _0x3d56=['markBlockFormat','List','document','isObject','*Uncheck\x20item*','bulletedList','*Outdent:*\x20%0','todo','registerElementLabel','blockName','value','format','createRange','*Indent:*\x20%0','parent','locale','listItem','selection','registerDescriptionCallback','commandName','indentList','numberedList','formatBlock','commands','paragraph','execute','get','add','enableCommand','checkChild','has','schema','slice','_descriptionFactory','change','_selectedElements','editor','ELEMENT_NUMBERED_LIST','getAttribute','type','*Check\x20item*','filter','end','listIndent','numbered','ELEMENT_TODO_LIST','afterInit','from','TodoListEditing','element','getSelectedBlocks','replace','previousSibling','plugins','ELEMENT_LIST_ITEM','ListEditing','todoList','push','createPositionAt','model','todoListChecked','nextSibling','before','bulleted','forceValue','checkTodoList','*Change\x20to:*\x20%0','length','name'];(function(_0xe4348,_0x3d56b9){const _0x346fa1=function(_0x2519b9){while(--_0x2519b9){_0xe4348['push'](_0xe4348['shift']());}};_0x346fa1(++_0x3d56b9);}(_0x3d56,0x67));const _0x346f=function(_0xe4348,_0x3d56b9){_0xe4348=_0xe4348-0x0;let _0x346fa1=_0x3d56[_0xe4348];return _0x346fa1;};import{Plugin as _0x1d0654}from'ckeditor5/src/core';import{getTranslation as _0x109400}from'../utils/common-translations';export default class ct extends _0x1d0654{[_0x346f('0xc')](){const _0x3870a2=this[_0x346f('0x2')],_0x2179bc=_0x3870a2[_0x346f('0x32')];if(!_0x3870a2[_0x346f('0x13')][_0x346f('0x41')](_0x346f('0x15')))return;const _0x545690=_0x3870a2[_0x346f('0x13')]['get']('TrackChangesEditing'),_0x509bc0=_0x3870a2[_0x346f('0x13')][_0x346f('0x41')](_0x346f('0xe'));function _0x5bc407(_0x39220f){return()=>{const _0x4e8ed0=_0x3870a2['model']['document'][_0x346f('0x34')],_0x5a7f5b=_0x3870a2['commands'][_0x346f('0x3d')](_0x39220f);if(_0x5a7f5b[_0x346f('0x2d')])return void _0x3870a2[_0x346f('0x3c')](_0x346f('0x3b'),{});const _0x5824dd=_0x39220f[_0x346f('0x43')](0x0,-0x4),_0x7e239b=function(_0x34ab7e,_0x3d08bc,_0x5d7793){let _0x2a8858=Array[_0x346f('0xd')](_0x34ab7e)[_0x346f('0x7')](_0x409e94=>function(_0x32c4a7,_0x17369a){return _0x17369a[_0x346f('0x40')](_0x32c4a7[_0x346f('0x31')],_0x346f('0x33'))&&!_0x17369a[_0x346f('0x26')](_0x32c4a7);}(_0x409e94,_0x5d7793));_0x2a8858=_0x2a8858[_0x346f('0x7')](_0x2fe512=>!_0x2fe512['is'](_0x346f('0xf'),_0x346f('0x33'))||_0x2fe512['getAttribute']('listType')!=_0x3d08bc);const _0x1f0caa=new Set();for(const _0x21657c of _0x2a8858)_0x21657c['is'](_0x346f('0xf'),'listItem')?_0x1f0caa[_0x346f('0x3e')](ne(_0x21657c)):_0x1f0caa[_0x346f('0x3e')](_0x21657c);return Array[_0x346f('0xd')](_0x1f0caa);}(_0x4e8ed0[_0x346f('0x10')](),_0x5824dd,_0x3870a2['model'][_0x346f('0x42')]);_0x3870a2[_0x346f('0x19')][_0x346f('0x0')](()=>{for(const _0x216c30 of _0x7e239b)_0x545690['markBlockFormat'](_0x216c30,{'commandName':_0x39220f,'commandParams':[{'forceValue':!_0x5a7f5b['value']}],'formatGroupId':_0x346f('0x2c')},oe(_0x216c30));});};}function _0x2775db(_0xd8f654){return()=>{const _0x25d63a=function(_0x1edf9e){let _0x428cab=Array[_0x346f('0xd')](_0x1edf9e);const _0x4371cc=_0x428cab['findIndex'](_0x41990e=>_0x346f('0x33')!=_0x41990e['name']);return _0x4371cc>-0x1&&(_0x428cab=_0x428cab[_0x346f('0x43')](0x0,_0x4371cc)),_0x428cab;}(_0x3870a2[_0x346f('0x19')][_0x346f('0x25')][_0x346f('0x34')][_0x346f('0x10')]()),_0x3545c7=_0x3870a2[_0x346f('0x19')][_0x346f('0x2f')](_0x3870a2[_0x346f('0x19')]['createPositionAt'](_0x25d63a[0x0],_0x346f('0x1c')),_0x3870a2[_0x346f('0x19')][_0x346f('0x18')](_0x25d63a[_0x25d63a[_0x346f('0x21')]-0x1],_0x346f('0x8')));_0x3870a2[_0x346f('0x19')]['change'](()=>{_0x545690[_0x346f('0x23')](_0x3545c7,{'commandName':_0xd8f654,'commandParams':[],'formatGroupId':_0x346f('0x9')},function(_0x4971e9){const _0x5e8f0d=new Set();for(const _0x4436e7 of _0x4971e9){let _0x15707c=_0x4436e7[_0x346f('0x1b')];for(;_0x15707c&&_0x15707c[_0x346f('0x4')](_0x346f('0x9'))>_0x4436e7[_0x346f('0x4')](_0x346f('0x9'));)_0x5e8f0d[_0x346f('0x3e')](_0x15707c),_0x15707c=_0x15707c[_0x346f('0x1b')];}return Array[_0x346f('0xd')](_0x5e8f0d);}(_0x25d63a));});};}_0x545690['enableCommand'](_0x346f('0x38'),_0x5bc407(_0x346f('0x38'))),_0x545690[_0x346f('0x3f')](_0x346f('0x28'),_0x5bc407(_0x346f('0x28'))),_0x509bc0&&_0x545690[_0x346f('0x3f')](_0x346f('0x16'),_0x5bc407(_0x346f('0x16'))),_0x545690['enableCommand'](_0x346f('0x37'),_0x2775db(_0x346f('0x37'))),_0x545690[_0x346f('0x3f')]('outdentList',_0x2775db('outdentList')),_0x509bc0&&_0x545690['enableCommand']('checkTodoList',()=>{const _0x4e99a8=_0x3870a2[_0x346f('0x3a')][_0x346f('0x3d')](_0x346f('0x1f')),_0x1272e7=Array[_0x346f('0xd')](_0x4e99a8[_0x346f('0x1')]);_0x1272e7[_0x346f('0x7')](_0x57e487=>_0x57e487[_0x346f('0x4')](_0x346f('0x1a'))!=_0x4e99a8['value']),_0x3870a2[_0x346f('0x19')]['change'](()=>{for(const _0x3964e2 of _0x1272e7)_0x545690[_0x346f('0x23')](_0x3964e2,{'commandName':_0x346f('0x1f'),'commandParams':[{'forceValue':!_0x4e99a8['value']}]});});}),_0x545690[_0x346f('0x44')][_0x346f('0x2b')]('listItem',_0x46497d=>_0x109400(_0x2179bc,_0x346f('0x14'),_0x46497d)),_0x545690[_0x346f('0x44')][_0x346f('0x35')](_0x4678c6=>{if(_0x346f('0x39')!=_0x4678c6['type']&&'formatInline'!=_0x4678c6[_0x346f('0x5')])return;const {data:_0x372716}=_0x4678c6;if(_0x372716){if('numberedList'==_0x372716['commandName']||_0x346f('0x28')==_0x372716[_0x346f('0x36')]||_0x346f('0x16')==_0x372716[_0x346f('0x36')])switch(_0x372716[_0x346f('0x36')][_0x346f('0x11')](_0x346f('0x24'),'')){case _0x346f('0x1d'):return _0x2922a3(_0x109400(_0x2179bc,'ELEMENT_BULLETED_LIST'));case _0x346f('0xa'):return _0x2922a3(_0x109400(_0x2179bc,_0x346f('0x3')));case _0x346f('0x2a'):return _0x2922a3(_0x109400(_0x2179bc,_0x346f('0xb')));}if(_0x346f('0x37')==_0x372716['commandName'])return{'type':_0x346f('0x2e'),'content':_0x109400(_0x2179bc,_0x346f('0x30'),_0x109400(_0x2179bc,_0x346f('0x14')))};if('outdentList'==_0x372716[_0x346f('0x36')])return{'type':_0x346f('0x2e'),'content':_0x109400(_0x2179bc,_0x346f('0x29'),_0x109400(_0x2179bc,_0x346f('0x14')))};if(_0x346f('0x1f')==_0x372716['commandName'])return _0x372716['commandParams'][0x0][_0x346f('0x1e')]?{'type':_0x346f('0x2e'),'content':_0x109400(_0x2179bc,_0x346f('0x6'))}:{'type':'format','content':_0x109400(_0x2179bc,_0x346f('0x27'))};}function _0x2922a3(_0x3a552f){return{'type':_0x346f('0x2e'),'content':_0x109400(_0x2179bc,_0x346f('0x20'),_0x3a552f)};}});}}function ne(_0x46bb6f){const _0x97d32b=_0x46bb6f[_0x346f('0x4')](_0x346f('0x9'));if(0x0==_0x97d32b)return _0x46bb6f;let _0x1eb3cf=_0x46bb6f;for(;_0x46bb6f[_0x346f('0x12')]&&_0x46bb6f[_0x346f('0x12')]['is'](_0x346f('0xf'),_0x346f('0x33'));){const _0x20f649=_0x46bb6f[_0x346f('0x12')][_0x346f('0x4')](_0x346f('0x9'));if(_0x20f649==_0x97d32b)_0x1eb3cf=_0x46bb6f['previousSibling'];else{if(_0x20f649<_0x97d32b)break;}_0x46bb6f=_0x46bb6f['previousSibling'];}return _0x1eb3cf;}function oe(_0x24e20c){const _0x21c8d7=[];if(_0x24e20c['is'](_0x346f('0xf'),_0x346f('0x33'))&&_0x24e20c['getAttribute'](_0x346f('0x9'))>0x0){let _0x56a585=_0x24e20c['nextSibling'];for(;_0x56a585&&_0x346f('0x33')==_0x56a585[_0x346f('0x22')]&&_0x56a585[_0x346f('0x4')](_0x346f('0x9'))==_0x24e20c[_0x346f('0x4')]('listIndent');)_0x21c8d7[_0x346f('0x17')](_0x56a585),_0x56a585=_0x56a585['nextSibling'];}return _0x21c8d7;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bdb=['config','listReversed','numbered','commandParams','handleListStyleCommand','editor','markMultiRangeBlockFormat','bind','getSelectedBlocks','handleListReversedCommand','listStyle','replace','get','toUpperCase','enableCommand','listStart','listItem','registerDescriptionCallback','*Change\x20to:*\x20%0','handleListStartCommand','formatInline','getSiblingNodes','ListUtils','_getSuggestionBlocks','list.properties','styles','type','formatBlock','*Format:*\x20set\x20start\x20index\x20to\x20%0','length','TrackChangesEditing','backward','handleDescriptions','listType','before','map','createPositionAt','flat','ELEMENT_','push','selection','reversed','from','format','_getSuggestionBlocksForListStyle','filter','_LIST_','forward','locale','document','getListTypeFromListStyleType','*Format:*\x20set\x20order\x20to\x20reversed','element','unshift','plugins','has','_getTranslationKeyForListStyle','createRange','getAttribute','_descriptionFactory','model','commandName','change'];(function(_0x156932,_0x3bdbb0){const _0x27c8e5=function(_0x3f1058){while(--_0x3f1058){_0x156932['push'](_0x156932['shift']());}};_0x27c8e5(++_0x3bdbb0);}(_0x3bdb,0xbd));const _0x27c8=function(_0x156932,_0x3bdbb0){_0x156932=_0x156932-0x0;let _0x27c8e5=_0x3bdb[_0x156932];return _0x27c8e5;};import{Plugin as _0x37ea1f}from'ckeditor5/src/core';import{getTranslation as _0x230ea0}from'../utils/common-translations';export default class ut extends _0x37ea1f{['afterInit'](){if(!this['editor'][_0x27c8('0x36')][_0x27c8('0x37')]('ListPropertiesEditing'))return;const _0x54dcb4=this[_0x27c8('0x5')][_0x27c8('0x0')]['get'](_0x27c8('0x18')),_0x4e95ac=this[_0x27c8('0x5')][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x1e'));_0x54dcb4[_0x27c8('0x19')]&&_0x4e95ac['enableCommand']('listStyle',this[_0x27c8('0x4')]['bind'](this)),_0x54dcb4[_0x27c8('0x29')]&&_0x4e95ac[_0x27c8('0xe')](_0x27c8('0x1'),this[_0x27c8('0x9')][_0x27c8('0x7')](this)),_0x54dcb4['startIndex']&&_0x4e95ac[_0x27c8('0xe')]('listStart',this[_0x27c8('0x13')][_0x27c8('0x7')](this)),_0x4e95ac[_0x27c8('0x3b')][_0x27c8('0x11')](this[_0x27c8('0x20')][_0x27c8('0x7')](this));}[_0x27c8('0x4')](_0x5a09d5,_0x28849a={}){const _0x48076b=this[_0x27c8('0x5')][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x1e')),_0x357be6=this[_0x27c8('0x2c')]();this[_0x27c8('0x5')][_0x27c8('0x3c')]['change'](()=>{_0x48076b[_0x27c8('0x6')](_0x357be6,{'commandName':_0x27c8('0xa'),'commandParams':[{'type':_0x28849a[_0x27c8('0x1a')]}],'formatGroupId':_0x27c8('0xa')});});}[_0x27c8('0x9')](_0x67dea4,_0x34a97d={}){const _0x360c28=this[_0x27c8('0x5')][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x1e')),_0x380eb2=this[_0x27c8('0x17')](_0x595960=>_0x595960['is'](_0x27c8('0x34'),_0x27c8('0x10'))&&_0x27c8('0x2')===_0x595960['getAttribute']('listType'));if(_0x380eb2[_0x27c8('0x1d')]<0x1)return;const _0x224720=_0x380eb2[_0x27c8('0x23')](_0x207054=>this['editor'][_0x27c8('0x3c')][_0x27c8('0x39')](this['editor'][_0x27c8('0x3c')]['createPositionAt'](_0x207054,_0x27c8('0x22')),this['editor'][_0x27c8('0x3c')]['createPositionAt'](_0x207054,0x0)));this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x3e')](()=>{_0x360c28[_0x27c8('0x6')](_0x224720,{'commandName':_0x27c8('0x1'),'commandParams':[{'reversed':_0x34a97d[_0x27c8('0x29')]}],'formatGroupId':'listReversed'});});}[_0x27c8('0x13')](_0x33b6ed,_0x3ffc9f={}){const _0x312ada=this[_0x27c8('0x5')][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x1e')),_0x1bba2b=this['_getSuggestionBlocks'](_0x11f88b=>_0x11f88b['is'](_0x27c8('0x34'),_0x27c8('0x10'))&&_0x27c8('0x2')===_0x11f88b[_0x27c8('0x3a')](_0x27c8('0x21')));if(_0x1bba2b[_0x27c8('0x1d')]<0x1)return;const _0x4d91b5=_0x1bba2b[_0x27c8('0x23')](_0x49faed=>this[_0x27c8('0x5')]['model'][_0x27c8('0x39')](this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x24')](_0x49faed,_0x27c8('0x22')),this[_0x27c8('0x5')]['model']['createPositionAt'](_0x49faed,0x0)));this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x3e')](()=>{_0x312ada[_0x27c8('0x6')](_0x4d91b5,{'commandName':_0x27c8('0xf'),'commandParams':[{'startIndex':_0x3ffc9f['startIndex']}],'formatGroupId':_0x27c8('0xf')});});}[_0x27c8('0x20')](_0x5b2143){if(_0x27c8('0x1b')!=_0x5b2143[_0x27c8('0x1a')]&&_0x27c8('0x14')!=_0x5b2143[_0x27c8('0x1a')])return;const _0x490bac=this[_0x27c8('0x5')][_0x27c8('0x30')],{data:_0x598faf}=_0x5b2143;if(!_0x598faf)return;let _0x2fd7c1,_0x7b099c;switch(_0x598faf[_0x27c8('0x3d')]){case _0x27c8('0xa'):_0x2fd7c1=_0x27c8('0x12'),_0x7b099c={'type':_0x27c8('0x2b'),'content':_0x230ea0(_0x490bac,_0x2fd7c1,_0x230ea0(_0x490bac,this[_0x27c8('0x38')](_0x598faf[_0x27c8('0x3')][0x0]['type'])))};break;case _0x27c8('0x1'):_0x2fd7c1=_0x598faf[_0x27c8('0x3')][0x0]['reversed']?_0x27c8('0x33'):'*Format:*\x20set\x20order\x20to\x20regular',_0x7b099c={'type':'format','content':_0x230ea0(_0x490bac,_0x2fd7c1)};break;case _0x27c8('0xf'):_0x2fd7c1=_0x27c8('0x1c'),_0x7b099c={'type':_0x27c8('0x2b'),'content':_0x230ea0(_0x490bac,_0x2fd7c1,_0x598faf[_0x27c8('0x3')][0x0]['startIndex'])};}return _0x7b099c;}[_0x27c8('0x2c')](){var _0x140f47,_0x20fc3e,_0x3da3ba,_0x55b8ea;const _0x3dd8ed=this['editor'][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x16'));let _0x1814f2=Array[_0x27c8('0x2a')](this[_0x27c8('0x5')]['model'][_0x27c8('0x31')]['selection'][_0x27c8('0x8')]());return(null===(_0x140f47=_0x1814f2[0x0])||void 0x0===_0x140f47?void 0x0:_0x140f47['is'](_0x27c8('0x34'),_0x27c8('0x10')))&&_0x1814f2[_0x27c8('0x35')](..._0x3dd8ed[_0x27c8('0x15')](this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x31')][_0x27c8('0x28')]['getFirstPosition'](),_0x27c8('0x1f'))),(null===(_0x20fc3e=_0x1814f2[_0x1814f2[_0x27c8('0x1d')]-0x1])||void 0x0===_0x20fc3e?void 0x0:_0x20fc3e['is'](_0x27c8('0x34'),_0x27c8('0x10')))&&_0x1814f2[_0x27c8('0x27')](..._0x3dd8ed[_0x27c8('0x15')](this[_0x27c8('0x5')][_0x27c8('0x3c')]['document'][_0x27c8('0x28')]['getLastPosition'](),_0x27c8('0x2f'))),_0x1814f2=[...new Set(_0x1814f2)],(null===(_0x55b8ea=null===(_0x3da3ba=this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x31')]['selection']['getFirstPosition']())||void 0x0===_0x3da3ba?void 0x0:_0x3da3ba['parent'])||void 0x0===_0x55b8ea?void 0x0:_0x55b8ea['is'](_0x27c8('0x34'),_0x27c8('0x10')))&&(_0x1814f2=_0x1814f2[_0x27c8('0x2d')](_0xf11fef=>_0xf11fef['is'](_0x27c8('0x34'),_0x27c8('0x10')))),_0x1814f2;}[_0x27c8('0x17')](_0x5adfc4){const _0x12ec0f=this[_0x27c8('0x5')][_0x27c8('0x36')]['get'](_0x27c8('0x16'));let _0x50e66a=Array[_0x27c8('0x2a')](this[_0x27c8('0x5')][_0x27c8('0x3c')][_0x27c8('0x31')][_0x27c8('0x28')][_0x27c8('0x8')]())[_0x27c8('0x2d')](_0x5adfc4)[_0x27c8('0x23')](_0x4b6ce5=>{const _0x2d807d=this[_0x27c8('0x5')]['model'][_0x27c8('0x24')](_0x4b6ce5,0x0);return[..._0x12ec0f[_0x27c8('0x15')](_0x2d807d,_0x27c8('0x1f')),..._0x12ec0f['getSiblingNodes'](_0x2d807d,_0x27c8('0x2f'))];})[_0x27c8('0x25')]();return _0x50e66a=[...new Set(_0x50e66a)],_0x50e66a;}[_0x27c8('0x38')](_0x3285b4){return _0x27c8('0x26')+this[_0x27c8('0x5')][_0x27c8('0x36')][_0x27c8('0xc')](_0x27c8('0x16'))[_0x27c8('0x32')](_0x3285b4)[_0x27c8('0xd')]()+_0x27c8('0x2e')+_0x3285b4['toUpperCase']()[_0x27c8('0xb')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26f1=['createEmptyElement','showSuggestionHighlights','for','plugins','MediaEmbedEditing','stop','registerElementLabel','elementToElement','has','attribute:url:media','editor','_descriptionFactory','afterInit','enableCommand','locale','downcastDispatcher','data','conversion','div','high','TrackChangesEditing','mediaEmbed','media'];(function(_0xdc334f,_0x26f150){const _0x4af9f2=function(_0x2ede13){while(--_0x2ede13){_0xdc334f['push'](_0xdc334f['shift']());}};_0x4af9f2(++_0x26f150);}(_0x26f1,0x9d));const _0x4af9=function(_0xdc334f,_0x26f150){_0xdc334f=_0xdc334f-0x0;let _0x4af9f2=_0x26f1[_0xdc334f];return _0x4af9f2;};import{Plugin as _0x598581}from'ckeditor5/src/core';import{getTranslation as _0x59143d}from'../utils/common-translations';export default class ht extends _0x598581{[_0x4af9('0x10')](){const _0xfb4f2d=this[_0x4af9('0xe')];if(!_0xfb4f2d[_0x4af9('0x7')][_0x4af9('0xc')](_0x4af9('0x8')))return;const _0x5b7a7c=_0xfb4f2d[_0x4af9('0x7')]['get'](_0x4af9('0x1')),_0x20e71c=_0xfb4f2d[_0x4af9('0x12')];_0x5b7a7c[_0x4af9('0x11')](_0x4af9('0x2')),_0x5b7a7c[_0x4af9('0xf')][_0x4af9('0xa')]('media',_0x3edc74=>_0x59143d(_0x20e71c,'ELEMENT_MEDIA',_0x3edc74)),_0xfb4f2d[_0x4af9('0x15')][_0x4af9('0x6')]('dataDowncast')[_0x4af9('0xb')]({'model':_0x4af9('0x3'),'view':(_0x240888,{writer:_0x2831f5,options:_0x2ad891})=>{if(_0x2ad891[_0x4af9('0x5')])return _0x2831f5[_0x4af9('0x4')](_0x4af9('0x16'));},'converterPriority':_0x4af9('0x0')}),_0xfb4f2d[_0x4af9('0x14')][_0x4af9('0x13')]['on'](_0x4af9('0xd'),(_0x59772b,_0x1a5e2d,_0x4e6e12)=>{_0x4e6e12['options'][_0x4af9('0x5')]&&_0x59772b[_0x4af9('0x9')]();},{'priority':_0x4af9('0x0')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2535=['get','TrackChangesEditing','MentionEditing','plugins','afterInit','editor'];(function(_0x4cec9c,_0x2535dc){const _0x367a9e=function(_0x165c22){while(--_0x165c22){_0x4cec9c['push'](_0x4cec9c['shift']());}};_0x367a9e(++_0x2535dc);}(_0x2535,0x1a7));const _0x367a=function(_0x4cec9c,_0x2535dc){_0x4cec9c=_0x4cec9c-0x0;let _0x367a9e=_0x2535[_0x4cec9c];return _0x367a9e;};import{Plugin as _0x239bde}from'ckeditor5/src/core';export default class ft extends _0x239bde{[_0x367a('0x1')](){const _0x13d2fd=this[_0x367a('0x2')];_0x13d2fd[_0x367a('0x0')]['has'](_0x367a('0x5'))&&_0x13d2fd[_0x367a('0x0')][_0x367a('0x3')](_0x367a('0x4'))['enableCommand']('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c6=['ELEMENT_PAGE_BREAK','PageBreakEditing','enableCommand','TrackChangesEditing','plugins','registerElementLabel','has','pageBreak','get'];(function(_0x46fdcb,_0x46c65a){const _0x5a6607=function(_0x4de21b){while(--_0x4de21b){_0x46fdcb['push'](_0x46fdcb['shift']());}};_0x5a6607(++_0x46c65a);}(_0x46c6,0x18e));const _0x5a66=function(_0x46fdcb,_0x46c65a){_0x46fdcb=_0x46fdcb-0x0;let _0x5a6607=_0x46c6[_0x46fdcb];return _0x5a6607;};import{Plugin as _0x5c8d44}from'ckeditor5/src/core';import{getTranslation as _0x55427f}from'../utils/common-translations';export default class gt extends _0x5c8d44{['afterInit'](){const _0x7c2a44=this['editor'];if(!_0x7c2a44[_0x5a66('0x2')][_0x5a66('0x4')](_0x5a66('0x8')))return;_0x7c2a44[_0x5a66('0x2')][_0x5a66('0x6')](_0x5a66('0x1'))[_0x5a66('0x0')](_0x5a66('0x5'));const _0x3ebb28=_0x7c2a44[_0x5a66('0x2')][_0x5a66('0x6')](_0x5a66('0x1')),_0x2822c9=_0x7c2a44['locale'];_0x3ebb28['_descriptionFactory'][_0x5a66('0x3')](_0x5a66('0x5'),_0x34bd50=>_0x55427f(_0x2822c9,_0x5a66('0x7'),_0x34bd50));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x163c=['get','markerRange','afterInit','editor','name','insert','_enableDefaultAttributesIntegration','start','editing','registerElementLabel','ck-suggestion-marker--active','paragraph','enableCommand','locale','*Change\x20to:*\x20%0','model','isLimit','nodeAfter','$text','getFirstRange','TrackChangesEditing','ELEMENT_PARAGRAPH','ck-suggestion-marker-split','commandName','registerDescriptionCallback','addMarker:suggestion:insertion','consume','plugins','insertion','addClass','insertParagraph','writer','*Insert:*\x20%0','activeMarkers','end','downcastDispatcher','createUIElement','consumable','_descriptionFactory','toViewPosition','highest','options','isBlock','mapper','schema','markerName','_registerLegacyDescription'];(function(_0x316620,_0x163c9e){const _0x4ded76=function(_0x37256){while(--_0x37256){_0x316620['push'](_0x316620['shift']());}};_0x4ded76(++_0x163c9e);}(_0x163c,0x133));const _0x4ded=function(_0x316620,_0x163c9e){_0x316620=_0x316620-0x0;let _0x4ded76=_0x163c[_0x316620];return _0x4ded76;};import{Plugin as _0xb91a4b}from'ckeditor5/src/core';import{getTranslation as _0x4d2787}from'../utils/common-translations';export default class lt extends _0xb91a4b{[_0x4ded('0x18')](){const _0x11f2e7=this[_0x4ded('0x19')];if(!_0x11f2e7['plugins']['has']('Paragraph'))return;const _0x5dba34=_0x11f2e7[_0x4ded('0x23')],_0x5a4c08=_0x11f2e7[_0x4ded('0x2')][_0x4ded('0x16')](_0x4ded('0x2a'));_0x5a4c08[_0x4ded('0xd')][_0x4ded('0x1f')](_0x4ded('0x21'),_0x25c140=>_0x4d2787(_0x5dba34,_0x4ded('0x2b'),_0x25c140)),_0x5a4c08[_0x4ded('0x1c')]('paragraph'),_0x5a4c08[_0x4ded('0x22')](_0x4ded('0x5')),_0x11f2e7[_0x4ded('0x1e')][_0x4ded('0xa')]['on']('addMarker:suggestion:insertion',nr(_0x11f2e7),{'priority':_0x4ded('0xf')}),_0x11f2e7['data'][_0x4ded('0xa')]['on'](_0x4ded('0x0'),(_0x2c0c00,_0x227bb0,_0x23a010)=>{_0x23a010[_0x4ded('0x10')]['showSuggestionHighlights']&&nr(_0x11f2e7,{'showActiveMarker':!0x1})(_0x2c0c00,_0x227bb0,_0x23a010);},{'priority':_0x4ded('0xf')});const _0x148d08=_0x5a4c08[_0x4ded('0xd')];_0x148d08[_0x4ded('0x2e')](_0x54185f=>{if(_0x4ded('0x3')!==_0x54185f['type'])return;const {start:_0x558168,end:_0x4d7a9c}=_0x54185f[_0x4ded('0x29')]();if(!_0x558168['isTouching'](_0x4d7a9c)||!_0x558168[_0x4ded('0x27')])return;const _0x21b385=_0x11f2e7[_0x4ded('0x25')][_0x4ded('0x13')],_0x35933c=_0x558168[_0x4ded('0x27')];return _0x21b385[_0x4ded('0x11')](_0x35933c)&&!_0x21b385[_0x4ded('0x26')](_0x35933c)&&_0x21b385['checkChild'](_0x35933c,_0x4ded('0x28'))?{'type':_0x4ded('0x3'),'content':_0x4d2787(_0x5dba34,_0x4ded('0x7'),_0x148d08['getItemLabel'](_0x35933c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}[_0x4ded('0x15')](){const _0x23ddf7=this[_0x4ded('0x19')],_0x2590c7=_0x23ddf7[_0x4ded('0x23')];_0x23ddf7[_0x4ded('0x2')][_0x4ded('0x16')]('TrackChangesEditing')[_0x4ded('0xd')][_0x4ded('0x2e')](_0x2ddb32=>{if('formatBlock'!=_0x2ddb32['type'])return;const {data:_0x1a3805}=_0x2ddb32;return _0x1a3805&&_0x4ded('0x21')==_0x1a3805[_0x4ded('0x2d')]?{'type':'format','content':_0x4d2787(_0x2590c7,_0x4ded('0x24'),_0x4d2787(_0x2590c7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2744a4,{showActiveMarker:_0x4f1563=!0x0}={}){return(_0x16552e,_0x3b42fc,_0x2b318b)=>{const _0x4e4a8e=_0x2744a4[_0x4ded('0x2')][_0x4ded('0x16')](_0x4ded('0x2a')),_0x6d917b=_0x3b42fc[_0x4ded('0x17')][_0x4ded('0x1d')],_0x4c79c0=_0x3b42fc[_0x4ded('0x17')][_0x4ded('0x9')],_0x3ce885=_0x2744a4[_0x4ded('0x25')][_0x4ded('0x13')];if(!_0x6d917b['isTouching'](_0x4c79c0)||!_0x6d917b[_0x4ded('0x27')])return;const _0x5d5f3a=_0x6d917b['nodeAfter'];if(_0x3ce885[_0x4ded('0x11')](_0x5d5f3a)&&!_0x3ce885[_0x4ded('0x26')](_0x5d5f3a)&&_0x3ce885['checkChild'](_0x5d5f3a,_0x4ded('0x28'))){if(!_0x2b318b[_0x4ded('0xc')][_0x4ded('0x1')](_0x3b42fc[_0x4ded('0x17')],_0x16552e[_0x4ded('0x1a')]))return;const _0x5663bf=_0x2b318b['writer'][_0x4ded('0xb')]('span',{'class':_0x4ded('0x2c')}),_0x5a733f=_0x2b318b[_0x4ded('0x12')][_0x4ded('0xe')](_0x4c79c0);_0x4f1563&&_0x4e4a8e[_0x4ded('0x8')]['includes'](_0x3b42fc[_0x4ded('0x14')])&&_0x2b318b['writer'][_0x4ded('0x4')](_0x4ded('0x20'),_0x5663bf),_0x2b318b[_0x4ded('0x6')][_0x4ded('0x1b')](_0x5a733f,_0x5663bf),_0x2b318b[_0x4ded('0x12')]['bindElementToMarker'](_0x5663bf,_0x3b42fc[_0x4ded('0x14')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7a53=['locale','registerDescriptionCallback','_descriptionFactory','_enableDefaultAttributesIntegration','type','format','afterInit','plugins','get','_registerLegacyDescription','commandName','editor','has','RemoveFormatEditing','TrackChangesEditing','removeFormat'];(function(_0xa1d14b,_0x7a536b){const _0x50f196=function(_0x4693ce){while(--_0x4693ce){_0xa1d14b['push'](_0xa1d14b['shift']());}};_0x50f196(++_0x7a536b);}(_0x7a53,0x8e));const _0x50f1=function(_0xa1d14b,_0x7a536b){_0xa1d14b=_0xa1d14b-0x0;let _0x50f196=_0x7a53[_0xa1d14b];return _0x50f196;};import{Plugin as _0x46dc73}from'ckeditor5/src/core';import{getTranslation as _0x5d9d4e}from'../utils/common-translations';export default class mt extends _0x46dc73{[_0x50f1('0x8')](){const _0x218a7e=this[_0x50f1('0xd')];if(!_0x218a7e[_0x50f1('0x9')][_0x50f1('0xe')](_0x50f1('0xf')))return;_0x218a7e[_0x50f1('0x9')][_0x50f1('0xa')](_0x50f1('0x0'))[_0x50f1('0x5')](_0x50f1('0x1')),this[_0x50f1('0xb')]();}[_0x50f1('0xb')](){const _0x511ff0=this['editor'];_0x511ff0['plugins'][_0x50f1('0xa')](_0x50f1('0x0'))[_0x50f1('0x4')][_0x50f1('0x3')](_0xc88231=>{if('formatBlock'!=_0xc88231['type']&&'formatInline'!=_0xc88231[_0x50f1('0x6')])return;const {data:_0x5ccf28}=_0xc88231;return _0x5ccf28&&'removeFormat'==_0x5ccf28[_0x50f1('0xc')]?{'type':_0x50f1('0x7'),'content':_0x5d9d4e(_0x511ff0[_0x50f1('0x2')],'*Remove\x20all\x20formatting*')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b91=['goToNextRestrictedEditingException','acceptAllSuggestions','discardSelectedSuggestions','enableCommand','RestrictedEditingModeEditing','discardSuggestion','acceptSuggestion','trackChanges','acceptSelectedSuggestions','TrackChangesEditing','get','discardAllSuggestions','goToPreviousRestrictedEditingException','plugins','afterInit'];(function(_0x5c9e03,_0x5b910b){const _0x2ea9c0=function(_0x21f022){while(--_0x21f022){_0x5c9e03['push'](_0x5c9e03['shift']());}};_0x2ea9c0(++_0x5b910b);}(_0x5b91,0x7c));const _0x2ea9=function(_0x5c9e03,_0x5b910b){_0x5c9e03=_0x5c9e03-0x0;let _0x2ea9c0=_0x5b91[_0x5c9e03];return _0x2ea9c0;};import{Plugin as _0x172a6f}from'ckeditor5/src/core';export default class dt extends _0x172a6f{[_0x2ea9('0xa')](){const _0xe3f941=this['editor'];if(!_0xe3f941[_0x2ea9('0x9')]['has'](_0x2ea9('0x0')))return;const _0xab4cb4=_0xe3f941[_0x2ea9('0x9')][_0x2ea9('0x6')](_0x2ea9('0x5'));_0xab4cb4['enableCommand'](_0x2ea9('0x8')),_0xab4cb4['enableCommand'](_0x2ea9('0xb'));const _0x4e5ad6=_0xe3f941['plugins'][_0x2ea9('0x6')](_0x2ea9('0x0'));_0x4e5ad6['enableCommand'](_0x2ea9('0x3')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0x2')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0x1')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0xc')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0x7')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0x4')),_0x4e5ad6[_0x2ea9('0xe')](_0x2ea9('0xd'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b05=['consumable','toViewPosition','addClass','options','split','bindElementToMarker','mapper','insert','model','markerName','editor','name','markerRange','showSuggestionHighlights','softBreak','plugins','span','registerElementLabel','deletion','addMarker:suggestion','high','shiftEnter','downcastDispatcher','createPositionBefore','getItems','TrackChangesEditing','writer','get','requires','ck-suggestion-marker-','editing'];(function(_0x1b1e22,_0x1b0580){const _0x13630d=function(_0x47b078){while(--_0x47b078){_0x1b1e22['push'](_0x1b1e22['shift']());}};_0x13630d(++_0x1b0580);}(_0x1b05,0xd5));const _0x1363=function(_0x1b1e22,_0x1b0580){_0x1b1e22=_0x1b1e22-0x0;let _0x13630d=_0x1b05[_0x1b1e22];return _0x13630d;};import{Plugin as _0x298fa1}from'ckeditor5/src/core';import{ShiftEnter as _0x2c4f01}from'ckeditor5/src/enter';import{getTranslation as _0x3cefba}from'../utils/common-translations';export default class pt extends _0x298fa1{static get[_0x1363('0x1')](){return[_0x2c4f01];}['init'](){const _0x3f14b1=this[_0x1363('0xe')],_0x13996e=_0x3f14b1[_0x1363('0x13')][_0x1363('0x0')]('TrackChangesEditing');_0x13996e['enableCommand'](_0x1363('0x19')),_0x3f14b1[_0x1363('0x3')][_0x1363('0x1a')]['on']('addMarker:suggestion:insertion',re(_0x3f14b1),{'priority':_0x1363('0x18')}),_0x3f14b1[_0x1363('0x3')][_0x1363('0x1a')]['on']('addMarker:suggestion:deletion',re(_0x3f14b1),{'priority':_0x1363('0x18')}),_0x3f14b1['data']['downcastDispatcher']['on'](_0x1363('0x17'),(_0x4f5008,_0x4e10b8,_0x2d1548)=>{_0x2d1548[_0x1363('0x7')][_0x1363('0x11')]&&re(_0x3f14b1,{'showActiveMarker':!0x1})(_0x4f5008,_0x4e10b8,_0x2d1548);}),_0x13996e['_descriptionFactory'][_0x1363('0x15')](_0x1363('0x12'),_0x3b8f8d=>_0x3cefba(_0x3f14b1['locale'],'ELEMENT_LINE_BREAK',_0x3b8f8d));}}function re(_0xfc9e92,{showActiveMarker:_0x162201=!0x0}={}){return(_0x3194b7,_0x4f5412,_0x1d0401)=>{const _0xc0d41f=_0xfc9e92[_0x1363('0x13')][_0x1363('0x0')](_0x1363('0x1d'));if(!_0x1d0401[_0x1363('0x4')]['test'](_0x4f5412['markerRange'],_0x3194b7[_0x1363('0xf')]))return;const _0x21b070=_0xfc9e92[_0x1363('0xc')];for(const _0x28732c of _0x4f5412[_0x1363('0x10')][_0x1363('0x1c')]()){if(!_0x28732c['is']('element',_0x1363('0x12')))continue;const _0x49465e=_0x1363('0x16')==_0x4f5412['markerName'][_0x1363('0x8')](':')[0x1]?'merge':'split',_0x19af52=_0x1d0401[_0x1363('0x1e')]['createUIElement'](_0x1363('0x14'),{'class':_0x1363('0x2')+_0x49465e}),_0x2f2e8d=_0x1d0401[_0x1363('0xa')][_0x1363('0x5')](_0x21b070[_0x1363('0x1b')](_0x28732c));_0x162201&&_0xc0d41f['activeMarkers']['includes'](_0x4f5412['markerName'])&&_0x1d0401[_0x1363('0x1e')][_0x1363('0x6')]('ck-suggestion-marker--active',_0x19af52),_0x1d0401[_0x1363('0x1e')][_0x1363('0xb')](_0x2f2e8d,_0x19af52),_0x1d0401[_0x1363('0xa')][_0x1363('0x9')](_0x19af52,_0x4f5412[_0x1363('0xd')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5494=['selection','forceValue','editor','locale','type','model','change','FORMAT_RESTRICTED_ENABLED','formatBlock','isCollapsed','commandName','commandParams','has','StandardEditingModeEditing','registerDescriptionCallback','document','get','format','TrackChangesEditing','plugins','FORMAT_RESTRICTED_DISABLED','_descriptionFactory','formatInline'];(function(_0x4932ec,_0x54940f){const _0x145e87=function(_0x2631a1){while(--_0x2631a1){_0x4932ec['push'](_0x4932ec['shift']());}};_0x145e87(++_0x54940f);}(_0x5494,0x197));const _0x145e=function(_0x4932ec,_0x54940f){_0x4932ec=_0x4932ec-0x0;let _0x145e87=_0x5494[_0x4932ec];return _0x145e87;};import{Plugin as _0x191e1e}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x268a5e}from'./utils';import{getTranslation as _0x33b2e4}from'../utils/common-translations';export default class kt extends _0x191e1e{['afterInit'](){const _0x4ffe8d=this[_0x145e('0x9')],_0x3422d7=_0x4ffe8d[_0x145e('0xc')],_0x661146=_0x4ffe8d[_0x145e('0xa')];if(!_0x4ffe8d[_0x145e('0x3')][_0x145e('0x13')](_0x145e('0x14')))return;const _0x409ea5=_0x4ffe8d[_0x145e('0x3')][_0x145e('0x0')](_0x145e('0x2')),_0xae7aea='restrictedEditingException',_0x22cfb2=_0x4ffe8d['commands'][_0x145e('0x0')](_0xae7aea);_0x409ea5['enableCommand'](_0xae7aea,(_0x22d87e,_0x1578d5={})=>{const _0x1cd448=_0x3422d7[_0x145e('0x16')][_0x145e('0x7')];if(_0x1cd448[_0x145e('0x10')])return void _0x22d87e(_0x1578d5);const _0xb09dd3=void 0x0!==_0x1578d5[_0x145e('0x8')]?_0x1578d5['forceValue']:!_0x22cfb2['value'];_0x3422d7[_0x145e('0xd')](()=>{const _0x283bf7=Array['from'](_0x1cd448['getRanges']());for(const _0x2a3a94 of _0x283bf7){const _0x279f89=_0xb09dd3?[_0x2a3a94]:_0x268a5e(_0xae7aea,_0x2a3a94,_0x3422d7);for(const _0x14af4e of _0x279f89)_0x409ea5['markInlineFormat'](_0x14af4e,{'commandName':_0xae7aea,'commandParams':[{'forceValue':_0xb09dd3}]});}});}),_0x409ea5[_0x145e('0x5')][_0x145e('0x15')](_0x1ddf0a=>{if(_0x145e('0xf')!=_0x1ddf0a[_0x145e('0xb')]&&_0x145e('0x6')!=_0x1ddf0a['type'])return;const {data:_0x2ccef3}=_0x1ddf0a;return _0x2ccef3&&_0x2ccef3[_0x145e('0x11')]==_0xae7aea?_0x2ccef3[_0x145e('0x12')][0x0][_0x145e('0x8')]?{'type':_0x145e('0x1'),'content':_0x33b2e4(_0x661146,_0x145e('0xe'))}:{'type':_0x145e('0x1'),'content':_0x33b2e4(_0x661146,_0x145e('0x4'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19f4=['GeneralHtmlSupport','add','plugins','editor','_registerLegacyDescription','locale','toLowerCase','type','format','DataSchema','block','StyleUtils','afterInit','Style','_enableDefaultAttributesIntegration','style','_descriptionFactory','element','formatInline','styleName','has','registerDescriptionCallback','definitions','inline','commandParams','_registerBlockAttribute','registerAttributeLabel','commandName','getGhsAttributeNameForElement','TrackChangesEditing','*Set\x20format:*\x20%0','forceValue','normalizeConfig','*Remove\x20format:*\x20%0','get'];(function(_0xcaf830,_0x19f4cf){const _0x4a8e66=function(_0x1b0f10){while(--_0x1b0f10){_0xcaf830['push'](_0xcaf830['shift']());}};_0x4a8e66(++_0x19f4cf);}(_0x19f4,0x99));const _0x4a8e=function(_0xcaf830,_0x19f4cf){_0xcaf830=_0xcaf830-0x0;let _0x4a8e66=_0x19f4[_0xcaf830];return _0x4a8e66;};import{Plugin as _0x15c135}from'ckeditor5/src/core';import{getTranslation as _0x52c02f}from'../utils/common-translations';export default class bt extends _0x15c135{[_0x4a8e('0x22')](){const _0x487183=this[_0x4a8e('0x19')];if(!_0x487183[_0x4a8e('0x18')][_0x4a8e('0x7')](_0x4a8e('0x0'))||!_0x487183['plugins']['has']('DataSchema'))return;const _0x57a302=_0x487183[_0x4a8e('0x18')]['get'](_0x4a8e('0x10')),_0x11fa1b=_0x487183[_0x4a8e('0x1b')],_0x442431=_0x487183['config'][_0x4a8e('0x15')](_0x4a8e('0x2')),_0x4df197=_0x487183['plugins'][_0x4a8e('0x15')](_0x4a8e('0x16')),_0x59a926=_0x487183[_0x4a8e('0x18')]['get'](_0x4a8e('0x21'))[_0x4a8e('0x13')](_0x487183[_0x4a8e('0x18')][_0x4a8e('0x15')](_0x4a8e('0x1f')),_0x442431[_0x4a8e('0x9')]);_0x57a302[_0x4a8e('0x1')](_0x4a8e('0x2'));const _0x33fbf8=new Set();for(const _0x4fd1a3 of _0x59a926[_0x4a8e('0x20')]){const _0x110f4c=_0x4df197[_0x4a8e('0xf')](_0x4fd1a3['element']);_0x33fbf8[_0x4a8e('0x17')](_0x110f4c);}const _0x11e784=new Set();for(const _0x908ff7 of _0x59a926[_0x4a8e('0xa')]){const _0x1e84de=_0x4df197[_0x4a8e('0xf')](_0x908ff7[_0x4a8e('0x4')]);_0x11e784[_0x4a8e('0x17')](_0x1e84de);for(const _0x4457f6 of _0x908ff7['ghsAttributes'])_0x11e784[_0x4a8e('0x17')](_0x4457f6);}for(const _0xcf1bf0 of _0x33fbf8)_0x57a302[_0x4a8e('0xc')](_0xcf1bf0),_0x57a302[_0x4a8e('0x3')][_0x4a8e('0xd')](_0xcf1bf0,_0x52c02f(_0x11fa1b,'FORMAT_STYLE'));for(const _0x4cde99 of _0x11e784)_0x57a302['_registerInlineAttribute'](_0x4cde99),_0x57a302[_0x4a8e('0x3')]['registerAttributeLabel'](_0x4cde99,_0x52c02f(_0x11fa1b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}[_0x4a8e('0x1a')](){const _0x2293de=this[_0x4a8e('0x19')],_0x36ccb7=_0x2293de[_0x4a8e('0x1b')];_0x2293de[_0x4a8e('0x18')][_0x4a8e('0x15')](_0x4a8e('0x10'))[_0x4a8e('0x3')][_0x4a8e('0x8')](_0x15d0ec=>{if('formatBlock'!=_0x15d0ec[_0x4a8e('0x1d')]&&_0x4a8e('0x5')!=_0x15d0ec['type'])return;const {data:_0xd2f9db}=_0x15d0ec;return _0xd2f9db&&'style'===_0xd2f9db[_0x4a8e('0xe')]?_0xd2f9db[_0x4a8e('0xb')][0x0][_0x4a8e('0x12')]?{'type':_0x4a8e('0x1e'),'content':_0x52c02f(_0x36ccb7,_0x4a8e('0x11'),_0xd2f9db[_0x4a8e('0xb')][0x0]['styleName'][_0x4a8e('0x1c')]())}:{'type':_0x4a8e('0x1e'),'content':_0x52c02f(_0x36ccb7,_0x4a8e('0x14'),_0xd2f9db[_0x4a8e('0xb')][0x0][_0x4a8e('0x6')]['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 _0x4a0a=['markMultiRangeDeletion','differ','maxRow','name','accept','forceValue','push','ELEMENT_TABLE','insertTableRowBelow','deletion','insertTableColumnRight','change','_getCoordsForCells','length','editor','insert','_suggestionFactory','createTableWalker','_setupColumnsRowsFixing','getFirstRange','getChanges','createRangeOn','setSelection','startsWith','getChildren','rowspan','root','document','enableCommand','toViewElement','tableColumn','getCellLocation','min','TrackChangesEditing','ELEMENT_TABLE_ROW','maxColumn','_descriptionFactory','selectTableRow','join','removeTableColumn','addClass','start','suggestion','some','ELEMENT_TABLE_WITH_TEXT','end','table','fromRange','first','last','*Remove:*\x20%0','add','tableRow','options','registerCustomCallback','_getSuggestionCoords','isTouching','TableEditing','rootName','ELEMENT_TABLE_COLUMN_WITH_TEXT','minColumn','get','left','getSelectionAffectedTableCells','locale','hasAttribute','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','*Insert:*\x20%0','refresh','minRow','$graveyard','tablePaste','highest','getAttribute','getRowIndexes','span','ELEMENT_TABLE_COLUMN','getRanges','insertion','has','type','isIntersectingWithRange','every','_splitMarkerName','removeTableRow','toLowerCase','getItems','classes','selection','nodeAfter','removeClass','isInContent','addMarker:suggestion','$textProxy','includes','tableCell','above','item','showSuggestionHighlights','plugins','registerDescriptionCallback','max','execute','enqueueChange','nodeBefore','_acceptFormatSuggestionCallbackFactory','afterInit','getColumnIndexes','registerElementLabel','isEqual','element','_tableSuggestions','order','detach','ELEMENT_TABLE_ROW_WITH_TEXT','from','map','commands','insertTableRowAbove','findAncestor','model','change:data','discard','data','colspan','cell','addRange','getChangedMarkers','_tablePostFixingSubtypes','values','substr','position','registerPostFixer','TableUtils','subType','filter','insertTable'];(function(_0x29b4d8,_0x4a0ac9){const _0x1ba584=function(_0x390216){while(--_0x390216){_0x29b4d8['push'](_0x29b4d8['shift']());}};_0x1ba584(++_0x4a0ac9);}(_0x4a0a,0x113));const _0x1ba5=function(_0x29b4d8,_0x4a0ac9){_0x29b4d8=_0x29b4d8-0x0;let _0x1ba584=_0x4a0a[_0x29b4d8];return _0x1ba584;};import{Plugin as _0x5d6a38}from'ckeditor5/src/core';import{LiveRange as _0x3bdbdf}from'ckeditor5/src/engine';import{setHighlightHandling as _0x78f988}from'ckeditor5/src/widget';import{getTranslation as _0x330e30}from'../utils/common-translations';export default class wt extends _0x5d6a38{constructor(_0x7e0c47){super(_0x7e0c47),this[_0x1ba5('0x82')]=['tableRow',_0x1ba5('0x1f')],this['_tableSuggestions']=new Set();}[_0x1ba5('0x6c')](){const _0x422f6a=this[_0x1ba5('0xf')],_0xbece0e=_0x422f6a['model'][_0x1ba5('0x1c')][_0x1ba5('0x5a')];if(!_0x422f6a[_0x1ba5('0x65')][_0x1ba5('0x51')](_0x1ba5('0x3a')))return;const _0x363ed4=_0x422f6a[_0x1ba5('0x41')],_0xedf038=_0x422f6a['plugins'][_0x1ba5('0x3e')](_0x1ba5('0x22')),_0x26bff4=_0x422f6a[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));_0xedf038[_0x1ba5('0x25')][_0x1ba5('0x6e')](_0x1ba5('0x2f'),_0x17093d=>_0x330e30(_0x363ed4,_0x1ba5('0x8'),_0x17093d)),this[_0x1ba5('0x13')](),_0xedf038[_0x1ba5('0x1d')](_0x1ba5('0x0')),_0xedf038[_0x1ba5('0x1d')](_0x1ba5('0x26')),_0xedf038[_0x1ba5('0x1d')]('selectTableColumn');for(const _0x450aa0 of[_0x1ba5('0x78'),_0x1ba5('0x9')]){const _0x594b58=_0x422f6a['commands'][_0x1ba5('0x3e')](_0x450aa0);_0xedf038[_0x1ba5('0x1d')](_0x450aa0,_0x185719=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2d6e8b=>{_0x185719();const _0x4d3e52=_0x1ba5('0x62')===_0x594b58[_0x1ba5('0x72')],_0x4a8ec8=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x4b4a71=_0x26bff4['getRowIndexes'](_0x4a8ec8),_0x1f4002=_0x4d3e52?_0x4b4a71[_0x1ba5('0x31')]-0x1:_0x4b4a71['last']+0x1,_0x140fbb=_0x4a8ec8[0x0][_0x1ba5('0x79')]('table'),_0x49b4a3=_0x26bff4[_0x1ba5('0x12')](_0x140fbb,{'startRow':_0x1f4002,'endRow':_0x1f4002}),_0x5b2d8b=Array['from'](_0x49b4a3)[_0x1ba5('0x76')](_0x25dce2=>_0x2d6e8b[_0x1ba5('0x16')](_0x25dce2[_0x1ba5('0x7f')]));_0xedf038['markMultiRangeInsertion'](_0x5b2d8b,_0x1ba5('0x35'));});});}for(const _0x55391b of['insertTableColumnLeft',_0x1ba5('0xb')]){const _0x217730=_0x422f6a[_0x1ba5('0x77')]['get'](_0x55391b);_0xedf038[_0x1ba5('0x1d')](_0x55391b,_0x5090ca=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2aff12=>{_0x5090ca();const _0x5410a8=_0x1ba5('0x3f')===_0x217730[_0x1ba5('0x72')],_0x34e18a=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x504f64=_0x26bff4[_0x1ba5('0x6d')](_0x34e18a),_0x1c3840=_0x5410a8?_0x504f64[_0x1ba5('0x31')]-0x1:_0x504f64[_0x1ba5('0x32')]+0x1,_0x43d34b=_0x34e18a[0x0]['findAncestor'](_0x1ba5('0x2f')),_0x3eb7fb=_0x26bff4[_0x1ba5('0x12')](_0x43d34b,{'startRow':0x0,'column':_0x1c3840,'includeAllSlots':!0x1}),_0x5d9052=Array[_0x1ba5('0x75')](_0x3eb7fb)[_0x1ba5('0x76')](_0x297f15=>_0x2aff12[_0x1ba5('0x16')](_0x297f15[_0x1ba5('0x7f')]));_0xedf038['markMultiRangeInsertion'](_0x5d9052,_0x1ba5('0x1f'));});});}for(const _0x458b22 of['removeTableRow',_0x1ba5('0x28')]){const _0x454fef=_0x458b22[_0x1ba5('0x84')](0xb),_0x41086f=_0x454fef[_0x1ba5('0x57')](),_0x58c01b=_0x41086f['substr'](0x0,0x3)+_0x1ba5('0x4d'),_0x57e39c='table'+_0x454fef,_0x58840c='min'+_0x454fef,_0x5738a5=_0x1ba5('0x67')+_0x454fef;_0xedf038['enableCommand'](_0x458b22,()=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x423211=>{const _0x425738=_0x26bff4[_0x1ba5('0x40')](_0xbece0e),_0x46d2fd=_0x425738[0x0][_0x1ba5('0x79')](_0x1ba5('0x2f'));let _0x401c48;if(_0x1ba5('0x56')==_0x458b22){const _0x395211=_0x26bff4[_0x1ba5('0x4c')](_0x425738);_0x401c48={'startRow':_0x395211[_0x1ba5('0x31')],'endRow':_0x395211['last'],'includeAllSlots':!0x0};}else{const _0x3d6b08=_0x26bff4[_0x1ba5('0x6d')](_0x425738);_0x401c48={'startColumn':_0x3d6b08['first'],'endColumn':_0x3d6b08['last'],'includeAllSlots':!0x0};}const _0x3f3bd9=_0x26bff4[_0x1ba5('0x12')](_0x46d2fd,_0x401c48),_0x319c71=Array[_0x1ba5('0x75')](_0x3f3bd9)[_0x1ba5('0x76')](({cell:_0x161f78})=>_0x161f78),_0x291bac=se(_0x319c71['filter'](_0x3cd9e5=>_0x3cd9e5[_0x1ba5('0x42')](_0x58c01b))),_0x2beec4=se(_0x319c71[_0x1ba5('0x89')](_0x47ceb9=>!_0x47ceb9[_0x1ba5('0x42')](_0x58c01b)))[_0x1ba5('0x76')](_0x48ca11=>_0x423211[_0x1ba5('0x16')](_0x48ca11)),_0x3aa2dc=_0xedf038[_0x1ba5('0x1')](_0x2beec4,_0x57e39c);if(_0x3aa2dc&&(_0x1ba5('0x35')==_0x3aa2dc[_0x1ba5('0x88')]||_0x1ba5('0x1f')==_0x3aa2dc[_0x1ba5('0x88')])){const _0x63d050=this[_0x1ba5('0x38')](_0x3aa2dc);for(const _0xd77dd5 of _0x291bac){const _0x5dc7ae=_0x423211['createRangeOn'](_0xd77dd5),_0x28336f=_0x26bff4[_0x1ba5('0x20')](_0xd77dd5),_0x3ca3ea=_0xd77dd5[_0x1ba5('0x4b')](_0x58c01b)-0x1,_0xc504c=_0x63d050[_0x58840c],_0x158bf7=_0x63d050[_0x5738a5];_0xc504c<=_0x28336f[_0x41086f]&&_0x28336f[_0x41086f]+_0x3ca3ea<=_0x158bf7&&_0x3aa2dc[_0x1ba5('0x80')](_0x5dc7ae);}}});});}function _0x13b936(_0x29174d){const _0x2e4130=Array[_0x1ba5('0x75')](_0xbece0e[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0xf666e8=>_0x3bdbdf[_0x1ba5('0x30')](_0xf666e8));_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x3c7b8f=>{const _0x3813dd=_0x3c7b8f['batch'];_0x29174d=_0x29174d[_0x1ba5('0x89')](_0x201688=>_0x1ba5('0x48')!=_0x201688[_0x1ba5('0x1b')][_0x1ba5('0x3b')]),_0x3c7b8f[_0x1ba5('0x17')](_0x29174d),_0x422f6a[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x1ba5('0x56'))[_0x1ba5('0x46')](),_0x422f6a[_0x1ba5('0x68')](_0x1ba5('0x56'),{'forceDefaultExecution':!0x0}),_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0x69')](()=>{_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0x69')](_0x3813dd,_0x280fc6=>{const _0x217283=_0x2e4130[_0x1ba5('0x89')](_0x22e7e0=>_0x1ba5('0x48')!=_0x22e7e0['root'][_0x1ba5('0x3b')]);_0x217283[_0x1ba5('0xe')]>0x0&&_0x280fc6[_0x1ba5('0x17')](_0x217283);for(const _0x2d252b of _0x2e4130)_0x2d252b[_0x1ba5('0x73')]();});});});}function _0x176f29(_0x4bfef4){_0x422f6a[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x2ed225=>{const _0x32d726=Array['from'](_0xbece0e[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0x51c605=>_0x3bdbdf[_0x1ba5('0x30')](_0x51c605)),_0x417696=[];for(const _0x1d5f88 of _0x4bfef4)for(const _0x4191a6 of _0x1d5f88[_0x1ba5('0x58')]({'shallow':!0x0}))_0x417696[_0x1ba5('0x7')](_0x4191a6);for(const _0x2f0b09 of _0x417696)'$graveyard'!=_0x2f0b09[_0x1ba5('0x1b')][_0x1ba5('0x3b')]&&(_0x2ed225['setSelection'](_0x2ed225['createPositionAt'](_0x2f0b09,0x0)),_0x422f6a[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x1ba5('0x28'))[_0x1ba5('0x46')](),_0x422f6a['execute'](_0x1ba5('0x28'),{'forceDefaultExecution':!0x0}));const _0x46f143=_0x32d726[_0x1ba5('0x89')](_0x589c29=>_0x1ba5('0x48')!=_0x589c29['root'][_0x1ba5('0x3b')]);_0x46f143['length']>0x0&&_0x2ed225[_0x1ba5('0x17')](_0x46f143);for(const _0x4ce2a1 of _0x32d726)_0x4ce2a1['detach']();});}function _0x39fbd1(_0xfa9613,_0x2bab4f){return _0x2bab4f[_0x1ba5('0x54')](_0x5bcfb2=>_0xfa9613[_0x1ba5('0x2c')](_0x41f665=>_0x41f665[_0x1ba5('0x2e')][_0x1ba5('0x6f')](_0x5bcfb2[_0x1ba5('0x2a')])||_0x5bcfb2[_0x1ba5('0x2e')][_0x1ba5('0x6f')](_0x41f665['start'])));}function _0x6d9956(_0x338d34,_0x5ab1f5){return _0x338d34[_0x1ba5('0x2c')](_0x4d42ed=>_0x5ab1f5[_0x1ba5('0x2c')](_0xe9d9fd=>_0x4d42ed[_0x1ba5('0x2e')][_0x1ba5('0x39')](_0xe9d9fd[_0x1ba5('0x2a')])));}_0x422f6a[_0x1ba5('0x7d')]['downcastDispatcher']['on'](_0x1ba5('0x5e'),(_0x197a63,_0x13345f,_0x3f159a)=>{if(!_0x3f159a[_0x1ba5('0x36')][_0x1ba5('0x64')])return;const _0x16b51e=_0x13345f[_0x1ba5('0x63')];if(!_0x16b51e)return;const _0xc0c570=_0x3f159a['mapper'][_0x1ba5('0x1e')](_0x16b51e);function _0xb03d8c(_0x298eea){return Array['isArray'](_0x298eea)?_0x298eea:[_0x298eea];}_0xc0c570&&_0x1ba5('0x61')===_0x16b51e[_0x1ba5('0x4')]&&_0x78f988(_0xc0c570,_0x3f159a['writer'],(_0xbd99f2,_0x487b86,_0x390418)=>_0x390418[_0x1ba5('0x29')](_0xb03d8c(_0x487b86[_0x1ba5('0x59')]),_0xbd99f2),(_0x5e7ff0,_0x275238,_0x439a1f)=>_0x439a1f[_0x1ba5('0x5c')](_0xb03d8c(_0x275238[_0x1ba5('0x59')]),_0x5e7ff0));},{'priority':_0x1ba5('0x4a')}),_0xedf038['_descriptionFactory'][_0x1ba5('0x66')](_0x554d77=>{if('insertion'!=_0x554d77['type']&&'deletion'!=_0x554d77[_0x1ba5('0x52')])return;const _0xaa635d=_0x554d77['getContainedElement']();if(null!=_0xaa635d&&_0xaa635d['is'](_0x1ba5('0x70'),_0x1ba5('0x2f'))){if(_0x1ba5('0x50')==_0x554d77[_0x1ba5('0x52')]){const _0x735478=_0x554d77[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x3b1c32=>_0x3b1c32['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x4ad626=>_0x4ad626['data']);if(_0x735478[_0x1ba5('0xe')])return{'type':_0x1ba5('0x50'),'content':_0x330e30(_0x363ed4,'*Insert:*\x20%0',_0x330e30(_0x363ed4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x735478[_0x1ba5('0x27')]('\x20')+'\x22'))};}if(_0x1ba5('0xa')==_0x554d77[_0x1ba5('0x52')]){const _0x5345bf=_0x554d77[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x5d35a3=>_0x5d35a3['is'](_0x1ba5('0x5f')))['map'](_0xd42caf=>_0xd42caf[_0x1ba5('0x7d')]);if(_0x5345bf[_0x1ba5('0xe')])return{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x2d'),'\x22'+_0x5345bf[_0x1ba5('0x27')]('\x20')+'\x22'))};}}}),_0xedf038[_0x1ba5('0x25')][_0x1ba5('0x66')](_0x3f17d7=>{if('tableRow'==_0x3f17d7[_0x1ba5('0x88')]){const _0x2396e1=_0x3f17d7[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x17e422=>_0x17e422['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x4c45e1=>_0x4c45e1[_0x1ba5('0x7d')]),_0x2bdf96=this[_0x1ba5('0x38')](_0x3f17d7),_0x4c3944=_0x2bdf96[_0x1ba5('0x3')]-_0x2bdf96[_0x1ba5('0x47')]+0x1;if('insertion'==_0x3f17d7[_0x1ba5('0x52')])return _0x2396e1[_0x1ba5('0xe')]?{'type':_0x1ba5('0x50'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x74'),[_0x4c3944,'\x22'+_0x2396e1[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,'ELEMENT_TABLE_ROW',_0x4c3944))};if(_0x1ba5('0xa')==_0x3f17d7[_0x1ba5('0x52')])return _0x2396e1[_0x1ba5('0xe')]?{'type':'deletion','content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x74'),[_0x4c3944,'\x22'+_0x2396e1[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x23'),_0x4c3944))};}if('tableColumn'==_0x3f17d7[_0x1ba5('0x88')]){const _0x3bf9cf=_0x3f17d7[_0x1ba5('0x58')]()[_0x1ba5('0x89')](_0x15a5cc=>_0x15a5cc['is'](_0x1ba5('0x5f')))[_0x1ba5('0x76')](_0x27d154=>_0x27d154[_0x1ba5('0x7d')]),_0x3853e8=this[_0x1ba5('0x38')](_0x3f17d7),_0x169189=_0x3853e8[_0x1ba5('0x24')]-_0x3853e8[_0x1ba5('0x3d')]+0x1;if('insertion'==_0x3f17d7[_0x1ba5('0x52')])return _0x3bf9cf[_0x1ba5('0xe')]?{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x3c'),[_0x169189,'\x22'+_0x3bf9cf[_0x1ba5('0x27')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x330e30(_0x363ed4,_0x1ba5('0x45'),_0x330e30(_0x363ed4,_0x1ba5('0x4e'),_0x169189))};if(_0x1ba5('0xa')==_0x3f17d7[_0x1ba5('0x52')])return _0x3bf9cf[_0x1ba5('0xe')]?{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x169189,'\x22'+_0x3bf9cf['join']('\x20')+'\x22']))}:{'type':_0x1ba5('0xa'),'content':_0x330e30(_0x363ed4,_0x1ba5('0x33'),_0x330e30(_0x363ed4,_0x1ba5('0x4e'),_0x169189))};}}),_0xedf038['_suggestionFactory'][_0x1ba5('0x37')]('insertion',_0x1ba5('0x35'),_0x1ba5('0x7c'),_0x13b936),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')]('deletion','tableRow',_0x1ba5('0x5'),_0x13b936),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0x50'),'tableColumn',_0x1ba5('0x7c'),_0x176f29),_0xedf038[_0x1ba5('0x11')]['registerCustomCallback']('deletion',_0x1ba5('0x1f'),_0x1ba5('0x5'),_0x176f29),_0xedf038['_suggestionFactory'][_0x1ba5('0x37')]('insertion',_0x1ba5('0x1f'),'join',_0x39fbd1),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0xa'),_0x1ba5('0x1f'),_0x1ba5('0x27'),_0x39fbd1),_0xedf038[_0x1ba5('0x11')]['registerCustomCallback'](_0x1ba5('0x50'),'tableRow',_0x1ba5('0x27'),_0x6d9956),_0xedf038[_0x1ba5('0x11')][_0x1ba5('0x37')](_0x1ba5('0xa'),_0x1ba5('0x35'),_0x1ba5('0x27'),_0x6d9956);}[_0x1ba5('0x6b')](){const _0x35f6a0=this[_0x1ba5('0xf')],_0x3f3793=_0x35f6a0[_0x1ba5('0x7a')][_0x1ba5('0x1c')][_0x1ba5('0x5a')];return(_0x4086fb,_0x1bcff1)=>{_0x35f6a0[_0x1ba5('0x7a')][_0x1ba5('0xc')](_0x3be942=>{const {commandName:_0x59f715,commandParams:_0x215f29}=_0x1bcff1;let _0x8d24bf=_0x4086fb[0x0][_0x1ba5('0x2e')][_0x1ba5('0x6a')];_0x215f29&&_0x215f29[0x0]&&!0x1===_0x215f29[0x0][_0x1ba5('0x6')]&&(_0x8d24bf=_0x4086fb[0x0][_0x1ba5('0x2a')][_0x1ba5('0x5b')]);const _0x465a20=_0x3be942['createRangeIn'](_0x8d24bf);if(_0x1ba5('0x48')==_0x465a20[_0x1ba5('0x1b')][_0x1ba5('0x3b')])return;const _0x838244=Array[_0x1ba5('0x75')](_0x3f3793[_0x1ba5('0x4f')]())[_0x1ba5('0x76')](_0x1384ab=>_0x3bdbdf[_0x1ba5('0x30')](_0x1384ab));_0x3be942[_0x1ba5('0x17')](_0x465a20),_0x35f6a0[_0x1ba5('0x77')][_0x1ba5('0x3e')](_0x59f715)[_0x1ba5('0x46')](),_0x215f29['push']({'forceDefaultExecution':!0x0}),_0x35f6a0[_0x1ba5('0x68')](_0x59f715,..._0x215f29);const _0x25b606=_0x838244['filter'](_0x41dd98=>_0x1ba5('0x48')!=_0x41dd98['root'][_0x1ba5('0x3b')]);_0x25b606[_0x1ba5('0xe')]>0x0&&_0x3be942['setSelection'](_0x25b606);for(const _0x568370 of _0x838244)_0x568370[_0x1ba5('0x73')]();});};}[_0x1ba5('0xd')](_0x31b43f){const _0xdb1071=this[_0x1ba5('0xf')][_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));let _0x19ba11=Number['MAX_SAFE_INTEGER'],_0x398fbc=Number[_0x1ba5('0x43')],_0x23d211=Number[_0x1ba5('0x44')],_0x5586b9=Number[_0x1ba5('0x43')];for(const _0x2f6e42 of _0x31b43f){if('$graveyard'==_0x2f6e42[_0x1ba5('0x1b')][_0x1ba5('0x3b')])continue;const {row:_0x1f94ad,column:_0x5b1ec2}=_0xdb1071['getCellLocation'](_0x2f6e42),_0x1a3e41=_0x2f6e42[_0x1ba5('0x42')]('rowspan')?_0x2f6e42[_0x1ba5('0x4b')](_0x1ba5('0x1a'))-0x1:0x0,_0x54648b=_0x2f6e42[_0x1ba5('0x42')](_0x1ba5('0x7e'))?_0x2f6e42[_0x1ba5('0x4b')](_0x1ba5('0x7e'))-0x1:0x0;_0x19ba11=_0x1f94ad<_0x19ba11?_0x1f94ad:_0x19ba11,_0x398fbc=_0x1f94ad+_0x1a3e41>_0x398fbc?_0x1f94ad+_0x1a3e41:_0x398fbc,_0x23d211=_0x5b1ec2<_0x23d211?_0x5b1ec2:_0x23d211,_0x5586b9=_0x5b1ec2+_0x54648b>_0x5586b9?_0x5b1ec2+_0x54648b:_0x5586b9;}return{'minRow':_0x19ba11,'maxRow':_0x398fbc,'minColumn':_0x23d211,'maxColumn':_0x5586b9};}[_0x1ba5('0x13')](){const _0x3d1f83=this[_0x1ba5('0xf')],_0x18bd8f=_0x3d1f83[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x22')),_0x32f5c7=_0x3d1f83[_0x1ba5('0x65')][_0x1ba5('0x3e')](_0x1ba5('0x87'));_0x3d1f83[_0x1ba5('0x7a')][_0x1ba5('0x1c')]['on'](_0x1ba5('0x7b'),()=>{const _0x43a99b=Array[_0x1ba5('0x75')](_0x3d1f83['model'][_0x1ba5('0x1c')][_0x1ba5('0x2')][_0x1ba5('0x81')]());for(const {name:_0x1d0fc6,data:_0x22ea1b}of _0x43a99b){const {group:_0x10b1f5,id:_0x5d8729,subType:_0x584c0f}=_0x18bd8f[_0x1ba5('0x55')](_0x1d0fc6);if(_0x1ba5('0x2b')!=_0x10b1f5)continue;if(null!=_0x22ea1b['oldRange'])continue;const _0x5cd513=_0x18bd8f['getSuggestion'](_0x5d8729);this[_0x1ba5('0x82')][_0x1ba5('0x60')](_0x584c0f)&&this[_0x1ba5('0x71')][_0x1ba5('0x34')](_0x5cd513);}},{'priority':'low'});const _0x5609df=(_0x57bd33,_0x26035f)=>{let _0x6ee316=!0x1;const _0x2c458a=_0x26035f[_0x1ba5('0x16')](_0x57bd33),_0x58ed9b=_0x57bd33[_0x1ba5('0x79')](_0x1ba5('0x2f')),_0x11e986=_0x32f5c7[_0x1ba5('0x20')](_0x57bd33);for(const _0x3abb50 of this['_tableSuggestions']){const _0x244b11=_0x3abb50[_0x1ba5('0x88')],_0x2af7fe=_0x244b11[_0x1ba5('0x18')](_0x1ba5('0x49')),_0x5494d=_0x244b11[_0x1ba5('0x84')](_0x2af7fe?0xa:0x5),_0x5e107d=_0x5494d[_0x1ba5('0x57')](),_0x4012ee=_0x5e107d[_0x1ba5('0x84')](0x0,0x3)+_0x1ba5('0x4d'),_0x3bfc9d=_0x1ba5('0x21')+_0x5494d,_0x50ef7b=_0x1ba5('0x67')+_0x5494d;if(!_0x3abb50[_0x1ba5('0x5d')])continue;if(_0x58ed9b!=_0x3abb50[_0x1ba5('0x14')]()[_0x1ba5('0x2a')][_0x1ba5('0x79')](_0x1ba5('0x2f')))continue;if(_0x3abb50[_0x1ba5('0x53')](_0x2c458a))continue;const _0x3cd73b=_0x57bd33[_0x1ba5('0x42')](_0x4012ee)?_0x57bd33[_0x1ba5('0x4b')](_0x4012ee)-0x1:0x0,_0x150716=this[_0x1ba5('0x38')](_0x3abb50),_0xe905e6=_0x150716[_0x3bfc9d],_0x1203d5=_0x150716[_0x50ef7b];_0xe905e6<=_0x11e986[_0x5e107d]&&_0x11e986[_0x5e107d]+_0x3cd73b<=_0x1203d5&&(_0x3abb50['addRange'](_0x2c458a),_0x6ee316=!0x0);}return _0x6ee316;};_0x3d1f83[_0x1ba5('0x7a')]['document'][_0x1ba5('0x86')](_0x475da7=>{let _0x2c1072=!0x1;for(const _0x225631 of _0x3d1f83['model'][_0x1ba5('0x1c')][_0x1ba5('0x2')][_0x1ba5('0x15')]())if(_0x1ba5('0x10')==_0x225631['type']){if(_0x1ba5('0x35')==_0x225631[_0x1ba5('0x4')])for(const _0x5ccf00 of _0x225631[_0x1ba5('0x85')]['nodeAfter'][_0x1ba5('0x19')]())_0x2c1072=_0x2c1072||_0x5609df(_0x5ccf00,_0x475da7);else _0x1ba5('0x61')==_0x225631[_0x1ba5('0x4')]&&(_0x2c1072=_0x2c1072||_0x5609df(_0x225631[_0x1ba5('0x85')]['nodeAfter'],_0x475da7));}return _0x2c1072;});}[_0x1ba5('0x38')](_0x586dad){return this[_0x1ba5('0xd')](_0x586dad[_0x1ba5('0x4f')]()[_0x1ba5('0x76')](_0x31b827=>_0x31b827[_0x1ba5('0x2a')]['nodeAfter']));}}function se(_0x471cd8){return Array[_0x1ba5('0x75')](new Set(_0x471cd8)[_0x1ba5('0x83')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5126=['TableCaptionEditing','afterInit','plugins','has','TrackChangesEditing','requires'];(function(_0x49d4d7,_0x51260b){const _0x10b077=function(_0x518541){while(--_0x518541){_0x49d4d7['push'](_0x49d4d7['shift']());}};_0x10b077(++_0x51260b);}(_0x5126,0x19a));const _0x10b0=function(_0x49d4d7,_0x51260b){_0x49d4d7=_0x49d4d7-0x0;let _0x10b077=_0x5126[_0x49d4d7];return _0x10b077;};import{Plugin as _0x1afcdb}from'ckeditor5/src/core';import _0x1cda85 from'./table';export default class Nt extends _0x1afcdb{static get[_0x10b0('0x3')](){return[_0x1cda85];}[_0x10b0('0x5')](){const _0x1be0cc=this['editor'];if(!_0x1be0cc['plugins'][_0x10b0('0x1')](_0x10b0('0x4')))return;_0x1be0cc[_0x10b0('0x0')]['get'](_0x10b0('0x2'))['enableCommand']('toggleTableCaption');}}
|