@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231206.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 _0x4555=['listType','registerElementLabel','selection','*Indent:*\x20%0','nextSibling','todoList','formatInline','ELEMENT_TODO_LIST','_descriptionFactory','ListEditing','before','paragraph','value','List','todo','commands','commandParams','plugins','numbered','registerDescriptionCallback','afterInit','TrackChangesEditing','from','createPositionAt','get','name','blockName','markBlockFormat','type','filter','length','enableCommand','numberedList','checkChild','getAttribute','indentList','has','*Check\x20item*','bulletedList','ELEMENT_BULLETED_LIST','ELEMENT_LIST_ITEM','format','commandName','*Outdent:*\x20%0','locale','previousSibling','forceValue','add','element','listIndent','outdentList','*Change\x20to:*\x20%0','ELEMENT_NUMBERED_LIST','slice','model','change','checkTodoList','listItem','_selectedElements','document','createRange'];(function(_0x1bfe9a,_0x455548){const _0xba1312=function(_0xc029fe){while(--_0xc029fe){_0x1bfe9a['push'](_0x1bfe9a['shift']());}};_0xba1312(++_0x455548);}(_0x4555,0xd9));const _0xba13=function(_0x1bfe9a,_0x455548){_0x1bfe9a=_0x1bfe9a-0x0;let _0xba1312=_0x4555[_0x1bfe9a];return _0xba1312;};import{Plugin as _0x71828c}from'ckeditor5/src/core';import{getTranslation as _0x3c2511}from'../utils/common-translations';export default class ct extends _0x71828c{[_0xba13('0x2f')](){const _0x3e6553=this['editor'],_0x40979b=_0x3e6553[_0xba13('0xa')];if(!_0x3e6553[_0xba13('0x2c')][_0xba13('0x2')](_0xba13('0x24')))return;const _0x4b61bc=_0x3e6553[_0xba13('0x2c')][_0xba13('0x33')](_0xba13('0x30')),_0x57db94=_0x3e6553[_0xba13('0x2c')][_0xba13('0x2')]('TodoListEditing');function _0xb90456(_0x5eec9c){return()=>{const _0x531e0a=_0x3e6553[_0xba13('0x14')][_0xba13('0x19')][_0xba13('0x1d')],_0x365c82=_0x3e6553['commands'][_0xba13('0x33')](_0x5eec9c);if(_0x365c82['value'])return void _0x3e6553['execute'](_0xba13('0x26'),{});const _0x178d0=_0x5eec9c[_0xba13('0x13')](0x0,-0x4),_0x1767be=function(_0x273085,_0x3a0f50,_0x1bf540){let _0x50d7b4=Array[_0xba13('0x31')](_0x273085)[_0xba13('0x38')](_0x554004=>function(_0x4ddfd4,_0x4e374c){return _0x4e374c[_0xba13('0x3c')](_0x4ddfd4['parent'],'listItem')&&!_0x4e374c['isObject'](_0x4ddfd4);}(_0x554004,_0x1bf540));_0x50d7b4=_0x50d7b4[_0xba13('0x38')](_0xaf6b7c=>!_0xaf6b7c['is']('element',_0xba13('0x17'))||_0xaf6b7c['getAttribute'](_0xba13('0x1b'))!=_0x3a0f50);const _0x29cda3=new Set();for(const _0x5c9657 of _0x50d7b4)_0x5c9657['is'](_0xba13('0xe'),_0xba13('0x17'))?_0x29cda3[_0xba13('0xd')](ne(_0x5c9657)):_0x29cda3['add'](_0x5c9657);return Array[_0xba13('0x31')](_0x29cda3);}(_0x531e0a['getSelectedBlocks'](),_0x178d0,_0x3e6553[_0xba13('0x14')]['schema']);_0x3e6553['model'][_0xba13('0x15')](()=>{for(const _0x5ecd05 of _0x1767be)_0x4b61bc[_0xba13('0x36')](_0x5ecd05,{'commandName':_0x5eec9c,'commandParams':[{'forceValue':!_0x365c82[_0xba13('0x27')]}],'formatGroupId':_0xba13('0x35')},oe(_0x5ecd05));});};}function _0x1eb366(_0x48782f){return()=>{const _0x1497a5=function(_0x229876){let _0x515868=Array['from'](_0x229876);const _0x123be2=_0x515868['findIndex'](_0xd4c246=>'listItem'!=_0xd4c246[_0xba13('0x34')]);return _0x123be2>-0x1&&(_0x515868=_0x515868[_0xba13('0x13')](0x0,_0x123be2)),_0x515868;}(_0x3e6553[_0xba13('0x14')]['document'][_0xba13('0x1d')]['getSelectedBlocks']()),_0x20d34e=_0x3e6553[_0xba13('0x14')][_0xba13('0x1a')](_0x3e6553[_0xba13('0x14')]['createPositionAt'](_0x1497a5[0x0],_0xba13('0x25')),_0x3e6553[_0xba13('0x14')][_0xba13('0x32')](_0x1497a5[_0x1497a5[_0xba13('0x39')]-0x1],'end'));_0x3e6553['model'][_0xba13('0x15')](()=>{_0x4b61bc[_0xba13('0x36')](_0x20d34e,{'commandName':_0x48782f,'commandParams':[],'formatGroupId':_0xba13('0xf')},function(_0x22e183){const _0x34a1c6=new Set();for(const _0x34cd90 of _0x22e183){let _0x2b5bf7=_0x34cd90[_0xba13('0x1f')];for(;_0x2b5bf7&&_0x2b5bf7['getAttribute'](_0xba13('0xf'))>_0x34cd90['getAttribute'](_0xba13('0xf'));)_0x34a1c6[_0xba13('0xd')](_0x2b5bf7),_0x2b5bf7=_0x2b5bf7[_0xba13('0x1f')];}return Array[_0xba13('0x31')](_0x34a1c6);}(_0x1497a5));});};}_0x4b61bc[_0xba13('0x3a')](_0xba13('0x3b'),_0xb90456(_0xba13('0x3b'))),_0x4b61bc['enableCommand'](_0xba13('0x4'),_0xb90456('bulletedList')),_0x57db94&&_0x4b61bc[_0xba13('0x3a')](_0xba13('0x20'),_0xb90456('todoList')),_0x4b61bc[_0xba13('0x3a')]('indentList',_0x1eb366('indentList')),_0x4b61bc[_0xba13('0x3a')](_0xba13('0x10'),_0x1eb366(_0xba13('0x10'))),_0x57db94&&_0x4b61bc['enableCommand'](_0xba13('0x16'),()=>{const _0x4e195f=_0x3e6553[_0xba13('0x2a')]['get'](_0xba13('0x16')),_0x56718a=Array[_0xba13('0x31')](_0x4e195f[_0xba13('0x18')]);_0x56718a['filter'](_0xe871e4=>_0xe871e4[_0xba13('0x0')]('todoListChecked')!=_0x4e195f['value']),_0x3e6553[_0xba13('0x14')][_0xba13('0x15')](()=>{for(const _0x3b74cc of _0x56718a)_0x4b61bc['markBlockFormat'](_0x3b74cc,{'commandName':_0xba13('0x16'),'commandParams':[{'forceValue':!_0x4e195f['value']}]});});}),_0x4b61bc['_descriptionFactory'][_0xba13('0x1c')](_0xba13('0x17'),_0x246048=>_0x3c2511(_0x40979b,'ELEMENT_LIST_ITEM',_0x246048)),_0x4b61bc[_0xba13('0x23')][_0xba13('0x2e')](_0x5ef2d0=>{if('formatBlock'!=_0x5ef2d0['type']&&_0xba13('0x21')!=_0x5ef2d0[_0xba13('0x37')])return;const {data:_0x49c7b2}=_0x5ef2d0;if(_0x49c7b2){if(_0xba13('0x3b')==_0x49c7b2[_0xba13('0x8')]||'bulletedList'==_0x49c7b2[_0xba13('0x8')]||_0xba13('0x20')==_0x49c7b2[_0xba13('0x8')])switch(_0x49c7b2[_0xba13('0x8')]['replace'](_0xba13('0x28'),'')){case'bulleted':return _0x1a51fb(_0x3c2511(_0x40979b,_0xba13('0x5')));case _0xba13('0x2d'):return _0x1a51fb(_0x3c2511(_0x40979b,_0xba13('0x12')));case _0xba13('0x29'):return _0x1a51fb(_0x3c2511(_0x40979b,_0xba13('0x22')));}if(_0xba13('0x1')==_0x49c7b2[_0xba13('0x8')])return{'type':_0xba13('0x7'),'content':_0x3c2511(_0x40979b,_0xba13('0x1e'),_0x3c2511(_0x40979b,_0xba13('0x6')))};if(_0xba13('0x10')==_0x49c7b2[_0xba13('0x8')])return{'type':'format','content':_0x3c2511(_0x40979b,_0xba13('0x9'),_0x3c2511(_0x40979b,_0xba13('0x6')))};if(_0xba13('0x16')==_0x49c7b2[_0xba13('0x8')])return _0x49c7b2[_0xba13('0x2b')][0x0][_0xba13('0xc')]?{'type':_0xba13('0x7'),'content':_0x3c2511(_0x40979b,_0xba13('0x3'))}:{'type':_0xba13('0x7'),'content':_0x3c2511(_0x40979b,'*Uncheck\x20item*')};}function _0x1a51fb(_0x4cbaca){return{'type':'format','content':_0x3c2511(_0x40979b,_0xba13('0x11'),_0x4cbaca)};}});}}function ne(_0x298938){const _0x209696=_0x298938[_0xba13('0x0')](_0xba13('0xf'));if(0x0==_0x209696)return _0x298938;let _0x344fd7=_0x298938;for(;_0x298938[_0xba13('0xb')]&&_0x298938[_0xba13('0xb')]['is']('element','listItem');){const _0x4e41c1=_0x298938[_0xba13('0xb')][_0xba13('0x0')](_0xba13('0xf'));if(_0x4e41c1==_0x209696)_0x344fd7=_0x298938['previousSibling'];else{if(_0x4e41c1<_0x209696)break;}_0x298938=_0x298938[_0xba13('0xb')];}return _0x344fd7;}function oe(_0x2e55ca){const _0x18657a=[];if(_0x2e55ca['is']('element',_0xba13('0x17'))&&_0x2e55ca[_0xba13('0x0')](_0xba13('0xf'))>0x0){let _0xc090d0=_0x2e55ca[_0xba13('0x1f')];for(;_0xc090d0&&'listItem'==_0xc090d0[_0xba13('0x34')]&&_0xc090d0['getAttribute'](_0xba13('0xf'))==_0x2e55ca[_0xba13('0x0')](_0xba13('0xf'));)_0x18657a['push'](_0xc090d0),_0xc090d0=_0xc090d0[_0xba13('0x1f')];}return _0x18657a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c31=['commandParams','toUpperCase','getFirstPosition','list.properties','flat','type','listType','filter','getSiblingNodes','from','startIndex','map','has','markMultiRangeBlockFormat','formatInline','*Format:*\x20set\x20order\x20to\x20reversed','createRange','document','ListUtils','config','parent','formatBlock','editor','*Format:*\x20set\x20order\x20to\x20regular','_LIST_','ListPropertiesEditing','locale','numbered','reversed','listItem','_descriptionFactory','getListTypeFromListStyleType','length','listStyle','plugins','handleDescriptions','forward','registerDescriptionCallback','selection','_getSuggestionBlocks','getAttribute','change','_getTranslationKeyForListStyle','styles','*Format:*\x20set\x20start\x20index\x20to\x20%0','getLastPosition','listReversed','backward','handleListStartCommand','element','before','TrackChangesEditing','get','handleListReversedCommand','getSelectedBlocks','model','enableCommand','_getSuggestionBlocksForListStyle','handleListStyleCommand','bind','createPositionAt','format'];(function(_0x2d5243,_0x4c319f){const _0x3bf1ff=function(_0x24f737){while(--_0x24f737){_0x2d5243['push'](_0x2d5243['shift']());}};_0x3bf1ff(++_0x4c319f);}(_0x4c31,0x122));const _0x3bf1=function(_0x2d5243,_0x4c319f){_0x2d5243=_0x2d5243-0x0;let _0x3bf1ff=_0x4c31[_0x2d5243];return _0x3bf1ff;};import{Plugin as _0x109ceb}from'ckeditor5/src/core';import{getTranslation as _0x1d97c0}from'../utils/common-translations';export default class ut extends _0x109ceb{['afterInit'](){if(!this['editor'][_0x3bf1('0x36')][_0x3bf1('0x20')](_0x3bf1('0x2d')))return;const _0x10404a=this[_0x3bf1('0x2a')][_0x3bf1('0x27')]['get'](_0x3bf1('0x17')),_0x59c155=this[_0x3bf1('0x2a')][_0x3bf1('0x36')]['get']('TrackChangesEditing');_0x10404a[_0x3bf1('0x1')]&&_0x59c155[_0x3bf1('0xe')](_0x3bf1('0x35'),this[_0x3bf1('0x10')]['bind'](this)),_0x10404a[_0x3bf1('0x30')]&&_0x59c155[_0x3bf1('0xe')](_0x3bf1('0x4'),this['handleListReversedCommand'][_0x3bf1('0x11')](this)),_0x10404a[_0x3bf1('0x1e')]&&_0x59c155[_0x3bf1('0xe')]('listStart',this[_0x3bf1('0x6')][_0x3bf1('0x11')](this)),_0x59c155[_0x3bf1('0x32')][_0x3bf1('0x39')](this[_0x3bf1('0x37')]['bind'](this));}['handleListStyleCommand'](_0x3a3f3f,_0x24574b={}){const _0x5d5a2a=this[_0x3bf1('0x2a')][_0x3bf1('0x36')][_0x3bf1('0xa')](_0x3bf1('0x9')),_0x44cc5c=this[_0x3bf1('0xf')]();this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x3d')](()=>{_0x5d5a2a[_0x3bf1('0x21')](_0x44cc5c,{'commandName':'listStyle','commandParams':[{'type':_0x24574b[_0x3bf1('0x19')]}],'formatGroupId':_0x3bf1('0x35')});});}[_0x3bf1('0xb')](_0x4dca28,_0xe93efe={}){const _0x265387=this[_0x3bf1('0x2a')][_0x3bf1('0x36')]['get'](_0x3bf1('0x9')),_0x27ee8d=this[_0x3bf1('0x3b')](_0x33c88d=>_0x33c88d['is'](_0x3bf1('0x7'),_0x3bf1('0x31'))&&_0x3bf1('0x2f')===_0x33c88d[_0x3bf1('0x3c')]('listType'));if(_0x27ee8d['length']<0x1)return;const _0x2a8074=_0x27ee8d[_0x3bf1('0x1f')](_0x3296a0=>this['editor'][_0x3bf1('0xd')]['createRange'](this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x12')](_0x3296a0,_0x3bf1('0x8')),this[_0x3bf1('0x2a')]['model'][_0x3bf1('0x12')](_0x3296a0,0x0)));this[_0x3bf1('0x2a')][_0x3bf1('0xd')]['change'](()=>{_0x265387[_0x3bf1('0x21')](_0x2a8074,{'commandName':_0x3bf1('0x4'),'commandParams':[{'reversed':_0xe93efe[_0x3bf1('0x30')]}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x356e6c,_0x2f8902={}){const _0x46d14c=this[_0x3bf1('0x2a')]['plugins'][_0x3bf1('0xa')](_0x3bf1('0x9')),_0xb99d74=this['_getSuggestionBlocks'](_0x353a48=>_0x353a48['is'](_0x3bf1('0x7'),'listItem')&&_0x3bf1('0x2f')===_0x353a48['getAttribute'](_0x3bf1('0x1a')));if(_0xb99d74[_0x3bf1('0x34')]<0x1)return;const _0x8da2de=_0xb99d74[_0x3bf1('0x1f')](_0x397960=>this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x24')](this['editor'][_0x3bf1('0xd')][_0x3bf1('0x12')](_0x397960,_0x3bf1('0x8')),this[_0x3bf1('0x2a')]['model'][_0x3bf1('0x12')](_0x397960,0x0)));this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x3d')](()=>{_0x46d14c['markMultiRangeBlockFormat'](_0x8da2de,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f8902[_0x3bf1('0x1e')]}],'formatGroupId':'listStart'});});}[_0x3bf1('0x37')](_0x11a870){if(_0x3bf1('0x29')!=_0x11a870['type']&&_0x3bf1('0x22')!=_0x11a870['type'])return;const _0x1af3eb=this[_0x3bf1('0x2a')][_0x3bf1('0x2e')],{data:_0x42460c}=_0x11a870;if(!_0x42460c)return;let _0x59aac2,_0x1ea4e1;switch(_0x42460c['commandName']){case _0x3bf1('0x35'):_0x59aac2='*Change\x20to:*\x20%0',_0x1ea4e1={'type':_0x3bf1('0x13'),'content':_0x1d97c0(_0x1af3eb,_0x59aac2,_0x1d97c0(_0x1af3eb,this[_0x3bf1('0x0')](_0x42460c[_0x3bf1('0x14')][0x0][_0x3bf1('0x19')])))};break;case _0x3bf1('0x4'):_0x59aac2=_0x42460c[_0x3bf1('0x14')][0x0][_0x3bf1('0x30')]?_0x3bf1('0x23'):_0x3bf1('0x2b'),_0x1ea4e1={'type':_0x3bf1('0x13'),'content':_0x1d97c0(_0x1af3eb,_0x59aac2)};break;case'listStart':_0x59aac2=_0x3bf1('0x2'),_0x1ea4e1={'type':'format','content':_0x1d97c0(_0x1af3eb,_0x59aac2,_0x42460c[_0x3bf1('0x14')][0x0][_0x3bf1('0x1e')])};}return _0x1ea4e1;}[_0x3bf1('0xf')](){var _0xd95b30,_0x2e2354,_0x22fed8,_0x4a1057;const _0x1ce1cc=this[_0x3bf1('0x2a')][_0x3bf1('0x36')][_0x3bf1('0xa')](_0x3bf1('0x26'));let _0x3b5c03=Array[_0x3bf1('0x1d')](this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x25')][_0x3bf1('0x3a')][_0x3bf1('0xc')]());return(null===(_0xd95b30=_0x3b5c03[0x0])||void 0x0===_0xd95b30?void 0x0:_0xd95b30['is'](_0x3bf1('0x7'),'listItem'))&&_0x3b5c03['unshift'](..._0x1ce1cc[_0x3bf1('0x1c')](this[_0x3bf1('0x2a')]['model'][_0x3bf1('0x25')][_0x3bf1('0x3a')]['getFirstPosition'](),_0x3bf1('0x5'))),(null===(_0x2e2354=_0x3b5c03[_0x3b5c03['length']-0x1])||void 0x0===_0x2e2354?void 0x0:_0x2e2354['is'](_0x3bf1('0x7'),_0x3bf1('0x31')))&&_0x3b5c03['push'](..._0x1ce1cc[_0x3bf1('0x1c')](this[_0x3bf1('0x2a')][_0x3bf1('0xd')]['document']['selection'][_0x3bf1('0x3')](),_0x3bf1('0x38'))),_0x3b5c03=[...new Set(_0x3b5c03)],(null===(_0x4a1057=null===(_0x22fed8=this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x25')][_0x3bf1('0x3a')][_0x3bf1('0x16')]())||void 0x0===_0x22fed8?void 0x0:_0x22fed8[_0x3bf1('0x28')])||void 0x0===_0x4a1057?void 0x0:_0x4a1057['is'](_0x3bf1('0x7'),_0x3bf1('0x31')))&&(_0x3b5c03=_0x3b5c03[_0x3bf1('0x1b')](_0x138be9=>_0x138be9['is'](_0x3bf1('0x7'),'listItem'))),_0x3b5c03;}[_0x3bf1('0x3b')](_0x40b8a6){const _0x3c036f=this[_0x3bf1('0x2a')][_0x3bf1('0x36')][_0x3bf1('0xa')]('ListUtils');let _0x14d573=Array[_0x3bf1('0x1d')](this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x25')][_0x3bf1('0x3a')][_0x3bf1('0xc')]())[_0x3bf1('0x1b')](_0x40b8a6)[_0x3bf1('0x1f')](_0x33719c=>{const _0x5cbe51=this[_0x3bf1('0x2a')][_0x3bf1('0xd')][_0x3bf1('0x12')](_0x33719c,0x0);return[..._0x3c036f[_0x3bf1('0x1c')](_0x5cbe51,_0x3bf1('0x5')),..._0x3c036f[_0x3bf1('0x1c')](_0x5cbe51,_0x3bf1('0x38'))];})[_0x3bf1('0x18')]();return _0x14d573=[...new Set(_0x14d573)],_0x14d573;}[_0x3bf1('0x0')](_0x30bdc6){return'ELEMENT_'+this[_0x3bf1('0x2a')]['plugins'][_0x3bf1('0xa')](_0x3bf1('0x26'))[_0x3bf1('0x33')](_0x30bdc6)['toUpperCase']()+_0x3bf1('0x2c')+_0x30bdc6[_0x3bf1('0x15')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29d6=['stop','TrackChangesEditing','editor','showSuggestionHighlights','high','registerElementLabel','enableCommand','locale','get','afterInit','elementToElement','options','data','mediaEmbed','plugins','attribute:url:media','media','dataDowncast','_descriptionFactory'];(function(_0x140659,_0x29d6c6){const _0x12788e=function(_0x4d1004){while(--_0x4d1004){_0x140659['push'](_0x140659['shift']());}};_0x12788e(++_0x29d6c6);}(_0x29d6,0xb8));const _0x1278=function(_0x140659,_0x29d6c6){_0x140659=_0x140659-0x0;let _0x12788e=_0x29d6[_0x140659];return _0x12788e;};import{Plugin as _0x1e7a30}from'ckeditor5/src/core';import{getTranslation as _0x27497d}from'../utils/common-translations';export default class ht extends _0x1e7a30{[_0x1278('0xf')](){const _0x5bf435=this[_0x1278('0x8')];if(!_0x5bf435[_0x1278('0x1')]['has']('MediaEmbedEditing'))return;const _0x5dc481=_0x5bf435[_0x1278('0x1')][_0x1278('0xe')](_0x1278('0x7')),_0x19572f=_0x5bf435[_0x1278('0xd')];_0x5dc481[_0x1278('0xc')](_0x1278('0x0')),_0x5dc481[_0x1278('0x5')][_0x1278('0xb')](_0x1278('0x3'),_0x5082bb=>_0x27497d(_0x19572f,'ELEMENT_MEDIA',_0x5082bb)),_0x5bf435['conversion']['for'](_0x1278('0x4'))[_0x1278('0x10')]({'model':_0x1278('0x3'),'view':(_0x3a7c11,{writer:_0x18f253,options:_0x4d4800})=>{if(_0x4d4800['showSuggestionHighlights'])return _0x18f253['createEmptyElement']('div');},'converterPriority':_0x1278('0xa')}),_0x5bf435[_0x1278('0x12')]['downcastDispatcher']['on'](_0x1278('0x2'),(_0x74239f,_0x21d60c,_0x465dc0)=>{_0x465dc0[_0x1278('0x11')][_0x1278('0x9')]&&_0x74239f[_0x1278('0x6')]();},{'priority':_0x1278('0xa')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20c2=['MentionEditing','has','plugins','TrackChangesEditing','get','enableCommand','editor'];(function(_0x36b73d,_0x20c274){const _0x2ef5a0=function(_0x477ab1){while(--_0x477ab1){_0x36b73d['push'](_0x36b73d['shift']());}};_0x2ef5a0(++_0x20c274);}(_0x20c2,0x14a));const _0x2ef5=function(_0x36b73d,_0x20c274){_0x36b73d=_0x36b73d-0x0;let _0x2ef5a0=_0x20c2[_0x36b73d];return _0x2ef5a0;};import{Plugin as _0x4212cd}from'ckeditor5/src/core';export default class ft extends _0x4212cd{['afterInit'](){const _0x410485=this[_0x2ef5('0x5')];_0x410485[_0x2ef5('0x1')][_0x2ef5('0x0')](_0x2ef5('0x6'))&&_0x410485[_0x2ef5('0x1')][_0x2ef5('0x3')](_0x2ef5('0x2'))[_0x2ef5('0x4')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c1a=['_descriptionFactory','plugins','registerElementLabel','get','ELEMENT_PAGE_BREAK','afterInit','PageBreakEditing','locale','has','pageBreak','editor','TrackChangesEditing'];(function(_0x177426,_0x1c1af3){const _0x324273=function(_0x203c3d){while(--_0x203c3d){_0x177426['push'](_0x177426['shift']());}};_0x324273(++_0x1c1af3);}(_0x1c1a,0xc6));const _0x3242=function(_0x177426,_0x1c1af3){_0x177426=_0x177426-0x0;let _0x324273=_0x1c1a[_0x177426];return _0x324273;};import{Plugin as _0x4a4d28}from'ckeditor5/src/core';import{getTranslation as _0x57b679}from'../utils/common-translations';export default class gt extends _0x4a4d28{[_0x3242('0xb')](){const _0x413b12=this[_0x3242('0x4')];if(!_0x413b12[_0x3242('0x7')][_0x3242('0x2')](_0x3242('0x0')))return;_0x413b12['plugins'][_0x3242('0x9')](_0x3242('0x5'))['enableCommand'](_0x3242('0x3'));const _0x412e74=_0x413b12[_0x3242('0x7')][_0x3242('0x9')](_0x3242('0x5')),_0x589004=_0x413b12[_0x3242('0x1')];_0x412e74[_0x3242('0x6')][_0x3242('0x8')](_0x3242('0x3'),_0xcbf43d=>_0x57b679(_0x589004,_0x3242('0xa'),_0xcbf43d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f9=['format','model','getFirstRange','afterInit','ELEMENT_PARAGRAPH','schema','downcastDispatcher','start','markerName','TrackChangesEditing','writer','showSuggestionHighlights','activeMarkers','registerDescriptionCallback','locale','span','type','mapper','data','end','markerRange','isTouching','name','isBlock','get','isLimit','bindElementToMarker','highest','checkChild','paragraph','addMarker:suggestion:insertion','ck-suggestion-marker--active','commandName','consumable','registerElementLabel','insertion','has','nodeAfter','editor','formatBlock','_descriptionFactory','Paragraph','insert','getItemLabel','*Change\x20to:*\x20%0','*Insert:*\x20%0','plugins','options','toViewPosition','enableCommand'];(function(_0x242fc8,_0x42f9de){const _0x42535f=function(_0x1c271d){while(--_0x1c271d){_0x242fc8['push'](_0x242fc8['shift']());}};_0x42535f(++_0x42f9de);}(_0x42f9,0xfc));const _0x4253=function(_0x242fc8,_0x42f9de){_0x242fc8=_0x242fc8-0x0;let _0x42535f=_0x42f9[_0x242fc8];return _0x42535f;};import{Plugin as _0xa7e801}from'ckeditor5/src/core';import{getTranslation as _0x3f91a5}from'../utils/common-translations';export default class lt extends _0xa7e801{[_0x4253('0x1')](){const _0x401844=this[_0x4253('0x24')];if(!_0x401844['plugins'][_0x4253('0x22')](_0x4253('0x27')))return;const _0x17ab48=_0x401844[_0x4253('0xc')],_0x10c706=_0x401844['plugins']['get'](_0x4253('0x7'));_0x10c706[_0x4253('0x26')][_0x4253('0x20')]('paragraph',_0x511f2a=>_0x3f91a5(_0x17ab48,_0x4253('0x2'),_0x511f2a)),_0x10c706['_enableDefaultAttributesIntegration']('paragraph'),_0x10c706[_0x4253('0x2f')]('insertParagraph'),_0x401844['editing'][_0x4253('0x4')]['on'](_0x4253('0x1c'),nr(_0x401844),{'priority':'highest'}),_0x401844[_0x4253('0x10')][_0x4253('0x4')]['on']('addMarker:suggestion:insertion',(_0x58d6f9,_0x3afe11,_0x39d06c)=>{_0x39d06c[_0x4253('0x2d')][_0x4253('0x9')]&&nr(_0x401844,{'showActiveMarker':!0x1})(_0x58d6f9,_0x3afe11,_0x39d06c);},{'priority':_0x4253('0x19')});const _0x3a883b=_0x10c706[_0x4253('0x26')];_0x3a883b[_0x4253('0xb')](_0x368f4b=>{if(_0x4253('0x21')!==_0x368f4b[_0x4253('0xe')])return;const {start:_0x3bf375,end:_0x5e5ab7}=_0x368f4b[_0x4253('0x0')]();if(!_0x3bf375[_0x4253('0x13')](_0x5e5ab7)||!_0x3bf375[_0x4253('0x23')])return;const _0x35079b=_0x401844['model']['schema'],_0x24f074=_0x3bf375[_0x4253('0x23')];return _0x35079b[_0x4253('0x15')](_0x24f074)&&!_0x35079b['isLimit'](_0x24f074)&&_0x35079b[_0x4253('0x1a')](_0x24f074,'$text')?{'type':_0x4253('0x21'),'content':_0x3f91a5(_0x17ab48,_0x4253('0x2b'),_0x3a883b[_0x4253('0x29')](_0x24f074,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595325=this[_0x4253('0x24')],_0x22ac13=_0x595325['locale'];_0x595325[_0x4253('0x2c')][_0x4253('0x16')](_0x4253('0x7'))[_0x4253('0x26')]['registerDescriptionCallback'](_0x223b8f=>{if(_0x4253('0x25')!=_0x223b8f[_0x4253('0xe')])return;const {data:_0x3dc8f1}=_0x223b8f;return _0x3dc8f1&&_0x4253('0x1b')==_0x3dc8f1[_0x4253('0x1e')]?{'type':_0x4253('0x30'),'content':_0x3f91a5(_0x22ac13,_0x4253('0x2a'),_0x3f91a5(_0x22ac13,_0x4253('0x2')))}:void 0x0;});}}function nr(_0x13c908,{showActiveMarker:_0x5c9498=!0x0}={}){return(_0x3ac4ac,_0x357950,_0x21b282)=>{const _0x2740b4=_0x13c908[_0x4253('0x2c')][_0x4253('0x16')]('TrackChangesEditing'),_0x4c860b=_0x357950['markerRange'][_0x4253('0x5')],_0x64444b=_0x357950[_0x4253('0x12')][_0x4253('0x11')],_0xb0ca6c=_0x13c908[_0x4253('0x31')][_0x4253('0x3')];if(!_0x4c860b[_0x4253('0x13')](_0x64444b)||!_0x4c860b[_0x4253('0x23')])return;const _0xd6cbe3=_0x4c860b[_0x4253('0x23')];if(_0xb0ca6c[_0x4253('0x15')](_0xd6cbe3)&&!_0xb0ca6c[_0x4253('0x17')](_0xd6cbe3)&&_0xb0ca6c[_0x4253('0x1a')](_0xd6cbe3,'$text')){if(!_0x21b282[_0x4253('0x1f')]['consume'](_0x357950[_0x4253('0x12')],_0x3ac4ac[_0x4253('0x14')]))return;const _0x5a88d0=_0x21b282[_0x4253('0x8')]['createUIElement'](_0x4253('0xd'),{'class':'ck-suggestion-marker-split'}),_0x55e998=_0x21b282[_0x4253('0xf')][_0x4253('0x2e')](_0x64444b);_0x5c9498&&_0x2740b4[_0x4253('0xa')]['includes'](_0x357950[_0x4253('0x6')])&&_0x21b282[_0x4253('0x8')]['addClass'](_0x4253('0x1d'),_0x5a88d0),_0x21b282[_0x4253('0x8')][_0x4253('0x28')](_0x55e998,_0x5a88d0),_0x21b282[_0x4253('0xf')][_0x4253('0x18')](_0x5a88d0,_0x357950[_0x4253('0x6')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2126=['has','afterInit','removeFormat','locale','get','_descriptionFactory','format','editor','formatBlock','_enableDefaultAttributesIntegration','RemoveFormatEditing','*Remove\x20all\x20formatting*','commandName','formatInline','TrackChangesEditing','registerDescriptionCallback','type','plugins','_registerLegacyDescription'];(function(_0x2221cc,_0x2126b5){const _0x223eae=function(_0x41989c){while(--_0x41989c){_0x2221cc['push'](_0x2221cc['shift']());}};_0x223eae(++_0x2126b5);}(_0x2126,0xf3));const _0x223e=function(_0x2221cc,_0x2126b5){_0x2221cc=_0x2221cc-0x0;let _0x223eae=_0x2126[_0x2221cc];return _0x223eae;};import{Plugin as _0x5f0488}from'ckeditor5/src/core';import{getTranslation as _0x390742}from'../utils/common-translations';export default class mt extends _0x5f0488{[_0x223e('0x5')](){const _0x5e92ae=this[_0x223e('0xb')];if(!_0x5e92ae['plugins'][_0x223e('0x4')](_0x223e('0xe')))return;_0x5e92ae[_0x223e('0x2')][_0x223e('0x8')](_0x223e('0x12'))[_0x223e('0xd')](_0x223e('0x6')),this[_0x223e('0x3')]();}['_registerLegacyDescription'](){const _0xe658fd=this[_0x223e('0xb')];_0xe658fd[_0x223e('0x2')]['get']('TrackChangesEditing')[_0x223e('0x9')][_0x223e('0x0')](_0x41fa33=>{if(_0x223e('0xc')!=_0x41fa33[_0x223e('0x1')]&&_0x223e('0x11')!=_0x41fa33[_0x223e('0x1')])return;const {data:_0x5a6b1d}=_0x41fa33;return _0x5a6b1d&&_0x223e('0x6')==_0x5a6b1d[_0x223e('0x10')]?{'type':_0x223e('0xa'),'content':_0x390742(_0xe658fd[_0x223e('0x7')],_0x223e('0xf'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ca4=['plugins','goToNextRestrictedEditingException','editor','get','RestrictedEditingModeEditing','acceptSuggestion','enableCommand','acceptAllSuggestions','has','afterInit','discardSuggestion','TrackChangesEditing','discardSelectedSuggestions','discardAllSuggestions'];(function(_0x13f3e5,_0x1ca46b){const _0x3b9626=function(_0x42cd4f){while(--_0x42cd4f){_0x13f3e5['push'](_0x13f3e5['shift']());}};_0x3b9626(++_0x1ca46b);}(_0x1ca4,0xb7));const _0x3b96=function(_0x13f3e5,_0x1ca46b){_0x13f3e5=_0x13f3e5-0x0;let _0x3b9626=_0x1ca4[_0x13f3e5];return _0x3b9626;};import{Plugin as _0x11b35c}from'ckeditor5/src/core';export default class dt extends _0x11b35c{[_0x3b96('0x8')](){const _0x2590c2=this[_0x3b96('0x1')];if(!_0x2590c2[_0x3b96('0xd')][_0x3b96('0x7')](_0x3b96('0x3')))return;const _0xc56f1e=_0x2590c2[_0x3b96('0xd')]['get'](_0x3b96('0xa'));_0xc56f1e[_0x3b96('0x5')]('goToPreviousRestrictedEditingException'),_0xc56f1e[_0x3b96('0x5')](_0x3b96('0x0'));const _0x5d1740=_0x2590c2['plugins'][_0x3b96('0x2')]('RestrictedEditingModeEditing');_0x5d1740[_0x3b96('0x5')]('trackChanges'),_0x5d1740[_0x3b96('0x5')](_0x3b96('0x4')),_0x5d1740[_0x3b96('0x5')](_0x3b96('0x9')),_0x5d1740[_0x3b96('0x5')](_0x3b96('0x6')),_0x5d1740[_0x3b96('0x5')](_0x3b96('0xc')),_0x5d1740[_0x3b96('0x5')]('acceptSelectedSuggestions'),_0x5d1740[_0x3b96('0x5')](_0x3b96('0xb'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5618=['addMarker:suggestion:deletion','bindElementToMarker','downcastDispatcher','_descriptionFactory','addClass','registerElementLabel','split','ck-suggestion-marker-','writer','element','consumable','name','markerName','insert','enableCommand','editing','data','locale','addMarker:suggestion:insertion','ck-suggestion-marker--active','high','showSuggestionHighlights','includes','plugins','toViewPosition','createPositionBefore','TrackChangesEditing','getItems','deletion','mapper','createUIElement','editor','shiftEnter','markerRange','requires','merge','span','get'];(function(_0x4b5d39,_0x561826){const _0x2dc82d=function(_0xbd2c07){while(--_0xbd2c07){_0x4b5d39['push'](_0x4b5d39['shift']());}};_0x2dc82d(++_0x561826);}(_0x5618,0x77));const _0x2dc8=function(_0x4b5d39,_0x561826){_0x4b5d39=_0x4b5d39-0x0;let _0x2dc82d=_0x5618[_0x4b5d39];return _0x2dc82d;};import{Plugin as _0x2e924a}from'ckeditor5/src/core';import{ShiftEnter as _0x4e8f51}from'ckeditor5/src/enter';import{getTranslation as _0x3169fd}from'../utils/common-translations';export default class pt extends _0x2e924a{static get[_0x2dc8('0x1d')](){return[_0x4e8f51];}['init'](){const _0x3dd82b=this[_0x2dc8('0x1a')],_0x454ab4=_0x3dd82b['plugins'][_0x2dc8('0x20')](_0x2dc8('0x15'));_0x454ab4[_0x2dc8('0x9')](_0x2dc8('0x1b')),_0x3dd82b[_0x2dc8('0xa')][_0x2dc8('0x23')]['on'](_0x2dc8('0xd'),re(_0x3dd82b),{'priority':_0x2dc8('0xf')}),_0x3dd82b[_0x2dc8('0xa')][_0x2dc8('0x23')]['on'](_0x2dc8('0x21'),re(_0x3dd82b),{'priority':_0x2dc8('0xf')}),_0x3dd82b[_0x2dc8('0xb')][_0x2dc8('0x23')]['on']('addMarker:suggestion',(_0x31e2e0,_0x546d3c,_0x4f8db8)=>{_0x4f8db8['options'][_0x2dc8('0x10')]&&re(_0x3dd82b,{'showActiveMarker':!0x1})(_0x31e2e0,_0x546d3c,_0x4f8db8);}),_0x454ab4[_0x2dc8('0x24')][_0x2dc8('0x0')]('softBreak',_0x5351cf=>_0x3169fd(_0x3dd82b[_0x2dc8('0xc')],'ELEMENT_LINE_BREAK',_0x5351cf));}}function re(_0x173774,{showActiveMarker:_0x3cd3dc=!0x0}={}){return(_0x3a9d6e,_0x1f721a,_0xc7585d)=>{const _0x24dc4f=_0x173774[_0x2dc8('0x12')][_0x2dc8('0x20')](_0x2dc8('0x15'));if(!_0xc7585d[_0x2dc8('0x5')]['test'](_0x1f721a[_0x2dc8('0x1c')],_0x3a9d6e[_0x2dc8('0x6')]))return;const _0x31b15d=_0x173774['model'];for(const _0x23ce73 of _0x1f721a[_0x2dc8('0x1c')][_0x2dc8('0x16')]()){if(!_0x23ce73['is'](_0x2dc8('0x4'),'softBreak'))continue;const _0x271570=_0x2dc8('0x17')==_0x1f721a['markerName'][_0x2dc8('0x1')](':')[0x1]?_0x2dc8('0x1e'):'split',_0x507d91=_0xc7585d['writer'][_0x2dc8('0x19')](_0x2dc8('0x1f'),{'class':_0x2dc8('0x2')+_0x271570}),_0x523c8c=_0xc7585d[_0x2dc8('0x18')][_0x2dc8('0x13')](_0x31b15d[_0x2dc8('0x14')](_0x23ce73));_0x3cd3dc&&_0x24dc4f['activeMarkers'][_0x2dc8('0x11')](_0x1f721a[_0x2dc8('0x7')])&&_0xc7585d[_0x2dc8('0x3')][_0x2dc8('0x25')](_0x2dc8('0xe'),_0x507d91),_0xc7585d[_0x2dc8('0x3')][_0x2dc8('0x8')](_0x523c8c,_0x507d91),_0xc7585d[_0x2dc8('0x18')][_0x2dc8('0x22')](_0x507d91,_0x1f721a[_0x2dc8('0x7')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3563=['FORMAT_RESTRICTED_ENABLED','restrictedEditingException','document','formatBlock','registerDescriptionCallback','StandardEditingModeEditing','locale','model','format','forceValue','get','type','_descriptionFactory','editor','TrackChangesEditing','selection','afterInit','from','FORMAT_RESTRICTED_DISABLED','plugins','markInlineFormat','isCollapsed'];(function(_0x2c1031,_0x35634e){const _0xd5f541=function(_0x1cea10){while(--_0x1cea10){_0x2c1031['push'](_0x2c1031['shift']());}};_0xd5f541(++_0x35634e);}(_0x3563,0x11d));const _0xd5f5=function(_0x2c1031,_0x35634e){_0x2c1031=_0x2c1031-0x0;let _0xd5f541=_0x3563[_0x2c1031];return _0xd5f541;};import{Plugin as _0xd4ef8b}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5a4a61}from'./utils';import{getTranslation as _0x30aef3}from'../utils/common-translations';export default class kt extends _0xd4ef8b{[_0xd5f5('0x11')](){const _0x56a816=this[_0xd5f5('0xe')],_0x5861b4=_0x56a816[_0xd5f5('0x8')],_0x3d7031=_0x56a816[_0xd5f5('0x7')];if(!_0x56a816['plugins']['has'](_0xd5f5('0x6')))return;const _0x1eb164=_0x56a816[_0xd5f5('0x14')][_0xd5f5('0xb')](_0xd5f5('0xf')),_0x1cd96e=_0xd5f5('0x2'),_0xca8310=_0x56a816['commands'][_0xd5f5('0xb')](_0x1cd96e);_0x1eb164['enableCommand'](_0x1cd96e,(_0x20ff59,_0x308f57={})=>{const _0x30e782=_0x5861b4[_0xd5f5('0x3')][_0xd5f5('0x10')];if(_0x30e782[_0xd5f5('0x0')])return void _0x20ff59(_0x308f57);const _0x5c2db0=void 0x0!==_0x308f57[_0xd5f5('0xa')]?_0x308f57[_0xd5f5('0xa')]:!_0xca8310['value'];_0x5861b4['change'](()=>{const _0x4c295b=Array[_0xd5f5('0x12')](_0x30e782['getRanges']());for(const _0x145318 of _0x4c295b){const _0x2c0347=_0x5c2db0?[_0x145318]:_0x5a4a61(_0x1cd96e,_0x145318,_0x5861b4);for(const _0x5cf242 of _0x2c0347)_0x1eb164[_0xd5f5('0x15')](_0x5cf242,{'commandName':_0x1cd96e,'commandParams':[{'forceValue':_0x5c2db0}]});}});}),_0x1eb164[_0xd5f5('0xd')][_0xd5f5('0x5')](_0x86fe5e=>{if(_0xd5f5('0x4')!=_0x86fe5e['type']&&'formatInline'!=_0x86fe5e[_0xd5f5('0xc')])return;const {data:_0x1fca70}=_0x86fe5e;return _0x1fca70&&_0x1fca70['commandName']==_0x1cd96e?_0x1fca70['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x30aef3(_0x3d7031,_0xd5f5('0x1'))}:{'type':_0xd5f5('0x9'),'content':_0x30aef3(_0x3d7031,_0xd5f5('0x13'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x449d=['_registerBlockAttribute','type','_descriptionFactory','formatInline','normalizeConfig','getGhsAttributeNameForElement','TrackChangesEditing','_enableDefaultAttributesIntegration','_registerLegacyDescription','DataSchema','FORMAT_STYLE','forceValue','block','add','formatBlock','styleName','registerDescriptionCallback','GeneralHtmlSupport','toLowerCase','ghsAttributes','registerAttributeLabel','plugins','locale','*Set\x20format:*\x20%0','style','get','has','element','format','definitions','commandName','StyleUtils','commandParams','inline'];(function(_0x48e051,_0x449d9b){const _0x5a930c=function(_0x300a82){while(--_0x300a82){_0x48e051['push'](_0x48e051['shift']());}};_0x5a930c(++_0x449d9b);}(_0x449d,0x196));const _0x5a93=function(_0x48e051,_0x449d9b){_0x48e051=_0x48e051-0x0;let _0x5a930c=_0x449d[_0x48e051];return _0x5a930c;};import{Plugin as _0x3b531a}from'ckeditor5/src/core';import{getTranslation as _0xc74177}from'../utils/common-translations';export default class bt extends _0x3b531a{['afterInit'](){const _0x125140=this['editor'];if(!_0x125140[_0x5a93('0x17')][_0x5a93('0x1c')]('Style')||!_0x125140[_0x5a93('0x17')][_0x5a93('0x1c')](_0x5a93('0xb')))return;const _0x9ef433=_0x125140[_0x5a93('0x17')][_0x5a93('0x1b')](_0x5a93('0x8')),_0x563736=_0x125140[_0x5a93('0x18')],_0x49ae63=_0x125140['config'][_0x5a93('0x1b')](_0x5a93('0x1a')),_0x32ac3c=_0x125140[_0x5a93('0x17')]['get'](_0x5a93('0x13')),_0x5025ec=_0x125140[_0x5a93('0x17')][_0x5a93('0x1b')](_0x5a93('0x21'))[_0x5a93('0x6')](_0x125140[_0x5a93('0x17')][_0x5a93('0x1b')]('DataSchema'),_0x49ae63[_0x5a93('0x1f')]);_0x9ef433[_0x5a93('0x9')](_0x5a93('0x1a'));const _0x5ae308=new Set();for(const _0x20d59b of _0x5025ec[_0x5a93('0xe')]){const _0x2c8ab5=_0x32ac3c[_0x5a93('0x7')](_0x20d59b[_0x5a93('0x1d')]);_0x5ae308[_0x5a93('0xf')](_0x2c8ab5);}const _0x16443f=new Set();for(const _0x25d3fc of _0x5025ec[_0x5a93('0x1')]){const _0x216de2=_0x32ac3c[_0x5a93('0x7')](_0x25d3fc['element']);_0x16443f[_0x5a93('0xf')](_0x216de2);for(const _0x24b2e7 of _0x25d3fc[_0x5a93('0x15')])_0x16443f[_0x5a93('0xf')](_0x24b2e7);}for(const _0x44d9b5 of _0x5ae308)_0x9ef433[_0x5a93('0x2')](_0x44d9b5),_0x9ef433[_0x5a93('0x4')][_0x5a93('0x16')](_0x44d9b5,_0xc74177(_0x563736,_0x5a93('0xc')));for(const _0x5b8d7c of _0x16443f)_0x9ef433['_registerInlineAttribute'](_0x5b8d7c),_0x9ef433[_0x5a93('0x4')]['registerAttributeLabel'](_0x5b8d7c,_0xc74177(_0x563736,_0x5a93('0xc')));this[_0x5a93('0xa')]();}[_0x5a93('0xa')](){const _0x276816=this['editor'],_0x3fcef2=_0x276816[_0x5a93('0x18')];_0x276816[_0x5a93('0x17')][_0x5a93('0x1b')]('TrackChangesEditing')['_descriptionFactory'][_0x5a93('0x12')](_0x27b53f=>{if(_0x5a93('0x10')!=_0x27b53f[_0x5a93('0x3')]&&_0x5a93('0x5')!=_0x27b53f['type'])return;const {data:_0x4a80d4}=_0x27b53f;return _0x4a80d4&&_0x5a93('0x1a')===_0x4a80d4[_0x5a93('0x20')]?_0x4a80d4[_0x5a93('0x0')][0x0][_0x5a93('0xd')]?{'type':_0x5a93('0x1e'),'content':_0xc74177(_0x3fcef2,_0x5a93('0x19'),_0x4a80d4[_0x5a93('0x0')][0x0][_0x5a93('0x11')][_0x5a93('0x14')]())}:{'type':_0x5a93('0x1e'),'content':_0xc74177(_0x3fcef2,'*Remove\x20format:*\x20%0',_0x4a80d4['commandParams'][0x0]['styleName'][_0x5a93('0x14')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39c2=['filter','insert','plugins','suggestion','element','tableRow','removeTableColumn','TrackChangesEditing','tableCell','highest','removeTableRow','data','_descriptionFactory','createTableWalker','end','map','deletion','insertTableRowBelow','registerDescriptionCallback','_getCoordsForCells','type','insertTableRowAbove','createRangeOn','markMultiRangeDeletion','batch','insertion','min','commands','push','substr','length','$textProxy','editor','subType','createPositionAt','fromRange','low','registerCustomCallback','insertTableColumnLeft','rootName','insertTableColumnRight','cell','model','ELEMENT_TABLE_ROW','downcastDispatcher','createRangeIn','afterInit','getSelectionAffectedTableCells','execute','discard','accept','registerElementLabel','tableColumn','tablePaste','addRange','ELEMENT_TABLE_ROW_WITH_TEXT','minColumn','getFirstRange','nodeAfter','oldRange','name','from','root','maxRow','getChanges','colspan','TableUtils','last','getSuggestion','findAncestor','options','nodeBefore','position','isInContent','table','maxColumn','some','first','detach','hasAttribute','max','refresh','getContainedElement','ELEMENT_TABLE_COLUMN','_tableSuggestions','_getSuggestionCoords','start','order','getCellLocation','_splitMarkerName','getColumnIndexes','getRanges','above','$graveyard','ELEMENT_TABLE_COLUMN_WITH_TEXT','isEqual','startsWith','isIntersectingWithRange','TableEditing','enqueueChange','*Insert:*\x20%0','values','has','MIN_SAFE_INTEGER','getItems','*Remove:*\x20%0','getAttribute','addMarker:suggestion','setSelection','span','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','addClass','differ','locale','writer','ELEMENT_TABLE','change','toLowerCase','get','insertTable','enableCommand','rowspan','toViewElement','markMultiRangeInsertion','_setupColumnsRowsFixing','left','change:data','MAX_SAFE_INTEGER','classes','selection','document','join','isTouching'];(function(_0x25e6e9,_0x39c2ff){const _0x1aac08=function(_0x549903){while(--_0x549903){_0x25e6e9['push'](_0x25e6e9['shift']());}};_0x1aac08(++_0x39c2ff);}(_0x39c2,0x103));const _0x1aac=function(_0x25e6e9,_0x39c2ff){_0x25e6e9=_0x25e6e9-0x0;let _0x1aac08=_0x39c2[_0x25e6e9];return _0x1aac08;};import{Plugin as _0x1c2dd1}from'ckeditor5/src/core';import{LiveRange as _0x194adf}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3cc5f2}from'ckeditor5/src/widget';import{getTranslation as _0x244273}from'../utils/common-translations';export default class wt extends _0x1c2dd1{constructor(_0x68fa3f){super(_0x68fa3f),this['_tablePostFixingSubtypes']=[_0x1aac('0xe'),_0x1aac('0x3d')],this[_0x1aac('0x5d')]=new Set();}[_0x1aac('0x37')](){const _0x4bcc92=this['editor'],_0x4089cd=_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x5')];if(!_0x4bcc92[_0x1aac('0xb')][_0x1aac('0x6f')](_0x1aac('0x6b')))return;const _0x467dfa=_0x4bcc92[_0x1aac('0x7b')],_0x38a711=_0x4bcc92[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x10')),_0x1c9e22=_0x4bcc92[_0x1aac('0xb')]['get'](_0x1aac('0x4b'));_0x38a711[_0x1aac('0x15')][_0x1aac('0x3c')](_0x1aac('0x53'),_0x4799ee=>_0x244273(_0x467dfa,_0x1aac('0x7d'),_0x4799ee)),this[_0x1aac('0x0')](),_0x38a711[_0x1aac('0x82')](_0x1aac('0x81')),_0x38a711[_0x1aac('0x82')]('selectTableRow'),_0x38a711[_0x1aac('0x82')]('selectTableColumn');for(const _0x357d8a of[_0x1aac('0x1e'),_0x1aac('0x1a')]){const _0x236451=_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')](_0x357d8a);_0x38a711[_0x1aac('0x82')](_0x357d8a,_0x467b8f=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x2d4ba6=>{_0x467b8f();const _0xd9ee05=_0x1aac('0x65')===_0x236451[_0x1aac('0x60')],_0x2ed627=_0x1c9e22[_0x1aac('0x38')](_0x4089cd),_0xa0cbdb=_0x1c9e22['getRowIndexes'](_0x2ed627),_0x50b8da=_0xd9ee05?_0xa0cbdb[_0x1aac('0x56')]-0x1:_0xa0cbdb['last']+0x1,_0x348524=_0x2ed627[0x0][_0x1aac('0x4e')](_0x1aac('0x53')),_0x1c67ef=_0x1c9e22['createTableWalker'](_0x348524,{'startRow':_0x50b8da,'endRow':_0x50b8da}),_0x339a05=Array[_0x1aac('0x46')](_0x1c67ef)[_0x1aac('0x18')](_0x5846d2=>_0x2d4ba6[_0x1aac('0x1f')](_0x5846d2[_0x1aac('0x32')]));_0x38a711[_0x1aac('0x85')](_0x339a05,_0x1aac('0xe'));});});}for(const _0x4ea058 of[_0x1aac('0x2f'),_0x1aac('0x31')]){const _0x3f1b03=_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')](_0x4ea058);_0x38a711['enableCommand'](_0x4ea058,_0x1a6677=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x4fd324=>{_0x1a6677();const _0xbecba9=_0x1aac('0x1')===_0x3f1b03[_0x1aac('0x60')],_0x3e39f5=_0x1c9e22['getSelectionAffectedTableCells'](_0x4089cd),_0xcdc16d=_0x1c9e22['getColumnIndexes'](_0x3e39f5),_0x117702=_0xbecba9?_0xcdc16d['first']-0x1:_0xcdc16d[_0x1aac('0x4c')]+0x1,_0x3b46ea=_0x3e39f5[0x0][_0x1aac('0x4e')](_0x1aac('0x53')),_0xb84ded=_0x1c9e22[_0x1aac('0x16')](_0x3b46ea,{'startRow':0x0,'column':_0x117702,'includeAllSlots':!0x1}),_0x32b36d=Array['from'](_0xb84ded)[_0x1aac('0x18')](_0x472d36=>_0x4fd324[_0x1aac('0x1f')](_0x472d36['cell']));_0x38a711[_0x1aac('0x85')](_0x32b36d,_0x1aac('0x3d'));});});}for(const _0x408250 of['removeTableRow',_0x1aac('0xf')]){const _0x26adec=_0x408250['substr'](0xb),_0x3d9e36=_0x26adec[_0x1aac('0x7f')](),_0x193727=_0x3d9e36[_0x1aac('0x26')](0x0,0x3)+'span',_0x4140a3=_0x1aac('0x53')+_0x26adec,_0x43ffe0=_0x1aac('0x23')+_0x26adec,_0x55bc96='max'+_0x26adec;_0x38a711['enableCommand'](_0x408250,()=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x1684fe=>{const _0x54a309=_0x1c9e22[_0x1aac('0x38')](_0x4089cd),_0x2c60fb=_0x54a309[0x0]['findAncestor'](_0x1aac('0x53'));let _0x4861d1;if(_0x1aac('0x13')==_0x408250){const _0x43bd07=_0x1c9e22['getRowIndexes'](_0x54a309);_0x4861d1={'startRow':_0x43bd07[_0x1aac('0x56')],'endRow':_0x43bd07[_0x1aac('0x4c')],'includeAllSlots':!0x0};}else{const _0x4b45ab=_0x1c9e22[_0x1aac('0x63')](_0x54a309);_0x4861d1={'startColumn':_0x4b45ab[_0x1aac('0x56')],'endColumn':_0x4b45ab[_0x1aac('0x4c')],'includeAllSlots':!0x0};}const _0x3d140a=_0x1c9e22[_0x1aac('0x16')](_0x2c60fb,_0x4861d1),_0x1b24d5=Array['from'](_0x3d140a)[_0x1aac('0x18')](({cell:_0x50987f})=>_0x50987f),_0x1b6f62=se(_0x1b24d5['filter'](_0x3ac970=>_0x3ac970[_0x1aac('0x58')](_0x193727))),_0x36c6e6=se(_0x1b24d5[_0x1aac('0x9')](_0x88b6ac=>!_0x88b6ac['hasAttribute'](_0x193727)))[_0x1aac('0x18')](_0x22c4ba=>_0x1684fe[_0x1aac('0x1f')](_0x22c4ba)),_0x3ef2a0=_0x38a711[_0x1aac('0x20')](_0x36c6e6,_0x4140a3);if(_0x3ef2a0&&('tableRow'==_0x3ef2a0[_0x1aac('0x2a')]||'tableColumn'==_0x3ef2a0['subType'])){const _0x501618=this[_0x1aac('0x5e')](_0x3ef2a0);for(const _0x46bc7e of _0x1b6f62){const _0x432761=_0x1684fe[_0x1aac('0x1f')](_0x46bc7e),_0x2fabc1=_0x1c9e22[_0x1aac('0x61')](_0x46bc7e),_0x3eec01=_0x46bc7e['getAttribute'](_0x193727)-0x1,_0x673ed=_0x501618[_0x43ffe0],_0xe8075=_0x501618[_0x55bc96];_0x673ed<=_0x2fabc1[_0x3d9e36]&&_0x2fabc1[_0x3d9e36]+_0x3eec01<=_0xe8075&&_0x3ef2a0[_0x1aac('0x3f')](_0x432761);}}});});}function _0x2e89fa(_0x2f1215){const _0x187cad=Array[_0x1aac('0x46')](_0x4089cd['getRanges']())['map'](_0x37ef59=>_0x194adf[_0x1aac('0x2c')](_0x37ef59));_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x310c55=>{const _0x5bb6ac=_0x310c55[_0x1aac('0x21')];_0x2f1215=_0x2f1215['filter'](_0x55a533=>_0x1aac('0x66')!=_0x55a533[_0x1aac('0x47')][_0x1aac('0x30')]),_0x310c55['setSelection'](_0x2f1215),_0x4bcc92[_0x1aac('0x24')][_0x1aac('0x80')]('removeTableRow')[_0x1aac('0x5a')](),_0x4bcc92[_0x1aac('0x39')](_0x1aac('0x13'),{'forceDefaultExecution':!0x0}),_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6c')](()=>{_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x6c')](_0x5bb6ac,_0x1fa6c4=>{const _0x39c50b=_0x187cad['filter'](_0x1a10e3=>_0x1aac('0x66')!=_0x1a10e3[_0x1aac('0x47')][_0x1aac('0x30')]);_0x39c50b[_0x1aac('0x27')]>0x0&&_0x1fa6c4[_0x1aac('0x75')](_0x39c50b);for(const _0x43ca55 of _0x187cad)_0x43ca55[_0x1aac('0x57')]();});});});}function _0x2a7d70(_0x37d9ef){_0x4bcc92[_0x1aac('0x33')][_0x1aac('0x7e')](_0x2ee209=>{const _0x403526=Array[_0x1aac('0x46')](_0x4089cd[_0x1aac('0x64')]())[_0x1aac('0x18')](_0x371793=>_0x194adf[_0x1aac('0x2c')](_0x371793)),_0x5505ad=[];for(const _0xeb8548 of _0x37d9ef)for(const _0x2859c8 of _0xeb8548[_0x1aac('0x71')]({'shallow':!0x0}))_0x5505ad[_0x1aac('0x25')](_0x2859c8);for(const _0x25b62c of _0x5505ad)_0x1aac('0x66')!=_0x25b62c['root'][_0x1aac('0x30')]&&(_0x2ee209[_0x1aac('0x75')](_0x2ee209[_0x1aac('0x2b')](_0x25b62c,0x0)),_0x4bcc92[_0x1aac('0x24')]['get']('removeTableColumn')['refresh'](),_0x4bcc92[_0x1aac('0x39')](_0x1aac('0xf'),{'forceDefaultExecution':!0x0}));const _0x15eb9a=_0x403526[_0x1aac('0x9')](_0x26d20a=>_0x1aac('0x66')!=_0x26d20a['root']['rootName']);_0x15eb9a[_0x1aac('0x27')]>0x0&&_0x2ee209[_0x1aac('0x75')](_0x15eb9a);for(const _0x121747 of _0x403526)_0x121747[_0x1aac('0x57')]();});}function _0x37fffc(_0x1e8df6,_0x26a959){return _0x26a959['every'](_0x1eefc3=>_0x1e8df6[_0x1aac('0x55')](_0x39a76f=>_0x39a76f['end'][_0x1aac('0x68')](_0x1eefc3[_0x1aac('0x5f')])||_0x1eefc3[_0x1aac('0x17')][_0x1aac('0x68')](_0x39a76f[_0x1aac('0x5f')])));}function _0x42994d(_0xccda5c,_0x14f2ab){return _0xccda5c[_0x1aac('0x55')](_0x219c0f=>_0x14f2ab[_0x1aac('0x55')](_0x334608=>_0x219c0f[_0x1aac('0x17')][_0x1aac('0x8')](_0x334608[_0x1aac('0x5f')])));}_0x4bcc92[_0x1aac('0x14')][_0x1aac('0x35')]['on'](_0x1aac('0x74'),(_0x116b01,_0x485cef,_0x4321fb)=>{if(!_0x4321fb[_0x1aac('0x4f')]['showSuggestionHighlights'])return;const _0x28c640=_0x485cef['item'];if(!_0x28c640)return;const _0x2e9002=_0x4321fb['mapper'][_0x1aac('0x84')](_0x28c640);function _0x32f44b(_0x81b509){return Array['isArray'](_0x81b509)?_0x81b509:[_0x81b509];}_0x2e9002&&'tableCell'===_0x28c640[_0x1aac('0x45')]&&_0x3cc5f2(_0x2e9002,_0x4321fb[_0x1aac('0x7c')],(_0x1254b9,_0x27c4f3,_0x19c400)=>_0x19c400[_0x1aac('0x79')](_0x32f44b(_0x27c4f3[_0x1aac('0x4')]),_0x1254b9),(_0x594568,_0x2f1b96,_0x4db2c7)=>_0x4db2c7['removeClass'](_0x32f44b(_0x2f1b96[_0x1aac('0x4')]),_0x594568));},{'priority':_0x1aac('0x12')}),_0x38a711['_descriptionFactory']['registerDescriptionCallback'](_0x27a881=>{if('insertion'!=_0x27a881[_0x1aac('0x1d')]&&_0x1aac('0x19')!=_0x27a881[_0x1aac('0x1d')])return;const _0x281eab=_0x27a881[_0x1aac('0x5b')]();if(null!=_0x281eab&&_0x281eab['is'](_0x1aac('0xd'),'table')){if(_0x1aac('0x22')==_0x27a881['type']){const _0x220d45=_0x27a881['getItems']()[_0x1aac('0x9')](_0x2f1f6d=>_0x2f1f6d['is'](_0x1aac('0x28')))['map'](_0x4d2400=>_0x4d2400[_0x1aac('0x14')]);if(_0x220d45['length'])return{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x220d45[_0x1aac('0x7')]('\x20')+'\x22'))};}if(_0x1aac('0x19')==_0x27a881['type']){const _0x27fc19=_0x27a881['getItems']()[_0x1aac('0x9')](_0x5c992f=>_0x5c992f['is'](_0x1aac('0x28')))['map'](_0x77855d=>_0x77855d[_0x1aac('0x14')]);if(_0x27fc19['length'])return{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27fc19[_0x1aac('0x7')]('\x20')+'\x22'))};}}}),_0x38a711[_0x1aac('0x15')][_0x1aac('0x1b')](_0x5b8382=>{if('tableRow'==_0x5b8382[_0x1aac('0x2a')]){const _0x17a700=_0x5b8382[_0x1aac('0x71')]()[_0x1aac('0x9')](_0x571ff0=>_0x571ff0['is'](_0x1aac('0x28')))[_0x1aac('0x18')](_0x3e396e=>_0x3e396e['data']),_0x5a7703=this['_getSuggestionCoords'](_0x5b8382),_0x49549d=_0x5a7703[_0x1aac('0x48')]-_0x5a7703['minRow']+0x1;if(_0x1aac('0x22')==_0x5b8382[_0x1aac('0x1d')])return _0x17a700[_0x1aac('0x27')]?{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,'*Insert:*\x20%0',_0x244273(_0x467dfa,_0x1aac('0x40'),[_0x49549d,'\x22'+_0x17a700[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x34'),_0x49549d))};if('deletion'==_0x5b8382[_0x1aac('0x1d')])return _0x17a700[_0x1aac('0x27')]?{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,'*Remove:*\x20%0',_0x244273(_0x467dfa,_0x1aac('0x40'),[_0x49549d,'\x22'+_0x17a700[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x34'),_0x49549d))};}if('tableColumn'==_0x5b8382['subType']){const _0x2c73c9=_0x5b8382[_0x1aac('0x71')]()[_0x1aac('0x9')](_0x5c71aa=>_0x5c71aa['is']('$textProxy'))[_0x1aac('0x18')](_0x31179d=>_0x31179d['data']),_0x154d8c=this[_0x1aac('0x5e')](_0x5b8382),_0x20f1bf=_0x154d8c[_0x1aac('0x54')]-_0x154d8c[_0x1aac('0x41')]+0x1;if(_0x1aac('0x22')==_0x5b8382['type'])return _0x2c73c9['length']?{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x67'),[_0x20f1bf,'\x22'+_0x2c73c9[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x22'),'content':_0x244273(_0x467dfa,_0x1aac('0x6d'),_0x244273(_0x467dfa,_0x1aac('0x5c'),_0x20f1bf))};if(_0x1aac('0x19')==_0x5b8382['type'])return _0x2c73c9[_0x1aac('0x27')]?{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x67'),[_0x20f1bf,'\x22'+_0x2c73c9[_0x1aac('0x7')]('\x20')+'\x22']))}:{'type':_0x1aac('0x19'),'content':_0x244273(_0x467dfa,_0x1aac('0x72'),_0x244273(_0x467dfa,_0x1aac('0x5c'),_0x20f1bf))};}}),_0x38a711['_suggestionFactory']['registerCustomCallback'](_0x1aac('0x22'),'tableRow',_0x1aac('0x3a'),_0x2e89fa),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')](_0x1aac('0x19'),_0x1aac('0xe'),_0x1aac('0x3b'),_0x2e89fa),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')]('insertion',_0x1aac('0x3d'),_0x1aac('0x3a'),_0x2a7d70),_0x38a711['_suggestionFactory']['registerCustomCallback'](_0x1aac('0x19'),_0x1aac('0x3d'),'accept',_0x2a7d70),_0x38a711['_suggestionFactory'][_0x1aac('0x2e')](_0x1aac('0x22'),'tableColumn',_0x1aac('0x7'),_0x37fffc),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')](_0x1aac('0x19'),_0x1aac('0x3d'),_0x1aac('0x7'),_0x37fffc),_0x38a711[_0x1aac('0x77')]['registerCustomCallback'](_0x1aac('0x22'),_0x1aac('0xe'),_0x1aac('0x7'),_0x42994d),_0x38a711[_0x1aac('0x77')][_0x1aac('0x2e')]('deletion',_0x1aac('0xe'),'join',_0x42994d);}[_0x1aac('0x78')](){const _0x2e5e85=this[_0x1aac('0x29')],_0x5d9de6=_0x2e5e85[_0x1aac('0x33')]['document']['selection'];return(_0x594346,_0x5b27ef)=>{_0x2e5e85[_0x1aac('0x33')]['change'](_0x17985c=>{const {commandName:_0x4320ee,commandParams:_0x3201e8}=_0x5b27ef;let _0x542ef4=_0x594346[0x0][_0x1aac('0x17')][_0x1aac('0x50')];_0x3201e8&&_0x3201e8[0x0]&&!0x1===_0x3201e8[0x0]['forceValue']&&(_0x542ef4=_0x594346[0x0][_0x1aac('0x5f')][_0x1aac('0x43')]);const _0x238e61=_0x17985c[_0x1aac('0x36')](_0x542ef4);if(_0x1aac('0x66')==_0x238e61[_0x1aac('0x47')][_0x1aac('0x30')])return;const _0x2480b7=Array[_0x1aac('0x46')](_0x5d9de6[_0x1aac('0x64')]())['map'](_0x10c469=>_0x194adf['fromRange'](_0x10c469));_0x17985c[_0x1aac('0x75')](_0x238e61),_0x2e5e85[_0x1aac('0x24')][_0x1aac('0x80')](_0x4320ee)['refresh'](),_0x3201e8[_0x1aac('0x25')]({'forceDefaultExecution':!0x0}),_0x2e5e85['execute'](_0x4320ee,..._0x3201e8);const _0x582deb=_0x2480b7[_0x1aac('0x9')](_0x56437f=>_0x1aac('0x66')!=_0x56437f['root']['rootName']);_0x582deb[_0x1aac('0x27')]>0x0&&_0x17985c[_0x1aac('0x75')](_0x582deb);for(const _0x3cadd4 of _0x2480b7)_0x3cadd4[_0x1aac('0x57')]();});};}[_0x1aac('0x1c')](_0xd780aa){const _0x46624d=this['editor']['plugins'][_0x1aac('0x80')](_0x1aac('0x4b'));let _0x10e1ed=Number[_0x1aac('0x3')],_0x2f7795=Number[_0x1aac('0x70')],_0x4e3de6=Number[_0x1aac('0x3')],_0x51e699=Number[_0x1aac('0x70')];for(const _0x5af932 of _0xd780aa){if(_0x1aac('0x66')==_0x5af932[_0x1aac('0x47')][_0x1aac('0x30')])continue;const {row:_0x3c2be5,column:_0x1a8dfa}=_0x46624d['getCellLocation'](_0x5af932),_0x264916=_0x5af932['hasAttribute'](_0x1aac('0x83'))?_0x5af932[_0x1aac('0x73')](_0x1aac('0x83'))-0x1:0x0,_0x9032b=_0x5af932[_0x1aac('0x58')](_0x1aac('0x4a'))?_0x5af932[_0x1aac('0x73')](_0x1aac('0x4a'))-0x1:0x0;_0x10e1ed=_0x3c2be5<_0x10e1ed?_0x3c2be5:_0x10e1ed,_0x2f7795=_0x3c2be5+_0x264916>_0x2f7795?_0x3c2be5+_0x264916:_0x2f7795,_0x4e3de6=_0x1a8dfa<_0x4e3de6?_0x1a8dfa:_0x4e3de6,_0x51e699=_0x1a8dfa+_0x9032b>_0x51e699?_0x1a8dfa+_0x9032b:_0x51e699;}return{'minRow':_0x10e1ed,'maxRow':_0x2f7795,'minColumn':_0x4e3de6,'maxColumn':_0x51e699};}[_0x1aac('0x0')](){const _0x4f2f66=this[_0x1aac('0x29')],_0x59f579=_0x4f2f66[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x10')),_0x171882=_0x4f2f66[_0x1aac('0xb')][_0x1aac('0x80')](_0x1aac('0x4b'));_0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')]['on'](_0x1aac('0x2'),()=>{const _0x16a8eb=Array[_0x1aac('0x46')](_0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x7a')]['getChangedMarkers']());for(const {name:_0x430929,data:_0x10c9da}of _0x16a8eb){const {group:_0x69ab46,id:_0x38a0a7,subType:_0x1da8c7}=_0x59f579[_0x1aac('0x62')](_0x430929);if(_0x1aac('0xc')!=_0x69ab46)continue;if(null!=_0x10c9da[_0x1aac('0x44')])continue;const _0xc09c5e=_0x59f579[_0x1aac('0x4d')](_0x38a0a7);this['_tablePostFixingSubtypes']['includes'](_0x1da8c7)&&this['_tableSuggestions']['add'](_0xc09c5e);}},{'priority':_0x1aac('0x2d')});const _0x10676e=(_0x488e79,_0x149571)=>{let _0x1c164f=!0x1;const _0x16a424=_0x149571[_0x1aac('0x1f')](_0x488e79),_0x367054=_0x488e79[_0x1aac('0x4e')](_0x1aac('0x53')),_0x44ff8e=_0x171882[_0x1aac('0x61')](_0x488e79);for(const _0x26833e of this['_tableSuggestions']){const _0x35305f=_0x26833e[_0x1aac('0x2a')],_0x27fba3=_0x35305f[_0x1aac('0x69')](_0x1aac('0x3e')),_0x432c94=_0x35305f[_0x1aac('0x26')](_0x27fba3?0xa:0x5),_0x440b39=_0x432c94['toLowerCase'](),_0x3798e8=_0x440b39['substr'](0x0,0x3)+_0x1aac('0x76'),_0x501644=_0x1aac('0x23')+_0x432c94,_0x4931af=_0x1aac('0x59')+_0x432c94;if(!_0x26833e[_0x1aac('0x52')])continue;if(_0x367054!=_0x26833e[_0x1aac('0x42')]()[_0x1aac('0x5f')][_0x1aac('0x4e')](_0x1aac('0x53')))continue;if(_0x26833e[_0x1aac('0x6a')](_0x16a424))continue;const _0x3d59ab=_0x488e79['hasAttribute'](_0x3798e8)?_0x488e79[_0x1aac('0x73')](_0x3798e8)-0x1:0x0,_0x1ba9f2=this[_0x1aac('0x5e')](_0x26833e),_0x19b365=_0x1ba9f2[_0x501644],_0x26c5d7=_0x1ba9f2[_0x4931af];_0x19b365<=_0x44ff8e[_0x440b39]&&_0x44ff8e[_0x440b39]+_0x3d59ab<=_0x26c5d7&&(_0x26833e[_0x1aac('0x3f')](_0x16a424),_0x1c164f=!0x0);}return _0x1c164f;};_0x4f2f66['model'][_0x1aac('0x6')]['registerPostFixer'](_0x43cfc9=>{let _0x1c2d39=!0x1;for(const _0x47a711 of _0x4f2f66[_0x1aac('0x33')][_0x1aac('0x6')][_0x1aac('0x7a')][_0x1aac('0x49')]())if(_0x1aac('0xa')==_0x47a711[_0x1aac('0x1d')]){if('tableRow'==_0x47a711[_0x1aac('0x45')])for(const _0x55cb73 of _0x47a711[_0x1aac('0x51')]['nodeAfter']['getChildren']())_0x1c2d39=_0x1c2d39||_0x10676e(_0x55cb73,_0x43cfc9);else _0x1aac('0x11')==_0x47a711[_0x1aac('0x45')]&&(_0x1c2d39=_0x1c2d39||_0x10676e(_0x47a711[_0x1aac('0x51')]['nodeAfter'],_0x43cfc9));}return _0x1c2d39;});}[_0x1aac('0x5e')](_0x2a3ca1){return this['_getCoordsForCells'](_0x2a3ca1[_0x1aac('0x64')]()[_0x1aac('0x18')](_0x4edff4=>_0x4edff4[_0x1aac('0x5f')][_0x1aac('0x43')]));}}function se(_0x550116){return Array[_0x1aac('0x46')](new Set(_0x550116)[_0x1aac('0x6e')]());}
|
|
23
|
+
const _0xfead=['_suggestionFactory','join','showSuggestionHighlights','rootName','$graveyard','maxRow','createPositionAt','accept','createTableWalker','ELEMENT_TABLE_ROW','$textProxy','push','item','_acceptFormatSuggestionCallbackFactory','MAX_SAFE_INTEGER','isIntersectingWithRange','differ','model','locale','TableEditing','getColumnIndexes','batch','tableRow','_descriptionFactory','substr','removeClass','max','forceValue','span','plugins','registerDescriptionCallback','_tablePostFixingSubtypes','createRangeOn','suggestion','above','registerPostFixer','minColumn','_getSuggestionCoords','getChangedMarkers','type','ELEMENT_TABLE_ROW_WITH_TEXT','end','ELEMENT_TABLE_COLUMN_WITH_TEXT','rowspan','MIN_SAFE_INTEGER','tableColumn','downcastDispatcher','change:data','execute','_getCoordsForCells','getItems','insertTableColumnRight','classes','getSuggestion','TableUtils','ELEMENT_TABLE_WITH_TEXT','change','registerCustomCallback','document','toViewElement','length','selectTableColumn','getSelectionAffectedTableCells','insert','start','*Remove:*\x20%0','oldRange','last','data','filter','order','from','enableCommand','removeTableColumn','name','mapper','isTouching','min','writer','getChanges','has','_tableSuggestions','setSelection','tableCell','TrackChangesEditing','some','isArray','detach','getAttribute','includes','editor','root','commands','selectTableRow','*Insert:*\x20%0','findAncestor','afterInit','table','map','values','removeTableRow','isEqual','discard','first','options','_setupColumnsRowsFixing','colspan','createRangeIn','subType','getRanges','nodeAfter','selection','addRange','position','deletion','get','addMarker:suggestion','cell','insertion','ELEMENT_TABLE_COLUMN','nodeBefore','getCellLocation','isInContent','markMultiRangeInsertion','insertTableRowAbove','refresh','add','toLowerCase','enqueueChange','getChildren','getFirstRange','hasAttribute','registerElementLabel','fromRange','maxColumn','minRow'];(function(_0x4e39d9,_0xfeadf0){const _0x59c7d0=function(_0x375a82){while(--_0x375a82){_0x4e39d9['push'](_0x4e39d9['shift']());}};_0x59c7d0(++_0xfeadf0);}(_0xfead,0x1ac));const _0x59c7=function(_0x4e39d9,_0xfeadf0){_0x4e39d9=_0x4e39d9-0x0;let _0x59c7d0=_0xfead[_0x4e39d9];return _0x59c7d0;};import{Plugin as _0x4654fb}from'ckeditor5/src/core';import{LiveRange as _0x1534f3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x191d1b}from'ckeditor5/src/widget';import{getTranslation as _0x526b70}from'../utils/common-translations';export default class wt extends _0x4654fb{constructor(_0x3b9c19){super(_0x3b9c19),this[_0x59c7('0xb')]=[_0x59c7('0x2'),_0x59c7('0x19')],this['_tableSuggestions']=new Set();}[_0x59c7('0x4c')](){const _0x446fb7=this[_0x59c7('0x46')],_0x100ad9=_0x446fb7[_0x59c7('0x85')][_0x59c7('0x26')][_0x59c7('0x5b')];if(!_0x446fb7[_0x59c7('0x9')][_0x59c7('0x3c')](_0x59c7('0x87')))return;const _0x174b54=_0x446fb7[_0x59c7('0x86')],_0x1e7cc6=_0x446fb7[_0x59c7('0x9')][_0x59c7('0x5f')](_0x59c7('0x40')),_0x564a7a=_0x446fb7['plugins']['get']('TableUtils');_0x1e7cc6[_0x59c7('0x3')][_0x59c7('0x70')](_0x59c7('0x4d'),_0x6f873e=>_0x526b70(_0x174b54,'ELEMENT_TABLE',_0x6f873e)),this[_0x59c7('0x55')](),_0x1e7cc6['enableCommand']('insertTable'),_0x1e7cc6[_0x59c7('0x34')](_0x59c7('0x49')),_0x1e7cc6[_0x59c7('0x34')](_0x59c7('0x29'));for(const _0x178e92 of[_0x59c7('0x68'),'insertTableRowBelow']){const _0x312bc9=_0x446fb7[_0x59c7('0x48')][_0x59c7('0x5f')](_0x178e92);_0x1e7cc6[_0x59c7('0x34')](_0x178e92,_0x1403f2=>{_0x446fb7['model'][_0x59c7('0x24')](_0x4e28c0=>{_0x1403f2();const _0x4e90cb=_0x59c7('0xe')===_0x312bc9['order'],_0x391140=_0x564a7a[_0x59c7('0x2a')](_0x100ad9),_0x10407e=_0x564a7a['getRowIndexes'](_0x391140),_0x4fe817=_0x4e90cb?_0x10407e['first']-0x1:_0x10407e[_0x59c7('0x2f')]+0x1,_0x539023=_0x391140[0x0][_0x59c7('0x4b')](_0x59c7('0x4d')),_0x17cf28=_0x564a7a[_0x59c7('0x7c')](_0x539023,{'startRow':_0x4fe817,'endRow':_0x4fe817}),_0x303ae0=Array['from'](_0x17cf28)['map'](_0x48f019=>_0x4e28c0[_0x59c7('0xc')](_0x48f019[_0x59c7('0x61')]));_0x1e7cc6[_0x59c7('0x67')](_0x303ae0,_0x59c7('0x2'));});});}for(const _0x4a3f14 of['insertTableColumnLeft',_0x59c7('0x1f')]){const _0x37675f=_0x446fb7[_0x59c7('0x48')][_0x59c7('0x5f')](_0x4a3f14);_0x1e7cc6['enableCommand'](_0x4a3f14,_0x33a576=>{_0x446fb7[_0x59c7('0x85')][_0x59c7('0x24')](_0x35b4c4=>{_0x33a576();const _0xad6402='left'===_0x37675f[_0x59c7('0x32')],_0xc46c44=_0x564a7a['getSelectionAffectedTableCells'](_0x100ad9),_0x30fcd3=_0x564a7a[_0x59c7('0x0')](_0xc46c44),_0x2b44d9=_0xad6402?_0x30fcd3['first']-0x1:_0x30fcd3[_0x59c7('0x2f')]+0x1,_0x1d3af2=_0xc46c44[0x0][_0x59c7('0x4b')](_0x59c7('0x4d')),_0x51e2af=_0x564a7a[_0x59c7('0x7c')](_0x1d3af2,{'startRow':0x0,'column':_0x2b44d9,'includeAllSlots':!0x1}),_0x3c4398=Array[_0x59c7('0x33')](_0x51e2af)[_0x59c7('0x4e')](_0x289d4c=>_0x35b4c4['createRangeOn'](_0x289d4c[_0x59c7('0x61')]));_0x1e7cc6[_0x59c7('0x67')](_0x3c4398,_0x59c7('0x19'));});});}for(const _0x32f886 of[_0x59c7('0x50'),'removeTableColumn']){const _0x99e87f=_0x32f886['substr'](0xb),_0x1b2f0d=_0x99e87f[_0x59c7('0x6b')](),_0xfd7c5b=_0x1b2f0d[_0x59c7('0x4')](0x0,0x3)+_0x59c7('0x8'),_0x46f82d=_0x59c7('0x4d')+_0x99e87f,_0x9afee8=_0x59c7('0x39')+_0x99e87f,_0x15aa23=_0x59c7('0x6')+_0x99e87f;_0x1e7cc6[_0x59c7('0x34')](_0x32f886,()=>{_0x446fb7[_0x59c7('0x85')][_0x59c7('0x24')](_0x5438c0=>{const _0x4151d7=_0x564a7a[_0x59c7('0x2a')](_0x100ad9),_0x554b3b=_0x4151d7[0x0][_0x59c7('0x4b')](_0x59c7('0x4d'));let _0x5cb2e6;if(_0x59c7('0x50')==_0x32f886){const _0x2c150b=_0x564a7a['getRowIndexes'](_0x4151d7);_0x5cb2e6={'startRow':_0x2c150b['first'],'endRow':_0x2c150b['last'],'includeAllSlots':!0x0};}else{const _0x35b426=_0x564a7a['getColumnIndexes'](_0x4151d7);_0x5cb2e6={'startColumn':_0x35b426[_0x59c7('0x53')],'endColumn':_0x35b426[_0x59c7('0x2f')],'includeAllSlots':!0x0};}const _0x1c51cd=_0x564a7a[_0x59c7('0x7c')](_0x554b3b,_0x5cb2e6),_0x1f2e2a=Array['from'](_0x1c51cd)[_0x59c7('0x4e')](({cell:_0x314853})=>_0x314853),_0x2f58e0=se(_0x1f2e2a[_0x59c7('0x31')](_0x34c0a8=>_0x34c0a8[_0x59c7('0x6f')](_0xfd7c5b))),_0x22e0bc=se(_0x1f2e2a[_0x59c7('0x31')](_0x31dee1=>!_0x31dee1[_0x59c7('0x6f')](_0xfd7c5b)))[_0x59c7('0x4e')](_0x347a5e=>_0x5438c0[_0x59c7('0xc')](_0x347a5e)),_0x1a070f=_0x1e7cc6['markMultiRangeDeletion'](_0x22e0bc,_0x46f82d);if(_0x1a070f&&(_0x59c7('0x2')==_0x1a070f[_0x59c7('0x58')]||'tableColumn'==_0x1a070f[_0x59c7('0x58')])){const _0x1f43a3=this[_0x59c7('0x11')](_0x1a070f);for(const _0x463852 of _0x2f58e0){const _0xe1178b=_0x5438c0[_0x59c7('0xc')](_0x463852),_0x2b9d1c=_0x564a7a[_0x59c7('0x65')](_0x463852),_0x2fd818=_0x463852['getAttribute'](_0xfd7c5b)-0x1,_0x1351cf=_0x1f43a3[_0x9afee8],_0x52ff1e=_0x1f43a3[_0x15aa23];_0x1351cf<=_0x2b9d1c[_0x1b2f0d]&&_0x2b9d1c[_0x1b2f0d]+_0x2fd818<=_0x52ff1e&&_0x1a070f[_0x59c7('0x5c')](_0xe1178b);}}});});}function _0x2661f0(_0x4f2cc6){const _0xdce391=Array[_0x59c7('0x33')](_0x100ad9[_0x59c7('0x59')]())[_0x59c7('0x4e')](_0x4418c2=>_0x1534f3[_0x59c7('0x71')](_0x4418c2));_0x446fb7[_0x59c7('0x85')]['change'](_0x3eb95b=>{const _0x1a6843=_0x3eb95b[_0x59c7('0x1')];_0x4f2cc6=_0x4f2cc6[_0x59c7('0x31')](_0x2dd5a2=>_0x59c7('0x78')!=_0x2dd5a2[_0x59c7('0x47')][_0x59c7('0x77')]),_0x3eb95b[_0x59c7('0x3e')](_0x4f2cc6),_0x446fb7[_0x59c7('0x48')][_0x59c7('0x5f')]('removeTableRow')[_0x59c7('0x69')](),_0x446fb7[_0x59c7('0x1c')](_0x59c7('0x50'),{'forceDefaultExecution':!0x0}),_0x446fb7['model']['enqueueChange'](()=>{_0x446fb7[_0x59c7('0x85')][_0x59c7('0x6c')](_0x1a6843,_0x363b03=>{const _0x5c04f0=_0xdce391['filter'](_0x2cdbdc=>_0x59c7('0x78')!=_0x2cdbdc['root'][_0x59c7('0x77')]);_0x5c04f0['length']>0x0&&_0x363b03['setSelection'](_0x5c04f0);for(const _0x4a1553 of _0xdce391)_0x4a1553[_0x59c7('0x43')]();});});});}function _0x43b253(_0x58ac6b){_0x446fb7['model'][_0x59c7('0x24')](_0x4f7499=>{const _0x1c76c4=Array[_0x59c7('0x33')](_0x100ad9[_0x59c7('0x59')]())[_0x59c7('0x4e')](_0x4c4f0a=>_0x1534f3['fromRange'](_0x4c4f0a)),_0x59c298=[];for(const _0x392caa of _0x58ac6b)for(const _0x7e4b7c of _0x392caa[_0x59c7('0x1e')]({'shallow':!0x0}))_0x59c298[_0x59c7('0x7f')](_0x7e4b7c);for(const _0x448957 of _0x59c298)_0x59c7('0x78')!=_0x448957[_0x59c7('0x47')][_0x59c7('0x77')]&&(_0x4f7499[_0x59c7('0x3e')](_0x4f7499[_0x59c7('0x7a')](_0x448957,0x0)),_0x446fb7[_0x59c7('0x48')][_0x59c7('0x5f')](_0x59c7('0x35'))[_0x59c7('0x69')](),_0x446fb7[_0x59c7('0x1c')](_0x59c7('0x35'),{'forceDefaultExecution':!0x0}));const _0x3dfb83=_0x1c76c4[_0x59c7('0x31')](_0x285756=>_0x59c7('0x78')!=_0x285756[_0x59c7('0x47')]['rootName']);_0x3dfb83['length']>0x0&&_0x4f7499[_0x59c7('0x3e')](_0x3dfb83);for(const _0x3641ca of _0x1c76c4)_0x3641ca[_0x59c7('0x43')]();});}function _0x31e758(_0x1db092,_0x5866a9){return _0x5866a9['every'](_0x35d508=>_0x1db092[_0x59c7('0x41')](_0x13aa6d=>_0x13aa6d['end'][_0x59c7('0x51')](_0x35d508['start'])||_0x35d508[_0x59c7('0x15')][_0x59c7('0x51')](_0x13aa6d[_0x59c7('0x2c')])));}function _0x203660(_0x13ab3d,_0x284e67){return _0x13ab3d[_0x59c7('0x41')](_0x99fa85=>_0x284e67[_0x59c7('0x41')](_0x5e9752=>_0x99fa85[_0x59c7('0x15')][_0x59c7('0x38')](_0x5e9752['start'])));}_0x446fb7[_0x59c7('0x30')][_0x59c7('0x1a')]['on'](_0x59c7('0x60'),(_0x44fbdc,_0x38fa95,_0xe70d1f)=>{if(!_0xe70d1f[_0x59c7('0x54')][_0x59c7('0x76')])return;const _0x13cca7=_0x38fa95[_0x59c7('0x80')];if(!_0x13cca7)return;const _0x270363=_0xe70d1f[_0x59c7('0x37')][_0x59c7('0x27')](_0x13cca7);function _0x499473(_0x54cfee){return Array[_0x59c7('0x42')](_0x54cfee)?_0x54cfee:[_0x54cfee];}_0x270363&&_0x59c7('0x3f')===_0x13cca7[_0x59c7('0x36')]&&_0x191d1b(_0x270363,_0xe70d1f[_0x59c7('0x3a')],(_0x3aae77,_0x16b672,_0x2ffbab)=>_0x2ffbab['addClass'](_0x499473(_0x16b672[_0x59c7('0x20')]),_0x3aae77),(_0x157cdd,_0x52fac6,_0x7fcb39)=>_0x7fcb39[_0x59c7('0x5')](_0x499473(_0x52fac6[_0x59c7('0x20')]),_0x157cdd));},{'priority':'highest'}),_0x1e7cc6[_0x59c7('0x3')][_0x59c7('0xa')](_0x55e123=>{if(_0x59c7('0x62')!=_0x55e123[_0x59c7('0x13')]&&_0x59c7('0x5e')!=_0x55e123[_0x59c7('0x13')])return;const _0x12c751=_0x55e123['getContainedElement']();if(null!=_0x12c751&&_0x12c751['is']('element',_0x59c7('0x4d'))){if(_0x59c7('0x62')==_0x55e123[_0x59c7('0x13')]){const _0x3d0725=_0x55e123['getItems']()[_0x59c7('0x31')](_0x402f68=>_0x402f68['is'](_0x59c7('0x7e')))[_0x59c7('0x4e')](_0x4cbc10=>_0x4cbc10[_0x59c7('0x30')]);if(_0x3d0725['length'])return{'type':_0x59c7('0x62'),'content':_0x526b70(_0x174b54,_0x59c7('0x4a'),_0x526b70(_0x174b54,_0x59c7('0x23'),'\x22'+_0x3d0725['join']('\x20')+'\x22'))};}if(_0x59c7('0x5e')==_0x55e123[_0x59c7('0x13')]){const _0x158a42=_0x55e123[_0x59c7('0x1e')]()['filter'](_0x1add12=>_0x1add12['is'](_0x59c7('0x7e')))['map'](_0x1d8292=>_0x1d8292[_0x59c7('0x30')]);if(_0x158a42['length'])return{'type':'deletion','content':_0x526b70(_0x174b54,_0x59c7('0x2d'),_0x526b70(_0x174b54,_0x59c7('0x23'),'\x22'+_0x158a42[_0x59c7('0x75')]('\x20')+'\x22'))};}}}),_0x1e7cc6[_0x59c7('0x3')][_0x59c7('0xa')](_0x2e074f=>{if('tableRow'==_0x2e074f['subType']){const _0x114e9f=_0x2e074f[_0x59c7('0x1e')]()[_0x59c7('0x31')](_0x5bd0f8=>_0x5bd0f8['is']('$textProxy'))[_0x59c7('0x4e')](_0x23507c=>_0x23507c[_0x59c7('0x30')]),_0x58b3dd=this[_0x59c7('0x11')](_0x2e074f),_0x528c26=_0x58b3dd[_0x59c7('0x79')]-_0x58b3dd[_0x59c7('0x73')]+0x1;if(_0x59c7('0x62')==_0x2e074f[_0x59c7('0x13')])return _0x114e9f[_0x59c7('0x28')]?{'type':'insertion','content':_0x526b70(_0x174b54,'*Insert:*\x20%0',_0x526b70(_0x174b54,_0x59c7('0x14'),[_0x528c26,'\x22'+_0x114e9f['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x526b70(_0x174b54,_0x59c7('0x4a'),_0x526b70(_0x174b54,_0x59c7('0x7d'),_0x528c26))};if('deletion'==_0x2e074f[_0x59c7('0x13')])return _0x114e9f[_0x59c7('0x28')]?{'type':'deletion','content':_0x526b70(_0x174b54,_0x59c7('0x2d'),_0x526b70(_0x174b54,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x528c26,'\x22'+_0x114e9f[_0x59c7('0x75')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x526b70(_0x174b54,_0x59c7('0x2d'),_0x526b70(_0x174b54,_0x59c7('0x7d'),_0x528c26))};}if('tableColumn'==_0x2e074f[_0x59c7('0x58')]){const _0x1b5457=_0x2e074f['getItems']()[_0x59c7('0x31')](_0x335902=>_0x335902['is'](_0x59c7('0x7e')))[_0x59c7('0x4e')](_0x4ff835=>_0x4ff835['data']),_0x23da03=this[_0x59c7('0x11')](_0x2e074f),_0x140122=_0x23da03[_0x59c7('0x72')]-_0x23da03[_0x59c7('0x10')]+0x1;if(_0x59c7('0x62')==_0x2e074f[_0x59c7('0x13')])return _0x1b5457[_0x59c7('0x28')]?{'type':_0x59c7('0x62'),'content':_0x526b70(_0x174b54,_0x59c7('0x4a'),_0x526b70(_0x174b54,_0x59c7('0x16'),[_0x140122,'\x22'+_0x1b5457[_0x59c7('0x75')]('\x20')+'\x22']))}:{'type':_0x59c7('0x62'),'content':_0x526b70(_0x174b54,_0x59c7('0x4a'),_0x526b70(_0x174b54,_0x59c7('0x63'),_0x140122))};if(_0x59c7('0x5e')==_0x2e074f[_0x59c7('0x13')])return _0x1b5457[_0x59c7('0x28')]?{'type':_0x59c7('0x5e'),'content':_0x526b70(_0x174b54,'*Remove:*\x20%0',_0x526b70(_0x174b54,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x140122,'\x22'+_0x1b5457[_0x59c7('0x75')]('\x20')+'\x22']))}:{'type':_0x59c7('0x5e'),'content':_0x526b70(_0x174b54,_0x59c7('0x2d'),_0x526b70(_0x174b54,'ELEMENT_TABLE_COLUMN',_0x140122))};}}),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x62'),_0x59c7('0x2'),_0x59c7('0x52'),_0x2661f0),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x5e'),'tableRow','accept',_0x2661f0),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x62'),_0x59c7('0x19'),_0x59c7('0x52'),_0x43b253),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')]('deletion',_0x59c7('0x19'),_0x59c7('0x7b'),_0x43b253),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x62'),_0x59c7('0x19'),_0x59c7('0x75'),_0x31e758),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x5e'),'tableColumn',_0x59c7('0x75'),_0x31e758),_0x1e7cc6['_suggestionFactory'][_0x59c7('0x25')](_0x59c7('0x62'),'tableRow',_0x59c7('0x75'),_0x203660),_0x1e7cc6[_0x59c7('0x74')][_0x59c7('0x25')](_0x59c7('0x5e'),'tableRow',_0x59c7('0x75'),_0x203660);}[_0x59c7('0x81')](){const _0x3ecc96=this[_0x59c7('0x46')],_0xf22af3=_0x3ecc96[_0x59c7('0x85')][_0x59c7('0x26')][_0x59c7('0x5b')];return(_0x145ceb,_0x3ed7c6)=>{_0x3ecc96[_0x59c7('0x85')][_0x59c7('0x24')](_0x53dc39=>{const {commandName:_0x4217b4,commandParams:_0x159331}=_0x3ed7c6;let _0x1ab32f=_0x145ceb[0x0][_0x59c7('0x15')][_0x59c7('0x64')];_0x159331&&_0x159331[0x0]&&!0x1===_0x159331[0x0][_0x59c7('0x7')]&&(_0x1ab32f=_0x145ceb[0x0][_0x59c7('0x2c')][_0x59c7('0x5a')]);const _0x12a9ff=_0x53dc39[_0x59c7('0x57')](_0x1ab32f);if(_0x59c7('0x78')==_0x12a9ff[_0x59c7('0x47')][_0x59c7('0x77')])return;const _0x386bcb=Array[_0x59c7('0x33')](_0xf22af3['getRanges']())[_0x59c7('0x4e')](_0x5a11fe=>_0x1534f3['fromRange'](_0x5a11fe));_0x53dc39[_0x59c7('0x3e')](_0x12a9ff),_0x3ecc96[_0x59c7('0x48')][_0x59c7('0x5f')](_0x4217b4)[_0x59c7('0x69')](),_0x159331[_0x59c7('0x7f')]({'forceDefaultExecution':!0x0}),_0x3ecc96[_0x59c7('0x1c')](_0x4217b4,..._0x159331);const _0x4b9968=_0x386bcb[_0x59c7('0x31')](_0x4af98f=>'$graveyard'!=_0x4af98f[_0x59c7('0x47')][_0x59c7('0x77')]);_0x4b9968[_0x59c7('0x28')]>0x0&&_0x53dc39[_0x59c7('0x3e')](_0x4b9968);for(const _0x30a5eb of _0x386bcb)_0x30a5eb[_0x59c7('0x43')]();});};}[_0x59c7('0x1d')](_0x294990){const _0x173c30=this['editor'][_0x59c7('0x9')][_0x59c7('0x5f')](_0x59c7('0x22'));let _0x5330c9=Number[_0x59c7('0x82')],_0x100fe7=Number[_0x59c7('0x18')],_0x435617=Number[_0x59c7('0x82')],_0x13c767=Number['MIN_SAFE_INTEGER'];for(const _0x3a5094 of _0x294990){if(_0x59c7('0x78')==_0x3a5094[_0x59c7('0x47')][_0x59c7('0x77')])continue;const {row:_0x75cad9,column:_0x4d09a0}=_0x173c30[_0x59c7('0x65')](_0x3a5094),_0x5df52c=_0x3a5094[_0x59c7('0x6f')](_0x59c7('0x17'))?_0x3a5094[_0x59c7('0x44')]('rowspan')-0x1:0x0,_0x50087e=_0x3a5094[_0x59c7('0x6f')](_0x59c7('0x56'))?_0x3a5094['getAttribute']('colspan')-0x1:0x0;_0x5330c9=_0x75cad9<_0x5330c9?_0x75cad9:_0x5330c9,_0x100fe7=_0x75cad9+_0x5df52c>_0x100fe7?_0x75cad9+_0x5df52c:_0x100fe7,_0x435617=_0x4d09a0<_0x435617?_0x4d09a0:_0x435617,_0x13c767=_0x4d09a0+_0x50087e>_0x13c767?_0x4d09a0+_0x50087e:_0x13c767;}return{'minRow':_0x5330c9,'maxRow':_0x100fe7,'minColumn':_0x435617,'maxColumn':_0x13c767};}[_0x59c7('0x55')](){const _0x24d459=this[_0x59c7('0x46')],_0x513f0e=_0x24d459[_0x59c7('0x9')][_0x59c7('0x5f')](_0x59c7('0x40')),_0xdfc28a=_0x24d459[_0x59c7('0x9')][_0x59c7('0x5f')](_0x59c7('0x22'));_0x24d459[_0x59c7('0x85')][_0x59c7('0x26')]['on'](_0x59c7('0x1b'),()=>{const _0x51350a=Array['from'](_0x24d459[_0x59c7('0x85')][_0x59c7('0x26')][_0x59c7('0x84')][_0x59c7('0x12')]());for(const {name:_0x52acbc,data:_0x515f0d}of _0x51350a){const {group:_0x9f9940,id:_0x1c6a73,subType:_0x7525e2}=_0x513f0e['_splitMarkerName'](_0x52acbc);if(_0x59c7('0xd')!=_0x9f9940)continue;if(null!=_0x515f0d[_0x59c7('0x2e')])continue;const _0x1191c5=_0x513f0e[_0x59c7('0x21')](_0x1c6a73);this['_tablePostFixingSubtypes'][_0x59c7('0x45')](_0x7525e2)&&this[_0x59c7('0x3d')][_0x59c7('0x6a')](_0x1191c5);}},{'priority':'low'});const _0xef9653=(_0x457190,_0x3df0bc)=>{let _0x455c73=!0x1;const _0x10f876=_0x3df0bc[_0x59c7('0xc')](_0x457190),_0x2df15a=_0x457190[_0x59c7('0x4b')](_0x59c7('0x4d')),_0x5a90df=_0xdfc28a['getCellLocation'](_0x457190);for(const _0x1c69a9 of this[_0x59c7('0x3d')]){const _0x47f128=_0x1c69a9['subType'],_0x3977f4=_0x47f128['startsWith']('tablePaste'),_0x59f977=_0x47f128['substr'](_0x3977f4?0xa:0x5),_0x3b3f8b=_0x59f977[_0x59c7('0x6b')](),_0x3b9cd8=_0x3b3f8b['substr'](0x0,0x3)+_0x59c7('0x8'),_0x52b1b0=_0x59c7('0x39')+_0x59f977,_0x2433bb=_0x59c7('0x6')+_0x59f977;if(!_0x1c69a9[_0x59c7('0x66')])continue;if(_0x2df15a!=_0x1c69a9[_0x59c7('0x6e')]()['start']['findAncestor']('table'))continue;if(_0x1c69a9[_0x59c7('0x83')](_0x10f876))continue;const _0x2131a6=_0x457190[_0x59c7('0x6f')](_0x3b9cd8)?_0x457190[_0x59c7('0x44')](_0x3b9cd8)-0x1:0x0,_0x1ebe61=this[_0x59c7('0x11')](_0x1c69a9),_0x890d12=_0x1ebe61[_0x52b1b0],_0x5b7eb8=_0x1ebe61[_0x2433bb];_0x890d12<=_0x5a90df[_0x3b3f8b]&&_0x5a90df[_0x3b3f8b]+_0x2131a6<=_0x5b7eb8&&(_0x1c69a9[_0x59c7('0x5c')](_0x10f876),_0x455c73=!0x0);}return _0x455c73;};_0x24d459['model'][_0x59c7('0x26')][_0x59c7('0xf')](_0x56c1bc=>{let _0x24296e=!0x1;for(const _0x177504 of _0x24d459[_0x59c7('0x85')][_0x59c7('0x26')][_0x59c7('0x84')][_0x59c7('0x3b')]())if(_0x59c7('0x2b')==_0x177504[_0x59c7('0x13')]){if(_0x59c7('0x2')==_0x177504[_0x59c7('0x36')])for(const _0xe1eee9 of _0x177504['position'][_0x59c7('0x5a')][_0x59c7('0x6d')]())_0x24296e=_0x24296e||_0xef9653(_0xe1eee9,_0x56c1bc);else _0x59c7('0x3f')==_0x177504[_0x59c7('0x36')]&&(_0x24296e=_0x24296e||_0xef9653(_0x177504[_0x59c7('0x5d')][_0x59c7('0x5a')],_0x56c1bc));}return _0x24296e;});}['_getSuggestionCoords'](_0x8128d8){return this['_getCoordsForCells'](_0x8128d8[_0x59c7('0x59')]()['map'](_0x3b3577=>_0x3b3577[_0x59c7('0x2c')][_0x59c7('0x5a')]));}}function se(_0xccec15){return Array[_0x59c7('0x33')](new Set(_0xccec15)[_0x59c7('0x4f')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b95=['plugins','TrackChangesEditing','toggleTableCaption','get','requires','enableCommand'];(function(_0x319a70,_0x4b95d0){const _0x39b402=function(_0x561266){while(--_0x561266){_0x319a70['push'](_0x319a70['shift']());}};_0x39b402(++_0x4b95d0);}(_0x4b95,0x134));const _0x39b4=function(_0x319a70,_0x4b95d0){_0x319a70=_0x319a70-0x0;let _0x39b402=_0x4b95[_0x319a70];return _0x39b402;};import{Plugin as _0x38ffcf}from'ckeditor5/src/core';import _0x278b21 from'./table';export default class Nt extends _0x38ffcf{static get[_0x39b4('0x2')](){return[_0x278b21];}['afterInit'](){const _0x3c97c0=this['editor'];if(!_0x3c97c0[_0x39b4('0x4')]['has']('TableCaptionEditing'))return;_0x3c97c0['plugins'][_0x39b4('0x1')](_0x39b4('0x5'))[_0x39b4('0x3')](_0x39b4('0x0'));}}
|