@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240105.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/casechange.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 _0x1ff9=['*Uncheck\x20item*','enableCommand','element','checkChild','plugins','todoList','selection','format','name','formatBlock','_selectedElements','numberedList','*Change\x20to:*\x20%0','push','nextSibling','end','length','has','markBlockFormat','_descriptionFactory','ELEMENT_BULLETED_LIST','createPositionAt','before','ELEMENT_LIST_ITEM','bulletedList','filter','commands','outdentList','paragraph','*Indent:*\x20%0','add','TrackChangesEditing','model','registerElementLabel','indentList','get','listIndent','slice','createRange','checkTodoList','registerDescriptionCallback','listItem','editor','numbered','value','type','*Outdent:*\x20%0','commandName','change','schema','getSelectedBlocks','replace','blockName','locale','formatInline','parent','List','todo','LegacyListEditing','getAttribute','ELEMENT_TODO_LIST','from','previousSibling','isObject','document','execute'];(function(_0x2e9c3c,_0x1ff941){const _0x359552=function(_0x501fe6){while(--_0x501fe6){_0x2e9c3c['push'](_0x2e9c3c['shift']());}};_0x359552(++_0x1ff941);}(_0x1ff9,0x127));const _0x3595=function(_0x2e9c3c,_0x1ff941){_0x2e9c3c=_0x2e9c3c-0x0;let _0x359552=_0x1ff9[_0x2e9c3c];return _0x359552;};import{Plugin as _0x26eead}from'ckeditor5/src/core.js';import{getTranslation as _0x54eac5}from'../utils/common-translations.js';export default class ut extends _0x26eead{['afterInit'](){const _0x2b2410=this[_0x3595('0xb')],_0x4a750f=_0x2b2410[_0x3595('0x16')];if(!_0x2b2410[_0x3595('0x27')][_0x3595('0x34')](_0x3595('0x1b')))return;const _0x3aa4ce=_0x2b2410['plugins']['get'](_0x3595('0x0')),_0x101da6=_0x2b2410['plugins'][_0x3595('0x34')]('LegacyTodoListEditing');function _0x3aaa68(_0x560536){return()=>{const _0x57a044=_0x2b2410[_0x3595('0x1')][_0x3595('0x21')][_0x3595('0x29')],_0x4e7846=_0x2b2410[_0x3595('0x3d')][_0x3595('0x4')](_0x560536);if(_0x4e7846[_0x3595('0xd')])return void _0x2b2410[_0x3595('0x22')](_0x3595('0x3f'),{});const _0x542ee6=_0x560536[_0x3595('0x6')](0x0,-0x4),_0x2d6e8a=function(_0x2ba8ec,_0x5bc0f4,_0x491bc5){let _0x49230a=Array['from'](_0x2ba8ec)[_0x3595('0x3c')](_0x2beae2=>function(_0x5b5d9d,_0x287934){return _0x287934[_0x3595('0x26')](_0x5b5d9d[_0x3595('0x18')],_0x3595('0xa'))&&!_0x287934[_0x3595('0x20')](_0x5b5d9d);}(_0x2beae2,_0x491bc5));_0x49230a=_0x49230a['filter'](_0x39600f=>!_0x39600f['is'](_0x3595('0x25'),_0x3595('0xa'))||_0x39600f['getAttribute']('listType')!=_0x5bc0f4);const _0x3416ad=new Set();for(const _0x547961 of _0x49230a)_0x547961['is']('element',_0x3595('0xa'))?_0x3416ad[_0x3595('0x41')](ne(_0x547961)):_0x3416ad[_0x3595('0x41')](_0x547961);return Array[_0x3595('0x1e')](_0x3416ad);}(_0x57a044[_0x3595('0x13')](),_0x542ee6,_0x2b2410[_0x3595('0x1')][_0x3595('0x12')]);_0x2b2410[_0x3595('0x1')][_0x3595('0x11')](()=>{for(const _0x1c1a8f of _0x2d6e8a)_0x3aa4ce[_0x3595('0x35')](_0x1c1a8f,{'commandName':_0x560536,'commandParams':[{'forceValue':!_0x4e7846[_0x3595('0xd')]}],'formatGroupId':_0x3595('0x15')},oe(_0x1c1a8f));});};}function _0x500141(_0x4b0d93){return()=>{const _0x23c624=function(_0x2d0f42){let _0x1286a2=Array['from'](_0x2d0f42);const _0x2f2f04=_0x1286a2['findIndex'](_0x4529d5=>'listItem'!=_0x4529d5['name']);return _0x2f2f04>-0x1&&(_0x1286a2=_0x1286a2[_0x3595('0x6')](0x0,_0x2f2f04)),_0x1286a2;}(_0x2b2410[_0x3595('0x1')][_0x3595('0x21')][_0x3595('0x29')][_0x3595('0x13')]()),_0x43ae82=_0x2b2410[_0x3595('0x1')][_0x3595('0x7')](_0x2b2410[_0x3595('0x1')][_0x3595('0x38')](_0x23c624[0x0],_0x3595('0x39')),_0x2b2410['model'][_0x3595('0x38')](_0x23c624[_0x23c624[_0x3595('0x33')]-0x1],_0x3595('0x32')));_0x2b2410[_0x3595('0x1')][_0x3595('0x11')](()=>{_0x3aa4ce[_0x3595('0x35')](_0x43ae82,{'commandName':_0x4b0d93,'commandParams':[],'formatGroupId':_0x3595('0x5')},function(_0x378c36){const _0x375840=new Set();for(const _0x4e9ae2 of _0x378c36){let _0x29dbd4=_0x4e9ae2[_0x3595('0x31')];for(;_0x29dbd4&&_0x29dbd4[_0x3595('0x1c')](_0x3595('0x5'))>_0x4e9ae2[_0x3595('0x1c')](_0x3595('0x5'));)_0x375840[_0x3595('0x41')](_0x29dbd4),_0x29dbd4=_0x29dbd4['nextSibling'];}return Array[_0x3595('0x1e')](_0x375840);}(_0x23c624));});};}_0x3aa4ce[_0x3595('0x24')]('numberedList',_0x3aaa68(_0x3595('0x2e'))),_0x3aa4ce[_0x3595('0x24')](_0x3595('0x3b'),_0x3aaa68('bulletedList')),_0x101da6&&_0x3aa4ce[_0x3595('0x24')]('todoList',_0x3aaa68(_0x3595('0x28'))),_0x3aa4ce['enableCommand'](_0x3595('0x3'),_0x500141('indentList')),_0x3aa4ce[_0x3595('0x24')](_0x3595('0x3e'),_0x500141('outdentList')),_0x101da6&&_0x3aa4ce['enableCommand']('checkTodoList',()=>{const _0x3aa82b=_0x2b2410[_0x3595('0x3d')]['get'](_0x3595('0x8')),_0x564089=Array[_0x3595('0x1e')](_0x3aa82b[_0x3595('0x2d')]);_0x564089[_0x3595('0x3c')](_0x107383=>_0x107383['getAttribute']('todoListChecked')!=_0x3aa82b['value']),_0x2b2410[_0x3595('0x1')][_0x3595('0x11')](()=>{for(const _0xd5e822 of _0x564089)_0x3aa4ce[_0x3595('0x35')](_0xd5e822,{'commandName':_0x3595('0x8'),'commandParams':[{'forceValue':!_0x3aa82b[_0x3595('0xd')]}]});});}),_0x3aa4ce[_0x3595('0x36')][_0x3595('0x2')](_0x3595('0xa'),_0x38f8a0=>_0x54eac5(_0x4a750f,_0x3595('0x3a'),_0x38f8a0)),_0x3aa4ce[_0x3595('0x36')][_0x3595('0x9')](_0x18c93c=>{if(_0x3595('0x2c')!=_0x18c93c[_0x3595('0xe')]&&_0x3595('0x17')!=_0x18c93c[_0x3595('0xe')])return;const {data:_0x28cc44}=_0x18c93c;if(_0x28cc44){if('numberedList'==_0x28cc44['commandName']||_0x3595('0x3b')==_0x28cc44[_0x3595('0x10')]||'todoList'==_0x28cc44['commandName'])switch(_0x28cc44['commandName'][_0x3595('0x14')](_0x3595('0x19'),'')){case'bulleted':return _0x3a721c(_0x54eac5(_0x4a750f,_0x3595('0x37')));case _0x3595('0xc'):return _0x3a721c(_0x54eac5(_0x4a750f,'ELEMENT_NUMBERED_LIST'));case _0x3595('0x1a'):return _0x3a721c(_0x54eac5(_0x4a750f,_0x3595('0x1d')));}if(_0x3595('0x3')==_0x28cc44[_0x3595('0x10')])return{'type':_0x3595('0x2a'),'content':_0x54eac5(_0x4a750f,_0x3595('0x40'),_0x54eac5(_0x4a750f,_0x3595('0x3a')))};if(_0x3595('0x3e')==_0x28cc44[_0x3595('0x10')])return{'type':'format','content':_0x54eac5(_0x4a750f,_0x3595('0xf'),_0x54eac5(_0x4a750f,_0x3595('0x3a')))};if(_0x3595('0x8')==_0x28cc44[_0x3595('0x10')])return _0x28cc44['commandParams'][0x0]['forceValue']?{'type':_0x3595('0x2a'),'content':_0x54eac5(_0x4a750f,'*Check\x20item*')}:{'type':_0x3595('0x2a'),'content':_0x54eac5(_0x4a750f,_0x3595('0x23'))};}function _0x3a721c(_0xef55d5){return{'type':_0x3595('0x2a'),'content':_0x54eac5(_0x4a750f,_0x3595('0x2f'),_0xef55d5)};}});}}function ne(_0x5c59e6){const _0x2a52d1=_0x5c59e6[_0x3595('0x1c')](_0x3595('0x5'));if(0x0==_0x2a52d1)return _0x5c59e6;let _0xb03e99=_0x5c59e6;for(;_0x5c59e6[_0x3595('0x1f')]&&_0x5c59e6['previousSibling']['is']('element','listItem');){const _0x22a5d6=_0x5c59e6[_0x3595('0x1f')][_0x3595('0x1c')](_0x3595('0x5'));if(_0x22a5d6==_0x2a52d1)_0xb03e99=_0x5c59e6[_0x3595('0x1f')];else{if(_0x22a5d6<_0x2a52d1)break;}_0x5c59e6=_0x5c59e6['previousSibling'];}return _0xb03e99;}function oe(_0x503061){const _0x3ced1e=[];if(_0x503061['is']('element',_0x3595('0xa'))&&_0x503061['getAttribute']('listIndent')>0x0){let _0xb556d1=_0x503061[_0x3595('0x31')];for(;_0xb556d1&&_0x3595('0xa')==_0xb556d1[_0x3595('0x2b')]&&_0xb556d1['getAttribute'](_0x3595('0x5'))==_0x503061[_0x3595('0x1c')](_0x3595('0x5'));)_0x3ced1e[_0x3595('0x30')](_0xb556d1),_0xb556d1=_0xb556d1[_0x3595('0x31')];}return _0x3ced1e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x149b=['createPositionAt','document','formatInline','enableCommand','bind','listReversed','replace','filter','map','type','element','locale','format','list.properties','handleListStyleCommand','getListTypeFromListStyleType','forward','LegacyListUtils','styles','getSiblingNodes','handleDescriptions','formatBlock','TrackChangesEditing','selection','editor','handleListReversedCommand','_getTranslationKeyForListStyle','ELEMENT_','length','markMultiRangeBlockFormat','change','startIndex','plugins','commandParams','flat','getFirstPosition','getAttribute','_LIST_','handleListStartCommand','listItem','get','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20regular','reversed','listType','*Format:*\x20set\x20order\x20to\x20reversed','parent','_getSuggestionBlocks','numbered','model','toUpperCase','getLastPosition','listStart','listStyle','before','createRange','backward','has'];(function(_0x3330d7,_0x149b68){const _0x5768da=function(_0x5189d1){while(--_0x5189d1){_0x3330d7['push'](_0x3330d7['shift']());}};_0x5768da(++_0x149b68);}(_0x149b,0x71));const _0x5768=function(_0x3330d7,_0x149b68){_0x3330d7=_0x3330d7-0x0;let _0x5768da=_0x149b[_0x3330d7];return _0x5768da;};import{Plugin as _0xd12405}from'ckeditor5/src/core.js';import{getTranslation as _0xa55293}from'../utils/common-translations.js';export default class ht extends _0xd12405{['afterInit'](){if(!this[_0x5768('0x1b')]['plugins'][_0x5768('0x2')]('LegacyListPropertiesEditing'))return;const _0x1b71e7=this[_0x5768('0x1b')]['config'][_0x5768('0x2b')](_0x5768('0x10')),_0xee1bc7=this['editor'][_0x5768('0x23')][_0x5768('0x2b')]('TrackChangesEditing');_0x1b71e7[_0x5768('0x15')]&&_0xee1bc7[_0x5768('0x6')]('listStyle',this[_0x5768('0x11')][_0x5768('0x7')](this)),_0x1b71e7[_0x5768('0x2e')]&&_0xee1bc7[_0x5768('0x6')](_0x5768('0x8'),this[_0x5768('0x1c')][_0x5768('0x7')](this)),_0x1b71e7[_0x5768('0x22')]&&_0xee1bc7[_0x5768('0x6')]('listStart',this[_0x5768('0x29')][_0x5768('0x7')](this)),_0xee1bc7['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions'][_0x5768('0x7')](this));}[_0x5768('0x11')](_0x5922ed,_0x3e85e2={}){const _0xb6b3aa=this[_0x5768('0x1b')][_0x5768('0x23')][_0x5768('0x2b')](_0x5768('0x19')),_0x5b42a1=this['_getSuggestionBlocksForListStyle']();this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x21')](()=>{_0xb6b3aa[_0x5768('0x20')](_0x5b42a1,{'commandName':'listStyle','commandParams':[{'type':_0x3e85e2[_0x5768('0xc')]}],'formatGroupId':_0x5768('0x38')});});}[_0x5768('0x1c')](_0x59a5b7,_0x1d5b0={}){const _0x45bda7=this[_0x5768('0x1b')][_0x5768('0x23')]['get'](_0x5768('0x19')),_0x2a9880=this[_0x5768('0x32')](_0x38e9d8=>_0x38e9d8['is'](_0x5768('0xd'),_0x5768('0x2a'))&&_0x5768('0x33')===_0x38e9d8[_0x5768('0x27')](_0x5768('0x2f')));if(_0x2a9880[_0x5768('0x1f')]<0x1)return;const _0x29800b=_0x2a9880[_0x5768('0xb')](_0x3f3de1=>this[_0x5768('0x1b')]['model'][_0x5768('0x0')](this[_0x5768('0x1b')][_0x5768('0x34')]['createPositionAt'](_0x3f3de1,_0x5768('0x39')),this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x3')](_0x3f3de1,0x0)));this['editor'][_0x5768('0x34')][_0x5768('0x21')](()=>{_0x45bda7[_0x5768('0x20')](_0x29800b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d5b0[_0x5768('0x2e')]}],'formatGroupId':_0x5768('0x8')});});}[_0x5768('0x29')](_0x10083b,_0x3b2515={}){const _0x1a8827=this['editor'][_0x5768('0x23')][_0x5768('0x2b')](_0x5768('0x19')),_0x57e440=this[_0x5768('0x32')](_0x3fe632=>_0x3fe632['is']('element',_0x5768('0x2a'))&&_0x5768('0x33')===_0x3fe632['getAttribute'](_0x5768('0x2f')));if(_0x57e440[_0x5768('0x1f')]<0x1)return;const _0x4e3faf=_0x57e440[_0x5768('0xb')](_0x2bbf27=>this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x0')](this[_0x5768('0x1b')][_0x5768('0x34')]['createPositionAt'](_0x2bbf27,_0x5768('0x39')),this[_0x5768('0x1b')][_0x5768('0x34')]['createPositionAt'](_0x2bbf27,0x0)));this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x21')](()=>{_0x1a8827['markMultiRangeBlockFormat'](_0x4e3faf,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b2515[_0x5768('0x22')]}],'formatGroupId':'listStart'});});}[_0x5768('0x17')](_0x556ce7){if(_0x5768('0x18')!=_0x556ce7['type']&&_0x5768('0x5')!=_0x556ce7['type'])return;const _0x2d4aed=this['editor'][_0x5768('0xe')],{data:_0x2772b2}=_0x556ce7;if(!_0x2772b2)return;let _0x483732,_0x82b788;switch(_0x2772b2['commandName']){case'listStyle':_0x483732='*Change\x20to:*\x20%0',_0x82b788={'type':'format','content':_0xa55293(_0x2d4aed,_0x483732,_0xa55293(_0x2d4aed,this['_getTranslationKeyForListStyle'](_0x2772b2['commandParams'][0x0][_0x5768('0xc')])))};break;case'listReversed':_0x483732=_0x2772b2[_0x5768('0x24')][0x0][_0x5768('0x2e')]?_0x5768('0x30'):_0x5768('0x2d'),_0x82b788={'type':_0x5768('0xf'),'content':_0xa55293(_0x2d4aed,_0x483732)};break;case _0x5768('0x37'):_0x483732='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x82b788={'type':_0x5768('0xf'),'content':_0xa55293(_0x2d4aed,_0x483732,_0x2772b2['commandParams'][0x0][_0x5768('0x22')])};}return _0x82b788;}['_getSuggestionBlocksForListStyle'](){var _0x48e731,_0x28bf9f,_0x4dbedb,_0x2e3e41;const _0x83a925=this[_0x5768('0x1b')][_0x5768('0x23')]['get']('LegacyListUtils');let _0x152926=Array['from'](this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x4')][_0x5768('0x1a')]['getSelectedBlocks']());return(null===(_0x48e731=_0x152926[0x0])||void 0x0===_0x48e731?void 0x0:_0x48e731['is'](_0x5768('0xd'),_0x5768('0x2a')))&&_0x152926['unshift'](..._0x83a925['getSiblingNodes'](this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x4')][_0x5768('0x1a')][_0x5768('0x26')](),'backward')),(null===(_0x28bf9f=_0x152926[_0x152926['length']-0x1])||void 0x0===_0x28bf9f?void 0x0:_0x28bf9f['is']('element',_0x5768('0x2a')))&&_0x152926['push'](..._0x83a925[_0x5768('0x16')](this[_0x5768('0x1b')]['model'][_0x5768('0x4')]['selection'][_0x5768('0x36')](),_0x5768('0x13'))),_0x152926=[...new Set(_0x152926)],(null===(_0x2e3e41=null===(_0x4dbedb=this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x4')]['selection'][_0x5768('0x26')]())||void 0x0===_0x4dbedb?void 0x0:_0x4dbedb[_0x5768('0x31')])||void 0x0===_0x2e3e41?void 0x0:_0x2e3e41['is']('element',_0x5768('0x2a')))&&(_0x152926=_0x152926[_0x5768('0xa')](_0xde0de1=>_0xde0de1['is'](_0x5768('0xd'),_0x5768('0x2a')))),_0x152926;}[_0x5768('0x32')](_0x159947){const _0x5430c8=this[_0x5768('0x1b')][_0x5768('0x23')][_0x5768('0x2b')](_0x5768('0x14'));let _0x370307=Array['from'](this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x4')][_0x5768('0x1a')][_0x5768('0x2c')]())[_0x5768('0xa')](_0x159947)[_0x5768('0xb')](_0x51c972=>{const _0x435e40=this[_0x5768('0x1b')][_0x5768('0x34')][_0x5768('0x3')](_0x51c972,0x0);return[..._0x5430c8[_0x5768('0x16')](_0x435e40,_0x5768('0x1')),..._0x5430c8[_0x5768('0x16')](_0x435e40,_0x5768('0x13'))];})[_0x5768('0x25')]();return _0x370307=[...new Set(_0x370307)],_0x370307;}[_0x5768('0x1d')](_0x43ea41){return _0x5768('0x1e')+this[_0x5768('0x1b')]['plugins'][_0x5768('0x2b')](_0x5768('0x14'))[_0x5768('0x12')](_0x43ea41)[_0x5768('0x35')]()+_0x5768('0x28')+_0x43ea41[_0x5768('0x35')]()[_0x5768('0x9')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38b4=['MediaEmbedEditing','data','TrackChangesEditing','options','attribute:url:media','showSuggestionHighlights','_descriptionFactory','createEmptyElement','downcastDispatcher','enableCommand','stop','plugins','for','editor','registerElementLabel','conversion','locale','dataDowncast','get','has','div','media','elementToElement','high'];(function(_0x17b1a0,_0x38b438){const _0x438737=function(_0x5cdc55){while(--_0x5cdc55){_0x17b1a0['push'](_0x17b1a0['shift']());}};_0x438737(++_0x38b438);}(_0x38b4,0xc7));const _0x4387=function(_0x17b1a0,_0x38b438){_0x17b1a0=_0x17b1a0-0x0;let _0x438737=_0x38b4[_0x17b1a0];return _0x438737;};import{Plugin as _0x21357c}from'ckeditor5/src/core.js';import{getTranslation as _0x349827}from'../utils/common-translations.js';export default class ft extends _0x21357c{['afterInit'](){const _0x1b2577=this[_0x4387('0x6')];if(!_0x1b2577[_0x4387('0x4')][_0x4387('0xc')](_0x4387('0x11')))return;const _0x42cc8a=_0x1b2577[_0x4387('0x4')][_0x4387('0xb')](_0x4387('0x13')),_0x5d1a02=_0x1b2577[_0x4387('0x9')];_0x42cc8a[_0x4387('0x2')]('mediaEmbed'),_0x42cc8a[_0x4387('0x17')][_0x4387('0x7')]('media',_0x40b824=>_0x349827(_0x5d1a02,'ELEMENT_MEDIA',_0x40b824)),_0x1b2577[_0x4387('0x8')][_0x4387('0x5')](_0x4387('0xa'))[_0x4387('0xf')]({'model':_0x4387('0xe'),'view':(_0x1fb05c,{writer:_0xbb04d0,options:_0x753e7d})=>{if(_0x753e7d['showSuggestionHighlights'])return _0xbb04d0[_0x4387('0x0')](_0x4387('0xd'));},'converterPriority':'high'}),_0x1b2577[_0x4387('0x12')][_0x4387('0x1')]['on'](_0x4387('0x15'),(_0x9c6107,_0xce724e,_0x2f0796)=>{_0x2f0796[_0x4387('0x14')][_0x4387('0x16')]&&_0x9c6107[_0x4387('0x3')]();},{'priority':_0x4387('0x10')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x372c=['mention','editor','has','enableCommand','get','plugins','MentionEditing','TrackChangesEditing'];(function(_0x5866ed,_0x372ca6){const _0x38d397=function(_0x5cd879){while(--_0x5cd879){_0x5866ed['push'](_0x5866ed['shift']());}};_0x38d397(++_0x372ca6);}(_0x372c,0x1d7));const _0x38d3=function(_0x5866ed,_0x372ca6){_0x5866ed=_0x5866ed-0x0;let _0x38d397=_0x372c[_0x5866ed];return _0x38d397;};import{Plugin as _0x490cb6}from'ckeditor5/src/core.js';export default class gt extends _0x490cb6{['afterInit'](){const _0x2bf53e=this[_0x38d3('0x2')];_0x2bf53e[_0x38d3('0x6')][_0x38d3('0x3')](_0x38d3('0x7'))&&_0x2bf53e[_0x38d3('0x6')][_0x38d3('0x5')](_0x38d3('0x0'))[_0x38d3('0x4')](_0x38d3('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4226=['plugins','get','pageBreak','ELEMENT_PAGE_BREAK','registerElementLabel','has','afterInit','editor','locale','TrackChangesEditing','enableCommand','_descriptionFactory'];(function(_0x3cdcd4,_0x42268a){const _0x1b90e2=function(_0x4c86e7){while(--_0x4c86e7){_0x3cdcd4['push'](_0x3cdcd4['shift']());}};_0x1b90e2(++_0x42268a);}(_0x4226,0x163));const _0x1b90=function(_0x3cdcd4,_0x42268a){_0x3cdcd4=_0x3cdcd4-0x0;let _0x1b90e2=_0x4226[_0x3cdcd4];return _0x1b90e2;};import{Plugin as _0x30e989}from'ckeditor5/src/core.js';import{getTranslation as _0x114464}from'../utils/common-translations.js';export default class lt extends _0x30e989{[_0x1b90('0xb')](){const _0x3490e7=this[_0x1b90('0x0')];if(!_0x3490e7[_0x1b90('0x5')][_0x1b90('0xa')]('PageBreakEditing'))return;_0x3490e7['plugins'][_0x1b90('0x6')](_0x1b90('0x2'))[_0x1b90('0x3')](_0x1b90('0x7'));const _0x70d934=_0x3490e7['plugins'][_0x1b90('0x6')]('TrackChangesEditing'),_0x435622=_0x3490e7[_0x1b90('0x1')];_0x70d934[_0x1b90('0x4')][_0x1b90('0x9')](_0x1b90('0x7'),_0xdda871=>_0x114464(_0x435622,_0x1b90('0x8'),_0xdda871));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d90=['span','commandName','options','plugins','highest','*Change\x20to:*\x20%0','format','type','bindElementToMarker','TrackChangesEditing','name','editor','downcastDispatcher','paragraph','getFirstRange','isLimit','addMarker:suggestion:insertion','isBlock','_descriptionFactory','includes','insertion','markerName','consumable','editing','nodeAfter','_registerLegacyDescription','locale','get','has','ck-suggestion-marker-split','model','addClass','end','_enableDefaultAttributesIntegration','registerElementLabel','schema','markerRange','Paragraph','mapper','writer','registerDescriptionCallback','$text','createUIElement','getItemLabel','isTouching','toViewPosition','activeMarkers','data','checkChild'];(function(_0x2439e0,_0x2d9021){const _0x36ff2c=function(_0x24460b){while(--_0x24460b){_0x2439e0['push'](_0x2439e0['shift']());}};_0x36ff2c(++_0x2d9021);}(_0x2d90,0xfc));const _0x36ff=function(_0x2439e0,_0x2d9021){_0x2439e0=_0x2439e0-0x0;let _0x36ff2c=_0x2d90[_0x2439e0];return _0x36ff2c;};import{Plugin as _0x14608c}from'ckeditor5/src/core.js';import{getTranslation as _0x2e1437}from'../utils/common-translations.js';export default class mt extends _0x14608c{['afterInit'](){const _0x1110a7=this[_0x36ff('0x4')];if(!_0x1110a7[_0x36ff('0x2d')][_0x36ff('0x15')](_0x36ff('0x1e')))return;const _0x46f1d6=_0x1110a7[_0x36ff('0x13')],_0x3e9675=_0x1110a7[_0x36ff('0x2d')][_0x36ff('0x14')](_0x36ff('0x2'));_0x3e9675[_0x36ff('0xb')][_0x36ff('0x1b')](_0x36ff('0x6'),_0x2d8bb9=>_0x2e1437(_0x46f1d6,'ELEMENT_PARAGRAPH',_0x2d8bb9)),_0x3e9675[_0x36ff('0x1a')](_0x36ff('0x6')),_0x3e9675['enableCommand']('insertParagraph'),_0x1110a7[_0x36ff('0x10')][_0x36ff('0x5')]['on'](_0x36ff('0x9'),nr(_0x1110a7),{'priority':_0x36ff('0x2e')}),_0x1110a7[_0x36ff('0x28')][_0x36ff('0x5')]['on']('addMarker:suggestion:insertion',(_0x1b1217,_0x4d466e,_0xd2df6b)=>{_0xd2df6b[_0x36ff('0x2c')]['showSuggestionHighlights']&&nr(_0x1110a7,{'showActiveMarker':!0x1})(_0x1b1217,_0x4d466e,_0xd2df6b);},{'priority':_0x36ff('0x2e')});const _0x4db7ca=_0x3e9675['_descriptionFactory'];_0x4db7ca[_0x36ff('0x21')](_0x36996f=>{if(_0x36ff('0xd')!==_0x36996f[_0x36ff('0x0')])return;const {start:_0x1d473e,end:_0x15533d}=_0x36996f[_0x36ff('0x7')]();if(!_0x1d473e[_0x36ff('0x25')](_0x15533d)||!_0x1d473e[_0x36ff('0x11')])return;const _0x3388ee=_0x1110a7[_0x36ff('0x17')][_0x36ff('0x1c')],_0x465a1e=_0x1d473e['nodeAfter'];return _0x3388ee['isBlock'](_0x465a1e)&&!_0x3388ee['isLimit'](_0x465a1e)&&_0x3388ee['checkChild'](_0x465a1e,_0x36ff('0x22'))?{'type':_0x36ff('0xd'),'content':_0x2e1437(_0x46f1d6,'*Insert:*\x20%0',_0x4db7ca[_0x36ff('0x24')](_0x465a1e,0x1))}:void 0x0;}),this[_0x36ff('0x12')]();}['_registerLegacyDescription'](){const _0x127fca=this['editor'],_0xc2b605=_0x127fca['locale'];_0x127fca[_0x36ff('0x2d')][_0x36ff('0x14')](_0x36ff('0x2'))[_0x36ff('0xb')]['registerDescriptionCallback'](_0xd1a3e3=>{if('formatBlock'!=_0xd1a3e3[_0x36ff('0x0')])return;const {data:_0x375ac1}=_0xd1a3e3;return _0x375ac1&&_0x36ff('0x6')==_0x375ac1[_0x36ff('0x2b')]?{'type':_0x36ff('0x30'),'content':_0x2e1437(_0xc2b605,_0x36ff('0x2f'),_0x2e1437(_0xc2b605,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x23f779,{showActiveMarker:_0x416415=!0x0}={}){return(_0x4e2d49,_0x4a8ab7,_0x5e98d1)=>{const _0xaeadd0=_0x23f779[_0x36ff('0x2d')]['get'](_0x36ff('0x2')),_0x379208=_0x4a8ab7[_0x36ff('0x1d')]['start'],_0xe8af92=_0x4a8ab7[_0x36ff('0x1d')][_0x36ff('0x19')],_0x487086=_0x23f779[_0x36ff('0x17')]['schema'];if(!_0x379208['isTouching'](_0xe8af92)||!_0x379208['nodeAfter'])return;const _0x433cdb=_0x379208[_0x36ff('0x11')];if(_0x487086[_0x36ff('0xa')](_0x433cdb)&&!_0x487086[_0x36ff('0x8')](_0x433cdb)&&_0x487086[_0x36ff('0x29')](_0x433cdb,_0x36ff('0x22'))){if(!_0x5e98d1[_0x36ff('0xf')]['consume'](_0x4a8ab7[_0x36ff('0x1d')],_0x4e2d49[_0x36ff('0x3')]))return;const _0x2f3770=_0x5e98d1[_0x36ff('0x20')][_0x36ff('0x23')](_0x36ff('0x2a'),{'class':_0x36ff('0x16')}),_0x277464=_0x5e98d1[_0x36ff('0x1f')][_0x36ff('0x26')](_0xe8af92);_0x416415&&_0xaeadd0[_0x36ff('0x27')][_0x36ff('0xc')](_0x4a8ab7[_0x36ff('0xe')])&&_0x5e98d1['writer'][_0x36ff('0x18')]('ck-suggestion-marker--active',_0x2f3770),_0x5e98d1[_0x36ff('0x20')]['insert'](_0x277464,_0x2f3770),_0x5e98d1[_0x36ff('0x1f')][_0x36ff('0x1')](_0x2f3770,_0x4a8ab7[_0x36ff('0xe')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaad1=['commandName','plugins','*Remove\x20all\x20formatting*','has','RemoveFormatEditing','_descriptionFactory','removeFormat','format','TrackChangesEditing','editor','afterInit','type','get','formatInline','_registerLegacyDescription'];(function(_0x3a42f1,_0xaad1bb){const _0x3ec5de=function(_0x206292){while(--_0x206292){_0x3a42f1['push'](_0x3a42f1['shift']());}};_0x3ec5de(++_0xaad1bb);}(_0xaad1,0x158));const _0x3ec5=function(_0x3a42f1,_0xaad1bb){_0x3a42f1=_0x3a42f1-0x0;let _0x3ec5de=_0xaad1[_0x3a42f1];return _0x3ec5de;};import{Plugin as _0x2e22ca}from'ckeditor5/src/core.js';import{getTranslation as _0x50a806}from'../utils/common-translations.js';export default class dt extends _0x2e22ca{[_0x3ec5('0xb')](){const _0x1fea42=this[_0x3ec5('0xa')];if(!_0x1fea42[_0x3ec5('0x2')][_0x3ec5('0x4')](_0x3ec5('0x5')))return;_0x1fea42[_0x3ec5('0x2')][_0x3ec5('0xd')](_0x3ec5('0x9'))['_enableDefaultAttributesIntegration'](_0x3ec5('0x7')),this[_0x3ec5('0x0')]();}[_0x3ec5('0x0')](){const _0x1ee1b2=this[_0x3ec5('0xa')];_0x1ee1b2[_0x3ec5('0x2')][_0x3ec5('0xd')]('TrackChangesEditing')[_0x3ec5('0x6')]['registerDescriptionCallback'](_0x5043a0=>{if('formatBlock'!=_0x5043a0['type']&&_0x3ec5('0xe')!=_0x5043a0[_0x3ec5('0xc')])return;const {data:_0x398a29}=_0x5043a0;return _0x398a29&&'removeFormat'==_0x398a29[_0x3ec5('0x1')]?{'type':_0x3ec5('0x8'),'content':_0x50a806(_0x1ee1b2['locale'],_0x3ec5('0x3'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x312b=['discardAllSuggestions','acceptAllSuggestions','acceptSuggestion','afterInit','acceptSelectedSuggestions','enableCommand','plugins','has','discardSelectedSuggestions','RestrictedEditingModeEditing','get','discardSuggestion','TrackChangesEditing'];(function(_0x5cd3ed,_0x312b50){const _0x41e3e6=function(_0x56b5ab){while(--_0x56b5ab){_0x5cd3ed['push'](_0x5cd3ed['shift']());}};_0x41e3e6(++_0x312b50);}(_0x312b,0x1ea));const _0x41e3=function(_0x5cd3ed,_0x312b50){_0x5cd3ed=_0x5cd3ed-0x0;let _0x41e3e6=_0x312b[_0x5cd3ed];return _0x41e3e6;};import{Plugin as _0x465a80}from'ckeditor5/src/core.js';export default class pt extends _0x465a80{[_0x41e3('0x7')](){const _0x2356bd=this['editor'];if(!_0x2356bd[_0x41e3('0xa')][_0x41e3('0xb')]('RestrictedEditingModeEditing'))return;const _0xd8c0e2=_0x2356bd[_0x41e3('0xa')][_0x41e3('0x1')](_0x41e3('0x3'));_0xd8c0e2[_0x41e3('0x9')]('goToPreviousRestrictedEditingException'),_0xd8c0e2[_0x41e3('0x9')]('goToNextRestrictedEditingException');const _0x403b63=_0x2356bd['plugins']['get'](_0x41e3('0x0'));_0x403b63[_0x41e3('0x9')]('trackChanges'),_0x403b63['enableCommand'](_0x41e3('0x6')),_0x403b63['enableCommand'](_0x41e3('0x2')),_0x403b63['enableCommand'](_0x41e3('0x5')),_0x403b63[_0x41e3('0x9')](_0x41e3('0x4')),_0x403b63[_0x41e3('0x9')](_0x41e3('0x8')),_0x403b63[_0x41e3('0x9')](_0x41e3('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b8a=['mapper','high','insert','toViewPosition','includes','downcastDispatcher','ck-suggestion-marker--active','addMarker:suggestion:insertion','addClass','registerElementLabel','markerRange','ck-suggestion-marker-','TrackChangesEditing','test','plugins','addMarker:suggestion','locale','element','addMarker:suggestion:deletion','editing','ELEMENT_LINE_BREAK','createUIElement','options','init','model','span','data','getItems','merge','_descriptionFactory','createPositionBefore','get','softBreak','requires','split','writer','markerName','name'];(function(_0x4a36c8,_0x5b8a71){const _0x19cd76=function(_0x236a36){while(--_0x236a36){_0x4a36c8['push'](_0x4a36c8['shift']());}};_0x19cd76(++_0x5b8a71);}(_0x5b8a,0x19c));const _0x19cd=function(_0x4a36c8,_0x5b8a71){_0x4a36c8=_0x4a36c8-0x0;let _0x19cd76=_0x5b8a[_0x4a36c8];return _0x19cd76;};import{Plugin as _0x1ddc08}from'ckeditor5/src/core.js';import{ShiftEnter as _0x3192bd}from'ckeditor5/src/enter.js';import{getTranslation as _0x4690c7}from'../utils/common-translations.js';export default class kt extends _0x1ddc08{static get[_0x19cd('0x1')](){return[_0x3192bd];}[_0x19cd('0x1d')](){const _0x4f14b9=this['editor'],_0x69e69a=_0x4f14b9[_0x19cd('0x14')]['get']('TrackChangesEditing');_0x69e69a['enableCommand']('shiftEnter'),_0x4f14b9[_0x19cd('0x19')][_0x19cd('0xb')]['on'](_0x19cd('0xd'),re(_0x4f14b9),{'priority':_0x19cd('0x7')}),_0x4f14b9[_0x19cd('0x19')]['downcastDispatcher']['on'](_0x19cd('0x18'),re(_0x4f14b9),{'priority':_0x19cd('0x7')}),_0x4f14b9[_0x19cd('0x20')][_0x19cd('0xb')]['on'](_0x19cd('0x15'),(_0x323fb4,_0x41a5a0,_0x4c2e9f)=>{_0x4c2e9f[_0x19cd('0x1c')]['showSuggestionHighlights']&&re(_0x4f14b9,{'showActiveMarker':!0x1})(_0x323fb4,_0x41a5a0,_0x4c2e9f);}),_0x69e69a[_0x19cd('0x23')][_0x19cd('0xf')]('softBreak',_0x399cce=>_0x4690c7(_0x4f14b9[_0x19cd('0x16')],_0x19cd('0x1a'),_0x399cce));}}function re(_0x5d79b1,{showActiveMarker:_0x201ebd=!0x0}={}){return(_0x304f48,_0x1a4f34,_0x7e8b89)=>{const _0x5c9953=_0x5d79b1['plugins'][_0x19cd('0x25')](_0x19cd('0x12'));if(!_0x7e8b89['consumable'][_0x19cd('0x13')](_0x1a4f34[_0x19cd('0x10')],_0x304f48[_0x19cd('0x5')]))return;const _0x255b71=_0x5d79b1[_0x19cd('0x1e')];for(const _0x476bfb of _0x1a4f34[_0x19cd('0x10')][_0x19cd('0x21')]()){if(!_0x476bfb['is'](_0x19cd('0x17'),_0x19cd('0x0')))continue;const _0x1790f4='deletion'==_0x1a4f34['markerName'][_0x19cd('0x2')](':')[0x1]?_0x19cd('0x22'):_0x19cd('0x2'),_0x5d8f1d=_0x7e8b89[_0x19cd('0x3')][_0x19cd('0x1b')](_0x19cd('0x1f'),{'class':_0x19cd('0x11')+_0x1790f4}),_0x38f063=_0x7e8b89[_0x19cd('0x6')][_0x19cd('0x9')](_0x255b71[_0x19cd('0x24')](_0x476bfb));_0x201ebd&&_0x5c9953['activeMarkers'][_0x19cd('0xa')](_0x1a4f34[_0x19cd('0x4')])&&_0x7e8b89[_0x19cd('0x3')][_0x19cd('0xe')](_0x19cd('0xc'),_0x5d8f1d),_0x7e8b89['writer'][_0x19cd('0x8')](_0x38f063,_0x5d8f1d),_0x7e8b89[_0x19cd('0x6')]['bindElementToMarker'](_0x5d8f1d,_0x1a4f34['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d6b=['registerDescriptionCallback','model','StandardEditingModeEditing','editor','document','formatBlock','isCollapsed','FORMAT_RESTRICTED_DISABLED','commandName','afterInit','plugins','format','change','forceValue','type','commandParams','has','locale','_descriptionFactory','FORMAT_RESTRICTED_ENABLED','value','enableCommand','getRanges','get'];(function(_0x81280,_0x3d6b5d){const _0x36ab23=function(_0x499650){while(--_0x499650){_0x81280['push'](_0x81280['shift']());}};_0x36ab23(++_0x3d6b5d);}(_0x3d6b,0x66));const _0x36ab=function(_0x81280,_0x3d6b5d){_0x81280=_0x81280-0x0;let _0x36ab23=_0x3d6b[_0x81280];return _0x36ab23;};import{Plugin as _0x5cb933}from'ckeditor5/src/core.js';import{getRangesWithAttribute as _0x8832c2}from'./utils.js';import{getTranslation as _0x2c326b}from'../utils/common-translations.js';export default class bt extends _0x5cb933{[_0x36ab('0x3')](){const _0x289bf3=this[_0x36ab('0x15')],_0x27cebf=_0x289bf3[_0x36ab('0x13')],_0x238de8=_0x289bf3[_0x36ab('0xb')];if(!_0x289bf3['plugins'][_0x36ab('0xa')](_0x36ab('0x14')))return;const _0x2ccfbb=_0x289bf3[_0x36ab('0x4')]['get']('TrackChangesEditing'),_0x5cec44='restrictedEditingException',_0x1a9846=_0x289bf3['commands'][_0x36ab('0x11')](_0x5cec44);_0x2ccfbb[_0x36ab('0xf')](_0x5cec44,(_0x14fc69,_0x152b87={})=>{const _0x4f8916=_0x27cebf[_0x36ab('0x16')]['selection'];if(_0x4f8916[_0x36ab('0x0')])return void _0x14fc69(_0x152b87);const _0x483f8d=void 0x0!==_0x152b87[_0x36ab('0x7')]?_0x152b87[_0x36ab('0x7')]:!_0x1a9846[_0x36ab('0xe')];_0x27cebf[_0x36ab('0x6')](()=>{const _0x53f66e=Array['from'](_0x4f8916[_0x36ab('0x10')]());for(const _0x582b8f of _0x53f66e){const _0x357dff=_0x483f8d?[_0x582b8f]:_0x8832c2(_0x5cec44,_0x582b8f,_0x27cebf);for(const _0x5c2b61 of _0x357dff)_0x2ccfbb['markInlineFormat'](_0x5c2b61,{'commandName':_0x5cec44,'commandParams':[{'forceValue':_0x483f8d}]});}});}),_0x2ccfbb[_0x36ab('0xc')][_0x36ab('0x12')](_0x312211=>{if(_0x36ab('0x17')!=_0x312211[_0x36ab('0x8')]&&'formatInline'!=_0x312211[_0x36ab('0x8')])return;const {data:_0x274fdd}=_0x312211;return _0x274fdd&&_0x274fdd[_0x36ab('0x2')]==_0x5cec44?_0x274fdd[_0x36ab('0x9')][0x0][_0x36ab('0x7')]?{'type':_0x36ab('0x5'),'content':_0x2c326b(_0x238de8,_0x36ab('0xd'))}:{'type':_0x36ab('0x5'),'content':_0x2c326b(_0x238de8,_0x36ab('0x1'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe92b=['_enableDefaultAttributesIntegration','afterInit','get','toLowerCase','GeneralHtmlSupport','add','registerAttributeLabel','FORMAT_STYLE','*Set\x20format:*\x20%0','plugins','format','forceValue','normalizeConfig','_registerLegacyDescription','block','inline','style','TrackChangesEditing','has','styleName','definitions','DataSchema','type','commandParams','formatInline','_registerBlockAttribute','locale','ghsAttributes','element','config','_descriptionFactory','Style','*Remove\x20format:*\x20%0','getGhsAttributeNameForElement'];(function(_0x44c8a2,_0xe92b33){const _0xe201eb=function(_0x2dfc9c){while(--_0x2dfc9c){_0x44c8a2['push'](_0x44c8a2['shift']());}};_0xe201eb(++_0xe92b33);}(_0xe92b,0x185));const _0xe201=function(_0x44c8a2,_0xe92b33){_0x44c8a2=_0x44c8a2-0x0;let _0xe201eb=_0xe92b[_0x44c8a2];return _0xe201eb;};import{Plugin as _0x4cf22c}from'ckeditor5/src/core.js';import{getTranslation as _0xcfcb48}from'../utils/common-translations.js';export default class wt extends _0x4cf22c{[_0xe201('0x14')](){const _0x108fed=this['editor'];if(!_0x108fed['plugins'][_0xe201('0x3')](_0xe201('0x10'))||!_0x108fed[_0xe201('0x1c')][_0xe201('0x3')](_0xe201('0x6')))return;const _0x24a0b5=_0x108fed['plugins'][_0xe201('0x15')](_0xe201('0x2')),_0x5e9283=_0x108fed['locale'],_0x34665e=_0x108fed[_0xe201('0xe')][_0xe201('0x15')](_0xe201('0x1')),_0x18b58b=_0x108fed['plugins']['get'](_0xe201('0x17')),_0x439f67=_0x108fed[_0xe201('0x1c')]['get']('StyleUtils')[_0xe201('0x1f')](_0x108fed['plugins'][_0xe201('0x15')]('DataSchema'),_0x34665e[_0xe201('0x5')]);_0x24a0b5[_0xe201('0x13')](_0xe201('0x1'));const _0x3f8567=new Set();for(const _0x5855c0 of _0x439f67[_0xe201('0x21')]){const _0x3efcd6=_0x18b58b[_0xe201('0x12')](_0x5855c0[_0xe201('0xd')]);_0x3f8567['add'](_0x3efcd6);}const _0x30a83a=new Set();for(const _0x1b0a61 of _0x439f67[_0xe201('0x0')]){const _0x307ef2=_0x18b58b[_0xe201('0x12')](_0x1b0a61['element']);_0x30a83a['add'](_0x307ef2);for(const _0x230168 of _0x1b0a61[_0xe201('0xc')])_0x30a83a[_0xe201('0x18')](_0x230168);}for(const _0x255411 of _0x3f8567)_0x24a0b5[_0xe201('0xa')](_0x255411),_0x24a0b5[_0xe201('0xf')][_0xe201('0x19')](_0x255411,_0xcfcb48(_0x5e9283,_0xe201('0x1a')));for(const _0x4f12f0 of _0x30a83a)_0x24a0b5['_registerInlineAttribute'](_0x4f12f0),_0x24a0b5[_0xe201('0xf')]['registerAttributeLabel'](_0x4f12f0,_0xcfcb48(_0x5e9283,'FORMAT_STYLE'));this[_0xe201('0x20')]();}[_0xe201('0x20')](){const _0x508565=this['editor'],_0x316c06=_0x508565[_0xe201('0xb')];_0x508565[_0xe201('0x1c')][_0xe201('0x15')](_0xe201('0x2'))['_descriptionFactory']['registerDescriptionCallback'](_0x136f8f=>{if('formatBlock'!=_0x136f8f['type']&&_0xe201('0x9')!=_0x136f8f[_0xe201('0x7')])return;const {data:_0x490819}=_0x136f8f;return _0x490819&&_0xe201('0x1')===_0x490819['commandName']?_0x490819[_0xe201('0x8')][0x0][_0xe201('0x1e')]?{'type':_0xe201('0x1d'),'content':_0xcfcb48(_0x316c06,_0xe201('0x1b'),_0x490819[_0xe201('0x8')][0x0][_0xe201('0x4')][_0xe201('0x16')]())}:{'type':_0xe201('0x1d'),'content':_0xcfcb48(_0x316c06,_0xe201('0x11'),_0x490819[_0xe201('0x8')][0x0][_0xe201('0x4')][_0xe201('0x16')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x48e6=['registerCustomCallback','join','push','isIntersectingWithRange','cell','tablePaste','setSelection','isEqual','findAncestor','tableCell','removeTableRow','map','selection','model','_setupColumnsRowsFixing','ELEMENT_TABLE_ROW','getChanges','*Remove:*\x20%0','discard','ELEMENT_TABLE_COLUMN','insertTable','nodeAfter','afterInit','isInContent','deletion','tableRow','fromRange','_splitMarkerName','getSuggestion','getRanges','get','_getSuggestionCoords','left','batch','registerElementLabel','includes','name','enqueueChange','ELEMENT_TABLE_ROW_WITH_TEXT','end','getItems','*Insert:*\x20%0','writer','length','highest','$textProxy','low','some','ELEMENT_TABLE','detach','hasAttribute','every','_suggestionFactory','selectTableColumn','MAX_SAFE_INTEGER','order','TrackChangesEditing','_descriptionFactory','minRow','above','tableColumn','getAttribute','min','insertTableColumnRight','toLowerCase','_getCoordsForCells','position','_tablePostFixingSubtypes','start','substr','first','suggestion','classes','maxRow','plugins','insertTableRowAbove','getRowIndexes','getCellLocation','max','ELEMENT_TABLE_WITH_TEXT','type','removeTableColumn','change:data','commands','oldRange','insertTableRowBelow','getColumnIndexes','registerPostFixer','root','addClass','enableCommand','MIN_SAFE_INTEGER','values','execute','selectTableRow','document','mapper','last','getSelectionAffectedTableCells','insertion','element','has','ELEMENT_TABLE_COLUMN_WITH_TEXT','createPositionAt','createRangeOn','refresh','isArray','minColumn','rowspan','differ','accept','createTableWalker','markMultiRangeInsertion','span','markMultiRangeDeletion','startsWith','add','addMarker:suggestion','locale','colspan','getChangedMarkers','data','subType','from','filter','table','rootName','TableUtils','$graveyard','change','editor','registerDescriptionCallback','_tableSuggestions','getFirstRange'];(function(_0x2e739d,_0x48e6a7){const _0x3ce37b=function(_0x4a0113){while(--_0x4a0113){_0x2e739d['push'](_0x2e739d['shift']());}};_0x3ce37b(++_0x48e6a7);}(_0x48e6,0x70));const _0x3ce3=function(_0x2e739d,_0x48e6a7){_0x2e739d=_0x2e739d-0x0;let _0x3ce37b=_0x48e6[_0x2e739d];return _0x3ce37b;};import{Plugin as _0x237d30}from'ckeditor5/src/core.js';import{LiveRange as _0x39ccfb}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x5a6dd8}from'ckeditor5/src/widget.js';import{getTranslation as _0x14f055}from'../utils/common-translations.js';export default class yt extends _0x237d30{constructor(_0x21434d){super(_0x21434d),this[_0x3ce3('0x59')]=[_0x3ce3('0x2f'),_0x3ce3('0x52')],this[_0x3ce3('0x14')]=new Set();}[_0x3ce3('0x2c')](){const _0x13fc6e=this[_0x3ce3('0x12')],_0x14fa22=_0x13fc6e[_0x3ce3('0x23')][_0x3ce3('0x75')][_0x3ce3('0x22')];if(!_0x13fc6e[_0x3ce3('0x60')][_0x3ce3('0x7b')]('TableEditing'))return;const _0xf4861e=_0x13fc6e[_0x3ce3('0x6')],_0x52e4d7=_0x13fc6e[_0x3ce3('0x60')][_0x3ce3('0x34')](_0x3ce3('0x4e')),_0x564135=_0x13fc6e[_0x3ce3('0x60')][_0x3ce3('0x34')](_0x3ce3('0xf'));_0x52e4d7[_0x3ce3('0x4f')][_0x3ce3('0x38')](_0x3ce3('0xd'),_0x31f8d0=>_0x14f055(_0xf4861e,_0x3ce3('0x46'),_0x31f8d0)),this[_0x3ce3('0x24')](),_0x52e4d7[_0x3ce3('0x70')](_0x3ce3('0x2a')),_0x52e4d7[_0x3ce3('0x70')](_0x3ce3('0x74')),_0x52e4d7['enableCommand'](_0x3ce3('0x4b'));for(const _0x1d39fb of[_0x3ce3('0x61'),_0x3ce3('0x6b')]){const _0x433571=_0x13fc6e['commands'][_0x3ce3('0x34')](_0x1d39fb);_0x52e4d7[_0x3ce3('0x70')](_0x1d39fb,_0x2e0b96=>{_0x13fc6e['model'][_0x3ce3('0x11')](_0x41ffb6=>{_0x2e0b96();const _0x399b44=_0x3ce3('0x51')===_0x433571[_0x3ce3('0x4d')],_0x4feab6=_0x564135['getSelectionAffectedTableCells'](_0x14fa22),_0x5e27eb=_0x564135['getRowIndexes'](_0x4feab6),_0x55861f=_0x399b44?_0x5e27eb[_0x3ce3('0x5c')]-0x1:_0x5e27eb[_0x3ce3('0x77')]+0x1,_0x2351ea=_0x4feab6[0x0][_0x3ce3('0x1e')](_0x3ce3('0xd')),_0x231ddb=_0x564135[_0x3ce3('0x85')](_0x2351ea,{'startRow':_0x55861f,'endRow':_0x55861f}),_0x2256e1=Array[_0x3ce3('0xb')](_0x231ddb)['map'](_0x4267ba=>_0x41ffb6[_0x3ce3('0x7e')](_0x4267ba[_0x3ce3('0x1a')]));_0x52e4d7[_0x3ce3('0x0')](_0x2256e1,_0x3ce3('0x2f'));});});}for(const _0x2f8893 of['insertTableColumnLeft',_0x3ce3('0x55')]){const _0x20ed2d=_0x13fc6e['commands'][_0x3ce3('0x34')](_0x2f8893);_0x52e4d7[_0x3ce3('0x70')](_0x2f8893,_0x3e7596=>{_0x13fc6e[_0x3ce3('0x23')][_0x3ce3('0x11')](_0x1d0e0c=>{_0x3e7596();const _0x51f6e8=_0x3ce3('0x36')===_0x20ed2d[_0x3ce3('0x4d')],_0x42b128=_0x564135[_0x3ce3('0x78')](_0x14fa22),_0x1a51a5=_0x564135[_0x3ce3('0x6c')](_0x42b128),_0x25e3e3=_0x51f6e8?_0x1a51a5[_0x3ce3('0x5c')]-0x1:_0x1a51a5[_0x3ce3('0x77')]+0x1,_0x25c86a=_0x42b128[0x0][_0x3ce3('0x1e')]('table'),_0x24cd95=_0x564135[_0x3ce3('0x85')](_0x25c86a,{'startRow':0x0,'column':_0x25e3e3,'includeAllSlots':!0x1}),_0x35c4a7=Array[_0x3ce3('0xb')](_0x24cd95)[_0x3ce3('0x21')](_0x52e296=>_0x1d0e0c[_0x3ce3('0x7e')](_0x52e296[_0x3ce3('0x1a')]));_0x52e4d7[_0x3ce3('0x0')](_0x35c4a7,_0x3ce3('0x52'));});});}for(const _0x5ddee5 of[_0x3ce3('0x20'),_0x3ce3('0x67')]){const _0x3f716a=_0x5ddee5[_0x3ce3('0x5b')](0xb),_0x286a52=_0x3f716a['toLowerCase'](),_0x367939=_0x286a52['substr'](0x0,0x3)+_0x3ce3('0x1'),_0x4591e7=_0x3ce3('0xd')+_0x3f716a,_0x426430=_0x3ce3('0x54')+_0x3f716a,_0x39395d='max'+_0x3f716a;_0x52e4d7[_0x3ce3('0x70')](_0x5ddee5,()=>{_0x13fc6e[_0x3ce3('0x23')][_0x3ce3('0x11')](_0x503f35=>{const _0x2cbf45=_0x564135['getSelectionAffectedTableCells'](_0x14fa22),_0x10ceed=_0x2cbf45[0x0]['findAncestor'](_0x3ce3('0xd'));let _0x4293e1;if(_0x3ce3('0x20')==_0x5ddee5){const _0x509bf6=_0x564135[_0x3ce3('0x62')](_0x2cbf45);_0x4293e1={'startRow':_0x509bf6[_0x3ce3('0x5c')],'endRow':_0x509bf6[_0x3ce3('0x77')],'includeAllSlots':!0x0};}else{const _0x2439a0=_0x564135['getColumnIndexes'](_0x2cbf45);_0x4293e1={'startColumn':_0x2439a0[_0x3ce3('0x5c')],'endColumn':_0x2439a0['last'],'includeAllSlots':!0x0};}const _0x52a35e=_0x564135[_0x3ce3('0x85')](_0x10ceed,_0x4293e1),_0x5e1fe0=Array[_0x3ce3('0xb')](_0x52a35e)[_0x3ce3('0x21')](({cell:_0xaf7b4a})=>_0xaf7b4a),_0x516359=ie(_0x5e1fe0[_0x3ce3('0xc')](_0x3ffd9d=>_0x3ffd9d[_0x3ce3('0x48')](_0x367939))),_0x1cc7cf=ie(_0x5e1fe0[_0x3ce3('0xc')](_0x4b9713=>!_0x4b9713[_0x3ce3('0x48')](_0x367939)))[_0x3ce3('0x21')](_0xa274ec=>_0x503f35[_0x3ce3('0x7e')](_0xa274ec)),_0x3a88b3=_0x52e4d7[_0x3ce3('0x2')](_0x1cc7cf,_0x4591e7);if(_0x3a88b3&&(_0x3ce3('0x2f')==_0x3a88b3[_0x3ce3('0xa')]||_0x3ce3('0x52')==_0x3a88b3['subType'])){const _0x345f4f=this['_getSuggestionCoords'](_0x3a88b3);for(const _0x1fe73b of _0x516359){const _0x5946ad=_0x503f35[_0x3ce3('0x7e')](_0x1fe73b),_0x34f7ac=_0x564135['getCellLocation'](_0x1fe73b),_0x4d1ce9=_0x1fe73b[_0x3ce3('0x53')](_0x367939)-0x1,_0x1bd7d8=_0x345f4f[_0x426430],_0x4d3587=_0x345f4f[_0x39395d];_0x1bd7d8<=_0x34f7ac[_0x286a52]&&_0x34f7ac[_0x286a52]+_0x4d1ce9<=_0x4d3587&&_0x3a88b3['addRange'](_0x5946ad);}}});});}function _0x1c562a(_0x4ac38b){const _0x370bc2=Array['from'](_0x14fa22['getRanges']())[_0x3ce3('0x21')](_0x5a0bf7=>_0x39ccfb[_0x3ce3('0x30')](_0x5a0bf7));_0x13fc6e['model'][_0x3ce3('0x11')](_0x1d8e2e=>{const _0x550eb3=_0x1d8e2e[_0x3ce3('0x37')];_0x4ac38b=_0x4ac38b[_0x3ce3('0xc')](_0x4ee2e6=>_0x3ce3('0x10')!=_0x4ee2e6['root']['rootName']),_0x1d8e2e[_0x3ce3('0x1c')](_0x4ac38b),_0x13fc6e[_0x3ce3('0x69')][_0x3ce3('0x34')](_0x3ce3('0x20'))[_0x3ce3('0x7f')](),_0x13fc6e[_0x3ce3('0x73')](_0x3ce3('0x20'),{'forceDefaultExecution':!0x0}),_0x13fc6e[_0x3ce3('0x23')][_0x3ce3('0x3b')](()=>{_0x13fc6e[_0x3ce3('0x23')][_0x3ce3('0x3b')](_0x550eb3,_0x1aa229=>{const _0x19bcd3=_0x370bc2[_0x3ce3('0xc')](_0x47f594=>_0x3ce3('0x10')!=_0x47f594[_0x3ce3('0x6e')][_0x3ce3('0xe')]);_0x19bcd3[_0x3ce3('0x41')]>0x0&&_0x1aa229[_0x3ce3('0x1c')](_0x19bcd3);for(const _0x32ac6f of _0x370bc2)_0x32ac6f[_0x3ce3('0x47')]();});});});}function _0x2208b5(_0x4f7cbe){_0x13fc6e[_0x3ce3('0x23')]['change'](_0x1f0b09=>{const _0x461d3d=Array['from'](_0x14fa22[_0x3ce3('0x33')]())[_0x3ce3('0x21')](_0x328353=>_0x39ccfb[_0x3ce3('0x30')](_0x328353)),_0x322ec0=[];for(const _0x4b3989 of _0x4f7cbe)for(const _0x407aaf of _0x4b3989[_0x3ce3('0x3e')]({'shallow':!0x0}))_0x322ec0[_0x3ce3('0x18')](_0x407aaf);for(const _0x3bf2bb of _0x322ec0)_0x3ce3('0x10')!=_0x3bf2bb[_0x3ce3('0x6e')][_0x3ce3('0xe')]&&(_0x1f0b09[_0x3ce3('0x1c')](_0x1f0b09[_0x3ce3('0x7d')](_0x3bf2bb,0x0)),_0x13fc6e[_0x3ce3('0x69')]['get'](_0x3ce3('0x67'))['refresh'](),_0x13fc6e[_0x3ce3('0x73')](_0x3ce3('0x67'),{'forceDefaultExecution':!0x0}));const _0x29431e=_0x461d3d[_0x3ce3('0xc')](_0x1f0c8f=>'$graveyard'!=_0x1f0c8f[_0x3ce3('0x6e')][_0x3ce3('0xe')]);_0x29431e[_0x3ce3('0x41')]>0x0&&_0x1f0b09[_0x3ce3('0x1c')](_0x29431e);for(const _0x5dc2a9 of _0x461d3d)_0x5dc2a9[_0x3ce3('0x47')]();});}function _0x46eabe(_0x3b2969,_0x3a7838){return _0x3a7838[_0x3ce3('0x49')](_0x2dbdea=>_0x3b2969[_0x3ce3('0x45')](_0x38df3f=>_0x38df3f[_0x3ce3('0x3d')][_0x3ce3('0x1d')](_0x2dbdea[_0x3ce3('0x5a')])||_0x2dbdea[_0x3ce3('0x3d')][_0x3ce3('0x1d')](_0x38df3f[_0x3ce3('0x5a')])));}function _0x3087f4(_0x40433a,_0x3ac5fa){return _0x40433a[_0x3ce3('0x45')](_0x295f37=>_0x3ac5fa[_0x3ce3('0x45')](_0x4bae8b=>_0x295f37[_0x3ce3('0x3d')]['isTouching'](_0x4bae8b[_0x3ce3('0x5a')])));}_0x13fc6e[_0x3ce3('0x9')]['downcastDispatcher']['on'](_0x3ce3('0x5'),(_0xea2211,_0x4fb43f,_0xabc500)=>{if(!_0xabc500['options']['showSuggestionHighlights'])return;const _0x21fe73=_0x4fb43f['item'];if(!_0x21fe73)return;const _0x43aeee=_0xabc500[_0x3ce3('0x76')]['toViewElement'](_0x21fe73);function _0x1c2f1e(_0x569cfc){return Array[_0x3ce3('0x80')](_0x569cfc)?_0x569cfc:[_0x569cfc];}_0x43aeee&&_0x3ce3('0x1f')===_0x21fe73[_0x3ce3('0x3a')]&&_0x5a6dd8(_0x43aeee,_0xabc500[_0x3ce3('0x40')],(_0x331d0f,_0x3384ba,_0x4a4920)=>_0x4a4920[_0x3ce3('0x6f')](_0x1c2f1e(_0x3384ba[_0x3ce3('0x5e')]),_0x331d0f),(_0x198fdb,_0x438fcb,_0x58d906)=>_0x58d906['removeClass'](_0x1c2f1e(_0x438fcb['classes']),_0x198fdb));},{'priority':_0x3ce3('0x42')}),_0x52e4d7[_0x3ce3('0x4f')][_0x3ce3('0x13')](_0x468f6d=>{if(_0x3ce3('0x79')!=_0x468f6d['type']&&_0x3ce3('0x2e')!=_0x468f6d['type'])return;const _0x3b8ca4=_0x468f6d['getContainedElement']();if(null!=_0x3b8ca4&&_0x3b8ca4['is'](_0x3ce3('0x7a'),_0x3ce3('0xd'))){if('insertion'==_0x468f6d[_0x3ce3('0x66')]){const _0x29b13f=_0x468f6d[_0x3ce3('0x3e')]()[_0x3ce3('0xc')](_0x171f4c=>_0x171f4c['is'](_0x3ce3('0x43')))[_0x3ce3('0x21')](_0x36b37f=>_0x36b37f[_0x3ce3('0x9')]);if(_0x29b13f['length'])return{'type':_0x3ce3('0x79'),'content':_0x14f055(_0xf4861e,_0x3ce3('0x3f'),_0x14f055(_0xf4861e,_0x3ce3('0x65'),'\x22'+_0x29b13f[_0x3ce3('0x17')]('\x20')+'\x22'))};}if(_0x3ce3('0x2e')==_0x468f6d[_0x3ce3('0x66')]){const _0xe9d239=_0x468f6d[_0x3ce3('0x3e')]()[_0x3ce3('0xc')](_0x524a6a=>_0x524a6a['is']('$textProxy'))[_0x3ce3('0x21')](_0x1eb659=>_0x1eb659[_0x3ce3('0x9')]);if(_0xe9d239[_0x3ce3('0x41')])return{'type':_0x3ce3('0x2e'),'content':_0x14f055(_0xf4861e,_0x3ce3('0x27'),_0x14f055(_0xf4861e,_0x3ce3('0x65'),'\x22'+_0xe9d239['join']('\x20')+'\x22'))};}}}),_0x52e4d7['_descriptionFactory'][_0x3ce3('0x13')](_0x42f163=>{if(_0x3ce3('0x2f')==_0x42f163['subType']){const _0x1f3769=_0x42f163[_0x3ce3('0x3e')]()[_0x3ce3('0xc')](_0x3796a9=>_0x3796a9['is'](_0x3ce3('0x43')))[_0x3ce3('0x21')](_0x2b417e=>_0x2b417e[_0x3ce3('0x9')]),_0x1be607=this[_0x3ce3('0x35')](_0x42f163),_0x2ef5c9=_0x1be607[_0x3ce3('0x5f')]-_0x1be607[_0x3ce3('0x50')]+0x1;if(_0x3ce3('0x79')==_0x42f163['type'])return _0x1f3769[_0x3ce3('0x41')]?{'type':_0x3ce3('0x79'),'content':_0x14f055(_0xf4861e,_0x3ce3('0x3f'),_0x14f055(_0xf4861e,_0x3ce3('0x3c'),[_0x2ef5c9,'\x22'+_0x1f3769[_0x3ce3('0x17')]('\x20')+'\x22']))}:{'type':_0x3ce3('0x79'),'content':_0x14f055(_0xf4861e,_0x3ce3('0x3f'),_0x14f055(_0xf4861e,_0x3ce3('0x25'),_0x2ef5c9))};if(_0x3ce3('0x2e')==_0x42f163['type'])return _0x1f3769[_0x3ce3('0x41')]?{'type':_0x3ce3('0x2e'),'content':_0x14f055(_0xf4861e,'*Remove:*\x20%0',_0x14f055(_0xf4861e,_0x3ce3('0x3c'),[_0x2ef5c9,'\x22'+_0x1f3769[_0x3ce3('0x17')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x14f055(_0xf4861e,_0x3ce3('0x27'),_0x14f055(_0xf4861e,_0x3ce3('0x25'),_0x2ef5c9))};}if('tableColumn'==_0x42f163[_0x3ce3('0xa')]){const _0x4d1bf2=_0x42f163[_0x3ce3('0x3e')]()[_0x3ce3('0xc')](_0x267f8e=>_0x267f8e['is'](_0x3ce3('0x43')))[_0x3ce3('0x21')](_0x117817=>_0x117817[_0x3ce3('0x9')]),_0x106f21=this[_0x3ce3('0x35')](_0x42f163),_0x4c5d7b=_0x106f21['maxColumn']-_0x106f21[_0x3ce3('0x81')]+0x1;if(_0x3ce3('0x79')==_0x42f163['type'])return _0x4d1bf2[_0x3ce3('0x41')]?{'type':_0x3ce3('0x79'),'content':_0x14f055(_0xf4861e,'*Insert:*\x20%0',_0x14f055(_0xf4861e,_0x3ce3('0x7c'),[_0x4c5d7b,'\x22'+_0x4d1bf2['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x14f055(_0xf4861e,_0x3ce3('0x3f'),_0x14f055(_0xf4861e,_0x3ce3('0x29'),_0x4c5d7b))};if('deletion'==_0x42f163[_0x3ce3('0x66')])return _0x4d1bf2[_0x3ce3('0x41')]?{'type':_0x3ce3('0x2e'),'content':_0x14f055(_0xf4861e,_0x3ce3('0x27'),_0x14f055(_0xf4861e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c5d7b,'\x22'+_0x4d1bf2[_0x3ce3('0x17')]('\x20')+'\x22']))}:{'type':_0x3ce3('0x2e'),'content':_0x14f055(_0xf4861e,'*Remove:*\x20%0',_0x14f055(_0xf4861e,'ELEMENT_TABLE_COLUMN',_0x4c5d7b))};}}),_0x52e4d7[_0x3ce3('0x4a')][_0x3ce3('0x16')]('insertion',_0x3ce3('0x2f'),_0x3ce3('0x28'),_0x1c562a),_0x52e4d7[_0x3ce3('0x4a')][_0x3ce3('0x16')]('deletion',_0x3ce3('0x2f'),'accept',_0x1c562a),_0x52e4d7[_0x3ce3('0x4a')]['registerCustomCallback'](_0x3ce3('0x79'),_0x3ce3('0x52'),_0x3ce3('0x28'),_0x2208b5),_0x52e4d7[_0x3ce3('0x4a')]['registerCustomCallback'](_0x3ce3('0x2e'),_0x3ce3('0x52'),_0x3ce3('0x84'),_0x2208b5),_0x52e4d7[_0x3ce3('0x4a')][_0x3ce3('0x16')]('insertion',_0x3ce3('0x52'),_0x3ce3('0x17'),_0x46eabe),_0x52e4d7['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ce3('0x52'),_0x3ce3('0x17'),_0x46eabe),_0x52e4d7[_0x3ce3('0x4a')][_0x3ce3('0x16')](_0x3ce3('0x79'),_0x3ce3('0x2f'),_0x3ce3('0x17'),_0x3087f4),_0x52e4d7['_suggestionFactory'][_0x3ce3('0x16')](_0x3ce3('0x2e'),_0x3ce3('0x2f'),_0x3ce3('0x17'),_0x3087f4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x63174a=this[_0x3ce3('0x12')],_0x172a11=_0x63174a[_0x3ce3('0x23')][_0x3ce3('0x75')]['selection'];return(_0xf8ddd,_0x1fee49)=>{_0x63174a[_0x3ce3('0x23')][_0x3ce3('0x11')](_0x968541=>{const {commandName:_0x2d115e,commandParams:_0xea84b6}=_0x1fee49;let _0x2d026c=_0xf8ddd[0x0][_0x3ce3('0x3d')]['nodeBefore'];_0xea84b6&&_0xea84b6[0x0]&&!0x1===_0xea84b6[0x0]['forceValue']&&(_0x2d026c=_0xf8ddd[0x0]['start'][_0x3ce3('0x2b')]);const _0x450863=_0x968541['createRangeIn'](_0x2d026c);if(_0x3ce3('0x10')==_0x450863['root'][_0x3ce3('0xe')])return;const _0x526a60=Array['from'](_0x172a11[_0x3ce3('0x33')]())[_0x3ce3('0x21')](_0x451962=>_0x39ccfb[_0x3ce3('0x30')](_0x451962));_0x968541[_0x3ce3('0x1c')](_0x450863),_0x63174a['commands']['get'](_0x2d115e)['refresh'](),_0xea84b6[_0x3ce3('0x18')]({'forceDefaultExecution':!0x0}),_0x63174a['execute'](_0x2d115e,..._0xea84b6);const _0x1f3418=_0x526a60['filter'](_0x522f8d=>'$graveyard'!=_0x522f8d[_0x3ce3('0x6e')][_0x3ce3('0xe')]);_0x1f3418[_0x3ce3('0x41')]>0x0&&_0x968541[_0x3ce3('0x1c')](_0x1f3418);for(const _0x32c3dd of _0x526a60)_0x32c3dd['detach']();});};}[_0x3ce3('0x57')](_0x52b4b9){const _0x4f2290=this[_0x3ce3('0x12')]['plugins'][_0x3ce3('0x34')]('TableUtils');let _0x459643=Number[_0x3ce3('0x4c')],_0x4fef1c=Number[_0x3ce3('0x71')],_0x8be790=Number[_0x3ce3('0x4c')],_0x41eab5=Number[_0x3ce3('0x71')];for(const _0x1beee2 of _0x52b4b9){if(_0x3ce3('0x10')==_0x1beee2[_0x3ce3('0x6e')]['rootName'])continue;const {row:_0x22b2e0,column:_0x180294}=_0x4f2290[_0x3ce3('0x63')](_0x1beee2),_0x33abb6=_0x1beee2[_0x3ce3('0x48')]('rowspan')?_0x1beee2[_0x3ce3('0x53')](_0x3ce3('0x82'))-0x1:0x0,_0x48ffce=_0x1beee2['hasAttribute']('colspan')?_0x1beee2[_0x3ce3('0x53')](_0x3ce3('0x7'))-0x1:0x0;_0x459643=_0x22b2e0<_0x459643?_0x22b2e0:_0x459643,_0x4fef1c=_0x22b2e0+_0x33abb6>_0x4fef1c?_0x22b2e0+_0x33abb6:_0x4fef1c,_0x8be790=_0x180294<_0x8be790?_0x180294:_0x8be790,_0x41eab5=_0x180294+_0x48ffce>_0x41eab5?_0x180294+_0x48ffce:_0x41eab5;}return{'minRow':_0x459643,'maxRow':_0x4fef1c,'minColumn':_0x8be790,'maxColumn':_0x41eab5};}[_0x3ce3('0x24')](){const _0x333495=this[_0x3ce3('0x12')],_0x1810f8=_0x333495[_0x3ce3('0x60')][_0x3ce3('0x34')]('TrackChangesEditing'),_0x2d61c1=_0x333495[_0x3ce3('0x60')]['get'](_0x3ce3('0xf'));_0x333495[_0x3ce3('0x23')][_0x3ce3('0x75')]['on'](_0x3ce3('0x68'),()=>{const _0x2da2e5=Array[_0x3ce3('0xb')](_0x333495[_0x3ce3('0x23')][_0x3ce3('0x75')][_0x3ce3('0x83')][_0x3ce3('0x8')]());for(const {name:_0x493ded,data:_0x1aaef7}of _0x2da2e5){const {group:_0x5b0e8b,id:_0x4787eb,subType:_0xc2846d}=_0x1810f8[_0x3ce3('0x31')](_0x493ded);if(_0x3ce3('0x5d')!=_0x5b0e8b)continue;if(null!=_0x1aaef7[_0x3ce3('0x6a')])continue;const _0xb80c1b=_0x1810f8[_0x3ce3('0x32')](_0x4787eb);this[_0x3ce3('0x59')][_0x3ce3('0x39')](_0xc2846d)&&this['_tableSuggestions'][_0x3ce3('0x4')](_0xb80c1b);}},{'priority':_0x3ce3('0x44')});const _0x1f7b20=(_0x1cbe72,_0x48d0b2)=>{let _0x1c36b8=!0x1;const _0x5bbd75=_0x48d0b2['createRangeOn'](_0x1cbe72),_0x28dab5=_0x1cbe72[_0x3ce3('0x1e')](_0x3ce3('0xd')),_0x483358=_0x2d61c1[_0x3ce3('0x63')](_0x1cbe72);for(const _0x13717d of this[_0x3ce3('0x14')]){const _0x317f67=_0x13717d[_0x3ce3('0xa')],_0x4fadd4=_0x317f67[_0x3ce3('0x3')](_0x3ce3('0x1b')),_0x4e0645=_0x317f67[_0x3ce3('0x5b')](_0x4fadd4?0xa:0x5),_0x41e526=_0x4e0645[_0x3ce3('0x56')](),_0x3add37=_0x41e526[_0x3ce3('0x5b')](0x0,0x3)+'span',_0x549ffc=_0x3ce3('0x54')+_0x4e0645,_0x21dc45=_0x3ce3('0x64')+_0x4e0645;if(!_0x13717d[_0x3ce3('0x2d')])continue;if(_0x28dab5!=_0x13717d[_0x3ce3('0x15')]()[_0x3ce3('0x5a')]['findAncestor'](_0x3ce3('0xd')))continue;if(_0x13717d[_0x3ce3('0x19')](_0x5bbd75))continue;const _0x23f0d0=_0x1cbe72[_0x3ce3('0x48')](_0x3add37)?_0x1cbe72[_0x3ce3('0x53')](_0x3add37)-0x1:0x0,_0xee8548=this[_0x3ce3('0x35')](_0x13717d),_0x28e884=_0xee8548[_0x549ffc],_0x2e1375=_0xee8548[_0x21dc45];_0x28e884<=_0x483358[_0x41e526]&&_0x483358[_0x41e526]+_0x23f0d0<=_0x2e1375&&(_0x13717d['addRange'](_0x5bbd75),_0x1c36b8=!0x0);}return _0x1c36b8;};_0x333495[_0x3ce3('0x23')][_0x3ce3('0x75')][_0x3ce3('0x6d')](_0x3b664a=>{let _0x1f3bff=!0x1;for(const _0x56a612 of _0x333495[_0x3ce3('0x23')][_0x3ce3('0x75')][_0x3ce3('0x83')][_0x3ce3('0x26')]())if('insert'==_0x56a612[_0x3ce3('0x66')]){if(_0x3ce3('0x2f')==_0x56a612[_0x3ce3('0x3a')])for(const _0x326878 of _0x56a612['position']['nodeAfter']['getChildren']())_0x1f3bff=_0x1f3bff||_0x1f7b20(_0x326878,_0x3b664a);else _0x3ce3('0x1f')==_0x56a612[_0x3ce3('0x3a')]&&(_0x1f3bff=_0x1f3bff||_0x1f7b20(_0x56a612[_0x3ce3('0x58')]['nodeAfter'],_0x3b664a));}return _0x1f3bff;});}[_0x3ce3('0x35')](_0x34aef9){return this[_0x3ce3('0x57')](_0x34aef9['getRanges']()['map'](_0x52a6b8=>_0x52a6b8[_0x3ce3('0x5a')]['nodeAfter']));}}function ie(_0x302b23){return Array[_0x3ce3('0xb')](new Set(_0x302b23)[_0x3ce3('0x72')]());}
|
|
23
|
+
const _0x5e8e=['colspan','_suggestionFactory','getChanges','isEqual','_tablePostFixingSubtypes','$graveyard','detach','max','getItems','setSelection','commands','_setupColumnsRowsFixing','addRange','type','$textProxy','selectTableColumn','insertTableColumnLeft','fromRange','cell','getAttribute','minColumn','accept','getRowIndexes','forceValue','_splitMarkerName','highest','every','TableEditing','MIN_SAFE_INTEGER','createRangeOn','MAX_SAFE_INTEGER','end','last','mapper','maxRow','addMarker:suggestion','ELEMENT_TABLE_COLUMN_WITH_TEXT','suggestion','change:data','insertTableRowAbove','options','substr','execute','name','enableCommand','ELEMENT_TABLE_ROW','element','afterInit','length','getCellLocation','start','has','_tableSuggestions','table','oldRange','getRanges','getSelectionAffectedTableCells','getChildren','insertTableRowBelow','showSuggestionHighlights','model','ELEMENT_TABLE_ROW_WITH_TEXT','isArray','rootName','document','getColumnIndexes','_getCoordsForCells','insertTableColumnRight','nodeAfter','locale','tableColumn','change','selection','differ','_descriptionFactory','position','registerElementLabel','createTableWalker','some','filter','get','*Remove:*\x20%0','_getSuggestionCoords','discard','registerCustomCallback','hasAttribute','from','item','rowspan','tableRow','removeTableRow','TrackChangesEditing','tablePaste','classes','minRow','includes','getSuggestion','first','above','*Insert:*\x20%0','TableUtils','insertTable','push','subType','downcastDispatcher','deletion','ELEMENT_TABLE_COLUMN','order','tableCell','left','low','markMultiRangeDeletion','min','editor','plugins','selectTableRow','span','ELEMENT_TABLE_WITH_TEXT','batch','enqueueChange','markMultiRangeInsertion','maxColumn','toLowerCase','root','data','values','findAncestor','join','insertion','isInContent','map','removeTableColumn','refresh'];(function(_0x152560,_0x5e8e5f){const _0x3791b4=function(_0x4a24ba){while(--_0x4a24ba){_0x152560['push'](_0x152560['shift']());}};_0x3791b4(++_0x5e8e5f);}(_0x5e8e,0xbc));const _0x3791=function(_0x152560,_0x5e8e5f){_0x152560=_0x152560-0x0;let _0x3791b4=_0x5e8e[_0x152560];return _0x3791b4;};import{Plugin as _0x1be1cd}from'ckeditor5/src/core.js';import{LiveRange as _0x9c53e2}from'ckeditor5/src/engine.js';import{setHighlightHandling as _0x3ac089}from'ckeditor5/src/widget.js';import{getTranslation as _0x266cb1}from'../utils/common-translations.js';export default class yt extends _0x1be1cd{constructor(_0x16f35d){super(_0x16f35d),this[_0x3791('0x52')]=[_0x3791('0x22'),_0x3791('0xf')],this[_0x3791('0x82')]=new Set();}[_0x3791('0x7d')](){const _0x1ef981=this[_0x3791('0x3a')],_0x942306=_0x1ef981[_0x3791('0x5')][_0x3791('0x9')][_0x3791('0x11')];if(!_0x1ef981[_0x3791('0x3b')][_0x3791('0x81')](_0x3791('0x69')))return;const _0x130e4a=_0x1ef981[_0x3791('0xe')],_0x5d9903=_0x1ef981[_0x3791('0x3b')][_0x3791('0x19')]('TrackChangesEditing'),_0x408d1c=_0x1ef981[_0x3791('0x3b')]['get'](_0x3791('0x2d'));_0x5d9903[_0x3791('0x13')][_0x3791('0x15')]('table',_0x5168e4=>_0x266cb1(_0x130e4a,'ELEMENT_TABLE',_0x5168e4)),this['_setupColumnsRowsFixing'](),_0x5d9903[_0x3791('0x7a')](_0x3791('0x2e')),_0x5d9903[_0x3791('0x7a')](_0x3791('0x3c')),_0x5d9903['enableCommand'](_0x3791('0x5d'));for(const _0x5d7e8c of[_0x3791('0x75'),_0x3791('0x3')]){const _0x2aa2d1=_0x1ef981[_0x3791('0x58')][_0x3791('0x19')](_0x5d7e8c);_0x5d9903[_0x3791('0x7a')](_0x5d7e8c,_0x3a5d51=>{_0x1ef981[_0x3791('0x5')][_0x3791('0x10')](_0x20e556=>{_0x3a5d51();const _0x279934=_0x3791('0x2b')===_0x2aa2d1[_0x3791('0x34')],_0x41c183=_0x408d1c['getSelectionAffectedTableCells'](_0x942306),_0x29d226=_0x408d1c[_0x3791('0x64')](_0x41c183),_0x240f6d=_0x279934?_0x29d226['first']-0x1:_0x29d226[_0x3791('0x6e')]+0x1,_0x37cb6f=_0x41c183[0x0]['findAncestor'](_0x3791('0x83')),_0x5316d1=_0x408d1c['createTableWalker'](_0x37cb6f,{'startRow':_0x240f6d,'endRow':_0x240f6d}),_0xf906ac=Array[_0x3791('0x1f')](_0x5316d1)[_0x3791('0x4b')](_0x1ed1b5=>_0x20e556[_0x3791('0x6b')](_0x1ed1b5[_0x3791('0x60')]));_0x5d9903['markMultiRangeInsertion'](_0xf906ac,_0x3791('0x22'));});});}for(const _0x556e90 of[_0x3791('0x5e'),_0x3791('0xc')]){const _0xa02ac3=_0x1ef981[_0x3791('0x58')][_0x3791('0x19')](_0x556e90);_0x5d9903[_0x3791('0x7a')](_0x556e90,_0x493e18=>{_0x1ef981[_0x3791('0x5')][_0x3791('0x10')](_0x301aa7=>{_0x493e18();const _0x164f36=_0x3791('0x36')===_0xa02ac3[_0x3791('0x34')],_0x381baa=_0x408d1c[_0x3791('0x1')](_0x942306),_0x55cc9d=_0x408d1c[_0x3791('0xa')](_0x381baa),_0x3f3d6a=_0x164f36?_0x55cc9d[_0x3791('0x2a')]-0x1:_0x55cc9d['last']+0x1,_0x162855=_0x381baa[0x0][_0x3791('0x47')](_0x3791('0x83')),_0x357e11=_0x408d1c[_0x3791('0x16')](_0x162855,{'startRow':0x0,'column':_0x3f3d6a,'includeAllSlots':!0x1}),_0x1a20d7=Array['from'](_0x357e11)['map'](_0x34fcf8=>_0x301aa7['createRangeOn'](_0x34fcf8[_0x3791('0x60')]));_0x5d9903[_0x3791('0x41')](_0x1a20d7,_0x3791('0xf'));});});}for(const _0x38aaab of[_0x3791('0x23'),'removeTableColumn']){const _0x3a4e04=_0x38aaab[_0x3791('0x77')](0xb),_0x8d95e7=_0x3a4e04[_0x3791('0x43')](),_0x4fe262=_0x8d95e7[_0x3791('0x77')](0x0,0x3)+_0x3791('0x3d'),_0x3b85fc=_0x3791('0x83')+_0x3a4e04,_0x51764b=_0x3791('0x39')+_0x3a4e04,_0x528554=_0x3791('0x55')+_0x3a4e04;_0x5d9903[_0x3791('0x7a')](_0x38aaab,()=>{_0x1ef981[_0x3791('0x5')][_0x3791('0x10')](_0x377399=>{const _0x1bc17b=_0x408d1c['getSelectionAffectedTableCells'](_0x942306),_0x28ecc2=_0x1bc17b[0x0]['findAncestor'](_0x3791('0x83'));let _0x30af06;if('removeTableRow'==_0x38aaab){const _0x4786b5=_0x408d1c[_0x3791('0x64')](_0x1bc17b);_0x30af06={'startRow':_0x4786b5['first'],'endRow':_0x4786b5[_0x3791('0x6e')],'includeAllSlots':!0x0};}else{const _0x4562b2=_0x408d1c['getColumnIndexes'](_0x1bc17b);_0x30af06={'startColumn':_0x4562b2[_0x3791('0x2a')],'endColumn':_0x4562b2[_0x3791('0x6e')],'includeAllSlots':!0x0};}const _0x16b088=_0x408d1c['createTableWalker'](_0x28ecc2,_0x30af06),_0x114b03=Array['from'](_0x16b088)[_0x3791('0x4b')](({cell:_0x318c30})=>_0x318c30),_0x564154=ie(_0x114b03[_0x3791('0x18')](_0x4a4cb6=>_0x4a4cb6['hasAttribute'](_0x4fe262))),_0x189dc6=ie(_0x114b03[_0x3791('0x18')](_0x364ea3=>!_0x364ea3[_0x3791('0x1e')](_0x4fe262)))[_0x3791('0x4b')](_0x4da146=>_0x377399[_0x3791('0x6b')](_0x4da146)),_0x4df3d9=_0x5d9903[_0x3791('0x38')](_0x189dc6,_0x3b85fc);if(_0x4df3d9&&(_0x3791('0x22')==_0x4df3d9[_0x3791('0x30')]||_0x3791('0xf')==_0x4df3d9[_0x3791('0x30')])){const _0x512cf0=this[_0x3791('0x1b')](_0x4df3d9);for(const _0x2c9faa of _0x564154){const _0x1e52a5=_0x377399['createRangeOn'](_0x2c9faa),_0xcb9df0=_0x408d1c[_0x3791('0x7f')](_0x2c9faa),_0x222840=_0x2c9faa[_0x3791('0x61')](_0x4fe262)-0x1,_0x245c1a=_0x512cf0[_0x51764b],_0x89e173=_0x512cf0[_0x528554];_0x245c1a<=_0xcb9df0[_0x8d95e7]&&_0xcb9df0[_0x8d95e7]+_0x222840<=_0x89e173&&_0x4df3d9[_0x3791('0x5a')](_0x1e52a5);}}});});}function _0x1ff903(_0x145619){const _0x3f2894=Array[_0x3791('0x1f')](_0x942306[_0x3791('0x0')]())['map'](_0x5594c3=>_0x9c53e2[_0x3791('0x5f')](_0x5594c3));_0x1ef981['model'][_0x3791('0x10')](_0x315abe=>{const _0x537d67=_0x315abe[_0x3791('0x3f')];_0x145619=_0x145619[_0x3791('0x18')](_0x2b67ff=>_0x3791('0x53')!=_0x2b67ff[_0x3791('0x44')]['rootName']),_0x315abe['setSelection'](_0x145619),_0x1ef981[_0x3791('0x58')]['get'](_0x3791('0x23'))['refresh'](),_0x1ef981['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ef981['model']['enqueueChange'](()=>{_0x1ef981[_0x3791('0x5')][_0x3791('0x40')](_0x537d67,_0x384e4c=>{const _0x2d83e1=_0x3f2894[_0x3791('0x18')](_0x47cd48=>_0x3791('0x53')!=_0x47cd48[_0x3791('0x44')][_0x3791('0x8')]);_0x2d83e1[_0x3791('0x7e')]>0x0&&_0x384e4c[_0x3791('0x57')](_0x2d83e1);for(const _0xdd26bd of _0x3f2894)_0xdd26bd['detach']();});});});}function _0x397396(_0x574b98){_0x1ef981[_0x3791('0x5')][_0x3791('0x10')](_0x1bc2ec=>{const _0x40979a=Array[_0x3791('0x1f')](_0x942306['getRanges']())[_0x3791('0x4b')](_0x2f05bc=>_0x9c53e2[_0x3791('0x5f')](_0x2f05bc)),_0x501fb7=[];for(const _0x5ea763 of _0x574b98)for(const _0x1274e6 of _0x5ea763[_0x3791('0x56')]({'shallow':!0x0}))_0x501fb7[_0x3791('0x2f')](_0x1274e6);for(const _0x2d2bde of _0x501fb7)'$graveyard'!=_0x2d2bde[_0x3791('0x44')][_0x3791('0x8')]&&(_0x1bc2ec[_0x3791('0x57')](_0x1bc2ec['createPositionAt'](_0x2d2bde,0x0)),_0x1ef981[_0x3791('0x58')][_0x3791('0x19')]('removeTableColumn')['refresh'](),_0x1ef981[_0x3791('0x78')](_0x3791('0x4c'),{'forceDefaultExecution':!0x0}));const _0x15344a=_0x40979a['filter'](_0x272ae0=>_0x3791('0x53')!=_0x272ae0['root'][_0x3791('0x8')]);_0x15344a[_0x3791('0x7e')]>0x0&&_0x1bc2ec['setSelection'](_0x15344a);for(const _0x5b129c of _0x40979a)_0x5b129c['detach']();});}function _0x5f1d73(_0x37bab4,_0x3ce271){return _0x3ce271[_0x3791('0x68')](_0x4818e0=>_0x37bab4['some'](_0x5e5cac=>_0x5e5cac['end'][_0x3791('0x51')](_0x4818e0[_0x3791('0x80')])||_0x4818e0[_0x3791('0x6d')]['isEqual'](_0x5e5cac[_0x3791('0x80')])));}function _0x22b54b(_0x20a6c0,_0x4c5dfe){return _0x20a6c0[_0x3791('0x17')](_0x5f5dbb=>_0x4c5dfe[_0x3791('0x17')](_0x109804=>_0x5f5dbb[_0x3791('0x6d')]['isTouching'](_0x109804[_0x3791('0x80')])));}_0x1ef981['data'][_0x3791('0x31')]['on'](_0x3791('0x71'),(_0x3edb49,_0x4d8e9c,_0x1f739e)=>{if(!_0x1f739e[_0x3791('0x76')][_0x3791('0x4')])return;const _0x255a86=_0x4d8e9c[_0x3791('0x20')];if(!_0x255a86)return;const _0x885d67=_0x1f739e[_0x3791('0x6f')]['toViewElement'](_0x255a86);function _0x37529a(_0x59e6f5){return Array[_0x3791('0x7')](_0x59e6f5)?_0x59e6f5:[_0x59e6f5];}_0x885d67&&_0x3791('0x35')===_0x255a86['name']&&_0x3ac089(_0x885d67,_0x1f739e['writer'],(_0x6d05c2,_0x241724,_0x2d998b)=>_0x2d998b['addClass'](_0x37529a(_0x241724[_0x3791('0x26')]),_0x6d05c2),(_0x3a8ed8,_0x4ade6f,_0x55b036)=>_0x55b036['removeClass'](_0x37529a(_0x4ade6f['classes']),_0x3a8ed8));},{'priority':_0x3791('0x67')}),_0x5d9903['_descriptionFactory']['registerDescriptionCallback'](_0xc79cf1=>{if(_0x3791('0x49')!=_0xc79cf1[_0x3791('0x5b')]&&_0x3791('0x32')!=_0xc79cf1[_0x3791('0x5b')])return;const _0x44ae73=_0xc79cf1['getContainedElement']();if(null!=_0x44ae73&&_0x44ae73['is'](_0x3791('0x7c'),_0x3791('0x83'))){if(_0x3791('0x49')==_0xc79cf1[_0x3791('0x5b')]){const _0xfe3be0=_0xc79cf1['getItems']()[_0x3791('0x18')](_0x30d56c=>_0x30d56c['is'](_0x3791('0x5c')))[_0x3791('0x4b')](_0x5ed2ee=>_0x5ed2ee[_0x3791('0x45')]);if(_0xfe3be0[_0x3791('0x7e')])return{'type':_0x3791('0x49'),'content':_0x266cb1(_0x130e4a,_0x3791('0x2c'),_0x266cb1(_0x130e4a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfe3be0[_0x3791('0x48')]('\x20')+'\x22'))};}if(_0x3791('0x32')==_0xc79cf1[_0x3791('0x5b')]){const _0x1681e6=_0xc79cf1['getItems']()['filter'](_0x1b2d1c=>_0x1b2d1c['is'](_0x3791('0x5c')))['map'](_0x344a49=>_0x344a49[_0x3791('0x45')]);if(_0x1681e6[_0x3791('0x7e')])return{'type':_0x3791('0x32'),'content':_0x266cb1(_0x130e4a,_0x3791('0x1a'),_0x266cb1(_0x130e4a,_0x3791('0x3e'),'\x22'+_0x1681e6[_0x3791('0x48')]('\x20')+'\x22'))};}}}),_0x5d9903[_0x3791('0x13')]['registerDescriptionCallback'](_0x570094=>{if('tableRow'==_0x570094[_0x3791('0x30')]){const _0x52e4b8=_0x570094[_0x3791('0x56')]()[_0x3791('0x18')](_0x534e05=>_0x534e05['is']('$textProxy'))['map'](_0x438191=>_0x438191[_0x3791('0x45')]),_0x667da5=this[_0x3791('0x1b')](_0x570094),_0x161959=_0x667da5[_0x3791('0x70')]-_0x667da5[_0x3791('0x27')]+0x1;if(_0x3791('0x49')==_0x570094[_0x3791('0x5b')])return _0x52e4b8[_0x3791('0x7e')]?{'type':_0x3791('0x49'),'content':_0x266cb1(_0x130e4a,_0x3791('0x2c'),_0x266cb1(_0x130e4a,_0x3791('0x6'),[_0x161959,'\x22'+_0x52e4b8[_0x3791('0x48')]('\x20')+'\x22']))}:{'type':_0x3791('0x49'),'content':_0x266cb1(_0x130e4a,_0x3791('0x2c'),_0x266cb1(_0x130e4a,_0x3791('0x7b'),_0x161959))};if(_0x3791('0x32')==_0x570094[_0x3791('0x5b')])return _0x52e4b8[_0x3791('0x7e')]?{'type':_0x3791('0x32'),'content':_0x266cb1(_0x130e4a,'*Remove:*\x20%0',_0x266cb1(_0x130e4a,_0x3791('0x6'),[_0x161959,'\x22'+_0x52e4b8[_0x3791('0x48')]('\x20')+'\x22']))}:{'type':_0x3791('0x32'),'content':_0x266cb1(_0x130e4a,_0x3791('0x1a'),_0x266cb1(_0x130e4a,_0x3791('0x7b'),_0x161959))};}if(_0x3791('0xf')==_0x570094['subType']){const _0x3663fe=_0x570094[_0x3791('0x56')]()[_0x3791('0x18')](_0x377535=>_0x377535['is']('$textProxy'))['map'](_0x3be976=>_0x3be976['data']),_0x561a33=this[_0x3791('0x1b')](_0x570094),_0x21977a=_0x561a33[_0x3791('0x42')]-_0x561a33[_0x3791('0x62')]+0x1;if(_0x3791('0x49')==_0x570094['type'])return _0x3663fe[_0x3791('0x7e')]?{'type':'insertion','content':_0x266cb1(_0x130e4a,'*Insert:*\x20%0',_0x266cb1(_0x130e4a,_0x3791('0x72'),[_0x21977a,'\x22'+_0x3663fe[_0x3791('0x48')]('\x20')+'\x22']))}:{'type':_0x3791('0x49'),'content':_0x266cb1(_0x130e4a,_0x3791('0x2c'),_0x266cb1(_0x130e4a,_0x3791('0x33'),_0x21977a))};if('deletion'==_0x570094[_0x3791('0x5b')])return _0x3663fe[_0x3791('0x7e')]?{'type':_0x3791('0x32'),'content':_0x266cb1(_0x130e4a,_0x3791('0x1a'),_0x266cb1(_0x130e4a,_0x3791('0x72'),[_0x21977a,'\x22'+_0x3663fe[_0x3791('0x48')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x266cb1(_0x130e4a,_0x3791('0x1a'),_0x266cb1(_0x130e4a,_0x3791('0x33'),_0x21977a))};}}),_0x5d9903[_0x3791('0x4f')][_0x3791('0x1d')]('insertion',_0x3791('0x22'),'discard',_0x1ff903),_0x5d9903['_suggestionFactory'][_0x3791('0x1d')]('deletion',_0x3791('0x22'),_0x3791('0x63'),_0x1ff903),_0x5d9903['_suggestionFactory'][_0x3791('0x1d')]('insertion',_0x3791('0xf'),_0x3791('0x1c'),_0x397396),_0x5d9903[_0x3791('0x4f')][_0x3791('0x1d')](_0x3791('0x32'),_0x3791('0xf'),_0x3791('0x63'),_0x397396),_0x5d9903[_0x3791('0x4f')]['registerCustomCallback']('insertion',_0x3791('0xf'),_0x3791('0x48'),_0x5f1d73),_0x5d9903[_0x3791('0x4f')]['registerCustomCallback']('deletion',_0x3791('0xf'),'join',_0x5f1d73),_0x5d9903[_0x3791('0x4f')][_0x3791('0x1d')](_0x3791('0x49'),_0x3791('0x22'),_0x3791('0x48'),_0x22b54b),_0x5d9903[_0x3791('0x4f')][_0x3791('0x1d')](_0x3791('0x32'),'tableRow',_0x3791('0x48'),_0x22b54b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42e3e0=this[_0x3791('0x3a')],_0x326e55=_0x42e3e0[_0x3791('0x5')][_0x3791('0x9')][_0x3791('0x11')];return(_0x112cd,_0x88fb4)=>{_0x42e3e0[_0x3791('0x5')][_0x3791('0x10')](_0x41ee8a=>{const {commandName:_0x5a54bf,commandParams:_0x48e86a}=_0x88fb4;let _0x24cc33=_0x112cd[0x0]['end']['nodeBefore'];_0x48e86a&&_0x48e86a[0x0]&&!0x1===_0x48e86a[0x0][_0x3791('0x65')]&&(_0x24cc33=_0x112cd[0x0][_0x3791('0x80')][_0x3791('0xd')]);const _0x215df3=_0x41ee8a['createRangeIn'](_0x24cc33);if(_0x3791('0x53')==_0x215df3['root'][_0x3791('0x8')])return;const _0x3e5596=Array[_0x3791('0x1f')](_0x326e55[_0x3791('0x0')]())[_0x3791('0x4b')](_0x1916da=>_0x9c53e2[_0x3791('0x5f')](_0x1916da));_0x41ee8a[_0x3791('0x57')](_0x215df3),_0x42e3e0['commands']['get'](_0x5a54bf)[_0x3791('0x4d')](),_0x48e86a[_0x3791('0x2f')]({'forceDefaultExecution':!0x0}),_0x42e3e0[_0x3791('0x78')](_0x5a54bf,..._0x48e86a);const _0x1c5922=_0x3e5596[_0x3791('0x18')](_0xbabe25=>_0x3791('0x53')!=_0xbabe25[_0x3791('0x44')]['rootName']);_0x1c5922[_0x3791('0x7e')]>0x0&&_0x41ee8a['setSelection'](_0x1c5922);for(const _0x44e684 of _0x3e5596)_0x44e684[_0x3791('0x54')]();});};}['_getCoordsForCells'](_0x3a4332){const _0x5b8899=this[_0x3791('0x3a')][_0x3791('0x3b')][_0x3791('0x19')]('TableUtils');let _0x2b4e5b=Number[_0x3791('0x6c')],_0x2a5f86=Number[_0x3791('0x6a')],_0x194752=Number['MAX_SAFE_INTEGER'],_0x5c875a=Number[_0x3791('0x6a')];for(const _0x2997a2 of _0x3a4332){if('$graveyard'==_0x2997a2[_0x3791('0x44')][_0x3791('0x8')])continue;const {row:_0x2cc563,column:_0x2ef75a}=_0x5b8899[_0x3791('0x7f')](_0x2997a2),_0x4cf264=_0x2997a2[_0x3791('0x1e')]('rowspan')?_0x2997a2['getAttribute'](_0x3791('0x21'))-0x1:0x0,_0x47f534=_0x2997a2[_0x3791('0x1e')]('colspan')?_0x2997a2[_0x3791('0x61')](_0x3791('0x4e'))-0x1:0x0;_0x2b4e5b=_0x2cc563<_0x2b4e5b?_0x2cc563:_0x2b4e5b,_0x2a5f86=_0x2cc563+_0x4cf264>_0x2a5f86?_0x2cc563+_0x4cf264:_0x2a5f86,_0x194752=_0x2ef75a<_0x194752?_0x2ef75a:_0x194752,_0x5c875a=_0x2ef75a+_0x47f534>_0x5c875a?_0x2ef75a+_0x47f534:_0x5c875a;}return{'minRow':_0x2b4e5b,'maxRow':_0x2a5f86,'minColumn':_0x194752,'maxColumn':_0x5c875a};}[_0x3791('0x59')](){const _0x296d55=this[_0x3791('0x3a')],_0x1bc674=_0x296d55[_0x3791('0x3b')][_0x3791('0x19')](_0x3791('0x24')),_0xe86131=_0x296d55[_0x3791('0x3b')][_0x3791('0x19')](_0x3791('0x2d'));_0x296d55[_0x3791('0x5')][_0x3791('0x9')]['on'](_0x3791('0x74'),()=>{const _0x2f90cc=Array['from'](_0x296d55[_0x3791('0x5')][_0x3791('0x9')]['differ']['getChangedMarkers']());for(const {name:_0x177160,data:_0x15cd21}of _0x2f90cc){const {group:_0x3739fc,id:_0x3699fd,subType:_0x355da0}=_0x1bc674[_0x3791('0x66')](_0x177160);if(_0x3791('0x73')!=_0x3739fc)continue;if(null!=_0x15cd21[_0x3791('0x84')])continue;const _0x34c644=_0x1bc674[_0x3791('0x29')](_0x3699fd);this[_0x3791('0x52')][_0x3791('0x28')](_0x355da0)&&this[_0x3791('0x82')]['add'](_0x34c644);}},{'priority':_0x3791('0x37')});const _0x31e903=(_0x36ef59,_0x106dde)=>{let _0x957987=!0x1;const _0x447d0a=_0x106dde[_0x3791('0x6b')](_0x36ef59),_0x3942aa=_0x36ef59['findAncestor'](_0x3791('0x83')),_0x2362aa=_0xe86131[_0x3791('0x7f')](_0x36ef59);for(const _0x1ab7c3 of this['_tableSuggestions']){const _0x4e091c=_0x1ab7c3['subType'],_0x48bf6f=_0x4e091c['startsWith'](_0x3791('0x25')),_0x2503ca=_0x4e091c[_0x3791('0x77')](_0x48bf6f?0xa:0x5),_0x494800=_0x2503ca['toLowerCase'](),_0x146137=_0x494800['substr'](0x0,0x3)+_0x3791('0x3d'),_0x2c0ca9='min'+_0x2503ca,_0x383e48=_0x3791('0x55')+_0x2503ca;if(!_0x1ab7c3[_0x3791('0x4a')])continue;if(_0x3942aa!=_0x1ab7c3['getFirstRange']()[_0x3791('0x80')][_0x3791('0x47')]('table'))continue;if(_0x1ab7c3['isIntersectingWithRange'](_0x447d0a))continue;const _0x1162ce=_0x36ef59[_0x3791('0x1e')](_0x146137)?_0x36ef59['getAttribute'](_0x146137)-0x1:0x0,_0x18989c=this[_0x3791('0x1b')](_0x1ab7c3),_0x345ffd=_0x18989c[_0x2c0ca9],_0x24984a=_0x18989c[_0x383e48];_0x345ffd<=_0x2362aa[_0x494800]&&_0x2362aa[_0x494800]+_0x1162ce<=_0x24984a&&(_0x1ab7c3['addRange'](_0x447d0a),_0x957987=!0x0);}return _0x957987;};_0x296d55['model']['document']['registerPostFixer'](_0x595be1=>{let _0x1089d5=!0x1;for(const _0x4bd501 of _0x296d55[_0x3791('0x5')][_0x3791('0x9')][_0x3791('0x12')][_0x3791('0x50')]())if('insert'==_0x4bd501[_0x3791('0x5b')]){if(_0x3791('0x22')==_0x4bd501[_0x3791('0x79')])for(const _0x289781 of _0x4bd501['position'][_0x3791('0xd')][_0x3791('0x2')]())_0x1089d5=_0x1089d5||_0x31e903(_0x289781,_0x595be1);else _0x3791('0x35')==_0x4bd501[_0x3791('0x79')]&&(_0x1089d5=_0x1089d5||_0x31e903(_0x4bd501[_0x3791('0x14')][_0x3791('0xd')],_0x595be1));}return _0x1089d5;});}[_0x3791('0x1b')](_0x55e743){return this[_0x3791('0xb')](_0x55e743[_0x3791('0x0')]()[_0x3791('0x4b')](_0x4cffef=>_0x4cffef['start'][_0x3791('0xd')]));}}function ie(_0x21eb51){return Array[_0x3791('0x1f')](new Set(_0x21eb51)[_0x3791('0x46')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x418e=['enableCommand','plugins','get','TableCaptionEditing','toggleTableCaption','afterInit','editor'];(function(_0x231191,_0x418e9f){const _0x365f00=function(_0x31347a){while(--_0x31347a){_0x231191['push'](_0x231191['shift']());}};_0x365f00(++_0x418e9f);}(_0x418e,0x6d));const _0x365f=function(_0x231191,_0x418e9f){_0x231191=_0x231191-0x0;let _0x365f00=_0x418e[_0x231191];return _0x365f00;};import{Plugin as _0x2bfa6f}from'ckeditor5/src/core.js';import _0x49784 from'./table.js';export default class Nt extends _0x2bfa6f{static get['requires'](){return[_0x49784];}[_0x365f('0x1')](){const _0x48dfdf=this[_0x365f('0x2')];if(!_0x48dfdf[_0x365f('0x4')]['has'](_0x365f('0x6')))return;_0x48dfdf[_0x365f('0x4')][_0x365f('0x5')]('TrackChangesEditing')[_0x365f('0x3')](_0x365f('0x0'));}}
|