@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x2abc=['todo','markBlockFormat','*Change\x20to:*\x20%0','slice','end','from','has','enableCommand','listIndent','locale','model','parent','*Outdent:*\x20%0','document','checkChild','commandParams','findIndex','previousSibling','*Check\x20item*','ELEMENT_TODO_LIST','isObject','value','commandName','registerElementLabel','indentList','push','_descriptionFactory','selection','ListEditing','outdentList','bulleted','before','replace','element','*Uncheck\x20item*','name','plugins','change','get','getSelectedBlocks','registerDescriptionCallback','format','nextSibling','schema','ELEMENT_NUMBERED_LIST','ELEMENT_BULLETED_LIST','todoList','listItem','numberedList','todoListChecked','filter','bulletedList','commands','List','checkTodoList','_selectedElements','forceValue','ELEMENT_LIST_ITEM','*Indent:*\x20%0','TodoListEditing','getAttribute'];(function(_0x3e78b3,_0x2abceb){const _0x52d3ca=function(_0x27cf58){while(--_0x27cf58){_0x3e78b3['push'](_0x3e78b3['shift']());}};_0x52d3ca(++_0x2abceb);}(_0x2abc,0x16a));const _0x52d3=function(_0x3e78b3,_0x2abceb){_0x3e78b3=_0x3e78b3-0x0;let _0x52d3ca=_0x2abc[_0x3e78b3];return _0x52d3ca;};import{Plugin as _0x17f141}from'ckeditor5/src/core';import{getTranslation as _0x1f8dfc}from'../utils/common-translations';export default class st extends _0x17f141{['afterInit'](){const _0x294292=this['editor'],_0x1fd44e=_0x294292[_0x52d3('0xd')];if(!_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x20')))return;const _0x231345=_0x294292[_0x52d3('0x28')][_0x52d3('0x2a')]('TrackChangesEditing'),_0x29ac9a=_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x2'));function _0x337d2e(_0x38320e){return()=>{const _0x249f43=_0x294292['model'][_0x52d3('0x11')][_0x52d3('0x1f')],_0x44006e=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x38320e);if(_0x44006e[_0x52d3('0x19')])return void _0x294292['execute']('paragraph',{});const _0x3b49c6=_0x38320e[_0x52d3('0x7')](0x0,-0x4),_0x300e08=function(_0x147cb4,_0x4ea0f2,_0x2238a8){let _0x1b3311=Array[_0x52d3('0x9')](_0x147cb4)[_0x52d3('0x36')](_0x276292=>function(_0x3a86c1,_0x6a30df){return _0x6a30df[_0x52d3('0x12')](_0x3a86c1[_0x52d3('0xf')],_0x52d3('0x33'))&&!_0x6a30df[_0x52d3('0x18')](_0x3a86c1);}(_0x276292,_0x2238a8));_0x1b3311=_0x1b3311['filter'](_0x510ef2=>!_0x510ef2['is'](_0x52d3('0x25'),_0x52d3('0x33'))||_0x510ef2['getAttribute']('listType')!=_0x4ea0f2);const _0x3f5415=new Set();for(const _0x5812c9 of _0x1b3311)_0x5812c9['is']('element',_0x52d3('0x33'))?_0x3f5415['add'](ne(_0x5812c9)):_0x3f5415['add'](_0x5812c9);return Array[_0x52d3('0x9')](_0x3f5415);}(_0x249f43[_0x52d3('0x2b')](),_0x3b49c6,_0x294292[_0x52d3('0xe')][_0x52d3('0x2f')]);_0x294292['model']['change'](()=>{for(const _0x123e07 of _0x300e08)_0x231345['markBlockFormat'](_0x123e07,{'commandName':_0x38320e,'commandParams':[{'forceValue':!_0x44006e[_0x52d3('0x19')]}],'formatGroupId':'blockName'},oe(_0x123e07));});};}function _0x168051(_0x5888dd){return()=>{const _0x5050da=function(_0x18f5ee){let _0x13fc24=Array[_0x52d3('0x9')](_0x18f5ee);const _0x15d521=_0x13fc24[_0x52d3('0x14')](_0x32e9ae=>_0x52d3('0x33')!=_0x32e9ae[_0x52d3('0x27')]);return _0x15d521>-0x1&&(_0x13fc24=_0x13fc24[_0x52d3('0x7')](0x0,_0x15d521)),_0x13fc24;}(_0x294292[_0x52d3('0xe')][_0x52d3('0x11')][_0x52d3('0x1f')][_0x52d3('0x2b')]()),_0x288045=_0x294292[_0x52d3('0xe')]['createRange'](_0x294292[_0x52d3('0xe')]['createPositionAt'](_0x5050da[0x0],_0x52d3('0x23')),_0x294292['model']['createPositionAt'](_0x5050da[_0x5050da['length']-0x1],_0x52d3('0x8')));_0x294292[_0x52d3('0xe')][_0x52d3('0x29')](()=>{_0x231345[_0x52d3('0x5')](_0x288045,{'commandName':_0x5888dd,'commandParams':[],'formatGroupId':_0x52d3('0xc')},function(_0x5f1b49){const _0x20a128=new Set();for(const _0x487cf0 of _0x5f1b49){let _0x5a9d6f=_0x487cf0[_0x52d3('0x2e')];for(;_0x5a9d6f&&_0x5a9d6f[_0x52d3('0x3')](_0x52d3('0xc'))>_0x487cf0[_0x52d3('0x3')](_0x52d3('0xc'));)_0x20a128['add'](_0x5a9d6f),_0x5a9d6f=_0x5a9d6f[_0x52d3('0x2e')];}return Array['from'](_0x20a128);}(_0x5050da));});};}_0x231345['enableCommand'](_0x52d3('0x34'),_0x337d2e('numberedList')),_0x231345[_0x52d3('0xb')](_0x52d3('0x37'),_0x337d2e('bulletedList')),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('todoList',_0x337d2e(_0x52d3('0x32'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x1c'),_0x168051(_0x52d3('0x1c'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x21'),_0x168051(_0x52d3('0x21'))),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('checkTodoList',()=>{const _0x168cf5=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x52d3('0x3a')),_0x4c1393=Array[_0x52d3('0x9')](_0x168cf5[_0x52d3('0x3b')]);_0x4c1393[_0x52d3('0x36')](_0x427f94=>_0x427f94['getAttribute'](_0x52d3('0x35'))!=_0x168cf5[_0x52d3('0x19')]),_0x294292['model'][_0x52d3('0x29')](()=>{for(const _0x6a9e4c of _0x4c1393)_0x231345[_0x52d3('0x5')](_0x6a9e4c,{'commandName':_0x52d3('0x3a'),'commandParams':[{'forceValue':!_0x168cf5[_0x52d3('0x19')]}]});});}),_0x231345[_0x52d3('0x1e')][_0x52d3('0x1b')]('listItem',_0x159359=>_0x1f8dfc(_0x1fd44e,_0x52d3('0x0'),_0x159359)),_0x231345[_0x52d3('0x1e')][_0x52d3('0x2c')](_0x80c2b1=>{const {data:_0x8e9ab1}=_0x80c2b1;if(_0x8e9ab1){if(_0x52d3('0x34')==_0x8e9ab1['commandName']||_0x52d3('0x37')==_0x8e9ab1[_0x52d3('0x1a')]||_0x52d3('0x32')==_0x8e9ab1[_0x52d3('0x1a')])switch(_0x8e9ab1[_0x52d3('0x1a')][_0x52d3('0x24')](_0x52d3('0x39'),'')){case _0x52d3('0x22'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x31')));case'numbered':return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x30')));case _0x52d3('0x4'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x17')));}if('indentList'==_0x8e9ab1['commandName'])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x1'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if(_0x52d3('0x21')==_0x8e9ab1[_0x52d3('0x1a')])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x10'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if('checkTodoList'==_0x8e9ab1[_0x52d3('0x1a')])return _0x8e9ab1[_0x52d3('0x13')][0x0][_0x52d3('0x3c')]?{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x16'))}:{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x26'))};}function _0x49bf12(_0x58aa9b){return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x6'),_0x58aa9b)};}});}}function ne(_0x1d925a){const _0x46ea00=_0x1d925a['getAttribute'](_0x52d3('0xc'));if(0x0==_0x46ea00)return _0x1d925a;let _0x12af5e=_0x1d925a;for(;_0x1d925a[_0x52d3('0x15')]&&_0x1d925a[_0x52d3('0x15')]['is']('element','listItem');){const _0x5e2398=_0x1d925a[_0x52d3('0x15')][_0x52d3('0x3')]('listIndent');if(_0x5e2398==_0x46ea00)_0x12af5e=_0x1d925a[_0x52d3('0x15')];else{if(_0x5e2398<_0x46ea00)break;}_0x1d925a=_0x1d925a['previousSibling'];}return _0x12af5e;}function oe(_0x403374){const _0x581ee=[];if(_0x403374['is'](_0x52d3('0x25'),_0x52d3('0x33'))&&_0x403374[_0x52d3('0x3')](_0x52d3('0xc'))>0x0){let _0x519c42=_0x403374['nextSibling'];for(;_0x519c42&&_0x52d3('0x33')==_0x519c42[_0x52d3('0x27')]&&_0x519c42[_0x52d3('0x3')](_0x52d3('0xc'))==_0x403374['getAttribute'](_0x52d3('0xc'));)_0x581ee[_0x52d3('0x1d')](_0x519c42),_0x519c42=_0x519c42['nextSibling'];}return _0x581ee;}
|
|
@@ -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 _0x5097=['_getTranslationKeyForListStyle','backward','model','*Change\x20to:*\x20%0','registerDescriptionCallback','selection','getLastPosition','getAttribute','createPositionAt','plugins','styles','getFirstPosition','handleDescriptions','toUpperCase','element','numbered','getListTypeFromListStyleType','listReversed','parent','commandName','before','getSelectedBlocks','get','locale','map','has','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','filter','listItem','change','format','document','markMultiRangeBlockFormat','forward','listStart','getSiblingNodes','*Format:*\x20set\x20start\x20index\x20to\x20%0','unshift','listStyle','TrackChangesEditing','type','flat','startIndex','bind','config','reversed','handleListReversedCommand','listType','commandParams','createRange','length','_getSuggestionBlocksForListStyle','editor','enableCommand','_getSuggestionBlocks','handleListStartCommand','ListUtils','handleListStyleCommand'];(function(_0x4b1440,_0x509744){const _0x2c8cfe=function(_0x1717fd){while(--_0x1717fd){_0x4b1440['push'](_0x4b1440['shift']());}};_0x2c8cfe(++_0x509744);}(_0x5097,0x19f));const _0x2c8c=function(_0x4b1440,_0x509744){_0x4b1440=_0x4b1440-0x0;let _0x2c8cfe=_0x5097[_0x4b1440];return _0x2c8cfe;};import{Plugin as _0x4b0e2c}from'ckeditor5/src/core';import{getTranslation as _0x2bd9eb}from'../utils/common-translations';export default class nt extends _0x4b0e2c{['afterInit'](){if(!this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x17')]('ListPropertiesEditing'))return;const _0x4b2530=this[_0x2c8c('0x33')][_0x2c8c('0x2b')][_0x2c8c('0x14')](_0x2c8c('0x18')),_0x3a99e2=this['editor']['plugins'][_0x2c8c('0x14')](_0x2c8c('0x26'));_0x4b2530[_0x2c8c('0x8')]&&_0x3a99e2[_0x2c8c('0x34')]('listStyle',this[_0x2c8c('0x38')][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x2c')]&&_0x3a99e2[_0x2c8c('0x34')](_0x2c8c('0xf'),this['handleListReversedCommand'][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x29')]&&_0x3a99e2['enableCommand'](_0x2c8c('0x21'),this[_0x2c8c('0x36')][_0x2c8c('0x2a')](this)),_0x3a99e2['_descriptionFactory'][_0x2c8c('0x2')](this[_0x2c8c('0xa')]['bind'](this));}[_0x2c8c('0x38')](_0x986a4d,_0x49e20d={}){const _0x27bf0c=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x55123e=this[_0x2c8c('0x32')]();this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x27bf0c[_0x2c8c('0x1f')](_0x55123e,{'commandName':_0x2c8c('0x25'),'commandParams':[{'type':_0x49e20d[_0x2c8c('0x27')]}],'formatGroupId':'listStyle'});});}[_0x2c8c('0x2d')](_0x55ad59,_0x5bdf53={}){const _0x5ea817=this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x28ea88=this[_0x2c8c('0x35')](_0x545f90=>_0x545f90['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x545f90[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x28ea88[_0x2c8c('0x31')]<0x1)return;const _0x50031b=_0x28ea88[_0x2c8c('0x16')](_0x27c15c=>this[_0x2c8c('0x33')]['model'][_0x2c8c('0x30')](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['createPositionAt'](_0x27c15c,_0x2c8c('0x12')),this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x27c15c,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x5ea817[_0x2c8c('0x1f')](_0x50031b,{'commandName':_0x2c8c('0xf'),'commandParams':[{'reversed':_0x5bdf53[_0x2c8c('0x2c')]}],'formatGroupId':'listReversed'});});}[_0x2c8c('0x36')](_0x5aef27,_0xeb1ef3={}){const _0xede558=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x1ad6d7=this[_0x2c8c('0x35')](_0x4c76fe=>_0x4c76fe['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x4c76fe[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x1ad6d7['length']<0x1)return;const _0x5629d5=_0x1ad6d7[_0x2c8c('0x16')](_0x66d4d4=>this['editor'][_0x2c8c('0x0')][_0x2c8c('0x30')](this['editor']['model'][_0x2c8c('0x6')](_0x66d4d4,_0x2c8c('0x12')),this['editor'][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x66d4d4,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0xede558['markMultiRangeBlockFormat'](_0x5629d5,{'commandName':_0x2c8c('0x21'),'commandParams':[{'startIndex':_0xeb1ef3['startIndex']}],'formatGroupId':_0x2c8c('0x21')});});}[_0x2c8c('0xa')](_0x459ac9){const _0x1e1b6d=this[_0x2c8c('0x33')][_0x2c8c('0x15')],{data:_0x4e0e93}=_0x459ac9;if(!_0x4e0e93)return;let _0x2e7f2e,_0x4b3c0b;switch(_0x4e0e93[_0x2c8c('0x11')]){case'listStyle':_0x2e7f2e=_0x2c8c('0x1'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x2bd9eb(_0x1e1b6d,this[_0x2c8c('0x39')](_0x4e0e93['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e7f2e=_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x2c')]?_0x2c8c('0x19'):'*Format:*\x20set\x20order\x20to\x20regular',_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e)};break;case _0x2c8c('0x21'):_0x2e7f2e=_0x2c8c('0x23'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x29')])};}return _0x4b3c0b;}['_getSuggestionBlocksForListStyle'](){var _0xdec752,_0x27b868,_0x409f60,_0x10b6c5;const _0x5ace8a=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')](_0x2c8c('0x37'));let _0x268f89=Array['from'](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x13')]());return(null===(_0xdec752=_0x268f89[0x0])||void 0x0===_0xdec752?void 0x0:_0xdec752['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89[_0x2c8c('0x24')](..._0x5ace8a[_0x2c8c('0x22')](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')](),_0x2c8c('0x3a'))),(null===(_0x27b868=_0x268f89[_0x268f89[_0x2c8c('0x31')]-0x1])||void 0x0===_0x27b868?void 0x0:_0x27b868['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89['push'](..._0x5ace8a[_0x2c8c('0x22')](this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x4')](),_0x2c8c('0x20'))),_0x268f89=[...new Set(_0x268f89)],(null===(_0x10b6c5=null===(_0x409f60=this[_0x2c8c('0x33')]['model'][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')]())||void 0x0===_0x409f60?void 0x0:_0x409f60[_0x2c8c('0x10')])||void 0x0===_0x10b6c5?void 0x0:_0x10b6c5['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&(_0x268f89=_0x268f89[_0x2c8c('0x1a')](_0x561ebb=>_0x561ebb['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))),_0x268f89;}[_0x2c8c('0x35')](_0x3608d7){const _0x5e2956=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')]('ListUtils');let _0x256d88=Array['from'](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['document']['selection']['getSelectedBlocks']())[_0x2c8c('0x1a')](_0x3608d7)['map'](_0x3da44d=>{const _0x2d7913=this['editor'][_0x2c8c('0x0')]['createPositionAt'](_0x3da44d,0x0);return[..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x3a')),..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x20'))];})[_0x2c8c('0x28')]();return _0x256d88=[...new Set(_0x256d88)],_0x256d88;}[_0x2c8c('0x39')](_0x26ec56){return'ELEMENT_'+this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x37'))[_0x2c8c('0xe')](_0x26ec56)[_0x2c8c('0xb')]()+'_LIST_'+_0x26ec56[_0x2c8c('0xb')]()['replace'](/-/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 _0x1f61=['attribute:url:media','data','_descriptionFactory','locale','showSuggestionHighlights','high','plugins','registerElementLabel','options','get','mediaEmbed','MediaEmbedEditing','TrackChangesEditing','conversion','createEmptyElement','afterInit','media','dataDowncast','downcastDispatcher'];(function(_0x15f937,_0x1f6192){const _0xdb33e=function(_0x2e620c){while(--_0x2e620c){_0x15f937['push'](_0x15f937['shift']());}};_0xdb33e(++_0x1f6192);}(_0x1f61,0xc0));const _0xdb33=function(_0x15f937,_0x1f6192){_0x15f937=_0x15f937-0x0;let _0xdb33e=_0x1f61[_0x15f937];return _0xdb33e;};import{Plugin as _0x33acee}from'ckeditor5/src/core';import{getTranslation as _0x55d527}from'../utils/common-translations';export default class ot extends _0x33acee{[_0xdb33('0xd')](){const _0x337793=this['editor'];if(!_0x337793[_0xdb33('0x4')]['has'](_0xdb33('0x9')))return;const _0x4e03f5=_0x337793[_0xdb33('0x4')][_0xdb33('0x7')](_0xdb33('0xa')),_0x4b9b1c=_0x337793[_0xdb33('0x1')];_0x4e03f5['enableCommand'](_0xdb33('0x8')),_0x4e03f5[_0xdb33('0x0')][_0xdb33('0x5')](_0xdb33('0xe'),_0xe1e4cd=>_0x55d527(_0x4b9b1c,'ELEMENT_MEDIA',_0xe1e4cd)),_0x337793[_0xdb33('0xb')]['for'](_0xdb33('0xf'))['elementToElement']({'model':'media','view':(_0x28bc7a,{writer:_0x297ce3,options:_0x237438})=>{if(_0x237438[_0xdb33('0x2')])return _0x297ce3[_0xdb33('0xc')]('div');},'converterPriority':_0xdb33('0x3')}),_0x337793[_0xdb33('0x12')][_0xdb33('0x10')]['on'](_0xdb33('0x11'),(_0x54170c,_0x2e88cd,_0x2addcd)=>{_0x2addcd[_0xdb33('0x6')][_0xdb33('0x2')]&&_0x54170c['stop']();},{'priority':_0xdb33('0x3')});}}
|
|
@@ -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 _0x5cee=['get','has','enableCommand','MentionEditing','plugins','afterInit','TrackChangesEditing'];(function(_0x1616ef,_0x5ceeb3){const _0x3a791d=function(_0x11e24e){while(--_0x11e24e){_0x1616ef['push'](_0x1616ef['shift']());}};_0x3a791d(++_0x5ceeb3);}(_0x5cee,0xc0));const _0x3a79=function(_0x1616ef,_0x5ceeb3){_0x1616ef=_0x1616ef-0x0;let _0x3a791d=_0x5cee[_0x1616ef];return _0x3a791d;};import{Plugin as _0x2bdb33}from'ckeditor5/src/core';export default class rt extends _0x2bdb33{[_0x3a79('0x2')](){const _0x7cefb2=this['editor'];_0x7cefb2['plugins'][_0x3a79('0x5')](_0x3a79('0x0'))&&_0x7cefb2[_0x3a79('0x1')][_0x3a79('0x4')](_0x3a79('0x3'))[_0x3a79('0x6')]('mention');}}
|
|
@@ -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 _0x48c2=['pageBreak','locale','_descriptionFactory','plugins','afterInit','ELEMENT_PAGE_BREAK','get','enableCommand','TrackChangesEditing','has'];(function(_0x952592,_0x48c2f5){const _0x200458=function(_0x3248f5){while(--_0x3248f5){_0x952592['push'](_0x952592['shift']());}};_0x200458(++_0x48c2f5);}(_0x48c2,0x8b));const _0x2004=function(_0x952592,_0x48c2f5){_0x952592=_0x952592-0x0;let _0x200458=_0x48c2[_0x952592];return _0x200458;};import{Plugin as _0x3996d9}from'ckeditor5/src/core';import{getTranslation as _0x5cf1e7}from'../utils/common-translations';export default class at extends _0x3996d9{[_0x2004('0x5')](){const _0x4940c2=this['editor'];if(!_0x4940c2[_0x2004('0x4')][_0x2004('0x0')]('PageBreakEditing'))return;_0x4940c2['plugins'][_0x2004('0x7')]('TrackChangesEditing')[_0x2004('0x8')](_0x2004('0x1'));const _0x22ce0e=_0x4940c2['plugins'][_0x2004('0x7')](_0x2004('0x9')),_0x24356c=_0x4940c2[_0x2004('0x2')];_0x22ce0e[_0x2004('0x3')]['registerElementLabel']('pageBreak',_0x5cae62=>_0x5cf1e7(_0x24356c,_0x2004('0x6'),_0x5cae62));}}
|
|
@@ -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 _0x5438=['plugins','blockName','isObject','span','$text','start','editing','activeMarkers','paragraph','has','insertion','addMarker:suggestion:insertion','registerDescriptionCallback','markerName','format','showSuggestionHighlights','name','enableCommand','toViewPosition','get','filter','highest','schema','*Insert:*\x20%0','end','getSelectedBlocks','commandName','ck-suggestion-marker--active','writer','_descriptionFactory','change','getItemLabel','type','model','isBlock','isLimit','afterInit','options','document','editor','nodeAfter','getFirstRange','checkChild','consume','addClass','downcastDispatcher','from','parent','ELEMENT_PARAGRAPH','selection','data','mapper','insert','includes','insertParagraph','markerRange','isTouching','markBlockFormat','TrackChangesEditing'];(function(_0x1ba2e5,_0x54385f){const _0x1c6188=function(_0x472256){while(--_0x472256){_0x1ba2e5['push'](_0x1ba2e5['shift']());}};_0x1c6188(++_0x54385f);}(_0x5438,0xd8));const _0x1c61=function(_0x1ba2e5,_0x54385f){_0x1ba2e5=_0x1ba2e5-0x0;let _0x1c6188=_0x5438[_0x1ba2e5];return _0x1c6188;};import{Plugin as _0x44ebf9}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x36963a}from'./utils';import{getTranslation as _0x20113c}from'../utils/common-translations';export default class ct extends _0x44ebf9{[_0x1c61('0x38')](){const _0x2fa8f8=this[_0x1c61('0x0')];if(!_0x2fa8f8[_0x1c61('0x14')][_0x1c61('0x1d')]('Paragraph'))return;const _0x2bb37c=_0x2fa8f8['locale'],_0x5393f7=_0x2fa8f8['plugins'][_0x1c61('0x27')](_0x1c61('0x13'));_0x5393f7[_0x1c61('0x31')]['registerElementLabel'](_0x1c61('0x1c'),_0x21207c=>_0x20113c(_0x2bb37c,'ELEMENT_PARAGRAPH',_0x21207c)),_0x5393f7[_0x1c61('0x25')](_0x1c61('0x1c'),(_0x4bc25d,_0x2727af={})=>{const _0xd6077f=_0x2fa8f8['model'][_0x1c61('0x3a')],_0x496063=_0x2727af['selection']||_0xd6077f[_0x1c61('0xa')],_0x59494d=Array[_0x1c61('0x7')](_0x496063[_0x1c61('0x2d')]())[_0x1c61('0x28')](_0x41a8a2=>function(_0x1a1ced,_0x5e9b15){return _0x5e9b15[_0x1c61('0x3')](_0x1a1ced[_0x1c61('0x8')],'paragraph')&&!_0x5e9b15[_0x1c61('0x16')](_0x1a1ced)&&_0x1c61('0x1c')!=_0x1a1ced[_0x1c61('0x24')];}(_0x41a8a2,this[_0x1c61('0x0')][_0x1c61('0x35')][_0x1c61('0x2a')]));_0x2fa8f8[_0x1c61('0x35')][_0x1c61('0x32')](()=>{for(const _0x480352 of _0x59494d)_0x5393f7[_0x1c61('0x12')](_0x480352,{'commandName':_0x1c61('0x1c'),'commandParams':[],'formatGroupId':_0x1c61('0x15')},_0x36963a(_0x480352));});}),_0x5393f7[_0x1c61('0x31')][_0x1c61('0x20')](_0x1053ec=>{const {data:_0x2a106b}=_0x1053ec;if(_0x2a106b&&'paragraph'==_0x2a106b[_0x1c61('0x2e')])return{'type':_0x1c61('0x22'),'content':_0x20113c(_0x2bb37c,'*Change\x20to:*\x20%0',_0x20113c(_0x2bb37c,_0x1c61('0x9')))};}),_0x5393f7[_0x1c61('0x25')](_0x1c61('0xf')),_0x2fa8f8[_0x1c61('0x1a')][_0x1c61('0x6')]['on'](_0x1c61('0x1f'),ar(_0x2fa8f8),{'priority':_0x1c61('0x29')}),_0x2fa8f8[_0x1c61('0xb')][_0x1c61('0x6')]['on'](_0x1c61('0x1f'),(_0x1a5abd,_0x4e07ae,_0x5b8f7e)=>{_0x5b8f7e[_0x1c61('0x39')][_0x1c61('0x23')]&&ar(_0x2fa8f8,{'showActiveMarker':!0x1})(_0x1a5abd,_0x4e07ae,_0x5b8f7e);},{'priority':_0x1c61('0x29')});const _0x2d31a1=_0x5393f7[_0x1c61('0x31')];_0x2d31a1[_0x1c61('0x20')](_0x19b17e=>{if(_0x1c61('0x1e')!==_0x19b17e[_0x1c61('0x34')])return;const {start:_0x5a6e91,end:_0x328f02}=_0x19b17e[_0x1c61('0x2')]();if(!_0x5a6e91[_0x1c61('0x11')](_0x328f02)||!_0x5a6e91[_0x1c61('0x1')])return;const _0x53f0da=_0x2fa8f8[_0x1c61('0x35')][_0x1c61('0x2a')],_0x3bb3f0=_0x5a6e91[_0x1c61('0x1')];return _0x53f0da['isBlock'](_0x3bb3f0)&&!_0x53f0da['isLimit'](_0x3bb3f0)&&_0x53f0da[_0x1c61('0x3')](_0x3bb3f0,_0x1c61('0x18'))?{'type':_0x1c61('0x1e'),'content':_0x20113c(_0x2bb37c,_0x1c61('0x2b'),_0x2d31a1[_0x1c61('0x33')](_0x3bb3f0,0x1))}:void 0x0;});}}function ar(_0x2b5b8d,{showActiveMarker:_0x77c51f=!0x0}={}){return(_0x4f3b6c,_0x383622,_0x43fe95)=>{const _0x1ff277=_0x2b5b8d['plugins'][_0x1c61('0x27')](_0x1c61('0x13')),_0x5ca611=_0x383622['markerRange'][_0x1c61('0x19')],_0x4b3ce6=_0x383622['markerRange'][_0x1c61('0x2c')],_0x3a77c9=_0x2b5b8d['model'][_0x1c61('0x2a')];if(!_0x5ca611[_0x1c61('0x11')](_0x4b3ce6)||!_0x5ca611[_0x1c61('0x1')])return;const _0x2465e3=_0x5ca611[_0x1c61('0x1')];if(_0x3a77c9[_0x1c61('0x36')](_0x2465e3)&&!_0x3a77c9[_0x1c61('0x37')](_0x2465e3)&&_0x3a77c9['checkChild'](_0x2465e3,'$text')){if(!_0x43fe95['consumable'][_0x1c61('0x4')](_0x383622[_0x1c61('0x10')],_0x4f3b6c[_0x1c61('0x24')]))return;const _0x2c9566=_0x43fe95[_0x1c61('0x30')]['createUIElement'](_0x1c61('0x17'),{'class':'ck-suggestion-marker-split'}),_0x1d6d1c=_0x43fe95[_0x1c61('0xc')][_0x1c61('0x26')](_0x4b3ce6);_0x77c51f&&_0x1ff277[_0x1c61('0x1b')][_0x1c61('0xe')](_0x383622[_0x1c61('0x21')])&&_0x43fe95[_0x1c61('0x30')][_0x1c61('0x5')](_0x1c61('0x2f'),_0x2c9566),_0x43fe95[_0x1c61('0x30')][_0x1c61('0xd')](_0x1d6d1c,_0x2c9566),_0x43fe95['mapper']['bindElementToMarker'](_0x2c9566,_0x383622['markerName']);}};}
|
|
@@ -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 _0x2ccc=['document','RemoveFormatEditing','selection','TrackChangesEditing','registerDescriptionCallback','get','getRanges','getAttributes','plugins','_descriptionFactory','commandName','isCollapsed','change','schema','removeFormat','from','getAttributeProperties','getItems','has','model','afterInit','*Remove\x20all\x20formatting*','locale'];(function(_0x5ad225,_0x2ccc8d){const _0x508039=function(_0x330e52){while(--_0x330e52){_0x5ad225['push'](_0x5ad225['shift']());}};_0x508039(++_0x2ccc8d);}(_0x2ccc,0x1e1));const _0x5080=function(_0x5ad225,_0x2ccc8d){_0x5ad225=_0x5ad225-0x0;let _0x508039=_0x2ccc[_0x5ad225];return _0x508039;};import{Plugin as _0x503ae7}from'ckeditor5/src/core';import{getTranslation as _0x37cff4}from'../utils/common-translations';export default class ht extends _0x503ae7{[_0x5080('0x16')](){const _0x2d6f4e=this['editor'];if(!_0x2d6f4e[_0x5080('0xa')][_0x5080('0x14')](_0x5080('0x3')))return;const _0x1687d3=_0x2d6f4e[_0x5080('0xa')][_0x5080('0x7')](_0x5080('0x5'));_0x1687d3['enableCommand'](_0x5080('0x10'),_0x184193=>{const _0x6a0e4e=_0x2d6f4e[_0x5080('0x15')][_0x5080('0x2')][_0x5080('0x4')];_0x6a0e4e[_0x5080('0xd')]?_0x184193():_0x2d6f4e['model'][_0x5080('0xe')](()=>{const _0x228c9c=Array[_0x5080('0x11')](_0x6a0e4e[_0x5080('0x8')]());for(const _0x11b134 of _0x228c9c)for(const _0x44740b of _0x11b134[_0x5080('0x13')]())eo(_0x44740b,_0x2d6f4e[_0x5080('0x15')][_0x5080('0xf')])&&_0x1687d3['markInlineFormat'](_0x2d6f4e[_0x5080('0x15')]['createRangeOn'](_0x44740b),{'commandName':_0x5080('0x10'),'commandParams':[]});});}),_0x1687d3[_0x5080('0xb')][_0x5080('0x6')](_0x2c591f=>{const {data:_0x119eac}=_0x2c591f;if(_0x119eac&&_0x5080('0x10')==_0x119eac[_0x5080('0xc')])return{'type':'format','content':_0x37cff4(_0x2d6f4e[_0x5080('0x1')],_0x5080('0x0'))};});}}function eo(_0x44f404,_0x2db2fe){for(const [_0x52e20e]of _0x44f404[_0x5080('0x9')]()){const _0x5ebe57=_0x2db2fe[_0x5080('0x12')](_0x52e20e);if(_0x5ebe57&&_0x5ebe57['isFormatting'])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 _0x5b87=['goToPreviousRestrictedEditingException','RestrictedEditingModeEditing','acceptAllSuggestions','discardAllSuggestions','enableCommand','get','discardSelectedSuggestions','afterInit','plugins','acceptSuggestion','has','acceptSelectedSuggestions'];(function(_0x1075ba,_0x5b87ae){const _0x220a44=function(_0x2d0669){while(--_0x2d0669){_0x1075ba['push'](_0x1075ba['shift']());}};_0x220a44(++_0x5b87ae);}(_0x5b87,0xa9));const _0x220a=function(_0x1075ba,_0x5b87ae){_0x1075ba=_0x1075ba-0x0;let _0x220a44=_0x5b87[_0x1075ba];return _0x220a44;};import{Plugin as _0x37e9aa}from'ckeditor5/src/core';export default class ut extends _0x37e9aa{[_0x220a('0x6')](){const _0x41d54b=this['editor'];if(!_0x41d54b[_0x220a('0x7')][_0x220a('0x9')](_0x220a('0x0')))return;const _0x3a8cff=_0x41d54b[_0x220a('0x7')][_0x220a('0x4')]('TrackChangesEditing');_0x3a8cff[_0x220a('0x3')](_0x220a('0xb')),_0x3a8cff['enableCommand']('goToNextRestrictedEditingException');const _0x3093d6=_0x41d54b[_0x220a('0x7')][_0x220a('0x4')]('RestrictedEditingModeEditing');_0x3093d6[_0x220a('0x3')]('trackChanges'),_0x3093d6[_0x220a('0x3')](_0x220a('0x8')),_0x3093d6[_0x220a('0x3')]('discardSuggestion'),_0x3093d6[_0x220a('0x3')](_0x220a('0x1')),_0x3093d6[_0x220a('0x3')](_0x220a('0x2')),_0x3093d6[_0x220a('0x3')](_0x220a('0xa')),_0x3093d6[_0x220a('0x3')](_0x220a('0x5'));}}
|
|
@@ -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 _0x4477=['insert','addMarker:suggestion:insertion','mapper','consumable','name','requires','ck-suggestion-marker-','span','activeMarkers','softBreak','element','ck-suggestion-marker--active','TrackChangesEditing','split','test','includes','addMarker:suggestion','plugins','merge','bindElementToMarker','ELEMENT_LINE_BREAK','editor','createPositionBefore','options','_descriptionFactory','addClass','registerElementLabel','getItems','editing','markerName','model','writer','init','markerRange','high','toViewPosition','locale','get','showSuggestionHighlights','data','createUIElement','downcastDispatcher'];(function(_0xb412e1,_0x447764){const _0x1f1e4=function(_0x3d6b0f){while(--_0x3d6b0f){_0xb412e1['push'](_0xb412e1['shift']());}};_0x1f1e4(++_0x447764);}(_0x4477,0x93));const _0x1f1e=function(_0xb412e1,_0x447764){_0xb412e1=_0xb412e1-0x0;let _0x1f1e4=_0x4477[_0xb412e1];return _0x1f1e4;};import{Plugin as _0x1b7788}from'ckeditor5/src/core';import{ShiftEnter as _0x4704bc}from'ckeditor5/src/enter';import{getTranslation as _0x2014d4}from'../utils/common-translations';export default class ft extends _0x1b7788{static get[_0x1f1e('0x1a')](){return[_0x4704bc];}[_0x1f1e('0xb')](){const _0x4ec4c2=this[_0x1f1e('0x0')],_0x453fbb=_0x4ec4c2['plugins']['get'](_0x1f1e('0x21'));_0x453fbb['enableCommand']('shiftEnter'),_0x4ec4c2['editing']['downcastDispatcher']['on'](_0x1f1e('0x16'),re(_0x4ec4c2),{'priority':_0x1f1e('0xd')}),_0x4ec4c2[_0x1f1e('0x7')][_0x1f1e('0x14')]['on']('addMarker:suggestion:deletion',re(_0x4ec4c2),{'priority':_0x1f1e('0xd')}),_0x4ec4c2[_0x1f1e('0x12')][_0x1f1e('0x14')]['on'](_0x1f1e('0x25'),(_0x5f141e,_0x18adb7,_0x3b6ce0)=>{_0x3b6ce0[_0x1f1e('0x2')][_0x1f1e('0x11')]&&re(_0x4ec4c2,{'showActiveMarker':!0x1})(_0x5f141e,_0x18adb7,_0x3b6ce0);}),_0x453fbb[_0x1f1e('0x3')][_0x1f1e('0x5')]('softBreak',_0x230fb5=>_0x2014d4(_0x4ec4c2[_0x1f1e('0xf')],_0x1f1e('0x29'),_0x230fb5));}}function re(_0x5b120f,{showActiveMarker:_0x2b5724=!0x0}={}){return(_0x56a6a7,_0x22a6ce,_0x1808cb)=>{const _0x57a714=_0x5b120f[_0x1f1e('0x26')][_0x1f1e('0x10')]('TrackChangesEditing');if(!_0x1808cb[_0x1f1e('0x18')][_0x1f1e('0x23')](_0x22a6ce[_0x1f1e('0xc')],_0x56a6a7[_0x1f1e('0x19')]))return;const _0x4a8b0e=_0x5b120f[_0x1f1e('0x9')];for(const _0x21e286 of _0x22a6ce[_0x1f1e('0xc')][_0x1f1e('0x6')]()){if(!_0x21e286['is'](_0x1f1e('0x1f'),_0x1f1e('0x1e')))continue;const _0x2d8b9b='deletion'==_0x22a6ce['markerName'][_0x1f1e('0x22')](':')[0x1]?_0x1f1e('0x27'):_0x1f1e('0x22'),_0x3c7863=_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x13')](_0x1f1e('0x1c'),{'class':_0x1f1e('0x1b')+_0x2d8b9b}),_0x57fb71=_0x1808cb[_0x1f1e('0x17')][_0x1f1e('0xe')](_0x4a8b0e[_0x1f1e('0x1')](_0x21e286));_0x2b5724&&_0x57a714[_0x1f1e('0x1d')][_0x1f1e('0x24')](_0x22a6ce['markerName'])&&_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x4')](_0x1f1e('0x20'),_0x3c7863),_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x15')](_0x57fb71,_0x3c7863),_0x1808cb['mapper'][_0x1f1e('0x28')](_0x3c7863,_0x22a6ce[_0x1f1e('0x8')]);}};}
|
|
@@ -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 _0x196a=['value','forceValue','plugins','locale','getRanges','document','_descriptionFactory','from','FORMAT_RESTRICTED_DISABLED','isCollapsed','commandParams','enableCommand','has','commandName','registerDescriptionCallback','get','afterInit','model','commands','restrictedEditingException','change'];(function(_0x5ef678,_0x196a19){const _0x36155f=function(_0x252c24){while(--_0x252c24){_0x5ef678['push'](_0x5ef678['shift']());}};_0x36155f(++_0x196a19);}(_0x196a,0x1f3));const _0x3615=function(_0x5ef678,_0x196a19){_0x5ef678=_0x5ef678-0x0;let _0x36155f=_0x196a[_0x5ef678];return _0x36155f;};import{Plugin as _0x3c8ba5}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x1a52be}from'./utils';import{getTranslation as _0x33cb53}from'../utils/common-translations';export default class lt extends _0x3c8ba5{[_0x3615('0x0')](){const _0x5bbc4d=this['editor'],_0x2d98da=_0x5bbc4d[_0x3615('0x1')],_0xc996c5=_0x5bbc4d[_0x3615('0x8')];if(!_0x5bbc4d[_0x3615('0x7')][_0x3615('0x11')]('StandardEditingModeEditing'))return;const _0x5b5184=_0x5bbc4d[_0x3615('0x7')]['get']('TrackChangesEditing'),_0x12a7a6=_0x3615('0x3'),_0x3fa7df=_0x5bbc4d[_0x3615('0x2')][_0x3615('0x14')](_0x12a7a6);_0x5b5184[_0x3615('0x10')](_0x12a7a6,(_0x55cffb,_0x2733ec={})=>{const _0xcd37b4=_0x2d98da[_0x3615('0xa')]['selection'];if(_0xcd37b4[_0x3615('0xe')])return void _0x55cffb(_0x2733ec);const _0x4b4f78=void 0x0!==_0x2733ec[_0x3615('0x6')]?_0x2733ec['forceValue']:!_0x3fa7df[_0x3615('0x5')];_0x2d98da[_0x3615('0x4')](()=>{const _0x4853fb=Array[_0x3615('0xc')](_0xcd37b4[_0x3615('0x9')]());for(const _0x58c5f9 of _0x4853fb){const _0x558f01=_0x4b4f78?[_0x58c5f9]:_0x1a52be(_0x12a7a6,_0x58c5f9,_0x2d98da);for(const _0x1c6fc7 of _0x558f01)_0x5b5184['markInlineFormat'](_0x1c6fc7,{'commandName':_0x12a7a6,'commandParams':[{'forceValue':_0x4b4f78}]});}});}),_0x5b5184[_0x3615('0xb')][_0x3615('0x13')](_0x520681=>{const {data:_0x430197}=_0x520681;if(_0x430197&&_0x430197[_0x3615('0x12')]==_0x12a7a6)return _0x430197[_0x3615('0xf')][0x0]['forceValue']?{'type':'format','content':_0x33cb53(_0xc996c5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x33cb53(_0xc996c5,_0x3615('0xd'))};});}}
|
|
@@ -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.
|