@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231207.0 → 0.0.0-nightly-20231208.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 _0x204b=['getSelectedBlocks','nextSibling','document','indentList','push','end','plugins','registerElementLabel','getAttribute','listIndent','*Check\x20item*','filter','slice','from','before','ListEditing','type','_descriptionFactory','format','findIndex','commands','change','paragraph','todo','selection','length','parent','formatBlock','value','*Outdent:*\x20%0','has','model','element','todoListChecked','createRange','todoList','ELEMENT_TODO_LIST','previousSibling','forceValue','add','registerDescriptionCallback','markBlockFormat','replace','outdentList','ELEMENT_BULLETED_LIST','TrackChangesEditing','blockName','listItem','numberedList','createPositionAt','get','formatInline','bulletedList','name','commandName','checkChild','checkTodoList','ELEMENT_LIST_ITEM','TodoListEditing','enableCommand'];(function(_0x2a726e,_0x204b75){const _0x34f0b3=function(_0x2fc17d){while(--_0x2fc17d){_0x2a726e['push'](_0x2a726e['shift']());}};_0x34f0b3(++_0x204b75);}(_0x204b,0x116));const _0x34f0=function(_0x2a726e,_0x204b75){_0x2a726e=_0x2a726e-0x0;let _0x34f0b3=_0x204b[_0x2a726e];return _0x34f0b3;};import{Plugin as _0x19c330}from'ckeditor5/src/core';import{getTranslation as _0x590816}from'../utils/common-translations';export default class ct extends _0x19c330{['afterInit'](){const _0x453bc3=this['editor'],_0x5ab9a6=_0x453bc3['locale'];if(!_0x453bc3[_0x34f0('0x1c')][_0x34f0('0x34')](_0x34f0('0x25')))return;const _0xa80b88=_0x453bc3['plugins']['get'](_0x34f0('0x7')),_0x3427ef=_0x453bc3[_0x34f0('0x1c')][_0x34f0('0x34')](_0x34f0('0x14'));function _0x59eaed(_0x4feb1b){return()=>{const _0x3cbe86=_0x453bc3[_0x34f0('0x35')][_0x34f0('0x18')][_0x34f0('0x2e')],_0xc41b67=_0x453bc3[_0x34f0('0x2a')]['get'](_0x4feb1b);if(_0xc41b67[_0x34f0('0x32')])return void _0x453bc3['execute'](_0x34f0('0x2c'),{});const _0x32f774=_0x4feb1b[_0x34f0('0x22')](0x0,-0x4),_0x587802=function(_0x115748,_0x25329a,_0x10f4fa){let _0x358945=Array['from'](_0x115748)['filter'](_0x4f1a9f=>function(_0x4b0f0c,_0x4f2237){return _0x4f2237[_0x34f0('0x11')](_0x4b0f0c[_0x34f0('0x30')],_0x34f0('0x9'))&&!_0x4f2237['isObject'](_0x4b0f0c);}(_0x4f1a9f,_0x10f4fa));_0x358945=_0x358945[_0x34f0('0x21')](_0x8bc69f=>!_0x8bc69f['is']('element','listItem')||_0x8bc69f[_0x34f0('0x1e')]('listType')!=_0x25329a);const _0x22794d=new Set();for(const _0x155712 of _0x358945)_0x155712['is']('element','listItem')?_0x22794d[_0x34f0('0x1')](ne(_0x155712)):_0x22794d[_0x34f0('0x1')](_0x155712);return Array[_0x34f0('0x23')](_0x22794d);}(_0x3cbe86['getSelectedBlocks'](),_0x32f774,_0x453bc3['model']['schema']);_0x453bc3[_0x34f0('0x35')][_0x34f0('0x2b')](()=>{for(const _0x500561 of _0x587802)_0xa80b88['markBlockFormat'](_0x500561,{'commandName':_0x4feb1b,'commandParams':[{'forceValue':!_0xc41b67['value']}],'formatGroupId':_0x34f0('0x8')},oe(_0x500561));});};}function _0x19d498(_0x329c6b){return()=>{const _0x1ce529=function(_0x5b8633){let _0x1c10b7=Array[_0x34f0('0x23')](_0x5b8633);const _0x597377=_0x1c10b7[_0x34f0('0x29')](_0x5dd318=>_0x34f0('0x9')!=_0x5dd318['name']);return _0x597377>-0x1&&(_0x1c10b7=_0x1c10b7[_0x34f0('0x22')](0x0,_0x597377)),_0x1c10b7;}(_0x453bc3[_0x34f0('0x35')]['document'][_0x34f0('0x2e')][_0x34f0('0x16')]()),_0x255a20=_0x453bc3[_0x34f0('0x35')][_0x34f0('0x38')](_0x453bc3[_0x34f0('0x35')][_0x34f0('0xb')](_0x1ce529[0x0],_0x34f0('0x24')),_0x453bc3['model']['createPositionAt'](_0x1ce529[_0x1ce529[_0x34f0('0x2f')]-0x1],_0x34f0('0x1b')));_0x453bc3[_0x34f0('0x35')][_0x34f0('0x2b')](()=>{_0xa80b88[_0x34f0('0x3')](_0x255a20,{'commandName':_0x329c6b,'commandParams':[],'formatGroupId':_0x34f0('0x1f')},function(_0x48352b){const _0x416170=new Set();for(const _0x195c8a of _0x48352b){let _0xf94da2=_0x195c8a[_0x34f0('0x17')];for(;_0xf94da2&&_0xf94da2[_0x34f0('0x1e')](_0x34f0('0x1f'))>_0x195c8a[_0x34f0('0x1e')](_0x34f0('0x1f'));)_0x416170[_0x34f0('0x1')](_0xf94da2),_0xf94da2=_0xf94da2[_0x34f0('0x17')];}return Array[_0x34f0('0x23')](_0x416170);}(_0x1ce529));});};}_0xa80b88[_0x34f0('0x15')](_0x34f0('0xa'),_0x59eaed(_0x34f0('0xa'))),_0xa80b88[_0x34f0('0x15')]('bulletedList',_0x59eaed(_0x34f0('0xe'))),_0x3427ef&&_0xa80b88[_0x34f0('0x15')](_0x34f0('0x39'),_0x59eaed('todoList')),_0xa80b88[_0x34f0('0x15')](_0x34f0('0x19'),_0x19d498(_0x34f0('0x19'))),_0xa80b88[_0x34f0('0x15')](_0x34f0('0x5'),_0x19d498('outdentList')),_0x3427ef&&_0xa80b88[_0x34f0('0x15')]('checkTodoList',()=>{const _0x58622b=_0x453bc3[_0x34f0('0x2a')][_0x34f0('0xc')](_0x34f0('0x12')),_0xfea389=Array[_0x34f0('0x23')](_0x58622b['_selectedElements']);_0xfea389[_0x34f0('0x21')](_0x25d6be=>_0x25d6be[_0x34f0('0x1e')](_0x34f0('0x37'))!=_0x58622b['value']),_0x453bc3[_0x34f0('0x35')]['change'](()=>{for(const _0x29f8a1 of _0xfea389)_0xa80b88[_0x34f0('0x3')](_0x29f8a1,{'commandName':_0x34f0('0x12'),'commandParams':[{'forceValue':!_0x58622b[_0x34f0('0x32')]}]});});}),_0xa80b88[_0x34f0('0x27')][_0x34f0('0x1d')](_0x34f0('0x9'),_0x596afe=>_0x590816(_0x5ab9a6,_0x34f0('0x13'),_0x596afe)),_0xa80b88[_0x34f0('0x27')][_0x34f0('0x2')](_0x47571a=>{if(_0x34f0('0x31')!=_0x47571a[_0x34f0('0x26')]&&_0x34f0('0xd')!=_0x47571a[_0x34f0('0x26')])return;const {data:_0x4b64ef}=_0x47571a;if(_0x4b64ef){if('numberedList'==_0x4b64ef['commandName']||_0x34f0('0xe')==_0x4b64ef[_0x34f0('0x10')]||_0x34f0('0x39')==_0x4b64ef[_0x34f0('0x10')])switch(_0x4b64ef[_0x34f0('0x10')][_0x34f0('0x4')]('List','')){case'bulleted':return _0x398259(_0x590816(_0x5ab9a6,_0x34f0('0x6')));case'numbered':return _0x398259(_0x590816(_0x5ab9a6,'ELEMENT_NUMBERED_LIST'));case _0x34f0('0x2d'):return _0x398259(_0x590816(_0x5ab9a6,_0x34f0('0x3a')));}if(_0x34f0('0x19')==_0x4b64ef['commandName'])return{'type':'format','content':_0x590816(_0x5ab9a6,'*Indent:*\x20%0',_0x590816(_0x5ab9a6,_0x34f0('0x13')))};if(_0x34f0('0x5')==_0x4b64ef[_0x34f0('0x10')])return{'type':_0x34f0('0x28'),'content':_0x590816(_0x5ab9a6,_0x34f0('0x33'),_0x590816(_0x5ab9a6,_0x34f0('0x13')))};if(_0x34f0('0x12')==_0x4b64ef[_0x34f0('0x10')])return _0x4b64ef['commandParams'][0x0][_0x34f0('0x0')]?{'type':_0x34f0('0x28'),'content':_0x590816(_0x5ab9a6,_0x34f0('0x20'))}:{'type':_0x34f0('0x28'),'content':_0x590816(_0x5ab9a6,'*Uncheck\x20item*')};}function _0x398259(_0x141813){return{'type':_0x34f0('0x28'),'content':_0x590816(_0x5ab9a6,'*Change\x20to:*\x20%0',_0x141813)};}});}}function ne(_0x3f5362){const _0x866c69=_0x3f5362['getAttribute'](_0x34f0('0x1f'));if(0x0==_0x866c69)return _0x3f5362;let _0x203cf5=_0x3f5362;for(;_0x3f5362[_0x34f0('0x3b')]&&_0x3f5362[_0x34f0('0x3b')]['is']('element',_0x34f0('0x9'));){const _0x46b99c=_0x3f5362[_0x34f0('0x3b')][_0x34f0('0x1e')]('listIndent');if(_0x46b99c==_0x866c69)_0x203cf5=_0x3f5362[_0x34f0('0x3b')];else{if(_0x46b99c<_0x866c69)break;}_0x3f5362=_0x3f5362[_0x34f0('0x3b')];}return _0x203cf5;}function oe(_0x373958){const _0xc5abb0=[];if(_0x373958['is'](_0x34f0('0x36'),_0x34f0('0x9'))&&_0x373958[_0x34f0('0x1e')](_0x34f0('0x1f'))>0x0){let _0x10d2fe=_0x373958[_0x34f0('0x17')];for(;_0x10d2fe&&_0x34f0('0x9')==_0x10d2fe[_0x34f0('0xf')]&&_0x10d2fe[_0x34f0('0x1e')](_0x34f0('0x1f'))==_0x373958[_0x34f0('0x1e')](_0x34f0('0x1f'));)_0xc5abb0[_0x34f0('0x1a')](_0x10d2fe),_0x10d2fe=_0x10d2fe[_0x34f0('0x17')];}return _0xc5abb0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a99=['ListPropertiesEditing','*Change\x20to:*\x20%0','TrackChangesEditing','map','_getTranslationKeyForListStyle','toUpperCase','registerDescriptionCallback','handleDescriptions','plugins','replace','_LIST_','reversed','commandName','list.properties','startIndex','getFirstPosition','createPositionAt','afterInit','handleListStartCommand','_descriptionFactory','formatInline','selection','filter','*Format:*\x20set\x20order\x20to\x20regular','listStyle','handleListStyleCommand','parent','numbered','commandParams','_getSuggestionBlocksForListStyle','before','get','backward','getAttribute','*Format:*\x20set\x20order\x20to\x20reversed','length','*Format:*\x20set\x20start\x20index\x20to\x20%0','createRange','bind','document','ListUtils','enableCommand','listItem','locale','model','type','element','flat','getSelectedBlocks','listStart','change','formatBlock','forward','markMultiRangeBlockFormat','unshift','_getSuggestionBlocks','getSiblingNodes','editor','getLastPosition','format','from','has','handleListReversedCommand','listReversed','listType','config'];(function(_0xa6e5bf,_0x5a9938){const _0x46a31c=function(_0x2e6ef6){while(--_0x2e6ef6){_0xa6e5bf['push'](_0xa6e5bf['shift']());}};_0x46a31c(++_0x5a9938);}(_0x5a99,0x8f));const _0x46a3=function(_0xa6e5bf,_0x5a9938){_0xa6e5bf=_0xa6e5bf-0x0;let _0x46a31c=_0x5a99[_0xa6e5bf];return _0x46a31c;};import{Plugin as _0x3c2119}from'ckeditor5/src/core';import{getTranslation as _0x3c6518}from'../utils/common-translations';export default class ut extends _0x3c2119{[_0x46a3('0x6')](){if(!this[_0x46a3('0x2e')]['plugins'][_0x46a3('0x32')](_0x46a3('0x37')))return;const _0x2601ed=this[_0x46a3('0x2e')][_0x46a3('0x36')][_0x46a3('0x14')](_0x46a3('0x2')),_0x3b4d45=this[_0x46a3('0x2e')][_0x46a3('0x3f')][_0x46a3('0x14')]('TrackChangesEditing');_0x2601ed['styles']&&_0x3b4d45[_0x46a3('0x1e')](_0x46a3('0xd'),this[_0x46a3('0xe')]['bind'](this)),_0x2601ed[_0x46a3('0x0')]&&_0x3b4d45['enableCommand'](_0x46a3('0x34'),this[_0x46a3('0x33')][_0x46a3('0x1b')](this)),_0x2601ed[_0x46a3('0x3')]&&_0x3b4d45[_0x46a3('0x1e')](_0x46a3('0x26'),this[_0x46a3('0x7')][_0x46a3('0x1b')](this)),_0x3b4d45[_0x46a3('0x8')][_0x46a3('0x3d')](this[_0x46a3('0x3e')][_0x46a3('0x1b')](this));}[_0x46a3('0xe')](_0x121514,_0x574b7f={}){const _0x5e903b=this['editor']['plugins'][_0x46a3('0x14')]('TrackChangesEditing'),_0xca7a13=this[_0x46a3('0x12')]();this['editor'][_0x46a3('0x21')]['change'](()=>{_0x5e903b[_0x46a3('0x2a')](_0xca7a13,{'commandName':_0x46a3('0xd'),'commandParams':[{'type':_0x574b7f[_0x46a3('0x22')]}],'formatGroupId':_0x46a3('0xd')});});}[_0x46a3('0x33')](_0x6f0e0d,_0x50c672={}){const _0x426615=this['editor'][_0x46a3('0x3f')][_0x46a3('0x14')](_0x46a3('0x39')),_0x5f0363=this['_getSuggestionBlocks'](_0x241f3b=>_0x241f3b['is'](_0x46a3('0x23'),_0x46a3('0x1f'))&&_0x46a3('0x10')===_0x241f3b[_0x46a3('0x16')](_0x46a3('0x35')));if(_0x5f0363['length']<0x1)return;const _0x290c8c=_0x5f0363[_0x46a3('0x3a')](_0x5a45f0=>this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x1a')](this['editor'][_0x46a3('0x21')][_0x46a3('0x5')](_0x5a45f0,_0x46a3('0x13')),this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x5')](_0x5a45f0,0x0)));this['editor'][_0x46a3('0x21')][_0x46a3('0x27')](()=>{_0x426615[_0x46a3('0x2a')](_0x290c8c,{'commandName':_0x46a3('0x34'),'commandParams':[{'reversed':_0x50c672[_0x46a3('0x0')]}],'formatGroupId':_0x46a3('0x34')});});}[_0x46a3('0x7')](_0x1eaee7,_0x27bdee={}){const _0x4c79da=this[_0x46a3('0x2e')]['plugins']['get'](_0x46a3('0x39')),_0x55a284=this[_0x46a3('0x2c')](_0x17d669=>_0x17d669['is'](_0x46a3('0x23'),'listItem')&&'numbered'===_0x17d669[_0x46a3('0x16')](_0x46a3('0x35')));if(_0x55a284[_0x46a3('0x18')]<0x1)return;const _0x15adfa=_0x55a284[_0x46a3('0x3a')](_0x106628=>this[_0x46a3('0x2e')]['model'][_0x46a3('0x1a')](this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x5')](_0x106628,_0x46a3('0x13')),this['editor']['model']['createPositionAt'](_0x106628,0x0)));this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x27')](()=>{_0x4c79da[_0x46a3('0x2a')](_0x15adfa,{'commandName':_0x46a3('0x26'),'commandParams':[{'startIndex':_0x27bdee[_0x46a3('0x3')]}],'formatGroupId':_0x46a3('0x26')});});}[_0x46a3('0x3e')](_0x5431fe){if(_0x46a3('0x28')!=_0x5431fe[_0x46a3('0x22')]&&_0x46a3('0x9')!=_0x5431fe[_0x46a3('0x22')])return;const _0x3e3652=this[_0x46a3('0x2e')][_0x46a3('0x20')],{data:_0x459603}=_0x5431fe;if(!_0x459603)return;let _0x50a3d0,_0x3b504a;switch(_0x459603[_0x46a3('0x1')]){case _0x46a3('0xd'):_0x50a3d0=_0x46a3('0x38'),_0x3b504a={'type':_0x46a3('0x30'),'content':_0x3c6518(_0x3e3652,_0x50a3d0,_0x3c6518(_0x3e3652,this['_getTranslationKeyForListStyle'](_0x459603['commandParams'][0x0][_0x46a3('0x22')])))};break;case _0x46a3('0x34'):_0x50a3d0=_0x459603[_0x46a3('0x11')][0x0]['reversed']?_0x46a3('0x17'):_0x46a3('0xc'),_0x3b504a={'type':'format','content':_0x3c6518(_0x3e3652,_0x50a3d0)};break;case _0x46a3('0x26'):_0x50a3d0=_0x46a3('0x19'),_0x3b504a={'type':_0x46a3('0x30'),'content':_0x3c6518(_0x3e3652,_0x50a3d0,_0x459603[_0x46a3('0x11')][0x0]['startIndex'])};}return _0x3b504a;}['_getSuggestionBlocksForListStyle'](){var _0x349fb6,_0x226d29,_0x36c16a,_0x4cf798;const _0x4ea3cf=this[_0x46a3('0x2e')]['plugins'][_0x46a3('0x14')](_0x46a3('0x1d'));let _0x25d4b9=Array[_0x46a3('0x31')](this[_0x46a3('0x2e')]['model'][_0x46a3('0x1c')][_0x46a3('0xa')][_0x46a3('0x25')]());return(null===(_0x349fb6=_0x25d4b9[0x0])||void 0x0===_0x349fb6?void 0x0:_0x349fb6['is']('element',_0x46a3('0x1f')))&&_0x25d4b9[_0x46a3('0x2b')](..._0x4ea3cf['getSiblingNodes'](this['editor'][_0x46a3('0x21')]['document'][_0x46a3('0xa')]['getFirstPosition'](),_0x46a3('0x15'))),(null===(_0x226d29=_0x25d4b9[_0x25d4b9[_0x46a3('0x18')]-0x1])||void 0x0===_0x226d29?void 0x0:_0x226d29['is'](_0x46a3('0x23'),_0x46a3('0x1f')))&&_0x25d4b9['push'](..._0x4ea3cf[_0x46a3('0x2d')](this[_0x46a3('0x2e')]['model'][_0x46a3('0x1c')]['selection'][_0x46a3('0x2f')](),_0x46a3('0x29'))),_0x25d4b9=[...new Set(_0x25d4b9)],(null===(_0x4cf798=null===(_0x36c16a=this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x1c')]['selection'][_0x46a3('0x4')]())||void 0x0===_0x36c16a?void 0x0:_0x36c16a[_0x46a3('0xf')])||void 0x0===_0x4cf798?void 0x0:_0x4cf798['is']('element',_0x46a3('0x1f')))&&(_0x25d4b9=_0x25d4b9[_0x46a3('0xb')](_0x48c143=>_0x48c143['is'](_0x46a3('0x23'),_0x46a3('0x1f')))),_0x25d4b9;}[_0x46a3('0x2c')](_0x18d0d4){const _0x5bf820=this['editor'][_0x46a3('0x3f')][_0x46a3('0x14')](_0x46a3('0x1d'));let _0xad9848=Array['from'](this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x1c')]['selection'][_0x46a3('0x25')]())[_0x46a3('0xb')](_0x18d0d4)[_0x46a3('0x3a')](_0xa9ffdd=>{const _0x5de541=this[_0x46a3('0x2e')][_0x46a3('0x21')][_0x46a3('0x5')](_0xa9ffdd,0x0);return[..._0x5bf820[_0x46a3('0x2d')](_0x5de541,'backward'),..._0x5bf820['getSiblingNodes'](_0x5de541,_0x46a3('0x29'))];})[_0x46a3('0x24')]();return _0xad9848=[...new Set(_0xad9848)],_0xad9848;}[_0x46a3('0x3b')](_0x3dde62){return'ELEMENT_'+this[_0x46a3('0x2e')][_0x46a3('0x3f')]['get'](_0x46a3('0x1d'))['getListTypeFromListStyleType'](_0x3dde62)[_0x46a3('0x3c')]()+_0x46a3('0x41')+_0x3dde62[_0x46a3('0x3c')]()[_0x46a3('0x40')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38ca=['editor','elementToElement','conversion','div','downcastDispatcher','media','plugins','high','attribute:url:media','dataDowncast','registerElementLabel','MediaEmbedEditing','locale','data','afterInit','get','ELEMENT_MEDIA','options','stop','showSuggestionHighlights'];(function(_0x289d50,_0x38ca54){const _0x402837=function(_0x1de5f8){while(--_0x1de5f8){_0x289d50['push'](_0x289d50['shift']());}};_0x402837(++_0x38ca54);}(_0x38ca,0x10e));const _0x4028=function(_0x289d50,_0x38ca54){_0x289d50=_0x289d50-0x0;let _0x402837=_0x38ca[_0x289d50];return _0x402837;};import{Plugin as _0x4e10eb}from'ckeditor5/src/core';import{getTranslation as _0x2ae083}from'../utils/common-translations';export default class ht extends _0x4e10eb{[_0x4028('0x4')](){const _0xe90846=this[_0x4028('0xa')];if(!_0xe90846[_0x4028('0x10')]['has'](_0x4028('0x1')))return;const _0x35d026=_0xe90846[_0x4028('0x10')][_0x4028('0x5')]('TrackChangesEditing'),_0x1f6f93=_0xe90846[_0x4028('0x2')];_0x35d026['enableCommand']('mediaEmbed'),_0x35d026['_descriptionFactory'][_0x4028('0x0')](_0x4028('0xf'),_0x4a90ad=>_0x2ae083(_0x1f6f93,_0x4028('0x6'),_0x4a90ad)),_0xe90846[_0x4028('0xc')]['for'](_0x4028('0x13'))[_0x4028('0xb')]({'model':_0x4028('0xf'),'view':(_0x29d6a6,{writer:_0x4ef143,options:_0x29564b})=>{if(_0x29564b[_0x4028('0x9')])return _0x4ef143['createEmptyElement'](_0x4028('0xd'));},'converterPriority':_0x4028('0x11')}),_0xe90846[_0x4028('0x3')][_0x4028('0xe')]['on'](_0x4028('0x12'),(_0x844929,_0x2e99c0,_0x2246c3)=>{_0x2246c3[_0x4028('0x7')][_0x4028('0x9')]&&_0x844929[_0x4028('0x8')]();},{'priority':_0x4028('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ae4=['editor','enableCommand','plugins','mention','get','has','afterInit'];(function(_0x41d863,_0x4ae4a8){const _0x170381=function(_0x3ea44b){while(--_0x3ea44b){_0x41d863['push'](_0x41d863['shift']());}};_0x170381(++_0x4ae4a8);}(_0x4ae4,0x178));const _0x1703=function(_0x41d863,_0x4ae4a8){_0x41d863=_0x41d863-0x0;let _0x170381=_0x4ae4[_0x41d863];return _0x170381;};import{Plugin as _0x36d664}from'ckeditor5/src/core';export default class ft extends _0x36d664{[_0x1703('0x1')](){const _0x227fc9=this[_0x1703('0x2')];_0x227fc9[_0x1703('0x4')][_0x1703('0x0')]('MentionEditing')&&_0x227fc9['plugins'][_0x1703('0x6')]('TrackChangesEditing')[_0x1703('0x3')](_0x1703('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43f3=['_descriptionFactory','registerElementLabel','editor','afterInit','PageBreakEditing','pageBreak','enableCommand','get','ELEMENT_PAGE_BREAK','plugins','TrackChangesEditing','has'];(function(_0x21f5e6,_0x43f349){const _0x375754=function(_0x193806){while(--_0x193806){_0x21f5e6['push'](_0x21f5e6['shift']());}};_0x375754(++_0x43f349);}(_0x43f3,0xf2));const _0x3757=function(_0x21f5e6,_0x43f349){_0x21f5e6=_0x21f5e6-0x0;let _0x375754=_0x43f3[_0x21f5e6];return _0x375754;};import{Plugin as _0x3c42ed}from'ckeditor5/src/core';import{getTranslation as _0x2d3305}from'../utils/common-translations';export default class gt extends _0x3c42ed{[_0x3757('0x1')](){const _0x2c13e7=this[_0x3757('0x0')];if(!_0x2c13e7[_0x3757('0x7')][_0x3757('0x9')](_0x3757('0x2')))return;_0x2c13e7[_0x3757('0x7')][_0x3757('0x5')](_0x3757('0x8'))[_0x3757('0x4')](_0x3757('0x3'));const _0x1ddc7e=_0x2c13e7['plugins'][_0x3757('0x5')]('TrackChangesEditing'),_0x49c19e=_0x2c13e7['locale'];_0x1ddc7e[_0x3757('0xa')][_0x3757('0xb')](_0x3757('0x3'),_0x4f3864=>_0x2d3305(_0x49c19e,_0x3757('0x6'),_0x4f3864));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29ae=['commandName','_descriptionFactory','$text','Paragraph','isBlock','mapper','registerDescriptionCallback','nodeAfter','ELEMENT_PARAGRAPH','plugins','paragraph','bindElementToMarker','schema','afterInit','enableCommand','*Insert:*\x20%0','start','ck-suggestion-marker--active','options','get','writer','isLimit','data','isTouching','formatBlock','insertParagraph','span','createUIElement','model','insert','activeMarkers','locale','getFirstRange','TrackChangesEditing','highest','_enableDefaultAttributesIntegration','markerName','markerRange','type','addMarker:suggestion:insertion','consumable','checkChild','editing','insertion','ck-suggestion-marker-split','has','includes','_registerLegacyDescription','end','addClass','consume','name','registerElementLabel'];(function(_0x57e34e,_0x29ae7d){const _0x147306=function(_0x50da1a){while(--_0x50da1a){_0x57e34e['push'](_0x57e34e['shift']());}};_0x147306(++_0x29ae7d);}(_0x29ae,0x1d5));const _0x1473=function(_0x57e34e,_0x29ae7d){_0x57e34e=_0x57e34e-0x0;let _0x147306=_0x29ae[_0x57e34e];return _0x147306;};import{Plugin as _0x9a7988}from'ckeditor5/src/core';import{getTranslation as _0x3aec2a}from'../utils/common-translations';export default class lt extends _0x9a7988{[_0x1473('0x15')](){const _0x3f8900=this['editor'];if(!_0x3f8900['plugins'][_0x1473('0x0')](_0x1473('0xb')))return;const _0x4ae5cd=_0x3f8900[_0x1473('0x27')],_0x5b23d8=_0x3f8900[_0x1473('0x11')][_0x1473('0x1b')](_0x1473('0x29'));_0x5b23d8[_0x1473('0x9')][_0x1473('0x7')]('paragraph',_0x16f533=>_0x3aec2a(_0x4ae5cd,_0x1473('0x10'),_0x16f533)),_0x5b23d8[_0x1473('0x2b')](_0x1473('0x12')),_0x5b23d8[_0x1473('0x16')](_0x1473('0x21')),_0x3f8900[_0x1473('0x32')]['downcastDispatcher']['on'](_0x1473('0x2f'),nr(_0x3f8900),{'priority':_0x1473('0x2a')}),_0x3f8900[_0x1473('0x1e')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x26a3ed,_0x43bfab,_0x543acf)=>{_0x543acf[_0x1473('0x1a')]['showSuggestionHighlights']&&nr(_0x3f8900,{'showActiveMarker':!0x1})(_0x26a3ed,_0x43bfab,_0x543acf);},{'priority':_0x1473('0x2a')});const _0x35542c=_0x5b23d8[_0x1473('0x9')];_0x35542c[_0x1473('0xe')](_0x5119f5=>{if(_0x1473('0x33')!==_0x5119f5[_0x1473('0x2e')])return;const {start:_0x55f4bd,end:_0x30473a}=_0x5119f5[_0x1473('0x28')]();if(!_0x55f4bd[_0x1473('0x1f')](_0x30473a)||!_0x55f4bd[_0x1473('0xf')])return;const _0x1fcbc2=_0x3f8900[_0x1473('0x24')][_0x1473('0x14')],_0x2884ed=_0x55f4bd[_0x1473('0xf')];return _0x1fcbc2['isBlock'](_0x2884ed)&&!_0x1fcbc2[_0x1473('0x1d')](_0x2884ed)&&_0x1fcbc2['checkChild'](_0x2884ed,_0x1473('0xa'))?{'type':_0x1473('0x33'),'content':_0x3aec2a(_0x4ae5cd,_0x1473('0x17'),_0x35542c['getItemLabel'](_0x2884ed,0x1))}:void 0x0;}),this[_0x1473('0x2')]();}[_0x1473('0x2')](){const _0x5628fb=this['editor'],_0x2ed09d=_0x5628fb[_0x1473('0x27')];_0x5628fb['plugins'][_0x1473('0x1b')]('TrackChangesEditing')['_descriptionFactory'][_0x1473('0xe')](_0xe19722=>{if(_0x1473('0x20')!=_0xe19722[_0x1473('0x2e')])return;const {data:_0x3c0392}=_0xe19722;return _0x3c0392&&_0x1473('0x12')==_0x3c0392[_0x1473('0x8')]?{'type':'format','content':_0x3aec2a(_0x2ed09d,'*Change\x20to:*\x20%0',_0x3aec2a(_0x2ed09d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x21d9cd,{showActiveMarker:_0xcfb509=!0x0}={}){return(_0xcf95dd,_0x10bb4c,_0x6fd43b)=>{const _0x5e96e6=_0x21d9cd['plugins']['get'](_0x1473('0x29')),_0x2cde7d=_0x10bb4c[_0x1473('0x2d')][_0x1473('0x18')],_0x45a690=_0x10bb4c[_0x1473('0x2d')][_0x1473('0x3')],_0x34c8fd=_0x21d9cd['model'][_0x1473('0x14')];if(!_0x2cde7d[_0x1473('0x1f')](_0x45a690)||!_0x2cde7d[_0x1473('0xf')])return;const _0x217e2d=_0x2cde7d[_0x1473('0xf')];if(_0x34c8fd[_0x1473('0xc')](_0x217e2d)&&!_0x34c8fd[_0x1473('0x1d')](_0x217e2d)&&_0x34c8fd[_0x1473('0x31')](_0x217e2d,'$text')){if(!_0x6fd43b[_0x1473('0x30')][_0x1473('0x5')](_0x10bb4c[_0x1473('0x2d')],_0xcf95dd[_0x1473('0x6')]))return;const _0xe07bf3=_0x6fd43b['writer'][_0x1473('0x23')](_0x1473('0x22'),{'class':_0x1473('0x34')}),_0x41c587=_0x6fd43b[_0x1473('0xd')]['toViewPosition'](_0x45a690);_0xcfb509&&_0x5e96e6[_0x1473('0x26')][_0x1473('0x1')](_0x10bb4c['markerName'])&&_0x6fd43b[_0x1473('0x1c')][_0x1473('0x4')](_0x1473('0x19'),_0xe07bf3),_0x6fd43b[_0x1473('0x1c')][_0x1473('0x25')](_0x41c587,_0xe07bf3),_0x6fd43b[_0x1473('0xd')][_0x1473('0x13')](_0xe07bf3,_0x10bb4c[_0x1473('0x2c')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59a9=['formatInline','has','get','editor','_descriptionFactory','formatBlock','TrackChangesEditing','format','removeFormat','_registerLegacyDescription','plugins','locale','type','commandName','RemoveFormatEditing','afterInit'];(function(_0xdb53dc,_0x59a957){const _0x48d1bf=function(_0x2469bb){while(--_0x2469bb){_0xdb53dc['push'](_0xdb53dc['shift']());}};_0x48d1bf(++_0x59a957);}(_0x59a9,0x9d));const _0x48d1=function(_0xdb53dc,_0x59a957){_0xdb53dc=_0xdb53dc-0x0;let _0x48d1bf=_0x59a9[_0xdb53dc];return _0x48d1bf;};import{Plugin as _0x4fd5e8}from'ckeditor5/src/core';import{getTranslation as _0x2ac28d}from'../utils/common-translations';export default class mt extends _0x4fd5e8{[_0x48d1('0x2')](){const _0x59e135=this[_0x48d1('0x6')];if(!_0x59e135['plugins'][_0x48d1('0x4')](_0x48d1('0x1')))return;_0x59e135[_0x48d1('0xd')][_0x48d1('0x5')](_0x48d1('0x9'))['_enableDefaultAttributesIntegration'](_0x48d1('0xb')),this[_0x48d1('0xc')]();}[_0x48d1('0xc')](){const _0x349db2=this['editor'];_0x349db2[_0x48d1('0xd')]['get'](_0x48d1('0x9'))[_0x48d1('0x7')]['registerDescriptionCallback'](_0x400967=>{if(_0x48d1('0x8')!=_0x400967[_0x48d1('0xf')]&&_0x48d1('0x3')!=_0x400967[_0x48d1('0xf')])return;const {data:_0x1c7522}=_0x400967;return _0x1c7522&&_0x48d1('0xb')==_0x1c7522[_0x48d1('0x0')]?{'type':_0x48d1('0xa'),'content':_0x2ac28d(_0x349db2[_0x48d1('0xe')],'*Remove\x20all\x20formatting*')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a92=['TrackChangesEditing','RestrictedEditingModeEditing','discardSelectedSuggestions','acceptSelectedSuggestions','goToNextRestrictedEditingException','acceptAllSuggestions','afterInit','get','has','acceptSuggestion','enableCommand','discardAllSuggestions','plugins'];(function(_0x35558f,_0x5a92e0){const _0x3b9a6b=function(_0x11781f){while(--_0x11781f){_0x35558f['push'](_0x35558f['shift']());}};_0x3b9a6b(++_0x5a92e0);}(_0x5a92,0x144));const _0x3b9a=function(_0x35558f,_0x5a92e0){_0x35558f=_0x35558f-0x0;let _0x3b9a6b=_0x5a92[_0x35558f];return _0x3b9a6b;};import{Plugin as _0x23f319}from'ckeditor5/src/core';export default class dt extends _0x23f319{[_0x3b9a('0x7')](){const _0x41aaa0=this['editor'];if(!_0x41aaa0[_0x3b9a('0x0')][_0x3b9a('0x9')](_0x3b9a('0x2')))return;const _0x4fc8b5=_0x41aaa0[_0x3b9a('0x0')]['get'](_0x3b9a('0x1'));_0x4fc8b5['enableCommand']('goToPreviousRestrictedEditingException'),_0x4fc8b5['enableCommand'](_0x3b9a('0x5'));const _0x572cd0=_0x41aaa0['plugins'][_0x3b9a('0x8')]('RestrictedEditingModeEditing');_0x572cd0[_0x3b9a('0xb')]('trackChanges'),_0x572cd0[_0x3b9a('0xb')](_0x3b9a('0xa')),_0x572cd0[_0x3b9a('0xb')]('discardSuggestion'),_0x572cd0['enableCommand'](_0x3b9a('0x6')),_0x572cd0[_0x3b9a('0xb')](_0x3b9a('0xc')),_0x572cd0[_0x3b9a('0xb')](_0x3b9a('0x4')),_0x572cd0[_0x3b9a('0xb')](_0x3b9a('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcf9f=['registerElementLabel','markerRange','test','model','span','writer','markerName','activeMarkers','enableCommand','addMarker:suggestion:insertion','bindElementToMarker','insert','high','addClass','downcastDispatcher','element','editing','shiftEnter','editor','split','plugins','createPositionBefore','data','TrackChangesEditing','requires','get','deletion','ck-suggestion-marker-','addMarker:suggestion:deletion','getItems','init','_descriptionFactory','ELEMENT_LINE_BREAK','createUIElement','mapper','softBreak'];(function(_0x1cde11,_0xcf9f54){const _0x1dd5c4=function(_0x321602){while(--_0x321602){_0x1cde11['push'](_0x1cde11['shift']());}};_0x1dd5c4(++_0xcf9f54);}(_0xcf9f,0xdd));const _0x1dd5=function(_0x1cde11,_0xcf9f54){_0x1cde11=_0x1cde11-0x0;let _0x1dd5c4=_0xcf9f[_0x1cde11];return _0x1dd5c4;};import{Plugin as _0x411f60}from'ckeditor5/src/core';import{ShiftEnter as _0xbeb12}from'ckeditor5/src/enter';import{getTranslation as _0xf345f3}from'../utils/common-translations';export default class pt extends _0x411f60{static get[_0x1dd5('0x13')](){return[_0xbeb12];}[_0x1dd5('0x19')](){const _0x4d86af=this[_0x1dd5('0xd')],_0x512619=_0x4d86af[_0x1dd5('0xf')][_0x1dd5('0x14')](_0x1dd5('0x12'));_0x512619[_0x1dd5('0x3')](_0x1dd5('0xc')),_0x4d86af[_0x1dd5('0xb')]['downcastDispatcher']['on'](_0x1dd5('0x4'),re(_0x4d86af),{'priority':_0x1dd5('0x7')}),_0x4d86af[_0x1dd5('0xb')][_0x1dd5('0x9')]['on'](_0x1dd5('0x17'),re(_0x4d86af),{'priority':_0x1dd5('0x7')}),_0x4d86af[_0x1dd5('0x11')][_0x1dd5('0x9')]['on']('addMarker:suggestion',(_0x37e98e,_0x32a7d3,_0x109f59)=>{_0x109f59['options']['showSuggestionHighlights']&&re(_0x4d86af,{'showActiveMarker':!0x1})(_0x37e98e,_0x32a7d3,_0x109f59);}),_0x512619[_0x1dd5('0x1a')][_0x1dd5('0x1f')](_0x1dd5('0x1e'),_0x164e71=>_0xf345f3(_0x4d86af['locale'],_0x1dd5('0x1b'),_0x164e71));}}function re(_0x2bf897,{showActiveMarker:_0xa57d55=!0x0}={}){return(_0x3a7fac,_0x5ab1a9,_0x8398ce)=>{const _0x5b2e1f=_0x2bf897[_0x1dd5('0xf')]['get']('TrackChangesEditing');if(!_0x8398ce['consumable'][_0x1dd5('0x21')](_0x5ab1a9[_0x1dd5('0x20')],_0x3a7fac['name']))return;const _0x24d5c7=_0x2bf897[_0x1dd5('0x22')];for(const _0x47b408 of _0x5ab1a9['markerRange'][_0x1dd5('0x18')]()){if(!_0x47b408['is'](_0x1dd5('0xa'),'softBreak'))continue;const _0x2a8f8e=_0x1dd5('0x15')==_0x5ab1a9['markerName'][_0x1dd5('0xe')](':')[0x1]?'merge':_0x1dd5('0xe'),_0x2c9894=_0x8398ce['writer'][_0x1dd5('0x1c')](_0x1dd5('0x23'),{'class':_0x1dd5('0x16')+_0x2a8f8e}),_0x23f681=_0x8398ce[_0x1dd5('0x1d')]['toViewPosition'](_0x24d5c7[_0x1dd5('0x10')](_0x47b408));_0xa57d55&&_0x5b2e1f[_0x1dd5('0x2')]['includes'](_0x5ab1a9[_0x1dd5('0x1')])&&_0x8398ce[_0x1dd5('0x0')][_0x1dd5('0x8')]('ck-suggestion-marker--active',_0x2c9894),_0x8398ce[_0x1dd5('0x0')][_0x1dd5('0x6')](_0x23f681,_0x2c9894),_0x8398ce['mapper'][_0x1dd5('0x5')](_0x2c9894,_0x5ab1a9[_0x1dd5('0x1')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x440a=['commands','TrackChangesEditing','restrictedEditingException','format','_descriptionFactory','type','get','change','getRanges','forceValue','document','StandardEditingModeEditing','registerDescriptionCallback','plugins','commandParams','markInlineFormat','formatInline','isCollapsed','commandName','editor','has','selection','model','enableCommand','formatBlock'];(function(_0x3fc2dd,_0x440aa4){const _0x2bece4=function(_0x5419e1){while(--_0x5419e1){_0x3fc2dd['push'](_0x3fc2dd['shift']());}};_0x2bece4(++_0x440aa4);}(_0x440a,0x170));const _0x2bec=function(_0x3fc2dd,_0x440aa4){_0x3fc2dd=_0x3fc2dd-0x0;let _0x2bece4=_0x440a[_0x3fc2dd];return _0x2bece4;};import{Plugin as _0x9c72bd}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x1f186f}from'./utils';import{getTranslation as _0x413e4c}from'../utils/common-translations';export default class kt extends _0x9c72bd{['afterInit'](){const _0x3dab9c=this[_0x2bec('0x1')],_0x4f91ea=_0x3dab9c[_0x2bec('0x4')],_0x3fb21c=_0x3dab9c['locale'];if(!_0x3dab9c[_0x2bec('0x14')][_0x2bec('0x2')](_0x2bec('0x12')))return;const _0x1096b1=_0x3dab9c[_0x2bec('0x14')][_0x2bec('0xd')](_0x2bec('0x8')),_0x27b04f=_0x2bec('0x9'),_0x466f90=_0x3dab9c[_0x2bec('0x7')][_0x2bec('0xd')](_0x27b04f);_0x1096b1[_0x2bec('0x5')](_0x27b04f,(_0x19514d,_0x2e9a00={})=>{const _0x39e329=_0x4f91ea[_0x2bec('0x11')][_0x2bec('0x3')];if(_0x39e329[_0x2bec('0x18')])return void _0x19514d(_0x2e9a00);const _0x33deff=void 0x0!==_0x2e9a00['forceValue']?_0x2e9a00['forceValue']:!_0x466f90['value'];_0x4f91ea[_0x2bec('0xe')](()=>{const _0x56d597=Array['from'](_0x39e329[_0x2bec('0xf')]());for(const _0xd785c of _0x56d597){const _0x453b5f=_0x33deff?[_0xd785c]:_0x1f186f(_0x27b04f,_0xd785c,_0x4f91ea);for(const _0x11ad3e of _0x453b5f)_0x1096b1[_0x2bec('0x16')](_0x11ad3e,{'commandName':_0x27b04f,'commandParams':[{'forceValue':_0x33deff}]});}});}),_0x1096b1[_0x2bec('0xb')][_0x2bec('0x13')](_0x35db4f=>{if(_0x2bec('0x6')!=_0x35db4f['type']&&_0x2bec('0x17')!=_0x35db4f[_0x2bec('0xc')])return;const {data:_0x14deac}=_0x35db4f;return _0x14deac&&_0x14deac[_0x2bec('0x0')]==_0x27b04f?_0x14deac[_0x2bec('0x15')][0x0][_0x2bec('0x10')]?{'type':_0x2bec('0xa'),'content':_0x413e4c(_0x3fb21c,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x2bec('0xa'),'content':_0x413e4c(_0x3fb21c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c37=['TrackChangesEditing','toLowerCase','GeneralHtmlSupport','formatInline','Style','has','style','add','_enableDefaultAttributesIntegration','definitions','registerDescriptionCallback','_registerInlineAttribute','locale','format','type','*Remove\x20format:*\x20%0','DataSchema','forceValue','_registerLegacyDescription','config','styleName','formatBlock','get','element','commandParams','block','plugins','_descriptionFactory','ghsAttributes','commandName','normalizeConfig','getGhsAttributeNameForElement','registerAttributeLabel'];(function(_0x2d1346,_0x1c3764){const _0x2b0cb6=function(_0x2c60e2){while(--_0x2c60e2){_0x2d1346['push'](_0x2d1346['shift']());}};_0x2b0cb6(++_0x1c3764);}(_0x1c37,0x6f));const _0x2b0c=function(_0x2d1346,_0x1c3764){_0x2d1346=_0x2d1346-0x0;let _0x2b0cb6=_0x1c37[_0x2d1346];return _0x2b0cb6;};import{Plugin as _0x31c207}from'ckeditor5/src/core';import{getTranslation as _0x2c2aa0}from'../utils/common-translations';export default class bt extends _0x31c207{['afterInit'](){const _0xf67d72=this['editor'];if(!_0xf67d72[_0x2b0c('0xe')][_0x2b0c('0x1a')](_0x2b0c('0x19'))||!_0xf67d72[_0x2b0c('0xe')][_0x2b0c('0x1a')](_0x2b0c('0x4')))return;const _0x36dd82=_0xf67d72['plugins'][_0x2b0c('0xa')](_0x2b0c('0x15')),_0x2e0eb0=_0xf67d72[_0x2b0c('0x0')],_0x53679b=_0xf67d72[_0x2b0c('0x7')]['get']('style'),_0x415259=_0xf67d72[_0x2b0c('0xe')][_0x2b0c('0xa')](_0x2b0c('0x17')),_0x26694d=_0xf67d72[_0x2b0c('0xe')][_0x2b0c('0xa')]('StyleUtils')[_0x2b0c('0x12')](_0xf67d72[_0x2b0c('0xe')]['get'](_0x2b0c('0x4')),_0x53679b[_0x2b0c('0x1e')]);_0x36dd82[_0x2b0c('0x1d')](_0x2b0c('0x1b'));const _0x411f79=new Set();for(const _0x4ad6fd of _0x26694d[_0x2b0c('0xd')]){const _0x50692f=_0x415259['getGhsAttributeNameForElement'](_0x4ad6fd[_0x2b0c('0xb')]);_0x411f79[_0x2b0c('0x1c')](_0x50692f);}const _0x1b3afb=new Set();for(const _0x55b700 of _0x26694d['inline']){const _0x3763dd=_0x415259[_0x2b0c('0x13')](_0x55b700[_0x2b0c('0xb')]);_0x1b3afb[_0x2b0c('0x1c')](_0x3763dd);for(const _0x39b244 of _0x55b700[_0x2b0c('0x10')])_0x1b3afb[_0x2b0c('0x1c')](_0x39b244);}for(const _0x2bc914 of _0x411f79)_0x36dd82['_registerBlockAttribute'](_0x2bc914),_0x36dd82[_0x2b0c('0xf')][_0x2b0c('0x14')](_0x2bc914,_0x2c2aa0(_0x2e0eb0,'FORMAT_STYLE'));for(const _0xb22e64 of _0x1b3afb)_0x36dd82[_0x2b0c('0x20')](_0xb22e64),_0x36dd82[_0x2b0c('0xf')]['registerAttributeLabel'](_0xb22e64,_0x2c2aa0(_0x2e0eb0,'FORMAT_STYLE'));this[_0x2b0c('0x6')]();}[_0x2b0c('0x6')](){const _0x5ab9c6=this['editor'],_0x4af97f=_0x5ab9c6[_0x2b0c('0x0')];_0x5ab9c6[_0x2b0c('0xe')]['get'](_0x2b0c('0x15'))['_descriptionFactory'][_0x2b0c('0x1f')](_0x9da54b=>{if(_0x2b0c('0x9')!=_0x9da54b['type']&&_0x2b0c('0x18')!=_0x9da54b[_0x2b0c('0x2')])return;const {data:_0x41d9ea}=_0x9da54b;return _0x41d9ea&&_0x2b0c('0x1b')===_0x41d9ea[_0x2b0c('0x11')]?_0x41d9ea[_0x2b0c('0xc')][0x0][_0x2b0c('0x5')]?{'type':_0x2b0c('0x1'),'content':_0x2c2aa0(_0x4af97f,'*Set\x20format:*\x20%0',_0x41d9ea[_0x2b0c('0xc')][0x0][_0x2b0c('0x8')]['toLowerCase']())}:{'type':_0x2b0c('0x1'),'content':_0x2c2aa0(_0x4af97f,_0x2b0c('0x3'),_0x41d9ea[_0x2b0c('0xc')][0x0][_0x2b0c('0x8')][_0x2b0c('0x16')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4fd1=['has','subType','registerElementLabel','registerCustomCallback','tableRow','getChangedMarkers','selection','some','removeTableRow','plugins','mapper','get','MAX_SAFE_INTEGER','rootName','toViewElement','root','options','ELEMENT_TABLE_ROW_WITH_TEXT','addClass','values','document','isInContent','colspan','refresh','getItems','last','substr','change','type','toLowerCase','removeTableColumn','$graveyard','cell','insertTableRowBelow','selectTableColumn','insert','getCellLocation','nodeBefore','name','change:data','tableColumn','isTouching','registerPostFixer','_getSuggestionCoords','model','differ','from','_descriptionFactory','fromRange','tableCell','registerDescriptionCallback','createTableWalker','getColumnIndexes','removeClass','element','maxColumn','includes','createPositionAt','map','_tableSuggestions','editor','ELEMENT_TABLE_WITH_TEXT','table','order','start','oldRange','getChanges','first','findAncestor','rowspan','highest','addRange','markMultiRangeInsertion','span','_suggestionFactory','suggestion','_getCoordsForCells','isIntersectingWithRange','TableUtils','forceValue','_splitMarkerName','discard','_setupColumnsRowsFixing','TableEditing','tablePaste','execute','data','MIN_SAFE_INTEGER','$textProxy','_acceptFormatSuggestionCallbackFactory','enqueueChange','nodeAfter','isArray','join','left','getSelectionAffectedTableCells','max','insertTableColumnLeft','length','filter','detach','accept','maxRow','createRangeOn','createRangeIn','writer','every','minRow','enableCommand','insertTableRowAbove','_tablePostFixingSubtypes','above','getAttribute','locale','ELEMENT_TABLE_COLUMN_WITH_TEXT','ELEMENT_TABLE_COLUMN','hasAttribute','getFirstRange','getChildren','getRowIndexes','TrackChangesEditing','*Insert:*\x20%0','getRanges','commands','*Remove:*\x20%0','deletion','isEqual','end','setSelection','addMarker:suggestion','item','getSuggestion','classes','markMultiRangeDeletion','insertTableColumnRight','ELEMENT_TABLE_ROW','insertion'];(function(_0x302fe4,_0x4fd1db){const _0x507608=function(_0xb315c9){while(--_0xb315c9){_0x302fe4['push'](_0x302fe4['shift']());}};_0x507608(++_0x4fd1db);}(_0x4fd1,0x12e));const _0x5076=function(_0x302fe4,_0x4fd1db){_0x302fe4=_0x302fe4-0x0;let _0x507608=_0x4fd1[_0x302fe4];return _0x507608;};import{Plugin as _0x58eec9}from'ckeditor5/src/core';import{LiveRange as _0x187abe}from'ckeditor5/src/engine';import{setHighlightHandling as _0x571d9b}from'ckeditor5/src/widget';import{getTranslation as _0x4a70e5}from'../utils/common-translations';export default class wt extends _0x58eec9{constructor(_0x5160c4){super(_0x5160c4),this['_tablePostFixingSubtypes']=['tableRow',_0x5076('0xc')],this[_0x5076('0x1f')]=new Set();}['afterInit'](){const _0x2299a2=this[_0x5076('0x20')],_0x200bf1=_0x2299a2[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x73')];if(!_0x2299a2[_0x5076('0x76')][_0x5076('0x6d')](_0x5076('0x37')))return;const _0x1255fb=_0x2299a2[_0x5076('0x55')],_0x4b0edb=_0x2299a2['plugins'][_0x5076('0x78')](_0x5076('0x5c')),_0x20d4d6=_0x2299a2[_0x5076('0x76')][_0x5076('0x78')](_0x5076('0x32'));_0x4b0edb[_0x5076('0x13')][_0x5076('0x6f')](_0x5076('0x22'),_0x1b6979=>_0x4a70e5(_0x1255fb,'ELEMENT_TABLE',_0x1b6979)),this[_0x5076('0x36')](),_0x4b0edb[_0x5076('0x50')]('insertTable'),_0x4b0edb['enableCommand']('selectTableRow'),_0x4b0edb[_0x5076('0x50')](_0x5076('0x6'));for(const _0x3084f8 of[_0x5076('0x51'),_0x5076('0x5')]){const _0x358699=_0x2299a2[_0x5076('0x5f')]['get'](_0x3084f8);_0x4b0edb['enableCommand'](_0x3084f8,_0x263223=>{_0x2299a2[_0x5076('0x10')]['change'](_0x20c612=>{_0x263223();const _0x589f63=_0x5076('0x53')===_0x358699['order'],_0x9767ae=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x15ee5f=_0x20d4d6['getRowIndexes'](_0x9767ae),_0x4a3071=_0x589f63?_0x15ee5f[_0x5076('0x27')]-0x1:_0x15ee5f['last']+0x1,_0x438ea3=_0x9767ae[0x0][_0x5076('0x28')](_0x5076('0x22')),_0x37f3f0=_0x20d4d6[_0x5076('0x17')](_0x438ea3,{'startRow':_0x4a3071,'endRow':_0x4a3071}),_0x4f85bf=Array[_0x5076('0x12')](_0x37f3f0)[_0x5076('0x1e')](_0x504e9a=>_0x20c612[_0x5076('0x4b')](_0x504e9a[_0x5076('0x4')]));_0x4b0edb[_0x5076('0x2c')](_0x4f85bf,_0x5076('0x71'));});});}for(const _0x3e46f5 of[_0x5076('0x45'),_0x5076('0x6a')]){const _0x4bc6ff=_0x2299a2[_0x5076('0x5f')][_0x5076('0x78')](_0x3e46f5);_0x4b0edb['enableCommand'](_0x3e46f5,_0x11e4a7=>{_0x2299a2['model'][_0x5076('0x88')](_0x42de54=>{_0x11e4a7();const _0x359b01=_0x5076('0x42')===_0x4bc6ff[_0x5076('0x23')],_0xd2eca6=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x2fea31=_0x20d4d6[_0x5076('0x18')](_0xd2eca6),_0x362efc=_0x359b01?_0x2fea31[_0x5076('0x27')]-0x1:_0x2fea31[_0x5076('0x86')]+0x1,_0x9b28a2=_0xd2eca6[0x0][_0x5076('0x28')]('table'),_0x2f0d4a=_0x20d4d6[_0x5076('0x17')](_0x9b28a2,{'startRow':0x0,'column':_0x362efc,'includeAllSlots':!0x1}),_0x8d4d72=Array[_0x5076('0x12')](_0x2f0d4a)['map'](_0x1a8ef1=>_0x42de54[_0x5076('0x4b')](_0x1a8ef1[_0x5076('0x4')]));_0x4b0edb[_0x5076('0x2c')](_0x8d4d72,_0x5076('0xc'));});});}for(const _0x27461c of['removeTableRow',_0x5076('0x2')]){const _0x20d48c=_0x27461c[_0x5076('0x87')](0xb),_0x29e689=_0x20d48c[_0x5076('0x1')](),_0x1a29f0=_0x29e689['substr'](0x0,0x3)+_0x5076('0x2d'),_0xc25ca4=_0x5076('0x22')+_0x20d48c,_0x286912='min'+_0x20d48c,_0x715e66='max'+_0x20d48c;_0x4b0edb[_0x5076('0x50')](_0x27461c,()=>{_0x2299a2['model'][_0x5076('0x88')](_0x1b80e2=>{const _0x59d78a=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x2d4133=_0x59d78a[0x0][_0x5076('0x28')]('table');let _0x36d5e2;if(_0x5076('0x75')==_0x27461c){const _0x272723=_0x20d4d6[_0x5076('0x5b')](_0x59d78a);_0x36d5e2={'startRow':_0x272723[_0x5076('0x27')],'endRow':_0x272723[_0x5076('0x86')],'includeAllSlots':!0x0};}else{const _0x481b91=_0x20d4d6['getColumnIndexes'](_0x59d78a);_0x36d5e2={'startColumn':_0x481b91[_0x5076('0x27')],'endColumn':_0x481b91[_0x5076('0x86')],'includeAllSlots':!0x0};}const _0x5cc61d=_0x20d4d6['createTableWalker'](_0x2d4133,_0x36d5e2),_0x2e79d9=Array[_0x5076('0x12')](_0x5cc61d)[_0x5076('0x1e')](({cell:_0x58daa0})=>_0x58daa0),_0x1c8cae=se(_0x2e79d9[_0x5076('0x47')](_0xa74811=>_0xa74811[_0x5076('0x58')](_0x1a29f0))),_0x2003b4=se(_0x2e79d9[_0x5076('0x47')](_0x3929a4=>!_0x3929a4[_0x5076('0x58')](_0x1a29f0)))[_0x5076('0x1e')](_0x16bc18=>_0x1b80e2[_0x5076('0x4b')](_0x16bc18)),_0x396e7c=_0x4b0edb[_0x5076('0x69')](_0x2003b4,_0xc25ca4);if(_0x396e7c&&(_0x5076('0x71')==_0x396e7c['subType']||_0x5076('0xc')==_0x396e7c['subType'])){const _0x22d119=this['_getSuggestionCoords'](_0x396e7c);for(const _0x340a25 of _0x1c8cae){const _0x3a208a=_0x1b80e2[_0x5076('0x4b')](_0x340a25),_0xb7b4d5=_0x20d4d6[_0x5076('0x8')](_0x340a25),_0x3cc7e0=_0x340a25['getAttribute'](_0x1a29f0)-0x1,_0x23e260=_0x22d119[_0x286912],_0xbd35b6=_0x22d119[_0x715e66];_0x23e260<=_0xb7b4d5[_0x29e689]&&_0xb7b4d5[_0x29e689]+_0x3cc7e0<=_0xbd35b6&&_0x396e7c[_0x5076('0x2b')](_0x3a208a);}}});});}function _0xf6366e(_0x509ddf){const _0x1f9fe1=Array['from'](_0x200bf1[_0x5076('0x5e')]())[_0x5076('0x1e')](_0x23989d=>_0x187abe[_0x5076('0x14')](_0x23989d));_0x2299a2['model'][_0x5076('0x88')](_0x1566db=>{const _0x536921=_0x1566db['batch'];_0x509ddf=_0x509ddf[_0x5076('0x47')](_0x19683c=>_0x5076('0x3')!=_0x19683c[_0x5076('0x7c')]['rootName']),_0x1566db['setSelection'](_0x509ddf),_0x2299a2[_0x5076('0x5f')][_0x5076('0x78')](_0x5076('0x75'))[_0x5076('0x84')](),_0x2299a2[_0x5076('0x39')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2299a2[_0x5076('0x10')][_0x5076('0x3e')](()=>{_0x2299a2[_0x5076('0x10')][_0x5076('0x3e')](_0x536921,_0x578124=>{const _0x2c85c2=_0x1f9fe1['filter'](_0x1d4658=>_0x5076('0x3')!=_0x1d4658[_0x5076('0x7c')][_0x5076('0x7a')]);_0x2c85c2[_0x5076('0x46')]>0x0&&_0x578124[_0x5076('0x64')](_0x2c85c2);for(const _0x59204f of _0x1f9fe1)_0x59204f[_0x5076('0x48')]();});});});}function _0x1552e1(_0x61766a){_0x2299a2[_0x5076('0x10')]['change'](_0x470aa3=>{const _0x35f335=Array['from'](_0x200bf1[_0x5076('0x5e')]())[_0x5076('0x1e')](_0x376481=>_0x187abe[_0x5076('0x14')](_0x376481)),_0x55a620=[];for(const _0x1e7b1d of _0x61766a)for(const _0xc16f38 of _0x1e7b1d['getItems']({'shallow':!0x0}))_0x55a620['push'](_0xc16f38);for(const _0x2e5659 of _0x55a620)_0x5076('0x3')!=_0x2e5659[_0x5076('0x7c')][_0x5076('0x7a')]&&(_0x470aa3[_0x5076('0x64')](_0x470aa3[_0x5076('0x1d')](_0x2e5659,0x0)),_0x2299a2[_0x5076('0x5f')]['get'](_0x5076('0x2'))[_0x5076('0x84')](),_0x2299a2['execute'](_0x5076('0x2'),{'forceDefaultExecution':!0x0}));const _0x3c5a42=_0x35f335[_0x5076('0x47')](_0x21ec5a=>'$graveyard'!=_0x21ec5a['root'][_0x5076('0x7a')]);_0x3c5a42[_0x5076('0x46')]>0x0&&_0x470aa3[_0x5076('0x64')](_0x3c5a42);for(const _0x459fc8 of _0x35f335)_0x459fc8[_0x5076('0x48')]();});}function _0xd24f97(_0x19c850,_0x445081){return _0x445081[_0x5076('0x4e')](_0x315f70=>_0x19c850[_0x5076('0x74')](_0x5939c7=>_0x5939c7[_0x5076('0x63')][_0x5076('0x62')](_0x315f70[_0x5076('0x24')])||_0x315f70['end'][_0x5076('0x62')](_0x5939c7[_0x5076('0x24')])));}function _0x3eb459(_0x2a334b,_0x27a0e0){return _0x2a334b[_0x5076('0x74')](_0x4c9882=>_0x27a0e0[_0x5076('0x74')](_0x2d2327=>_0x4c9882[_0x5076('0x63')][_0x5076('0xd')](_0x2d2327[_0x5076('0x24')])));}_0x2299a2[_0x5076('0x3a')]['downcastDispatcher']['on'](_0x5076('0x65'),(_0x529040,_0x43bc0f,_0x1fed23)=>{if(!_0x1fed23[_0x5076('0x7d')]['showSuggestionHighlights'])return;const _0x2d1cfb=_0x43bc0f[_0x5076('0x66')];if(!_0x2d1cfb)return;const _0x24dee4=_0x1fed23[_0x5076('0x77')][_0x5076('0x7b')](_0x2d1cfb);function _0x2751fa(_0x91890){return Array[_0x5076('0x40')](_0x91890)?_0x91890:[_0x91890];}_0x24dee4&&_0x5076('0x15')===_0x2d1cfb[_0x5076('0xa')]&&_0x571d9b(_0x24dee4,_0x1fed23[_0x5076('0x4d')],(_0x4c3f5a,_0x50020d,_0x448953)=>_0x448953[_0x5076('0x7f')](_0x2751fa(_0x50020d[_0x5076('0x68')]),_0x4c3f5a),(_0x44b5dd,_0x5b90b4,_0x1b8122)=>_0x1b8122[_0x5076('0x19')](_0x2751fa(_0x5b90b4[_0x5076('0x68')]),_0x44b5dd));},{'priority':_0x5076('0x2a')}),_0x4b0edb[_0x5076('0x13')][_0x5076('0x16')](_0x812dfd=>{if('insertion'!=_0x812dfd[_0x5076('0x0')]&&_0x5076('0x61')!=_0x812dfd['type'])return;const _0x45fcd0=_0x812dfd['getContainedElement']();if(null!=_0x45fcd0&&_0x45fcd0['is'](_0x5076('0x1a'),'table')){if(_0x5076('0x6c')==_0x812dfd[_0x5076('0x0')]){const _0x2ac9ef=_0x812dfd[_0x5076('0x85')]()[_0x5076('0x47')](_0x239fc1=>_0x239fc1['is'](_0x5076('0x3c')))['map'](_0x87f2cb=>_0x87f2cb[_0x5076('0x3a')]);if(_0x2ac9ef[_0x5076('0x46')])return{'type':'insertion','content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x21'),'\x22'+_0x2ac9ef['join']('\x20')+'\x22'))};}if(_0x5076('0x61')==_0x812dfd[_0x5076('0x0')]){const _0x18c26d=_0x812dfd[_0x5076('0x85')]()[_0x5076('0x47')](_0x577328=>_0x577328['is']('$textProxy'))[_0x5076('0x1e')](_0x25ce5c=>_0x25ce5c['data']);if(_0x18c26d[_0x5076('0x46')])return{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,_0x5076('0x21'),'\x22'+_0x18c26d[_0x5076('0x41')]('\x20')+'\x22'))};}}}),_0x4b0edb['_descriptionFactory'][_0x5076('0x16')](_0x78beca=>{if(_0x5076('0x71')==_0x78beca[_0x5076('0x6e')]){const _0x4180e0=_0x78beca[_0x5076('0x85')]()[_0x5076('0x47')](_0x1ad391=>_0x1ad391['is']('$textProxy'))[_0x5076('0x1e')](_0x2df006=>_0x2df006[_0x5076('0x3a')]),_0x48610d=this[_0x5076('0xf')](_0x78beca),_0x285a29=_0x48610d[_0x5076('0x4a')]-_0x48610d[_0x5076('0x4f')]+0x1;if('insertion'==_0x78beca[_0x5076('0x0')])return _0x4180e0[_0x5076('0x46')]?{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x7e'),[_0x285a29,'\x22'+_0x4180e0[_0x5076('0x41')]('\x20')+'\x22']))}:{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,'*Insert:*\x20%0',_0x4a70e5(_0x1255fb,_0x5076('0x6b'),_0x285a29))};if('deletion'==_0x78beca[_0x5076('0x0')])return _0x4180e0[_0x5076('0x46')]?{'type':'deletion','content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x285a29,'\x22'+_0x4180e0[_0x5076('0x41')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4a70e5(_0x1255fb,_0x5076('0x60'),_0x4a70e5(_0x1255fb,_0x5076('0x6b'),_0x285a29))};}if(_0x5076('0xc')==_0x78beca['subType']){const _0x5cb64d=_0x78beca[_0x5076('0x85')]()[_0x5076('0x47')](_0x4056b4=>_0x4056b4['is'](_0x5076('0x3c')))[_0x5076('0x1e')](_0xaa029=>_0xaa029[_0x5076('0x3a')]),_0x9f0911=this['_getSuggestionCoords'](_0x78beca),_0x125d88=_0x9f0911[_0x5076('0x1b')]-_0x9f0911['minColumn']+0x1;if(_0x5076('0x6c')==_0x78beca[_0x5076('0x0')])return _0x5cb64d[_0x5076('0x46')]?{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x56'),[_0x125d88,'\x22'+_0x5cb64d['join']('\x20')+'\x22']))}:{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x57'),_0x125d88))};if(_0x5076('0x61')==_0x78beca['type'])return _0x5cb64d[_0x5076('0x46')]?{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x125d88,'\x22'+_0x5cb64d['join']('\x20')+'\x22']))}:{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x60'),_0x4a70e5(_0x1255fb,_0x5076('0x57'),_0x125d88))};}}),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),'tableRow',_0x5076('0x35'),_0xf6366e),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0x71'),_0x5076('0x49'),_0xf6366e),_0x4b0edb['_suggestionFactory'][_0x5076('0x70')](_0x5076('0x6c'),_0x5076('0xc'),_0x5076('0x35'),_0x1552e1),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x61'),'tableColumn',_0x5076('0x49'),_0x1552e1),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),_0x5076('0xc'),'join',_0xd24f97),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0xc'),_0x5076('0x41'),_0xd24f97),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),_0x5076('0x71'),_0x5076('0x41'),_0x3eb459),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0x71'),_0x5076('0x41'),_0x3eb459);}[_0x5076('0x3d')](){const _0x4ef5d5=this[_0x5076('0x20')],_0x56741a=_0x4ef5d5[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x73')];return(_0x332780,_0xbd803f)=>{_0x4ef5d5['model'][_0x5076('0x88')](_0x2a3b40=>{const {commandName:_0x328098,commandParams:_0x36e933}=_0xbd803f;let _0x137bc3=_0x332780[0x0][_0x5076('0x63')][_0x5076('0x9')];_0x36e933&&_0x36e933[0x0]&&!0x1===_0x36e933[0x0][_0x5076('0x33')]&&(_0x137bc3=_0x332780[0x0][_0x5076('0x24')][_0x5076('0x3f')]);const _0x4664ce=_0x2a3b40[_0x5076('0x4c')](_0x137bc3);if('$graveyard'==_0x4664ce[_0x5076('0x7c')][_0x5076('0x7a')])return;const _0x34476f=Array[_0x5076('0x12')](_0x56741a['getRanges']())[_0x5076('0x1e')](_0x52ae58=>_0x187abe['fromRange'](_0x52ae58));_0x2a3b40[_0x5076('0x64')](_0x4664ce),_0x4ef5d5[_0x5076('0x5f')]['get'](_0x328098)['refresh'](),_0x36e933['push']({'forceDefaultExecution':!0x0}),_0x4ef5d5['execute'](_0x328098,..._0x36e933);const _0x297946=_0x34476f[_0x5076('0x47')](_0x40b98c=>'$graveyard'!=_0x40b98c[_0x5076('0x7c')][_0x5076('0x7a')]);_0x297946[_0x5076('0x46')]>0x0&&_0x2a3b40[_0x5076('0x64')](_0x297946);for(const _0x9078a2 of _0x34476f)_0x9078a2[_0x5076('0x48')]();});};}[_0x5076('0x30')](_0x8d4b30){const _0x428953=this[_0x5076('0x20')][_0x5076('0x76')]['get']('TableUtils');let _0x3314be=Number[_0x5076('0x79')],_0x16ffaf=Number[_0x5076('0x3b')],_0x5df434=Number[_0x5076('0x79')],_0x308554=Number[_0x5076('0x3b')];for(const _0x709fec of _0x8d4b30){if(_0x5076('0x3')==_0x709fec[_0x5076('0x7c')][_0x5076('0x7a')])continue;const {row:_0x152559,column:_0x197ba2}=_0x428953[_0x5076('0x8')](_0x709fec),_0x361b00=_0x709fec['hasAttribute'](_0x5076('0x29'))?_0x709fec['getAttribute']('rowspan')-0x1:0x0,_0x23acba=_0x709fec[_0x5076('0x58')](_0x5076('0x83'))?_0x709fec[_0x5076('0x54')](_0x5076('0x83'))-0x1:0x0;_0x3314be=_0x152559<_0x3314be?_0x152559:_0x3314be,_0x16ffaf=_0x152559+_0x361b00>_0x16ffaf?_0x152559+_0x361b00:_0x16ffaf,_0x5df434=_0x197ba2<_0x5df434?_0x197ba2:_0x5df434,_0x308554=_0x197ba2+_0x23acba>_0x308554?_0x197ba2+_0x23acba:_0x308554;}return{'minRow':_0x3314be,'maxRow':_0x16ffaf,'minColumn':_0x5df434,'maxColumn':_0x308554};}['_setupColumnsRowsFixing'](){const _0x154583=this[_0x5076('0x20')],_0x44078b=_0x154583[_0x5076('0x76')][_0x5076('0x78')](_0x5076('0x5c')),_0x3939ca=_0x154583[_0x5076('0x76')]['get'](_0x5076('0x32'));_0x154583[_0x5076('0x10')][_0x5076('0x81')]['on'](_0x5076('0xb'),()=>{const _0x11b566=Array[_0x5076('0x12')](_0x154583['model'][_0x5076('0x81')]['differ'][_0x5076('0x72')]());for(const {name:_0x2263ca,data:_0x2d3c4a}of _0x11b566){const {group:_0x35f296,id:_0x1ce3c3,subType:_0x267334}=_0x44078b[_0x5076('0x34')](_0x2263ca);if(_0x5076('0x2f')!=_0x35f296)continue;if(null!=_0x2d3c4a[_0x5076('0x25')])continue;const _0x52adb2=_0x44078b[_0x5076('0x67')](_0x1ce3c3);this[_0x5076('0x52')][_0x5076('0x1c')](_0x267334)&&this[_0x5076('0x1f')]['add'](_0x52adb2);}},{'priority':'low'});const _0x4c305e=(_0x4d7a50,_0x54867c)=>{let _0x4dd32a=!0x1;const _0x772d0e=_0x54867c[_0x5076('0x4b')](_0x4d7a50),_0x1b76b3=_0x4d7a50[_0x5076('0x28')](_0x5076('0x22')),_0x3f9296=_0x3939ca[_0x5076('0x8')](_0x4d7a50);for(const _0x4e3f38 of this[_0x5076('0x1f')]){const _0x46d56f=_0x4e3f38[_0x5076('0x6e')],_0x4ee39d=_0x46d56f['startsWith'](_0x5076('0x38')),_0x54833d=_0x46d56f[_0x5076('0x87')](_0x4ee39d?0xa:0x5),_0x478f05=_0x54833d['toLowerCase'](),_0x256b65=_0x478f05[_0x5076('0x87')](0x0,0x3)+'span',_0x1ddc46='min'+_0x54833d,_0x1e6e71=_0x5076('0x44')+_0x54833d;if(!_0x4e3f38[_0x5076('0x82')])continue;if(_0x1b76b3!=_0x4e3f38[_0x5076('0x59')]()[_0x5076('0x24')][_0x5076('0x28')](_0x5076('0x22')))continue;if(_0x4e3f38[_0x5076('0x31')](_0x772d0e))continue;const _0x5eec14=_0x4d7a50[_0x5076('0x58')](_0x256b65)?_0x4d7a50[_0x5076('0x54')](_0x256b65)-0x1:0x0,_0x4489af=this[_0x5076('0xf')](_0x4e3f38),_0x1528a3=_0x4489af[_0x1ddc46],_0x7041=_0x4489af[_0x1e6e71];_0x1528a3<=_0x3f9296[_0x478f05]&&_0x3f9296[_0x478f05]+_0x5eec14<=_0x7041&&(_0x4e3f38[_0x5076('0x2b')](_0x772d0e),_0x4dd32a=!0x0);}return _0x4dd32a;};_0x154583[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0xe')](_0xf582ff=>{let _0x395d1b=!0x1;for(const _0x240229 of _0x154583[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x11')][_0x5076('0x26')]())if(_0x5076('0x7')==_0x240229[_0x5076('0x0')]){if(_0x5076('0x71')==_0x240229[_0x5076('0xa')])for(const _0x404a13 of _0x240229['position'][_0x5076('0x3f')][_0x5076('0x5a')]())_0x395d1b=_0x395d1b||_0x4c305e(_0x404a13,_0xf582ff);else'tableCell'==_0x240229[_0x5076('0xa')]&&(_0x395d1b=_0x395d1b||_0x4c305e(_0x240229['position'][_0x5076('0x3f')],_0xf582ff));}return _0x395d1b;});}[_0x5076('0xf')](_0x481315){return this[_0x5076('0x30')](_0x481315[_0x5076('0x5e')]()[_0x5076('0x1e')](_0x1baa58=>_0x1baa58[_0x5076('0x24')][_0x5076('0x3f')]));}}function se(_0x44a0d0){return Array[_0x5076('0x12')](new Set(_0x44a0d0)[_0x5076('0x80')]());}
|
|
23
|
+
const _0x4c19=['some','rowspan','getRanges','*Remove:*\x20%0','toViewElement','_acceptFormatSuggestionCallbackFactory','removeTableRow','ELEMENT_TABLE','start','TableUtils','insertion','TrackChangesEditing','push','map','afterInit','plugins','suggestion','findAncestor','from','nodeAfter','markMultiRangeDeletion','registerElementLabel','registerDescriptionCallback','$textProxy','getChildren','span','_suggestionFactory','document','cell','hasAttribute','getSelectionAffectedTableCells','_tablePostFixingSubtypes','getFirstRange','editor','element','isEqual','insert','selectTableRow','isArray','*Insert:*\x20%0','commands','createRangeOn','_getSuggestionCoords','left','above','getColumnIndexes','type','_setupColumnsRowsFixing','refresh','writer','end','registerCustomCallback','_tableSuggestions','maxColumn','tableRow','_getCoordsForCells','startsWith','insertTableColumnRight','position','rootName','fromRange','data','highest','getAttribute','tablePaste','options','createPositionAt','MIN_SAFE_INTEGER','getChangedMarkers','change','change:data','execute','removeTableColumn','locale','markMultiRangeInsertion','addClass','max','model','minColumn','length','downcastDispatcher','showSuggestionHighlights','removeClass','add','ELEMENT_TABLE_WITH_TEXT','colspan','registerPostFixer','getItems','join','detach','name','ELEMENT_TABLE_COLUMN','MAX_SAFE_INTEGER','differ','selectTableColumn','subType','oldRange','enableCommand','batch','getCellLocation','values','insertTableColumnLeft','substr','addRange','get','first','toLowerCase','every','TableEditing','forceValue','last','min','includes','low','maxRow','item','table','createRangeIn','filter','ELEMENT_TABLE_ROW','$graveyard','addMarker:suggestion','enqueueChange','getRowIndexes','has','discard','ELEMENT_TABLE_ROW_WITH_TEXT','deletion','root','mapper','isInContent','accept','_descriptionFactory','createTableWalker','setSelection','tableColumn','getSuggestion','order','insertTable'];(function(_0x399261,_0x4c19fd){const _0x2fd0ec=function(_0x4de193){while(--_0x4de193){_0x399261['push'](_0x399261['shift']());}};_0x2fd0ec(++_0x4c19fd);}(_0x4c19,0x156));const _0x2fd0=function(_0x399261,_0x4c19fd){_0x399261=_0x399261-0x0;let _0x2fd0ec=_0x4c19[_0x399261];return _0x2fd0ec;};import{Plugin as _0x5c2007}from'ckeditor5/src/core';import{LiveRange as _0x26dd57}from'ckeditor5/src/engine';import{setHighlightHandling as _0x363c34}from'ckeditor5/src/widget';import{getTranslation as _0x4b0439}from'../utils/common-translations';export default class wt extends _0x5c2007{constructor(_0x4b22a8){super(_0x4b22a8),this['_tablePostFixingSubtypes']=[_0x2fd0('0x81'),_0x2fd0('0x47')],this['_tableSuggestions']=new Set();}[_0x2fd0('0x59')](){const _0x1a33ac=this[_0x2fd0('0x6c')],_0x2b16d3=_0x1a33ac['model'][_0x2fd0('0x66')]['selection'];if(!_0x1a33ac['plugins'][_0x2fd0('0x3c')](_0x2fd0('0x2c')))return;const _0x26f189=_0x1a33ac[_0x2fd0('0x9')],_0x10db91=_0x1a33ac['plugins'][_0x2fd0('0x28')](_0x2fd0('0x56')),_0x105e92=_0x1a33ac['plugins']['get']('TableUtils');_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x60')](_0x2fd0('0x34'),_0x28e0dc=>_0x4b0439(_0x26f189,_0x2fd0('0x52'),_0x28e0dc)),this[_0x2fd0('0x7a')](),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x4a')),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x70')),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x1e'));for(const _0x57cfc8 of['insertTableRowAbove','insertTableRowBelow']){const _0x356f43=_0x1a33ac[_0x2fd0('0x73')]['get'](_0x57cfc8);_0x10db91['enableCommand'](_0x57cfc8,_0x230ead=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x5')](_0x445f64=>{_0x230ead();const _0x160a8a=_0x2fd0('0x77')===_0x356f43[_0x2fd0('0x49')],_0x46d357=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x48d93d=_0x105e92[_0x2fd0('0x3b')](_0x46d357),_0x548789=_0x160a8a?_0x48d93d[_0x2fd0('0x29')]-0x1:_0x48d93d[_0x2fd0('0x2e')]+0x1,_0x225989=_0x46d357[0x0][_0x2fd0('0x5c')](_0x2fd0('0x34')),_0x3abd62=_0x105e92[_0x2fd0('0x45')](_0x225989,{'startRow':_0x548789,'endRow':_0x548789}),_0x5274ad=Array[_0x2fd0('0x5d')](_0x3abd62)[_0x2fd0('0x58')](_0x25e584=>_0x445f64[_0x2fd0('0x74')](_0x25e584[_0x2fd0('0x67')]));_0x10db91[_0x2fd0('0xa')](_0x5274ad,_0x2fd0('0x81'));});});}for(const _0x4ea1f8 of[_0x2fd0('0x25'),_0x2fd0('0x84')]){const _0xe2f5db=_0x1a33ac[_0x2fd0('0x73')][_0x2fd0('0x28')](_0x4ea1f8);_0x10db91[_0x2fd0('0x21')](_0x4ea1f8,_0xb6f201=>{_0x1a33ac['model'][_0x2fd0('0x5')](_0x2a06d1=>{_0xb6f201();const _0x374303=_0x2fd0('0x76')===_0xe2f5db[_0x2fd0('0x49')],_0x52592a=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x5a8ed9=_0x105e92['getColumnIndexes'](_0x52592a),_0x2dc6ce=_0x374303?_0x5a8ed9[_0x2fd0('0x29')]-0x1:_0x5a8ed9['last']+0x1,_0x4a7a6d=_0x52592a[0x0][_0x2fd0('0x5c')](_0x2fd0('0x34')),_0x3bf7e7=_0x105e92[_0x2fd0('0x45')](_0x4a7a6d,{'startRow':0x0,'column':_0x2dc6ce,'includeAllSlots':!0x1}),_0x1ea735=Array['from'](_0x3bf7e7)['map'](_0x21d14a=>_0x2a06d1['createRangeOn'](_0x21d14a['cell']));_0x10db91[_0x2fd0('0xa')](_0x1ea735,_0x2fd0('0x47'));});});}for(const _0x2b20b9 of[_0x2fd0('0x51'),_0x2fd0('0x8')]){const _0xbb12ca=_0x2b20b9[_0x2fd0('0x26')](0xb),_0x1cdb67=_0xbb12ca[_0x2fd0('0x2a')](),_0x2af3ae=_0x1cdb67[_0x2fd0('0x26')](0x0,0x3)+_0x2fd0('0x64'),_0x3066ee='table'+_0xbb12ca,_0x418467=_0x2fd0('0x2f')+_0xbb12ca,_0x43ebac=_0x2fd0('0xc')+_0xbb12ca;_0x10db91[_0x2fd0('0x21')](_0x2b20b9,()=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x5')](_0x1e81e6=>{const _0x399132=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x402759=_0x399132[0x0][_0x2fd0('0x5c')]('table');let _0x95fe8c;if('removeTableRow'==_0x2b20b9){const _0x682a99=_0x105e92[_0x2fd0('0x3b')](_0x399132);_0x95fe8c={'startRow':_0x682a99[_0x2fd0('0x29')],'endRow':_0x682a99[_0x2fd0('0x2e')],'includeAllSlots':!0x0};}else{const _0x3946b3=_0x105e92[_0x2fd0('0x78')](_0x399132);_0x95fe8c={'startColumn':_0x3946b3['first'],'endColumn':_0x3946b3[_0x2fd0('0x2e')],'includeAllSlots':!0x0};}const _0x564bb6=_0x105e92[_0x2fd0('0x45')](_0x402759,_0x95fe8c),_0x32ee8b=Array[_0x2fd0('0x5d')](_0x564bb6)[_0x2fd0('0x58')](({cell:_0x43dd59})=>_0x43dd59),_0x39f7cf=se(_0x32ee8b[_0x2fd0('0x36')](_0x10317b=>_0x10317b[_0x2fd0('0x68')](_0x2af3ae))),_0x53032c=se(_0x32ee8b[_0x2fd0('0x36')](_0x357c30=>!_0x357c30[_0x2fd0('0x68')](_0x2af3ae)))[_0x2fd0('0x58')](_0x3df708=>_0x1e81e6[_0x2fd0('0x74')](_0x3df708)),_0x25e28c=_0x10db91[_0x2fd0('0x5f')](_0x53032c,_0x3066ee);if(_0x25e28c&&(_0x2fd0('0x81')==_0x25e28c['subType']||_0x2fd0('0x47')==_0x25e28c[_0x2fd0('0x1f')])){const _0x51e4d6=this[_0x2fd0('0x75')](_0x25e28c);for(const _0x1cf858 of _0x39f7cf){const _0x3fa86c=_0x1e81e6['createRangeOn'](_0x1cf858),_0x9ba377=_0x105e92[_0x2fd0('0x23')](_0x1cf858),_0x133728=_0x1cf858[_0x2fd0('0x8a')](_0x2af3ae)-0x1,_0x19dbdb=_0x51e4d6[_0x418467],_0x17be34=_0x51e4d6[_0x43ebac];_0x19dbdb<=_0x9ba377[_0x1cdb67]&&_0x9ba377[_0x1cdb67]+_0x133728<=_0x17be34&&_0x25e28c[_0x2fd0('0x27')](_0x3fa86c);}}});});}function _0x5e9168(_0x31fda3){const _0x581399=Array[_0x2fd0('0x5d')](_0x2b16d3[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0x287593=>_0x26dd57[_0x2fd0('0x87')](_0x287593));_0x1a33ac['model']['change'](_0x274f7a=>{const _0x3cf654=_0x274f7a[_0x2fd0('0x22')];_0x31fda3=_0x31fda3[_0x2fd0('0x36')](_0x512996=>'$graveyard'!=_0x512996['root'][_0x2fd0('0x86')]),_0x274f7a['setSelection'](_0x31fda3),_0x1a33ac[_0x2fd0('0x73')][_0x2fd0('0x28')](_0x2fd0('0x51'))[_0x2fd0('0x7b')](),_0x1a33ac[_0x2fd0('0x7')](_0x2fd0('0x51'),{'forceDefaultExecution':!0x0}),_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x3a')](()=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x3a')](_0x3cf654,_0x221fe9=>{const _0x2b7d59=_0x581399[_0x2fd0('0x36')](_0x5b8061=>_0x2fd0('0x38')!=_0x5b8061[_0x2fd0('0x40')]['rootName']);_0x2b7d59['length']>0x0&&_0x221fe9[_0x2fd0('0x46')](_0x2b7d59);for(const _0x14e7c8 of _0x581399)_0x14e7c8[_0x2fd0('0x19')]();});});});}function _0x59de36(_0x2f46a1){_0x1a33ac[_0x2fd0('0xd')]['change'](_0x4a9df9=>{const _0x55ae97=Array[_0x2fd0('0x5d')](_0x2b16d3[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0x36daa0=>_0x26dd57['fromRange'](_0x36daa0)),_0x4fd34f=[];for(const _0x2e3230 of _0x2f46a1)for(const _0x39137b of _0x2e3230[_0x2fd0('0x17')]({'shallow':!0x0}))_0x4fd34f[_0x2fd0('0x57')](_0x39137b);for(const _0x2b61e5 of _0x4fd34f)'$graveyard'!=_0x2b61e5[_0x2fd0('0x40')][_0x2fd0('0x86')]&&(_0x4a9df9[_0x2fd0('0x46')](_0x4a9df9[_0x2fd0('0x2')](_0x2b61e5,0x0)),_0x1a33ac['commands'][_0x2fd0('0x28')]('removeTableColumn')[_0x2fd0('0x7b')](),_0x1a33ac['execute'](_0x2fd0('0x8'),{'forceDefaultExecution':!0x0}));const _0x3dbb56=_0x55ae97[_0x2fd0('0x36')](_0x2adde3=>_0x2fd0('0x38')!=_0x2adde3[_0x2fd0('0x40')][_0x2fd0('0x86')]);_0x3dbb56[_0x2fd0('0xf')]>0x0&&_0x4a9df9[_0x2fd0('0x46')](_0x3dbb56);for(const _0x258be2 of _0x55ae97)_0x258be2[_0x2fd0('0x19')]();});}function _0x3ad5de(_0x9add1d,_0x2592ac){return _0x2592ac[_0x2fd0('0x2b')](_0x5a28e9=>_0x9add1d[_0x2fd0('0x4b')](_0x41f851=>_0x41f851[_0x2fd0('0x7d')][_0x2fd0('0x6e')](_0x5a28e9[_0x2fd0('0x53')])||_0x5a28e9['end'][_0x2fd0('0x6e')](_0x41f851[_0x2fd0('0x53')])));}function _0x10c26a(_0x4170e0,_0x5190f1){return _0x4170e0[_0x2fd0('0x4b')](_0x28ec82=>_0x5190f1[_0x2fd0('0x4b')](_0x4337ff=>_0x28ec82[_0x2fd0('0x7d')]['isTouching'](_0x4337ff['start'])));}_0x1a33ac[_0x2fd0('0x88')][_0x2fd0('0x10')]['on'](_0x2fd0('0x39'),(_0x2cdb63,_0x2b0d51,_0x5558ce)=>{if(!_0x5558ce[_0x2fd0('0x1')][_0x2fd0('0x11')])return;const _0x3e28e1=_0x2b0d51[_0x2fd0('0x33')];if(!_0x3e28e1)return;const _0x338552=_0x5558ce[_0x2fd0('0x41')][_0x2fd0('0x4f')](_0x3e28e1);function _0x58c561(_0x864c70){return Array[_0x2fd0('0x71')](_0x864c70)?_0x864c70:[_0x864c70];}_0x338552&&'tableCell'===_0x3e28e1[_0x2fd0('0x1a')]&&_0x363c34(_0x338552,_0x5558ce[_0x2fd0('0x7c')],(_0x57fde3,_0x333792,_0x3d3e7e)=>_0x3d3e7e[_0x2fd0('0xb')](_0x58c561(_0x333792['classes']),_0x57fde3),(_0x2f0b94,_0x2dda86,_0x18c197)=>_0x18c197[_0x2fd0('0x12')](_0x58c561(_0x2dda86['classes']),_0x2f0b94));},{'priority':_0x2fd0('0x89')}),_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x61')](_0x341df8=>{if(_0x2fd0('0x55')!=_0x341df8['type']&&_0x2fd0('0x3f')!=_0x341df8[_0x2fd0('0x79')])return;const _0x439ac7=_0x341df8['getContainedElement']();if(null!=_0x439ac7&&_0x439ac7['is'](_0x2fd0('0x6d'),_0x2fd0('0x34'))){if(_0x2fd0('0x55')==_0x341df8['type']){const _0x54011f=_0x341df8[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xeca5f=>_0xeca5f['is'](_0x2fd0('0x62')))[_0x2fd0('0x58')](_0x5ace35=>_0x5ace35[_0x2fd0('0x88')]);if(_0x54011f[_0x2fd0('0xf')])return{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,'*Insert:*\x20%0',_0x4b0439(_0x26f189,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54011f[_0x2fd0('0x18')]('\x20')+'\x22'))};}if('deletion'==_0x341df8[_0x2fd0('0x79')]){const _0x51c648=_0x341df8[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xda894=>_0xda894['is'](_0x2fd0('0x62')))['map'](_0x1b3431=>_0x1b3431[_0x2fd0('0x88')]);if(_0x51c648[_0x2fd0('0xf')])return{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,'*Remove:*\x20%0',_0x4b0439(_0x26f189,_0x2fd0('0x14'),'\x22'+_0x51c648[_0x2fd0('0x18')]('\x20')+'\x22'))};}}}),_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x61')](_0x368aa1=>{if(_0x2fd0('0x81')==_0x368aa1[_0x2fd0('0x1f')]){const _0x3262f7=_0x368aa1[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xb74ff3=>_0xb74ff3['is'](_0x2fd0('0x62')))['map'](_0x1ee206=>_0x1ee206[_0x2fd0('0x88')]),_0x5e44e8=this[_0x2fd0('0x75')](_0x368aa1),_0x35f478=_0x5e44e8[_0x2fd0('0x32')]-_0x5e44e8['minRow']+0x1;if('insertion'==_0x368aa1[_0x2fd0('0x79')])return _0x3262f7[_0x2fd0('0xf')]?{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,_0x2fd0('0x3e'),[_0x35f478,'\x22'+_0x3262f7[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,_0x2fd0('0x37'),_0x35f478))};if(_0x2fd0('0x3f')==_0x368aa1[_0x2fd0('0x79')])return _0x3262f7[_0x2fd0('0xf')]?{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,_0x2fd0('0x3e'),[_0x35f478,'\x22'+_0x3262f7[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_ROW',_0x35f478))};}if(_0x2fd0('0x47')==_0x368aa1[_0x2fd0('0x1f')]){const _0x24a28d=_0x368aa1[_0x2fd0('0x17')]()['filter'](_0xa007af=>_0xa007af['is']('$textProxy'))[_0x2fd0('0x58')](_0x2a1dc7=>_0x2a1dc7[_0x2fd0('0x88')]),_0x2adef8=this[_0x2fd0('0x75')](_0x368aa1),_0x142d6b=_0x2adef8[_0x2fd0('0x80')]-_0x2adef8[_0x2fd0('0xe')]+0x1;if(_0x2fd0('0x55')==_0x368aa1[_0x2fd0('0x79')])return _0x24a28d[_0x2fd0('0xf')]?{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x142d6b,'\x22'+_0x24a28d['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x4b0439(_0x26f189,'*Insert:*\x20%0',_0x4b0439(_0x26f189,_0x2fd0('0x1b'),_0x142d6b))};if(_0x2fd0('0x3f')==_0x368aa1['type'])return _0x24a28d['length']?{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x142d6b,'\x22'+_0x24a28d[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,_0x2fd0('0x1b'),_0x142d6b))};}}),_0x10db91['_suggestionFactory'][_0x2fd0('0x7e')]('insertion',_0x2fd0('0x81'),'discard',_0x5e9168),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x3f'),_0x2fd0('0x81'),_0x2fd0('0x43'),_0x5e9168),_0x10db91['_suggestionFactory'][_0x2fd0('0x7e')](_0x2fd0('0x55'),_0x2fd0('0x47'),_0x2fd0('0x3d'),_0x59de36),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')]('deletion','tableColumn','accept',_0x59de36),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x55'),_0x2fd0('0x47'),_0x2fd0('0x18'),_0x3ad5de),_0x10db91[_0x2fd0('0x65')]['registerCustomCallback'](_0x2fd0('0x3f'),'tableColumn',_0x2fd0('0x18'),_0x3ad5de),_0x10db91[_0x2fd0('0x65')]['registerCustomCallback'](_0x2fd0('0x55'),_0x2fd0('0x81'),_0x2fd0('0x18'),_0x10c26a),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x3f'),_0x2fd0('0x81'),_0x2fd0('0x18'),_0x10c26a);}[_0x2fd0('0x50')](){const _0xdc8c2d=this[_0x2fd0('0x6c')],_0x4b659d=_0xdc8c2d[_0x2fd0('0xd')][_0x2fd0('0x66')]['selection'];return(_0x415da1,_0x4f494a)=>{_0xdc8c2d[_0x2fd0('0xd')]['change'](_0x508c34=>{const {commandName:_0xc3e43b,commandParams:_0x43124e}=_0x4f494a;let _0x4429c5=_0x415da1[0x0][_0x2fd0('0x7d')]['nodeBefore'];_0x43124e&&_0x43124e[0x0]&&!0x1===_0x43124e[0x0][_0x2fd0('0x2d')]&&(_0x4429c5=_0x415da1[0x0][_0x2fd0('0x53')][_0x2fd0('0x5e')]);const _0x5ccdb8=_0x508c34[_0x2fd0('0x35')](_0x4429c5);if(_0x2fd0('0x38')==_0x5ccdb8[_0x2fd0('0x40')]['rootName'])return;const _0x16cff6=Array[_0x2fd0('0x5d')](_0x4b659d[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0xd30fd5=>_0x26dd57[_0x2fd0('0x87')](_0xd30fd5));_0x508c34[_0x2fd0('0x46')](_0x5ccdb8),_0xdc8c2d[_0x2fd0('0x73')][_0x2fd0('0x28')](_0xc3e43b)[_0x2fd0('0x7b')](),_0x43124e[_0x2fd0('0x57')]({'forceDefaultExecution':!0x0}),_0xdc8c2d[_0x2fd0('0x7')](_0xc3e43b,..._0x43124e);const _0x8fdfaf=_0x16cff6[_0x2fd0('0x36')](_0x217bdf=>_0x2fd0('0x38')!=_0x217bdf[_0x2fd0('0x40')][_0x2fd0('0x86')]);_0x8fdfaf[_0x2fd0('0xf')]>0x0&&_0x508c34[_0x2fd0('0x46')](_0x8fdfaf);for(const _0x5c2f79 of _0x16cff6)_0x5c2f79[_0x2fd0('0x19')]();});};}[_0x2fd0('0x82')](_0x43972a){const _0x4b1f54=this[_0x2fd0('0x6c')]['plugins'][_0x2fd0('0x28')](_0x2fd0('0x54'));let _0x5300da=Number[_0x2fd0('0x1c')],_0x1a68c9=Number[_0x2fd0('0x3')],_0x26e0fb=Number[_0x2fd0('0x1c')],_0x559a31=Number[_0x2fd0('0x3')];for(const _0x314c55 of _0x43972a){if(_0x2fd0('0x38')==_0x314c55[_0x2fd0('0x40')][_0x2fd0('0x86')])continue;const {row:_0x44455e,column:_0x9dec06}=_0x4b1f54['getCellLocation'](_0x314c55),_0x2b27f5=_0x314c55['hasAttribute'](_0x2fd0('0x4c'))?_0x314c55[_0x2fd0('0x8a')](_0x2fd0('0x4c'))-0x1:0x0,_0x90daa=_0x314c55[_0x2fd0('0x68')]('colspan')?_0x314c55[_0x2fd0('0x8a')](_0x2fd0('0x15'))-0x1:0x0;_0x5300da=_0x44455e<_0x5300da?_0x44455e:_0x5300da,_0x1a68c9=_0x44455e+_0x2b27f5>_0x1a68c9?_0x44455e+_0x2b27f5:_0x1a68c9,_0x26e0fb=_0x9dec06<_0x26e0fb?_0x9dec06:_0x26e0fb,_0x559a31=_0x9dec06+_0x90daa>_0x559a31?_0x9dec06+_0x90daa:_0x559a31;}return{'minRow':_0x5300da,'maxRow':_0x1a68c9,'minColumn':_0x26e0fb,'maxColumn':_0x559a31};}['_setupColumnsRowsFixing'](){const _0x4f022e=this['editor'],_0x1c5bf2=_0x4f022e[_0x2fd0('0x5a')]['get'](_0x2fd0('0x56')),_0x1d82e4=_0x4f022e['plugins']['get'](_0x2fd0('0x54'));_0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')]['on'](_0x2fd0('0x6'),()=>{const _0x1ae7f4=Array['from'](_0x4f022e['model'][_0x2fd0('0x66')]['differ'][_0x2fd0('0x4')]());for(const {name:_0x41ee3b,data:_0xd7a6b}of _0x1ae7f4){const {group:_0x1c83c6,id:_0x45f778,subType:_0x30aea5}=_0x1c5bf2['_splitMarkerName'](_0x41ee3b);if(_0x2fd0('0x5b')!=_0x1c83c6)continue;if(null!=_0xd7a6b[_0x2fd0('0x20')])continue;const _0x1552ed=_0x1c5bf2[_0x2fd0('0x48')](_0x45f778);this[_0x2fd0('0x6a')][_0x2fd0('0x30')](_0x30aea5)&&this[_0x2fd0('0x7f')][_0x2fd0('0x13')](_0x1552ed);}},{'priority':_0x2fd0('0x31')});const _0x567da6=(_0x43b4cf,_0x36eb26)=>{let _0x2297a9=!0x1;const _0x47d328=_0x36eb26[_0x2fd0('0x74')](_0x43b4cf),_0x4e4733=_0x43b4cf[_0x2fd0('0x5c')]('table'),_0xc40ee=_0x1d82e4[_0x2fd0('0x23')](_0x43b4cf);for(const _0x1969bc of this[_0x2fd0('0x7f')]){const _0x30b473=_0x1969bc['subType'],_0x3b3edb=_0x30b473[_0x2fd0('0x83')](_0x2fd0('0x0')),_0x58d621=_0x30b473['substr'](_0x3b3edb?0xa:0x5),_0x12bf8e=_0x58d621[_0x2fd0('0x2a')](),_0x1cc5c6=_0x12bf8e[_0x2fd0('0x26')](0x0,0x3)+'span',_0x487997=_0x2fd0('0x2f')+_0x58d621,_0x46cf2a=_0x2fd0('0xc')+_0x58d621;if(!_0x1969bc[_0x2fd0('0x42')])continue;if(_0x4e4733!=_0x1969bc[_0x2fd0('0x6b')]()['start'][_0x2fd0('0x5c')](_0x2fd0('0x34')))continue;if(_0x1969bc['isIntersectingWithRange'](_0x47d328))continue;const _0x189885=_0x43b4cf[_0x2fd0('0x68')](_0x1cc5c6)?_0x43b4cf['getAttribute'](_0x1cc5c6)-0x1:0x0,_0x176583=this[_0x2fd0('0x75')](_0x1969bc),_0xa09d10=_0x176583[_0x487997],_0x323c18=_0x176583[_0x46cf2a];_0xa09d10<=_0xc40ee[_0x12bf8e]&&_0xc40ee[_0x12bf8e]+_0x189885<=_0x323c18&&(_0x1969bc[_0x2fd0('0x27')](_0x47d328),_0x2297a9=!0x0);}return _0x2297a9;};_0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')][_0x2fd0('0x16')](_0x55adc8=>{let _0x4a7cbc=!0x1;for(const _0x2552a8 of _0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')][_0x2fd0('0x1d')]['getChanges']())if(_0x2fd0('0x6f')==_0x2552a8['type']){if('tableRow'==_0x2552a8['name'])for(const _0x1e8b52 of _0x2552a8[_0x2fd0('0x85')]['nodeAfter'][_0x2fd0('0x63')]())_0x4a7cbc=_0x4a7cbc||_0x567da6(_0x1e8b52,_0x55adc8);else'tableCell'==_0x2552a8['name']&&(_0x4a7cbc=_0x4a7cbc||_0x567da6(_0x2552a8['position'][_0x2fd0('0x5e')],_0x55adc8));}return _0x4a7cbc;});}[_0x2fd0('0x75')](_0xd5a485){return this[_0x2fd0('0x82')](_0xd5a485['getRanges']()[_0x2fd0('0x58')](_0x466330=>_0x466330['start'][_0x2fd0('0x5e')]));}}function se(_0x59c0b){return Array[_0x2fd0('0x5d')](new Set(_0x59c0b)[_0x2fd0('0x24')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2793=['requires','afterInit','get','editor','TrackChangesEditing','plugins'];(function(_0x261598,_0x2793e9){const _0x142bde=function(_0x3730e3){while(--_0x3730e3){_0x261598['push'](_0x261598['shift']());}};_0x142bde(++_0x2793e9);}(_0x2793,0x104));const _0x142b=function(_0x261598,_0x2793e9){_0x261598=_0x261598-0x0;let _0x142bde=_0x2793[_0x261598];return _0x142bde;};import{Plugin as _0xcc4d49}from'ckeditor5/src/core';import _0x1ea924 from'./table';export default class Nt extends _0xcc4d49{static get[_0x142b('0x4')](){return[_0x1ea924];}[_0x142b('0x5')](){const _0x59a6b6=this[_0x142b('0x1')];if(!_0x59a6b6[_0x142b('0x3')]['has']('TableCaptionEditing'))return;_0x59a6b6['plugins'][_0x142b('0x0')](_0x142b('0x2'))['enableCommand']('toggleTableCaption');}}
|