@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.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 _0x1368=['registerElementLabel','List','findIndex','add','commandParams','commandName','before','TodoListEditing','ListEditing','commands','value','bulletedList','_selectedElements','format','push','todoListChecked','locale','ELEMENT_LIST_ITEM','enableCommand','type','checkTodoList','listItem','createPositionAt','from','filter','blockName','selection','registerDescriptionCallback','change','has','listIndent','getSelectedBlocks','afterInit','get','forceValue','createRange','todoList','ELEMENT_NUMBERED_LIST','todo','*Indent:*\x20%0','checkChild','_descriptionFactory','execute','ELEMENT_TODO_LIST','previousSibling','paragraph','markBlockFormat','length','name','*Uncheck\x20item*','TrackChangesEditing','indentList','model','schema','numberedList','*Change\x20to:*\x20%0','document','listType','getAttribute','nextSibling','ELEMENT_BULLETED_LIST','replace','element','plugins','slice','outdentList'];(function(_0x449649,_0x136814){const _0x48d9d4=function(_0x541525){while(--_0x541525){_0x449649['push'](_0x449649['shift']());}};_0x48d9d4(++_0x136814);}(_0x1368,0x184));const _0x48d9=function(_0x449649,_0x136814){_0x449649=_0x449649-0x0;let _0x48d9d4=_0x1368[_0x449649];return _0x48d9d4;};import{Plugin as _0xe11f95}from'ckeditor5/src/core';import{getTranslation as _0x5cf170}from'../utils/common-translations';export default class ct extends _0xe11f95{[_0x48d9('0x28')](){const _0x35dfd3=this['editor'],_0x29cbc6=_0x35dfd3[_0x48d9('0x18')];if(!_0x35dfd3[_0x48d9('0x5')][_0x48d9('0x25')](_0x48d9('0x10')))return;const _0x448417=_0x35dfd3[_0x48d9('0x5')][_0x48d9('0x29')](_0x48d9('0x3a')),_0x27a4e4=_0x35dfd3[_0x48d9('0x5')][_0x48d9('0x25')](_0x48d9('0xf'));function _0x5ca681(_0x172071){return()=>{const _0x5e3cd0=_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x40')][_0x48d9('0x22')],_0x3a7535=_0x35dfd3[_0x48d9('0x11')][_0x48d9('0x29')](_0x172071);if(_0x3a7535[_0x48d9('0x12')])return void _0x35dfd3[_0x48d9('0x32')](_0x48d9('0x35'),{});const _0x5e7fa6=_0x172071[_0x48d9('0x6')](0x0,-0x4),_0x2bef23=function(_0x416f5f,_0x2eff58,_0xdf46f8){let _0x4328bf=Array[_0x48d9('0x1f')](_0x416f5f)['filter'](_0x20c09d=>function(_0x287e4b,_0x304676){return _0x304676[_0x48d9('0x30')](_0x287e4b['parent'],_0x48d9('0x1d'))&&!_0x304676['isObject'](_0x287e4b);}(_0x20c09d,_0xdf46f8));_0x4328bf=_0x4328bf['filter'](_0x3c3c1d=>!_0x3c3c1d['is']('element',_0x48d9('0x1d'))||_0x3c3c1d[_0x48d9('0x0')](_0x48d9('0x41'))!=_0x2eff58);const _0xdaf567=new Set();for(const _0x283c42 of _0x4328bf)_0x283c42['is'](_0x48d9('0x4'),_0x48d9('0x1d'))?_0xdaf567[_0x48d9('0xb')](ne(_0x283c42)):_0xdaf567[_0x48d9('0xb')](_0x283c42);return Array[_0x48d9('0x1f')](_0xdaf567);}(_0x5e3cd0['getSelectedBlocks'](),_0x5e7fa6,_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x3d')]);_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x24')](()=>{for(const _0x368c01 of _0x2bef23)_0x448417[_0x48d9('0x36')](_0x368c01,{'commandName':_0x172071,'commandParams':[{'forceValue':!_0x3a7535['value']}],'formatGroupId':_0x48d9('0x21')},oe(_0x368c01));});};}function _0x5eb794(_0x5ae943){return()=>{const _0x517c93=function(_0x2e5a04){let _0x1c16bd=Array[_0x48d9('0x1f')](_0x2e5a04);const _0x2aec2a=_0x1c16bd[_0x48d9('0xa')](_0x119a3b=>'listItem'!=_0x119a3b[_0x48d9('0x38')]);return _0x2aec2a>-0x1&&(_0x1c16bd=_0x1c16bd[_0x48d9('0x6')](0x0,_0x2aec2a)),_0x1c16bd;}(_0x35dfd3[_0x48d9('0x3c')]['document'][_0x48d9('0x22')][_0x48d9('0x27')]()),_0x266378=_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x2b')](_0x35dfd3['model'][_0x48d9('0x1e')](_0x517c93[0x0],_0x48d9('0xe')),_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x1e')](_0x517c93[_0x517c93[_0x48d9('0x37')]-0x1],'end'));_0x35dfd3[_0x48d9('0x3c')]['change'](()=>{_0x448417['markBlockFormat'](_0x266378,{'commandName':_0x5ae943,'commandParams':[],'formatGroupId':_0x48d9('0x26')},function(_0x5180b3){const _0x5f56cc=new Set();for(const _0x18b46d of _0x5180b3){let _0x3e05b1=_0x18b46d[_0x48d9('0x1')];for(;_0x3e05b1&&_0x3e05b1[_0x48d9('0x0')](_0x48d9('0x26'))>_0x18b46d[_0x48d9('0x0')](_0x48d9('0x26'));)_0x5f56cc[_0x48d9('0xb')](_0x3e05b1),_0x3e05b1=_0x3e05b1[_0x48d9('0x1')];}return Array['from'](_0x5f56cc);}(_0x517c93));});};}_0x448417[_0x48d9('0x1a')](_0x48d9('0x3e'),_0x5ca681('numberedList')),_0x448417[_0x48d9('0x1a')]('bulletedList',_0x5ca681(_0x48d9('0x13'))),_0x27a4e4&&_0x448417['enableCommand'](_0x48d9('0x2c'),_0x5ca681(_0x48d9('0x2c'))),_0x448417[_0x48d9('0x1a')](_0x48d9('0x3b'),_0x5eb794(_0x48d9('0x3b'))),_0x448417['enableCommand']('outdentList',_0x5eb794(_0x48d9('0x7'))),_0x27a4e4&&_0x448417[_0x48d9('0x1a')](_0x48d9('0x1c'),()=>{const _0x3be1e4=_0x35dfd3['commands']['get'](_0x48d9('0x1c')),_0x239216=Array[_0x48d9('0x1f')](_0x3be1e4[_0x48d9('0x14')]);_0x239216[_0x48d9('0x20')](_0x30f51b=>_0x30f51b['getAttribute'](_0x48d9('0x17'))!=_0x3be1e4[_0x48d9('0x12')]),_0x35dfd3[_0x48d9('0x3c')][_0x48d9('0x24')](()=>{for(const _0x3b093f of _0x239216)_0x448417[_0x48d9('0x36')](_0x3b093f,{'commandName':_0x48d9('0x1c'),'commandParams':[{'forceValue':!_0x3be1e4[_0x48d9('0x12')]}]});});}),_0x448417['_descriptionFactory'][_0x48d9('0x8')](_0x48d9('0x1d'),_0x49bd30=>_0x5cf170(_0x29cbc6,_0x48d9('0x19'),_0x49bd30)),_0x448417[_0x48d9('0x31')][_0x48d9('0x23')](_0x2b2fd0=>{if('formatBlock'!=_0x2b2fd0[_0x48d9('0x1b')]&&'formatInline'!=_0x2b2fd0[_0x48d9('0x1b')])return;const {data:_0x22cff8}=_0x2b2fd0;if(_0x22cff8){if('numberedList'==_0x22cff8[_0x48d9('0xd')]||_0x48d9('0x13')==_0x22cff8[_0x48d9('0xd')]||_0x48d9('0x2c')==_0x22cff8['commandName'])switch(_0x22cff8[_0x48d9('0xd')][_0x48d9('0x3')](_0x48d9('0x9'),'')){case'bulleted':return _0x508c0e(_0x5cf170(_0x29cbc6,_0x48d9('0x2')));case'numbered':return _0x508c0e(_0x5cf170(_0x29cbc6,_0x48d9('0x2d')));case _0x48d9('0x2e'):return _0x508c0e(_0x5cf170(_0x29cbc6,_0x48d9('0x33')));}if(_0x48d9('0x3b')==_0x22cff8['commandName'])return{'type':_0x48d9('0x15'),'content':_0x5cf170(_0x29cbc6,_0x48d9('0x2f'),_0x5cf170(_0x29cbc6,'ELEMENT_LIST_ITEM'))};if(_0x48d9('0x7')==_0x22cff8[_0x48d9('0xd')])return{'type':_0x48d9('0x15'),'content':_0x5cf170(_0x29cbc6,'*Outdent:*\x20%0',_0x5cf170(_0x29cbc6,_0x48d9('0x19')))};if(_0x48d9('0x1c')==_0x22cff8[_0x48d9('0xd')])return _0x22cff8[_0x48d9('0xc')][0x0][_0x48d9('0x2a')]?{'type':_0x48d9('0x15'),'content':_0x5cf170(_0x29cbc6,'*Check\x20item*')}:{'type':_0x48d9('0x15'),'content':_0x5cf170(_0x29cbc6,_0x48d9('0x39'))};}function _0x508c0e(_0x13af32){return{'type':_0x48d9('0x15'),'content':_0x5cf170(_0x29cbc6,_0x48d9('0x3f'),_0x13af32)};}});}}function ne(_0x4fd5d1){const _0x355b35=_0x4fd5d1[_0x48d9('0x0')](_0x48d9('0x26'));if(0x0==_0x355b35)return _0x4fd5d1;let _0x3cb97d=_0x4fd5d1;for(;_0x4fd5d1[_0x48d9('0x34')]&&_0x4fd5d1[_0x48d9('0x34')]['is'](_0x48d9('0x4'),_0x48d9('0x1d'));){const _0x500f15=_0x4fd5d1[_0x48d9('0x34')][_0x48d9('0x0')](_0x48d9('0x26'));if(_0x500f15==_0x355b35)_0x3cb97d=_0x4fd5d1[_0x48d9('0x34')];else{if(_0x500f15<_0x355b35)break;}_0x4fd5d1=_0x4fd5d1[_0x48d9('0x34')];}return _0x3cb97d;}function oe(_0x4202f9){const _0x311875=[];if(_0x4202f9['is'](_0x48d9('0x4'),_0x48d9('0x1d'))&&_0x4202f9[_0x48d9('0x0')](_0x48d9('0x26'))>0x0){let _0x507937=_0x4202f9['nextSibling'];for(;_0x507937&&_0x48d9('0x1d')==_0x507937[_0x48d9('0x38')]&&_0x507937[_0x48d9('0x0')](_0x48d9('0x26'))==_0x4202f9['getAttribute'](_0x48d9('0x26'));)_0x311875[_0x48d9('0x16')](_0x507937),_0x507937=_0x507937[_0x48d9('0x1')];}return _0x311875;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x776b=['registerDescriptionCallback','ListUtils','element','listType','_getSuggestionBlocks','listStart','handleListReversedCommand','enableCommand','afterInit','model','getLastPosition','formatBlock','_LIST_','*Format:*\x20set\x20order\x20to\x20reversed','parent','getListTypeFromListStyleType','from','getSiblingNodes','before','bind','has','_getSuggestionBlocksForListStyle','commandName','createRange','commandParams','selection','listItem','createPositionAt','unshift','_descriptionFactory','*Format:*\x20set\x20start\x20index\x20to\x20%0','list.properties','TrackChangesEditing','toUpperCase','type','document','push','handleListStyleCommand','filter','ListPropertiesEditing','forward','listStyle','backward','replace','get','plugins','reversed','length','handleDescriptions','styles','numbered','flat','*Format:*\x20set\x20order\x20to\x20regular','_getTranslationKeyForListStyle','handleListStartCommand','getFirstPosition','listReversed','getSelectedBlocks','startIndex','map','change','format','markMultiRangeBlockFormat','editor','getAttribute'];(function(_0x39b6a6,_0x776b08){const _0x5d7e82=function(_0x1e61e3){while(--_0x1e61e3){_0x39b6a6['push'](_0x39b6a6['shift']());}};_0x5d7e82(++_0x776b08);}(_0x776b,0x156));const _0x5d7e=function(_0x39b6a6,_0x776b08){_0x39b6a6=_0x39b6a6-0x0;let _0x5d7e82=_0x776b[_0x39b6a6];return _0x5d7e82;};import{Plugin as _0x38f0f0}from'ckeditor5/src/core';import{getTranslation as _0x15bd81}from'../utils/common-translations';export default class ut extends _0x38f0f0{[_0x5d7e('0x38')](){if(!this[_0x5d7e('0x2e')]['plugins'][_0x5d7e('0x3')](_0x5d7e('0x16')))return;const _0x1ce686=this['editor']['config'][_0x5d7e('0x1b')](_0x5d7e('0xe')),_0x5b4c4e=this[_0x5d7e('0x2e')][_0x5d7e('0x1c')][_0x5d7e('0x1b')]('TrackChangesEditing');_0x1ce686[_0x5d7e('0x20')]&&_0x5b4c4e[_0x5d7e('0x37')]('listStyle',this[_0x5d7e('0x14')][_0x5d7e('0x2')](this)),_0x1ce686['reversed']&&_0x5b4c4e[_0x5d7e('0x37')](_0x5d7e('0x27'),this['handleListReversedCommand']['bind'](this)),_0x1ce686[_0x5d7e('0x29')]&&_0x5b4c4e['enableCommand']('listStart',this[_0x5d7e('0x25')]['bind'](this)),_0x5b4c4e[_0x5d7e('0xc')][_0x5d7e('0x30')](this['handleDescriptions']['bind'](this));}[_0x5d7e('0x14')](_0x2825be,_0x45d7d5={}){const _0x1bb7f0=this[_0x5d7e('0x2e')][_0x5d7e('0x1c')][_0x5d7e('0x1b')](_0x5d7e('0xf')),_0x3b1c65=this[_0x5d7e('0x4')]();this['editor'][_0x5d7e('0x39')][_0x5d7e('0x2b')](()=>{_0x1bb7f0[_0x5d7e('0x2d')](_0x3b1c65,{'commandName':_0x5d7e('0x18'),'commandParams':[{'type':_0x45d7d5['type']}],'formatGroupId':_0x5d7e('0x18')});});}[_0x5d7e('0x36')](_0x3c34c8,_0x4bff58={}){const _0xd91cdc=this['editor']['plugins'][_0x5d7e('0x1b')](_0x5d7e('0xf')),_0x5745ba=this[_0x5d7e('0x34')](_0x101291=>_0x101291['is'](_0x5d7e('0x32'),'listItem')&&_0x5d7e('0x21')===_0x101291[_0x5d7e('0x2f')](_0x5d7e('0x33')));if(_0x5745ba[_0x5d7e('0x1e')]<0x1)return;const _0x3766e2=_0x5745ba[_0x5d7e('0x2a')](_0x5f0222=>this['editor'][_0x5d7e('0x39')][_0x5d7e('0x6')](this[_0x5d7e('0x2e')]['model'][_0x5d7e('0xa')](_0x5f0222,_0x5d7e('0x1')),this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0xa')](_0x5f0222,0x0)));this['editor'][_0x5d7e('0x39')][_0x5d7e('0x2b')](()=>{_0xd91cdc[_0x5d7e('0x2d')](_0x3766e2,{'commandName':'listReversed','commandParams':[{'reversed':_0x4bff58['reversed']}],'formatGroupId':_0x5d7e('0x27')});});}[_0x5d7e('0x25')](_0x1098c5,_0xe5e5c1={}){const _0x336498=this[_0x5d7e('0x2e')][_0x5d7e('0x1c')][_0x5d7e('0x1b')](_0x5d7e('0xf')),_0x692404=this[_0x5d7e('0x34')](_0x488dbd=>_0x488dbd['is'](_0x5d7e('0x32'),'listItem')&&_0x5d7e('0x21')===_0x488dbd[_0x5d7e('0x2f')]('listType'));if(_0x692404[_0x5d7e('0x1e')]<0x1)return;const _0x56b20a=_0x692404[_0x5d7e('0x2a')](_0x2072dd=>this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0x6')](this['editor'][_0x5d7e('0x39')]['createPositionAt'](_0x2072dd,'before'),this[_0x5d7e('0x2e')][_0x5d7e('0x39')]['createPositionAt'](_0x2072dd,0x0)));this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0x2b')](()=>{_0x336498[_0x5d7e('0x2d')](_0x56b20a,{'commandName':_0x5d7e('0x35'),'commandParams':[{'startIndex':_0xe5e5c1[_0x5d7e('0x29')]}],'formatGroupId':'listStart'});});}[_0x5d7e('0x1f')](_0x560093){if(_0x5d7e('0x3b')!=_0x560093[_0x5d7e('0x11')]&&'formatInline'!=_0x560093[_0x5d7e('0x11')])return;const _0x1c7969=this[_0x5d7e('0x2e')]['locale'],{data:_0x37839b}=_0x560093;if(!_0x37839b)return;let _0x365919,_0x165712;switch(_0x37839b[_0x5d7e('0x5')]){case'listStyle':_0x365919='*Change\x20to:*\x20%0',_0x165712={'type':_0x5d7e('0x2c'),'content':_0x15bd81(_0x1c7969,_0x365919,_0x15bd81(_0x1c7969,this[_0x5d7e('0x24')](_0x37839b['commandParams'][0x0][_0x5d7e('0x11')])))};break;case _0x5d7e('0x27'):_0x365919=_0x37839b[_0x5d7e('0x7')][0x0][_0x5d7e('0x1d')]?_0x5d7e('0x3d'):_0x5d7e('0x23'),_0x165712={'type':_0x5d7e('0x2c'),'content':_0x15bd81(_0x1c7969,_0x365919)};break;case _0x5d7e('0x35'):_0x365919=_0x5d7e('0xd'),_0x165712={'type':_0x5d7e('0x2c'),'content':_0x15bd81(_0x1c7969,_0x365919,_0x37839b[_0x5d7e('0x7')][0x0][_0x5d7e('0x29')])};}return _0x165712;}[_0x5d7e('0x4')](){var _0x8a2c84,_0x1e5411,_0x2fa93c,_0x4f8e98;const _0xebcb77=this[_0x5d7e('0x2e')][_0x5d7e('0x1c')][_0x5d7e('0x1b')]('ListUtils');let _0xf412c1=Array[_0x5d7e('0x40')](this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0x12')][_0x5d7e('0x8')][_0x5d7e('0x28')]());return(null===(_0x8a2c84=_0xf412c1[0x0])||void 0x0===_0x8a2c84?void 0x0:_0x8a2c84['is'](_0x5d7e('0x32'),_0x5d7e('0x9')))&&_0xf412c1[_0x5d7e('0xb')](..._0xebcb77[_0x5d7e('0x0')](this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0x12')][_0x5d7e('0x8')][_0x5d7e('0x26')](),_0x5d7e('0x19'))),(null===(_0x1e5411=_0xf412c1[_0xf412c1[_0x5d7e('0x1e')]-0x1])||void 0x0===_0x1e5411?void 0x0:_0x1e5411['is'](_0x5d7e('0x32'),'listItem'))&&_0xf412c1[_0x5d7e('0x13')](..._0xebcb77['getSiblingNodes'](this[_0x5d7e('0x2e')][_0x5d7e('0x39')][_0x5d7e('0x12')]['selection'][_0x5d7e('0x3a')](),_0x5d7e('0x17'))),_0xf412c1=[...new Set(_0xf412c1)],(null===(_0x4f8e98=null===(_0x2fa93c=this['editor'][_0x5d7e('0x39')][_0x5d7e('0x12')][_0x5d7e('0x8')][_0x5d7e('0x26')]())||void 0x0===_0x2fa93c?void 0x0:_0x2fa93c[_0x5d7e('0x3e')])||void 0x0===_0x4f8e98?void 0x0:_0x4f8e98['is'](_0x5d7e('0x32'),_0x5d7e('0x9')))&&(_0xf412c1=_0xf412c1[_0x5d7e('0x15')](_0x57d3ea=>_0x57d3ea['is'](_0x5d7e('0x32'),_0x5d7e('0x9')))),_0xf412c1;}[_0x5d7e('0x34')](_0x6c948d){const _0x51f38a=this[_0x5d7e('0x2e')][_0x5d7e('0x1c')][_0x5d7e('0x1b')](_0x5d7e('0x31'));let _0x52374a=Array[_0x5d7e('0x40')](this['editor'][_0x5d7e('0x39')]['document'][_0x5d7e('0x8')]['getSelectedBlocks']())[_0x5d7e('0x15')](_0x6c948d)['map'](_0x3ce0c2=>{const _0x14a221=this['editor'][_0x5d7e('0x39')][_0x5d7e('0xa')](_0x3ce0c2,0x0);return[..._0x51f38a['getSiblingNodes'](_0x14a221,'backward'),..._0x51f38a['getSiblingNodes'](_0x14a221,_0x5d7e('0x17'))];})[_0x5d7e('0x22')]();return _0x52374a=[...new Set(_0x52374a)],_0x52374a;}[_0x5d7e('0x24')](_0x30e785){return'ELEMENT_'+this[_0x5d7e('0x2e')]['plugins'][_0x5d7e('0x1b')](_0x5d7e('0x31'))[_0x5d7e('0x3f')](_0x30e785)[_0x5d7e('0x10')]()+_0x5d7e('0x3c')+_0x30e785[_0x5d7e('0x10')]()[_0x5d7e('0x1a')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe703=['for','mediaEmbed','editor','downcastDispatcher','conversion','high','locale','media','createEmptyElement','options','TrackChangesEditing','ELEMENT_MEDIA','showSuggestionHighlights','plugins','registerElementLabel','dataDowncast','div','enableCommand','has'];(function(_0x45f203,_0xe7031c){const _0x3b4ee2=function(_0x1528d3){while(--_0x1528d3){_0x45f203['push'](_0x45f203['shift']());}};_0x3b4ee2(++_0xe7031c);}(_0xe703,0x18a));const _0x3b4e=function(_0x45f203,_0xe7031c){_0x45f203=_0x45f203-0x0;let _0x3b4ee2=_0xe703[_0x45f203];return _0x3b4ee2;};import{Plugin as _0x2ea74c}from'ckeditor5/src/core';import{getTranslation as _0x413771}from'../utils/common-translations';export default class ht extends _0x2ea74c{['afterInit'](){const _0x53a3ed=this[_0x3b4e('0x7')];if(!_0x53a3ed[_0x3b4e('0x12')][_0x3b4e('0x4')]('MediaEmbedEditing'))return;const _0x5f5231=_0x53a3ed['plugins']['get'](_0x3b4e('0xf')),_0x4651d7=_0x53a3ed[_0x3b4e('0xb')];_0x5f5231[_0x3b4e('0x3')](_0x3b4e('0x6')),_0x5f5231['_descriptionFactory'][_0x3b4e('0x0')](_0x3b4e('0xc'),_0x351597=>_0x413771(_0x4651d7,_0x3b4e('0x10'),_0x351597)),_0x53a3ed[_0x3b4e('0x9')][_0x3b4e('0x5')](_0x3b4e('0x1'))['elementToElement']({'model':_0x3b4e('0xc'),'view':(_0x5494c0,{writer:_0x5e7f2b,options:_0x837c4})=>{if(_0x837c4['showSuggestionHighlights'])return _0x5e7f2b[_0x3b4e('0xd')](_0x3b4e('0x2'));},'converterPriority':_0x3b4e('0xa')}),_0x53a3ed['data'][_0x3b4e('0x8')]['on']('attribute:url:media',(_0xc4ebd0,_0x552df5,_0xe3dfa4)=>{_0xe3dfa4[_0x3b4e('0xe')][_0x3b4e('0x11')]&&_0xc4ebd0['stop']();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1701=['has','afterInit','enableCommand','mention','MentionEditing'];(function(_0x25f054,_0x1701f7){const _0x35fa17=function(_0x33de69){while(--_0x33de69){_0x25f054['push'](_0x25f054['shift']());}};_0x35fa17(++_0x1701f7);}(_0x1701,0x103));const _0x35fa=function(_0x25f054,_0x1701f7){_0x25f054=_0x25f054-0x0;let _0x35fa17=_0x1701[_0x25f054];return _0x35fa17;};import{Plugin as _0x377665}from'ckeditor5/src/core';export default class ft extends _0x377665{[_0x35fa('0x2')](){const _0x17f4e4=this['editor'];_0x17f4e4['plugins'][_0x35fa('0x1')](_0x35fa('0x0'))&&_0x17f4e4['plugins']['get']('TrackChangesEditing')[_0x35fa('0x3')](_0x35fa('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x346e=['plugins','ELEMENT_PAGE_BREAK','PageBreakEditing','has','locale','afterInit','TrackChangesEditing','pageBreak','enableCommand'];(function(_0x2d5a7e,_0x346eaf){const _0x5e95ed=function(_0x4206ce){while(--_0x4206ce){_0x2d5a7e['push'](_0x2d5a7e['shift']());}};_0x5e95ed(++_0x346eaf);}(_0x346e,0x122));const _0x5e95=function(_0x2d5a7e,_0x346eaf){_0x2d5a7e=_0x2d5a7e-0x0;let _0x5e95ed=_0x346e[_0x2d5a7e];return _0x5e95ed;};import{Plugin as _0xc5bdf8}from'ckeditor5/src/core';import{getTranslation as _0x56ccb1}from'../utils/common-translations';export default class gt extends _0xc5bdf8{[_0x5e95('0x3')](){const _0x30e7ba=this['editor'];if(!_0x30e7ba[_0x5e95('0x7')][_0x5e95('0x1')](_0x5e95('0x0')))return;_0x30e7ba[_0x5e95('0x7')]['get']('TrackChangesEditing')[_0x5e95('0x6')](_0x5e95('0x5'));const _0x95c4fd=_0x30e7ba[_0x5e95('0x7')]['get'](_0x5e95('0x4')),_0x1e4804=_0x30e7ba[_0x5e95('0x2')];_0x95c4fd['_descriptionFactory']['registerElementLabel']('pageBreak',_0x3d41e0=>_0x56ccb1(_0x1e4804,_0x5e95('0x8'),_0x3d41e0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d65=['showSuggestionHighlights','isBlock','ELEMENT_PARAGRAPH','insertion','model','_registerLegacyDescription','locale','format','writer','insertParagraph','afterInit','_descriptionFactory','mapper','nodeAfter','start','ck-suggestion-marker-split','data','enableCommand','span','toViewPosition','consumable','end','get','ck-suggestion-marker--active','editor','registerDescriptionCallback','markerRange','commandName','getFirstRange','TrackChangesEditing','schema','plugins','isLimit','consume','formatBlock','has','getItemLabel','editing','markerName','_enableDefaultAttributesIntegration','highest','checkChild','$text','downcastDispatcher','includes','*Change\x20to:*\x20%0','*Insert:*\x20%0','isTouching','Paragraph','createUIElement','activeMarkers'];(function(_0x5ea231,_0x4d65a3){const _0x3ea288=function(_0x50d0e2){while(--_0x50d0e2){_0x5ea231['push'](_0x5ea231['shift']());}};_0x3ea288(++_0x4d65a3);}(_0x4d65,0x1f1));const _0x3ea2=function(_0x5ea231,_0x4d65a3){_0x5ea231=_0x5ea231-0x0;let _0x3ea288=_0x4d65[_0x5ea231];return _0x3ea288;};import{Plugin as _0x593d04}from'ckeditor5/src/core';import{getTranslation as _0x5bf608}from'../utils/common-translations';export default class lt extends _0x593d04{[_0x3ea2('0x17')](){const _0x52bead=this[_0x3ea2('0x25')];if(!_0x52bead[_0x3ea2('0x2c')][_0x3ea2('0x30')](_0x3ea2('0xa')))return;const _0x5767e2=_0x52bead[_0x3ea2('0x13')],_0xa0d6a7=_0x52bead[_0x3ea2('0x2c')][_0x3ea2('0x23')](_0x3ea2('0x2a'));_0xa0d6a7[_0x3ea2('0x18')]['registerElementLabel']('paragraph',_0x460323=>_0x5bf608(_0x5767e2,_0x3ea2('0xf'),_0x460323)),_0xa0d6a7[_0x3ea2('0x1')]('paragraph'),_0xa0d6a7[_0x3ea2('0x1e')](_0x3ea2('0x16')),_0x52bead[_0x3ea2('0x32')][_0x3ea2('0x5')]['on']('addMarker:suggestion:insertion',nr(_0x52bead),{'priority':_0x3ea2('0x2')}),_0x52bead[_0x3ea2('0x1d')][_0x3ea2('0x5')]['on']('addMarker:suggestion:insertion',(_0x55ce8b,_0x5d0633,_0x251a21)=>{_0x251a21['options'][_0x3ea2('0xd')]&&nr(_0x52bead,{'showActiveMarker':!0x1})(_0x55ce8b,_0x5d0633,_0x251a21);},{'priority':'highest'});const _0x5bd1e3=_0xa0d6a7[_0x3ea2('0x18')];_0x5bd1e3[_0x3ea2('0x26')](_0x5b6b40=>{if(_0x3ea2('0x10')!==_0x5b6b40['type'])return;const {start:_0x229291,end:_0x40f3f5}=_0x5b6b40[_0x3ea2('0x29')]();if(!_0x229291['isTouching'](_0x40f3f5)||!_0x229291['nodeAfter'])return;const _0x3652e9=_0x52bead[_0x3ea2('0x11')][_0x3ea2('0x2b')],_0x12ae6a=_0x229291['nodeAfter'];return _0x3652e9[_0x3ea2('0xe')](_0x12ae6a)&&!_0x3652e9[_0x3ea2('0x2d')](_0x12ae6a)&&_0x3652e9[_0x3ea2('0x3')](_0x12ae6a,_0x3ea2('0x4'))?{'type':'insertion','content':_0x5bf608(_0x5767e2,_0x3ea2('0x8'),_0x5bd1e3[_0x3ea2('0x31')](_0x12ae6a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}[_0x3ea2('0x12')](){const _0x357780=this[_0x3ea2('0x25')],_0x1b1c66=_0x357780['locale'];_0x357780[_0x3ea2('0x2c')]['get'](_0x3ea2('0x2a'))[_0x3ea2('0x18')]['registerDescriptionCallback'](_0x1efb73=>{if(_0x3ea2('0x2f')!=_0x1efb73['type'])return;const {data:_0x336711}=_0x1efb73;return _0x336711&&'paragraph'==_0x336711[_0x3ea2('0x28')]?{'type':_0x3ea2('0x14'),'content':_0x5bf608(_0x1b1c66,_0x3ea2('0x7'),_0x5bf608(_0x1b1c66,_0x3ea2('0xf')))}:void 0x0;});}}function nr(_0x777f61,{showActiveMarker:_0x4cf484=!0x0}={}){return(_0x392346,_0x1d4b82,_0x1ccff1)=>{const _0x5a2f9c=_0x777f61[_0x3ea2('0x2c')][_0x3ea2('0x23')](_0x3ea2('0x2a')),_0x25fbb6=_0x1d4b82[_0x3ea2('0x27')][_0x3ea2('0x1b')],_0x3833a0=_0x1d4b82[_0x3ea2('0x27')][_0x3ea2('0x22')],_0x49039d=_0x777f61[_0x3ea2('0x11')]['schema'];if(!_0x25fbb6[_0x3ea2('0x9')](_0x3833a0)||!_0x25fbb6['nodeAfter'])return;const _0x188a8b=_0x25fbb6[_0x3ea2('0x1a')];if(_0x49039d[_0x3ea2('0xe')](_0x188a8b)&&!_0x49039d['isLimit'](_0x188a8b)&&_0x49039d[_0x3ea2('0x3')](_0x188a8b,_0x3ea2('0x4'))){if(!_0x1ccff1[_0x3ea2('0x21')][_0x3ea2('0x2e')](_0x1d4b82[_0x3ea2('0x27')],_0x392346['name']))return;const _0x49da55=_0x1ccff1[_0x3ea2('0x15')][_0x3ea2('0xb')](_0x3ea2('0x1f'),{'class':_0x3ea2('0x1c')}),_0x134ff4=_0x1ccff1[_0x3ea2('0x19')][_0x3ea2('0x20')](_0x3833a0);_0x4cf484&&_0x5a2f9c[_0x3ea2('0xc')][_0x3ea2('0x6')](_0x1d4b82[_0x3ea2('0x0')])&&_0x1ccff1[_0x3ea2('0x15')]['addClass'](_0x3ea2('0x24'),_0x49da55),_0x1ccff1['writer']['insert'](_0x134ff4,_0x49da55),_0x1ccff1[_0x3ea2('0x19')]['bindElementToMarker'](_0x49da55,_0x1d4b82['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12d7=['_registerLegacyDescription','TrackChangesEditing','removeFormat','formatInline','has','afterInit','format','plugins','type','*Remove\x20all\x20formatting*','get','locale','RemoveFormatEditing','commandName','editor'];(function(_0x431f10,_0x12d73f){const _0x57911b=function(_0x81ba51){while(--_0x81ba51){_0x431f10['push'](_0x431f10['shift']());}};_0x57911b(++_0x12d73f);}(_0x12d7,0x17e));const _0x5791=function(_0x431f10,_0x12d73f){_0x431f10=_0x431f10-0x0;let _0x57911b=_0x12d7[_0x431f10];return _0x57911b;};import{Plugin as _0x50f779}from'ckeditor5/src/core';import{getTranslation as _0x4998e3}from'../utils/common-translations';export default class mt extends _0x50f779{[_0x5791('0xd')](){const _0x55d76d=this[_0x5791('0x7')];if(!_0x55d76d[_0x5791('0x0')][_0x5791('0xc')](_0x5791('0x5')))return;_0x55d76d['plugins'][_0x5791('0x3')](_0x5791('0x9'))['_enableDefaultAttributesIntegration'](_0x5791('0xa')),this[_0x5791('0x8')]();}[_0x5791('0x8')](){const _0x405e2f=this[_0x5791('0x7')];_0x405e2f['plugins'][_0x5791('0x3')](_0x5791('0x9'))['_descriptionFactory']['registerDescriptionCallback'](_0xdb47b=>{if('formatBlock'!=_0xdb47b[_0x5791('0x1')]&&_0x5791('0xb')!=_0xdb47b[_0x5791('0x1')])return;const {data:_0x44cc04}=_0xdb47b;return _0x44cc04&&_0x5791('0xa')==_0x44cc04[_0x5791('0x6')]?{'type':_0x5791('0xe'),'content':_0x4998e3(_0x405e2f[_0x5791('0x4')],_0x5791('0x2'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c5e=['goToNextRestrictedEditingException','get','editor','TrackChangesEditing','discardSelectedSuggestions','plugins','has','trackChanges','acceptSelectedSuggestions','discardSuggestion','enableCommand','afterInit','RestrictedEditingModeEditing','acceptSuggestion'];(function(_0x237e00,_0x1c5e59){const _0x5d15b2=function(_0x4c2443){while(--_0x4c2443){_0x237e00['push'](_0x237e00['shift']());}};_0x5d15b2(++_0x1c5e59);}(_0x1c5e,0xf9));const _0x5d15=function(_0x237e00,_0x1c5e59){_0x237e00=_0x237e00-0x0;let _0x5d15b2=_0x1c5e[_0x237e00];return _0x5d15b2;};import{Plugin as _0xe52ec2}from'ckeditor5/src/core';export default class dt extends _0xe52ec2{[_0x5d15('0x0')](){const _0x329f8a=this[_0x5d15('0x5')];if(!_0x329f8a[_0x5d15('0x8')][_0x5d15('0x9')](_0x5d15('0x1')))return;const _0x4bd839=_0x329f8a[_0x5d15('0x8')][_0x5d15('0x4')](_0x5d15('0x6'));_0x4bd839['enableCommand']('goToPreviousRestrictedEditingException'),_0x4bd839[_0x5d15('0xd')](_0x5d15('0x3'));const _0x51ccc1=_0x329f8a[_0x5d15('0x8')]['get'](_0x5d15('0x1'));_0x51ccc1[_0x5d15('0xd')](_0x5d15('0xa')),_0x51ccc1[_0x5d15('0xd')](_0x5d15('0x2')),_0x51ccc1[_0x5d15('0xd')](_0x5d15('0xc')),_0x51ccc1['enableCommand']('acceptAllSuggestions'),_0x51ccc1[_0x5d15('0xd')]('discardAllSuggestions'),_0x51ccc1[_0x5d15('0xd')](_0x5d15('0xb')),_0x51ccc1['enableCommand'](_0x5d15('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x440d=['createPositionBefore','options','locale','includes','addMarker:suggestion','shiftEnter','init','test','enableCommand','addMarker:suggestion:deletion','span','merge','TrackChangesEditing','addClass','ck-suggestion-marker--active','writer','requires','mapper','insert','plugins','editing','createUIElement','model','softBreak','name','data','downcastDispatcher','element','deletion','markerRange','_descriptionFactory','high','addMarker:suggestion:insertion','ELEMENT_LINE_BREAK','get','markerName'];(function(_0x57675c,_0x440d39){const _0x102f92=function(_0x405847){while(--_0x405847){_0x57675c['push'](_0x57675c['shift']());}};_0x102f92(++_0x440d39);}(_0x440d,0x1d3));const _0x102f=function(_0x57675c,_0x440d39){_0x57675c=_0x57675c-0x0;let _0x102f92=_0x440d[_0x57675c];return _0x102f92;};import{Plugin as _0x2d5f81}from'ckeditor5/src/core';import{ShiftEnter as _0x28f7bb}from'ckeditor5/src/enter';import{getTranslation as _0x2c8c72}from'../utils/common-translations';export default class pt extends _0x2d5f81{static get[_0x102f('0x11')](){return[_0x28f7bb];}[_0x102f('0x7')](){const _0x5c2786=this['editor'],_0x137f74=_0x5c2786[_0x102f('0x14')][_0x102f('0x23')](_0x102f('0xd'));_0x137f74[_0x102f('0x9')](_0x102f('0x6')),_0x5c2786[_0x102f('0x15')][_0x102f('0x1b')]['on'](_0x102f('0x21'),re(_0x5c2786),{'priority':_0x102f('0x20')}),_0x5c2786[_0x102f('0x15')][_0x102f('0x1b')]['on'](_0x102f('0xa'),re(_0x5c2786),{'priority':'high'}),_0x5c2786[_0x102f('0x1a')][_0x102f('0x1b')]['on'](_0x102f('0x5'),(_0xcd288e,_0x544243,_0x4c9ec1)=>{_0x4c9ec1[_0x102f('0x2')]['showSuggestionHighlights']&&re(_0x5c2786,{'showActiveMarker':!0x1})(_0xcd288e,_0x544243,_0x4c9ec1);}),_0x137f74[_0x102f('0x1f')]['registerElementLabel'](_0x102f('0x18'),_0x28ad45=>_0x2c8c72(_0x5c2786[_0x102f('0x3')],_0x102f('0x22'),_0x28ad45));}}function re(_0x5ce4b4,{showActiveMarker:_0x274d67=!0x0}={}){return(_0x374ff7,_0x58289a,_0x263d3f)=>{const _0xee2211=_0x5ce4b4['plugins'][_0x102f('0x23')](_0x102f('0xd'));if(!_0x263d3f['consumable'][_0x102f('0x8')](_0x58289a['markerRange'],_0x374ff7[_0x102f('0x19')]))return;const _0x1bfc4b=_0x5ce4b4[_0x102f('0x17')];for(const _0x1b7b47 of _0x58289a[_0x102f('0x1e')]['getItems']()){if(!_0x1b7b47['is'](_0x102f('0x1c'),'softBreak'))continue;const _0x2c757f=_0x102f('0x1d')==_0x58289a[_0x102f('0x0')]['split'](':')[0x1]?_0x102f('0xc'):'split',_0x4a2daf=_0x263d3f[_0x102f('0x10')][_0x102f('0x16')](_0x102f('0xb'),{'class':'ck-suggestion-marker-'+_0x2c757f}),_0x5172ce=_0x263d3f[_0x102f('0x12')]['toViewPosition'](_0x1bfc4b[_0x102f('0x1')](_0x1b7b47));_0x274d67&&_0xee2211['activeMarkers'][_0x102f('0x4')](_0x58289a['markerName'])&&_0x263d3f[_0x102f('0x10')][_0x102f('0xe')](_0x102f('0xf'),_0x4a2daf),_0x263d3f['writer'][_0x102f('0x13')](_0x5172ce,_0x4a2daf),_0x263d3f[_0x102f('0x12')]['bindElementToMarker'](_0x4a2daf,_0x58289a[_0x102f('0x0')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x578f=['type','format','forceValue','has','markInlineFormat','afterInit','model','formatBlock','value','commandName','editor','restrictedEditingException','StandardEditingModeEditing','isCollapsed','enableCommand','get','_descriptionFactory','commands','formatInline','commandParams','plugins','FORMAT_RESTRICTED_DISABLED','locale','from'];(function(_0x3c417b,_0x578fb7){const _0x3f7fcb=function(_0x5cf04b){while(--_0x5cf04b){_0x3c417b['push'](_0x3c417b['shift']());}};_0x3f7fcb(++_0x578fb7);}(_0x578f,0x161));const _0x3f7f=function(_0x3c417b,_0x578fb7){_0x3c417b=_0x3c417b-0x0;let _0x3f7fcb=_0x578f[_0x3c417b];return _0x3f7fcb;};import{Plugin as _0xae5dbc}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2c06e5}from'./utils';import{getTranslation as _0x46113c}from'../utils/common-translations';export default class kt extends _0xae5dbc{[_0x3f7f('0xc')](){const _0x45ad9d=this[_0x3f7f('0x11')],_0x1fa16d=_0x45ad9d[_0x3f7f('0xd')],_0x5af78a=_0x45ad9d[_0x3f7f('0x5')];if(!_0x45ad9d[_0x3f7f('0x3')][_0x3f7f('0xa')](_0x3f7f('0x13')))return;const _0x586e57=_0x45ad9d[_0x3f7f('0x3')][_0x3f7f('0x16')]('TrackChangesEditing'),_0x18aa35=_0x3f7f('0x12'),_0xfe709a=_0x45ad9d[_0x3f7f('0x0')][_0x3f7f('0x16')](_0x18aa35);_0x586e57[_0x3f7f('0x15')](_0x18aa35,(_0x13ad1e,_0x79b19={})=>{const _0x1ee917=_0x1fa16d['document']['selection'];if(_0x1ee917[_0x3f7f('0x14')])return void _0x13ad1e(_0x79b19);const _0xc15ac9=void 0x0!==_0x79b19[_0x3f7f('0x9')]?_0x79b19['forceValue']:!_0xfe709a[_0x3f7f('0xf')];_0x1fa16d['change'](()=>{const _0x397a84=Array[_0x3f7f('0x6')](_0x1ee917['getRanges']());for(const _0x2b95ee of _0x397a84){const _0x375127=_0xc15ac9?[_0x2b95ee]:_0x2c06e5(_0x18aa35,_0x2b95ee,_0x1fa16d);for(const _0x4aa208 of _0x375127)_0x586e57[_0x3f7f('0xb')](_0x4aa208,{'commandName':_0x18aa35,'commandParams':[{'forceValue':_0xc15ac9}]});}});}),_0x586e57[_0x3f7f('0x17')]['registerDescriptionCallback'](_0x26a512=>{if(_0x3f7f('0xe')!=_0x26a512[_0x3f7f('0x7')]&&_0x3f7f('0x1')!=_0x26a512[_0x3f7f('0x7')])return;const {data:_0x1b3586}=_0x26a512;return _0x1b3586&&_0x1b3586[_0x3f7f('0x10')]==_0x18aa35?_0x1b3586[_0x3f7f('0x2')][0x0][_0x3f7f('0x9')]?{'type':_0x3f7f('0x8'),'content':_0x46113c(_0x5af78a,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x3f7f('0x8'),'content':_0x46113c(_0x5af78a,_0x3f7f('0x4'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13df=['commandName','has','Style','add','editor','normalizeConfig','*Set\x20format:*\x20%0','forceValue','getGhsAttributeNameForElement','commandParams','_descriptionFactory','element','FORMAT_STYLE','DataSchema','registerAttributeLabel','StyleUtils','styleName','_registerLegacyDescription','style','plugins','GeneralHtmlSupport','type','get','toLowerCase','_registerBlockAttribute','locale','format','_registerInlineAttribute','TrackChangesEditing','block','registerDescriptionCallback','definitions'];(function(_0x21a9d3,_0x13df13){const _0x324d6b=function(_0x40212b){while(--_0x40212b){_0x21a9d3['push'](_0x21a9d3['shift']());}};_0x324d6b(++_0x13df13);}(_0x13df,0xf1));const _0x324d=function(_0x21a9d3,_0x13df13){_0x21a9d3=_0x21a9d3-0x0;let _0x324d6b=_0x13df[_0x21a9d3];return _0x324d6b;};import{Plugin as _0x32385c}from'ckeditor5/src/core';import{getTranslation as _0x4a0104}from'../utils/common-translations';export default class bt extends _0x32385c{['afterInit'](){const _0x45529c=this['editor'];if(!_0x45529c[_0x324d('0x2')][_0x324d('0x10')](_0x324d('0x11'))||!_0x45529c[_0x324d('0x2')]['has'](_0x324d('0x1c')))return;const _0x1849b7=_0x45529c['plugins']['get'](_0x324d('0xb')),_0x540cba=_0x45529c[_0x324d('0x8')],_0x1c4911=_0x45529c['config'][_0x324d('0x5')](_0x324d('0x1')),_0x49b434=_0x45529c[_0x324d('0x2')][_0x324d('0x5')](_0x324d('0x3')),_0x570304=_0x45529c[_0x324d('0x2')][_0x324d('0x5')](_0x324d('0x1e'))[_0x324d('0x14')](_0x45529c[_0x324d('0x2')][_0x324d('0x5')](_0x324d('0x1c')),_0x1c4911[_0x324d('0xe')]);_0x1849b7['_enableDefaultAttributesIntegration'](_0x324d('0x1'));const _0x50209e=new Set();for(const _0x1d490a of _0x570304[_0x324d('0xc')]){const _0x22db0c=_0x49b434[_0x324d('0x17')](_0x1d490a[_0x324d('0x1a')]);_0x50209e[_0x324d('0x12')](_0x22db0c);}const _0x491acc=new Set();for(const _0x1f5ca7 of _0x570304['inline']){const _0x2269ff=_0x49b434[_0x324d('0x17')](_0x1f5ca7[_0x324d('0x1a')]);_0x491acc['add'](_0x2269ff);for(const _0x56c6ad of _0x1f5ca7['ghsAttributes'])_0x491acc[_0x324d('0x12')](_0x56c6ad);}for(const _0x385833 of _0x50209e)_0x1849b7[_0x324d('0x7')](_0x385833),_0x1849b7[_0x324d('0x19')]['registerAttributeLabel'](_0x385833,_0x4a0104(_0x540cba,'FORMAT_STYLE'));for(const _0x1bea91 of _0x491acc)_0x1849b7[_0x324d('0xa')](_0x1bea91),_0x1849b7[_0x324d('0x19')][_0x324d('0x1d')](_0x1bea91,_0x4a0104(_0x540cba,_0x324d('0x1b')));this[_0x324d('0x0')]();}['_registerLegacyDescription'](){const _0x265d11=this[_0x324d('0x13')],_0xd9ee0d=_0x265d11[_0x324d('0x8')];_0x265d11[_0x324d('0x2')][_0x324d('0x5')](_0x324d('0xb'))[_0x324d('0x19')][_0x324d('0xd')](_0x47bec1=>{if('formatBlock'!=_0x47bec1[_0x324d('0x4')]&&'formatInline'!=_0x47bec1[_0x324d('0x4')])return;const {data:_0x274ffa}=_0x47bec1;return _0x274ffa&&_0x324d('0x1')===_0x274ffa[_0x324d('0xf')]?_0x274ffa[_0x324d('0x18')][0x0][_0x324d('0x16')]?{'type':'format','content':_0x4a0104(_0xd9ee0d,_0x324d('0x15'),_0x274ffa[_0x324d('0x18')][0x0][_0x324d('0x1f')][_0x324d('0x6')]())}:{'type':_0x324d('0x9'),'content':_0x4a0104(_0xd9ee0d,'*Remove\x20format:*\x20%0',_0x274ffa[_0x324d('0x18')][0x0][_0x324d('0x1f')][_0x324d('0x6')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3872=['fromRange','nodeBefore','isTouching','getColumnIndexes','change','TrackChangesEditing','removeTableColumn','getAttribute','includes','setSelection','type','data','span','some','differ','insertion','_suggestionFactory','options','addRange','batch','createPositionAt','getItems','markMultiRangeInsertion','min','root','$textProxy','registerDescriptionCallback','from','rowspan','getChangedMarkers','first','insert','oldRange','classes','forceValue','_getCoordsForCells','item','element','get','getSuggestion','accept','position','_descriptionFactory','TableUtils','join','editor','enableCommand','every','removeClass','max','addClass','insertTable','table','low','getContainedElement','rootName','selectTableColumn','addMarker:suggestion','_setupColumnsRowsFixing','enqueueChange','has','discard','tableColumn','highest','plugins','map','registerCustomCallback','isEqual','MIN_SAFE_INTEGER','toViewElement','_tableSuggestions','deletion','*Insert:*\x20%0','left','afterInit','ELEMENT_TABLE_COLUMN','cell','ELEMENT_TABLE_WITH_TEXT','push','ELEMENT_TABLE_COLUMN_WITH_TEXT','getRowIndexes','insertTableColumnLeft','getRanges','insertTableRowAbove','getChildren','hasAttribute','execute','downcastDispatcher','detach','_acceptFormatSuggestionCallbackFactory','maxRow','insertTableColumnRight','end','name','subType','ELEMENT_TABLE','minColumn','length','values','MAX_SAFE_INTEGER','selection','findAncestor','_splitMarkerName','tableRow','createRangeIn','$graveyard','start','add','getSelectionAffectedTableCells','*Remove:*\x20%0','ELEMENT_TABLE_ROW_WITH_TEXT','change:data','registerPostFixer','commands','substr','order','writer','minRow','suggestion','mapper','tableCell','filter','document','nodeAfter','registerElementLabel','selectTableRow','createRangeOn','tablePaste','model','createTableWalker','getCellLocation','removeTableRow','showSuggestionHighlights','toLowerCase','_getSuggestionCoords','last','ELEMENT_TABLE_ROW','startsWith','colspan'];(function(_0x38faa0,_0x387282){const _0x411b7a=function(_0x5e5b75){while(--_0x5e5b75){_0x38faa0['push'](_0x38faa0['shift']());}};_0x411b7a(++_0x387282);}(_0x3872,0x153));const _0x411b=function(_0x38faa0,_0x387282){_0x38faa0=_0x38faa0-0x0;let _0x411b7a=_0x3872[_0x38faa0];return _0x411b7a;};import{Plugin as _0x33c387}from'ckeditor5/src/core';import{LiveRange as _0x3a4bb3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x17e6a1}from'ckeditor5/src/widget';import{getTranslation as _0x59542e}from'../utils/common-translations';export default class wt extends _0x33c387{constructor(_0x4da7bf){super(_0x4da7bf),this['_tablePostFixingSubtypes']=[_0x411b('0x2a'),_0x411b('0x1')],this[_0x411b('0x9')]=new Set();}[_0x411b('0xd')](){const _0x3a007f=this[_0x411b('0x7b')],_0x308396=_0x3a007f[_0x411b('0x43')]['document'][_0x411b('0x27')];if(!_0x3a007f[_0x411b('0x3')][_0x411b('0x8a')]('TableEditing'))return;const _0x52a15a=_0x3a007f['locale'],_0x2eb362=_0x3a007f[_0x411b('0x3')][_0x411b('0x74')](_0x411b('0x53')),_0x212146=_0x3a007f['plugins'][_0x411b('0x74')](_0x411b('0x79'));_0x2eb362[_0x411b('0x78')][_0x411b('0x3f')](_0x411b('0x82'),_0x48e5f1=>_0x59542e(_0x52a15a,_0x411b('0x22'),_0x48e5f1)),this[_0x411b('0x88')](),_0x2eb362[_0x411b('0x7c')](_0x411b('0x81')),_0x2eb362[_0x411b('0x7c')](_0x411b('0x40')),_0x2eb362[_0x411b('0x7c')](_0x411b('0x86'));for(const _0xc6496 of[_0x411b('0x16'),'insertTableRowBelow']){const _0x474667=_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0xc6496);_0x2eb362[_0x411b('0x7c')](_0xc6496,_0x28c17c=>{_0x3a007f[_0x411b('0x43')][_0x411b('0x52')](_0x4e9520=>{_0x28c17c();const _0x5f5456='above'===_0x474667['order'],_0x3335e6=_0x212146[_0x411b('0x2f')](_0x308396),_0xd4d8ad=_0x212146[_0x411b('0x13')](_0x3335e6),_0x3fa050=_0x5f5456?_0xd4d8ad[_0x411b('0x6c')]-0x1:_0xd4d8ad[_0x411b('0x4a')]+0x1,_0x5caf17=_0x3335e6[0x0][_0x411b('0x28')](_0x411b('0x82')),_0x307f8b=_0x212146[_0x411b('0x44')](_0x5caf17,{'startRow':_0x3fa050,'endRow':_0x3fa050}),_0x1f3f2d=Array['from'](_0x307f8b)[_0x411b('0x4')](_0x5be1c3=>_0x4e9520[_0x411b('0x41')](_0x5be1c3[_0x411b('0xf')]));_0x2eb362[_0x411b('0x64')](_0x1f3f2d,_0x411b('0x2a'));});});}for(const _0x2f449b of[_0x411b('0x14'),_0x411b('0x1e')]){const _0x3a85cd=_0x3a007f[_0x411b('0x34')]['get'](_0x2f449b);_0x2eb362['enableCommand'](_0x2f449b,_0x45d3fa=>{_0x3a007f['model']['change'](_0xd3ef65=>{_0x45d3fa();const _0x27b9ed=_0x411b('0xc')===_0x3a85cd[_0x411b('0x36')],_0x3a8586=_0x212146['getSelectionAffectedTableCells'](_0x308396),_0x2efe9f=_0x212146[_0x411b('0x51')](_0x3a8586),_0xa3350b=_0x27b9ed?_0x2efe9f[_0x411b('0x6c')]-0x1:_0x2efe9f[_0x411b('0x4a')]+0x1,_0x39ed77=_0x3a8586[0x0][_0x411b('0x28')](_0x411b('0x82')),_0x31219c=_0x212146[_0x411b('0x44')](_0x39ed77,{'startRow':0x0,'column':_0xa3350b,'includeAllSlots':!0x1}),_0xb7fa32=Array[_0x411b('0x69')](_0x31219c)['map'](_0xd8ef0a=>_0xd3ef65['createRangeOn'](_0xd8ef0a[_0x411b('0xf')]));_0x2eb362[_0x411b('0x64')](_0xb7fa32,'tableColumn');});});}for(const _0xfa1465 of['removeTableRow',_0x411b('0x54')]){const _0x430439=_0xfa1465[_0x411b('0x35')](0xb),_0x5c9f5d=_0x430439['toLowerCase'](),_0x3d198a=_0x5c9f5d['substr'](0x0,0x3)+_0x411b('0x5a'),_0x4f1a17=_0x411b('0x82')+_0x430439,_0x16e7fa=_0x411b('0x65')+_0x430439,_0x5251ff=_0x411b('0x7f')+_0x430439;_0x2eb362[_0x411b('0x7c')](_0xfa1465,()=>{_0x3a007f[_0x411b('0x43')]['change'](_0x1154e8=>{const _0x397a95=_0x212146[_0x411b('0x2f')](_0x308396),_0x28b705=_0x397a95[0x0]['findAncestor'](_0x411b('0x82'));let _0x5aa692;if('removeTableRow'==_0xfa1465){const _0x1033c3=_0x212146[_0x411b('0x13')](_0x397a95);_0x5aa692={'startRow':_0x1033c3['first'],'endRow':_0x1033c3[_0x411b('0x4a')],'includeAllSlots':!0x0};}else{const _0x1d3851=_0x212146[_0x411b('0x51')](_0x397a95);_0x5aa692={'startColumn':_0x1d3851[_0x411b('0x6c')],'endColumn':_0x1d3851[_0x411b('0x4a')],'includeAllSlots':!0x0};}const _0x3fd4f2=_0x212146[_0x411b('0x44')](_0x28b705,_0x5aa692),_0x128884=Array[_0x411b('0x69')](_0x3fd4f2)[_0x411b('0x4')](({cell:_0x55526a})=>_0x55526a),_0x23e463=se(_0x128884[_0x411b('0x3c')](_0x5a2fb7=>_0x5a2fb7['hasAttribute'](_0x3d198a))),_0x4df232=se(_0x128884[_0x411b('0x3c')](_0x5dd21d=>!_0x5dd21d[_0x411b('0x18')](_0x3d198a)))[_0x411b('0x4')](_0x37e665=>_0x1154e8[_0x411b('0x41')](_0x37e665)),_0x4195cf=_0x2eb362['markMultiRangeDeletion'](_0x4df232,_0x4f1a17);if(_0x4195cf&&(_0x411b('0x2a')==_0x4195cf[_0x411b('0x21')]||_0x411b('0x1')==_0x4195cf[_0x411b('0x21')])){const _0x5001bf=this[_0x411b('0x49')](_0x4195cf);for(const _0x16ac50 of _0x23e463){const _0x424d1a=_0x1154e8[_0x411b('0x41')](_0x16ac50),_0x5c6219=_0x212146[_0x411b('0x45')](_0x16ac50),_0x1bd24e=_0x16ac50[_0x411b('0x55')](_0x3d198a)-0x1,_0x3cf6ef=_0x5001bf[_0x16e7fa],_0x445f58=_0x5001bf[_0x5251ff];_0x3cf6ef<=_0x5c6219[_0x5c9f5d]&&_0x5c6219[_0x5c9f5d]+_0x1bd24e<=_0x445f58&&_0x4195cf[_0x411b('0x60')](_0x424d1a);}}});});}function _0x1317f0(_0x2482b7){const _0x51d8df=Array[_0x411b('0x69')](_0x308396[_0x411b('0x15')]())[_0x411b('0x4')](_0x3393c3=>_0x3a4bb3[_0x411b('0x4e')](_0x3393c3));_0x3a007f['model'][_0x411b('0x52')](_0x515d5d=>{const _0x5e982e=_0x515d5d[_0x411b('0x61')];_0x2482b7=_0x2482b7[_0x411b('0x3c')](_0x4933c9=>_0x411b('0x2c')!=_0x4933c9[_0x411b('0x66')]['rootName']),_0x515d5d[_0x411b('0x57')](_0x2482b7),_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0x411b('0x46'))['refresh'](),_0x3a007f[_0x411b('0x19')](_0x411b('0x46'),{'forceDefaultExecution':!0x0}),_0x3a007f['model'][_0x411b('0x89')](()=>{_0x3a007f[_0x411b('0x43')][_0x411b('0x89')](_0x5e982e,_0x12822a=>{const _0x147b65=_0x51d8df['filter'](_0x272900=>_0x411b('0x2c')!=_0x272900[_0x411b('0x66')][_0x411b('0x85')]);_0x147b65[_0x411b('0x24')]>0x0&&_0x12822a[_0x411b('0x57')](_0x147b65);for(const _0x1d26d7 of _0x51d8df)_0x1d26d7['detach']();});});});}function _0x53f93d(_0x213f7c){_0x3a007f[_0x411b('0x43')]['change'](_0x4348f2=>{const _0x3cbe6e=Array[_0x411b('0x69')](_0x308396[_0x411b('0x15')]())[_0x411b('0x4')](_0xad848=>_0x3a4bb3[_0x411b('0x4e')](_0xad848)),_0x545b18=[];for(const _0x3d5d49 of _0x213f7c)for(const _0x184110 of _0x3d5d49[_0x411b('0x63')]({'shallow':!0x0}))_0x545b18['push'](_0x184110);for(const _0x9dece9 of _0x545b18)'$graveyard'!=_0x9dece9[_0x411b('0x66')][_0x411b('0x85')]&&(_0x4348f2[_0x411b('0x57')](_0x4348f2[_0x411b('0x62')](_0x9dece9,0x0)),_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0x411b('0x54'))['refresh'](),_0x3a007f[_0x411b('0x19')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x140462=_0x3cbe6e['filter'](_0x7bd581=>'$graveyard'!=_0x7bd581[_0x411b('0x66')][_0x411b('0x85')]);_0x140462[_0x411b('0x24')]>0x0&&_0x4348f2[_0x411b('0x57')](_0x140462);for(const _0x53785a of _0x3cbe6e)_0x53785a[_0x411b('0x1b')]();});}function _0x23a29d(_0x427887,_0x53f35b){return _0x53f35b[_0x411b('0x7d')](_0x3677e2=>_0x427887['some'](_0x59c5e7=>_0x59c5e7['end'][_0x411b('0x6')](_0x3677e2[_0x411b('0x2d')])||_0x3677e2[_0x411b('0x1f')][_0x411b('0x6')](_0x59c5e7[_0x411b('0x2d')])));}function _0x402161(_0x3345d1,_0x5ad67c){return _0x3345d1['some'](_0x44fc90=>_0x5ad67c[_0x411b('0x5b')](_0x550314=>_0x44fc90[_0x411b('0x1f')][_0x411b('0x50')](_0x550314[_0x411b('0x2d')])));}_0x3a007f[_0x411b('0x59')][_0x411b('0x1a')]['on'](_0x411b('0x87'),(_0x51a12d,_0x1b0dbc,_0x5b9f25)=>{if(!_0x5b9f25[_0x411b('0x5f')][_0x411b('0x47')])return;const _0x162959=_0x1b0dbc[_0x411b('0x72')];if(!_0x162959)return;const _0x45abaf=_0x5b9f25[_0x411b('0x3a')][_0x411b('0x8')](_0x162959);function _0x118ab7(_0x4ecc51){return Array['isArray'](_0x4ecc51)?_0x4ecc51:[_0x4ecc51];}_0x45abaf&&_0x411b('0x3b')===_0x162959[_0x411b('0x20')]&&_0x17e6a1(_0x45abaf,_0x5b9f25[_0x411b('0x37')],(_0x2f46f,_0x4cbc9a,_0x558e36)=>_0x558e36[_0x411b('0x80')](_0x118ab7(_0x4cbc9a[_0x411b('0x6f')]),_0x2f46f),(_0x4781e6,_0x5d51a7,_0x4b00a0)=>_0x4b00a0[_0x411b('0x7e')](_0x118ab7(_0x5d51a7[_0x411b('0x6f')]),_0x4781e6));},{'priority':_0x411b('0x2')}),_0x2eb362['_descriptionFactory']['registerDescriptionCallback'](_0x4598b=>{if('insertion'!=_0x4598b[_0x411b('0x58')]&&'deletion'!=_0x4598b[_0x411b('0x58')])return;const _0x58fd78=_0x4598b[_0x411b('0x84')]();if(null!=_0x58fd78&&_0x58fd78['is'](_0x411b('0x73'),_0x411b('0x82'))){if(_0x411b('0x5d')==_0x4598b[_0x411b('0x58')]){const _0x64c731=_0x4598b[_0x411b('0x63')]()['filter'](_0x241ef5=>_0x241ef5['is'](_0x411b('0x67')))[_0x411b('0x4')](_0x3347ce=>_0x3347ce[_0x411b('0x59')]);if(_0x64c731[_0x411b('0x24')])return{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x10'),'\x22'+_0x64c731[_0x411b('0x7a')]('\x20')+'\x22'))};}if(_0x411b('0xa')==_0x4598b['type']){const _0x42a49e=_0x4598b[_0x411b('0x63')]()['filter'](_0x30ca0f=>_0x30ca0f['is']('$textProxy'))[_0x411b('0x4')](_0x5c3190=>_0x5c3190[_0x411b('0x59')]);if(_0x42a49e['length'])return{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42a49e[_0x411b('0x7a')]('\x20')+'\x22'))};}}}),_0x2eb362[_0x411b('0x78')][_0x411b('0x68')](_0x4a912e=>{if(_0x411b('0x2a')==_0x4a912e['subType']){const _0x16b41b=_0x4a912e[_0x411b('0x63')]()[_0x411b('0x3c')](_0x4cdf7d=>_0x4cdf7d['is'](_0x411b('0x67')))['map'](_0xb7f1be=>_0xb7f1be['data']),_0x5d1e11=this[_0x411b('0x49')](_0x4a912e),_0x4e0cb5=_0x5d1e11[_0x411b('0x1d')]-_0x5d1e11[_0x411b('0x38')]+0x1;if(_0x411b('0x5d')==_0x4a912e[_0x411b('0x58')])return _0x16b41b[_0x411b('0x24')]?{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x31'),[_0x4e0cb5,'\x22'+_0x16b41b[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x4b'),_0x4e0cb5))};if(_0x411b('0xa')==_0x4a912e['type'])return _0x16b41b['length']?{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,_0x411b('0x30'),_0x59542e(_0x52a15a,_0x411b('0x31'),[_0x4e0cb5,'\x22'+_0x16b41b[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,_0x411b('0x30'),_0x59542e(_0x52a15a,'ELEMENT_TABLE_ROW',_0x4e0cb5))};}if('tableColumn'==_0x4a912e[_0x411b('0x21')]){const _0x3e1d2d=_0x4a912e[_0x411b('0x63')]()[_0x411b('0x3c')](_0x18eec6=>_0x18eec6['is'](_0x411b('0x67')))[_0x411b('0x4')](_0x3dbcd0=>_0x3dbcd0['data']),_0x37f8ae=this['_getSuggestionCoords'](_0x4a912e),_0x2f6782=_0x37f8ae['maxColumn']-_0x37f8ae[_0x411b('0x23')]+0x1;if('insertion'==_0x4a912e[_0x411b('0x58')])return _0x3e1d2d[_0x411b('0x24')]?{'type':'insertion','content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f6782,'\x22'+_0x3e1d2d[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0xe'),_0x2f6782))};if('deletion'==_0x4a912e[_0x411b('0x58')])return _0x3e1d2d[_0x411b('0x24')]?{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,_0x411b('0x12'),[_0x2f6782,'\x22'+_0x3e1d2d[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,_0x411b('0xe'),_0x2f6782))};}}),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('insertion',_0x411b('0x2a'),_0x411b('0x0'),_0x1317f0),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')](_0x411b('0xa'),_0x411b('0x2a'),_0x411b('0x76'),_0x1317f0),_0x2eb362['_suggestionFactory'][_0x411b('0x5')](_0x411b('0x5d'),_0x411b('0x1'),'discard',_0x53f93d),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('deletion','tableColumn','accept',_0x53f93d),_0x2eb362['_suggestionFactory']['registerCustomCallback'](_0x411b('0x5d'),'tableColumn',_0x411b('0x7a'),_0x23a29d),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('deletion',_0x411b('0x1'),_0x411b('0x7a'),_0x23a29d),_0x2eb362[_0x411b('0x5e')]['registerCustomCallback'](_0x411b('0x5d'),'tableRow',_0x411b('0x7a'),_0x402161),_0x2eb362['_suggestionFactory'][_0x411b('0x5')](_0x411b('0xa'),_0x411b('0x2a'),_0x411b('0x7a'),_0x402161);}[_0x411b('0x1c')](){const _0x3c3f24=this['editor'],_0x457a56=_0x3c3f24['model'][_0x411b('0x3d')][_0x411b('0x27')];return(_0x22985e,_0x5875c6)=>{_0x3c3f24[_0x411b('0x43')][_0x411b('0x52')](_0x248cd6=>{const {commandName:_0x3a9ff2,commandParams:_0x481623}=_0x5875c6;let _0x3ab354=_0x22985e[0x0][_0x411b('0x1f')][_0x411b('0x4f')];_0x481623&&_0x481623[0x0]&&!0x1===_0x481623[0x0][_0x411b('0x70')]&&(_0x3ab354=_0x22985e[0x0][_0x411b('0x2d')][_0x411b('0x3e')]);const _0x3f9d60=_0x248cd6[_0x411b('0x2b')](_0x3ab354);if(_0x411b('0x2c')==_0x3f9d60['root'][_0x411b('0x85')])return;const _0x42c643=Array['from'](_0x457a56[_0x411b('0x15')]())['map'](_0x35c56f=>_0x3a4bb3[_0x411b('0x4e')](_0x35c56f));_0x248cd6[_0x411b('0x57')](_0x3f9d60),_0x3c3f24['commands'][_0x411b('0x74')](_0x3a9ff2)['refresh'](),_0x481623[_0x411b('0x11')]({'forceDefaultExecution':!0x0}),_0x3c3f24[_0x411b('0x19')](_0x3a9ff2,..._0x481623);const _0x3a128a=_0x42c643[_0x411b('0x3c')](_0x26d17c=>_0x411b('0x2c')!=_0x26d17c[_0x411b('0x66')]['rootName']);_0x3a128a[_0x411b('0x24')]>0x0&&_0x248cd6[_0x411b('0x57')](_0x3a128a);for(const _0x34ce66 of _0x42c643)_0x34ce66['detach']();});};}[_0x411b('0x71')](_0x43d277){const _0x548dc7=this[_0x411b('0x7b')][_0x411b('0x3')]['get'](_0x411b('0x79'));let _0x3e1a3f=Number['MAX_SAFE_INTEGER'],_0x393ad9=Number[_0x411b('0x7')],_0x1f7e13=Number[_0x411b('0x26')],_0xcb64a3=Number[_0x411b('0x7')];for(const _0x5b308d of _0x43d277){if(_0x411b('0x2c')==_0x5b308d[_0x411b('0x66')]['rootName'])continue;const {row:_0x244cda,column:_0xb7e10f}=_0x548dc7[_0x411b('0x45')](_0x5b308d),_0x2598f3=_0x5b308d[_0x411b('0x18')](_0x411b('0x6a'))?_0x5b308d[_0x411b('0x55')](_0x411b('0x6a'))-0x1:0x0,_0x538277=_0x5b308d[_0x411b('0x18')](_0x411b('0x4d'))?_0x5b308d[_0x411b('0x55')](_0x411b('0x4d'))-0x1:0x0;_0x3e1a3f=_0x244cda<_0x3e1a3f?_0x244cda:_0x3e1a3f,_0x393ad9=_0x244cda+_0x2598f3>_0x393ad9?_0x244cda+_0x2598f3:_0x393ad9,_0x1f7e13=_0xb7e10f<_0x1f7e13?_0xb7e10f:_0x1f7e13,_0xcb64a3=_0xb7e10f+_0x538277>_0xcb64a3?_0xb7e10f+_0x538277:_0xcb64a3;}return{'minRow':_0x3e1a3f,'maxRow':_0x393ad9,'minColumn':_0x1f7e13,'maxColumn':_0xcb64a3};}[_0x411b('0x88')](){const _0x3175f3=this[_0x411b('0x7b')],_0x2aec24=_0x3175f3['plugins'][_0x411b('0x74')](_0x411b('0x53')),_0xe1d2ab=_0x3175f3[_0x411b('0x3')][_0x411b('0x74')](_0x411b('0x79'));_0x3175f3[_0x411b('0x43')][_0x411b('0x3d')]['on'](_0x411b('0x32'),()=>{const _0x54741f=Array[_0x411b('0x69')](_0x3175f3[_0x411b('0x43')][_0x411b('0x3d')][_0x411b('0x5c')][_0x411b('0x6b')]());for(const {name:_0x3789da,data:_0x342841}of _0x54741f){const {group:_0x56d6b3,id:_0x27d0f6,subType:_0x30831a}=_0x2aec24[_0x411b('0x29')](_0x3789da);if(_0x411b('0x39')!=_0x56d6b3)continue;if(null!=_0x342841[_0x411b('0x6e')])continue;const _0x2560aa=_0x2aec24[_0x411b('0x75')](_0x27d0f6);this['_tablePostFixingSubtypes'][_0x411b('0x56')](_0x30831a)&&this[_0x411b('0x9')][_0x411b('0x2e')](_0x2560aa);}},{'priority':_0x411b('0x83')});const _0x357657=(_0x284e82,_0x244ae5)=>{let _0xd846d7=!0x1;const _0x23bfc6=_0x244ae5[_0x411b('0x41')](_0x284e82),_0x42a665=_0x284e82['findAncestor']('table'),_0x11d0d0=_0xe1d2ab[_0x411b('0x45')](_0x284e82);for(const _0x353c45 of this[_0x411b('0x9')]){const _0xd7b73c=_0x353c45[_0x411b('0x21')],_0x42b6b6=_0xd7b73c[_0x411b('0x4c')](_0x411b('0x42')),_0x558c64=_0xd7b73c[_0x411b('0x35')](_0x42b6b6?0xa:0x5),_0x5c36a8=_0x558c64[_0x411b('0x48')](),_0x346280=_0x5c36a8[_0x411b('0x35')](0x0,0x3)+_0x411b('0x5a'),_0x28f358=_0x411b('0x65')+_0x558c64,_0x4d5777=_0x411b('0x7f')+_0x558c64;if(!_0x353c45['isInContent'])continue;if(_0x42a665!=_0x353c45['getFirstRange']()['start'][_0x411b('0x28')]('table'))continue;if(_0x353c45['isIntersectingWithRange'](_0x23bfc6))continue;const _0x22b3a8=_0x284e82[_0x411b('0x18')](_0x346280)?_0x284e82[_0x411b('0x55')](_0x346280)-0x1:0x0,_0x12a61b=this[_0x411b('0x49')](_0x353c45),_0x4f7c74=_0x12a61b[_0x28f358],_0x3dbdaf=_0x12a61b[_0x4d5777];_0x4f7c74<=_0x11d0d0[_0x5c36a8]&&_0x11d0d0[_0x5c36a8]+_0x22b3a8<=_0x3dbdaf&&(_0x353c45[_0x411b('0x60')](_0x23bfc6),_0xd846d7=!0x0);}return _0xd846d7;};_0x3175f3['model'][_0x411b('0x3d')][_0x411b('0x33')](_0x15dd9b=>{let _0x629c6e=!0x1;for(const _0xe80096 of _0x3175f3[_0x411b('0x43')][_0x411b('0x3d')][_0x411b('0x5c')]['getChanges']())if(_0x411b('0x6d')==_0xe80096[_0x411b('0x58')]){if('tableRow'==_0xe80096[_0x411b('0x20')])for(const _0x25558f of _0xe80096[_0x411b('0x77')][_0x411b('0x3e')][_0x411b('0x17')]())_0x629c6e=_0x629c6e||_0x357657(_0x25558f,_0x15dd9b);else _0x411b('0x3b')==_0xe80096[_0x411b('0x20')]&&(_0x629c6e=_0x629c6e||_0x357657(_0xe80096[_0x411b('0x77')][_0x411b('0x3e')],_0x15dd9b));}return _0x629c6e;});}[_0x411b('0x49')](_0x479184){return this['_getCoordsForCells'](_0x479184[_0x411b('0x15')]()[_0x411b('0x4')](_0x2b9e78=>_0x2b9e78[_0x411b('0x2d')][_0x411b('0x3e')]));}}function se(_0x4fce70){return Array[_0x411b('0x69')](new Set(_0x4fce70)[_0x411b('0x25')]());}
|
|
23
|
+
const _0x34db=['map','nodeBefore','ELEMENT_TABLE_COLUMN_WITH_TEXT','$textProxy','plugins','maxRow','getItems','$graveyard','change','TableUtils','highest','classes','suggestion','first','refresh','hasAttribute','accept','removeTableRow','type','TableEditing','addMarker:suggestion','createPositionAt','deletion','table','getFirstRange','_splitMarkerName','item','getRanges','_getSuggestionCoords','isInContent','add','isArray','_tableSuggestions','TrackChangesEditing','locale','above','detach','has','max','_getCoordsForCells','substr','_descriptionFactory','*Remove:*\x20%0','model','nodeAfter','showSuggestionHighlights','insertTableColumnLeft','length','start','tableCell','ELEMENT_TABLE','every','markMultiRangeDeletion','writer','createRangeOn','some','mapper','get','getChanges','from','push','isIntersectingWithRange','change:data','MIN_SAFE_INTEGER','minColumn','setSelection','filter','batch','getAttribute','createTableWalker','addClass','span','afterInit','ELEMENT_TABLE_ROW','discard','getColumnIndexes','low','cell','subType','tableRow','toLowerCase','addRange','tablePaste','last','tableColumn','document','ELEMENT_TABLE_WITH_TEXT','data','enqueueChange','markMultiRangeInsertion','insertTableRowBelow','registerPostFixer','getChildren','oldRange','findAncestor','insertTableColumnRight','colspan','values','selectTableColumn','_suggestionFactory','order','end','getContainedElement','*Insert:*\x20%0','commands','maxColumn','editor','selectTableRow','join','root','removeTableColumn','registerCustomCallback','downcastDispatcher','execute','position','getCellLocation','ELEMENT_TABLE_ROW_WITH_TEXT','insertTableRowAbove','getSelectionAffectedTableCells','createRangeIn','insertion','registerDescriptionCallback','enableCommand','_setupColumnsRowsFixing','isEqual','getSuggestion','fromRange','registerElementLabel','ELEMENT_TABLE_COLUMN','selection','rowspan','insert','options','name','left','rootName'];(function(_0x13d59e,_0x34db1a){const _0x2072b7=function(_0x20ce2e){while(--_0x20ce2e){_0x13d59e['push'](_0x13d59e['shift']());}};_0x2072b7(++_0x34db1a);}(_0x34db,0xb7));const _0x2072=function(_0x13d59e,_0x34db1a){_0x13d59e=_0x13d59e-0x0;let _0x2072b7=_0x34db[_0x13d59e];return _0x2072b7;};import{Plugin as _0x2adb98}from'ckeditor5/src/core';import{LiveRange as _0x1c4dd2}from'ckeditor5/src/engine';import{setHighlightHandling as _0xbb2528}from'ckeditor5/src/widget';import{getTranslation as _0x3472d7}from'../utils/common-translations';export default class wt extends _0x2adb98{constructor(_0x1870c6){super(_0x1870c6),this['_tablePostFixingSubtypes']=[_0x2072('0x20'),_0x2072('0x25')],this[_0x2072('0x79')]=new Set();}[_0x2072('0x19')](){const _0x4345cd=this[_0x2072('0x3b')],_0x540194=_0x4345cd[_0x2072('0x84')][_0x2072('0x26')][_0x2072('0x52')];if(!_0x4345cd[_0x2072('0x5d')][_0x2072('0x7e')](_0x2072('0x6c')))return;const _0x59441=_0x4345cd[_0x2072('0x7b')],_0x2a3bf1=_0x4345cd[_0x2072('0x5d')]['get']('TrackChangesEditing'),_0x3fc6e6=_0x4345cd['plugins'][_0x2072('0xa')]('TableUtils');_0x2a3bf1['_descriptionFactory'][_0x2072('0x50')](_0x2072('0x70'),_0x157915=>_0x3472d7(_0x59441,_0x2072('0x3'),_0x157915)),this[_0x2072('0x4c')](),_0x2a3bf1[_0x2072('0x4b')]('insertTable'),_0x2a3bf1[_0x2072('0x4b')](_0x2072('0x3c')),_0x2a3bf1[_0x2072('0x4b')](_0x2072('0x33'));for(const _0x5a8c9b of[_0x2072('0x46'),_0x2072('0x2b')]){const _0x18df49=_0x4345cd[_0x2072('0x39')]['get'](_0x5a8c9b);_0x2a3bf1[_0x2072('0x4b')](_0x5a8c9b,_0x358c23=>{_0x4345cd[_0x2072('0x84')][_0x2072('0x61')](_0x501e23=>{_0x358c23();const _0x211c94=_0x2072('0x7c')===_0x18df49['order'],_0x3ac57a=_0x3fc6e6[_0x2072('0x47')](_0x540194),_0x309775=_0x3fc6e6['getRowIndexes'](_0x3ac57a),_0x4b398e=_0x211c94?_0x309775[_0x2072('0x66')]-0x1:_0x309775[_0x2072('0x24')]+0x1,_0x3faade=_0x3ac57a[0x0][_0x2072('0x2f')](_0x2072('0x70')),_0x941fd0=_0x3fc6e6[_0x2072('0x16')](_0x3faade,{'startRow':_0x4b398e,'endRow':_0x4b398e}),_0x398b4e=Array[_0x2072('0xc')](_0x941fd0)['map'](_0x348951=>_0x501e23[_0x2072('0x7')](_0x348951[_0x2072('0x1e')]));_0x2a3bf1['markMultiRangeInsertion'](_0x398b4e,_0x2072('0x20'));});});}for(const _0x166f04 of[_0x2072('0x87'),_0x2072('0x30')]){const _0x3b2ae5=_0x4345cd[_0x2072('0x39')]['get'](_0x166f04);_0x2a3bf1['enableCommand'](_0x166f04,_0x4c1f12=>{_0x4345cd['model'][_0x2072('0x61')](_0x1bc3ad=>{_0x4c1f12();const _0x226fda=_0x2072('0x57')===_0x3b2ae5[_0x2072('0x35')],_0x5be001=_0x3fc6e6[_0x2072('0x47')](_0x540194),_0x424076=_0x3fc6e6['getColumnIndexes'](_0x5be001),_0x138c41=_0x226fda?_0x424076[_0x2072('0x66')]-0x1:_0x424076['last']+0x1,_0x5849d5=_0x5be001[0x0][_0x2072('0x2f')]('table'),_0x5ce782=_0x3fc6e6['createTableWalker'](_0x5849d5,{'startRow':0x0,'column':_0x138c41,'includeAllSlots':!0x1}),_0x31cc19=Array[_0x2072('0xc')](_0x5ce782)['map'](_0x523f24=>_0x1bc3ad['createRangeOn'](_0x523f24[_0x2072('0x1e')]));_0x2a3bf1[_0x2072('0x2a')](_0x31cc19,_0x2072('0x25'));});});}for(const _0x2b572e of[_0x2072('0x6a'),_0x2072('0x3f')]){const _0x5838d2=_0x2b572e[_0x2072('0x81')](0xb),_0x1f0deb=_0x5838d2[_0x2072('0x21')](),_0xcb4e5b=_0x1f0deb[_0x2072('0x81')](0x0,0x3)+_0x2072('0x18'),_0x17d5ae=_0x2072('0x70')+_0x5838d2,_0x4e458a='min'+_0x5838d2,_0x2824a9='max'+_0x5838d2;_0x2a3bf1[_0x2072('0x4b')](_0x2b572e,()=>{_0x4345cd['model'][_0x2072('0x61')](_0x207de8=>{const _0x55a2c7=_0x3fc6e6[_0x2072('0x47')](_0x540194),_0x212390=_0x55a2c7[0x0][_0x2072('0x2f')](_0x2072('0x70'));let _0x4cb10d;if(_0x2072('0x6a')==_0x2b572e){const _0x34ff28=_0x3fc6e6['getRowIndexes'](_0x55a2c7);_0x4cb10d={'startRow':_0x34ff28[_0x2072('0x66')],'endRow':_0x34ff28['last'],'includeAllSlots':!0x0};}else{const _0x1d4d3b=_0x3fc6e6[_0x2072('0x1c')](_0x55a2c7);_0x4cb10d={'startColumn':_0x1d4d3b['first'],'endColumn':_0x1d4d3b['last'],'includeAllSlots':!0x0};}const _0x51583f=_0x3fc6e6[_0x2072('0x16')](_0x212390,_0x4cb10d),_0x32b8b2=Array[_0x2072('0xc')](_0x51583f)[_0x2072('0x59')](({cell:_0x35c16b})=>_0x35c16b),_0x212360=se(_0x32b8b2[_0x2072('0x13')](_0x4e3892=>_0x4e3892[_0x2072('0x68')](_0xcb4e5b))),_0x7de0d2=se(_0x32b8b2[_0x2072('0x13')](_0x4d6c6f=>!_0x4d6c6f['hasAttribute'](_0xcb4e5b)))[_0x2072('0x59')](_0x34dd98=>_0x207de8[_0x2072('0x7')](_0x34dd98)),_0x1ed1d8=_0x2a3bf1[_0x2072('0x5')](_0x7de0d2,_0x17d5ae);if(_0x1ed1d8&&(_0x2072('0x20')==_0x1ed1d8[_0x2072('0x1f')]||_0x2072('0x25')==_0x1ed1d8['subType'])){const _0x32a676=this[_0x2072('0x75')](_0x1ed1d8);for(const _0x4465fd of _0x212360){const _0x4aa064=_0x207de8[_0x2072('0x7')](_0x4465fd),_0x6581=_0x3fc6e6[_0x2072('0x44')](_0x4465fd),_0x53eb76=_0x4465fd[_0x2072('0x15')](_0xcb4e5b)-0x1,_0x5d5c15=_0x32a676[_0x4e458a],_0x3d2994=_0x32a676[_0x2824a9];_0x5d5c15<=_0x6581[_0x1f0deb]&&_0x6581[_0x1f0deb]+_0x53eb76<=_0x3d2994&&_0x1ed1d8[_0x2072('0x22')](_0x4aa064);}}});});}function _0x5d5ac9(_0x53cc65){const _0x2e4887=Array[_0x2072('0xc')](_0x540194[_0x2072('0x74')]())[_0x2072('0x59')](_0x193817=>_0x1c4dd2['fromRange'](_0x193817));_0x4345cd['model'][_0x2072('0x61')](_0xee3316=>{const _0x171073=_0xee3316[_0x2072('0x14')];_0x53cc65=_0x53cc65['filter'](_0x28e9ec=>_0x2072('0x60')!=_0x28e9ec[_0x2072('0x3e')][_0x2072('0x58')]),_0xee3316[_0x2072('0x12')](_0x53cc65),_0x4345cd[_0x2072('0x39')][_0x2072('0xa')](_0x2072('0x6a'))[_0x2072('0x67')](),_0x4345cd[_0x2072('0x42')](_0x2072('0x6a'),{'forceDefaultExecution':!0x0}),_0x4345cd['model'][_0x2072('0x29')](()=>{_0x4345cd[_0x2072('0x84')]['enqueueChange'](_0x171073,_0x31382b=>{const _0x1a317b=_0x2e4887['filter'](_0x36d6cf=>'$graveyard'!=_0x36d6cf['root'][_0x2072('0x58')]);_0x1a317b[_0x2072('0x0')]>0x0&&_0x31382b[_0x2072('0x12')](_0x1a317b);for(const _0x25a34b of _0x2e4887)_0x25a34b[_0x2072('0x7d')]();});});});}function _0x1bd952(_0x334feb){_0x4345cd[_0x2072('0x84')][_0x2072('0x61')](_0x406e72=>{const _0x502035=Array[_0x2072('0xc')](_0x540194['getRanges']())[_0x2072('0x59')](_0x1f4a49=>_0x1c4dd2['fromRange'](_0x1f4a49)),_0x9e8561=[];for(const _0x35dd47 of _0x334feb)for(const _0x39be54 of _0x35dd47['getItems']({'shallow':!0x0}))_0x9e8561['push'](_0x39be54);for(const _0x3b816f of _0x9e8561)'$graveyard'!=_0x3b816f[_0x2072('0x3e')][_0x2072('0x58')]&&(_0x406e72['setSelection'](_0x406e72[_0x2072('0x6e')](_0x3b816f,0x0)),_0x4345cd[_0x2072('0x39')][_0x2072('0xa')](_0x2072('0x3f'))[_0x2072('0x67')](),_0x4345cd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x111c9a=_0x502035[_0x2072('0x13')](_0x2ca36d=>'$graveyard'!=_0x2ca36d[_0x2072('0x3e')][_0x2072('0x58')]);_0x111c9a['length']>0x0&&_0x406e72['setSelection'](_0x111c9a);for(const _0x4761c8 of _0x502035)_0x4761c8[_0x2072('0x7d')]();});}function _0xf47329(_0x3e2696,_0x4ebc55){return _0x4ebc55[_0x2072('0x4')](_0x56830a=>_0x3e2696[_0x2072('0x8')](_0x938e3c=>_0x938e3c['end'][_0x2072('0x4d')](_0x56830a['start'])||_0x56830a[_0x2072('0x36')]['isEqual'](_0x938e3c[_0x2072('0x1')])));}function _0x59cfb9(_0x527c67,_0x1a2412){return _0x527c67[_0x2072('0x8')](_0x3ed3c2=>_0x1a2412[_0x2072('0x8')](_0x3bd67c=>_0x3ed3c2[_0x2072('0x36')]['isTouching'](_0x3bd67c[_0x2072('0x1')])));}_0x4345cd[_0x2072('0x28')][_0x2072('0x41')]['on'](_0x2072('0x6d'),(_0x371868,_0xfafc00,_0x2ec4bb)=>{if(!_0x2ec4bb[_0x2072('0x55')][_0x2072('0x86')])return;const _0x991e9f=_0xfafc00[_0x2072('0x73')];if(!_0x991e9f)return;const _0x3a2f81=_0x2ec4bb[_0x2072('0x9')]['toViewElement'](_0x991e9f);function _0x46b0a0(_0x30cd59){return Array[_0x2072('0x78')](_0x30cd59)?_0x30cd59:[_0x30cd59];}_0x3a2f81&&'tableCell'===_0x991e9f[_0x2072('0x56')]&&_0xbb2528(_0x3a2f81,_0x2ec4bb[_0x2072('0x6')],(_0x582eec,_0x36d5bb,_0x23b237)=>_0x23b237[_0x2072('0x17')](_0x46b0a0(_0x36d5bb[_0x2072('0x64')]),_0x582eec),(_0x268e05,_0x26545e,_0x52c910)=>_0x52c910['removeClass'](_0x46b0a0(_0x26545e[_0x2072('0x64')]),_0x268e05));},{'priority':_0x2072('0x63')}),_0x2a3bf1[_0x2072('0x82')][_0x2072('0x4a')](_0x4b947b=>{if('insertion'!=_0x4b947b[_0x2072('0x6b')]&&'deletion'!=_0x4b947b[_0x2072('0x6b')])return;const _0x4ed858=_0x4b947b[_0x2072('0x37')]();if(null!=_0x4ed858&&_0x4ed858['is']('element',_0x2072('0x70'))){if('insertion'==_0x4b947b['type']){const _0x1d21b0=_0x4b947b[_0x2072('0x5f')]()['filter'](_0x2e3ba1=>_0x2e3ba1['is'](_0x2072('0x5c')))[_0x2072('0x59')](_0x2b7fa2=>_0x2b7fa2['data']);if(_0x1d21b0[_0x2072('0x0')])return{'type':_0x2072('0x49'),'content':_0x3472d7(_0x59441,'*Insert:*\x20%0',_0x3472d7(_0x59441,_0x2072('0x27'),'\x22'+_0x1d21b0[_0x2072('0x3d')]('\x20')+'\x22'))};}if(_0x2072('0x6f')==_0x4b947b[_0x2072('0x6b')]){const _0x2a8750=_0x4b947b[_0x2072('0x5f')]()[_0x2072('0x13')](_0xd63d70=>_0xd63d70['is']('$textProxy'))[_0x2072('0x59')](_0x46fb44=>_0x46fb44[_0x2072('0x28')]);if(_0x2a8750[_0x2072('0x0')])return{'type':_0x2072('0x6f'),'content':_0x3472d7(_0x59441,_0x2072('0x83'),_0x3472d7(_0x59441,_0x2072('0x27'),'\x22'+_0x2a8750[_0x2072('0x3d')]('\x20')+'\x22'))};}}}),_0x2a3bf1[_0x2072('0x82')][_0x2072('0x4a')](_0x13e275=>{if(_0x2072('0x20')==_0x13e275['subType']){const _0x54393b=_0x13e275[_0x2072('0x5f')]()[_0x2072('0x13')](_0x18d5a7=>_0x18d5a7['is']('$textProxy'))['map'](_0x227bdd=>_0x227bdd[_0x2072('0x28')]),_0x573bf8=this[_0x2072('0x75')](_0x13e275),_0x3cf2d0=_0x573bf8[_0x2072('0x5e')]-_0x573bf8['minRow']+0x1;if('insertion'==_0x13e275[_0x2072('0x6b')])return _0x54393b[_0x2072('0x0')]?{'type':_0x2072('0x49'),'content':_0x3472d7(_0x59441,_0x2072('0x38'),_0x3472d7(_0x59441,_0x2072('0x45'),[_0x3cf2d0,'\x22'+_0x54393b[_0x2072('0x3d')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3472d7(_0x59441,_0x2072('0x38'),_0x3472d7(_0x59441,_0x2072('0x1a'),_0x3cf2d0))};if(_0x2072('0x6f')==_0x13e275['type'])return _0x54393b['length']?{'type':_0x2072('0x6f'),'content':_0x3472d7(_0x59441,_0x2072('0x83'),_0x3472d7(_0x59441,_0x2072('0x45'),[_0x3cf2d0,'\x22'+_0x54393b[_0x2072('0x3d')]('\x20')+'\x22']))}:{'type':_0x2072('0x6f'),'content':_0x3472d7(_0x59441,'*Remove:*\x20%0',_0x3472d7(_0x59441,_0x2072('0x1a'),_0x3cf2d0))};}if('tableColumn'==_0x13e275[_0x2072('0x1f')]){const _0x447f33=_0x13e275[_0x2072('0x5f')]()[_0x2072('0x13')](_0x5936ba=>_0x5936ba['is'](_0x2072('0x5c')))['map'](_0x169f80=>_0x169f80['data']),_0x46ebd4=this[_0x2072('0x75')](_0x13e275),_0x429080=_0x46ebd4[_0x2072('0x3a')]-_0x46ebd4[_0x2072('0x11')]+0x1;if(_0x2072('0x49')==_0x13e275[_0x2072('0x6b')])return _0x447f33[_0x2072('0x0')]?{'type':'insertion','content':_0x3472d7(_0x59441,_0x2072('0x38'),_0x3472d7(_0x59441,_0x2072('0x5b'),[_0x429080,'\x22'+_0x447f33[_0x2072('0x3d')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3472d7(_0x59441,'*Insert:*\x20%0',_0x3472d7(_0x59441,_0x2072('0x51'),_0x429080))};if(_0x2072('0x6f')==_0x13e275['type'])return _0x447f33[_0x2072('0x0')]?{'type':_0x2072('0x6f'),'content':_0x3472d7(_0x59441,_0x2072('0x83'),_0x3472d7(_0x59441,_0x2072('0x5b'),[_0x429080,'\x22'+_0x447f33[_0x2072('0x3d')]('\x20')+'\x22']))}:{'type':_0x2072('0x6f'),'content':_0x3472d7(_0x59441,_0x2072('0x83'),_0x3472d7(_0x59441,_0x2072('0x51'),_0x429080))};}}),_0x2a3bf1[_0x2072('0x34')][_0x2072('0x40')](_0x2072('0x49'),_0x2072('0x20'),_0x2072('0x1b'),_0x5d5ac9),_0x2a3bf1[_0x2072('0x34')][_0x2072('0x40')]('deletion','tableRow',_0x2072('0x69'),_0x5d5ac9),_0x2a3bf1['_suggestionFactory'][_0x2072('0x40')](_0x2072('0x49'),'tableColumn',_0x2072('0x1b'),_0x1bd952),_0x2a3bf1['_suggestionFactory'][_0x2072('0x40')]('deletion',_0x2072('0x25'),_0x2072('0x69'),_0x1bd952),_0x2a3bf1[_0x2072('0x34')][_0x2072('0x40')]('insertion','tableColumn','join',_0xf47329),_0x2a3bf1[_0x2072('0x34')][_0x2072('0x40')](_0x2072('0x6f'),_0x2072('0x25'),_0x2072('0x3d'),_0xf47329),_0x2a3bf1[_0x2072('0x34')]['registerCustomCallback'](_0x2072('0x49'),_0x2072('0x20'),_0x2072('0x3d'),_0x59cfb9),_0x2a3bf1[_0x2072('0x34')]['registerCustomCallback'](_0x2072('0x6f'),_0x2072('0x20'),'join',_0x59cfb9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56b26b=this['editor'],_0x102110=_0x56b26b[_0x2072('0x84')][_0x2072('0x26')]['selection'];return(_0x3db2b0,_0x87fdc5)=>{_0x56b26b[_0x2072('0x84')][_0x2072('0x61')](_0x5beacc=>{const {commandName:_0x4781d3,commandParams:_0x58fd1a}=_0x87fdc5;let _0x26c01e=_0x3db2b0[0x0]['end'][_0x2072('0x5a')];_0x58fd1a&&_0x58fd1a[0x0]&&!0x1===_0x58fd1a[0x0]['forceValue']&&(_0x26c01e=_0x3db2b0[0x0][_0x2072('0x1')][_0x2072('0x85')]);const _0x475cac=_0x5beacc[_0x2072('0x48')](_0x26c01e);if(_0x2072('0x60')==_0x475cac['root']['rootName'])return;const _0x259338=Array[_0x2072('0xc')](_0x102110[_0x2072('0x74')]())[_0x2072('0x59')](_0x3f632e=>_0x1c4dd2[_0x2072('0x4f')](_0x3f632e));_0x5beacc['setSelection'](_0x475cac),_0x56b26b['commands'][_0x2072('0xa')](_0x4781d3)[_0x2072('0x67')](),_0x58fd1a[_0x2072('0xd')]({'forceDefaultExecution':!0x0}),_0x56b26b[_0x2072('0x42')](_0x4781d3,..._0x58fd1a);const _0x290afd=_0x259338[_0x2072('0x13')](_0x39245b=>_0x2072('0x60')!=_0x39245b[_0x2072('0x3e')]['rootName']);_0x290afd[_0x2072('0x0')]>0x0&&_0x5beacc[_0x2072('0x12')](_0x290afd);for(const _0x298668 of _0x259338)_0x298668['detach']();});};}[_0x2072('0x80')](_0xc1059d){const _0x3fd1e4=this[_0x2072('0x3b')]['plugins'][_0x2072('0xa')](_0x2072('0x62'));let _0x5631b1=Number['MAX_SAFE_INTEGER'],_0x1b335f=Number['MIN_SAFE_INTEGER'],_0x11a850=Number['MAX_SAFE_INTEGER'],_0x22e650=Number[_0x2072('0x10')];for(const _0x8d0f0f of _0xc1059d){if(_0x2072('0x60')==_0x8d0f0f[_0x2072('0x3e')][_0x2072('0x58')])continue;const {row:_0x266182,column:_0x93a760}=_0x3fd1e4['getCellLocation'](_0x8d0f0f),_0x9844bd=_0x8d0f0f[_0x2072('0x68')](_0x2072('0x53'))?_0x8d0f0f['getAttribute'](_0x2072('0x53'))-0x1:0x0,_0x36c1d3=_0x8d0f0f[_0x2072('0x68')](_0x2072('0x31'))?_0x8d0f0f['getAttribute']('colspan')-0x1:0x0;_0x5631b1=_0x266182<_0x5631b1?_0x266182:_0x5631b1,_0x1b335f=_0x266182+_0x9844bd>_0x1b335f?_0x266182+_0x9844bd:_0x1b335f,_0x11a850=_0x93a760<_0x11a850?_0x93a760:_0x11a850,_0x22e650=_0x93a760+_0x36c1d3>_0x22e650?_0x93a760+_0x36c1d3:_0x22e650;}return{'minRow':_0x5631b1,'maxRow':_0x1b335f,'minColumn':_0x11a850,'maxColumn':_0x22e650};}[_0x2072('0x4c')](){const _0xe42778=this[_0x2072('0x3b')],_0x2e1672=_0xe42778[_0x2072('0x5d')][_0x2072('0xa')](_0x2072('0x7a')),_0x2f151a=_0xe42778['plugins']['get'](_0x2072('0x62'));_0xe42778[_0x2072('0x84')][_0x2072('0x26')]['on'](_0x2072('0xf'),()=>{const _0xc0431d=Array[_0x2072('0xc')](_0xe42778['model'][_0x2072('0x26')]['differ']['getChangedMarkers']());for(const {name:_0x2204a3,data:_0x42c21f}of _0xc0431d){const {group:_0x584372,id:_0x295f1c,subType:_0xb34516}=_0x2e1672[_0x2072('0x72')](_0x2204a3);if(_0x2072('0x65')!=_0x584372)continue;if(null!=_0x42c21f[_0x2072('0x2e')])continue;const _0x4cbf30=_0x2e1672[_0x2072('0x4e')](_0x295f1c);this['_tablePostFixingSubtypes']['includes'](_0xb34516)&&this['_tableSuggestions'][_0x2072('0x77')](_0x4cbf30);}},{'priority':_0x2072('0x1d')});const _0x14aae6=(_0x23009d,_0x1f7d2f)=>{let _0x30c254=!0x1;const _0x4690de=_0x1f7d2f[_0x2072('0x7')](_0x23009d),_0x5b7236=_0x23009d['findAncestor'](_0x2072('0x70')),_0x4af50b=_0x2f151a['getCellLocation'](_0x23009d);for(const _0x40e553 of this[_0x2072('0x79')]){const _0x17b0cd=_0x40e553[_0x2072('0x1f')],_0x330f78=_0x17b0cd['startsWith'](_0x2072('0x23')),_0x4aa1c7=_0x17b0cd[_0x2072('0x81')](_0x330f78?0xa:0x5),_0x3dfa72=_0x4aa1c7[_0x2072('0x21')](),_0x875947=_0x3dfa72[_0x2072('0x81')](0x0,0x3)+_0x2072('0x18'),_0x8bf614='min'+_0x4aa1c7,_0x405b1a=_0x2072('0x7f')+_0x4aa1c7;if(!_0x40e553[_0x2072('0x76')])continue;if(_0x5b7236!=_0x40e553[_0x2072('0x71')]()[_0x2072('0x1')][_0x2072('0x2f')](_0x2072('0x70')))continue;if(_0x40e553[_0x2072('0xe')](_0x4690de))continue;const _0x5cf952=_0x23009d[_0x2072('0x68')](_0x875947)?_0x23009d['getAttribute'](_0x875947)-0x1:0x0,_0x3da1d1=this[_0x2072('0x75')](_0x40e553),_0x5ab363=_0x3da1d1[_0x8bf614],_0x319103=_0x3da1d1[_0x405b1a];_0x5ab363<=_0x4af50b[_0x3dfa72]&&_0x4af50b[_0x3dfa72]+_0x5cf952<=_0x319103&&(_0x40e553['addRange'](_0x4690de),_0x30c254=!0x0);}return _0x30c254;};_0xe42778[_0x2072('0x84')][_0x2072('0x26')][_0x2072('0x2c')](_0x5264f7=>{let _0x4a2fe7=!0x1;for(const _0x250edf of _0xe42778[_0x2072('0x84')][_0x2072('0x26')]['differ'][_0x2072('0xb')]())if(_0x2072('0x54')==_0x250edf[_0x2072('0x6b')]){if('tableRow'==_0x250edf[_0x2072('0x56')])for(const _0x2874cf of _0x250edf[_0x2072('0x43')][_0x2072('0x85')][_0x2072('0x2d')]())_0x4a2fe7=_0x4a2fe7||_0x14aae6(_0x2874cf,_0x5264f7);else _0x2072('0x2')==_0x250edf['name']&&(_0x4a2fe7=_0x4a2fe7||_0x14aae6(_0x250edf[_0x2072('0x43')][_0x2072('0x85')],_0x5264f7));}return _0x4a2fe7;});}[_0x2072('0x75')](_0x49169b){return this[_0x2072('0x80')](_0x49169b['getRanges']()[_0x2072('0x59')](_0x27a580=>_0x27a580['start'][_0x2072('0x85')]));}}function se(_0x546122){return Array[_0x2072('0xc')](new Set(_0x546122)[_0x2072('0x32')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x305e=['afterInit','has','toggleTableCaption','get','editor','TrackChangesEditing','plugins','TableCaptionEditing'];(function(_0x5b28ba,_0x305efd){const _0x26d63a=function(_0x5b7ec2){while(--_0x5b7ec2){_0x5b28ba['push'](_0x5b28ba['shift']());}};_0x26d63a(++_0x305efd);}(_0x305e,0x1e3));const _0x26d6=function(_0x5b28ba,_0x305efd){_0x5b28ba=_0x5b28ba-0x0;let _0x26d63a=_0x305e[_0x5b28ba];return _0x26d63a;};import{Plugin as _0x444e7c}from'ckeditor5/src/core';import _0x35dca6 from'./table';export default class Nt extends _0x444e7c{static get['requires'](){return[_0x35dca6];}[_0x26d6('0x5')](){const _0x290729=this[_0x26d6('0x1')];if(!_0x290729[_0x26d6('0x3')][_0x26d6('0x6')](_0x26d6('0x4')))return;_0x290729[_0x26d6('0x3')][_0x26d6('0x0')](_0x26d6('0x2'))['enableCommand'](_0x26d6('0x7'));}}
|