@ckeditor/ckeditor5-track-changes 35.4.0 → 36.0.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 +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +6 -3
- package/lang/translations/ar.po +16 -4
- package/lang/translations/az.po +16 -4
- package/lang/translations/bg.po +16 -4
- package/lang/translations/bn.po +16 -4
- package/lang/translations/ca.po +16 -4
- package/lang/translations/cs.po +16 -4
- package/lang/translations/da.po +16 -4
- package/lang/translations/de.po +16 -4
- package/lang/translations/el.po +16 -4
- package/lang/translations/en-au.po +16 -4
- package/lang/translations/en.po +16 -4
- package/lang/translations/es.po +16 -4
- package/lang/translations/et.po +16 -4
- package/lang/translations/fi.po +16 -4
- package/lang/translations/fr.po +16 -4
- package/lang/translations/gl.po +16 -4
- package/lang/translations/he.po +16 -4
- package/lang/translations/hi.po +16 -4
- package/lang/translations/hr.po +16 -4
- package/lang/translations/hu.po +16 -4
- package/lang/translations/id.po +16 -4
- package/lang/translations/it.po +16 -4
- package/lang/translations/ja.po +16 -4
- package/lang/translations/ko.po +16 -4
- package/lang/translations/lt.po +16 -4
- package/lang/translations/lv.po +16 -4
- package/lang/translations/ms.po +16 -4
- package/lang/translations/nl.po +16 -4
- package/lang/translations/no.po +16 -4
- package/lang/translations/pl.po +16 -4
- package/lang/translations/pt-br.po +16 -4
- package/lang/translations/pt.po +16 -4
- package/lang/translations/ro.po +16 -4
- package/lang/translations/ru.po +16 -4
- package/lang/translations/sk.po +16 -4
- package/lang/translations/sr-latn.po +32 -20
- package/lang/translations/sr.po +33 -21
- package/lang/translations/sv.po +16 -4
- package/lang/translations/th.po +16 -4
- package/lang/translations/tk.po +16 -4
- package/lang/translations/tr.po +16 -4
- package/lang/translations/tt.po +16 -4
- package/lang/translations/uk.po +16 -4
- package/lang/translations/ur.po +16 -4
- package/lang/translations/vi.po +16 -4
- package/lang/translations/zh-cn.po +16 -4
- package/lang/translations/zh.po +16 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab5=['length','handleListStartCommand','handleListReversedCommand','backward','plugins','from','get','ListUtils','toUpperCase','forward','_getTranslationKeyForListStyle','change','afterInit','handleDescriptions','_getSuggestionBlocks','handleListStyleCommand','type','startIndex','has','bind','listItem','getSiblingNodes','config','listType','map','list.properties','TrackChangesEditing','_LIST_','format','editor','_descriptionFactory','enableCommand','listStart','getListTypeFromListStyleType','element','reversed','hasAttribute','createPositionAt','before','getSelectedBlocks','flat','listStyle','commandParams','markMultiRangeBlockFormat','*Change\x20to:*\x20%0','selection','*Format:*\x20set\x20order\x20to\x20regular','document','styles','listReversed','ELEMENT_','model','ListPropertiesEditing'];(function(_0x2c6ca0,_0x2ab584){const _0x47b370=function(_0x5b4c8d){while(--_0x5b4c8d){_0x2c6ca0['push'](_0x2c6ca0['shift']());}};_0x47b370(++_0x2ab584);}(_0x2ab5,0x11e));const _0x47b3=function(_0x2c6ca0,_0x2ab584){_0x2c6ca0=_0x2c6ca0-0x0;let _0x47b370=_0x2ab5[_0x2c6ca0];return _0x47b370;};import{Plugin as _0x47fb26}from'ckeditor5/src/core';import{getTranslation as _0x5c236b}from'../utils/common-translations';export default class ot extends _0x47fb26{[_0x47b3('0x2c')](){if(!this[_0x47b3('0x8')]['plugins'][_0x47b3('0x32')](_0x47b3('0x1f')))return;const _0x2f9a79=this['editor'][_0x47b3('0x1')][_0x47b3('0x26')](_0x47b3('0x4')),_0x3c5c8d=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5'));_0x2f9a79[_0x47b3('0x1b')]&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0x14'),this['handleListStyleCommand'][_0x47b3('0x33')](this)),_0x2f9a79[_0x47b3('0xe')]&&_0x3c5c8d[_0x47b3('0xa')]('listReversed',this[_0x47b3('0x22')][_0x47b3('0x33')](this)),_0x2f9a79['startIndex']&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0xb'),this[_0x47b3('0x21')][_0x47b3('0x33')](this)),_0x3c5c8d[_0x47b3('0x9')]['registerDescriptionCallback'](this[_0x47b3('0x2d')][_0x47b3('0x33')](this));}[_0x47b3('0x2f')](_0x5c8993,_0x2068b3){const _0x5616bf=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')](_0x47b3('0x5')),_0x5aa0d6=this[_0x47b3('0x2e')](_0x3877fe=>_0x3877fe[_0x47b3('0xf')](_0x47b3('0x2')));_0x5aa0d6['length']<0x1||this[_0x47b3('0x8')]['model']['change'](()=>{_0x5616bf[_0x47b3('0x16')](_0x5aa0d6,{'commandName':_0x47b3('0x14'),'commandParams':[{'type':_0x2068b3[_0x47b3('0x30')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x201b94,_0x3b167d){const _0x3a0113=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')]('TrackChangesEditing'),_0x4a06f9=this[_0x47b3('0x2e')](_0x1ecb77=>_0x1ecb77['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1ecb77['getAttribute'](_0x47b3('0x2')));if(_0x4a06f9[_0x47b3('0x20')]<0x1)return;const _0x4fa7cb=_0x4a06f9['map'](_0xf7b7bf=>this['editor'][_0x47b3('0x1e')]['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,'before'),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,0x0)));this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x2b')](()=>{_0x3a0113[_0x47b3('0x16')](_0x4fa7cb,{'commandName':_0x47b3('0x1c'),'commandParams':[{'reversed':_0x3b167d[_0x47b3('0xe')]}],'formatGroupId':_0x47b3('0x1c')});});}['handleListStartCommand'](_0x4bef8b,_0x7f0049){const _0x5b99fe=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5')),_0x31c5bb=this[_0x47b3('0x2e')](_0x1eacb7=>_0x1eacb7['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1eacb7['getAttribute'](_0x47b3('0x2')));if(_0x31c5bb[_0x47b3('0x20')]<0x1)return;const _0x2efa2d=_0x31c5bb[_0x47b3('0x3')](_0x1f63ea=>this[_0x47b3('0x8')]['model']['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,_0x47b3('0x11')),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,0x0)));this[_0x47b3('0x8')]['model'][_0x47b3('0x2b')](()=>{_0x5b99fe[_0x47b3('0x16')](_0x2efa2d,{'commandName':_0x47b3('0xb'),'commandParams':[{'startIndex':_0x7f0049[_0x47b3('0x31')]}],'formatGroupId':_0x47b3('0xb')});});}[_0x47b3('0x2d')](_0x19e7d7){const _0x107624=this['editor']['locale'],{data:_0x5b45aa}=_0x19e7d7;if(!_0x5b45aa)return;let _0xb7118b,_0x21c7d7;switch(_0x5b45aa['commandName']){case _0x47b3('0x14'):_0xb7118b=_0x47b3('0x17'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5c236b(_0x107624,this[_0x47b3('0x2a')](_0x5b45aa[_0x47b3('0x15')][0x0]['type'])))};break;case'listReversed':_0xb7118b=_0x5b45aa[_0x47b3('0x15')][0x0][_0x47b3('0xe')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x47b3('0x19'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b)};break;case _0x47b3('0xb'):_0xb7118b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5b45aa['commandParams'][0x0][_0x47b3('0x31')])};}return _0x21c7d7;}[_0x47b3('0x2e')](_0x84cbb9){const _0x39581e=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')]('ListUtils');let _0x17364c=Array[_0x47b3('0x25')](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x1a')][_0x47b3('0x18')][_0x47b3('0x12')]())['filter'](_0x84cbb9)[_0x47b3('0x3')](_0x5ea1c1=>{const _0x505711=this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x5ea1c1,0x0);return[..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x23')),..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x29'))];})[_0x47b3('0x13')]();return _0x17364c=[...new Set(_0x17364c)],_0x17364c;}[_0x47b3('0x2a')](_0x4adb39){return _0x47b3('0x1d')+this['editor'][_0x47b3('0x24')]['get'](_0x47b3('0x27'))[_0x47b3('0xc')](_0x4adb39)[_0x47b3('0x28')]()+_0x47b3('0x6')+_0x4adb39[_0x47b3('0x28')]()['replaceAll']('-','_');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5825=['_descriptionFactory','plugins','downcastDispatcher','editor','has','registerElementLabel','options','locale','MediaEmbedEditing','showSuggestionHighlights','attribute:url:media','media','ELEMENT_MEDIA','afterInit','data','high','mediaEmbed','TrackChangesEditing','for','div','dataDowncast','stop'];(function(_0x25618a,_0x5825ed){const _0x16fd48=function(_0x7cb824){while(--_0x7cb824){_0x25618a['push'](_0x25618a['shift']());}};_0x16fd48(++_0x5825ed);}(_0x5825,0x101));const _0x16fd=function(_0x25618a,_0x5825ed){_0x25618a=_0x25618a-0x0;let _0x16fd48=_0x5825[_0x25618a];return _0x16fd48;};import{Plugin as _0x293430}from'ckeditor5/src/core';import{getTranslation as _0x2cd137}from'../utils/common-translations';export default class rt extends _0x293430{[_0x16fd('0x14')](){const _0x4dfaf7=this[_0x16fd('0xa')];if(!_0x4dfaf7[_0x16fd('0x8')][_0x16fd('0xb')](_0x16fd('0xf')))return;const _0x5f517b=_0x4dfaf7['plugins']['get'](_0x16fd('0x2')),_0x39203b=_0x4dfaf7[_0x16fd('0xe')];_0x5f517b['enableCommand'](_0x16fd('0x1')),_0x5f517b[_0x16fd('0x7')][_0x16fd('0xc')](_0x16fd('0x12'),_0x65aedd=>_0x2cd137(_0x39203b,_0x16fd('0x13'),_0x65aedd)),_0x4dfaf7['conversion'][_0x16fd('0x3')](_0x16fd('0x5'))['elementToElement']({'model':_0x16fd('0x12'),'view':(_0x3e13cd,{writer:_0x2fad86,options:_0x1f46af})=>{if(_0x1f46af[_0x16fd('0x10')])return _0x2fad86['createEmptyElement'](_0x16fd('0x4'));},'converterPriority':_0x16fd('0x0')}),_0x4dfaf7[_0x16fd('0x15')][_0x16fd('0x9')]['on'](_0x16fd('0x11'),(_0x19e892,_0x14ae63,_0x12f0d8)=>{_0x12f0d8[_0x16fd('0xd')][_0x16fd('0x10')]&&_0x19e892[_0x16fd('0x6')]();},{'priority':_0x16fd('0x0')});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c1b=['plugins','MentionEditing','get','has','enableCommand','mention','afterInit','TrackChangesEditing'];(function(_0x51429c,_0x2c1b45){const _0x4f348d=function(_0x51f77e){while(--_0x51f77e){_0x51429c['push'](_0x51429c['shift']());}};_0x4f348d(++_0x2c1b45);}(_0x2c1b,0x1b9));const _0x4f34=function(_0x51429c,_0x2c1b45){_0x51429c=_0x51429c-0x0;let _0x4f348d=_0x2c1b[_0x51429c];return _0x4f348d;};import{Plugin as _0x37b14d}from'ckeditor5/src/core';export default class at extends _0x37b14d{[_0x4f34('0x5')](){const _0x57d2bb=this['editor'];_0x57d2bb['plugins'][_0x4f34('0x2')](_0x4f34('0x0'))&&_0x57d2bb[_0x4f34('0x7')][_0x4f34('0x1')](_0x4f34('0x6'))[_0x4f34('0x3')](_0x4f34('0x4'));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13a8=['ELEMENT_PAGE_BREAK','afterInit','_descriptionFactory','TrackChangesEditing','pageBreak','registerElementLabel','has','get','PageBreakEditing','enableCommand','plugins'];(function(_0x155c14,_0x13a893){const _0x31db2c=function(_0xc9af9d){while(--_0xc9af9d){_0x155c14['push'](_0x155c14['shift']());}};_0x31db2c(++_0x13a893);}(_0x13a8,0xbd));const _0x31db=function(_0x155c14,_0x13a893){_0x155c14=_0x155c14-0x0;let _0x31db2c=_0x13a8[_0x155c14];return _0x31db2c;};import{Plugin as _0x517e42}from'ckeditor5/src/core';import{getTranslation as _0x3c4329}from'../utils/common-translations';export default class ct extends _0x517e42{[_0x31db('0xa')](){const _0x5e9fc0=this['editor'];if(!_0x5e9fc0[_0x31db('0x8')][_0x31db('0x4')](_0x31db('0x6')))return;_0x5e9fc0[_0x31db('0x8')][_0x31db('0x5')]('TrackChangesEditing')[_0x31db('0x7')](_0x31db('0x2'));const _0x2d6e57=_0x5e9fc0[_0x31db('0x8')][_0x31db('0x5')](_0x31db('0x1')),_0x8c580a=_0x5e9fc0['locale'];_0x2d6e57[_0x31db('0x0')][_0x31db('0x3')]('pageBreak',_0x57eddf=>_0x3c4329(_0x8c580a,_0x31db('0x9'),_0x57eddf));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e64=['from','blockName','filter','format','model','includes','addMarker:suggestion:insertion','enableCommand','schema','selection','ck-suggestion-marker-split','getFirstRange','insert','highest','Paragraph','plugins','locale','markBlockFormat','*Insert:*\x20%0','has','downcastDispatcher','isLimit','isObject','registerElementLabel','editor','start','name','toViewPosition','options','writer','mapper','activeMarkers','nodeAfter','paragraph','get','registerDescriptionCallback','change','isBlock','isTouching','*Change\x20to:*\x20%0','checkChild','insertion','markerRange','end','createUIElement','TrackChangesEditing','$text','ck-suggestion-marker--active','afterInit','type','_descriptionFactory','commandName','bindElementToMarker','markerName','getItemLabel','data'];(function(_0x34efaa,_0x4e644d){const _0x2dc9cf=function(_0x5d72a3){while(--_0x5d72a3){_0x34efaa['push'](_0x34efaa['shift']());}};_0x2dc9cf(++_0x4e644d);}(_0x4e64,0x142));const _0x2dc9=function(_0x34efaa,_0x4e644d){_0x34efaa=_0x34efaa-0x0;let _0x2dc9cf=_0x4e64[_0x34efaa];return _0x2dc9cf;};import{Plugin as _0x5c2cf1}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x15cb55}from'./utils';import{getTranslation as _0x5889d7}from'../utils/common-translations';export default class ht extends _0x5c2cf1{[_0x2dc9('0x6')](){const _0x219432=this['editor'];if(!_0x219432[_0x2dc9('0x1d')][_0x2dc9('0x21')](_0x2dc9('0x1c')))return;const _0x339a65=_0x219432[_0x2dc9('0x1e')],_0x2c7054=_0x219432['plugins'][_0x2dc9('0x30')]('TrackChangesEditing');_0x2c7054['_descriptionFactory'][_0x2dc9('0x25')]('paragraph',_0x23d865=>_0x5889d7(_0x339a65,'ELEMENT_PARAGRAPH',_0x23d865)),_0x2c7054[_0x2dc9('0x15')](_0x2dc9('0x2f'),(_0x2c57c7,_0x18d600={})=>{const _0x9f52cb=_0x219432[_0x2dc9('0x12')]['document'],_0x46b26e=_0x18d600[_0x2dc9('0x17')]||_0x9f52cb[_0x2dc9('0x17')],_0x2270ba=Array[_0x2dc9('0xe')](_0x46b26e['getSelectedBlocks']())[_0x2dc9('0x10')](_0x2d2408=>function(_0x159bb2,_0x378a8e){return _0x378a8e[_0x2dc9('0x36')](_0x159bb2['parent'],'paragraph')&&!_0x378a8e[_0x2dc9('0x24')](_0x159bb2)&&_0x2dc9('0x2f')!=_0x159bb2[_0x2dc9('0x28')];}(_0x2d2408,this[_0x2dc9('0x26')][_0x2dc9('0x12')][_0x2dc9('0x16')]));_0x219432[_0x2dc9('0x12')][_0x2dc9('0x32')](()=>{for(const _0x4e375c of _0x2270ba)_0x2c7054[_0x2dc9('0x1f')](_0x4e375c,{'commandName':_0x2dc9('0x2f'),'commandParams':[],'formatGroupId':_0x2dc9('0xf')},_0x15cb55(_0x4e375c));});}),_0x2c7054[_0x2dc9('0x8')][_0x2dc9('0x31')](_0x177ded=>{const {data:_0x5b8b62}=_0x177ded;if(_0x5b8b62&&_0x2dc9('0x2f')==_0x5b8b62[_0x2dc9('0x9')])return{'type':_0x2dc9('0x11'),'content':_0x5889d7(_0x339a65,_0x2dc9('0x35'),_0x5889d7(_0x339a65,'ELEMENT_PARAGRAPH'))};}),_0x2c7054[_0x2dc9('0x15')]('insertParagraph'),_0x219432['editing'][_0x2dc9('0x22')]['on'](_0x2dc9('0x14'),ar(_0x219432),{'priority':_0x2dc9('0x1b')}),_0x219432[_0x2dc9('0xd')]['downcastDispatcher']['on'](_0x2dc9('0x14'),(_0x36e8f2,_0x2db4f3,_0x28f7e)=>{_0x28f7e[_0x2dc9('0x2a')]['showSuggestionHighlights']&&ar(_0x219432,{'showActiveMarker':!0x1})(_0x36e8f2,_0x2db4f3,_0x28f7e);},{'priority':_0x2dc9('0x1b')});const _0x2979cf=_0x2c7054[_0x2dc9('0x8')];_0x2979cf[_0x2dc9('0x31')](_0x44ddc6=>{if(_0x2dc9('0x37')!==_0x44ddc6[_0x2dc9('0x7')])return;const {start:_0x4a3653,end:_0x70e010}=_0x44ddc6[_0x2dc9('0x19')]();if(!_0x4a3653[_0x2dc9('0x34')](_0x70e010)||!_0x4a3653[_0x2dc9('0x2e')])return;const _0x1b1110=_0x219432['model'][_0x2dc9('0x16')],_0x4cfb2a=_0x4a3653['nodeAfter'];return _0x1b1110[_0x2dc9('0x33')](_0x4cfb2a)&&!_0x1b1110[_0x2dc9('0x23')](_0x4cfb2a)&&_0x1b1110[_0x2dc9('0x36')](_0x4cfb2a,_0x2dc9('0x4'))?{'type':_0x2dc9('0x37'),'content':_0x5889d7(_0x339a65,_0x2dc9('0x20'),_0x2979cf[_0x2dc9('0xc')](_0x4cfb2a,0x1))}:void 0x0;});}}function ar(_0x2f902d,{showActiveMarker:_0x4e62a4=!0x0}={}){return(_0x38bbc6,_0xcb5a99,_0x4fbad6)=>{const _0x4d415d=_0x2f902d[_0x2dc9('0x1d')]['get'](_0x2dc9('0x3')),_0x21d0bc=_0xcb5a99[_0x2dc9('0x0')][_0x2dc9('0x27')],_0x2c99ce=_0xcb5a99[_0x2dc9('0x0')][_0x2dc9('0x1')],_0x5b32b5=_0x2f902d[_0x2dc9('0x12')][_0x2dc9('0x16')];if(!_0x21d0bc[_0x2dc9('0x34')](_0x2c99ce)||!_0x21d0bc[_0x2dc9('0x2e')])return;const _0x792665=_0x21d0bc[_0x2dc9('0x2e')];if(_0x5b32b5[_0x2dc9('0x33')](_0x792665)&&!_0x5b32b5[_0x2dc9('0x23')](_0x792665)&&_0x5b32b5[_0x2dc9('0x36')](_0x792665,_0x2dc9('0x4'))){if(!_0x4fbad6['consumable']['consume'](_0xcb5a99[_0x2dc9('0x0')],_0x38bbc6[_0x2dc9('0x28')]))return;const _0x18bcdc=_0x4fbad6['writer'][_0x2dc9('0x2')]('span',{'class':_0x2dc9('0x18')}),_0x1752d7=_0x4fbad6[_0x2dc9('0x2c')][_0x2dc9('0x29')](_0x2c99ce);_0x4e62a4&&_0x4d415d[_0x2dc9('0x2d')][_0x2dc9('0x13')](_0xcb5a99[_0x2dc9('0xb')])&&_0x4fbad6[_0x2dc9('0x2b')]['addClass'](_0x2dc9('0x5'),_0x18bcdc),_0x4fbad6['writer'][_0x2dc9('0x1a')](_0x1752d7,_0x18bcdc),_0x4fbad6[_0x2dc9('0x2c')][_0x2dc9('0xa')](_0x18bcdc,_0xcb5a99['markerName']);}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3355=['*Remove\x20all\x20formatting*','getAttributeProperties','RemoveFormatEditing','removeFormat','locale','commandName','document','schema','isFormatting','enableCommand','editor','TrackChangesEditing','has','markInlineFormat','isCollapsed','registerDescriptionCallback','createRangeOn','getItems','model','_descriptionFactory','plugins','afterInit'];(function(_0x1ec2ca,_0x335502){const _0x871461=function(_0xa176fa){while(--_0xa176fa){_0x1ec2ca['push'](_0x1ec2ca['shift']());}};_0x871461(++_0x335502);}(_0x3355,0xe5));const _0x8714=function(_0x1ec2ca,_0x335502){_0x1ec2ca=_0x1ec2ca-0x0;let _0x871461=_0x3355[_0x1ec2ca];return _0x871461;};import{Plugin as _0x44e6b5}from'ckeditor5/src/core';import{getTranslation as _0x33eb5e}from'../utils/common-translations';export default class ut extends _0x44e6b5{[_0x8714('0xc')](){const _0x358588=this[_0x8714('0x1')];if(!_0x358588[_0x8714('0xb')][_0x8714('0x3')](_0x8714('0xf')))return;const _0x56664=_0x358588[_0x8714('0xb')]['get'](_0x8714('0x2'));_0x56664[_0x8714('0x0')](_0x8714('0x10'),_0x17a365=>{const _0x43c2f2=_0x358588['model'][_0x8714('0x13')]['selection'];_0x43c2f2[_0x8714('0x5')]?_0x17a365():_0x358588[_0x8714('0x9')]['change'](()=>{const _0x49b48d=Array['from'](_0x43c2f2['getRanges']());for(const _0x1ad5be of _0x49b48d)for(const _0x3adb04 of _0x1ad5be[_0x8714('0x8')]())to(_0x3adb04,_0x358588[_0x8714('0x9')][_0x8714('0x14')])&&_0x56664[_0x8714('0x4')](_0x358588['model'][_0x8714('0x7')](_0x3adb04),{'commandName':_0x8714('0x10'),'commandParams':[]});});}),_0x56664[_0x8714('0xa')][_0x8714('0x6')](_0x3673a8=>{const {data:_0x5d1da6}=_0x3673a8;if(_0x5d1da6&&_0x8714('0x10')==_0x5d1da6[_0x8714('0x12')])return{'type':'format','content':_0x33eb5e(_0x358588[_0x8714('0x11')],_0x8714('0xd'))};});}}function to(_0x564a92,_0x17d87b){for(const [_0x10fbfc]of _0x564a92['getAttributes']()){const _0x38ac02=_0x17d87b[_0x8714('0xe')](_0x10fbfc);if(_0x38ac02&&_0x38ac02[_0x8714('0x15')])return!0x0;}return!0x1;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x454a=['enableCommand','get','goToNextRestrictedEditingException','RestrictedEditingModeEditing','editor','acceptSuggestion','acceptAllSuggestions','discardAllSuggestions','discardSelectedSuggestions','discardSuggestion','TrackChangesEditing','afterInit','plugins'];(function(_0x3121a3,_0x454a6c){const _0x49e920=function(_0x425ac3){while(--_0x425ac3){_0x3121a3['push'](_0x3121a3['shift']());}};_0x49e920(++_0x454a6c);}(_0x454a,0x132));const _0x49e9=function(_0x3121a3,_0x454a6c){_0x3121a3=_0x3121a3-0x0;let _0x49e920=_0x454a[_0x3121a3];return _0x49e920;};import{Plugin as _0x1d44b4}from'ckeditor5/src/core';export default class ft extends _0x1d44b4{[_0x49e9('0x4')](){const _0x40ba97=this[_0x49e9('0xa')];if(!_0x40ba97[_0x49e9('0x5')]['has'](_0x49e9('0x9')))return;const _0xfbd728=_0x40ba97[_0x49e9('0x5')]['get'](_0x49e9('0x3'));_0xfbd728[_0x49e9('0x6')]('goToPreviousRestrictedEditingException'),_0xfbd728['enableCommand'](_0x49e9('0x8'));const _0x2461cc=_0x40ba97[_0x49e9('0x5')][_0x49e9('0x7')](_0x49e9('0x9'));_0x2461cc[_0x49e9('0x6')]('trackChanges'),_0x2461cc[_0x49e9('0x6')](_0x49e9('0xb')),_0x2461cc['enableCommand'](_0x49e9('0x2')),_0x2461cc[_0x49e9('0x6')](_0x49e9('0xc')),_0x2461cc[_0x49e9('0x6')](_0x49e9('0x0')),_0x2461cc[_0x49e9('0x6')]('acceptSelectedSuggestions'),_0x2461cc['enableCommand'](_0x49e9('0x1'));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x95a0=['data','mapper','markerName','get','addClass','plugins','merge','high','name','markerRange','downcastDispatcher','softBreak','editing','toViewPosition','test','includes','span','locale','element','editor','model','_descriptionFactory','deletion','ck-suggestion-marker-','enableCommand','consumable','writer','activeMarkers','showSuggestionHighlights','TrackChangesEditing','ck-suggestion-marker--active','split','createUIElement','init','options','getItems'];(function(_0x551d52,_0x95a082){const _0x3f6589=function(_0x5d7f5c){while(--_0x5d7f5c){_0x551d52['push'](_0x551d52['shift']());}};_0x3f6589(++_0x95a082);}(_0x95a0,0x1c9));const _0x3f65=function(_0x551d52,_0x95a082){_0x551d52=_0x551d52-0x0;let _0x3f6589=_0x95a0[_0x551d52];return _0x3f6589;};import{Plugin as _0x20456d}from'ckeditor5/src/core';import{ShiftEnter as _0x51103a}from'ckeditor5/src/enter';import{getTranslation as _0x114bd0}from'../utils/common-translations';export default class gt extends _0x20456d{static get['requires'](){return[_0x51103a];}[_0x3f65('0x8')](){const _0x2f858f=this[_0x3f65('0x1e')],_0x535837=_0x2f858f['plugins'][_0x3f65('0xe')](_0x3f65('0x4'));_0x535837[_0x3f65('0x23')]('shiftEnter'),_0x2f858f['editing'][_0x3f65('0x15')]['on']('addMarker:suggestion:insertion',re(_0x2f858f),{'priority':_0x3f65('0x12')}),_0x2f858f[_0x3f65('0x17')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x2f858f),{'priority':'high'}),_0x2f858f[_0x3f65('0xb')][_0x3f65('0x15')]['on']('addMarker:suggestion',(_0x145053,_0x420514,_0x39909d)=>{_0x39909d[_0x3f65('0x9')][_0x3f65('0x3')]&&re(_0x2f858f,{'showActiveMarker':!0x1})(_0x145053,_0x420514,_0x39909d);}),_0x535837[_0x3f65('0x20')]['registerElementLabel'](_0x3f65('0x16'),_0x1619c1=>_0x114bd0(_0x2f858f[_0x3f65('0x1c')],'ELEMENT_LINE_BREAK',_0x1619c1));}}function re(_0x48d206,{showActiveMarker:_0x3e9233=!0x0}={}){return(_0x43a64f,_0x48965c,_0x66e9fb)=>{const _0x31f5c9=_0x48d206[_0x3f65('0x10')][_0x3f65('0xe')]('TrackChangesEditing');if(!_0x66e9fb[_0x3f65('0x0')][_0x3f65('0x19')](_0x48965c[_0x3f65('0x14')],_0x43a64f[_0x3f65('0x13')]))return;const _0xf6e76c=_0x48d206[_0x3f65('0x1f')];for(const _0x46849a of _0x48965c[_0x3f65('0x14')][_0x3f65('0xa')]()){if(!_0x46849a['is'](_0x3f65('0x1d'),_0x3f65('0x16')))continue;const _0x429ef3=_0x3f65('0x21')==_0x48965c['markerName'][_0x3f65('0x6')](':')[0x1]?_0x3f65('0x11'):_0x3f65('0x6'),_0x1a7791=_0x66e9fb[_0x3f65('0x1')][_0x3f65('0x7')](_0x3f65('0x1b'),{'class':_0x3f65('0x22')+_0x429ef3}),_0x338019=_0x66e9fb[_0x3f65('0xc')][_0x3f65('0x18')](_0xf6e76c['createPositionBefore'](_0x46849a));_0x3e9233&&_0x31f5c9[_0x3f65('0x2')][_0x3f65('0x1a')](_0x48965c['markerName'])&&_0x66e9fb[_0x3f65('0x1')][_0x3f65('0xf')](_0x3f65('0x5'),_0x1a7791),_0x66e9fb[_0x3f65('0x1')]['insert'](_0x338019,_0x1a7791),_0x66e9fb[_0x3f65('0xc')]['bindElementToMarker'](_0x1a7791,_0x48965c[_0x3f65('0xd')]);}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18b5=['commandName','model','StandardEditingModeEditing','registerDescriptionCallback','_descriptionFactory','isCollapsed','getRanges','commandParams','get','document','format','locale','has','enableCommand','selection','FORMAT_RESTRICTED_DISABLED','markInlineFormat','plugins','commands','from','value','change','TrackChangesEditing','afterInit','forceValue'];(function(_0x1fcb56,_0x18b582){const _0x125772=function(_0x103a35){while(--_0x103a35){_0x1fcb56['push'](_0x1fcb56['shift']());}};_0x125772(++_0x18b582);}(_0x18b5,0xe9));const _0x1257=function(_0x1fcb56,_0x18b582){_0x1fcb56=_0x1fcb56-0x0;let _0x125772=_0x18b5[_0x1fcb56];return _0x125772;};import{Plugin as _0x3d8527}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3653b0}from'./utils';import{getTranslation as _0x47ff82}from'../utils/common-translations';export default class lt extends _0x3d8527{[_0x1257('0xf')](){const _0xb02031=this['editor'],_0x5820f5=_0xb02031[_0x1257('0x12')],_0x336b8e=_0xb02031[_0x1257('0x3')];if(!_0xb02031[_0x1257('0x9')][_0x1257('0x4')](_0x1257('0x13')))return;const _0x20fa58=_0xb02031[_0x1257('0x9')][_0x1257('0x0')](_0x1257('0xe')),_0x5cdda8='restrictedEditingException',_0x4c6f23=_0xb02031[_0x1257('0xa')][_0x1257('0x0')](_0x5cdda8);_0x20fa58[_0x1257('0x5')](_0x5cdda8,(_0x53bbb9,_0x1c9453={})=>{const _0x37491f=_0x5820f5[_0x1257('0x1')][_0x1257('0x6')];if(_0x37491f[_0x1257('0x16')])return void _0x53bbb9(_0x1c9453);const _0x15fd0a=void 0x0!==_0x1c9453[_0x1257('0x10')]?_0x1c9453[_0x1257('0x10')]:!_0x4c6f23[_0x1257('0xc')];_0x5820f5[_0x1257('0xd')](()=>{const _0x9c3f07=Array[_0x1257('0xb')](_0x37491f[_0x1257('0x17')]());for(const _0x1a12dd of _0x9c3f07){const _0x56e2ef=_0x15fd0a?[_0x1a12dd]:_0x3653b0(_0x5cdda8,_0x1a12dd,_0x5820f5);for(const _0x45a9a6 of _0x56e2ef)_0x20fa58[_0x1257('0x8')](_0x45a9a6,{'commandName':_0x5cdda8,'commandParams':[{'forceValue':_0x15fd0a}]});}});}),_0x20fa58[_0x1257('0x15')][_0x1257('0x14')](_0x477ddf=>{const {data:_0x11696e}=_0x477ddf;if(_0x11696e&&_0x11696e[_0x1257('0x11')]==_0x5cdda8)return _0x11696e[_0x1257('0x18')][0x0][_0x1257('0x10')]?{'type':_0x1257('0x2'),'content':_0x47ff82(_0x336b8e,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x1257('0x2'),'content':_0x47ff82(_0x336b8e,_0x1257('0x7'))};});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d15=['getStyleDefinition','block','enableCommand','*Remove\x20format:*\x20%0','toLowerCase','includes','commandParams','style:','markInlineFormat','getAncestors','createRangeOn','format','model','modelElements','push','plugins','getRanges','enabledStyles','getRangesWithClasses','find','getDefinitionsForView','style','classes','*Format:*\x20%0','commands','inline','registerDescriptionCallback','TrackChangesEditing','afterInit','style.definitions','add','getItems','every','selection','change','get','getAttribute','markBlockFormat','styleName','name','from','DataSchema','commandName','getSelectedBlocks','isCollapsed'];(function(_0x28b57c,_0x1d1531){const _0x321b14=function(_0x2a35d1){while(--_0x2a35d1){_0x28b57c['push'](_0x28b57c['shift']());}};_0x321b14(++_0x1d1531);}(_0x1d15,0x10f));const _0x321b=function(_0x28b57c,_0x1d1531){_0x28b57c=_0x28b57c-0x0;let _0x321b14=_0x1d15[_0x28b57c];return _0x321b14;};import{Plugin as _0x5512d4}from'ckeditor5/src/core';import{normalizeConfig as _0x518c85}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x39fafc}from'../utils/common-translations';export default class mt extends _0x5512d4{[_0x321b('0x1b')](){const _0x1faa37=this['editor'];if(!_0x1faa37['plugins']['has']('Style'))return;const _0x4afa2c=_0x1faa37[_0x321b('0x17')]['get'](_0x321b('0x14')),_0x297cb1=_0x1faa37[_0x321b('0xe')][_0x321b('0x22')](_0x321b('0x1a')),_0x2b44fa=_0x1faa37['locale'],_0x4598ef=_0x1faa37['plugins'][_0x321b('0x22')](_0x321b('0x28')),_0x20baee=_0x518c85(_0x4598ef,_0x1faa37['config'][_0x321b('0x22')](_0x321b('0x1c')));_0x297cb1[_0x321b('0x1')]('style',(_0x515a7f,{styleName:_0x15013e})=>{const _0x4a1a2f=_0x1faa37['model']['document'][_0x321b('0x20')],_0x56c765=this[_0x321b('0x2c')](_0x15013e,_0x20baee);if(!_0x56c765)return;if(!_0x4afa2c[_0x321b('0x10')][_0x321b('0x4')](_0x15013e))return;if(_0x4a1a2f[_0x321b('0x2b')]&&!_0x56c765['isBlock'])return void _0x515a7f({'styleName':_0x15013e});const _0x4be148=!_0x4afa2c['value'][_0x321b('0x4')](_0x56c765['name']);if(_0x56c765['isBlock']){const _0xb6e08a=function(_0x432a46,_0x14c6b6){const _0x262ca1=new Set();for(const _0x5ba0ae of _0x432a46){const _0x1643fa=_0x5ba0ae[_0x321b('0x8')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x36c000 of _0x1643fa)if(_0x14c6b6[_0x321b('0x4')](_0x36c000[_0x321b('0x26')])){_0x262ca1[_0x321b('0x1d')](_0x36c000);break;}}return _0x262ca1;}(_0x4a1a2f[_0x321b('0x2a')](),_0x56c765[_0x321b('0xc')]);_0x1faa37[_0x321b('0xb')][_0x321b('0x21')](()=>{for(const _0x208f5f of _0xb6e08a)_0x297cb1[_0x321b('0x24')](_0x208f5f,{'commandName':_0x321b('0x14'),'commandParams':[{'styleName':_0x15013e,'forceValue':_0x4be148}],'formatGroupId':_0x321b('0x6')+_0x15013e});});}else{let _0x6aacee=Array[_0x321b('0x27')](_0x4a1a2f[_0x321b('0xf')]());if(!_0x4be148){const _0x3dc02a=Array[_0x321b('0x27')](_0x4598ef[_0x321b('0x13')](_0x56c765['element'],!0x1))[0x0][_0x321b('0xb')],_0x42e4f5=[];for(const _0x17c70d of _0x6aacee){const _0xc9ee9b=this[_0x321b('0x11')](_0x1faa37[_0x321b('0xb')],_0x17c70d,_0x56c765[_0x321b('0x15')],_0x3dc02a);_0x42e4f5['push'](..._0xc9ee9b);}_0x6aacee=_0x42e4f5;}_0x1faa37[_0x321b('0xb')]['change'](()=>{for(const _0x5ec70d of _0x6aacee)_0x297cb1[_0x321b('0x7')](_0x5ec70d,{'commandName':'style','commandParams':[{'styleName':_0x15013e,'forceValue':_0x4be148}]});});}}),_0x297cb1['_descriptionFactory'][_0x321b('0x19')](_0x2cb5e1=>{const {data:_0x3d94e4}=_0x2cb5e1;if(_0x3d94e4&&_0x321b('0x14')===_0x3d94e4[_0x321b('0x29')])return _0x3d94e4[_0x321b('0x5')][0x0]['forceValue']?{'type':_0x321b('0xa'),'content':_0x39fafc(_0x2b44fa,_0x321b('0x16'),_0x3d94e4[_0x321b('0x5')][0x0]['styleName'][_0x321b('0x3')]())}:{'type':_0x321b('0xa'),'content':_0x39fafc(_0x2b44fa,_0x321b('0x2'),_0x3d94e4[_0x321b('0x5')][0x0][_0x321b('0x25')][_0x321b('0x3')]())};});}[_0x321b('0x2c')](_0xf2d1c2,_0x3aef75){let _0x400452=_0x3aef75[_0x321b('0x0')][_0x321b('0x12')](_0x4be6a2=>_0x4be6a2[_0x321b('0x26')]===_0xf2d1c2);return _0x400452||(_0x400452=_0x3aef75[_0x321b('0x18')][_0x321b('0x12')](_0x5eaaa6=>_0x5eaaa6[_0x321b('0x26')]===_0xf2d1c2)),_0x400452;}['getRangesWithClasses'](_0x360d1d,_0x9efcfe,_0x325512,_0x3f5609){const _0x120ca8=[];for(const _0x43be42 of _0x9efcfe[_0x321b('0x1e')]()){const _0x2eafb9=_0x43be42[_0x321b('0x23')](_0x3f5609);_0x2eafb9&&(_0x325512[_0x321b('0x1f')](_0x2eb7e1=>_0x2eafb9['classes']['includes'](_0x2eb7e1))&&_0x120ca8[_0x321b('0xd')](_0x360d1d[_0x321b('0x9')](_0x43be42)));}return _0x120ca8;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1eb5=['has','end','filter','nodeBefore','data','addRange','refresh','insertion','colspan','getChangedMarkers','last','fromRange','detach','from','textProxy','minRow','ELEMENT_TABLE_ROW_WITH_TEXT','some','addClass','batch','showSuggestionHighlights','registerDescriptionCallback','model','commands','toLowerCase','element','MIN_SAFE_INTEGER','*Remove:*\x20%0','mapper','findAncestor','root','writer','_setupColumnsRowsFixing','hasAttribute','options','ELEMENT_TABLE_WITH_TEXT','maxColumn','getAttribute','type','length','TableUtils','max','rootName','tablePaste','afterInit','differ','createTableWalker','map','table','_acceptFormatSuggestionCallbackFactory','tableColumn','order','selectTableColumn','nodeAfter','removeTableRow','ELEMENT_TABLE','toViewElement','registerCustomCallback','locale','document','change:data','name','tableRow','isArray','execute','get','item','editor','cell','getSelectionAffectedTableCells','getChildren','values','join','substr','ELEMENT_TABLE_COLUMN','first','setSelection','startsWith','removeClass','discard','getCellLocation','MAX_SAFE_INTEGER','_tableSuggestions','ELEMENT_TABLE_ROW','subType','oldRange','enqueueChange','$graveyard','getItems','registerPostFixer','_suggestionFactory','accept','insertTableRowBelow','isEqual','minColumn','enableCommand','createPositionAt','selection','_getSuggestionCoords','removeTableColumn','above','getRanges','getRowIndexes','tableCell','classes','push','TrackChangesEditing','plugins','change','_descriptionFactory','span','getChanges','insert','registerElementLabel','add','downcastDispatcher','_tablePostFixingSubtypes','*Insert:*\x20%0','markMultiRangeInsertion','createRangeOn','low','rowspan','ELEMENT_TABLE_COLUMN_WITH_TEXT','selectTableRow','start','getFirstRange','_splitMarkerName','position','highest','getColumnIndexes','insertTableColumnRight','min','deletion','_getCoordsForCells'];(function(_0x5ecf66,_0x1eb539){const _0x282046=function(_0xfd028b){while(--_0xfd028b){_0x5ecf66['push'](_0x5ecf66['shift']());}};_0x282046(++_0x1eb539);}(_0x1eb5,0x1f2));const _0x2820=function(_0x5ecf66,_0x1eb539){_0x5ecf66=_0x5ecf66-0x0;let _0x282046=_0x1eb5[_0x5ecf66];return _0x282046;};import{Plugin as _0x3f257e}from'ckeditor5/src/core';import{LiveRange as _0x3a116c}from'ckeditor5/src/engine';import{setHighlightHandling as _0xb8b6e8}from'ckeditor5/src/widget';import{getTranslation as _0x374bfe}from'../utils/common-translations';export default class lt extends _0x3f257e{constructor(_0x1bbc71){super(_0x1bbc71),this['_tablePostFixingSubtypes']=[_0x2820('0x64'),'tableColumn'];}[_0x2820('0x52')](){const _0x566efc=this[_0x2820('0x69')],_0x306e74=_0x566efc[_0x2820('0x3c')][_0x2820('0x61')]['selection'];if(!_0x566efc[_0x2820('0xb')][_0x2820('0x26')]('TableEditing'))return;const _0x47f24f=_0x566efc[_0x2820('0x60')],_0x39ecf5=_0x566efc[_0x2820('0xb')][_0x2820('0x67')](_0x2820('0xa')),_0x4781a4=_0x566efc[_0x2820('0xb')]['get'](_0x2820('0x4e'));_0x39ecf5[_0x2820('0xd')][_0x2820('0x11')]('table',_0x3bc4ff=>_0x374bfe(_0x47f24f,_0x2820('0x5d'),_0x3bc4ff)),this[_0x2820('0x46')](),_0x39ecf5[_0x2820('0x85')]('insertTable'),_0x39ecf5['enableCommand'](_0x2820('0x1b')),_0x39ecf5[_0x2820('0x85')](_0x2820('0x5a'));for(const _0x709dbb of['insertTableRowAbove',_0x2820('0x82')]){const _0x1f585a=_0x566efc[_0x2820('0x3d')]['get'](_0x709dbb);_0x39ecf5[_0x2820('0x85')](_0x709dbb,_0x517b40=>{_0x566efc[_0x2820('0x3c')]['change'](_0x3cae51=>{_0x517b40();const _0x12acdc=_0x2820('0x4')===_0x1f585a[_0x2820('0x59')],_0x31100c=_0x4781a4['getSelectionAffectedTableCells'](_0x306e74),_0x1d266c=_0x4781a4['getRowIndexes'](_0x31100c),_0x52c2a8=_0x12acdc?_0x1d266c[_0x2820('0x71')]-0x1:_0x1d266c[_0x2820('0x30')]+0x1,_0x14c7dd=_0x31100c[0x0]['findAncestor']('table'),_0x2430cb=_0x4781a4[_0x2820('0x54')](_0x14c7dd,{'startRow':_0x52c2a8,'endRow':_0x52c2a8}),_0x38ad07=Array[_0x2820('0x33')](_0x2430cb)['map'](_0x1a29bf=>_0x3cae51['createRangeOn'](_0x1a29bf[_0x2820('0x6a')]));_0x39ecf5[_0x2820('0x16')](_0x38ad07,'tableRow');});});}for(const _0x38414d of['insertTableColumnLeft',_0x2820('0x22')]){const _0x4c9a05=_0x566efc[_0x2820('0x3d')][_0x2820('0x67')](_0x38414d);_0x39ecf5[_0x2820('0x85')](_0x38414d,_0x38fe06=>{_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x4fee51=>{_0x38fe06();const _0x3aeba9='left'===_0x4c9a05[_0x2820('0x59')],_0x370ce0=_0x4781a4[_0x2820('0x6b')](_0x306e74),_0x2daa69=_0x4781a4[_0x2820('0x21')](_0x370ce0),_0x219d48=_0x3aeba9?_0x2daa69[_0x2820('0x71')]-0x1:_0x2daa69[_0x2820('0x30')]+0x1,_0x22f224=_0x370ce0[0x0][_0x2820('0x43')](_0x2820('0x56')),_0x11eccd=_0x4781a4['createTableWalker'](_0x22f224,{'startRow':0x0,'column':_0x219d48,'includeAllSlots':!0x1}),_0x1d5ba7=Array[_0x2820('0x33')](_0x11eccd)['map'](_0x2f94b3=>_0x4fee51[_0x2820('0x17')](_0x2f94b3[_0x2820('0x6a')]));_0x39ecf5['markMultiRangeInsertion'](_0x1d5ba7,_0x2820('0x58'));});});}for(const _0xf320ea of[_0x2820('0x5c'),_0x2820('0x3')]){const _0x33f0e1=_0xf320ea[_0x2820('0x6f')](0xb),_0x5e0f6b=_0x33f0e1['toLowerCase'](),_0x27973a=_0x5e0f6b['substr'](0x0,0x3)+_0x2820('0xe'),_0x13107d=_0x2820('0x56')+_0x33f0e1,_0x15362b='min'+_0x33f0e1,_0x161b89=_0x2820('0x4f')+_0x33f0e1;_0x39ecf5[_0x2820('0x85')](_0xf320ea,()=>{_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x387b14=>{const _0xd46883=_0x4781a4[_0x2820('0x6b')](_0x306e74),_0x535499=_0xd46883[0x0]['findAncestor']('table');let _0x2819c2;if(_0x2820('0x5c')==_0xf320ea){const _0x29f3b9=_0x4781a4[_0x2820('0x6')](_0xd46883);_0x2819c2={'startRow':_0x29f3b9[_0x2820('0x71')],'endRow':_0x29f3b9[_0x2820('0x30')],'includeAllSlots':!0x0};}else{const _0x54d59d=_0x4781a4[_0x2820('0x21')](_0xd46883);_0x2819c2={'startColumn':_0x54d59d[_0x2820('0x71')],'endColumn':_0x54d59d['last'],'includeAllSlots':!0x0};}const _0x123a9c=_0x4781a4[_0x2820('0x54')](_0x535499,_0x2819c2),_0x489c46=Array[_0x2820('0x33')](_0x123a9c)[_0x2820('0x55')](({cell:_0x15fa14})=>_0x15fa14),_0x141aa9=se(_0x489c46['filter'](_0x17057d=>_0x17057d['hasAttribute'](_0x27973a))),_0x240d44=se(_0x489c46[_0x2820('0x28')](_0x6da111=>!_0x6da111[_0x2820('0x47')](_0x27973a)))['map'](_0x49b223=>_0x387b14[_0x2820('0x17')](_0x49b223)),_0x3571df=_0x39ecf5['markMultiRangeDeletion'](_0x240d44,_0x13107d);if(_0x3571df&&('tableRow'==_0x3571df[_0x2820('0x7a')]||_0x2820('0x58')==_0x3571df[_0x2820('0x7a')])){const _0x192d64=this['_getSuggestionCoords'](_0x3571df);for(const _0x336c60 of _0x141aa9){const _0x5c394d=_0x387b14[_0x2820('0x17')](_0x336c60),_0x1b2c9f=_0x4781a4[_0x2820('0x76')](_0x336c60),_0x33d6a8=_0x336c60[_0x2820('0x4b')](_0x27973a)-0x1,_0x4cd5c8=_0x192d64[_0x15362b],_0x423756=_0x192d64[_0x161b89];_0x4cd5c8<=_0x1b2c9f[_0x5e0f6b]&&_0x1b2c9f[_0x5e0f6b]+_0x33d6a8<=_0x423756&&_0x3571df[_0x2820('0x2b')](_0x5c394d);}}});});}function _0x41f0f1(_0x50b99a){const _0x2aaf97=Array[_0x2820('0x33')](_0x306e74[_0x2820('0x5')]())['map'](_0x568617=>_0x3a116c[_0x2820('0x31')](_0x568617));_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x24de09=>{const _0x4a0aaf=_0x24de09[_0x2820('0x39')];_0x50b99a=_0x50b99a[_0x2820('0x28')](_0x51db03=>'$graveyard'!=_0x51db03['root'][_0x2820('0x50')]),_0x24de09['setSelection'](_0x50b99a),_0x566efc['commands']['get'](_0x2820('0x5c'))[_0x2820('0x2c')](),_0x566efc[_0x2820('0x66')](_0x2820('0x5c'),{'forceDefaultExecution':!0x0}),_0x566efc[_0x2820('0x3c')][_0x2820('0x7c')](()=>{_0x566efc[_0x2820('0x3c')][_0x2820('0x7c')](_0x4a0aaf,_0x462c85=>{const _0x546b38=_0x2aaf97[_0x2820('0x28')](_0x3bc2c9=>_0x2820('0x7d')!=_0x3bc2c9[_0x2820('0x44')]['rootName']);_0x546b38[_0x2820('0x4d')]>0x0&&_0x462c85[_0x2820('0x72')](_0x546b38);for(const _0x33ae1f of _0x2aaf97)_0x33ae1f[_0x2820('0x32')]();});});});}function _0x32687e(_0x34f0d0){_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x2ac751=>{const _0x20ffc0=Array[_0x2820('0x33')](_0x306e74[_0x2820('0x5')]())[_0x2820('0x55')](_0x145e02=>_0x3a116c['fromRange'](_0x145e02)),_0x39c319=[];for(const _0x8512db of _0x34f0d0)for(const _0x391759 of _0x8512db[_0x2820('0x7e')]({'shallow':!0x0}))_0x39c319[_0x2820('0x9')](_0x391759);for(const _0x56016d of _0x39c319)_0x2820('0x7d')!=_0x56016d['root'][_0x2820('0x50')]&&(_0x2ac751[_0x2820('0x72')](_0x2ac751[_0x2820('0x0')](_0x56016d,0x0)),_0x566efc[_0x2820('0x3d')]['get']('removeTableColumn')[_0x2820('0x2c')](),_0x566efc[_0x2820('0x66')](_0x2820('0x3'),{'forceDefaultExecution':!0x0}));const _0x380a4c=_0x20ffc0[_0x2820('0x28')](_0x13ae5f=>_0x2820('0x7d')!=_0x13ae5f[_0x2820('0x44')][_0x2820('0x50')]);_0x380a4c['length']>0x0&&_0x2ac751['setSelection'](_0x380a4c);for(const _0x140cb5 of _0x20ffc0)_0x140cb5[_0x2820('0x32')]();});}function _0x1da6e7(_0x193027,_0x5157bf){return _0x5157bf['every'](_0x171309=>_0x193027[_0x2820('0x37')](_0x2937ed=>_0x2937ed[_0x2820('0x27')][_0x2820('0x83')](_0x171309['start'])||_0x171309['end'][_0x2820('0x83')](_0x2937ed[_0x2820('0x1c')])));}function _0xd931cd(_0x3d076e,_0xf0811e){return _0x3d076e[_0x2820('0x37')](_0x59a9e6=>_0xf0811e[_0x2820('0x37')](_0x3fa82a=>_0x59a9e6[_0x2820('0x27')]['isTouching'](_0x3fa82a['start'])));}_0x566efc[_0x2820('0x2a')][_0x2820('0x13')]['on']('addMarker:suggestion',(_0x5d3ec3,_0x39d229,_0x436cc8)=>{if(!_0x436cc8[_0x2820('0x48')][_0x2820('0x3a')])return;const _0xfd4397=_0x39d229[_0x2820('0x68')];if(!_0xfd4397)return;const _0x392299=_0x436cc8[_0x2820('0x42')][_0x2820('0x5e')](_0xfd4397);function _0x6bbb97(_0x48fcc7){return Array[_0x2820('0x65')](_0x48fcc7)?_0x48fcc7:[_0x48fcc7];}_0x392299&&_0x2820('0x7')===_0xfd4397[_0x2820('0x63')]&&_0xb8b6e8(_0x392299,_0x436cc8[_0x2820('0x45')],(_0x144d96,_0xbfcab8,_0x28bacc)=>_0x28bacc[_0x2820('0x38')](_0x6bbb97(_0xbfcab8[_0x2820('0x8')]),_0x144d96),(_0x375275,_0x4b9aa1,_0x4f4fc3)=>_0x4f4fc3[_0x2820('0x74')](_0x6bbb97(_0x4b9aa1[_0x2820('0x8')]),_0x375275));},{'priority':_0x2820('0x20')}),_0x39ecf5[_0x2820('0xd')]['registerDescriptionCallback'](_0x326f54=>{if('insertion'!=_0x326f54[_0x2820('0x4c')]&&_0x2820('0x24')!=_0x326f54[_0x2820('0x4c')])return;const _0x3b1bf6=_0x326f54['getContainedElement']();if(null!=_0x3b1bf6&&_0x3b1bf6['is'](_0x2820('0x3f'),_0x2820('0x56'))){if(_0x2820('0x2d')==_0x326f54[_0x2820('0x4c')]){const _0x188923=_0x326f54[_0x2820('0x7e')]()[_0x2820('0x28')](_0x55f41b=>_0x55f41b['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x4bd545=>_0x4bd545[_0x2820('0x2a')]);if(_0x188923[_0x2820('0x4d')])return{'type':'insertion','content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x49'),'\x22'+_0x188923[_0x2820('0x6e')]('\x20')+'\x22'))};}if(_0x2820('0x24')==_0x326f54[_0x2820('0x4c')]){const _0x528fe3=_0x326f54['getItems']()[_0x2820('0x28')](_0x569bcd=>_0x569bcd['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x586d19=>_0x586d19[_0x2820('0x2a')]);if(_0x528fe3[_0x2820('0x4d')])return{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,_0x2820('0x49'),'\x22'+_0x528fe3[_0x2820('0x6e')]('\x20')+'\x22'))};}}}),_0x39ecf5[_0x2820('0xd')][_0x2820('0x3b')](_0x4d84b5=>{if('tableRow'==_0x4d84b5['subType']){const _0x415bfe=_0x4d84b5['getItems']()[_0x2820('0x28')](_0x4134e0=>_0x4134e0['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x44f063=>_0x44f063[_0x2820('0x2a')]),_0x2a6c89=this[_0x2820('0x2')](_0x4d84b5),_0x227185=_0x2a6c89['maxRow']-_0x2a6c89[_0x2820('0x35')]+0x1;if(_0x2820('0x2d')==_0x4d84b5[_0x2820('0x4c')])return _0x415bfe[_0x2820('0x4d')]?{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,'*Insert:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x36'),[_0x227185,'\x22'+_0x415bfe[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x79'),_0x227185))};if('deletion'==_0x4d84b5['type'])return _0x415bfe[_0x2820('0x4d')]?{'type':_0x2820('0x24'),'content':_0x374bfe(_0x47f24f,'*Remove:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x36'),[_0x227185,'\x22'+_0x415bfe[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,'ELEMENT_TABLE_ROW',_0x227185))};}if(_0x2820('0x58')==_0x4d84b5[_0x2820('0x7a')]){const _0x1cde4a=_0x4d84b5[_0x2820('0x7e')]()['filter'](_0x1229c9=>_0x1229c9['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x386218=>_0x386218[_0x2820('0x2a')]),_0x4c011e=this['_getSuggestionCoords'](_0x4d84b5),_0x3a0205=_0x4c011e[_0x2820('0x4a')]-_0x4c011e[_0x2820('0x84')]+0x1;if(_0x2820('0x2d')==_0x4d84b5[_0x2820('0x4c')])return _0x1cde4a[_0x2820('0x4d')]?{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,'*Insert:*\x20%0',_0x374bfe(_0x47f24f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a0205,'\x22'+_0x1cde4a[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x70'),_0x3a0205))};if(_0x2820('0x24')==_0x4d84b5['type'])return _0x1cde4a[_0x2820('0x4d')]?{'type':_0x2820('0x24'),'content':_0x374bfe(_0x47f24f,'*Remove:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x1a'),[_0x3a0205,'\x22'+_0x1cde4a[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,_0x2820('0x70'),_0x3a0205))};}}),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x2d'),'tableRow','discard',_0x41f0f1),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),'tableRow',_0x2820('0x81'),_0x41f0f1),_0x39ecf5['_suggestionFactory']['registerCustomCallback']('insertion',_0x2820('0x58'),_0x2820('0x75'),_0x32687e),_0x39ecf5[_0x2820('0x80')]['registerCustomCallback'](_0x2820('0x24'),_0x2820('0x58'),_0x2820('0x81'),_0x32687e),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x2d'),_0x2820('0x58'),'join',_0x1da6e7),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),_0x2820('0x58'),_0x2820('0x6e'),_0x1da6e7),_0x39ecf5[_0x2820('0x80')]['registerCustomCallback']('insertion',_0x2820('0x64'),_0x2820('0x6e'),_0xd931cd),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),_0x2820('0x64'),'join',_0xd931cd);}[_0x2820('0x57')](){const _0x5ecc71=this[_0x2820('0x69')],_0x23b244=_0x5ecc71[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x1')];return(_0x27a263,_0x11d987)=>{_0x5ecc71[_0x2820('0x3c')][_0x2820('0xc')](_0x178663=>{const {commandName:_0x547d67,commandParams:_0x5eaff8}=_0x11d987;let _0x1022be=_0x27a263[0x0][_0x2820('0x27')][_0x2820('0x29')];_0x5eaff8&&_0x5eaff8[0x0]&&!0x1===_0x5eaff8[0x0]['forceValue']&&(_0x1022be=_0x27a263[0x0][_0x2820('0x1c')][_0x2820('0x5b')]);const _0x4a9e9b=_0x178663['createRangeIn'](_0x1022be);if('$graveyard'==_0x4a9e9b[_0x2820('0x44')]['rootName'])return;const _0x2d2ce4=Array[_0x2820('0x33')](_0x23b244['getRanges']())['map'](_0x2d5569=>_0x3a116c['fromRange'](_0x2d5569));_0x178663[_0x2820('0x72')](_0x4a9e9b),_0x5ecc71['commands'][_0x2820('0x67')](_0x547d67)['refresh'](),_0x5eaff8[_0x2820('0x9')]({'forceDefaultExecution':!0x0}),_0x5ecc71[_0x2820('0x66')](_0x547d67,..._0x5eaff8);const _0x1d25d6=_0x2d2ce4['filter'](_0x15ef7b=>_0x2820('0x7d')!=_0x15ef7b['root']['rootName']);_0x1d25d6[_0x2820('0x4d')]>0x0&&_0x178663[_0x2820('0x72')](_0x1d25d6);for(const _0x477137 of _0x2d2ce4)_0x477137[_0x2820('0x32')]();});};}[_0x2820('0x25')](_0x5d5da2){const _0x2464fa=this[_0x2820('0x69')][_0x2820('0xb')][_0x2820('0x67')](_0x2820('0x4e'));let _0x1dbdf4=Number[_0x2820('0x77')],_0x1b6fb1=Number[_0x2820('0x40')],_0x5a5148=Number[_0x2820('0x77')],_0x39260a=Number[_0x2820('0x40')];for(const _0x319b4c of _0x5d5da2){if(_0x2820('0x7d')==_0x319b4c[_0x2820('0x44')][_0x2820('0x50')])continue;const {row:_0x1ce506,column:_0x2073ed}=_0x2464fa['getCellLocation'](_0x319b4c),_0x244a3b=_0x319b4c[_0x2820('0x47')](_0x2820('0x19'))?_0x319b4c['getAttribute'](_0x2820('0x19'))-0x1:0x0,_0x2137d1=_0x319b4c[_0x2820('0x47')](_0x2820('0x2e'))?_0x319b4c[_0x2820('0x4b')](_0x2820('0x2e'))-0x1:0x0;_0x1dbdf4=_0x1ce506<_0x1dbdf4?_0x1ce506:_0x1dbdf4,_0x1b6fb1=_0x1ce506+_0x244a3b>_0x1b6fb1?_0x1ce506+_0x244a3b:_0x1b6fb1,_0x5a5148=_0x2073ed<_0x5a5148?_0x2073ed:_0x5a5148,_0x39260a=_0x2073ed+_0x2137d1>_0x39260a?_0x2073ed+_0x2137d1:_0x39260a;}return{'minRow':_0x1dbdf4,'maxRow':_0x1b6fb1,'minColumn':_0x5a5148,'maxColumn':_0x39260a};}[_0x2820('0x46')](){const _0x3bf833=this[_0x2820('0x69')],_0x31841c=_0x3bf833[_0x2820('0xb')]['get'](_0x2820('0xa')),_0x31d9eb=_0x3bf833[_0x2820('0xb')][_0x2820('0x67')]('TableUtils');this[_0x2820('0x78')]=new Set(),_0x3bf833[_0x2820('0x3c')][_0x2820('0x61')]['on'](_0x2820('0x62'),()=>{const _0x55619a=Array[_0x2820('0x33')](_0x3bf833[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x53')][_0x2820('0x2f')]());for(const {name:_0x17c584,data:_0x5ae759}of _0x55619a){const {group:_0x1e834d,id:_0x4c4ea2,subType:_0xf2706c}=_0x31841c[_0x2820('0x1e')](_0x17c584);if('suggestion'!=_0x1e834d)continue;if(null!=_0x5ae759[_0x2820('0x7b')])continue;const _0x40e8a8=_0x31841c['getSuggestion'](_0x4c4ea2);this[_0x2820('0x14')]['includes'](_0xf2706c)&&this[_0x2820('0x78')][_0x2820('0x12')](_0x40e8a8);}},{'priority':_0x2820('0x18')});const _0x4942a4=(_0x5f2f56,_0x324be4)=>{let _0x2e6c9f=!0x1;const _0x2cb253=_0x324be4[_0x2820('0x17')](_0x5f2f56),_0x3d74c6=_0x5f2f56['findAncestor'](_0x2820('0x56')),_0x34b28e=_0x31d9eb[_0x2820('0x76')](_0x5f2f56);for(const _0x2154dc of this['_tableSuggestions']){const _0x397a6b=_0x2154dc[_0x2820('0x7a')],_0x5c504a=_0x397a6b[_0x2820('0x73')](_0x2820('0x51')),_0x231037=_0x397a6b[_0x2820('0x6f')](_0x5c504a?0xa:0x5),_0x396014=_0x231037[_0x2820('0x3e')](),_0x5cf069=_0x396014[_0x2820('0x6f')](0x0,0x3)+_0x2820('0xe'),_0x12d9bf=_0x2820('0x23')+_0x231037,_0x3351a7=_0x2820('0x4f')+_0x231037;if(!_0x2154dc['isInContent'])continue;if(_0x3d74c6!=_0x2154dc[_0x2820('0x1d')]()[_0x2820('0x1c')][_0x2820('0x43')](_0x2820('0x56')))continue;if(_0x2154dc['isIntersectingWithRange'](_0x2cb253))continue;const _0x5953ab=_0x5f2f56[_0x2820('0x47')](_0x5cf069)?_0x5f2f56[_0x2820('0x4b')](_0x5cf069)-0x1:0x0,_0x2a496f=this[_0x2820('0x2')](_0x2154dc),_0xf9fa45=_0x2a496f[_0x12d9bf],_0x1d2674=_0x2a496f[_0x3351a7];_0xf9fa45<=_0x34b28e[_0x396014]&&_0x34b28e[_0x396014]+_0x5953ab<=_0x1d2674&&(_0x2154dc[_0x2820('0x2b')](_0x2cb253),_0x2e6c9f=!0x0);}return _0x2e6c9f;};_0x3bf833[_0x2820('0x3c')]['document'][_0x2820('0x7f')](_0x32292d=>{let _0x5cc759=!0x1;for(const _0x116123 of _0x3bf833[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x53')][_0x2820('0xf')]())if(_0x2820('0x10')==_0x116123['type']){if('tableRow'==_0x116123['name'])for(const _0x4b492d of _0x116123[_0x2820('0x1f')][_0x2820('0x5b')][_0x2820('0x6c')]())_0x5cc759=_0x5cc759||_0x4942a4(_0x4b492d,_0x32292d);else'tableCell'==_0x116123[_0x2820('0x63')]&&(_0x5cc759=_0x5cc759||_0x4942a4(_0x116123[_0x2820('0x1f')][_0x2820('0x5b')],_0x32292d));}return _0x5cc759;});}[_0x2820('0x2')](_0x3114c0){return this['_getCoordsForCells'](_0x3114c0['getRanges']()[_0x2820('0x55')](_0x5f5a0e=>_0x5f5a0e[_0x2820('0x1c')]['nodeAfter']));}}function se(_0x111810){return Array[_0x2820('0x33')](new Set(_0x111810)[_0x2820('0x6d')]());}
|
|
23
|
+
const _0x3ecc=['minRow','suggestion','plugins','length','get','accept','getRanges','nodeAfter','getSuggestion','getAttribute','registerElementLabel','getCellLocation','rootName','isTouching','getChildren','writer','root','options','start','insert','showSuggestionHighlights','toViewElement','cell','downcastDispatcher','from','rowspan','insertTableColumnRight','first','subType','tablePaste','getChanges','createRangeIn','TableEditing','MIN_SAFE_INTEGER','ELEMENT_TABLE_COLUMN','change:data','markMultiRangeDeletion','textProxy','findAncestor','createTableWalker','insertTableRowBelow','above','_tablePostFixingSubtypes','getSelectionAffectedTableCells','batch','TrackChangesEditing','colspan','_tableSuggestions','map','includes','document','refresh','*Insert:*\x20%0','oldRange','substr','createRangeOn','insertTableColumnLeft','has','maxRow','isArray','_setupColumnsRowsFixing','end','_getCoordsForCells','model','_splitMarkerName','commands','ELEMENT_TABLE','join','position','removeTableColumn','registerCustomCallback','startsWith','hasAttribute','addRange','push','ELEMENT_TABLE_COLUMN_WITH_TEXT','add','getItems','_getSuggestionCoords','ELEMENT_TABLE_WITH_TEXT','execute','classes','editor','every','*Remove:*\x20%0','table','isIntersectingWithRange','enqueueChange','nodeBefore','getContainedElement','registerPostFixer','type','toLowerCase','isInContent','_descriptionFactory','fromRange','removeTableRow','getColumnIndexes','max','createPositionAt','removeClass','insertTable','left','last','ELEMENT_TABLE_ROW_WITH_TEXT','some','insertion','min','tableRow','setSelection','isEqual','change','order','ELEMENT_TABLE_ROW','detach','selectTableColumn','enableCommand','addClass','tableCell','filter','data','selection','registerDescriptionCallback','differ','TableUtils','name','forceValue','maxColumn','_suggestionFactory','$graveyard','tableColumn','afterInit','mapper','span','getRowIndexes','getChangedMarkers','MAX_SAFE_INTEGER','deletion','markMultiRangeInsertion'];(function(_0xdf81e2,_0x3eccb5){const _0xe0247=function(_0x247da8){while(--_0x247da8){_0xdf81e2['push'](_0xdf81e2['shift']());}};_0xe0247(++_0x3eccb5);}(_0x3ecc,0x9e));const _0xe024=function(_0xdf81e2,_0x3eccb5){_0xdf81e2=_0xdf81e2-0x0;let _0xe0247=_0x3ecc[_0xdf81e2];return _0xe0247;};import{Plugin as _0x225fb5}from'ckeditor5/src/core';import{LiveRange as _0x455a87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x29112c}from'ckeditor5/src/widget';import{getTranslation as _0x590e85}from'../utils/common-translations';export default class dt extends _0x225fb5{constructor(_0x539bcf){super(_0x539bcf),this['_tablePostFixingSubtypes']=[_0xe024('0x59'),_0xe024('0x6f')];}[_0xe024('0x70')](){const _0xa08c75=this[_0xe024('0x3f')],_0x58898c=_0xa08c75[_0xe024('0x2c')][_0xe024('0x1f')]['selection'];if(!_0xa08c75[_0xe024('0x7a')][_0xe024('0x26')](_0xe024('0xd')))return;const _0x20dcd4=_0xa08c75['locale'],_0x326517=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x31e079=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x69'));_0x326517[_0xe024('0x4b')][_0xe024('0x82')](_0xe024('0x42'),_0x59f657=>_0x590e85(_0x20dcd4,_0xe024('0x2f'),_0x59f657)),this[_0xe024('0x29')](),_0x326517[_0xe024('0x61')](_0xe024('0x52')),_0x326517[_0xe024('0x61')]('selectTableRow'),_0x326517[_0xe024('0x61')](_0xe024('0x60'));for(const _0x144bd5 of['insertTableRowAbove',_0xe024('0x15')]){const _0xadc1af=_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0x144bd5);_0x326517[_0xe024('0x61')](_0x144bd5,_0x10b15b=>{_0xa08c75['model'][_0xe024('0x5c')](_0x439085=>{_0x10b15b();const _0x9b7495=_0xe024('0x16')===_0xadc1af[_0xe024('0x5d')],_0x1677ae=_0x31e079[_0xe024('0x18')](_0x58898c),_0x3af9cc=_0x31e079['getRowIndexes'](_0x1677ae),_0x17536c=_0x9b7495?_0x3af9cc['first']-0x1:_0x3af9cc[_0xe024('0x54')]+0x1,_0x583585=_0x1677ae[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x9e5c8a=_0x31e079[_0xe024('0x14')](_0x583585,{'startRow':_0x17536c,'endRow':_0x17536c}),_0x2c1752=Array[_0xe024('0x5')](_0x9e5c8a)['map'](_0x4aa2d3=>_0x439085[_0xe024('0x24')](_0x4aa2d3[_0xe024('0x3')]));_0x326517[_0xe024('0x77')](_0x2c1752,'tableRow');});});}for(const _0x72775c of[_0xe024('0x25'),_0xe024('0x7')]){const _0x395914=_0xa08c75[_0xe024('0x2e')]['get'](_0x72775c);_0x326517[_0xe024('0x61')](_0x72775c,_0x101387=>{_0xa08c75[_0xe024('0x2c')]['change'](_0x1cd7eb=>{_0x101387();const _0x3dbf9d=_0xe024('0x53')===_0x395914[_0xe024('0x5d')],_0x328fce=_0x31e079[_0xe024('0x18')](_0x58898c),_0x55fd66=_0x31e079[_0xe024('0x4e')](_0x328fce),_0x368047=_0x3dbf9d?_0x55fd66[_0xe024('0x8')]-0x1:_0x55fd66[_0xe024('0x54')]+0x1,_0x20b94d=_0x328fce[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x2d9938=_0x31e079['createTableWalker'](_0x20b94d,{'startRow':0x0,'column':_0x368047,'includeAllSlots':!0x1}),_0x558896=Array[_0xe024('0x5')](_0x2d9938)['map'](_0x1610f8=>_0x1cd7eb[_0xe024('0x24')](_0x1610f8['cell']));_0x326517[_0xe024('0x77')](_0x558896,'tableColumn');});});}for(const _0x4dd8c5 of[_0xe024('0x4d'),_0xe024('0x32')]){const _0x464c65=_0x4dd8c5['substr'](0xb),_0x2afb97=_0x464c65[_0xe024('0x49')](),_0x1cbc31=_0x2afb97[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x4a487b=_0xe024('0x42')+_0x464c65,_0x3e47c2=_0xe024('0x58')+_0x464c65,_0x1b85da=_0xe024('0x4f')+_0x464c65;_0x326517[_0xe024('0x61')](_0x4dd8c5,()=>{_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x3d3952=>{const _0x3d3fac=_0x31e079[_0xe024('0x18')](_0x58898c),_0x54beaf=_0x3d3fac[0x0]['findAncestor'](_0xe024('0x42'));let _0x31cafe;if(_0xe024('0x4d')==_0x4dd8c5){const _0xa022f6=_0x31e079[_0xe024('0x73')](_0x3d3fac);_0x31cafe={'startRow':_0xa022f6[_0xe024('0x8')],'endRow':_0xa022f6[_0xe024('0x54')],'includeAllSlots':!0x0};}else{const _0x1091ab=_0x31e079['getColumnIndexes'](_0x3d3fac);_0x31cafe={'startColumn':_0x1091ab[_0xe024('0x8')],'endColumn':_0x1091ab[_0xe024('0x54')],'includeAllSlots':!0x0};}const _0x4c7c05=_0x31e079[_0xe024('0x14')](_0x54beaf,_0x31cafe),_0x448dd8=Array[_0xe024('0x5')](_0x4c7c05)[_0xe024('0x1d')](({cell:_0x11fb76})=>_0x11fb76),_0x84ba24=le(_0x448dd8['filter'](_0x257fbc=>_0x257fbc[_0xe024('0x35')](_0x1cbc31))),_0x261a87=le(_0x448dd8[_0xe024('0x64')](_0x4894fe=>!_0x4894fe['hasAttribute'](_0x1cbc31)))[_0xe024('0x1d')](_0x4c7f41=>_0x3d3952['createRangeOn'](_0x4c7f41)),_0x52e6fb=_0x326517[_0xe024('0x11')](_0x261a87,_0x4a487b);if(_0x52e6fb&&(_0xe024('0x59')==_0x52e6fb[_0xe024('0x9')]||_0xe024('0x6f')==_0x52e6fb['subType'])){const _0x5e303f=this[_0xe024('0x3b')](_0x52e6fb);for(const _0x1e131e of _0x84ba24){const _0x331ab5=_0x3d3952[_0xe024('0x24')](_0x1e131e),_0x548551=_0x31e079['getCellLocation'](_0x1e131e),_0x16f874=_0x1e131e[_0xe024('0x81')](_0x1cbc31)-0x1,_0x144ab5=_0x5e303f[_0x3e47c2],_0x4af4f7=_0x5e303f[_0x1b85da];_0x144ab5<=_0x548551[_0x2afb97]&&_0x548551[_0x2afb97]+_0x16f874<=_0x4af4f7&&_0x52e6fb['addRange'](_0x331ab5);}}});});}function _0x31e932(_0x167ba6){const _0x84a4d3=Array[_0xe024('0x5')](_0x58898c[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x26671b=>_0x455a87[_0xe024('0x4c')](_0x26671b));_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x1b2e03=>{const _0x44db1f=_0x1b2e03[_0xe024('0x19')];_0x167ba6=_0x167ba6[_0xe024('0x64')](_0x4c8ccc=>_0xe024('0x6e')!=_0x4c8ccc[_0xe024('0x88')][_0xe024('0x84')]),_0x1b2e03['setSelection'](_0x167ba6),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')]('removeTableRow')[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x4d'),{'forceDefaultExecution':!0x0}),_0xa08c75[_0xe024('0x2c')][_0xe024('0x44')](()=>{_0xa08c75[_0xe024('0x2c')]['enqueueChange'](_0x44db1f,_0x13707c=>{const _0x4f4a8b=_0x84a4d3[_0xe024('0x64')](_0x437dcb=>_0xe024('0x6e')!=_0x437dcb[_0xe024('0x88')][_0xe024('0x84')]);_0x4f4a8b[_0xe024('0x7b')]>0x0&&_0x13707c['setSelection'](_0x4f4a8b);for(const _0x2a2a0 of _0x84a4d3)_0x2a2a0['detach']();});});});}function _0x5353cf(_0x14d8dc){_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x51694b=>{const _0x5c3206=Array['from'](_0x58898c['getRanges']())[_0xe024('0x1d')](_0x26cf7e=>_0x455a87[_0xe024('0x4c')](_0x26cf7e)),_0x86fdcf=[];for(const _0x1ca02d of _0x14d8dc)for(const _0x509895 of _0x1ca02d[_0xe024('0x3a')]({'shallow':!0x0}))_0x86fdcf[_0xe024('0x37')](_0x509895);for(const _0x3e5960 of _0x86fdcf)_0xe024('0x6e')!=_0x3e5960[_0xe024('0x88')]['rootName']&&(_0x51694b[_0xe024('0x5a')](_0x51694b[_0xe024('0x50')](_0x3e5960,0x0)),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0xe024('0x32'))[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x32'),{'forceDefaultExecution':!0x0}));const _0x37ea6c=_0x5c3206[_0xe024('0x64')](_0x5dc66c=>_0xe024('0x6e')!=_0x5dc66c[_0xe024('0x88')][_0xe024('0x84')]);_0x37ea6c[_0xe024('0x7b')]>0x0&&_0x51694b[_0xe024('0x5a')](_0x37ea6c);for(const _0x341392 of _0x5c3206)_0x341392[_0xe024('0x5f')]();});}function _0x1ea9fa(_0x5f022e,_0x48e4ff){return _0x48e4ff[_0xe024('0x40')](_0x160399=>_0x5f022e['some'](_0x59718d=>_0x59718d[_0xe024('0x2a')][_0xe024('0x5b')](_0x160399[_0xe024('0x8a')])||_0x160399[_0xe024('0x2a')]['isEqual'](_0x59718d[_0xe024('0x8a')])));}function _0x1d6802(_0x12b236,_0x511ac8){return _0x12b236[_0xe024('0x56')](_0x2f0144=>_0x511ac8[_0xe024('0x56')](_0x343b06=>_0x2f0144[_0xe024('0x2a')][_0xe024('0x85')](_0x343b06[_0xe024('0x8a')])));}_0xa08c75[_0xe024('0x65')][_0xe024('0x4')]['on']('addMarker:suggestion',(_0x58657d,_0x1e011c,_0x238823)=>{if(!_0x238823[_0xe024('0x89')][_0xe024('0x1')])return;const _0x4c0b04=_0x1e011c['item'];if(!_0x4c0b04)return;const _0x196764=_0x238823[_0xe024('0x71')][_0xe024('0x2')](_0x4c0b04);function _0x3bfd4a(_0xc1e449){return Array[_0xe024('0x28')](_0xc1e449)?_0xc1e449:[_0xc1e449];}_0x196764&&_0xe024('0x63')===_0x4c0b04[_0xe024('0x6a')]&&_0x29112c(_0x196764,_0x238823[_0xe024('0x87')],(_0x4cac31,_0x2a6bb8,_0x1b84aa)=>_0x1b84aa[_0xe024('0x62')](_0x3bfd4a(_0x2a6bb8['classes']),_0x4cac31),(_0x3a9096,_0x802f03,_0x2d3184)=>_0x2d3184[_0xe024('0x51')](_0x3bfd4a(_0x802f03[_0xe024('0x3e')]),_0x3a9096));},{'priority':'highest'}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0x2ef3eb=>{if('insertion'!=_0x2ef3eb['type']&&_0xe024('0x76')!=_0x2ef3eb[_0xe024('0x48')])return;const _0x29860c=_0x2ef3eb[_0xe024('0x46')]();if(null!=_0x29860c&&_0x29860c['is']('element',_0xe024('0x42'))){if(_0xe024('0x57')==_0x2ef3eb['type']){const _0x2b8b9b=_0x2ef3eb[_0xe024('0x3a')]()[_0xe024('0x64')](_0x557c75=>_0x557c75['is']('textProxy'))['map'](_0x5d6d8c=>_0x5d6d8c[_0xe024('0x65')]);if(_0x2b8b9b[_0xe024('0x7b')])return{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x2b8b9b[_0xe024('0x30')]('\x20')+'\x22'))};}if('deletion'==_0x2ef3eb[_0xe024('0x48')]){const _0x155948=_0x2ef3eb['getItems']()[_0xe024('0x64')](_0x3abf45=>_0x3abf45['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x4025a6=>_0x4025a6['data']);if(_0x155948[_0xe024('0x7b')])return{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x155948['join']('\x20')+'\x22'))};}}}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0xa64c68=>{if(_0xe024('0x59')==_0xa64c68[_0xe024('0x9')]){const _0x97ea15=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x4f474f=>_0x4f474f['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x5d787e=>_0x5d787e[_0xe024('0x65')]),_0x855e77=this[_0xe024('0x3b')](_0xa64c68),_0x38c796=_0x855e77[_0xe024('0x27')]-_0x855e77[_0xe024('0x78')]+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':'insertion','content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x55'),[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};}if(_0xe024('0x6f')==_0xa64c68[_0xe024('0x9')]){const _0x5a189a=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x2edf44=>_0x2edf44['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x1564b3=>_0x1564b3['data']),_0x4e9ebc=this[_0xe024('0x3b')](_0xa64c68),_0x1f7b61=_0x4e9ebc[_0xe024('0x6c')]-_0x4e9ebc['minColumn']+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,'*Remove:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};}}),_0x326517[_0xe024('0x6d')]['registerCustomCallback']('insertion',_0xe024('0x59'),'discard',_0x31e932),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),_0xe024('0x59'),_0xe024('0x7d'),_0x31e932),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),'discard',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')]('deletion',_0xe024('0x6f'),'accept',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),_0xe024('0x30'),_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x76'),'tableColumn','join',_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x59'),_0xe024('0x30'),_0x1d6802),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),'tableRow',_0xe024('0x30'),_0x1d6802);}['_acceptFormatSuggestionCallbackFactory'](){const _0x477c8f=this[_0xe024('0x3f')],_0x51add5=_0x477c8f[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x66')];return(_0x1d4b29,_0x1e2dff)=>{_0x477c8f[_0xe024('0x2c')]['change'](_0x209b43=>{const {commandName:_0x26c4dc,commandParams:_0x45bc75}=_0x1e2dff;let _0x416c23=_0x1d4b29[0x0][_0xe024('0x2a')][_0xe024('0x45')];_0x45bc75&&_0x45bc75[0x0]&&!0x1===_0x45bc75[0x0][_0xe024('0x6b')]&&(_0x416c23=_0x1d4b29[0x0][_0xe024('0x8a')][_0xe024('0x7f')]);const _0x4b4ca5=_0x209b43[_0xe024('0xc')](_0x416c23);if(_0xe024('0x6e')==_0x4b4ca5[_0xe024('0x88')][_0xe024('0x84')])return;const _0x44116f=Array[_0xe024('0x5')](_0x51add5[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x4f85fb=>_0x455a87[_0xe024('0x4c')](_0x4f85fb));_0x209b43[_0xe024('0x5a')](_0x4b4ca5),_0x477c8f[_0xe024('0x2e')][_0xe024('0x7c')](_0x26c4dc)['refresh'](),_0x45bc75[_0xe024('0x37')]({'forceDefaultExecution':!0x0}),_0x477c8f[_0xe024('0x3d')](_0x26c4dc,..._0x45bc75);const _0x539895=_0x44116f['filter'](_0xdde904=>_0xe024('0x6e')!=_0xdde904[_0xe024('0x88')]['rootName']);_0x539895['length']>0x0&&_0x209b43['setSelection'](_0x539895);for(const _0x2a04b2 of _0x44116f)_0x2a04b2[_0xe024('0x5f')]();});};}[_0xe024('0x2b')](_0x2d2686){const _0x4a3d4f=this[_0xe024('0x3f')][_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));let _0x354d01=Number[_0xe024('0x75')],_0x5aa349=Number[_0xe024('0xe')],_0x542cd9=Number['MAX_SAFE_INTEGER'],_0x1ef829=Number[_0xe024('0xe')];for(const _0x5be040 of _0x2d2686){if(_0xe024('0x6e')==_0x5be040[_0xe024('0x88')][_0xe024('0x84')])continue;const {row:_0x300836,column:_0x413f70}=_0x4a3d4f['getCellLocation'](_0x5be040),_0x38855b=_0x5be040[_0xe024('0x35')](_0xe024('0x6'))?_0x5be040['getAttribute'](_0xe024('0x6'))-0x1:0x0,_0xc2dfcc=_0x5be040['hasAttribute']('colspan')?_0x5be040[_0xe024('0x81')](_0xe024('0x1b'))-0x1:0x0;_0x354d01=_0x300836<_0x354d01?_0x300836:_0x354d01,_0x5aa349=_0x300836+_0x38855b>_0x5aa349?_0x300836+_0x38855b:_0x5aa349,_0x542cd9=_0x413f70<_0x542cd9?_0x413f70:_0x542cd9,_0x1ef829=_0x413f70+_0xc2dfcc>_0x1ef829?_0x413f70+_0xc2dfcc:_0x1ef829;}return{'minRow':_0x354d01,'maxRow':_0x5aa349,'minColumn':_0x542cd9,'maxColumn':_0x1ef829};}['_setupColumnsRowsFixing'](){const _0x227154=this[_0xe024('0x3f')],_0x23bf9e=_0x227154[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x5a40f6=_0x227154[_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));this[_0xe024('0x1c')]=new Set(),_0x227154[_0xe024('0x2c')][_0xe024('0x1f')]['on'](_0xe024('0x10'),()=>{const _0x2cf80e=Array[_0xe024('0x5')](_0x227154[_0xe024('0x2c')]['document'][_0xe024('0x68')][_0xe024('0x74')]());for(const {name:_0x1cb7a2,data:_0x1ccf9a}of _0x2cf80e){const {group:_0x27b7a7,id:_0x3fd8d6,subType:_0xa1ee6e}=_0x23bf9e[_0xe024('0x2d')](_0x1cb7a2);if(_0xe024('0x79')!=_0x27b7a7)continue;if(null!=_0x1ccf9a[_0xe024('0x22')])continue;const _0xb1495b=_0x23bf9e[_0xe024('0x80')](_0x3fd8d6);this[_0xe024('0x17')][_0xe024('0x1e')](_0xa1ee6e)&&this[_0xe024('0x1c')][_0xe024('0x39')](_0xb1495b);}},{'priority':'low'});const _0x6b3ffb=(_0x1540a2,_0x590db1)=>{let _0x24eb5f=!0x1;const _0x132af0=_0x590db1[_0xe024('0x24')](_0x1540a2),_0x99febe=_0x1540a2[_0xe024('0x13')](_0xe024('0x42')),_0x3b4ab4=_0x5a40f6[_0xe024('0x83')](_0x1540a2);for(const _0x248a62 of this[_0xe024('0x1c')]){const _0xd7297a=_0x248a62[_0xe024('0x9')],_0x35ad61=_0xd7297a[_0xe024('0x34')](_0xe024('0xa')),_0x13a30c=_0xd7297a['substr'](_0x35ad61?0xa:0x5),_0x5bb7cc=_0x13a30c[_0xe024('0x49')](),_0x3ef4b5=_0x5bb7cc[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x69a950=_0xe024('0x58')+_0x13a30c,_0xa6ac79=_0xe024('0x4f')+_0x13a30c;if(!_0x248a62[_0xe024('0x4a')])continue;if(_0x99febe!=_0x248a62['getFirstRange']()[_0xe024('0x8a')][_0xe024('0x13')]('table'))continue;if(_0x248a62[_0xe024('0x43')](_0x132af0))continue;const _0x173a17=_0x1540a2[_0xe024('0x35')](_0x3ef4b5)?_0x1540a2[_0xe024('0x81')](_0x3ef4b5)-0x1:0x0,_0x49f94f=this[_0xe024('0x3b')](_0x248a62),_0x2ebc16=_0x49f94f[_0x69a950],_0x4662d2=_0x49f94f[_0xa6ac79];_0x2ebc16<=_0x3b4ab4[_0x5bb7cc]&&_0x3b4ab4[_0x5bb7cc]+_0x173a17<=_0x4662d2&&(_0x248a62[_0xe024('0x36')](_0x132af0),_0x24eb5f=!0x0);}return _0x24eb5f;};_0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x47')](_0x3e3c4a=>{let _0x5c36a0=!0x1;for(const _0x287d53 of _0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x68')][_0xe024('0xb')]())if(_0xe024('0x0')==_0x287d53[_0xe024('0x48')]){if(_0xe024('0x59')==_0x287d53[_0xe024('0x6a')])for(const _0x2b805b of _0x287d53[_0xe024('0x31')][_0xe024('0x7f')][_0xe024('0x86')]())_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x2b805b,_0x3e3c4a);else'tableCell'==_0x287d53['name']&&(_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x287d53[_0xe024('0x31')][_0xe024('0x7f')],_0x3e3c4a));}return _0x5c36a0;});}[_0xe024('0x3b')](_0x3700d9){return this[_0xe024('0x2b')](_0x3700d9[_0xe024('0x7e')]()[_0xe024('0x1d')](_0x47b196=>_0x47b196[_0xe024('0x8a')][_0xe024('0x7f')]));}}function le(_0x2a87d7){return Array['from'](new Set(_0x2a87d7)['values']());}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c1d=['toggleTableCaption','has','plugins','enableCommand','TableCaptionEditing','afterInit','TrackChangesEditing'];(function(_0x551c79,_0x3c1de7){const _0x1bb791=function(_0x382166){while(--_0x382166){_0x551c79['push'](_0x551c79['shift']());}};_0x1bb791(++_0x3c1de7);}(_0x3c1d,0x1c9));const _0x1bb7=function(_0x551c79,_0x3c1de7){_0x551c79=_0x551c79-0x0;let _0x1bb791=_0x3c1d[_0x551c79];return _0x1bb791;};import{Plugin as _0x29ffa9}from'ckeditor5/src/core';import _0x3f2340 from'./table';export default class It extends _0x29ffa9{static get['requires'](){return[_0x3f2340];}[_0x1bb7('0x3')](){const _0x49a2fc=this['editor'];if(!_0x49a2fc[_0x1bb7('0x0')][_0x1bb7('0x6')](_0x1bb7('0x2')))return;_0x49a2fc[_0x1bb7('0x0')]['get'](_0x1bb7('0x4'))[_0x1bb7('0x1')](_0x1bb7('0x5'));}}
|