@ckeditor/ckeditor5-track-changes 35.4.0 → 36.0.1
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 _0x334c=['*Format:*\x20set\x20order\x20to\x20reversed','length','afterInit','toUpperCase','_getSuggestionBlocks','*Format:*\x20set\x20start\x20index\x20to\x20%0','styles','change','listType','_getTranslationKeyForListStyle','get','has','listReversed','handleDescriptions','listStyle','from','forward','map','element','editor','bind','listItem','plugins','listStart','createPositionAt','handleListStartCommand','getSiblingNodes','list.properties','model','document','filter','*Change\x20to:*\x20%0','commandParams','getListTypeFromListStyleType','ELEMENT_','type','config','*Format:*\x20set\x20order\x20to\x20regular','before','startIndex','handleListStyleCommand','registerDescriptionCallback','createRange','TrackChangesEditing','markMultiRangeBlockFormat','ListUtils','format','enableCommand','numbered','_LIST_','reversed','handleListReversedCommand','replaceAll','commandName'];(function(_0x1db66b,_0x334c9a){const _0x1c8254=function(_0x5ca1a5){while(--_0x5ca1a5){_0x1db66b['push'](_0x1db66b['shift']());}};_0x1c8254(++_0x334c9a);}(_0x334c,0xe0));const _0x1c82=function(_0x1db66b,_0x334c9a){_0x1db66b=_0x1db66b-0x0;let _0x1c8254=_0x334c[_0x1db66b];return _0x1c8254;};import{Plugin as _0x3bed93}from'ckeditor5/src/core';import{getTranslation as _0x214301}from'../utils/common-translations';export default class ot extends _0x3bed93{[_0x1c82('0x30')](){if(!this[_0x1c82('0xb')][_0x1c82('0xe')][_0x1c82('0x3')]('ListPropertiesEditing'))return;const _0x30468a=this[_0x1c82('0xb')][_0x1c82('0x1c')][_0x1c82('0x2')](_0x1c82('0x13')),_0x1e9df9=this[_0x1c82('0xb')][_0x1c82('0xe')]['get'](_0x1c82('0x23'));_0x30468a[_0x1c82('0x34')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0x6'),this[_0x1c82('0x20')]['bind'](this)),_0x30468a[_0x1c82('0x2a')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0x4'),this[_0x1c82('0x2b')][_0x1c82('0xc')](this)),_0x30468a[_0x1c82('0x1f')]&&_0x1e9df9[_0x1c82('0x27')](_0x1c82('0xf'),this[_0x1c82('0x11')][_0x1c82('0xc')](this)),_0x1e9df9['_descriptionFactory'][_0x1c82('0x21')](this[_0x1c82('0x5')]['bind'](this));}[_0x1c82('0x20')](_0x7a5068,_0x3780e8){const _0x49b791=this[_0x1c82('0xb')]['plugins']['get'](_0x1c82('0x23')),_0x16d46f=this[_0x1c82('0x32')](_0xabd959=>_0xabd959['hasAttribute'](_0x1c82('0x0')));_0x16d46f['length']<0x1||this[_0x1c82('0xb')][_0x1c82('0x14')]['change'](()=>{_0x49b791['markMultiRangeBlockFormat'](_0x16d46f,{'commandName':_0x1c82('0x6'),'commandParams':[{'type':_0x3780e8[_0x1c82('0x1b')]}],'formatGroupId':_0x1c82('0x6')});});}[_0x1c82('0x2b')](_0x30a9e1,_0x19fa0e){const _0x5a8511=this[_0x1c82('0xb')][_0x1c82('0xe')][_0x1c82('0x2')](_0x1c82('0x23')),_0x48b7c4=this[_0x1c82('0x32')](_0x1e331e=>_0x1e331e['is'](_0x1c82('0xa'),_0x1c82('0xd'))&&_0x1c82('0x28')===_0x1e331e['getAttribute'](_0x1c82('0x0')));if(_0x48b7c4['length']<0x1)return;const _0x42aced=_0x48b7c4['map'](_0x5c961a=>this['editor'][_0x1c82('0x14')][_0x1c82('0x22')](this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x10')](_0x5c961a,_0x1c82('0x1e')),this[_0x1c82('0xb')]['model'][_0x1c82('0x10')](_0x5c961a,0x0)));this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x35')](()=>{_0x5a8511[_0x1c82('0x24')](_0x42aced,{'commandName':_0x1c82('0x4'),'commandParams':[{'reversed':_0x19fa0e[_0x1c82('0x2a')]}],'formatGroupId':_0x1c82('0x4')});});}[_0x1c82('0x11')](_0x4bd291,_0x5c856c){const _0x594fad=this['editor'][_0x1c82('0xe')][_0x1c82('0x2')](_0x1c82('0x23')),_0x8a517d=this[_0x1c82('0x32')](_0x576f20=>_0x576f20['is'](_0x1c82('0xa'),_0x1c82('0xd'))&&'numbered'===_0x576f20['getAttribute']('listType'));if(_0x8a517d[_0x1c82('0x2f')]<0x1)return;const _0x270a29=_0x8a517d[_0x1c82('0x9')](_0xb89c2e=>this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x22')](this[_0x1c82('0xb')][_0x1c82('0x14')]['createPositionAt'](_0xb89c2e,'before'),this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x10')](_0xb89c2e,0x0)));this[_0x1c82('0xb')][_0x1c82('0x14')][_0x1c82('0x35')](()=>{_0x594fad['markMultiRangeBlockFormat'](_0x270a29,{'commandName':_0x1c82('0xf'),'commandParams':[{'startIndex':_0x5c856c[_0x1c82('0x1f')]}],'formatGroupId':_0x1c82('0xf')});});}[_0x1c82('0x5')](_0xccad0d){const _0x50eff3=this[_0x1c82('0xb')]['locale'],{data:_0x3c5fb7}=_0xccad0d;if(!_0x3c5fb7)return;let _0x497b75,_0x500702;switch(_0x3c5fb7[_0x1c82('0x2d')]){case _0x1c82('0x6'):_0x497b75=_0x1c82('0x17'),_0x500702={'type':'format','content':_0x214301(_0x50eff3,_0x497b75,_0x214301(_0x50eff3,this[_0x1c82('0x1')](_0x3c5fb7['commandParams'][0x0][_0x1c82('0x1b')])))};break;case _0x1c82('0x4'):_0x497b75=_0x3c5fb7[_0x1c82('0x18')][0x0][_0x1c82('0x2a')]?_0x1c82('0x2e'):_0x1c82('0x1d'),_0x500702={'type':_0x1c82('0x26'),'content':_0x214301(_0x50eff3,_0x497b75)};break;case'listStart':_0x497b75=_0x1c82('0x33'),_0x500702={'type':_0x1c82('0x26'),'content':_0x214301(_0x50eff3,_0x497b75,_0x3c5fb7[_0x1c82('0x18')][0x0][_0x1c82('0x1f')])};}return _0x500702;}[_0x1c82('0x32')](_0x1f8bc5){const _0x2611db=this[_0x1c82('0xb')][_0x1c82('0xe')]['get'](_0x1c82('0x25'));let _0x39019d=Array[_0x1c82('0x7')](this[_0x1c82('0xb')]['model'][_0x1c82('0x15')]['selection']['getSelectedBlocks']())[_0x1c82('0x16')](_0x1f8bc5)['map'](_0x220bf0=>{const _0x418d06=this[_0x1c82('0xb')]['model'][_0x1c82('0x10')](_0x220bf0,0x0);return[..._0x2611db[_0x1c82('0x12')](_0x418d06,'backward'),..._0x2611db['getSiblingNodes'](_0x418d06,_0x1c82('0x8'))];})['flat']();return _0x39019d=[...new Set(_0x39019d)],_0x39019d;}['_getTranslationKeyForListStyle'](_0x3c692a){return _0x1c82('0x1a')+this[_0x1c82('0xb')]['plugins'][_0x1c82('0x2')](_0x1c82('0x25'))[_0x1c82('0x19')](_0x3c692a)[_0x1c82('0x31')]()+_0x1c82('0x29')+_0x3c692a[_0x1c82('0x31')]()[_0x1c82('0x2c')]('-','_');}}
|
|
@@ -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 _0xe9ea=['downcastDispatcher','stop','dataDowncast','high','showSuggestionHighlights','_descriptionFactory','registerElementLabel','MediaEmbedEditing','conversion','ELEMENT_MEDIA','locale','plugins','data','options','get','for','afterInit','enableCommand','attribute:url:media','media','editor'];(function(_0x15cae8,_0xe9ea7f){const _0xaff0c5=function(_0x5d127b){while(--_0x5d127b){_0x15cae8['push'](_0x15cae8['shift']());}};_0xaff0c5(++_0xe9ea7f);}(_0xe9ea,0xbf));const _0xaff0=function(_0x15cae8,_0xe9ea7f){_0x15cae8=_0x15cae8-0x0;let _0xaff0c5=_0xe9ea[_0x15cae8];return _0xaff0c5;};import{Plugin as _0xe4af55}from'ckeditor5/src/core';import{getTranslation as _0x55d5b3}from'../utils/common-translations';export default class rt extends _0xe4af55{[_0xaff0('0xe')](){const _0xba8755=this[_0xaff0('0x12')];if(!_0xba8755[_0xaff0('0x9')]['has'](_0xaff0('0x5')))return;const _0x33cdd5=_0xba8755[_0xaff0('0x9')][_0xaff0('0xc')]('TrackChangesEditing'),_0x546d93=_0xba8755[_0xaff0('0x8')];_0x33cdd5[_0xaff0('0xf')]('mediaEmbed'),_0x33cdd5[_0xaff0('0x3')][_0xaff0('0x4')]('media',_0x147c79=>_0x55d5b3(_0x546d93,_0xaff0('0x7'),_0x147c79)),_0xba8755[_0xaff0('0x6')][_0xaff0('0xd')](_0xaff0('0x0'))['elementToElement']({'model':_0xaff0('0x11'),'view':(_0x32d43f,{writer:_0x53006d,options:_0x43284a})=>{if(_0x43284a[_0xaff0('0x2')])return _0x53006d['createEmptyElement']('div');},'converterPriority':_0xaff0('0x1')}),_0xba8755[_0xaff0('0xa')][_0xaff0('0x13')]['on'](_0xaff0('0x10'),(_0x475d8e,_0x402e15,_0x1b3b5d)=>{_0x1b3b5d[_0xaff0('0xb')][_0xaff0('0x2')]&&_0x475d8e[_0xaff0('0x14')]();},{'priority':_0xaff0('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 _0x1bfe=['has','afterInit','plugins','get','MentionEditing','enableCommand','editor'];(function(_0x365b05,_0x1bfe96){const _0x232599=function(_0x2a764a){while(--_0x2a764a){_0x365b05['push'](_0x365b05['shift']());}};_0x232599(++_0x1bfe96);}(_0x1bfe,0x148));const _0x2325=function(_0x365b05,_0x1bfe96){_0x365b05=_0x365b05-0x0;let _0x232599=_0x1bfe[_0x365b05];return _0x232599;};import{Plugin as _0x4c5b6d}from'ckeditor5/src/core';export default class at extends _0x4c5b6d{[_0x2325('0x2')](){const _0x380b45=this[_0x2325('0x0')];_0x380b45[_0x2325('0x3')][_0x2325('0x1')](_0x2325('0x5'))&&_0x380b45[_0x2325('0x3')][_0x2325('0x4')]('TrackChangesEditing')[_0x2325('0x6')]('mention');}}
|
|
@@ -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 _0x4b37=['PageBreakEditing','pageBreak','get','editor','plugins','afterInit','has','locale','enableCommand','TrackChangesEditing'];(function(_0x387145,_0x4b37ca){const _0x19add2=function(_0xa0ed8a){while(--_0xa0ed8a){_0x387145['push'](_0x387145['shift']());}};_0x19add2(++_0x4b37ca);}(_0x4b37,0x151));const _0x19ad=function(_0x387145,_0x4b37ca){_0x387145=_0x387145-0x0;let _0x19add2=_0x4b37[_0x387145];return _0x19add2;};import{Plugin as _0x418dd1}from'ckeditor5/src/core';import{getTranslation as _0x871e5f}from'../utils/common-translations';export default class ct extends _0x418dd1{[_0x19ad('0x8')](){const _0xe0353c=this[_0x19ad('0x6')];if(!_0xe0353c[_0x19ad('0x7')][_0x19ad('0x9')](_0x19ad('0x3')))return;_0xe0353c['plugins']['get'](_0x19ad('0x2'))[_0x19ad('0x1')](_0x19ad('0x4'));const _0x1645a2=_0xe0353c[_0x19ad('0x7')][_0x19ad('0x5')]('TrackChangesEditing'),_0x294786=_0xe0353c[_0x19ad('0x0')];_0x1645a2['_descriptionFactory']['registerElementLabel']('pageBreak',_0xb56393=>_0x871e5f(_0x294786,'ELEMENT_PAGE_BREAK',_0xb56393));}}
|
|
@@ -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 _0x3b6b=['start','activeMarkers','$text','markerName','paragraph','mapper','downcastDispatcher','insert','isTouching','consumable','from','type','has','enableCommand','*Change\x20to:*\x20%0','bindElementToMarker','toViewPosition','*Insert:*\x20%0','writer','isObject','markBlockFormat','locale','commandName','TrackChangesEditing','markerRange','highest','nodeAfter','parent','editor','getSelectedBlocks','span','createUIElement','data','getFirstRange','schema','addMarker:suggestion:insertion','isLimit','plugins','insertion','filter','registerDescriptionCallback','showSuggestionHighlights','registerElementLabel','Paragraph','checkChild','end','selection','blockName','editing','get','isBlock','change','format','insertParagraph','document','_descriptionFactory','model','afterInit','ELEMENT_PARAGRAPH'];(function(_0x44d7dd,_0x3b6b0c){const _0x4a4042=function(_0x4ed941){while(--_0x4ed941){_0x44d7dd['push'](_0x44d7dd['shift']());}};_0x4a4042(++_0x3b6b0c);}(_0x3b6b,0x185));const _0x4a40=function(_0x44d7dd,_0x3b6b0c){_0x44d7dd=_0x44d7dd-0x0;let _0x4a4042=_0x3b6b[_0x44d7dd];return _0x4a4042;};import{Plugin as _0x6989f2}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x18e6ee}from'./utils';import{getTranslation as _0x270015}from'../utils/common-translations';export default class ht extends _0x6989f2{[_0x4a40('0x16')](){const _0x454dfc=this[_0x4a40('0x34')];if(!_0x454dfc[_0x4a40('0x2')][_0x4a40('0x24')](_0x4a40('0x8')))return;const _0x1684c6=_0x454dfc[_0x4a40('0x2d')],_0x48f30a=_0x454dfc['plugins'][_0x4a40('0xe')](_0x4a40('0x2f'));_0x48f30a[_0x4a40('0x14')][_0x4a40('0x7')](_0x4a40('0x1c'),_0x2f4043=>_0x270015(_0x1684c6,_0x4a40('0x17'),_0x2f4043)),_0x48f30a[_0x4a40('0x25')](_0x4a40('0x1c'),(_0x456d0e,_0x229568={})=>{const _0x5b0b63=_0x454dfc[_0x4a40('0x15')][_0x4a40('0x13')],_0x5996b3=_0x229568['selection']||_0x5b0b63[_0x4a40('0xb')],_0xdb0db9=Array[_0x4a40('0x22')](_0x5996b3[_0x4a40('0x35')]())[_0x4a40('0x4')](_0x35f839=>function(_0x2b0285,_0xf24dfd){return _0xf24dfd[_0x4a40('0x9')](_0x2b0285[_0x4a40('0x33')],_0x4a40('0x1c'))&&!_0xf24dfd[_0x4a40('0x2b')](_0x2b0285)&&_0x4a40('0x1c')!=_0x2b0285['name'];}(_0x35f839,this['editor'][_0x4a40('0x15')][_0x4a40('0x3a')]));_0x454dfc[_0x4a40('0x15')][_0x4a40('0x10')](()=>{for(const _0x4cd4fb of _0xdb0db9)_0x48f30a[_0x4a40('0x2c')](_0x4cd4fb,{'commandName':_0x4a40('0x1c'),'commandParams':[],'formatGroupId':_0x4a40('0xc')},_0x18e6ee(_0x4cd4fb));});}),_0x48f30a[_0x4a40('0x14')][_0x4a40('0x5')](_0x41d75e=>{const {data:_0x751922}=_0x41d75e;if(_0x751922&&_0x4a40('0x1c')==_0x751922[_0x4a40('0x2e')])return{'type':_0x4a40('0x11'),'content':_0x270015(_0x1684c6,_0x4a40('0x26'),_0x270015(_0x1684c6,_0x4a40('0x17')))};}),_0x48f30a[_0x4a40('0x25')](_0x4a40('0x12')),_0x454dfc[_0x4a40('0xd')][_0x4a40('0x1e')]['on'](_0x4a40('0x0'),ar(_0x454dfc),{'priority':_0x4a40('0x31')}),_0x454dfc[_0x4a40('0x38')]['downcastDispatcher']['on'](_0x4a40('0x0'),(_0x126606,_0x56bb43,_0x5a154d)=>{_0x5a154d['options'][_0x4a40('0x6')]&&ar(_0x454dfc,{'showActiveMarker':!0x1})(_0x126606,_0x56bb43,_0x5a154d);},{'priority':_0x4a40('0x31')});const _0x3dd090=_0x48f30a[_0x4a40('0x14')];_0x3dd090[_0x4a40('0x5')](_0x450f09=>{if(_0x4a40('0x3')!==_0x450f09[_0x4a40('0x23')])return;const {start:_0x4651b0,end:_0x2023c6}=_0x450f09[_0x4a40('0x39')]();if(!_0x4651b0[_0x4a40('0x20')](_0x2023c6)||!_0x4651b0['nodeAfter'])return;const _0x4ff56c=_0x454dfc[_0x4a40('0x15')][_0x4a40('0x3a')],_0x1d8ffa=_0x4651b0[_0x4a40('0x32')];return _0x4ff56c[_0x4a40('0xf')](_0x1d8ffa)&&!_0x4ff56c[_0x4a40('0x1')](_0x1d8ffa)&&_0x4ff56c[_0x4a40('0x9')](_0x1d8ffa,_0x4a40('0x1a'))?{'type':_0x4a40('0x3'),'content':_0x270015(_0x1684c6,_0x4a40('0x29'),_0x3dd090['getItemLabel'](_0x1d8ffa,0x1))}:void 0x0;});}}function ar(_0x220680,{showActiveMarker:_0x2b4a96=!0x0}={}){return(_0x5786e1,_0x4083a3,_0x42d814)=>{const _0x24b54c=_0x220680[_0x4a40('0x2')][_0x4a40('0xe')]('TrackChangesEditing'),_0xf54f1d=_0x4083a3[_0x4a40('0x30')][_0x4a40('0x18')],_0x3485f5=_0x4083a3['markerRange'][_0x4a40('0xa')],_0x33609a=_0x220680[_0x4a40('0x15')][_0x4a40('0x3a')];if(!_0xf54f1d['isTouching'](_0x3485f5)||!_0xf54f1d[_0x4a40('0x32')])return;const _0x4086d0=_0xf54f1d['nodeAfter'];if(_0x33609a['isBlock'](_0x4086d0)&&!_0x33609a[_0x4a40('0x1')](_0x4086d0)&&_0x33609a[_0x4a40('0x9')](_0x4086d0,_0x4a40('0x1a'))){if(!_0x42d814[_0x4a40('0x21')]['consume'](_0x4083a3[_0x4a40('0x30')],_0x5786e1['name']))return;const _0x2cd14f=_0x42d814[_0x4a40('0x2a')][_0x4a40('0x37')](_0x4a40('0x36'),{'class':'ck-suggestion-marker-split'}),_0x15cf20=_0x42d814[_0x4a40('0x1d')][_0x4a40('0x28')](_0x3485f5);_0x2b4a96&&_0x24b54c[_0x4a40('0x19')]['includes'](_0x4083a3['markerName'])&&_0x42d814[_0x4a40('0x2a')]['addClass']('ck-suggestion-marker--active',_0x2cd14f),_0x42d814['writer'][_0x4a40('0x1f')](_0x15cf20,_0x2cd14f),_0x42d814[_0x4a40('0x1d')][_0x4a40('0x27')](_0x2cd14f,_0x4083a3[_0x4a40('0x1b')]);}};}
|
|
@@ -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 _0x4d62=['getAttributes','getAttributeProperties','isFormatting','RemoveFormatEditing','plugins','get','change','from','registerDescriptionCallback','document','_descriptionFactory','model','commandName','isCollapsed','enableCommand','format','removeFormat','*Remove\x20all\x20formatting*'];(function(_0x15051b,_0x4d6246){const _0x3eccf5=function(_0x337cb8){while(--_0x337cb8){_0x15051b['push'](_0x15051b['shift']());}};_0x3eccf5(++_0x4d6246);}(_0x4d62,0xbc));const _0x3ecc=function(_0x15051b,_0x4d6246){_0x15051b=_0x15051b-0x0;let _0x3eccf5=_0x4d62[_0x15051b];return _0x3eccf5;};import{Plugin as _0x30b2d0}from'ckeditor5/src/core';import{getTranslation as _0x38a5f6}from'../utils/common-translations';export default class ut extends _0x30b2d0{['afterInit'](){const _0x516fed=this['editor'];if(!_0x516fed[_0x3ecc('0xe')]['has'](_0x3ecc('0xd')))return;const _0x37025d=_0x516fed[_0x3ecc('0xe')][_0x3ecc('0xf')]('TrackChangesEditing');_0x37025d[_0x3ecc('0x6')](_0x3ecc('0x8'),_0x326e36=>{const _0x182bf8=_0x516fed[_0x3ecc('0x3')][_0x3ecc('0x1')]['selection'];_0x182bf8[_0x3ecc('0x5')]?_0x326e36():_0x516fed[_0x3ecc('0x3')][_0x3ecc('0x10')](()=>{const _0x3a1cea=Array[_0x3ecc('0x11')](_0x182bf8['getRanges']());for(const _0x5ca9ea of _0x3a1cea)for(const _0x597fd5 of _0x5ca9ea['getItems']())to(_0x597fd5,_0x516fed[_0x3ecc('0x3')]['schema'])&&_0x37025d['markInlineFormat'](_0x516fed[_0x3ecc('0x3')]['createRangeOn'](_0x597fd5),{'commandName':_0x3ecc('0x8'),'commandParams':[]});});}),_0x37025d[_0x3ecc('0x2')][_0x3ecc('0x0')](_0x3b0461=>{const {data:_0x512ad0}=_0x3b0461;if(_0x512ad0&&_0x3ecc('0x8')==_0x512ad0[_0x3ecc('0x4')])return{'type':_0x3ecc('0x7'),'content':_0x38a5f6(_0x516fed['locale'],_0x3ecc('0x9'))};});}}function to(_0x72f9a4,_0x5dd230){for(const [_0x585108]of _0x72f9a4[_0x3ecc('0xa')]()){const _0x42f894=_0x5dd230[_0x3ecc('0xb')](_0x585108);if(_0x42f894&&_0x42f894[_0x3ecc('0xc')])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 _0x2e63=['discardSuggestion','trackChanges','has','acceptAllSuggestions','editor','afterInit','goToNextRestrictedEditingException','get','discardSelectedSuggestions','TrackChangesEditing','enableCommand','plugins','RestrictedEditingModeEditing','acceptSelectedSuggestions'];(function(_0x100727,_0x2e63e4){const _0x1fe937=function(_0x2dd060){while(--_0x2dd060){_0x100727['push'](_0x100727['shift']());}};_0x1fe937(++_0x2e63e4);}(_0x2e63,0xa7));const _0x1fe9=function(_0x100727,_0x2e63e4){_0x100727=_0x100727-0x0;let _0x1fe937=_0x2e63[_0x100727];return _0x1fe937;};import{Plugin as _0x2b45a8}from'ckeditor5/src/core';export default class ft extends _0x2b45a8{[_0x1fe9('0x6')](){const _0x18c6a7=this[_0x1fe9('0x5')];if(!_0x18c6a7[_0x1fe9('0xc')][_0x1fe9('0x3')](_0x1fe9('0xd')))return;const _0x262f55=_0x18c6a7[_0x1fe9('0xc')][_0x1fe9('0x8')](_0x1fe9('0xa'));_0x262f55[_0x1fe9('0xb')]('goToPreviousRestrictedEditingException'),_0x262f55['enableCommand'](_0x1fe9('0x7'));const _0x4e431b=_0x18c6a7[_0x1fe9('0xc')][_0x1fe9('0x8')](_0x1fe9('0xd'));_0x4e431b[_0x1fe9('0xb')](_0x1fe9('0x2')),_0x4e431b[_0x1fe9('0xb')]('acceptSuggestion'),_0x4e431b['enableCommand'](_0x1fe9('0x1')),_0x4e431b[_0x1fe9('0xb')](_0x1fe9('0x4')),_0x4e431b[_0x1fe9('0xb')]('discardAllSuggestions'),_0x4e431b[_0x1fe9('0xb')](_0x1fe9('0x0')),_0x4e431b[_0x1fe9('0xb')](_0x1fe9('0x9'));}}
|
|
@@ -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 _0x336f=['showSuggestionHighlights','merge','insert','activeMarkers','split','TrackChangesEditing','addMarker:suggestion','span','addMarker:suggestion:deletion','ck-suggestion-marker--active','mapper','enableCommand','high','markerRange','_descriptionFactory','options','init','element','get','requires','data','createUIElement','ELEMENT_LINE_BREAK','downcastDispatcher','deletion','writer','softBreak','registerElementLabel','ck-suggestion-marker-','plugins','locale','markerName','bindElementToMarker','editing'];(function(_0xe79977,_0x336fed){const _0x245c59=function(_0x12913c){while(--_0x12913c){_0xe79977['push'](_0xe79977['shift']());}};_0x245c59(++_0x336fed);}(_0x336f,0xa0));const _0x245c=function(_0xe79977,_0x336fed){_0xe79977=_0xe79977-0x0;let _0x245c59=_0x336f[_0xe79977];return _0x245c59;};import{Plugin as _0x253c2f}from'ckeditor5/src/core';import{ShiftEnter as _0x1dd70b}from'ckeditor5/src/enter';import{getTranslation as _0x39c855}from'../utils/common-translations';export default class gt extends _0x253c2f{static get[_0x245c('0x1d')](){return[_0x1dd70b];}[_0x245c('0x1a')](){const _0x2b054e=this['editor'],_0x26d1dd=_0x2b054e[_0x245c('0x5')][_0x245c('0x1c')](_0x245c('0xf'));_0x26d1dd[_0x245c('0x15')]('shiftEnter'),_0x2b054e['editing'][_0x245c('0x21')]['on']('addMarker:suggestion:insertion',re(_0x2b054e),{'priority':_0x245c('0x16')}),_0x2b054e[_0x245c('0x9')][_0x245c('0x21')]['on'](_0x245c('0x12'),re(_0x2b054e),{'priority':_0x245c('0x16')}),_0x2b054e[_0x245c('0x1e')][_0x245c('0x21')]['on'](_0x245c('0x10'),(_0x2186f8,_0x54ca18,_0xfc26a2)=>{_0xfc26a2[_0x245c('0x19')][_0x245c('0xa')]&&re(_0x2b054e,{'showActiveMarker':!0x1})(_0x2186f8,_0x54ca18,_0xfc26a2);}),_0x26d1dd[_0x245c('0x18')][_0x245c('0x3')](_0x245c('0x2'),_0x2d1382=>_0x39c855(_0x2b054e[_0x245c('0x6')],_0x245c('0x20'),_0x2d1382));}}function re(_0x4dbb5c,{showActiveMarker:_0x1b88fd=!0x0}={}){return(_0x42d9ab,_0x2fee9d,_0xf02a28)=>{const _0x4d4012=_0x4dbb5c[_0x245c('0x5')][_0x245c('0x1c')](_0x245c('0xf'));if(!_0xf02a28['consumable']['test'](_0x2fee9d['markerRange'],_0x42d9ab['name']))return;const _0xd67662=_0x4dbb5c['model'];for(const _0x19c872 of _0x2fee9d[_0x245c('0x17')]['getItems']()){if(!_0x19c872['is'](_0x245c('0x1b'),'softBreak'))continue;const _0x53e423=_0x245c('0x0')==_0x2fee9d[_0x245c('0x7')][_0x245c('0xe')](':')[0x1]?_0x245c('0xb'):_0x245c('0xe'),_0x1c6239=_0xf02a28[_0x245c('0x1')][_0x245c('0x1f')](_0x245c('0x11'),{'class':_0x245c('0x4')+_0x53e423}),_0x120c10=_0xf02a28[_0x245c('0x14')]['toViewPosition'](_0xd67662['createPositionBefore'](_0x19c872));_0x1b88fd&&_0x4d4012[_0x245c('0xd')]['includes'](_0x2fee9d[_0x245c('0x7')])&&_0xf02a28[_0x245c('0x1')]['addClass'](_0x245c('0x13'),_0x1c6239),_0xf02a28[_0x245c('0x1')][_0x245c('0xc')](_0x120c10,_0x1c6239),_0xf02a28[_0x245c('0x14')][_0x245c('0x8')](_0x1c6239,_0x2fee9d[_0x245c('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 _0x936f=['commandParams','has','_descriptionFactory','format','value','commandName','from','FORMAT_RESTRICTED_ENABLED','locale','getRanges','markInlineFormat','commands','forceValue','StandardEditingModeEditing','registerDescriptionCallback','isCollapsed','get','model','enableCommand','document','plugins','restrictedEditingException'];(function(_0x503eb2,_0x936fc){const _0x33012f=function(_0x40edba){while(--_0x40edba){_0x503eb2['push'](_0x503eb2['shift']());}};_0x33012f(++_0x936fc);}(_0x936f,0x1b5));const _0x3301=function(_0x503eb2,_0x936fc){_0x503eb2=_0x503eb2-0x0;let _0x33012f=_0x936f[_0x503eb2];return _0x33012f;};import{Plugin as _0x5020a6}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x44fda8}from'./utils';import{getTranslation as _0x1b4ae4}from'../utils/common-translations';export default class lt extends _0x5020a6{['afterInit'](){const _0x4f3ca0=this['editor'],_0x5d9425=_0x4f3ca0[_0x3301('0x14')],_0xe69717=_0x4f3ca0[_0x3301('0xb')];if(!_0x4f3ca0[_0x3301('0x1')][_0x3301('0x4')](_0x3301('0x10')))return;const _0x26dfd3=_0x4f3ca0[_0x3301('0x1')][_0x3301('0x13')]('TrackChangesEditing'),_0x500233=_0x3301('0x2'),_0x13860e=_0x4f3ca0[_0x3301('0xe')][_0x3301('0x13')](_0x500233);_0x26dfd3[_0x3301('0x15')](_0x500233,(_0x5e57de,_0x3757d6={})=>{const _0x5bfa16=_0x5d9425[_0x3301('0x0')]['selection'];if(_0x5bfa16[_0x3301('0x12')])return void _0x5e57de(_0x3757d6);const _0x106198=void 0x0!==_0x3757d6[_0x3301('0xf')]?_0x3757d6[_0x3301('0xf')]:!_0x13860e[_0x3301('0x7')];_0x5d9425['change'](()=>{const _0x428e16=Array[_0x3301('0x9')](_0x5bfa16[_0x3301('0xc')]());for(const _0x2a76a6 of _0x428e16){const _0x5d7e5e=_0x106198?[_0x2a76a6]:_0x44fda8(_0x500233,_0x2a76a6,_0x5d9425);for(const _0x342c04 of _0x5d7e5e)_0x26dfd3[_0x3301('0xd')](_0x342c04,{'commandName':_0x500233,'commandParams':[{'forceValue':_0x106198}]});}});}),_0x26dfd3[_0x3301('0x5')][_0x3301('0x11')](_0x159801=>{const {data:_0x28a506}=_0x159801;if(_0x28a506&&_0x28a506[_0x3301('0x8')]==_0x500233)return _0x28a506[_0x3301('0x3')][0x0]['forceValue']?{'type':_0x3301('0x6'),'content':_0x1b4ae4(_0xe69717,_0x3301('0xa'))}:{'type':_0x3301('0x6'),'content':_0x1b4ae4(_0xe69717,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -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 _0x1c9a=['enabledStyles','plugins','push','isCollapsed','commandName','getAncestors','block','includes','selection','element','getStyleDefinition','style','styleName','modelElements','change','*Format:*\x20%0','classes','TrackChangesEditing','value','every','add','createRangeOn','enableCommand','find','has','inline','name','markBlockFormat','get','locale','format','toLowerCase','getDefinitionsForView','getAttribute','commands','*Remove\x20format:*\x20%0','model','isBlock','document','getRangesWithClasses','afterInit','style.definitions','_descriptionFactory'];(function(_0x3e7482,_0x1c9aa4){const _0x4ccc7e=function(_0x3d05e7){while(--_0x3d05e7){_0x3e7482['push'](_0x3e7482['shift']());}};_0x4ccc7e(++_0x1c9aa4);}(_0x1c9a,0x16a));const _0x4ccc=function(_0x3e7482,_0x1c9aa4){_0x3e7482=_0x3e7482-0x0;let _0x4ccc7e=_0x1c9a[_0x3e7482];return _0x4ccc7e;};import{Plugin as _0x5e6c2e}from'ckeditor5/src/core';import{normalizeConfig as _0x5ee2d5}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x2e51a1}from'../utils/common-translations';export default class mt extends _0x5e6c2e{[_0x4ccc('0x16')](){const _0x4c527b=this['editor'];if(!_0x4c527b[_0x4ccc('0x1a')][_0x4ccc('0x6')]('Style'))return;const _0x469edb=_0x4c527b[_0x4ccc('0x10')][_0x4ccc('0xa')](_0x4ccc('0x24')),_0x299786=_0x4c527b[_0x4ccc('0x1a')]['get'](_0x4ccc('0x2a')),_0x2eecd8=_0x4c527b[_0x4ccc('0xb')],_0x4823c4=_0x4c527b['plugins'][_0x4ccc('0xa')]('DataSchema'),_0x1ee214=_0x5ee2d5(_0x4823c4,_0x4c527b['config'][_0x4ccc('0xa')](_0x4ccc('0x17')));_0x299786[_0x4ccc('0x4')](_0x4ccc('0x24'),(_0xb0c68c,{styleName:_0x3d13ad})=>{const _0x83b009=_0x4c527b[_0x4ccc('0x12')][_0x4ccc('0x14')][_0x4ccc('0x21')],_0x146414=this[_0x4ccc('0x23')](_0x3d13ad,_0x1ee214);if(!_0x146414)return;if(!_0x469edb[_0x4ccc('0x19')][_0x4ccc('0x20')](_0x3d13ad))return;if(_0x83b009[_0x4ccc('0x1c')]&&!_0x146414[_0x4ccc('0x13')])return void _0xb0c68c({'styleName':_0x3d13ad});const _0x269a60=!_0x469edb[_0x4ccc('0x0')][_0x4ccc('0x20')](_0x146414['name']);if(_0x146414[_0x4ccc('0x13')]){const _0x5690f8=function(_0x177309,_0x48ab59){const _0x43b29b=new Set();for(const _0x45bb7b of _0x177309){const _0x4897b0=_0x45bb7b[_0x4ccc('0x1e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x47b9ab of _0x4897b0)if(_0x48ab59['includes'](_0x47b9ab['name'])){_0x43b29b[_0x4ccc('0x2')](_0x47b9ab);break;}}return _0x43b29b;}(_0x83b009['getSelectedBlocks'](),_0x146414[_0x4ccc('0x26')]);_0x4c527b[_0x4ccc('0x12')][_0x4ccc('0x27')](()=>{for(const _0xbddf96 of _0x5690f8)_0x299786[_0x4ccc('0x9')](_0xbddf96,{'commandName':_0x4ccc('0x24'),'commandParams':[{'styleName':_0x3d13ad,'forceValue':_0x269a60}],'formatGroupId':'style:'+_0x3d13ad});});}else{let _0x3025c9=Array['from'](_0x83b009['getRanges']());if(!_0x269a60){const _0x4f4289=Array['from'](_0x4823c4[_0x4ccc('0xe')](_0x146414[_0x4ccc('0x22')],!0x1))[0x0]['model'],_0x2dc315=[];for(const _0x4661ef of _0x3025c9){const _0xdb3672=this[_0x4ccc('0x15')](_0x4c527b['model'],_0x4661ef,_0x146414[_0x4ccc('0x29')],_0x4f4289);_0x2dc315[_0x4ccc('0x1b')](..._0xdb3672);}_0x3025c9=_0x2dc315;}_0x4c527b[_0x4ccc('0x12')][_0x4ccc('0x27')](()=>{for(const _0x2b1afa of _0x3025c9)_0x299786['markInlineFormat'](_0x2b1afa,{'commandName':_0x4ccc('0x24'),'commandParams':[{'styleName':_0x3d13ad,'forceValue':_0x269a60}]});});}}),_0x299786[_0x4ccc('0x18')]['registerDescriptionCallback'](_0xbaafd2=>{const {data:_0xd5d3d6}=_0xbaafd2;if(_0xd5d3d6&&_0x4ccc('0x24')===_0xd5d3d6[_0x4ccc('0x1d')])return _0xd5d3d6['commandParams'][0x0]['forceValue']?{'type':_0x4ccc('0xc'),'content':_0x2e51a1(_0x2eecd8,_0x4ccc('0x28'),_0xd5d3d6['commandParams'][0x0][_0x4ccc('0x25')]['toLowerCase']())}:{'type':'format','content':_0x2e51a1(_0x2eecd8,_0x4ccc('0x11'),_0xd5d3d6['commandParams'][0x0][_0x4ccc('0x25')][_0x4ccc('0xd')]())};});}[_0x4ccc('0x23')](_0x2c221e,_0x4ed24f){let _0x45a938=_0x4ed24f[_0x4ccc('0x1f')]['find'](_0xc3138e=>_0xc3138e[_0x4ccc('0x8')]===_0x2c221e);return _0x45a938||(_0x45a938=_0x4ed24f[_0x4ccc('0x7')][_0x4ccc('0x5')](_0x78e46b=>_0x78e46b[_0x4ccc('0x8')]===_0x2c221e)),_0x45a938;}['getRangesWithClasses'](_0xeac3b4,_0x396af9,_0x1ce011,_0x27cd09){const _0x5e71bd=[];for(const _0x59df20 of _0x396af9['getItems']()){const _0x14ce12=_0x59df20[_0x4ccc('0xf')](_0x27cd09);_0x14ce12&&(_0x1ce011[_0x4ccc('0x1')](_0x1793ee=>_0x14ce12[_0x4ccc('0x29')]['includes'](_0x1793ee))&&_0x5e71bd['push'](_0xeac3b4[_0x4ccc('0x3')](_0x59df20)));}return _0x5e71bd;}}
|
|
@@ -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 _0x27d4=['end','colspan','afterInit','mapper','push','ELEMENT_TABLE_WITH_TEXT','insertTable','isEqual','_acceptFormatSuggestionCallbackFactory','editor','detach','markMultiRangeInsertion','highest','get','nodeBefore','markMultiRangeDeletion','refresh','plugins','createTableWalker','document','ELEMENT_TABLE_COLUMN','values','_setupColumnsRowsFixing','hasAttribute','position','above','options','first','length','TableUtils','some','model','$graveyard','getSelectionAffectedTableCells','fromRange','classes','*Insert:*\x20%0','getContainedElement','getChanges','findAncestor','substr','ELEMENT_TABLE_ROW_WITH_TEXT','includes','getChangedMarkers','setSelection','_getSuggestionCoords','max','deletion','showSuggestionHighlights','root','selection','createPositionAt','_descriptionFactory','discard','differ','locale','minColumn','getChildren','removeClass','_tableSuggestions','filter','registerDescriptionCallback','map','insertTableRowBelow','order','enableCommand','execute','getColumnIndexes','createRangeIn','type','span','insertTableColumnLeft','tableColumn','accept','TrackChangesEditing','rootName','from','forceValue','nodeAfter','minRow','rowspan','oldRange','getFirstRange','insert','enqueueChange','addClass','tableCell','addRange','insertTableRowAbove','data','commands','_getCoordsForCells','name','ELEMENT_TABLE','registerCustomCallback','isInContent','change','last','textProxy','startsWith','maxColumn','getItems','add','removeTableRow','_suggestionFactory','element','tablePaste','tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','getRowIndexes','getRanges','MIN_SAFE_INTEGER','table','TableEditing','has','registerElementLabel','registerPostFixer','min','getAttribute','cell','item','createRangeOn','_tablePostFixingSubtypes','MAX_SAFE_INTEGER','start','left','subType','*Remove:*\x20%0','toLowerCase','isTouching','join','getCellLocation','insertion','selectTableColumn','removeTableColumn'];(function(_0x2f4ca1,_0x27d4e6){const _0x598831=function(_0x1218e9){while(--_0x1218e9){_0x2f4ca1['push'](_0x2f4ca1['shift']());}};_0x598831(++_0x27d4e6);}(_0x27d4,0x12a));const _0x5988=function(_0x2f4ca1,_0x27d4e6){_0x2f4ca1=_0x2f4ca1-0x0;let _0x598831=_0x27d4[_0x2f4ca1];return _0x598831;};import{Plugin as _0x2f832b}from'ckeditor5/src/core';import{LiveRange as _0x40b883}from'ckeditor5/src/engine';import{setHighlightHandling as _0x13f7fa}from'ckeditor5/src/widget';import{getTranslation as _0x576c85}from'../utils/common-translations';export default class dt extends _0x2f832b{constructor(_0x5195e8){super(_0x5195e8),this[_0x5988('0x5e')]=[_0x5988('0x4f'),'tableColumn'];}[_0x5988('0x6d')](){const _0x3cc866=this[_0x5988('0x74')],_0x8fe794=_0x3cc866[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x16')];if(!_0x3cc866[_0x5988('0x7c')][_0x5988('0x56')](_0x5988('0x55')))return;const _0x4e3e4c=_0x3cc866[_0x5988('0x1b')],_0x23a788=_0x3cc866[_0x5988('0x7c')]['get'](_0x5988('0x2e')),_0xef7949=_0x3cc866[_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));_0x23a788[_0x5988('0x18')][_0x5988('0x57')](_0x5988('0x54'),_0xec3ffc=>_0x576c85(_0x4e3e4c,_0x5988('0x41'),_0xec3ffc)),this[_0x5988('0x81')](),_0x23a788[_0x5988('0x25')](_0x5988('0x71')),_0x23a788[_0x5988('0x25')]('selectTableRow'),_0x23a788[_0x5988('0x25')](_0x5988('0x69'));for(const _0x5ab85f of[_0x5988('0x3c'),_0x5988('0x23')]){const _0x364873=_0x3cc866[_0x5988('0x3e')]['get'](_0x5ab85f);_0x23a788[_0x5988('0x25')](_0x5ab85f,_0x1d942b=>{_0x3cc866['model'][_0x5988('0x44')](_0xfcb217=>{_0x1d942b();const _0x556433=_0x5988('0x84')===_0x364873[_0x5988('0x24')],_0x38917d=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x2839ed=_0xef7949['getRowIndexes'](_0x38917d),_0x81d42c=_0x556433?_0x2839ed['first']-0x1:_0x2839ed['last']+0x1,_0x7dd5c3=_0x38917d[0x0][_0x5988('0xb')](_0x5988('0x54')),_0x59c775=_0xef7949[_0x5988('0x7d')](_0x7dd5c3,{'startRow':_0x81d42c,'endRow':_0x81d42c}),_0xdbd52b=Array[_0x5988('0x30')](_0x59c775)[_0x5988('0x22')](_0x3ba11a=>_0xfcb217[_0x5988('0x5d')](_0x3ba11a['cell']));_0x23a788[_0x5988('0x76')](_0xdbd52b,_0x5988('0x4f'));});});}for(const _0x38b0e0 of[_0x5988('0x2b'),'insertTableColumnRight']){const _0x437a72=_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')](_0x38b0e0);_0x23a788[_0x5988('0x25')](_0x38b0e0,_0x5b5cc4=>{_0x3cc866[_0x5988('0x3')]['change'](_0x466894=>{_0x5b5cc4();const _0x306279=_0x5988('0x61')===_0x437a72[_0x5988('0x24')],_0x11ff0f=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x4faca0=_0xef7949[_0x5988('0x27')](_0x11ff0f),_0x40fba2=_0x306279?_0x4faca0[_0x5988('0x86')]-0x1:_0x4faca0[_0x5988('0x45')]+0x1,_0x288694=_0x11ff0f[0x0]['findAncestor']('table'),_0x14fa15=_0xef7949[_0x5988('0x7d')](_0x288694,{'startRow':0x0,'column':_0x40fba2,'includeAllSlots':!0x1}),_0x2d4601=Array['from'](_0x14fa15)[_0x5988('0x22')](_0x4e5f03=>_0x466894[_0x5988('0x5d')](_0x4e5f03[_0x5988('0x5b')]));_0x23a788[_0x5988('0x76')](_0x2d4601,'tableColumn');});});}for(const _0x2878be of[_0x5988('0x4b'),_0x5988('0x6a')]){const _0x5eeab8=_0x2878be[_0x5988('0xc')](0xb),_0x3ef6cb=_0x5eeab8[_0x5988('0x64')](),_0x41040f=_0x3ef6cb[_0x5988('0xc')](0x0,0x3)+'span',_0x2c2e67=_0x5988('0x54')+_0x5eeab8,_0x34cbbc=_0x5988('0x59')+_0x5eeab8,_0x3fae05=_0x5988('0x12')+_0x5eeab8;_0x23a788[_0x5988('0x25')](_0x2878be,()=>{_0x3cc866[_0x5988('0x3')][_0x5988('0x44')](_0x1a07e0=>{const _0x4ebf23=_0xef7949[_0x5988('0x5')](_0x8fe794),_0x57fc3d=_0x4ebf23[0x0][_0x5988('0xb')](_0x5988('0x54'));let _0x29e710;if(_0x5988('0x4b')==_0x2878be){const _0x365705=_0xef7949[_0x5988('0x51')](_0x4ebf23);_0x29e710={'startRow':_0x365705[_0x5988('0x86')],'endRow':_0x365705['last'],'includeAllSlots':!0x0};}else{const _0xad6073=_0xef7949[_0x5988('0x27')](_0x4ebf23);_0x29e710={'startColumn':_0xad6073[_0x5988('0x86')],'endColumn':_0xad6073[_0x5988('0x45')],'includeAllSlots':!0x0};}const _0x344ef6=_0xef7949[_0x5988('0x7d')](_0x57fc3d,_0x29e710),_0x17570e=Array[_0x5988('0x30')](_0x344ef6)['map'](({cell:_0x28155e})=>_0x28155e),_0x11a24a=le(_0x17570e[_0x5988('0x20')](_0x50de58=>_0x50de58[_0x5988('0x82')](_0x41040f))),_0x11bbc3=le(_0x17570e[_0x5988('0x20')](_0x3d6826=>!_0x3d6826[_0x5988('0x82')](_0x41040f)))['map'](_0x93b4ae=>_0x1a07e0['createRangeOn'](_0x93b4ae)),_0x229ca3=_0x23a788[_0x5988('0x7a')](_0x11bbc3,_0x2c2e67);if(_0x229ca3&&(_0x5988('0x4f')==_0x229ca3[_0x5988('0x62')]||_0x5988('0x2c')==_0x229ca3[_0x5988('0x62')])){const _0x405b5a=this[_0x5988('0x11')](_0x229ca3);for(const _0xef2507 of _0x11a24a){const _0x91edc1=_0x1a07e0[_0x5988('0x5d')](_0xef2507),_0x25e1d5=_0xef7949[_0x5988('0x67')](_0xef2507),_0x25c929=_0xef2507['getAttribute'](_0x41040f)-0x1,_0x4c2891=_0x405b5a[_0x34cbbc],_0x4c54cb=_0x405b5a[_0x3fae05];_0x4c2891<=_0x25e1d5[_0x3ef6cb]&&_0x25e1d5[_0x3ef6cb]+_0x25c929<=_0x4c54cb&&_0x229ca3[_0x5988('0x3b')](_0x91edc1);}}});});}function _0x41ddd0(_0x4d3766){const _0x3ed30c=Array[_0x5988('0x30')](_0x8fe794[_0x5988('0x52')]())[_0x5988('0x22')](_0x5e478f=>_0x40b883[_0x5988('0x6')](_0x5e478f));_0x3cc866[_0x5988('0x3')]['change'](_0x4dd19b=>{const _0x57cd3a=_0x4dd19b['batch'];_0x4d3766=_0x4d3766[_0x5988('0x20')](_0x502ac1=>_0x5988('0x4')!=_0x502ac1[_0x5988('0x15')]['rootName']),_0x4dd19b[_0x5988('0x10')](_0x4d3766),_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')](_0x5988('0x4b'))[_0x5988('0x7b')](),_0x3cc866['execute'](_0x5988('0x4b'),{'forceDefaultExecution':!0x0}),_0x3cc866[_0x5988('0x3')][_0x5988('0x38')](()=>{_0x3cc866[_0x5988('0x3')][_0x5988('0x38')](_0x57cd3a,_0x523183=>{const _0x359144=_0x3ed30c[_0x5988('0x20')](_0x4865bf=>_0x5988('0x4')!=_0x4865bf[_0x5988('0x15')][_0x5988('0x2f')]);_0x359144[_0x5988('0x0')]>0x0&&_0x523183[_0x5988('0x10')](_0x359144);for(const _0x51dbd4 of _0x3ed30c)_0x51dbd4[_0x5988('0x75')]();});});});}function _0xcdafd9(_0x1d3919){_0x3cc866[_0x5988('0x3')][_0x5988('0x44')](_0x40d2c6=>{const _0x4488c6=Array[_0x5988('0x30')](_0x8fe794[_0x5988('0x52')]())['map'](_0x1db25f=>_0x40b883[_0x5988('0x6')](_0x1db25f)),_0x7ad5ed=[];for(const _0x418e69 of _0x1d3919)for(const _0x436fd1 of _0x418e69[_0x5988('0x49')]({'shallow':!0x0}))_0x7ad5ed[_0x5988('0x6f')](_0x436fd1);for(const _0x2a93c4 of _0x7ad5ed)_0x5988('0x4')!=_0x2a93c4[_0x5988('0x15')][_0x5988('0x2f')]&&(_0x40d2c6['setSelection'](_0x40d2c6[_0x5988('0x17')](_0x2a93c4,0x0)),_0x3cc866[_0x5988('0x3e')][_0x5988('0x78')]('removeTableColumn')['refresh'](),_0x3cc866[_0x5988('0x26')](_0x5988('0x6a'),{'forceDefaultExecution':!0x0}));const _0x3b1fdd=_0x4488c6[_0x5988('0x20')](_0x3e7e68=>_0x5988('0x4')!=_0x3e7e68[_0x5988('0x15')]['rootName']);_0x3b1fdd[_0x5988('0x0')]>0x0&&_0x40d2c6[_0x5988('0x10')](_0x3b1fdd);for(const _0x29c168 of _0x4488c6)_0x29c168[_0x5988('0x75')]();});}function _0x5cdb3f(_0xf32e9e,_0x3a8651){return _0x3a8651['every'](_0x37817c=>_0xf32e9e[_0x5988('0x2')](_0x3ebbe4=>_0x3ebbe4[_0x5988('0x6b')][_0x5988('0x72')](_0x37817c['start'])||_0x37817c['end']['isEqual'](_0x3ebbe4['start'])));}function _0x349d3a(_0x575d2,_0x426a1b){return _0x575d2[_0x5988('0x2')](_0x354649=>_0x426a1b['some'](_0x413d48=>_0x354649[_0x5988('0x6b')][_0x5988('0x65')](_0x413d48[_0x5988('0x60')])));}_0x3cc866[_0x5988('0x3d')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fd939,_0x359572,_0x512ffc)=>{if(!_0x512ffc[_0x5988('0x85')][_0x5988('0x14')])return;const _0x45ea72=_0x359572[_0x5988('0x5c')];if(!_0x45ea72)return;const _0x1997af=_0x512ffc[_0x5988('0x6e')]['toViewElement'](_0x45ea72);function _0x1f3fbf(_0x10caea){return Array['isArray'](_0x10caea)?_0x10caea:[_0x10caea];}_0x1997af&&'tableCell'===_0x45ea72[_0x5988('0x40')]&&_0x13f7fa(_0x1997af,_0x512ffc['writer'],(_0x2dde63,_0x2a2dcf,_0x5df9e3)=>_0x5df9e3[_0x5988('0x39')](_0x1f3fbf(_0x2a2dcf[_0x5988('0x7')]),_0x2dde63),(_0x5d100f,_0x2cfdcc,_0x5208c8)=>_0x5208c8[_0x5988('0x1e')](_0x1f3fbf(_0x2cfdcc[_0x5988('0x7')]),_0x5d100f));},{'priority':_0x5988('0x77')}),_0x23a788[_0x5988('0x18')][_0x5988('0x21')](_0x1f63e9=>{if(_0x5988('0x68')!=_0x1f63e9['type']&&_0x5988('0x13')!=_0x1f63e9[_0x5988('0x29')])return;const _0x439ab5=_0x1f63e9[_0x5988('0x9')]();if(null!=_0x439ab5&&_0x439ab5['is'](_0x5988('0x4d'),_0x5988('0x54'))){if(_0x5988('0x68')==_0x1f63e9[_0x5988('0x29')]){const _0x1a1c41=_0x1f63e9[_0x5988('0x49')]()[_0x5988('0x20')](_0x146cc2=>_0x146cc2['is'](_0x5988('0x46')))[_0x5988('0x22')](_0xa5f7ba=>_0xa5f7ba[_0x5988('0x3d')]);if(_0x1a1c41[_0x5988('0x0')])return{'type':'insertion','content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0x70'),'\x22'+_0x1a1c41[_0x5988('0x66')]('\x20')+'\x22'))};}if('deletion'==_0x1f63e9['type']){const _0x57e4f9=_0x1f63e9[_0x5988('0x49')]()[_0x5988('0x20')](_0x22d065=>_0x22d065['is'](_0x5988('0x46')))['map'](_0x5cbe47=>_0x5cbe47['data']);if(_0x57e4f9[_0x5988('0x0')])return{'type':'deletion','content':_0x576c85(_0x4e3e4c,'*Remove:*\x20%0',_0x576c85(_0x4e3e4c,_0x5988('0x70'),'\x22'+_0x57e4f9[_0x5988('0x66')]('\x20')+'\x22'))};}}}),_0x23a788['_descriptionFactory']['registerDescriptionCallback'](_0x96e463=>{if('tableRow'==_0x96e463['subType']){const _0x33f04d=_0x96e463[_0x5988('0x49')]()[_0x5988('0x20')](_0x23688e=>_0x23688e['is']('textProxy'))[_0x5988('0x22')](_0x341d3e=>_0x341d3e['data']),_0x594c80=this[_0x5988('0x11')](_0x96e463),_0x275f46=_0x594c80['maxRow']-_0x594c80[_0x5988('0x33')]+0x1;if(_0x5988('0x68')==_0x96e463['type'])return _0x33f04d[_0x5988('0x0')]?{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0xd'),[_0x275f46,'\x22'+_0x33f04d[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,'ELEMENT_TABLE_ROW',_0x275f46))};if(_0x5988('0x13')==_0x96e463['type'])return _0x33f04d['length']?{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0xd'),[_0x275f46,'\x22'+_0x33f04d[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,'*Remove:*\x20%0',_0x576c85(_0x4e3e4c,'ELEMENT_TABLE_ROW',_0x275f46))};}if(_0x5988('0x2c')==_0x96e463[_0x5988('0x62')]){const _0x336f24=_0x96e463['getItems']()[_0x5988('0x20')](_0x5636f9=>_0x5636f9['is']('textProxy'))[_0x5988('0x22')](_0x410cb5=>_0x410cb5[_0x5988('0x3d')]),_0x264d5b=this[_0x5988('0x11')](_0x96e463),_0x2d2af1=_0x264d5b[_0x5988('0x48')]-_0x264d5b[_0x5988('0x1c')]+0x1;if(_0x5988('0x68')==_0x96e463[_0x5988('0x29')])return _0x336f24[_0x5988('0x0')]?{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,'*Insert:*\x20%0',_0x576c85(_0x4e3e4c,_0x5988('0x50'),[_0x2d2af1,'\x22'+_0x336f24[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x68'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x8'),_0x576c85(_0x4e3e4c,_0x5988('0x7f'),_0x2d2af1))};if('deletion'==_0x96e463['type'])return _0x336f24[_0x5988('0x0')]?{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0x50'),[_0x2d2af1,'\x22'+_0x336f24[_0x5988('0x66')]('\x20')+'\x22']))}:{'type':_0x5988('0x13'),'content':_0x576c85(_0x4e3e4c,_0x5988('0x63'),_0x576c85(_0x4e3e4c,_0x5988('0x7f'),_0x2d2af1))};}}),_0x23a788['_suggestionFactory']['registerCustomCallback']('insertion',_0x5988('0x4f'),_0x5988('0x19'),_0x41ddd0),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')]('deletion','tableRow','accept',_0x41ddd0),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')](_0x5988('0x68'),'tableColumn',_0x5988('0x19'),_0xcdafd9),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('deletion',_0x5988('0x2c'),_0x5988('0x2d'),_0xcdafd9),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('insertion',_0x5988('0x2c'),_0x5988('0x66'),_0x5cdb3f),_0x23a788[_0x5988('0x4c')][_0x5988('0x42')](_0x5988('0x13'),_0x5988('0x2c'),'join',_0x5cdb3f),_0x23a788['_suggestionFactory'][_0x5988('0x42')](_0x5988('0x68'),_0x5988('0x4f'),'join',_0x349d3a),_0x23a788[_0x5988('0x4c')]['registerCustomCallback']('deletion',_0x5988('0x4f'),_0x5988('0x66'),_0x349d3a);}[_0x5988('0x73')](){const _0x138a55=this[_0x5988('0x74')],_0x3444fb=_0x138a55[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x16')];return(_0x1f155e,_0x27c246)=>{_0x138a55[_0x5988('0x3')][_0x5988('0x44')](_0x498d2c=>{const {commandName:_0x14529e,commandParams:_0x2d10c5}=_0x27c246;let _0x373a08=_0x1f155e[0x0][_0x5988('0x6b')][_0x5988('0x79')];_0x2d10c5&&_0x2d10c5[0x0]&&!0x1===_0x2d10c5[0x0][_0x5988('0x31')]&&(_0x373a08=_0x1f155e[0x0]['start'][_0x5988('0x32')]);const _0x228add=_0x498d2c[_0x5988('0x28')](_0x373a08);if(_0x5988('0x4')==_0x228add[_0x5988('0x15')]['rootName'])return;const _0x168dd5=Array[_0x5988('0x30')](_0x3444fb['getRanges']())['map'](_0x45b054=>_0x40b883[_0x5988('0x6')](_0x45b054));_0x498d2c[_0x5988('0x10')](_0x228add),_0x138a55[_0x5988('0x3e')]['get'](_0x14529e)[_0x5988('0x7b')](),_0x2d10c5[_0x5988('0x6f')]({'forceDefaultExecution':!0x0}),_0x138a55[_0x5988('0x26')](_0x14529e,..._0x2d10c5);const _0xa70b5c=_0x168dd5[_0x5988('0x20')](_0x1a53d4=>_0x5988('0x4')!=_0x1a53d4[_0x5988('0x15')][_0x5988('0x2f')]);_0xa70b5c[_0x5988('0x0')]>0x0&&_0x498d2c[_0x5988('0x10')](_0xa70b5c);for(const _0x9148d2 of _0x168dd5)_0x9148d2[_0x5988('0x75')]();});};}[_0x5988('0x3f')](_0x2e1866){const _0x31be49=this[_0x5988('0x74')][_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));let _0x1532aa=Number['MAX_SAFE_INTEGER'],_0x457fc8=Number[_0x5988('0x53')],_0x32519f=Number[_0x5988('0x5f')],_0x101aba=Number[_0x5988('0x53')];for(const _0x117011 of _0x2e1866){if(_0x5988('0x4')==_0x117011[_0x5988('0x15')][_0x5988('0x2f')])continue;const {row:_0x57e155,column:_0x35bc5e}=_0x31be49['getCellLocation'](_0x117011),_0x2ee11a=_0x117011[_0x5988('0x82')]('rowspan')?_0x117011[_0x5988('0x5a')](_0x5988('0x34'))-0x1:0x0,_0x518c04=_0x117011[_0x5988('0x82')](_0x5988('0x6c'))?_0x117011[_0x5988('0x5a')](_0x5988('0x6c'))-0x1:0x0;_0x1532aa=_0x57e155<_0x1532aa?_0x57e155:_0x1532aa,_0x457fc8=_0x57e155+_0x2ee11a>_0x457fc8?_0x57e155+_0x2ee11a:_0x457fc8,_0x32519f=_0x35bc5e<_0x32519f?_0x35bc5e:_0x32519f,_0x101aba=_0x35bc5e+_0x518c04>_0x101aba?_0x35bc5e+_0x518c04:_0x101aba;}return{'minRow':_0x1532aa,'maxRow':_0x457fc8,'minColumn':_0x32519f,'maxColumn':_0x101aba};}[_0x5988('0x81')](){const _0x33e7f0=this[_0x5988('0x74')],_0x20dbdf=_0x33e7f0[_0x5988('0x7c')][_0x5988('0x78')]('TrackChangesEditing'),_0x27fa3c=_0x33e7f0[_0x5988('0x7c')][_0x5988('0x78')](_0x5988('0x1'));this['_tableSuggestions']=new Set(),_0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')]['on']('change:data',()=>{const _0x5e09b7=Array[_0x5988('0x30')](_0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')][_0x5988('0x1a')][_0x5988('0xf')]());for(const {name:_0x23883c,data:_0x27d7a7}of _0x5e09b7){const {group:_0x2bc0b6,id:_0x6c61d8,subType:_0x52186c}=_0x20dbdf['_splitMarkerName'](_0x23883c);if('suggestion'!=_0x2bc0b6)continue;if(null!=_0x27d7a7[_0x5988('0x35')])continue;const _0x1a2733=_0x20dbdf['getSuggestion'](_0x6c61d8);this[_0x5988('0x5e')][_0x5988('0xe')](_0x52186c)&&this[_0x5988('0x1f')][_0x5988('0x4a')](_0x1a2733);}},{'priority':'low'});const _0x22e349=(_0x3ceedc,_0x6e9913)=>{let _0x1d227d=!0x1;const _0x5da54f=_0x6e9913[_0x5988('0x5d')](_0x3ceedc),_0x150656=_0x3ceedc[_0x5988('0xb')]('table'),_0x1e853d=_0x27fa3c[_0x5988('0x67')](_0x3ceedc);for(const _0x283cf1 of this['_tableSuggestions']){const _0x58b881=_0x283cf1[_0x5988('0x62')],_0x425452=_0x58b881[_0x5988('0x47')](_0x5988('0x4e')),_0x4baedb=_0x58b881[_0x5988('0xc')](_0x425452?0xa:0x5),_0x34f825=_0x4baedb[_0x5988('0x64')](),_0xb6db91=_0x34f825['substr'](0x0,0x3)+_0x5988('0x2a'),_0x268b33='min'+_0x4baedb,_0x41d33e='max'+_0x4baedb;if(!_0x283cf1[_0x5988('0x43')])continue;if(_0x150656!=_0x283cf1[_0x5988('0x36')]()[_0x5988('0x60')][_0x5988('0xb')](_0x5988('0x54')))continue;if(_0x283cf1['isIntersectingWithRange'](_0x5da54f))continue;const _0x82e995=_0x3ceedc[_0x5988('0x82')](_0xb6db91)?_0x3ceedc[_0x5988('0x5a')](_0xb6db91)-0x1:0x0,_0x1e1847=this[_0x5988('0x11')](_0x283cf1),_0x5149ee=_0x1e1847[_0x268b33],_0x5519e4=_0x1e1847[_0x41d33e];_0x5149ee<=_0x1e853d[_0x34f825]&&_0x1e853d[_0x34f825]+_0x82e995<=_0x5519e4&&(_0x283cf1[_0x5988('0x3b')](_0x5da54f),_0x1d227d=!0x0);}return _0x1d227d;};_0x33e7f0['model'][_0x5988('0x7e')][_0x5988('0x58')](_0xde19ba=>{let _0x45cdad=!0x1;for(const _0x55d79b of _0x33e7f0[_0x5988('0x3')][_0x5988('0x7e')]['differ'][_0x5988('0xa')]())if(_0x5988('0x37')==_0x55d79b[_0x5988('0x29')]){if('tableRow'==_0x55d79b[_0x5988('0x40')])for(const _0x4146a7 of _0x55d79b[_0x5988('0x83')]['nodeAfter'][_0x5988('0x1d')]())_0x45cdad=_0x45cdad||_0x22e349(_0x4146a7,_0xde19ba);else _0x5988('0x3a')==_0x55d79b[_0x5988('0x40')]&&(_0x45cdad=_0x45cdad||_0x22e349(_0x55d79b[_0x5988('0x83')]['nodeAfter'],_0xde19ba));}return _0x45cdad;});}[_0x5988('0x11')](_0x3eb705){return this['_getCoordsForCells'](_0x3eb705[_0x5988('0x52')]()[_0x5988('0x22')](_0x27e218=>_0x27e218[_0x5988('0x60')][_0x5988('0x32')]));}}function le(_0x3c9284){return Array['from'](new Set(_0x3c9284)[_0x5988('0x80')]());}
|
|
@@ -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 _0x5a09=['get','enableCommand','requires','has','plugins','TrackChangesEditing'];(function(_0x5796d8,_0x5a09c8){const _0x23e14e=function(_0x494bd1){while(--_0x494bd1){_0x5796d8['push'](_0x5796d8['shift']());}};_0x23e14e(++_0x5a09c8);}(_0x5a09,0x1d4));const _0x23e1=function(_0x5796d8,_0x5a09c8){_0x5796d8=_0x5796d8-0x0;let _0x23e14e=_0x5a09[_0x5796d8];return _0x23e14e;};import{Plugin as _0x3c2fe6}from'ckeditor5/src/core';import _0x4d2fa4 from'./table';export default class It extends _0x3c2fe6{static get[_0x23e1('0x2')](){return[_0x4d2fa4];}['afterInit'](){const _0x5bfd65=this['editor'];if(!_0x5bfd65[_0x23e1('0x4')][_0x23e1('0x3')]('TableCaptionEditing'))return;_0x5bfd65['plugins'][_0x23e1('0x0')](_0x23e1('0x5'))[_0x23e1('0x1')]('toggleTableCaption');}}
|