@ckeditor/ckeditor5-track-changes 40.0.0 → 40.1.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/LICENSE.md +3 -3
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +76 -0
- package/lang/translations/az.po +76 -0
- package/lang/translations/bg.po +76 -0
- package/lang/translations/bn.po +76 -0
- package/lang/translations/ca.po +76 -0
- package/lang/translations/cs.po +76 -0
- package/lang/translations/da.po +76 -0
- package/lang/translations/de.po +76 -0
- package/lang/translations/el.po +76 -0
- package/lang/translations/en-au.po +76 -0
- package/lang/translations/en.po +76 -0
- package/lang/translations/es.po +76 -0
- package/lang/translations/et.po +76 -0
- package/lang/translations/fi.po +76 -0
- package/lang/translations/fr.po +76 -0
- package/lang/translations/gl.po +76 -0
- package/lang/translations/he.po +76 -0
- package/lang/translations/hi.po +76 -0
- package/lang/translations/hr.po +76 -0
- package/lang/translations/hu.po +76 -0
- package/lang/translations/id.po +76 -0
- package/lang/translations/it.po +76 -0
- package/lang/translations/ja.po +76 -0
- package/lang/translations/ko.po +76 -0
- package/lang/translations/lt.po +76 -0
- package/lang/translations/lv.po +76 -0
- package/lang/translations/ms.po +76 -0
- package/lang/translations/nl.po +76 -0
- package/lang/translations/no.po +76 -0
- package/lang/translations/pl.po +76 -0
- package/lang/translations/pt-br.po +94 -18
- package/lang/translations/pt.po +76 -0
- package/lang/translations/ro.po +76 -0
- package/lang/translations/ru.po +76 -0
- package/lang/translations/sk.po +76 -0
- package/lang/translations/sq.po +76 -0
- package/lang/translations/sr-latn.po +76 -0
- package/lang/translations/sr.po +76 -0
- package/lang/translations/sv.po +76 -0
- package/lang/translations/th.po +76 -0
- package/lang/translations/tk.po +76 -0
- package/lang/translations/tr.po +76 -0
- package/lang/translations/tt.po +76 -0
- package/lang/translations/uk.po +76 -0
- package/lang/translations/ur.po +76 -0
- package/lang/translations/vi.po +76 -0
- package/lang/translations/zh-cn.po +76 -0
- package/lang/translations/zh.po +76 -0
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -17
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +17 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/documentlist
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for document list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/documentlist
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for document list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesDocumentList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15c1=['deletion','*Change\x20to:*\x20%0','list.multiBlock','change','paragraph','getSelectedBlocks','length','selection','schema','isObject','forceValue','outdentList','before','execute','ELEMENT_BULLETED_LIST','registerDescriptionCallback','*Format:*\x20remove\x20from\x20%0','add','listIndent','commands','expandListBlocksToCompleteList','ELEMENT_','slice','enableCommand','nodeAfter','_descriptionFactory','listItemId','createPositionAt','getRanges','bulletedList','parent','has','setSelection','splitListItemAfter','config','findIndex','format','value','getFirstRange','fromRange','DocumentListEditing','_suggestionFactory','getAttribute','detach','createRange','editor','get','mergeListItemBackward','nextSibling','ELEMENT_NUMBERED_LIST','DocumentListUtils','listType','splitListItemBefore','_LIST','formatBlock','indentList','registerElementLabel','from','commandName','previousSibling','multipleBlocks','*Indent:*\x20%0','toUpperCase','document','after','hasAttribute','next','*Format:*\x20insert\x20into\x20%0','ELEMENT_LIST_ITEM','start','plugins','type','commandParams','end','mergeListItemForward','model','markBlockFormat','documentList','numberedList','containsItem','push'];(function(_0x441bfe,_0x15c138){const _0x3f2a24=function(_0x4cae3d){while(--_0x4cae3d){_0x441bfe['push'](_0x441bfe['shift']());}};_0x3f2a24(++_0x15c138);}(_0x15c1,0x75));const _0x3f2a=function(_0x441bfe,_0x15c138){_0x441bfe=_0x441bfe-0x0;let _0x3f2a24=_0x15c1[_0x441bfe];return _0x3f2a24;};import{Plugin as _0x3a4a29}from'ckeditor5/src/core';import{getTranslation as _0x4720ac}from'../utils/common-translations';import{LiveRange as _0x2599a3}from'ckeditor5/src/engine';export default class q extends _0x3a4a29{['afterInit'](){const _0x272fe3=this[_0x3f2a('0x9')];if(!_0x272fe3['plugins'][_0x3f2a('0x4c')](_0x3f2a('0x4')))return;const _0x551026=_0x272fe3['locale'],_0x3813eb=_0x272fe3['plugins'][_0x3f2a('0xa')]('TrackChangesEditing'),_0x75c387=_0x272fe3[_0x3f2a('0x22')][_0x3f2a('0xa')](_0x3f2a('0xe'));function _0x7c4280(_0x5c057d){return()=>{const _0xbdf743=_0x272fe3[_0x3f2a('0x40')]['get'](_0x5c057d);if(_0xbdf743['value']&&!_0x272fe3[_0x3f2a('0x4f')]['get'](_0x3f2a('0x2f')))return void _0x272fe3['execute'](_0x3f2a('0x31'),{});let _0x40b25a=Array[_0x3f2a('0x15')](_0x272fe3['model'][_0x3f2a('0x1b')][_0x3f2a('0x34')][_0x3f2a('0x32')]());if(_0x36acc2(_0x5c057d)){_0x40b25a=_0x75c387[_0x3f2a('0x41')](_0x40b25a);const _0x5a36fc=[];for(const _0x547bab of _0x40b25a)_0x75c387['isFirstBlockOfListItem'](_0x547bab)&&_0x5a36fc[_0x3f2a('0x2c')](_0x547bab);_0x40b25a=_0x5a36fc;}_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x30')](()=>{_0x3813eb['markMultiRangeBlockFormat'](_0x40b25a,{'commandName':_0x5c057d,'commandParams':[{'forceValue':!_0xbdf743['value']}],'formatGroupId':_0x3f2a('0xf')},[],_0x3f2a('0x29'));});};}function _0x2029a0(_0x532e88){return()=>{const _0x464813=function(_0x13a481){let _0x443963=Array['from'](_0x13a481);const _0x10c372=_0x443963[_0x3f2a('0x50')](_0x265f97=>!_0x265f97[_0x3f2a('0x1d')](_0x3f2a('0x47')));return _0x10c372>-0x1&&(_0x443963=_0x443963[_0x3f2a('0x43')](0x0,_0x10c372)),_0x443963;}(_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x1b')]['selection'][_0x3f2a('0x32')]()),_0x394187=_0x464813[_0x464813[_0x3f2a('0x33')]-0x1],_0x194f34=_0x272fe3['model'][_0x3f2a('0x35')][_0x3f2a('0x36')](_0x394187)?_0x3f2a('0x1c'):'end',_0x3e70b8=_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x8')](_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x48')](_0x464813[0x0],'before'),_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x48')](_0x394187,_0x194f34));_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x30')](()=>{_0x3813eb[_0x3f2a('0x28')](_0x3e70b8,{'commandName':_0x532e88,'commandParams':[],'formatGroupId':_0x3f2a('0xf')},function(_0x15fcad){const _0x2a8602=new Set();for(const _0x2776f4 of _0x15fcad){let _0x27a134=_0x2776f4[_0x3f2a('0xc')];for(;_0x27a134&&_0x27a134['getAttribute']('listIndent')>_0x2776f4[_0x3f2a('0x6')](_0x3f2a('0x3f'));)_0x2a8602[_0x3f2a('0x3e')](_0x27a134),_0x27a134=_0x27a134['nextSibling'];}return Array['from'](_0x2a8602);}(_0x464813));});};}function _0x4fa098(_0x4d295d){return()=>{const _0x34b668=_0x272fe3[_0x3f2a('0x27')]['document']['selection'][_0x3f2a('0x32')]()[_0x3f2a('0x1e')]()['value'],_0x2bc32a=_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x48')](_0x34b668,_0x3f2a('0x39')),_0x53a181=_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x48')](_0x34b668,0x0),_0x7cb2ac=_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x8')](_0x2bc32a,_0x53a181);_0x272fe3[_0x3f2a('0x27')]['change'](()=>{_0x3813eb[_0x3f2a('0x28')](_0x7cb2ac,{'commandName':_0x4d295d,'commandParams':[],'formatGroupId':_0x3f2a('0xf')});});};}function _0x36acc2(_0x44e2c8){const _0x1d3579=_0x272fe3[_0x3f2a('0x40')][_0x3f2a('0xa')](_0x3f2a('0x4a'))[_0x3f2a('0x1')],_0x2d1dfd=_0x272fe3[_0x3f2a('0x40')][_0x3f2a('0xa')](_0x3f2a('0x2a'))[_0x3f2a('0x1')];return _0x3f2a('0x2a')===_0x44e2c8?_0x1d3579:_0x2d1dfd;}_0x3813eb[_0x3f2a('0x44')](_0x3f2a('0x2a'),_0x7c4280(_0x3f2a('0x2a'))),_0x3813eb[_0x3f2a('0x44')]('bulletedList',_0x7c4280(_0x3f2a('0x4a'))),_0x3813eb[_0x3f2a('0x44')](_0x3f2a('0x13'),_0x2029a0('indentList')),_0x3813eb[_0x3f2a('0x44')](_0x3f2a('0x38'),_0x2029a0('outdentList')),_0x3813eb[_0x3f2a('0x44')](_0x3f2a('0x4e'),_0x4fa098('splitListItemAfter')),_0x3813eb[_0x3f2a('0x44')](_0x3f2a('0x10'),_0x4fa098(_0x3f2a('0x10'))),_0x3813eb[_0x3f2a('0x46')][_0x3f2a('0x14')](function(_0x50b88d){const _0x5282f7=!_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x35')][_0x3f2a('0x36')](_0x50b88d),_0x34e0c2=_0x50b88d[_0x3f2a('0x17')],_0x139e36=_0x50b88d[_0x3f2a('0xc')],_0x542a87=_0x50b88d[_0x3f2a('0x6')]('listItemId'),_0xa78eb5=!_0x34e0c2||_0x34e0c2[_0x3f2a('0x6')](_0x3f2a('0x47'))!==_0x542a87,_0x23478b=!_0x139e36||_0x139e36[_0x3f2a('0x6')](_0x3f2a('0x47'))!==_0x542a87;return _0x5282f7&&Boolean(_0x542a87)&&_0xa78eb5&&_0x23478b;},_0x388475=>_0x4720ac(_0x551026,_0x3f2a('0x20'),_0x388475)),_0x3813eb['_descriptionFactory'][_0x3f2a('0x3c')](function(_0x488ac6){if('formatBlock'!=_0x488ac6[_0x3f2a('0x23')]&&'formatInline'!=_0x488ac6['type'])return;const {data:_0x4b0197}=_0x488ac6;if(!_0x4b0197)return;let _0x11d3be,_0x4ac8d5,_0x360170,_0x13f315;switch(_0x4b0197[_0x3f2a('0x16')]){case _0x3f2a('0x4a'):_0x360170=_0x4b0197[_0x3f2a('0x24')][0x0][_0x3f2a('0x37')],_0x13f315=_0x36acc2(_0x4b0197[_0x3f2a('0x16')]),_0x11d3be=_0x360170?'*Format:*\x20insert\x20into\x20%0':_0x3f2a('0x3d'),!_0x13f315&&_0x272fe3['config']['get'](_0x3f2a('0x2f'))||(_0x11d3be=_0x3f2a('0x2e')),_0x4ac8d5={'type':_0x3f2a('0x0'),'content':_0x4720ac(_0x551026,_0x11d3be,_0x4720ac(_0x551026,_0x3f2a('0x3b')))};break;case _0x3f2a('0x2a'):_0x360170=_0x4b0197[_0x3f2a('0x24')][0x0]['forceValue'],_0x13f315=_0x36acc2(_0x4b0197['commandName']),_0x11d3be=_0x360170?_0x3f2a('0x1f'):_0x3f2a('0x3d'),!_0x13f315&&_0x272fe3[_0x3f2a('0x4f')][_0x3f2a('0xa')](_0x3f2a('0x2f'))||(_0x11d3be='*Change\x20to:*\x20%0'),_0x4ac8d5={'type':'format','content':_0x4720ac(_0x551026,_0x11d3be,_0x4720ac(_0x551026,_0x3f2a('0xd')))};break;case'indentList':_0x11d3be=_0x3f2a('0x19'),_0x4ac8d5={'type':_0x3f2a('0x0'),'content':_0x4720ac(_0x551026,_0x11d3be,_0x4720ac(_0x551026,'ELEMENT_LIST_ITEM'))};break;case _0x3f2a('0x38'):_0x11d3be=function(_0x41b125){const _0x4bb3c3=_0x41b125['getFirstRange']();let _0x11536b=_0x4bb3c3['start'][_0x3f2a('0x45')];for(;_0x11536b&&_0x4bb3c3[_0x3f2a('0x2b')](_0x11536b);){if(_0x11536b['getAttribute'](_0x3f2a('0x3f'))>0x0)return!0x1;_0x11536b=_0x11536b['nextSibling'];}return!0x0;}(_0x488ac6)?_0x4720ac(_0x551026,_0x3f2a('0x3d'),_0x4720ac(_0x551026,function(_0x22530c){const _0xd8525f=_0x22530c[_0x3f2a('0x2')]()[_0x3f2a('0x21')][_0x3f2a('0x45')];return _0x3f2a('0x42')+_0xd8525f[_0x3f2a('0x6')]('listType')[_0x3f2a('0x1a')]()+_0x3f2a('0x11');}(_0x488ac6))):_0x4720ac(_0x551026,'*Outdent:*\x20%0',_0x4720ac(_0x551026,_0x3f2a('0x20'))),_0x4ac8d5={'type':_0x3f2a('0x0'),'content':_0x11d3be};break;case _0x3f2a('0xb'):case _0x3f2a('0x26'):!0x1===_0x4b0197[_0x3f2a('0x18')]&&(_0x11d3be='*Merge:*\x20%0',_0x4ac8d5={'type':_0x3f2a('0x2d'),'content':_0x4720ac(_0x551026,_0x11d3be,_0x4720ac(_0x551026,'ELEMENT_LIST_ITEM'))});}return _0x4ac8d5;}),_0x3813eb[_0x3f2a('0x5')]['registerCustomCallback'](_0x3f2a('0x12'),_0x3f2a('0x29'),'accept',function(_0x4ce52a,_0x36a0b3){const _0x3796cb=[];for(let _0x1259d9 of _0x4ce52a)_0x1259d9[_0x3f2a('0x21')][_0x3f2a('0x45')]===_0x1259d9[_0x3f2a('0x25')][_0x3f2a('0x4b')]&&(_0x1259d9=_0x272fe3['model']['createRange'](_0x272fe3['model']['createPositionAt'](_0x1259d9['start'][_0x3f2a('0x45')],0x0))),_0x3796cb[_0x3f2a('0x2c')](_0x1259d9);_0x272fe3['model'][_0x3f2a('0x30')](_0xf524fe=>{const _0x3d9294=_0x272fe3[_0x3f2a('0x27')][_0x3f2a('0x1b')][_0x3f2a('0x34')],_0x1a094b=Array[_0x3f2a('0x15')](_0x3d9294[_0x3f2a('0x49')]())['map'](_0x713353=>_0x2599a3[_0x3f2a('0x3')](_0x713353));_0xf524fe[_0x3f2a('0x4d')](_0x3796cb),_0x272fe3[_0x3f2a('0x40')][_0x3f2a('0xa')](_0x36a0b3[_0x3f2a('0x16')])['refresh'](),_0x36a0b3[_0x3f2a('0x24')][_0x3f2a('0x2c')]({'forceDefaultExecution':!0x0}),_0x272fe3[_0x3f2a('0x3a')](_0x36a0b3[_0x3f2a('0x16')],..._0x36a0b3[_0x3f2a('0x24')]),_0xf524fe['setSelection'](_0x1a094b);for(const _0x591ca3 of _0x1a094b)_0x591ca3[_0x3f2a('0x7')]();});});}}
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/documentlistproperties
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
11
|
-
/**
|
|
12
|
-
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
-
type?: string | null;
|
|
21
|
-
}): void;
|
|
22
|
-
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
-
reversed?: boolean;
|
|
24
|
-
}): void;
|
|
25
|
-
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
-
startIndex?: number;
|
|
27
|
-
}): void;
|
|
28
|
-
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/documentlistproperties
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
+
import type Suggestion from '../suggestion';
|
|
11
|
+
/**
|
|
12
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
afterInit(): void;
|
|
19
|
+
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
+
type?: string | null;
|
|
21
|
+
}): void;
|
|
22
|
+
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
+
reversed?: boolean;
|
|
24
|
+
}): void;
|
|
25
|
+
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
+
startIndex?: number;
|
|
27
|
+
}): void;
|
|
28
|
+
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56b1=['locale','document','change','handleListStartCommand','from','registerDescriptionCallback','DocumentListPropertiesEditing','replace','reversed','listStyle','has','enableCommand','selection','startIndex','ELEMENT_','listReversed','type','filter','commandParams','plugins','formatBlock','*Format:*\x20set\x20order\x20to\x20regular','_LIST_','numbered','list.properties','handleListReversedCommand','_getTranslationKeyForListStyle','model','afterInit','getSelectedBlocks','listType','TrackChangesEditing','_getSuggestionBlocks','isListItemBlock','expandListBlocksToCompleteList','DocumentListPropertiesUtils','handleDescriptions','*Change\x20to:*\x20%0','formatInline','_getSuggestionBlocksForListStyle','*Format:*\x20set\x20start\x20index\x20to\x20%0','isFirstBlockOfListItem','config','get','commandName','bind','getListTypeFromListStyleType','markMultiRangeBlockFormat','DocumentListUtils','format','getAttribute','toUpperCase','*Format:*\x20set\x20order\x20to\x20reversed','push','listStart','editor'];(function(_0x5b5da0,_0x56b1a8){const _0x39144a=function(_0x2890bb){while(--_0x2890bb){_0x5b5da0['push'](_0x5b5da0['shift']());}};_0x39144a(++_0x56b1a8);}(_0x56b1,0x1e4));const _0x3914=function(_0x5b5da0,_0x56b1a8){_0x5b5da0=_0x5b5da0-0x0;let _0x39144a=_0x56b1[_0x5b5da0];return _0x39144a;};import{Plugin as _0x4f3cff}from'ckeditor5/src/core';import{getTranslation as _0x4ee476}from'../utils/common-translations';export default class z extends _0x4f3cff{[_0x3914('0x30')](){if(!this['editor'][_0x3914('0x27')][_0x3914('0x1e')](_0x3914('0x1a')))return;const _0x1941ae=this['editor'][_0x3914('0x6')][_0x3914('0x7')](_0x3914('0x2c')),_0x55ba9e=this[_0x3914('0x13')][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0x33'));_0x1941ae['styles']&&_0x55ba9e[_0x3914('0x1f')]('listStyle',this['handleListStyleCommand'][_0x3914('0x9')](this)),_0x1941ae[_0x3914('0x1c')]&&_0x55ba9e[_0x3914('0x1f')](_0x3914('0x23'),this[_0x3914('0x2d')]['bind'](this)),_0x1941ae['startIndex']&&_0x55ba9e['enableCommand'](_0x3914('0x12'),this[_0x3914('0x17')][_0x3914('0x9')](this)),_0x55ba9e['_descriptionFactory'][_0x3914('0x19')](this['handleDescriptions'][_0x3914('0x9')](this));}['handleListStyleCommand'](_0x55f87e,_0x28b1cc={}){const _0x49ceca=this[_0x3914('0x13')]['plugins'][_0x3914('0x7')](_0x3914('0x33')),_0x5c00a8=this[_0x3914('0x3')]();this[_0x3914('0x13')][_0x3914('0x2f')]['change'](()=>{_0x49ceca[_0x3914('0xb')](_0x5c00a8,{'commandName':'listStyle','commandParams':[{'type':_0x28b1cc[_0x3914('0x24')]}],'formatGroupId':_0x3914('0x1d')});});}[_0x3914('0x2d')](_0x2b8db7,_0x5f16ea={}){const _0x321cc0=this['editor'][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0x33')),_0x393300=this[_0x3914('0x13')][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0xc')),_0x38bb3d=this['_getSuggestionBlocks'](_0x1adf50=>_0x393300[_0x3914('0x35')](_0x1adf50)&&_0x3914('0x2b')===_0x1adf50[_0x3914('0xe')](_0x3914('0x32')));null!==_0x38bb3d&&this[_0x3914('0x13')][_0x3914('0x2f')][_0x3914('0x16')](()=>{_0x321cc0['markMultiRangeBlockFormat'](_0x38bb3d,{'commandName':'listReversed','commandParams':[{'reversed':_0x5f16ea[_0x3914('0x1c')]}],'formatGroupId':_0x3914('0x23')});});}[_0x3914('0x17')](_0xf18aeb,_0x1fff3a={}){const _0x49be64=this[_0x3914('0x13')]['plugins'][_0x3914('0x7')](_0x3914('0x33')),_0x3bb6a0=this['editor'][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0xc')),_0x7e77e4=this[_0x3914('0x34')](_0x5433b8=>_0x3bb6a0[_0x3914('0x35')](_0x5433b8)&&_0x3914('0x2b')===_0x5433b8['getAttribute'](_0x3914('0x32')));null!==_0x7e77e4&&this[_0x3914('0x13')][_0x3914('0x2f')][_0x3914('0x16')](()=>{_0x49be64[_0x3914('0xb')](_0x7e77e4,{'commandName':_0x3914('0x12'),'commandParams':[{'startIndex':_0x1fff3a[_0x3914('0x21')]}],'formatGroupId':_0x3914('0x12')});});}[_0x3914('0x0')](_0x238b88){if(_0x3914('0x28')!=_0x238b88[_0x3914('0x24')]&&_0x3914('0x2')!=_0x238b88[_0x3914('0x24')])return;const _0x40648e=this[_0x3914('0x13')][_0x3914('0x14')],{data:_0x9d6440}=_0x238b88;if(!_0x9d6440)return;let _0x15c4a1,_0x43d01e;switch(_0x9d6440[_0x3914('0x8')]){case _0x3914('0x1d'):_0x15c4a1=_0x3914('0x1'),_0x43d01e={'type':_0x3914('0xd'),'content':_0x4ee476(_0x40648e,_0x15c4a1,_0x4ee476(_0x40648e,this['_getTranslationKeyForListStyle'](_0x9d6440['commandParams'][0x0][_0x3914('0x24')])))};break;case _0x3914('0x23'):_0x15c4a1=_0x9d6440[_0x3914('0x26')][0x0][_0x3914('0x1c')]?_0x3914('0x10'):_0x3914('0x29'),_0x43d01e={'type':'format','content':_0x4ee476(_0x40648e,_0x15c4a1)};break;case _0x3914('0x12'):_0x15c4a1=_0x3914('0x4'),_0x43d01e={'type':'format','content':_0x4ee476(_0x40648e,_0x15c4a1,_0x9d6440[_0x3914('0x26')][0x0][_0x3914('0x21')])};}return _0x43d01e;}[_0x3914('0x3')](){const _0x40d160=this[_0x3914('0x13')][_0x3914('0x27')][_0x3914('0x7')]('DocumentListUtils');let _0xe0bb4e=Array[_0x3914('0x18')](this[_0x3914('0x13')][_0x3914('0x2f')][_0x3914('0x15')][_0x3914('0x20')][_0x3914('0x31')]());return _0xe0bb4e[_0x3914('0x11')](..._0x40d160[_0x3914('0x36')](_0xe0bb4e)),_0xe0bb4e=[...new Set(_0xe0bb4e)],_0xe0bb4e;}[_0x3914('0x34')](_0x10228a){const _0x30c95d=this[_0x3914('0x13')][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0xc'));let _0x5387e9=Array['from'](this[_0x3914('0x13')][_0x3914('0x2f')][_0x3914('0x15')]['selection'][_0x3914('0x31')]())[_0x3914('0x25')](_0x10228a);if(!_0x5387e9['length'])return null;_0x5387e9=_0x30c95d[_0x3914('0x36')](_0x5387e9);const _0x41dc74=[];for(const _0x5e50bb of _0x5387e9)_0x30c95d[_0x3914('0x5')](_0x5e50bb)&&_0x41dc74[_0x3914('0x11')](_0x5e50bb);return _0x41dc74;}[_0x3914('0x2e')](_0x3b6bde){return _0x3914('0x22')+this['editor'][_0x3914('0x27')][_0x3914('0x7')](_0x3914('0x37'))[_0x3914('0xa')](_0x3b6bde)['toUpperCase']()+_0x3914('0x2a')+_0x3b6bde[_0x3914('0xf')]()[_0x3914('0x1b')](/-/g,'_');}}
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/entercommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof Enter];
|
|
15
|
-
init(): void;
|
|
16
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/entercommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesEnterCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof Enter];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf52a=['nextSibling','requires','hasClass','data','editing','get','getFirstRange','mapper','writer','change','editor','enterBlock','parent','enter','getFirstPosition','bind','createRange','options','setSelection','plugins','high','removeMarker:suggestion:insertion','afterExecute','init','createPositionAt','markerNameToElements','enableCommand','selection','addMarker:suggestion:insertion','markInsertion','model','remove','split','markerName','TrackChangesEditing','downcastDispatcher','fire'];(function(_0x17e23b,_0xf52a83){const _0x4561a9=function(_0x54017e){while(--_0x54017e){_0x17e23b['push'](_0x17e23b['shift']());}};_0x4561a9(++_0xf52a83);}(_0xf52a,0xc8));const _0x4561=function(_0x17e23b,_0xf52a83){_0x17e23b=_0x17e23b-0x0;let _0x4561a9=_0xf52a[_0x17e23b];return _0x4561a9;};import{Plugin as _0x44eb64}from'ckeditor5/src/core';import{Enter as _0x38ea52}from'ckeditor5/src/enter';import{LiveRange as _0xf253c3}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x8c7d0d}from'./utils';export default class K extends _0x44eb64{static get[_0x4561('0x17')](){return[_0x38ea52];}[_0x4561('0x8')](){const _0x3162e6=this[_0x4561('0x20')],_0x25bca=_0x3162e6[_0x4561('0x4')]['get'](_0x4561('0x13')),_0x55b70d=_0x3162e6['commands'][_0x4561('0x1b')](_0x4561('0x23'));_0x25bca[_0x4561('0xb')]('enter',()=>{_0x3162e6[_0x4561('0xf')][_0x4561('0x1f')](_0x407381=>{const _0x3e5da0=_0x3162e6[_0x4561('0xf')]['document'][_0x4561('0xc')],_0x33c2e0=_0x3e5da0[_0x4561('0x24')](),_0x5cd1ea=_0xf253c3['fromRange'](_0x3e5da0[_0x4561('0x1c')]());if(_0x55b70d[_0x4561('0x21')](_0x407381)){const _0x277c5b=_0x3162e6['model'][_0x4561('0x9')](_0x33c2e0[_0x4561('0x22')][_0x4561('0x16')],0x0),_0x5d71ee=_0x407381[_0x4561('0x1')](_0x33c2e0,_0x277c5b);_0x25bca[_0x4561('0xe')](_0x5d71ee);}else _0x407381[_0x4561('0x3')](_0x407381[_0x4561('0x1')](_0x5cd1ea['end']));_0x5cd1ea['detach'](),_0x55b70d[_0x4561('0x15')](_0x4561('0x7'),{'writer':_0x407381});});}),_0x3162e6[_0x4561('0x1a')][_0x4561('0x14')]['on'](_0x4561('0xd'),_0x8c7d0d(_0x3162e6,_0x4561('0x11')),{'priority':_0x4561('0x5')}),_0x3162e6[_0x4561('0x1a')]['downcastDispatcher']['on'](_0x4561('0x6'),(_0x217fb1,_0x4f1b73,_0xc48802)=>{const _0x5068c7=_0xc48802['mapper'][_0x4561('0xa')](_0x4f1b73[_0x4561('0x12')]);if(_0x5068c7)for(const _0x25e560 of _0x5068c7)_0x25e560[_0x4561('0x18')]('ck-suggestion-marker-split')&&(_0xc48802[_0x4561('0x1d')]['unbindElementFromMarkerName'](_0x25e560,_0x4f1b73[_0x4561('0x12')]),_0xc48802[_0x4561('0x1e')][_0x4561('0x10')](_0x25e560));},{'priority':_0x4561('0x5')}),_0x3162e6[_0x4561('0x19')][_0x4561('0x14')]['on'](_0x4561('0xd'),(_0x3dd412,_0x4cc72d,_0x231458)=>{_0x231458[_0x4561('0x2')]['showSuggestionHighlights']&&_0x8c7d0d(_0x3162e6,_0x4561('0x11'),{'showActiveMarker':!0x1})[_0x4561('0x0')](this)(_0x3dd412,_0x4cc72d,_0x231458);},{'priority':_0x4561('0x5')});}}
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/findandreplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
-
matchCase?: boolean;
|
|
19
|
-
wholeWords?: boolean;
|
|
20
|
-
}):
|
|
21
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/findandreplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for find and replace feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFindAndReplace extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
handleFindCommand(executeCommand: Function, callbackOrText: Function | string, options?: {
|
|
18
|
+
matchCase?: boolean;
|
|
19
|
+
wholeWords?: boolean;
|
|
20
|
+
}): unknown;
|
|
21
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3260=['TrackChangesEditing','bind','getMarkersGroup','findByTextCallback','filter','findPrevious','item','markers','afterInit','replace','createRange','has','model','suggestion:deletion','enableCommand','createPositionAt','plugins','getRange','start','getIntersection','replaceAll','handleFindCommand','string','find','get','editor','findNext','FindAndReplaceEditing','FindAndReplaceUtils'];(function(_0x3b3490,_0x326004){const _0x5bf868=function(_0x4e7065){while(--_0x4e7065){_0x3b3490['push'](_0x3b3490['shift']());}};_0x5bf868(++_0x326004);}(_0x3260,0x15c));const _0x5bf8=function(_0x3b3490,_0x326004){_0x3b3490=_0x3b3490-0x0;let _0x5bf868=_0x3260[_0x3b3490];return _0x5bf868;};import{Plugin as _0x2495a3}from'ckeditor5/src/core';export default class W extends _0x2495a3{[_0x5bf8('0x8')](){if(!this[_0x5bf8('0x19')][_0x5bf8('0x10')][_0x5bf8('0xb')](_0x5bf8('0x1b')))return;const _0x27c21=this[_0x5bf8('0x19')]['plugins'][_0x5bf8('0x18')](_0x5bf8('0x0'));_0x27c21['enableCommand'](_0x5bf8('0x17'),this[_0x5bf8('0x15')][_0x5bf8('0x1')](this)),_0x27c21['enableCommand'](_0x5bf8('0x1a')),_0x27c21[_0x5bf8('0xe')](_0x5bf8('0x5')),_0x27c21[_0x5bf8('0xe')](_0x5bf8('0x9')),_0x27c21[_0x5bf8('0xe')](_0x5bf8('0x14'));}[_0x5bf8('0x15')](_0x291626,_0x10c887,_0x1c7b67={}){const _0x43aa25=this[_0x5bf8('0x19')]['plugins'][_0x5bf8('0x18')](_0x5bf8('0x1c'));if(void 0x0!==_0x1c7b67)return _0x291626(_0x387652=>(_0x5bf8('0x16')==typeof _0x10c887?_0x43aa25[_0x5bf8('0x3')](_0x10c887,_0x1c7b67):_0x10c887)(_0x387652)[_0x5bf8('0x4')](_0x3bb68f=>!0x1===this['_isInDeletionRange'](_0x3bb68f,_0x387652[_0x5bf8('0x6')])),_0x1c7b67);}['_isInDeletionRange'](_0x3e9826,_0x2f8594){const _0xf1eb4c=this['editor'][_0x5bf8('0xc')][_0x5bf8('0xa')](this[_0x5bf8('0x19')][_0x5bf8('0xc')][_0x5bf8('0xf')](_0x2f8594,_0x3e9826[_0x5bf8('0x12')]),this[_0x5bf8('0x19')][_0x5bf8('0xc')]['createPositionAt'](_0x2f8594,_0x3e9826['end']));for(const _0x18222f of this[_0x5bf8('0x19')][_0x5bf8('0xc')][_0x5bf8('0x7')][_0x5bf8('0x2')](_0x5bf8('0xd')))if(null!==_0xf1eb4c[_0x5bf8('0x13')](_0x18222f[_0x5bf8('0x11')]()))return!0x0;return!0x1;}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/font
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for font features.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFont extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/font
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for font features.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFont extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf7=['commandParams','type','fontBackgroundColor','fontSize','afterInit','*Set\x20font\x20background\x20color:*\x20%0','format','*Reset\x20font\x20background\x20color*','fontSize.options','FORMAT_FONT_COLOR','registerDescriptionCallback','_registerLegacyDescription','trim','fontColor.colors','formatInline','locale','commandName','*Set\x20font\x20size:*\x20%0','FORMAT_FONT_SIZE','FORMAT_FONT_FAMILY','FORMAT_FONT_BACKGROUND','_descriptionFactory','normalizeSizeOptions','toLowerCase','FontColorEditing','has','model','editor','label','plugins','FontBackgroundColorEditing','TrackChangesEditing','*Set\x20font\x20color:*\x20%0','FontFamilyEditing','FontSize','get','title','*Reset\x20font\x20size*','fontFamily','fontColor','value','find','*Reset\x20font\x20family*','config','_enableDefaultAttributesIntegration','registerAttributeLabel'];(function(_0x23b430,_0x3bf701){const _0x2b4c73=function(_0x3904a8){while(--_0x3904a8){_0x23b430['push'](_0x23b430['shift']());}};_0x2b4c73(++_0x3bf701);}(_0x3bf7,0xfa));const _0x2b4c=function(_0x23b430,_0x3bf701){_0x23b430=_0x23b430-0x0;let _0x2b4c73=_0x3bf7[_0x23b430];return _0x2b4c73;};import{Plugin as _0x3d8eb7}from'ckeditor5/src/core';import{normalizeColorOptions as _0x301b5b}from'ckeditor5/src/ui';import{getTranslation as _0xbdc967}from'../utils/common-translations';const io=[{'pluginName':'FontSizeEditing','commandName':_0x2b4c('0x1d')},{'pluginName':_0x2b4c('0xd'),'commandName':'fontFamily'},{'pluginName':_0x2b4c('0x4'),'commandName':_0x2b4c('0x13')},{'pluginName':_0x2b4c('0xa'),'commandName':_0x2b4c('0x1c')}];export default class J extends _0x3d8eb7{[_0x2b4c('0x1e')](){const _0x1377e6=this[_0x2b4c('0x7')][_0x2b4c('0x29')],_0x2d4705=this[_0x2b4c('0x7')][_0x2b4c('0x9')][_0x2b4c('0xf')](_0x2b4c('0xb'));for(const {pluginName:_0x5e94d7,commandName:_0x4ea710}of io)this[_0x2b4c('0x7')]['plugins'][_0x2b4c('0x5')](_0x5e94d7)&&_0x2d4705[_0x2b4c('0x18')](_0x4ea710,[_0x4ea710]);_0x1377e6['t'],(_0x2d4705[_0x2b4c('0x1')][_0x2b4c('0x19')](_0x2b4c('0x1d'),_0xbdc967(_0x1377e6,_0x2b4c('0x2c'))),_0x2d4705[_0x2b4c('0x1')]['registerAttributeLabel']('fontFamily',_0xbdc967(_0x1377e6,_0x2b4c('0x2d'))),_0x2d4705[_0x2b4c('0x1')][_0x2b4c('0x19')](_0x2b4c('0x13'),_0xbdc967(_0x1377e6,_0x2b4c('0x23'))),_0x2d4705['_descriptionFactory'][_0x2b4c('0x19')](_0x2b4c('0x1c'),_0xbdc967(_0x1377e6,_0x2b4c('0x0'))),this[_0x2b4c('0x25')]());}[_0x2b4c('0x25')](){const _0x13e05f=this[_0x2b4c('0x7')],_0x20ade6=_0x13e05f['locale'];_0x13e05f['plugins'][_0x2b4c('0xf')](_0x2b4c('0xb'))[_0x2b4c('0x1')][_0x2b4c('0x24')](_0x5647a7=>{const _0x2c4337=_0x20ade6['t'];if(_0x2b4c('0x28')!=_0x5647a7[_0x2b4c('0x1b')])return;const {data:_0x4daf59}=_0x5647a7;if(null!=_0x4daf59){if('fontSize'==_0x4daf59['commandName']){const _0x5d4c8d=_0x4daf59[_0x2b4c('0x1a')][0x0][_0x2b4c('0x14')];if(_0x5d4c8d){const _0x11210a=_0x2c4337(this['editor']['plugins'][_0x2b4c('0xf')](_0x2b4c('0xe'))[_0x2b4c('0x2')](this[_0x2b4c('0x7')]['config'][_0x2b4c('0xf')](_0x2b4c('0x22')))[_0x2b4c('0x15')](_0xa0cddb=>_0xa0cddb[_0x2b4c('0x6')]==_0x5d4c8d)[_0x2b4c('0x10')])['toLowerCase']();return{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,_0x2b4c('0x2b'),_0x11210a)};}return{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,_0x2b4c('0x11'))};}if(_0x2b4c('0x12')==_0x4daf59[_0x2b4c('0x2a')]){const _0x5d75af=_0x4daf59[_0x2b4c('0x1a')][0x0][_0x2b4c('0x14')];return _0x5d75af?{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,'*Set\x20font\x20family:*\x20%0',_0x5d75af)}:{'type':'format','content':_0xbdc967(_0x20ade6,_0x2b4c('0x16'))};}if(_0x2b4c('0x13')==_0x4daf59[_0x2b4c('0x2a')]){const _0x12bfe7=_0x4daf59['commandParams'][0x0][_0x2b4c('0x14')];if(_0x12bfe7){const _0x2f59f5=_0x301b5b(this[_0x2b4c('0x7')][_0x2b4c('0x17')][_0x2b4c('0xf')](_0x2b4c('0x27')))['find'](_0x599cca=>_0x599cca[_0x2b4c('0x6')]==_0x12bfe7);let _0x126aa8=_0x12bfe7,_0x4307c1='';return _0x2f59f5&&(_0x126aa8=_0x2f59f5['label'],_0x4307c1=_0x2c4337(_0x126aa8)[_0x2b4c('0x3')]()),{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,_0x2b4c('0xc'),_0x4307c1)[_0x2b4c('0x26')](),'color':{'value':_0x12bfe7,'title':_0x4307c1||_0x126aa8}};}return{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,'*Reset\x20font\x20color*')};}if(_0x2b4c('0x1c')==_0x4daf59[_0x2b4c('0x2a')]){const _0x3f4ead=_0x4daf59[_0x2b4c('0x1a')][0x0][_0x2b4c('0x14')];if(_0x3f4ead){const _0x1f2c04=_0x301b5b(this['editor'][_0x2b4c('0x17')][_0x2b4c('0xf')]('fontBackgroundColor.colors'))['find'](_0x141863=>_0x141863[_0x2b4c('0x6')]==_0x3f4ead);let _0x200be9=_0x3f4ead,_0x19532a='';return _0x1f2c04&&(_0x200be9=_0x1f2c04[_0x2b4c('0x8')],_0x19532a=_0x2c4337(_0x200be9)[_0x2b4c('0x3')]()),{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,_0x2b4c('0x1f'),_0x19532a)[_0x2b4c('0x26')](),'color':{'value':_0x3f4ead,'title':_0x19532a||_0x200be9}};}return{'type':_0x2b4c('0x20'),'content':_0xbdc967(_0x20ade6,_0x2b4c('0x21'))};}}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/formatpainter
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFormatPainter extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/formatpainter
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFormatPainter extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ff9=['registerDescriptionCallback','join','model','length','_enableDefaultAttributesIntegration','fontColor.colors','format','enableCommand','fontBackgroundColor','type','title','pasteFormat','afterInit','locale','TrackChangesEditing','toLowerCase','config','copyFormat','get','label','normalizeSizeOptions','_registerLegacyDescription','entries','find','formatBlock','boolean','toUpperCase','charAt','*Remove\x20all\x20formatting*','push','commands','FontSize','plugins','editor','commandParams','fontColor','formatInline'];(function(_0x130ab9,_0x2ff9d7){const _0x53795b=function(_0x5b66d0){while(--_0x5b66d0){_0x130ab9['push'](_0x130ab9['shift']());}};_0x53795b(++_0x2ff9d7);}(_0x2ff9,0xb4));const _0x5379=function(_0x130ab9,_0x2ff9d7){_0x130ab9=_0x130ab9-0x0;let _0x53795b=_0x2ff9[_0x130ab9];return _0x53795b;};import{Plugin as _0x1d6f47}from'ckeditor5/src/core';import{normalizeColorOptions as _0x647245}from'ckeditor5/src/ui';import{getTranslation as _0x4ec3b4}from'../utils/common-translations';export default class Q extends _0x1d6f47{[_0x5379('0x11')](){const _0x970c30=this[_0x5379('0x1')],_0x5ab768=_0x970c30[_0x5379('0x0')][_0x5379('0x17')](_0x5379('0x13')),_0x22e779=_0x970c30['commands']['get'](_0x5379('0x16')),_0x5cf379=_0x970c30[_0x5379('0x23')][_0x5379('0x17')](_0x5379('0x10'));_0x22e779&&_0x5cf379&&(_0x5ab768[_0x5379('0x9')](_0x5379('0x10')),_0x5ab768[_0x5379('0xc')](_0x5379('0x16')),this[_0x5379('0x1a')]());}[_0x5379('0x1a')](){const _0x117d8b=this[_0x5379('0x1')],_0x5dda11=_0x117d8b[_0x5379('0x12')];_0x117d8b['plugins'][_0x5379('0x17')](_0x5379('0x13'))['_descriptionFactory'][_0x5379('0x5')](_0x1c6cd2=>{if(_0x5379('0x1d')!=_0x1c6cd2[_0x5379('0xe')]&&_0x5379('0x4')!=_0x1c6cd2['type'])return;const {data:_0x277224}=_0x1c6cd2;if(_0x277224&&_0x5379('0x10')===_0x277224['commandName']){const _0x5cbb93=[],_0x512576=_0x277224[_0x5379('0x2')][0x0];for(const [_0x5860d9,_0x4d5fb3]of Object[_0x5379('0x1b')](_0x512576))_0x5cbb93[_0x5379('0x22')](ao(_0x117d8b,_0x5860d9,_0x4d5fb3));return _0x5cbb93[_0x5379('0x8')]?{'type':_0x5379('0xb'),'content':_0x4ec3b4(_0x5dda11,'*Set\x20format\x20to:*\x20%0',_0x5cbb93[_0x5379('0x6')](',\x20'))}:{'type':'format','content':_0x4ec3b4(_0x5dda11,_0x5379('0x21'))};}});}}function ao(_0x383bbd,_0x28bf0b,_0x380472){const _0x237386=_0x383bbd[_0x5379('0x12')]['t'],_0x5a1e90=_0x28bf0b['split'](/(?=[A-Z])/)[_0x5379('0x6')]('\x20'),_0x48ab3f=_0x237386(_0x5a1e90[_0x5379('0x20')](0x0)[_0x5379('0x1f')]()+_0x5a1e90['slice'](0x1))[_0x5379('0x14')]();if(_0x5379('0x1e')==typeof _0x380472)return _0x48ab3f;if(_0x5379('0x3')===_0x28bf0b||_0x5379('0xd')===_0x28bf0b){const _0x43c762=_0x647245(_0x383bbd[_0x5379('0x15')][_0x5379('0x17')](_0x5379('0xa')))[_0x5379('0x1c')](_0x3e9979=>_0x3e9979[_0x5379('0x7')]==_0x380472);return _0x48ab3f+'\x20('+(_0x43c762?_0x237386(_0x43c762[_0x5379('0x18')])[_0x5379('0x14')]():_0x380472)+')';}if('fontSize'===_0x28bf0b&&isNaN(parseFloat(_0x380472))){const _0x36477e=_0x383bbd[_0x5379('0x0')][_0x5379('0x17')](_0x5379('0x24'))[_0x5379('0x19')](_0x383bbd[_0x5379('0x15')]['get']('fontSize.options'))[_0x5379('0x1c')](_0x31603a=>_0x31603a[_0x5379('0x7')]==_0x380472);return _0x48ab3f+'\x20('+(_0x36477e?_0x237386(_0x36477e[_0x5379('0xf')])['toLowerCase']():_0x380472)+')';}return _0x48ab3f+'\x20('+_0x380472+')';}
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/heading
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for heading feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHeading extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/heading
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for heading feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHeading extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|