@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.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/README.md +0 -1
- package/build/track-changes.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- package/src/utils/utils.js +2 -2
package/src/integrations/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x2235=['selection','slice','blockName','todoListChecked','parent','getAttribute','ELEMENT_NUMBERED_LIST','previousSibling','ELEMENT_BULLETED_LIST','element','filter','model','push','change','checkTodoList','isObject','*Change\x20to:*\x20%0','from','commandName','value','editor','enableCommand','format','add','*Uncheck\x20item*','*Indent:*\x20%0','commands','get','forceValue','bulleted','createPositionAt','ELEMENT_TODO_LIST','nextSibling','commandParams','markBlockFormat','plugins','*Check\x20item*','locale','document','todoList','TrackChangesEditing','findIndex','name','outdentList','numberedList','before','numbered','afterInit','_descriptionFactory','has','indentList','createRange','length','listIndent','replace','ELEMENT_LIST_ITEM','todo','List','listItem','_selectedElements'];(function(_0x5ef86a,_0x223581){const _0x332f76=function(_0x5e1ac6){while(--_0x5e1ac6){_0x5ef86a['push'](_0x5ef86a['shift']());}};_0x332f76(++_0x223581);}(_0x2235,0x1f3));const _0x332f=function(_0x5ef86a,_0x223581){_0x5ef86a=_0x5ef86a-0x0;let _0x332f76=_0x2235[_0x5ef86a];return _0x332f76;};import{Plugin as _0x22c9d1}from'ckeditor5/src/core';import{getTranslation as _0x351e0a}from'../utils/common-translations';export default class st extends _0x22c9d1{[_0x332f('0x1c')](){const _0x22c82a=this[_0x332f('0x1')],_0x2bb841=_0x22c82a[_0x332f('0x12')];if(!_0x22c82a[_0x332f('0x10')][_0x332f('0x1e')]('ListEditing'))return;const _0x278372=_0x22c82a[_0x332f('0x10')]['get'](_0x332f('0x15')),_0x518aa8=_0x22c82a['plugins'][_0x332f('0x1e')]('TodoListEditing');function _0x13cf85(_0x41de30){return()=>{const _0x45044b=_0x22c82a[_0x332f('0x34')][_0x332f('0x13')][_0x332f('0x29')],_0x4c194c=_0x22c82a['commands'][_0x332f('0x8')](_0x41de30);if(_0x4c194c[_0x332f('0x0')])return void _0x22c82a['execute']('paragraph',{});const _0x38caec=_0x41de30[_0x332f('0x2a')](0x0,-0x4),_0x2b3ace=function(_0x61084a,_0x41bc56,_0x24456c){let _0x562987=Array[_0x332f('0x3a')](_0x61084a)[_0x332f('0x33')](_0x8dd748=>function(_0x4dc3df,_0x5c3037){return _0x5c3037['checkChild'](_0x4dc3df[_0x332f('0x2d')],_0x332f('0x27'))&&!_0x5c3037[_0x332f('0x38')](_0x4dc3df);}(_0x8dd748,_0x24456c));_0x562987=_0x562987[_0x332f('0x33')](_0x5a25a7=>!_0x5a25a7['is'](_0x332f('0x32'),_0x332f('0x27'))||_0x5a25a7[_0x332f('0x2e')]('listType')!=_0x41bc56);const _0x3e3d8b=new Set();for(const _0x3269d7 of _0x562987)_0x3269d7['is'](_0x332f('0x32'),_0x332f('0x27'))?_0x3e3d8b[_0x332f('0x4')](ne(_0x3269d7)):_0x3e3d8b[_0x332f('0x4')](_0x3269d7);return Array[_0x332f('0x3a')](_0x3e3d8b);}(_0x45044b['getSelectedBlocks'](),_0x38caec,_0x22c82a[_0x332f('0x34')]['schema']);_0x22c82a['model']['change'](()=>{for(const _0x56a504 of _0x2b3ace)_0x278372['markBlockFormat'](_0x56a504,{'commandName':_0x41de30,'commandParams':[{'forceValue':!_0x4c194c[_0x332f('0x0')]}],'formatGroupId':_0x332f('0x2b')},oe(_0x56a504));});};}function _0x2de9d4(_0x382048){return()=>{const _0x1ab309=function(_0x303261){let _0x1d03c3=Array[_0x332f('0x3a')](_0x303261);const _0x1053ec=_0x1d03c3[_0x332f('0x16')](_0x21c634=>_0x332f('0x27')!=_0x21c634[_0x332f('0x17')]);return _0x1053ec>-0x1&&(_0x1d03c3=_0x1d03c3[_0x332f('0x2a')](0x0,_0x1053ec)),_0x1d03c3;}(_0x22c82a[_0x332f('0x34')]['document']['selection']['getSelectedBlocks']()),_0x9c0b69=_0x22c82a[_0x332f('0x34')][_0x332f('0x20')](_0x22c82a[_0x332f('0x34')][_0x332f('0xb')](_0x1ab309[0x0],_0x332f('0x1a')),_0x22c82a['model'][_0x332f('0xb')](_0x1ab309[_0x1ab309[_0x332f('0x21')]-0x1],'end'));_0x22c82a['model'][_0x332f('0x36')](()=>{_0x278372[_0x332f('0xf')](_0x9c0b69,{'commandName':_0x382048,'commandParams':[],'formatGroupId':_0x332f('0x22')},function(_0x3d6a9b){const _0x420e05=new Set();for(const _0x567707 of _0x3d6a9b){let _0xf90503=_0x567707['nextSibling'];for(;_0xf90503&&_0xf90503[_0x332f('0x2e')](_0x332f('0x22'))>_0x567707['getAttribute'](_0x332f('0x22'));)_0x420e05[_0x332f('0x4')](_0xf90503),_0xf90503=_0xf90503[_0x332f('0xd')];}return Array[_0x332f('0x3a')](_0x420e05);}(_0x1ab309));});};}_0x278372[_0x332f('0x2')](_0x332f('0x19'),_0x13cf85('numberedList')),_0x278372[_0x332f('0x2')]('bulletedList',_0x13cf85('bulletedList')),_0x518aa8&&_0x278372['enableCommand'](_0x332f('0x14'),_0x13cf85(_0x332f('0x14'))),_0x278372['enableCommand'](_0x332f('0x1f'),_0x2de9d4(_0x332f('0x1f'))),_0x278372[_0x332f('0x2')](_0x332f('0x18'),_0x2de9d4(_0x332f('0x18'))),_0x518aa8&&_0x278372[_0x332f('0x2')](_0x332f('0x37'),()=>{const _0x2a7ce3=_0x22c82a[_0x332f('0x7')]['get'](_0x332f('0x37')),_0x41f467=Array[_0x332f('0x3a')](_0x2a7ce3[_0x332f('0x28')]);_0x41f467[_0x332f('0x33')](_0x3ae28c=>_0x3ae28c[_0x332f('0x2e')](_0x332f('0x2c'))!=_0x2a7ce3[_0x332f('0x0')]),_0x22c82a['model'][_0x332f('0x36')](()=>{for(const _0x283760 of _0x41f467)_0x278372[_0x332f('0xf')](_0x283760,{'commandName':_0x332f('0x37'),'commandParams':[{'forceValue':!_0x2a7ce3[_0x332f('0x0')]}]});});}),_0x278372[_0x332f('0x1d')]['registerElementLabel']('listItem',_0x20c131=>_0x351e0a(_0x2bb841,'ELEMENT_LIST_ITEM',_0x20c131)),_0x278372['_descriptionFactory']['registerDescriptionCallback'](_0x2abddf=>{const {data:_0x17aebe}=_0x2abddf;if(_0x17aebe){if('numberedList'==_0x17aebe[_0x332f('0x3b')]||'bulletedList'==_0x17aebe[_0x332f('0x3b')]||_0x332f('0x14')==_0x17aebe[_0x332f('0x3b')])switch(_0x17aebe[_0x332f('0x3b')][_0x332f('0x23')](_0x332f('0x26'),'')){case _0x332f('0xa'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0x31')));case _0x332f('0x1b'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0x2f')));case _0x332f('0x25'):return _0xb6a335(_0x351e0a(_0x2bb841,_0x332f('0xc')));}if(_0x332f('0x1f')==_0x17aebe[_0x332f('0x3b')])return{'type':'format','content':_0x351e0a(_0x2bb841,_0x332f('0x6'),_0x351e0a(_0x2bb841,_0x332f('0x24')))};if(_0x332f('0x18')==_0x17aebe[_0x332f('0x3b')])return{'type':'format','content':_0x351e0a(_0x2bb841,'*Outdent:*\x20%0',_0x351e0a(_0x2bb841,_0x332f('0x24')))};if(_0x332f('0x37')==_0x17aebe[_0x332f('0x3b')])return _0x17aebe[_0x332f('0xe')][0x0][_0x332f('0x9')]?{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x11'))}:{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x5'))};}function _0xb6a335(_0x4097ec){return{'type':_0x332f('0x3'),'content':_0x351e0a(_0x2bb841,_0x332f('0x39'),_0x4097ec)};}});}}function ne(_0xe47c4f){const _0xef4a29=_0xe47c4f[_0x332f('0x2e')]('listIndent');if(0x0==_0xef4a29)return _0xe47c4f;let _0x26a47a=_0xe47c4f;for(;_0xe47c4f['previousSibling']&&_0xe47c4f[_0x332f('0x30')]['is'](_0x332f('0x32'),'listItem');){const _0x5bcc9b=_0xe47c4f[_0x332f('0x30')][_0x332f('0x2e')]('listIndent');if(_0x5bcc9b==_0xef4a29)_0x26a47a=_0xe47c4f[_0x332f('0x30')];else{if(_0x5bcc9b<_0xef4a29)break;}_0xe47c4f=_0xe47c4f[_0x332f('0x30')];}return _0x26a47a;}function oe(_0x157a93){const _0x3d777b=[];if(_0x157a93['is'](_0x332f('0x32'),_0x332f('0x27'))&&_0x157a93['getAttribute'](_0x332f('0x22'))>0x0){let _0x4e3f09=_0x157a93[_0x332f('0xd')];for(;_0x4e3f09&&_0x332f('0x27')==_0x4e3f09[_0x332f('0x17')]&&_0x4e3f09['getAttribute'](_0x332f('0x22'))==_0x157a93[_0x332f('0x2e')](_0x332f('0x22'));)_0x3d777b[_0x332f('0x35')](_0x4e3f09),_0x4e3f09=_0x4e3f09[_0x332f('0xd')];}return _0x3d777b;}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/listproperties
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import type { Description } from '../suggestiondescriptionfactory
|
|
6
|
-
import type Suggestion from '../suggestion
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
7
11
|
/**
|
|
8
12
|
* Provides track changes plugin integration for list properties feature.
|
|
9
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x2fac=['markMultiRangeBlockFormat','getLastPosition','element','forward','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','replace','commandName','has','handleDescriptions','handleListStartCommand','_descriptionFactory','listReversed','plugins','enableCommand','editor','createRange','createPositionAt','document','flat','listStart','push','_getSuggestionBlocksForListStyle','selection','unshift','listStyle','from','handleListReversedCommand','length','ListUtils','type','commandParams','_getSuggestionBlocks','change','getFirstPosition','bind','listItem','getAttribute','locale','getSelectedBlocks','getSiblingNodes','model','get','_getTranslationKeyForListStyle','backward','registerDescriptionCallback','parent','numbered','ELEMENT_','toUpperCase','getListTypeFromListStyleType','handleListStyleCommand','listType','startIndex','format','filter','map','reversed','before','TrackChangesEditing'];(function(_0x464a29,_0x2fac7a){const _0x500e24=function(_0x1ff086){while(--_0x1ff086){_0x464a29['push'](_0x464a29['shift']());}};_0x500e24(++_0x2fac7a);}(_0x2fac,0x18b));const _0x500e=function(_0x464a29,_0x2fac7a){_0x464a29=_0x464a29-0x0;let _0x500e24=_0x2fac[_0x464a29];return _0x500e24;};import{Plugin as _0x371873}from'ckeditor5/src/core';import{getTranslation as _0x27712b}from'../utils/common-translations';export default class nt extends _0x371873{['afterInit'](){if(!this[_0x500e('0x28')][_0x500e('0x26')][_0x500e('0x21')]('ListPropertiesEditing'))return;const _0x2f50d6=this[_0x500e('0x28')]['config'][_0x500e('0x7')](_0x500e('0x1d')),_0x2b69ed=this[_0x500e('0x28')]['plugins'][_0x500e('0x7')]('TrackChangesEditing');_0x2f50d6['styles']&&_0x2b69ed['enableCommand'](_0x500e('0x32'),this[_0x500e('0x10')][_0x500e('0x0')](this)),_0x2f50d6[_0x500e('0x16')]&&_0x2b69ed[_0x500e('0x27')](_0x500e('0x25'),this[_0x500e('0x34')]['bind'](this)),_0x2f50d6[_0x500e('0x12')]&&_0x2b69ed[_0x500e('0x27')](_0x500e('0x2d'),this[_0x500e('0x23')][_0x500e('0x0')](this)),_0x2b69ed[_0x500e('0x24')][_0x500e('0xa')](this[_0x500e('0x22')][_0x500e('0x0')](this));}[_0x500e('0x10')](_0x1fac02,_0x23f045={}){const _0x37b84f=this['editor'][_0x500e('0x26')][_0x500e('0x7')](_0x500e('0x18')),_0x3c6eb8=this[_0x500e('0x2f')]();this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x37b84f[_0x500e('0x19')](_0x3c6eb8,{'commandName':_0x500e('0x32'),'commandParams':[{'type':_0x23f045[_0x500e('0x37')]}],'formatGroupId':_0x500e('0x32')});});}[_0x500e('0x34')](_0x10c531,_0x6641e2={}){const _0x4dc5a5=this[_0x500e('0x28')][_0x500e('0x26')]['get']('TrackChangesEditing'),_0x138484=this[_0x500e('0x39')](_0x2ab283=>_0x2ab283['is'](_0x500e('0x1b'),_0x500e('0x1'))&&_0x500e('0xc')===_0x2ab283[_0x500e('0x2')]('listType'));if(_0x138484[_0x500e('0x35')]<0x1)return;const _0x6e85ae=_0x138484[_0x500e('0x15')](_0x2dc34f=>this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x29')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2dc34f,_0x500e('0x17')),this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2dc34f,0x0)));this['editor'][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x4dc5a5[_0x500e('0x19')](_0x6e85ae,{'commandName':_0x500e('0x25'),'commandParams':[{'reversed':_0x6641e2[_0x500e('0x16')]}],'formatGroupId':_0x500e('0x25')});});}['handleListStartCommand'](_0x1d0c6f,_0x1e8fe5={}){const _0x19e815=this[_0x500e('0x28')][_0x500e('0x26')]['get']('TrackChangesEditing'),_0x2a5491=this[_0x500e('0x39')](_0x3eeab5=>_0x3eeab5['is']('element','listItem')&&_0x500e('0xc')===_0x3eeab5[_0x500e('0x2')](_0x500e('0x11')));if(_0x2a5491[_0x500e('0x35')]<0x1)return;const _0x18db0b=_0x2a5491['map'](_0x2aa974=>this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x29')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2a')](_0x2aa974,'before'),this['editor'][_0x500e('0x6')]['createPositionAt'](_0x2aa974,0x0)));this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x3a')](()=>{_0x19e815[_0x500e('0x19')](_0x18db0b,{'commandName':_0x500e('0x2d'),'commandParams':[{'startIndex':_0x1e8fe5[_0x500e('0x12')]}],'formatGroupId':'listStart'});});}[_0x500e('0x22')](_0x500c97){const _0x3c793e=this[_0x500e('0x28')][_0x500e('0x3')],{data:_0xa95c9f}=_0x500c97;if(!_0xa95c9f)return;let _0x4ddf93,_0x2a7af3;switch(_0xa95c9f[_0x500e('0x20')]){case'listStyle':_0x4ddf93='*Change\x20to:*\x20%0',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93,_0x27712b(_0x3c793e,this[_0x500e('0x8')](_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x37')])))};break;case _0x500e('0x25'):_0x4ddf93=_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x16')]?_0x500e('0x1e'):'*Format:*\x20set\x20order\x20to\x20regular',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93)};break;case _0x500e('0x2d'):_0x4ddf93='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a7af3={'type':_0x500e('0x13'),'content':_0x27712b(_0x3c793e,_0x4ddf93,_0xa95c9f[_0x500e('0x38')][0x0][_0x500e('0x12')])};}return _0x2a7af3;}[_0x500e('0x2f')](){var _0x37a38b,_0x4099bc,_0x36b8fc,_0x8c7b55;const _0x2e7e23=this[_0x500e('0x28')][_0x500e('0x26')]['get']('ListUtils');let _0x979c35=Array[_0x500e('0x33')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')][_0x500e('0x30')]['getSelectedBlocks']());return(null===(_0x37a38b=_0x979c35[0x0])||void 0x0===_0x37a38b?void 0x0:_0x37a38b['is'](_0x500e('0x1b'),'listItem'))&&_0x979c35[_0x500e('0x31')](..._0x2e7e23[_0x500e('0x5')](this[_0x500e('0x28')]['model'][_0x500e('0x2b')][_0x500e('0x30')]['getFirstPosition'](),_0x500e('0x9'))),(null===(_0x4099bc=_0x979c35[_0x979c35[_0x500e('0x35')]-0x1])||void 0x0===_0x4099bc?void 0x0:_0x4099bc['is']('element',_0x500e('0x1')))&&_0x979c35[_0x500e('0x2e')](..._0x2e7e23[_0x500e('0x5')](this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')][_0x500e('0x30')][_0x500e('0x1a')](),_0x500e('0x1c'))),_0x979c35=[...new Set(_0x979c35)],(null===(_0x8c7b55=null===(_0x36b8fc=this[_0x500e('0x28')][_0x500e('0x6')][_0x500e('0x2b')]['selection'][_0x500e('0x3b')]())||void 0x0===_0x36b8fc?void 0x0:_0x36b8fc[_0x500e('0xb')])||void 0x0===_0x8c7b55?void 0x0:_0x8c7b55['is'](_0x500e('0x1b'),_0x500e('0x1')))&&(_0x979c35=_0x979c35[_0x500e('0x14')](_0x3f8ea9=>_0x3f8ea9['is'](_0x500e('0x1b'),_0x500e('0x1')))),_0x979c35;}[_0x500e('0x39')](_0x19cd5d){const _0x1b0978=this['editor'][_0x500e('0x26')]['get'](_0x500e('0x36'));let _0x32e23b=Array['from'](this[_0x500e('0x28')]['model'][_0x500e('0x2b')]['selection'][_0x500e('0x4')]())[_0x500e('0x14')](_0x19cd5d)[_0x500e('0x15')](_0x3cf96b=>{const _0x21796d=this[_0x500e('0x28')][_0x500e('0x6')]['createPositionAt'](_0x3cf96b,0x0);return[..._0x1b0978[_0x500e('0x5')](_0x21796d,_0x500e('0x9')),..._0x1b0978[_0x500e('0x5')](_0x21796d,'forward')];})[_0x500e('0x2c')]();return _0x32e23b=[...new Set(_0x32e23b)],_0x32e23b;}[_0x500e('0x8')](_0x3a5ed8){return _0x500e('0xd')+this['editor'][_0x500e('0x26')][_0x500e('0x7')](_0x500e('0x36'))[_0x500e('0xf')](_0x3a5ed8)[_0x500e('0xe')]()+'_LIST_'+_0x3a5ed8[_0x500e('0xe')]()[_0x500e('0x1f')](/-/g,'_');}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/mediaembed
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x59fc=['stop','options','has','downcastDispatcher','afterInit','media','showSuggestionHighlights','elementToElement','editor','mediaEmbed','high','ELEMENT_MEDIA','registerElementLabel','for','locale','attribute:url:media','div','data','plugins','_descriptionFactory','TrackChangesEditing'];(function(_0x118d70,_0x59fccf){const _0x527582=function(_0x32fad3){while(--_0x32fad3){_0x118d70['push'](_0x118d70['shift']());}};_0x527582(++_0x59fccf);}(_0x59fc,0xad));const _0x5275=function(_0x118d70,_0x59fccf){_0x118d70=_0x118d70-0x0;let _0x527582=_0x59fc[_0x118d70];return _0x527582;};import{Plugin as _0x428113}from'ckeditor5/src/core';import{getTranslation as _0x22a103}from'../utils/common-translations';export default class ot extends _0x428113{[_0x5275('0x14')](){const _0x54f347=this[_0x5275('0x3')];if(!_0x54f347['plugins'][_0x5275('0x12')]('MediaEmbedEditing'))return;const _0x1d1191=_0x54f347[_0x5275('0xd')]['get'](_0x5275('0xf')),_0x389ba1=_0x54f347[_0x5275('0x9')];_0x1d1191['enableCommand'](_0x5275('0x4')),_0x1d1191[_0x5275('0xe')][_0x5275('0x7')]('media',_0x277129=>_0x22a103(_0x389ba1,_0x5275('0x6'),_0x277129)),_0x54f347['conversion'][_0x5275('0x8')]('dataDowncast')[_0x5275('0x2')]({'model':_0x5275('0x0'),'view':(_0x5ec55b,{writer:_0x7652ac,options:_0x1b550e})=>{if(_0x1b550e[_0x5275('0x1')])return _0x7652ac['createEmptyElement'](_0x5275('0xb'));},'converterPriority':_0x5275('0x5')}),_0x54f347[_0x5275('0xc')][_0x5275('0x13')]['on'](_0x5275('0xa'),(_0x2380bb,_0x16a08e,_0x31f6b9)=>{_0x31f6b9[_0x5275('0x11')]['showSuggestionHighlights']&&_0x2380bb[_0x5275('0x10')]();},{'priority':_0x5275('0x5')});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/mention
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for mention feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x118e=['has','enableCommand','plugins','afterInit','get','mention'];(function(_0xe6297d,_0x118e2e){const _0x2ee26d=function(_0x4e1b12){while(--_0x4e1b12){_0xe6297d['push'](_0xe6297d['shift']());}};_0x2ee26d(++_0x118e2e);}(_0x118e,0xa0));const _0x2ee2=function(_0xe6297d,_0x118e2e){_0xe6297d=_0xe6297d-0x0;let _0x2ee26d=_0x118e[_0xe6297d];return _0x2ee26d;};import{Plugin as _0x3249b1}from'ckeditor5/src/core';export default class rt extends _0x3249b1{[_0x2ee2('0x5')](){const _0x4b29e1=this['editor'];_0x4b29e1['plugins'][_0x2ee2('0x2')]('MentionEditing')&&_0x4b29e1[_0x2ee2('0x4')][_0x2ee2('0x0')]('TrackChangesEditing')[_0x2ee2('0x3')](_0x2ee2('0x1'));}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/pagebreak
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x3feb=['enableCommand','locale','plugins','PageBreakEditing','registerElementLabel','get','_descriptionFactory','ELEMENT_PAGE_BREAK','pageBreak'];(function(_0x4c67f7,_0x3febb3){const _0x4122b7=function(_0xb431b9){while(--_0xb431b9){_0x4c67f7['push'](_0x4c67f7['shift']());}};_0x4122b7(++_0x3febb3);}(_0x3feb,0x1a5));const _0x4122=function(_0x4c67f7,_0x3febb3){_0x4c67f7=_0x4c67f7-0x0;let _0x4122b7=_0x3feb[_0x4c67f7];return _0x4122b7;};import{Plugin as _0xdf113c}from'ckeditor5/src/core';import{getTranslation as _0xce5483}from'../utils/common-translations';export default class at extends _0xdf113c{['afterInit'](){const _0x28f019=this['editor'];if(!_0x28f019['plugins']['has'](_0x4122('0x5')))return;_0x28f019[_0x4122('0x4')][_0x4122('0x7')]('TrackChangesEditing')[_0x4122('0x2')](_0x4122('0x1'));const _0x445e95=_0x28f019[_0x4122('0x4')]['get']('TrackChangesEditing'),_0x272665=_0x28f019[_0x4122('0x3')];_0x445e95[_0x4122('0x8')][_0x4122('0x6')]('pageBreak',_0x58a077=>_0xce5483(_0x272665,_0x4122('0x0'),_0x58a077));}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/paragraph
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for paragraph feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x4a21=['nodeAfter','isLimit','*Change\x20to:*\x20%0','isTouching','isObject','from','editor','createUIElement','Paragraph','mapper','consume','bindElementToMarker','ELEMENT_PARAGRAPH','markerRange','end','addMarker:suggestion:insertion','registerElementLabel','consumable','getFirstRange','markerName','includes','editing','toViewPosition','*Insert:*\x20%0','afterInit','change','span','insertParagraph','ck-suggestion-marker--active','data','plugins','commandName','getItemLabel','registerDescriptionCallback','enableCommand','highest','showSuggestionHighlights','getSelectedBlocks','ck-suggestion-marker-split','addClass','blockName','selection','isBlock','$text','format','checkChild','model','start','options','filter','get','schema','writer','markBlockFormat','_descriptionFactory','paragraph','TrackChangesEditing'];(function(_0x186c3a,_0x4a211a){const _0x98b28f=function(_0x5e9440){while(--_0x5e9440){_0x186c3a['push'](_0x186c3a['shift']());}};_0x98b28f(++_0x4a211a);}(_0x4a21,0xca));const _0x98b2=function(_0x186c3a,_0x4a211a){_0x186c3a=_0x186c3a-0x0;let _0x98b28f=_0x4a21[_0x186c3a];return _0x98b28f;};import{Plugin as _0x2b63d2}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x569380}from'./utils';import{getTranslation as _0x31abf3}from'../utils/common-translations';export default class ct extends _0x2b63d2{[_0x98b2('0x32')](){const _0x4f5639=this[_0x98b2('0x20')];if(!_0x4f5639[_0x98b2('0x38')]['has'](_0x98b2('0x22')))return;const _0xb60c50=_0x4f5639['locale'],_0x424b09=_0x4f5639[_0x98b2('0x38')][_0x98b2('0x13')](_0x98b2('0x19'));_0x424b09[_0x98b2('0x17')][_0x98b2('0x2a')](_0x98b2('0x18'),_0x28e25a=>_0x31abf3(_0xb60c50,_0x98b2('0x26'),_0x28e25a)),_0x424b09[_0x98b2('0x3')](_0x98b2('0x18'),(_0x22de89,_0x226303={})=>{const _0x1091e2=_0x4f5639[_0x98b2('0xf')]['document'],_0x3d8644=_0x226303[_0x98b2('0xa')]||_0x1091e2[_0x98b2('0xa')],_0x489916=Array[_0x98b2('0x1f')](_0x3d8644[_0x98b2('0x6')]())[_0x98b2('0x12')](_0x5aa37c=>function(_0xc22f21,_0x21b192){return _0x21b192[_0x98b2('0xe')](_0xc22f21['parent'],_0x98b2('0x18'))&&!_0x21b192[_0x98b2('0x1e')](_0xc22f21)&&_0x98b2('0x18')!=_0xc22f21['name'];}(_0x5aa37c,this['editor'][_0x98b2('0xf')]['schema']));_0x4f5639[_0x98b2('0xf')][_0x98b2('0x33')](()=>{for(const _0x58aac5 of _0x489916)_0x424b09[_0x98b2('0x16')](_0x58aac5,{'commandName':_0x98b2('0x18'),'commandParams':[],'formatGroupId':_0x98b2('0x9')},_0x569380(_0x58aac5));});}),_0x424b09[_0x98b2('0x17')][_0x98b2('0x2')](_0x452f73=>{const {data:_0x4d1508}=_0x452f73;if(_0x4d1508&&_0x98b2('0x18')==_0x4d1508[_0x98b2('0x0')])return{'type':_0x98b2('0xd'),'content':_0x31abf3(_0xb60c50,_0x98b2('0x1c'),_0x31abf3(_0xb60c50,_0x98b2('0x26')))};}),_0x424b09[_0x98b2('0x3')](_0x98b2('0x35')),_0x4f5639[_0x98b2('0x2f')]['downcastDispatcher']['on'](_0x98b2('0x29'),ar(_0x4f5639),{'priority':'highest'}),_0x4f5639[_0x98b2('0x37')]['downcastDispatcher']['on'](_0x98b2('0x29'),(_0x34a893,_0x1ad410,_0x45f553)=>{_0x45f553[_0x98b2('0x11')][_0x98b2('0x5')]&&ar(_0x4f5639,{'showActiveMarker':!0x1})(_0x34a893,_0x1ad410,_0x45f553);},{'priority':_0x98b2('0x4')});const _0x2779d6=_0x424b09[_0x98b2('0x17')];_0x2779d6[_0x98b2('0x2')](_0x2c8fa6=>{if('insertion'!==_0x2c8fa6['type'])return;const {start:_0x3ce049,end:_0xe18ff6}=_0x2c8fa6[_0x98b2('0x2c')]();if(!_0x3ce049['isTouching'](_0xe18ff6)||!_0x3ce049[_0x98b2('0x1a')])return;const _0xb05f7b=_0x4f5639[_0x98b2('0xf')][_0x98b2('0x14')],_0x183b5c=_0x3ce049[_0x98b2('0x1a')];return _0xb05f7b[_0x98b2('0xb')](_0x183b5c)&&!_0xb05f7b[_0x98b2('0x1b')](_0x183b5c)&&_0xb05f7b['checkChild'](_0x183b5c,_0x98b2('0xc'))?{'type':'insertion','content':_0x31abf3(_0xb60c50,_0x98b2('0x31'),_0x2779d6[_0x98b2('0x1')](_0x183b5c,0x1))}:void 0x0;});}}function ar(_0x18d60d,{showActiveMarker:_0x3c5712=!0x0}={}){return(_0x3e86dc,_0x34d6b6,_0x471f62)=>{const _0x2df365=_0x18d60d['plugins'][_0x98b2('0x13')](_0x98b2('0x19')),_0x36dbc2=_0x34d6b6[_0x98b2('0x27')][_0x98b2('0x10')],_0x14a5f4=_0x34d6b6[_0x98b2('0x27')][_0x98b2('0x28')],_0x237171=_0x18d60d[_0x98b2('0xf')]['schema'];if(!_0x36dbc2[_0x98b2('0x1d')](_0x14a5f4)||!_0x36dbc2['nodeAfter'])return;const _0x37f906=_0x36dbc2[_0x98b2('0x1a')];if(_0x237171[_0x98b2('0xb')](_0x37f906)&&!_0x237171[_0x98b2('0x1b')](_0x37f906)&&_0x237171[_0x98b2('0xe')](_0x37f906,_0x98b2('0xc'))){if(!_0x471f62[_0x98b2('0x2b')][_0x98b2('0x24')](_0x34d6b6['markerRange'],_0x3e86dc['name']))return;const _0x5d9972=_0x471f62[_0x98b2('0x15')][_0x98b2('0x21')](_0x98b2('0x34'),{'class':_0x98b2('0x7')}),_0xf88720=_0x471f62['mapper'][_0x98b2('0x30')](_0x14a5f4);_0x3c5712&&_0x2df365['activeMarkers'][_0x98b2('0x2e')](_0x34d6b6[_0x98b2('0x2d')])&&_0x471f62[_0x98b2('0x15')][_0x98b2('0x8')](_0x98b2('0x36'),_0x5d9972),_0x471f62[_0x98b2('0x15')]['insert'](_0xf88720,_0x5d9972),_0x471f62[_0x98b2('0x23')][_0x98b2('0x25')](_0x5d9972,_0x34d6b6[_0x98b2('0x2d')]);}};}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/removeformat
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for remove format feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x58cb=['RemoveFormatEditing','has','getAttributeProperties','_descriptionFactory','schema','commandName','removeFormat','model','format','change','isFormatting','get','from','selection','getRanges','getAttributes','isCollapsed','plugins','editor'];(function(_0x46dc97,_0x58cbbe){const _0x3cf9ad=function(_0x8350f8){while(--_0x8350f8){_0x46dc97['push'](_0x46dc97['shift']());}};_0x3cf9ad(++_0x58cbbe);}(_0x58cb,0x18d));const _0x3cf9=function(_0x46dc97,_0x58cbbe){_0x46dc97=_0x46dc97-0x0;let _0x3cf9ad=_0x58cb[_0x46dc97];return _0x3cf9ad;};import{Plugin as _0x234998}from'ckeditor5/src/core';import{getTranslation as _0x36e952}from'../utils/common-translations';export default class ht extends _0x234998{['afterInit'](){const _0x500441=this[_0x3cf9('0x1')];if(!_0x500441[_0x3cf9('0x0')][_0x3cf9('0x3')](_0x3cf9('0x2')))return;const _0x5cdd32=_0x500441[_0x3cf9('0x0')][_0x3cf9('0xd')]('TrackChangesEditing');_0x5cdd32['enableCommand'](_0x3cf9('0x8'),_0x2f5486=>{const _0x3ff11b=_0x500441['model']['document'][_0x3cf9('0xf')];_0x3ff11b[_0x3cf9('0x12')]?_0x2f5486():_0x500441[_0x3cf9('0x9')][_0x3cf9('0xb')](()=>{const _0x5cb4ca=Array[_0x3cf9('0xe')](_0x3ff11b[_0x3cf9('0x10')]());for(const _0x15fdf4 of _0x5cb4ca)for(const _0x542269 of _0x15fdf4['getItems']())eo(_0x542269,_0x500441[_0x3cf9('0x9')][_0x3cf9('0x6')])&&_0x5cdd32['markInlineFormat'](_0x500441[_0x3cf9('0x9')]['createRangeOn'](_0x542269),{'commandName':'removeFormat','commandParams':[]});});}),_0x5cdd32[_0x3cf9('0x5')]['registerDescriptionCallback'](_0x3e5f8e=>{const {data:_0x8c90a3}=_0x3e5f8e;if(_0x8c90a3&&_0x3cf9('0x8')==_0x8c90a3[_0x3cf9('0x7')])return{'type':_0x3cf9('0xa'),'content':_0x36e952(_0x500441['locale'],'*Remove\x20all\x20formatting*')};});}}function eo(_0x55a6cd,_0x4c4a77){for(const [_0x444ea6]of _0x55a6cd[_0x3cf9('0x11')]()){const _0x30ba83=_0x4c4a77[_0x3cf9('0x4')](_0x444ea6);if(_0x30ba83&&_0x30ba83[_0x3cf9('0xc')])return!0x0;}return!0x1;}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/mention
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x7785=['goToNextRestrictedEditingException','RestrictedEditingModeEditing','plugins','discardAllSuggestions','trackChanges','discardSelectedSuggestions','discardSuggestion','acceptSuggestion','goToPreviousRestrictedEditingException','acceptAllSuggestions','TrackChangesEditing','enableCommand','get','has'];(function(_0xb6218d,_0x7785bc){const _0x4dcca4=function(_0x4824a3){while(--_0x4824a3){_0xb6218d['push'](_0xb6218d['shift']());}};_0x4dcca4(++_0x7785bc);}(_0x7785,0x93));const _0x4dcc=function(_0xb6218d,_0x7785bc){_0xb6218d=_0xb6218d-0x0;let _0x4dcca4=_0x7785[_0xb6218d];return _0x4dcca4;};import{Plugin as _0x129a43}from'ckeditor5/src/core';export default class ut extends _0x129a43{['afterInit'](){const _0x329eb4=this['editor'];if(!_0x329eb4[_0x4dcc('0x9')][_0x4dcc('0x6')](_0x4dcc('0x8')))return;const _0x51594b=_0x329eb4['plugins'][_0x4dcc('0x5')](_0x4dcc('0x3'));_0x51594b[_0x4dcc('0x4')](_0x4dcc('0x1')),_0x51594b['enableCommand'](_0x4dcc('0x7'));const _0x10f99c=_0x329eb4[_0x4dcc('0x9')][_0x4dcc('0x5')](_0x4dcc('0x8'));_0x10f99c[_0x4dcc('0x4')](_0x4dcc('0xb')),_0x10f99c[_0x4dcc('0x4')](_0x4dcc('0x0')),_0x10f99c['enableCommand'](_0x4dcc('0xd')),_0x10f99c['enableCommand'](_0x4dcc('0x2')),_0x10f99c['enableCommand'](_0x4dcc('0xa')),_0x10f99c[_0x4dcc('0x4')]('acceptSelectedSuggestions'),_0x10f99c[_0x4dcc('0x4')](_0x4dcc('0xc'));}}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/shiftentercommand
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import { ShiftEnter } from 'ckeditor5/src/enter
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
8
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0xa9de=['downcastDispatcher','ck-suggestion-marker--active','includes','enableCommand','data','createUIElement','ELEMENT_LINE_BREAK','requires','TrackChangesEditing','span','addMarker:suggestion:insertion','locale','editing','high','editor','name','plugins','markerName','ck-suggestion-marker-','showSuggestionHighlights','addMarker:suggestion:deletion','split','options','softBreak','mapper','_descriptionFactory','bindElementToMarker','merge','get','addMarker:suggestion','getItems','writer','consumable'];(function(_0x21438c,_0xa9de12){const _0x6cb30=function(_0x48aadc){while(--_0x48aadc){_0x21438c['push'](_0x21438c['shift']());}};_0x6cb30(++_0xa9de12);}(_0xa9de,0xef));const _0x6cb3=function(_0x21438c,_0xa9de12){_0x21438c=_0x21438c-0x0;let _0x6cb30=_0xa9de[_0x21438c];return _0x6cb30;};import{Plugin as _0x2edf58}from'ckeditor5/src/core';import{ShiftEnter as _0x295317}from'ckeditor5/src/enter';import{getTranslation as _0x10a4d8}from'../utils/common-translations';export default class ft extends _0x2edf58{static get[_0x6cb3('0x20')](){return[_0x295317];}['init'](){const _0x3eef19=this[_0x6cb3('0x6')],_0x182c5f=_0x3eef19[_0x6cb3('0x8')]['get'](_0x6cb3('0x0'));_0x182c5f[_0x6cb3('0x1c')]('shiftEnter'),_0x3eef19[_0x6cb3('0x4')][_0x6cb3('0x19')]['on'](_0x6cb3('0x2'),re(_0x3eef19),{'priority':_0x6cb3('0x5')}),_0x3eef19['editing']['downcastDispatcher']['on'](_0x6cb3('0xc'),re(_0x3eef19),{'priority':_0x6cb3('0x5')}),_0x3eef19[_0x6cb3('0x1d')][_0x6cb3('0x19')]['on'](_0x6cb3('0x15'),(_0x58a594,_0x39c983,_0x41ebb4)=>{_0x41ebb4[_0x6cb3('0xe')][_0x6cb3('0xb')]&&re(_0x3eef19,{'showActiveMarker':!0x1})(_0x58a594,_0x39c983,_0x41ebb4);}),_0x182c5f[_0x6cb3('0x11')]['registerElementLabel'](_0x6cb3('0xf'),_0xb87719=>_0x10a4d8(_0x3eef19[_0x6cb3('0x3')],_0x6cb3('0x1f'),_0xb87719));}}function re(_0x233732,{showActiveMarker:_0x21dbbf=!0x0}={}){return(_0x49ab9d,_0x1fbefd,_0x1f0204)=>{const _0x2e147f=_0x233732[_0x6cb3('0x8')][_0x6cb3('0x14')]('TrackChangesEditing');if(!_0x1f0204[_0x6cb3('0x18')]['test'](_0x1fbefd['markerRange'],_0x49ab9d[_0x6cb3('0x7')]))return;const _0x32e7ff=_0x233732['model'];for(const _0x1da7bd of _0x1fbefd['markerRange'][_0x6cb3('0x16')]()){if(!_0x1da7bd['is']('element',_0x6cb3('0xf')))continue;const _0x213570='deletion'==_0x1fbefd['markerName']['split'](':')[0x1]?_0x6cb3('0x13'):_0x6cb3('0xd'),_0x234f48=_0x1f0204[_0x6cb3('0x17')][_0x6cb3('0x1e')](_0x6cb3('0x1'),{'class':_0x6cb3('0xa')+_0x213570}),_0x2197f3=_0x1f0204[_0x6cb3('0x10')]['toViewPosition'](_0x32e7ff['createPositionBefore'](_0x1da7bd));_0x21dbbf&&_0x2e147f['activeMarkers'][_0x6cb3('0x1b')](_0x1fbefd[_0x6cb3('0x9')])&&_0x1f0204[_0x6cb3('0x17')]['addClass'](_0x6cb3('0x1a'),_0x234f48),_0x1f0204['writer']['insert'](_0x2197f3,_0x234f48),_0x1f0204[_0x6cb3('0x10')][_0x6cb3('0x12')](_0x234f48,_0x1fbefd[_0x6cb3('0x9')]);}};}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/mention
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-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 _0x40df=['model','_descriptionFactory','commands','value','isCollapsed','format','enableCommand','restrictedEditingException','plugins','commandName','document','FORMAT_RESTRICTED_DISABLED','get','editor','selection','forceValue','has','TrackChangesEditing'];(function(_0x1107e2,_0x40df9b){const _0x486e86=function(_0x41976c){while(--_0x41976c){_0x1107e2['push'](_0x1107e2['shift']());}};_0x486e86(++_0x40df9b);}(_0x40df,0xab));const _0x486e=function(_0x1107e2,_0x40df9b){_0x1107e2=_0x1107e2-0x0;let _0x486e86=_0x40df[_0x1107e2];return _0x486e86;};import{Plugin as _0x5c3156}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x35ba74}from'./utils';import{getTranslation as _0x577dd8}from'../utils/common-translations';export default class lt extends _0x5c3156{['afterInit'](){const _0xf5bce7=this[_0x486e('0x4')],_0x135ba0=_0xf5bce7[_0x486e('0x9')],_0x22b679=_0xf5bce7['locale'];if(!_0xf5bce7[_0x486e('0x11')][_0x486e('0x7')]('StandardEditingModeEditing'))return;const _0x59d714=_0xf5bce7[_0x486e('0x11')]['get'](_0x486e('0x8')),_0x40b004=_0x486e('0x10'),_0x28afa6=_0xf5bce7[_0x486e('0xb')][_0x486e('0x3')](_0x40b004);_0x59d714[_0x486e('0xf')](_0x40b004,(_0x3dda67,_0x1bfc1c={})=>{const _0xc8680c=_0x135ba0[_0x486e('0x1')][_0x486e('0x5')];if(_0xc8680c[_0x486e('0xd')])return void _0x3dda67(_0x1bfc1c);const _0x22b2bc=void 0x0!==_0x1bfc1c[_0x486e('0x6')]?_0x1bfc1c['forceValue']:!_0x28afa6[_0x486e('0xc')];_0x135ba0['change'](()=>{const _0x3f452f=Array['from'](_0xc8680c['getRanges']());for(const _0x3769d3 of _0x3f452f){const _0x3fdc75=_0x22b2bc?[_0x3769d3]:_0x35ba74(_0x40b004,_0x3769d3,_0x135ba0);for(const _0x97b48e of _0x3fdc75)_0x59d714['markInlineFormat'](_0x97b48e,{'commandName':_0x40b004,'commandParams':[{'forceValue':_0x22b2bc}]});}});}),_0x59d714[_0x486e('0xa')]['registerDescriptionCallback'](_0x599ae6=>{const {data:_0x3896ed}=_0x599ae6;if(_0x3896ed&&_0x3896ed[_0x486e('0x0')]==_0x40b004)return _0x3896ed['commandParams'][0x0][_0x486e('0x6')]?{'type':_0x486e('0xe'),'content':_0x577dd8(_0x22b679,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x577dd8(_0x22b679,_0x486e('0x2'))};});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/style
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for styles dropdown feature.
|
|
7
11
|
* @todo Remove "any" casts after plugin has been rewritten to TS.
|