@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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/CHANGELOG.md +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- 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 +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cd2=['_suggestionFactory','editor','ImageEditing','has','_handleLegacySuggestions','getSuggestionCallback','format','TrackChangesEditing','registerCustomCallback','_registerLegacyDescription','afterInit','attribute','discard','_descriptionFactory','get','locale','plugins','formatInline','accept','type','registerDescriptionCallback','newValue','_enableDefaultAttributesIntegration','src','*Replace\x20image\x20URL*','replaceImageSource','formatBlock'];(function(_0x50a666,_0x5cd2de){const _0x38b953=function(_0x4e9647){while(--_0x4e9647){_0x50a666['push'](_0x50a666['shift']());}};_0x38b953(++_0x5cd2de);}(_0x5cd2,0x1b7));const _0x38b9=function(_0x50a666,_0x5cd2de){_0x50a666=_0x50a666-0x0;let _0x38b953=_0x5cd2[_0x50a666];return _0x38b953;};import{Plugin as _0x188419}from'ckeditor5/src/core';import{getTranslation as _0x1339a6}from'../utils/common-translations';export default class et extends _0x188419{[_0x38b9('0x3')](){if(!this[_0x38b9('0x15')][_0x38b9('0x9')][_0x38b9('0x17')](_0x38b9('0x16')))return;const _0x62c4da=this[_0x38b9('0x15')][_0x38b9('0x8')],_0x1190bb=this['editor'][_0x38b9('0x9')][_0x38b9('0x7')](_0x38b9('0x0'));_0x1190bb[_0x38b9('0xf')]('replaceImageSource',[],['src']),_0x1190bb['_descriptionFactory']['registerDescriptionCallback'](_0x3bc673=>{if(_0x38b9('0x4')!=_0x3bc673[_0x38b9('0xc')])return;const {data:_0x270770}=_0x3bc673;return _0x270770&&_0x38b9('0x10')==_0x270770['key']?_0x270770[_0x38b9('0xe')]&&_0x270770['oldValue']?{'type':_0x38b9('0x1a'),'content':_0x1339a6(_0x62c4da,_0x38b9('0x11'))}:{'type':'format','content':''}:void 0x0;}),this[_0x38b9('0x18')]();}[_0x38b9('0x18')](){const _0x4eac3b=this[_0x38b9('0x15')]['plugins'][_0x38b9('0x7')](_0x38b9('0x0'));_0x4eac3b['_suggestionFactory'][_0x38b9('0x1')](_0x38b9('0x13'),_0x38b9('0x12'),_0x38b9('0xb'),_0x4eac3b[_0x38b9('0x14')][_0x38b9('0x19')](_0x38b9('0x13'),null,_0x38b9('0x5'))),_0x4eac3b[_0x38b9('0x14')]['registerCustomCallback']('formatBlock',_0x38b9('0x12'),_0x38b9('0x5'),_0x4eac3b[_0x38b9('0x14')][_0x38b9('0x19')](_0x38b9('0x13'),null,_0x38b9('0xb'))),this[_0x38b9('0x2')]();}['_registerLegacyDescription'](){const _0x2d6317=this[_0x38b9('0x15')],_0x2006f4=_0x2d6317[_0x38b9('0x8')];_0x2d6317['plugins'][_0x38b9('0x7')](_0x38b9('0x0'))[_0x38b9('0x6')][_0x38b9('0xd')](_0x23f818=>{if(_0x38b9('0x13')!=_0x23f818[_0x38b9('0xc')]&&_0x38b9('0xa')!=_0x23f818[_0x38b9('0xc')])return;const {data:_0xfbf5a6}=_0x23f818;if(!_0xfbf5a6||_0x38b9('0x12')!=_0xfbf5a6['commandName'])return;return{'type':_0x38b9('0x1a'),'content':_0x1339a6(_0x2006f4,'*Format:*\x20replace\x20image\x20URL')};});}}
|
|
@@ -0,0 +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/image
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImageStyle extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x13ce=['has','start','isEqual','document','getContainedElement','getClosestSelectedImageElement','nodeAfter','imageStylePostApply','commandReversedParams','isBlockImage','isIntersecting','ImageStyleEditing','length','refresh','chain','newRange','getFirstRange','isInlineImage','normalizedStyles','value','getSuggestion','Users','plugins','head','shouldConvertImageType','filter','_findSuggestions','subType','type','markBlockFormat','join','locale','isOwn','markInlineFormat','_suggestionFactory','formatInline','commandName','side','imageStyle','findIndex','_descriptionFactory','ImageUtils','format','setImageNaturalSizeAttributes','next','accept','title','isInContent','get','discard','_registerLegacyDescription','isBefore','editor','registerDescriptionCallback','model','selection','name','discardSuggestion','end','imageTypeInline','convertInlineImageToBlock','imageStylePreApply','toLowerCase','hasSuggestion','formatBlock','suggestion','commands','_splitMarkerName','registerCustomCallback','imageCaption','author','insertion','createRangeOn','TrackChangesEditing'];(function(_0x53fbef,_0x13ce41){const _0xf0edd=function(_0x2602fe){while(--_0x2602fe){_0x53fbef['push'](_0x53fbef['shift']());}};_0xf0edd(++_0x13ce41);}(_0x13ce,0x1c5));const _0xf0ed=function(_0x53fbef,_0x13ce41){_0x53fbef=_0x53fbef-0x0;let _0xf0edd=_0x13ce[_0x53fbef];return _0xf0edd;};import{Plugin as _0x368dee}from'ckeditor5/src/core';import{uid as _0x381f75}from'ckeditor5/src/utils';import{getTranslation as _0x5c7458}from'../utils/common-translations';export default class nt extends _0x368dee{['afterInit'](){const _0x24956f=this[_0xf0ed('0x2b')];if(!_0x24956f['plugins'][_0xf0ed('0x41')]('ImageStyleEditing'))return;const _0x44d47e=_0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x40')),_0x24c874=_0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x20')),_0x298ac0={};_0x44d47e['enableCommand'](_0xf0ed('0x1d'),(_0x4ebe28,_0x4e15ec)=>{const _0x45f0f7=_0x24956f[_0xf0ed('0xd')][_0xf0ed('0x27')](_0xf0ed('0xc'))['me'],_0x5e3290=_0x24956f[_0xf0ed('0x39')]['get'](_0xf0ed('0x1d'));let _0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['selection']),_0x437ff5=_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x3f')](_0x484ccb),_0x75250f=_0x5e3290['value'];if(_0x75250f==_0x4e15ec[_0xf0ed('0xa')])return;const _0x3d0c19={'commandName':_0xf0ed('0x1d'),'commandParams':[_0x4e15ec],'formatGroupId':_0x381f75()};_0x24956f[_0xf0ed('0x2d')]['change'](()=>{if(_0x44d47e['getSuggestions']()['filter'](_0x50d2cd=>_0x50d2cd['isInContent']&&_0x45f0f7==_0x50d2cd[_0xf0ed('0x3d')]&&('formatBlock'==_0x50d2cd[_0xf0ed('0x13')]||'formatInline'==_0x50d2cd[_0xf0ed('0x13')])&&(_0xf0ed('0x34')==_0x50d2cd[_0xf0ed('0x12')]||'imageStylePostApply'==_0x50d2cd[_0xf0ed('0x12')])&&_0x50d2cd[_0xf0ed('0x7')]()[_0xf0ed('0x43')](_0x437ff5))['forEach'](_0x3dbf0d=>_0x44d47e[_0xf0ed('0x30')](_0x3dbf0d[_0xf0ed('0xe')])),_0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['selection']),_0x437ff5=_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x3f')](_0x484ccb),_0x5e3290[_0xf0ed('0x4')](),_0x24956f[_0xf0ed('0x39')][_0xf0ed('0x27')](_0xf0ed('0x32'))[_0xf0ed('0x4')](),_0x24956f[_0xf0ed('0x39')][_0xf0ed('0x27')]('imageTypeBlock')[_0xf0ed('0x4')](),_0x75250f=_0x5e3290[_0xf0ed('0xa')],_0x75250f!=_0x4e15ec[_0xf0ed('0xa')])return _0x24c874[_0xf0ed('0x8')](_0x484ccb)&&_0x5e3290[_0xf0ed('0xf')](_0x4e15ec[_0xf0ed('0xa')],_0x484ccb)?(_0x4ebe28({..._0x4e15ec,'setImageSizes':!0x1}),_0x484ccb=_0x24c874[_0xf0ed('0x46')](_0x24956f['model'][_0xf0ed('0x44')][_0xf0ed('0x2e')]),void _0x44d47e['markBlockFormat'](_0x484ccb,{..._0x3d0c19,'commandReversedParams':[{'value':_0x75250f||null,'setImageSizes':!0x1}]},[],_0xf0ed('0x34'))):void(_0x24c874['isBlockImage'](_0x484ccb)?_0x44d47e[_0xf0ed('0x14')](_0x484ccb,_0x3d0c19,[],_0xf0ed('0x48')):_0x44d47e[_0xf0ed('0x18')](_0x437ff5,_0x3d0c19,_0xf0ed('0x48')));});});for(const _0x2c0810 of _0x24956f['plugins'][_0xf0ed('0x27')](_0xf0ed('0x2'))[_0xf0ed('0x9')])_0x298ac0[_0x2c0810[_0xf0ed('0x2f')]]=_0x2c0810[_0xf0ed('0x25')][_0xf0ed('0x35')]();_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x37'),_0xf0ed('0x34'),'join',()=>!0x1),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')](_0xf0ed('0x37'),_0xf0ed('0x48'),_0xf0ed('0x15'),()=>!0x1),_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x1a'),_0xf0ed('0x48'),_0xf0ed('0x15'),()=>!0x1),_0x44d47e[_0xf0ed('0x19')]['registerCustomCallback'](_0xf0ed('0x37'),'imageStylePreApply',_0xf0ed('0x24'),([_0x2fdda9])=>{_0x24c874[_0xf0ed('0x22')](_0x2fdda9[_0xf0ed('0x45')]());}),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')]('formatBlock',_0xf0ed('0x34'),_0xf0ed('0x28'),(_0x3dd91b,_0x44a172)=>{_0x44d47e[_0xf0ed('0x19')]['getSuggestionCallback'](_0xf0ed('0x37'),'','accept')(_0x3dd91b,{'commandName':_0x44a172['commandName'],'commandParams':_0x44a172[_0xf0ed('0x49')]});}),_0x44d47e[_0xf0ed('0x19')][_0xf0ed('0x3b')](_0xf0ed('0x37'),_0xf0ed('0x34'),_0xf0ed('0x5'),function(_0x10d775,_0x15f691){if(_0x400dac(_0x10d775,_0x15f691))return[_0x10d775,_0x15f691];if(_0x400dac(_0x15f691,_0x10d775))return[_0x15f691,_0x10d775];return null;});const _0x2dd370=[{'type':'formatBlock','subType':_0xf0ed('0x34')},{'type':_0xf0ed('0x3e'),'subType':_0xf0ed('0x3c')},{'type':_0xf0ed('0x37'),'subType':_0xf0ed('0x33')},{'type':_0xf0ed('0x3e'),'subType':_0xf0ed('0x33')}];function _0x400dac(_0x3a9005,_0xb9c2b1){const _0x37044a=_0x2dd370['findIndex'](({type:_0x5c105b,subType:_0x5e7fcf})=>_0x3a9005[_0xf0ed('0x13')]==_0x5c105b&&_0x3a9005[_0xf0ed('0x12')]==_0x5e7fcf),_0x4433eb=_0x2dd370[_0xf0ed('0x1e')](({type:_0x4f616a,subType:_0xd6f7})=>_0xb9c2b1[_0xf0ed('0x13')]==_0x4f616a&&_0xb9c2b1['subType']==_0xd6f7);if(_0x37044a<0x0||_0x4433eb<0x0)return!0x1;const _0x3e8a58=_0x3a9005[_0xf0ed('0x7')](),_0xfde9a5=_0xb9c2b1[_0xf0ed('0x7')]();if((0x0==_0x37044a||0x1==_0x37044a)&&0x2==_0x4433eb&&_0x3e8a58[_0xf0ed('0x1')](_0xfde9a5))return!0x0;if(0x2==_0x37044a&&0x3==_0x4433eb){const _0x5bdb89=_0x44d47e[_0xf0ed('0x11')](_0x3e8a58,_0xf0ed('0x3e'))[_0xf0ed('0x10')](({suggestion:_0x200605,meta:_0x1bc5e5})=>_0x1bc5e5[_0xf0ed('0x17')]&&'convertInlineImageToBlock'==_0x200605[_0xf0ed('0x12')]);if(_0x5bdb89[_0xf0ed('0x3')]>0x1&&_0xfde9a5[_0xf0ed('0x31')][_0xf0ed('0x43')](_0x3e8a58[_0xf0ed('0x42')]))return!0x0;if(0x1==_0x5bdb89[_0xf0ed('0x3')]&&(_0x3e8a58[_0xf0ed('0x42')][_0xf0ed('0x43')](_0xfde9a5['end'])||_0x3e8a58['end'][_0xf0ed('0x43')](_0xfde9a5[_0xf0ed('0x42')])))return!0x0;}if(0x3==_0x37044a&&0x3==_0x4433eb&&_0x3e8a58[_0xf0ed('0x42')][_0xf0ed('0x2a')](_0xfde9a5['start'])){const _0x5cbe16=_0x3e8a58['end'][_0xf0ed('0x47')],_0x25dbd5=_0xfde9a5['start']['nodeBefore'];return _0x24c874[_0xf0ed('0x0')](_0x5cbe16)&&_0x5cbe16===_0x25dbd5;}return!0x1;}_0x24956f[_0xf0ed('0x2d')][_0xf0ed('0x44')]['registerPostFixer'](()=>{let _0x3f18b1=!0x1;const _0xd12ef2=Array['from'](_0x24956f[_0xf0ed('0x2d')]['document']['differ']['getChangedMarkers']());for(const {name:_0x5685e8,data:_0x4c7985}of _0xd12ef2){const {group:_0x58e80d,type:_0x3d0118,subType:_0x505dc9,id:_0x2d666d}=_0x44d47e[_0xf0ed('0x3a')](_0x5685e8);if(_0xf0ed('0x38')==_0x58e80d&&_0x44d47e[_0xf0ed('0x36')](_0x2d666d)){if(_0xf0ed('0x37')==_0x3d0118&&(_0xf0ed('0x34')==_0x505dc9||_0xf0ed('0x48')==_0x505dc9)){const _0x31a928=_0x44d47e['getSuggestion'](_0x2d666d);if(_0x4c7985[_0xf0ed('0x6')]){const _0x409d3c=_0x31a928[_0xf0ed('0x7')]()[_0xf0ed('0x45')]();if(_0x24c874[_0xf0ed('0x0')](_0x409d3c))continue;_0x44d47e['discardSuggestion'](_0x31a928),_0x3f18b1=!0x0;}}if(_0xf0ed('0x3e')==_0x3d0118&&_0xf0ed('0x3c')==_0x505dc9&&!_0x4c7985[_0xf0ed('0x6')]){const _0x3776bf=_0x44d47e[_0xf0ed('0xb')](_0x2d666d);_0x3776bf[_0xf0ed('0x23')]&&_0x3776bf[_0xf0ed('0x23')][_0xf0ed('0x26')]&&(_0x44d47e[_0xf0ed('0x30')](_0x3776bf[_0xf0ed('0x23')]),_0x3f18b1=!0x0);}}}return _0x3f18b1;}),this[_0xf0ed('0x29')](_0x298ac0);}[_0xf0ed('0x29')](_0x351f6d){const _0x3d8e8c=this[_0xf0ed('0x2b')],_0xb4b46a=_0x3d8e8c[_0xf0ed('0x16')];_0x3d8e8c['plugins']['get']('TrackChangesEditing')[_0xf0ed('0x1f')][_0xf0ed('0x2c')](_0x2dd79f=>{if('formatBlock'!=_0x2dd79f[_0xf0ed('0x13')]&&_0xf0ed('0x1a')!=_0x2dd79f[_0xf0ed('0x13')])return;const {data:_0x360490}=_0x2dd79f;if(!_0x360490||_0xf0ed('0x1d')!=_0x360490[_0xf0ed('0x1b')])return;const _0x414179=_0x360490['commandParams'][0x0][_0xf0ed('0xa')];return _0x209b7e(_0xf0ed('0x1c')===_0x414179?_0x5c7458(_0xb4b46a,'FORMAT_SIDE_IMAGE'):_0x351f6d[_0x414179]||_0x414179);function _0x209b7e(_0x247174){return{'type':_0xf0ed('0x21'),'content':_0x5c7458(_0xb4b46a,'*Format:*\x20%0',_0x247174)};}});}}
|
|
@@ -1,18 +1,18 @@
|
|
|
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/importword
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
-
constructor(editor: Editor);
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
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/importword
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
+
constructor(editor: Editor);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4345=['commands','listenTo','dataInsert','editor','_trackChangesExecuted','get','_handleImportedData','high','track_changes','lowest','trackChanges','plugins','enableCommand','collaboration_features','bind','forEach','afterInit','value','_trackChangesValueDuringImport','TrackChangesEditing','importWord','execute','_setSuggestionData'];(function(_0x4724c6,_0x434510){const _0x3bd15f=function(_0x3ed2de){while(--_0x3ed2de){_0x4724c6['push'](_0x4724c6['shift']());}};_0x3bd15f(++_0x434510);}(_0x4345,0x76));const _0x3bd1=function(_0x4724c6,_0x434510){_0x4724c6=_0x4724c6-0x0;let _0x3bd15f=_0x4345[_0x4724c6];return _0x3bd15f;};import{Plugin as _0x25e2aa}from'ckeditor5/src/core';export default class st extends _0x25e2aa{constructor(_0x9c9ffe){super(_0x9c9ffe),this[_0x3bd1('0xf')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x3bd1('0xd')](){const _0x4b5a09=this[_0x3bd1('0x0')],_0x36489d=_0x4b5a09[_0x3bd1('0x14')][_0x3bd1('0x2')]('importWord'),_0x36a107=_0x4b5a09['commands']['get'](_0x3bd1('0x7'));_0x36489d&&(_0x36489d['on']('execute',(_0x38f9f7,[,_0x4f4ad0])=>{this[_0x3bd1('0xf')]=_0x36a107[_0x3bd1('0xe')],_0x4f4ad0[_0x3bd1('0xa')][_0x3bd1('0x5')]=!this[_0x3bd1('0xf')];},{'priority':_0x3bd1('0x4')}),this['listenTo'](_0x36489d,'dataInsert',this[_0x3bd1('0x3')][_0x3bd1('0xb')](this)),this[_0x3bd1('0x15')](_0x36489d,_0x3bd1('0x16'),()=>{this[_0x3bd1('0x1')]&&(_0x36a107[_0x3bd1('0x12')](),this[_0x3bd1('0x1')]=!0x1);},{'priority':_0x3bd1('0x6')}),_0x4b5a09[_0x3bd1('0x8')][_0x3bd1('0x2')](_0x3bd1('0x10'))[_0x3bd1('0x9')]('importWord'));}[_0x3bd1('0x3')](_0x18709b,_0x41a595){const {suggestions:_0x4ff374}=_0x41a595,_0x2c6b80=this[_0x3bd1('0x0')][_0x3bd1('0x14')][_0x3bd1('0x2')](_0x3bd1('0x7')),_0x3db578=_0x2c6b80[_0x3bd1('0xe')];this['_trackChangesValueDuringImport']!==_0x3db578&&(_0x2c6b80[_0x3bd1('0x12')](),this['_trackChangesExecuted']=!0x0),_0x4ff374&&_0x4ff374[_0x3bd1('0xc')](({id:_0x650443,type:_0x22e7e2,author:_0x178939,created_at:_0x41f0e6})=>{const _0x5cfc44={'id':_0x650443,'type':_0x22e7e2,'authorId':this[_0x3bd1('0x0')][_0x3bd1('0x8')][_0x3bd1('0x2')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x178939,'createdAt':_0x41f0e6?new Date(_0x41f0e6):new Date(),'source':_0x3bd1('0x11')}}};this[_0x3bd1('0x0')][_0x3bd1('0x8')][_0x3bd1('0x2')](_0x3bd1('0x10'))[_0x3bd1('0x13')](_0x5cfc44);});}}
|
|
@@ -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/indent
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesIndent 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/indent
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesIndent extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dcf=['_registerLegacyDescription','formatBlock','outdentBlock','enableCommand','commandName','registerAttributeLabel','get','locale','TrackChangesEditing','registerDescriptionCallback','indentBlock','has','blockIndent','IndentBlock','_descriptionFactory','afterInit','getItems','_registerBlockAttribute','format','indent','plugins','type','_enableDefaultAttributesIntegration','IndentEditing','editor','outdent','getItemLabel'];(function(_0x3dbeb4,_0x2dcf37){const _0x1a4dfe=function(_0x188874){while(--_0x188874){_0x3dbeb4['push'](_0x3dbeb4['shift']());}};_0x1a4dfe(++_0x2dcf37);}(_0x2dcf,0x167));const _0x1a4d=function(_0x3dbeb4,_0x2dcf37){_0x3dbeb4=_0x3dbeb4-0x0;let _0x1a4dfe=_0x2dcf[_0x3dbeb4];return _0x1a4dfe;};import{Plugin as _0xea208c}from'ckeditor5/src/core';import{getTranslation as _0xa420e4}from'../utils/common-translations';export default class ot extends _0xea208c{[_0x1a4d('0x7')](){const _0x1bad01=this[_0x1a4d('0x10')],_0x12e59c=_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x19')](_0x1a4d('0x0'));if(_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x3')](_0x1a4d('0xf'))&&(_0x12e59c[_0x1a4d('0x16')](_0x1a4d('0xb')),_0x12e59c['enableCommand'](_0x1a4d('0x11'))),_0x1bad01[_0x1a4d('0xc')][_0x1a4d('0x3')](_0x1a4d('0x5')))for(const _0x20d944 of[_0x1a4d('0x2'),_0x1a4d('0x15')])_0x12e59c[_0x1a4d('0xe')](_0x20d944);const _0x4bb857=_0x1bad01[_0x1a4d('0x1a')];_0x12e59c[_0x1a4d('0x9')](_0x1a4d('0x4')),_0x12e59c[_0x1a4d('0x6')][_0x1a4d('0x18')](_0x1a4d('0x4'),_0xa420e4(_0x4bb857,'FORMAT_INDENT')),this[_0x1a4d('0x13')]();}['_registerLegacyDescription'](){const _0x3dc260=this[_0x1a4d('0x10')],_0x2adbb1=_0x3dc260[_0x1a4d('0x1a')],_0x4c067a=_0x3dc260[_0x1a4d('0xc')][_0x1a4d('0x19')]('TrackChangesEditing');_0x4c067a[_0x1a4d('0x6')][_0x1a4d('0x1')](_0xfca25f=>{if(_0x1a4d('0x14')!=_0xfca25f[_0x1a4d('0xd')])return;const {data:_0xd1dd93}=_0xfca25f;if(!_0xd1dd93)return;if(_0x1a4d('0x2')!=_0xd1dd93[_0x1a4d('0x17')]&&_0x1a4d('0x15')!=_0xd1dd93['commandName'])return;const _0x5eed9b=_0xfca25f[_0x1a4d('0x8')]()[0x0],_0x128eb4=_0x4c067a['_descriptionFactory'][_0x1a4d('0x12')](_0x5eed9b);return _0x1a4d('0x2')==_0xd1dd93[_0x1a4d('0x17')]?{'type':_0x1a4d('0xa'),'content':_0xa420e4(_0x2adbb1,'*Indent:*\x20%0',_0x128eb4)}:_0x1a4d('0x15')==_0xd1dd93[_0x1a4d('0x17')]?{'type':_0x1a4d('0xa'),'content':_0xa420e4(_0x2adbb1,'*Outdent:*\x20%0',_0x128eb4)}:void 0x0;});}}
|
|
@@ -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/inputcommand/inputcommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Input } from 'ckeditor5/src/typing';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesInputCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof Input];
|
|
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/inputcommand/inputcommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Input } from 'ckeditor5/src/typing';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesInputCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof Input];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x14ab=['init','plugins','get','editor','enableCommand','TrackChangesEditing','requires'];(function(_0x111629,_0x14abd7){var _0x4c6400=function(_0x2f5e34){while(--_0x2f5e34){_0x111629['push'](_0x111629['shift']());}};_0x4c6400(++_0x14abd7);}(_0x14ab,0xab));var _0x4c64=function(_0x111629,_0x14abd7){_0x111629=_0x111629-0x0;var _0x4c6400=_0x14ab[_0x111629];return _0x4c6400;};import{Plugin as _0x33d522}from'ckeditor5/src/core';import{Input as _0x26591c}from'ckeditor5/src/typing';export default class rt extends _0x33d522{static get[_0x4c64('0x3')](){return[_0x26591c];}[_0x4c64('0x4')](){this[_0x4c64('0x0')][_0x4c64('0x5')][_0x4c64('0x6')](_0x4c64('0x2'))[_0x4c64('0x1')]('input');}}
|
|
@@ -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/link
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for link feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesLink 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/link
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for link feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesLink extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30b1=['key','label','format','LinkEditing','type','has','commandParams','plugins','locale','registerDescriptionCallback','*Remove\x20link*','_descriptionFactory','_enableDefaultAttributesIntegration','get','commandName','unlink','newValue','*Set\x20link:*\x20%0','attribute','editor','manualDecorators','linkHref','link','toLowerCase','commands','TrackChangesEditing','map','_registerLegacyDescription'];(function(_0x51d795,_0x30b1e8){const _0x28c3d6=function(_0x3ecb68){while(--_0x3ecb68){_0x51d795['push'](_0x51d795['shift']());}};_0x28c3d6(++_0x30b1e8);}(_0x30b1,0x1bc));const _0x28c3=function(_0x51d795,_0x30b1e8){_0x51d795=_0x51d795-0x0;let _0x28c3d6=_0x30b1[_0x51d795];return _0x28c3d6;};import{Plugin as _0x271ecc}from'ckeditor5/src/core';import{getTranslation as _0x43f76a}from'../utils/common-translations';export default class at extends _0x271ecc{['afterInit'](){const _0x14eb09=this['editor'];if(!_0x14eb09[_0x28c3('0xb')][_0x28c3('0x9')](_0x28c3('0x7')))return;const _0x2d460a=_0x14eb09[_0x28c3('0xb')][_0x28c3('0x11')](_0x28c3('0x1')),_0x341d1e=_0x14eb09[_0x28c3('0x0')][_0x28c3('0x11')](_0x28c3('0x1a'));_0x2d460a[_0x28c3('0x10')](_0x28c3('0x1a'),['linkHref',..._0x341d1e[_0x28c3('0x18')][_0x28c3('0x2')](_0x5c953c=>_0x5c953c['id'])]),_0x2d460a['_enableDefaultAttributesIntegration'](_0x28c3('0x13'));for(const _0x5271ac of _0x341d1e[_0x28c3('0x18')])_0x2d460a['_descriptionFactory']['registerAttributeLabel'](_0x5271ac['id'],'link\x20('+_0x5271ac[_0x28c3('0x5')][_0x28c3('0x1b')]()+')');_0x2d460a[_0x28c3('0xf')][_0x28c3('0xd')](_0x373192=>{if(_0x28c3('0x16')!=_0x373192[_0x28c3('0x8')])return;const {data:_0x4c1ef8}=_0x373192;if(!_0x4c1ef8||_0x28c3('0x19')!=_0x4c1ef8[_0x28c3('0x4')])return;const _0x15c5c9=_0x4c1ef8[_0x28c3('0x14')],_0x1f4827=_0x14eb09['locale'];return{'type':'format','content':null==_0x15c5c9?_0x43f76a(_0x1f4827,'*Remove\x20link*'):_0x43f76a(_0x1f4827,_0x28c3('0x15'),'\x22'+_0x15c5c9+'\x22')};}),this[_0x28c3('0x3')]();}[_0x28c3('0x3')](){const _0x22a452=this[_0x28c3('0x17')],_0x318032=_0x22a452[_0x28c3('0xc')];_0x22a452[_0x28c3('0xb')][_0x28c3('0x11')](_0x28c3('0x1'))[_0x28c3('0xf')][_0x28c3('0xd')](_0x23e8d4=>{if('formatInline'!=_0x23e8d4[_0x28c3('0x8')])return;const {data:_0x4c0a6b}=_0x23e8d4;if(_0x4c0a6b){if(_0x28c3('0x1a')==_0x4c0a6b[_0x28c3('0x12')]){const _0x2b66b6=_0x4c0a6b[_0x28c3('0xa')][0x0];return{'type':'format','content':_0x43f76a(_0x318032,_0x28c3('0x15'),'\x22'+_0x2b66b6+'\x22')};}return _0x28c3('0x13')==_0x4c0a6b[_0x28c3('0x12')]?{'type':_0x28c3('0x6'),'content':_0x43f76a(_0x318032,_0x28c3('0xe'))}:void 0x0;}});}}
|
|
@@ -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/list
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for list feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesList 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/list
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5745=['ListEditing','parent','enableCommand','document','end','has','bulleted','*Uncheck\x20item*','getAttribute','format','checkChild','outdentList','element','before','model','_descriptionFactory','commandName','get','registerDescriptionCallback','registerElementLabel','execute','formatInline','slice','checkTodoList','createPositionAt','value','replace','numbered','locale','paragraph','nextSibling','ELEMENT_TODO_LIST','blockName','getSelectedBlocks','*Change\x20to:*\x20%0','numberedList','change','name','plugins','_selectedElements','ELEMENT_LIST_ITEM','bulletedList','List','isObject','filter','formatBlock','schema','previousSibling','listItem','TodoListEditing','length','selection','listType','listIndent','indentList','todoList','commands','todoListChecked','TrackChangesEditing','type','add','markBlockFormat','from'];(function(_0x570564,_0x5745a7){const _0x196d87=function(_0x4cb950){while(--_0x4cb950){_0x570564['push'](_0x570564['shift']());}};_0x196d87(++_0x5745a7);}(_0x5745,0x1d1));const _0x196d=function(_0x570564,_0x5745a7){_0x570564=_0x570564-0x0;let _0x196d87=_0x5745[_0x570564];return _0x196d87;};import{Plugin as _0x49227e}from'ckeditor5/src/core';import{getTranslation as _0x2c6bd2}from'../utils/common-translations';export default class ct extends _0x49227e{['afterInit'](){const _0x1f8ab8=this['editor'],_0x184384=_0x1f8ab8[_0x196d('0x4')];if(!_0x1f8ab8[_0x196d('0xe')]['has'](_0x196d('0x27')))return;const _0x15be9e=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x38')](_0x196d('0x22')),_0x432678=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x2c')](_0x196d('0x19'));function _0x2ded01(_0x4b3347){return()=>{const _0x210642=_0x1f8ab8[_0x196d('0x35')][_0x196d('0x2a')]['selection'],_0x216ab0=_0x1f8ab8['commands'][_0x196d('0x38')](_0x4b3347);if(_0x216ab0['value'])return void _0x1f8ab8[_0x196d('0x3b')](_0x196d('0x5'),{});const _0x1eefc3=_0x4b3347[_0x196d('0x3d')](0x0,-0x4),_0x752e8a=function(_0x523f79,_0x169a03,_0x171733){let _0x11789f=Array[_0x196d('0x26')](_0x523f79)['filter'](_0x1575a9=>function(_0x3e3f16,_0x33c397){return _0x33c397[_0x196d('0x31')](_0x3e3f16[_0x196d('0x28')],_0x196d('0x18'))&&!_0x33c397[_0x196d('0x13')](_0x3e3f16);}(_0x1575a9,_0x171733));_0x11789f=_0x11789f[_0x196d('0x14')](_0x3dc347=>!_0x3dc347['is'](_0x196d('0x33'),_0x196d('0x18'))||_0x3dc347[_0x196d('0x2f')](_0x196d('0x1c'))!=_0x169a03);const _0x2c510a=new Set();for(const _0x54b396 of _0x11789f)_0x54b396['is'](_0x196d('0x33'),_0x196d('0x18'))?_0x2c510a['add'](ne(_0x54b396)):_0x2c510a[_0x196d('0x24')](_0x54b396);return Array[_0x196d('0x26')](_0x2c510a);}(_0x210642[_0x196d('0x9')](),_0x1eefc3,_0x1f8ab8['model'][_0x196d('0x16')]);_0x1f8ab8[_0x196d('0x35')]['change'](()=>{for(const _0x594ffb of _0x752e8a)_0x15be9e['markBlockFormat'](_0x594ffb,{'commandName':_0x4b3347,'commandParams':[{'forceValue':!_0x216ab0['value']}],'formatGroupId':_0x196d('0x8')},oe(_0x594ffb));});};}function _0x29d136(_0x4af68a){return()=>{const _0x266e25=function(_0x291fd9){let _0x3d3bc0=Array[_0x196d('0x26')](_0x291fd9);const _0x371ea4=_0x3d3bc0['findIndex'](_0x356535=>_0x196d('0x18')!=_0x356535[_0x196d('0xd')]);return _0x371ea4>-0x1&&(_0x3d3bc0=_0x3d3bc0[_0x196d('0x3d')](0x0,_0x371ea4)),_0x3d3bc0;}(_0x1f8ab8['model'][_0x196d('0x2a')][_0x196d('0x1b')][_0x196d('0x9')]()),_0x2ccbb2=_0x1f8ab8[_0x196d('0x35')]['createRange'](_0x1f8ab8[_0x196d('0x35')]['createPositionAt'](_0x266e25[0x0],_0x196d('0x34')),_0x1f8ab8[_0x196d('0x35')][_0x196d('0x0')](_0x266e25[_0x266e25[_0x196d('0x1a')]-0x1],_0x196d('0x2b')));_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{_0x15be9e[_0x196d('0x25')](_0x2ccbb2,{'commandName':_0x4af68a,'commandParams':[],'formatGroupId':_0x196d('0x1d')},function(_0x457f3a){const _0x2932ec=new Set();for(const _0x4bb0ea of _0x457f3a){let _0x37d916=_0x4bb0ea[_0x196d('0x6')];for(;_0x37d916&&_0x37d916[_0x196d('0x2f')]('listIndent')>_0x4bb0ea['getAttribute'](_0x196d('0x1d'));)_0x2932ec[_0x196d('0x24')](_0x37d916),_0x37d916=_0x37d916[_0x196d('0x6')];}return Array['from'](_0x2932ec);}(_0x266e25));});};}_0x15be9e[_0x196d('0x29')](_0x196d('0xb'),_0x2ded01('numberedList')),_0x15be9e[_0x196d('0x29')](_0x196d('0x11'),_0x2ded01(_0x196d('0x11'))),_0x432678&&_0x15be9e['enableCommand'](_0x196d('0x1f'),_0x2ded01(_0x196d('0x1f'))),_0x15be9e['enableCommand'](_0x196d('0x1e'),_0x29d136(_0x196d('0x1e'))),_0x15be9e['enableCommand']('outdentList',_0x29d136(_0x196d('0x32'))),_0x432678&&_0x15be9e[_0x196d('0x29')](_0x196d('0x3e'),()=>{const _0x98f564=_0x1f8ab8[_0x196d('0x20')][_0x196d('0x38')]('checkTodoList'),_0x1d64cd=Array[_0x196d('0x26')](_0x98f564[_0x196d('0xf')]);_0x1d64cd[_0x196d('0x14')](_0x3037a7=>_0x3037a7[_0x196d('0x2f')](_0x196d('0x21'))!=_0x98f564[_0x196d('0x1')]),_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{for(const _0x4fcb74 of _0x1d64cd)_0x15be9e[_0x196d('0x25')](_0x4fcb74,{'commandName':_0x196d('0x3e'),'commandParams':[{'forceValue':!_0x98f564[_0x196d('0x1')]}]});});}),_0x15be9e[_0x196d('0x36')][_0x196d('0x3a')](_0x196d('0x18'),_0x1e44c7=>_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM',_0x1e44c7)),_0x15be9e[_0x196d('0x36')][_0x196d('0x39')](_0x1619ea=>{if(_0x196d('0x15')!=_0x1619ea['type']&&_0x196d('0x3c')!=_0x1619ea[_0x196d('0x23')])return;const {data:_0x4843ef}=_0x1619ea;if(_0x4843ef){if(_0x196d('0xb')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x11')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x1f')==_0x4843ef['commandName'])switch(_0x4843ef['commandName'][_0x196d('0x2')](_0x196d('0x12'),'')){case _0x196d('0x2d'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_BULLETED_LIST'));case _0x196d('0x3'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58ea2f(_0x2c6bd2(_0x184384,_0x196d('0x7')));}if('indentList'==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Indent:*\x20%0',_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM'))};if(_0x196d('0x32')==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Outdent:*\x20%0',_0x2c6bd2(_0x184384,_0x196d('0x10')))};if(_0x196d('0x3e')==_0x4843ef[_0x196d('0x37')])return _0x4843ef['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x2c6bd2(_0x184384,'*Check\x20item*')}:{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0x2e'))};}function _0x58ea2f(_0x2445b8){return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0xa'),_0x2445b8)};}});}}function ne(_0xf62253){const _0x538eea=_0xf62253['getAttribute'](_0x196d('0x1d'));if(0x0==_0x538eea)return _0xf62253;let _0x45912e=_0xf62253;for(;_0xf62253[_0x196d('0x17')]&&_0xf62253['previousSibling']['is'](_0x196d('0x33'),_0x196d('0x18'));){const _0x7b329f=_0xf62253[_0x196d('0x17')][_0x196d('0x2f')]('listIndent');if(_0x7b329f==_0x538eea)_0x45912e=_0xf62253[_0x196d('0x17')];else{if(_0x7b329f<_0x538eea)break;}_0xf62253=_0xf62253[_0x196d('0x17')];}return _0x45912e;}function oe(_0x393be0){const _0x3d6b02=[];if(_0x393be0['is'](_0x196d('0x33'),'listItem')&&_0x393be0['getAttribute'](_0x196d('0x1d'))>0x0){let _0x410c0b=_0x393be0['nextSibling'];for(;_0x410c0b&&_0x196d('0x18')==_0x410c0b[_0x196d('0xd')]&&_0x410c0b[_0x196d('0x2f')](_0x196d('0x1d'))==_0x393be0['getAttribute']('listIndent');)_0x3d6b02['push'](_0x410c0b),_0x410c0b=_0x410c0b['nextSibling'];}return _0x3d6b02;}
|
|
@@ -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/listproperties
|
|
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 list properties feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class TrackChangesListProperties 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/listproperties
|
|
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 list properties feature.
|
|
13
|
+
*/
|
|
14
|
+
export default class TrackChangesListProperties 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 _0x5800=['forward','markMultiRangeBlockFormat','listReversed','listStyle','get','has','plugins','reversed','backward','flat','model','toUpperCase','listStart','startIndex','from','selection','_getSuggestionBlocks','_getSuggestionBlocksForListStyle','format','ListUtils','createRange','config','createPositionAt','ELEMENT_','getFirstPosition','*Format:*\x20set\x20order\x20to\x20regular','styles','formatInline','unshift','filter','type','length','getSelectedBlocks','parent','getSiblingNodes','_getTranslationKeyForListStyle','getAttribute','registerDescriptionCallback','map','element','*Format:*\x20set\x20order\x20to\x20reversed','TrackChangesEditing','editor','formatBlock','enableCommand','listItem','handleListStyleCommand','handleDescriptions','afterInit','*Format:*\x20set\x20start\x20index\x20to\x20%0','replace','ListPropertiesEditing','getListTypeFromListStyleType','numbered','_LIST_','before','bind','handleListReversedCommand','change','document','push','commandParams'];(function(_0x1f5b18,_0x580044){const _0x2a8df8=function(_0x5dc431){while(--_0x5dc431){_0x1f5b18['push'](_0x1f5b18['shift']());}};_0x2a8df8(++_0x580044);}(_0x5800,0xe7));const _0x2a8d=function(_0x1f5b18,_0x580044){_0x1f5b18=_0x1f5b18-0x0;let _0x2a8df8=_0x5800[_0x1f5b18];return _0x2a8df8;};import{Plugin as _0x2b4bc6}from'ckeditor5/src/core';import{getTranslation as _0x435b80}from'../utils/common-translations';export default class ut extends _0x2b4bc6{[_0x2a8d('0x3')](){if(!this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x16')](_0x2a8d('0x6')))return;const _0x5d9753=this[_0x2a8d('0x3b')][_0x2a8d('0x26')][_0x2a8d('0x15')]('list.properties'),_0x45fc73=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')](_0x2a8d('0x3a'));_0x5d9753[_0x2a8d('0x2b')]&&_0x45fc73['enableCommand'](_0x2a8d('0x14'),this[_0x2a8d('0x1')]['bind'](this)),_0x5d9753[_0x2a8d('0x18')]&&_0x45fc73[_0x2a8d('0x3d')](_0x2a8d('0x13'),this[_0x2a8d('0xc')][_0x2a8d('0xb')](this)),_0x5d9753[_0x2a8d('0x1e')]&&_0x45fc73[_0x2a8d('0x3d')](_0x2a8d('0x1d'),this['handleListStartCommand']['bind'](this)),_0x45fc73['_descriptionFactory'][_0x2a8d('0x36')](this[_0x2a8d('0x2')][_0x2a8d('0xb')](this));}[_0x2a8d('0x1')](_0x3f5976,_0x34ec00={}){const _0x3e808f=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x1b2627=this[_0x2a8d('0x22')]();this[_0x2a8d('0x3b')][_0x2a8d('0x1b')]['change'](()=>{_0x3e808f[_0x2a8d('0x12')](_0x1b2627,{'commandName':'listStyle','commandParams':[{'type':_0x34ec00[_0x2a8d('0x2f')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b8391,_0x406637={}){const _0x423176=this[_0x2a8d('0x3b')]['plugins'][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x8d8dbb=this[_0x2a8d('0x21')](_0x2c5ab4=>_0x2c5ab4['is'](_0x2a8d('0x38'),_0x2a8d('0x0'))&&_0x2a8d('0x8')===_0x2c5ab4[_0x2a8d('0x35')]('listType'));if(_0x8d8dbb[_0x2a8d('0x30')]<0x1)return;const _0x224d09=_0x8d8dbb['map'](_0x2ba5f3=>this['editor'][_0x2a8d('0x1b')][_0x2a8d('0x25')](this[_0x2a8d('0x3b')]['model'][_0x2a8d('0x27')](_0x2ba5f3,_0x2a8d('0xa')),this[_0x2a8d('0x3b')][_0x2a8d('0x1b')]['createPositionAt'](_0x2ba5f3,0x0)));this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xd')](()=>{_0x423176[_0x2a8d('0x12')](_0x224d09,{'commandName':_0x2a8d('0x13'),'commandParams':[{'reversed':_0x406637['reversed']}],'formatGroupId':_0x2a8d('0x13')});});}['handleListStartCommand'](_0x80279a,_0x19f4ec={}){const _0x2ccebe=this[_0x2a8d('0x3b')]['plugins'][_0x2a8d('0x15')](_0x2a8d('0x3a')),_0x4217f5=this[_0x2a8d('0x21')](_0xea2796=>_0xea2796['is'](_0x2a8d('0x38'),_0x2a8d('0x0'))&&_0x2a8d('0x8')===_0xea2796[_0x2a8d('0x35')]('listType'));if(_0x4217f5[_0x2a8d('0x30')]<0x1)return;const _0x3d6cac=_0x4217f5[_0x2a8d('0x37')](_0x161cc2=>this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0x25')](this[_0x2a8d('0x3b')]['model']['createPositionAt'](_0x161cc2,_0x2a8d('0xa')),this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0x27')](_0x161cc2,0x0)));this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xd')](()=>{_0x2ccebe[_0x2a8d('0x12')](_0x3d6cac,{'commandName':_0x2a8d('0x1d'),'commandParams':[{'startIndex':_0x19f4ec[_0x2a8d('0x1e')]}],'formatGroupId':_0x2a8d('0x1d')});});}[_0x2a8d('0x2')](_0x53792f){if(_0x2a8d('0x3c')!=_0x53792f['type']&&_0x2a8d('0x2c')!=_0x53792f[_0x2a8d('0x2f')])return;const _0xafec10=this[_0x2a8d('0x3b')]['locale'],{data:_0x9d7f2d}=_0x53792f;if(!_0x9d7f2d)return;let _0x41d9d8,_0x126f7b;switch(_0x9d7f2d['commandName']){case _0x2a8d('0x14'):_0x41d9d8='*Change\x20to:*\x20%0',_0x126f7b={'type':'format','content':_0x435b80(_0xafec10,_0x41d9d8,_0x435b80(_0xafec10,this[_0x2a8d('0x34')](_0x9d7f2d[_0x2a8d('0x10')][0x0]['type'])))};break;case _0x2a8d('0x13'):_0x41d9d8=_0x9d7f2d[_0x2a8d('0x10')][0x0][_0x2a8d('0x18')]?_0x2a8d('0x39'):_0x2a8d('0x2a'),_0x126f7b={'type':_0x2a8d('0x23'),'content':_0x435b80(_0xafec10,_0x41d9d8)};break;case _0x2a8d('0x1d'):_0x41d9d8=_0x2a8d('0x4'),_0x126f7b={'type':'format','content':_0x435b80(_0xafec10,_0x41d9d8,_0x9d7f2d[_0x2a8d('0x10')][0x0][_0x2a8d('0x1e')])};}return _0x126f7b;}[_0x2a8d('0x22')](){var _0x1577f8,_0x419292,_0x2962b6,_0x191eff;const _0x1ce893=this[_0x2a8d('0x3b')]['plugins']['get']('ListUtils');let _0x155dbb=Array[_0x2a8d('0x1f')](this[_0x2a8d('0x3b')][_0x2a8d('0x1b')][_0x2a8d('0xe')]['selection'][_0x2a8d('0x31')]());return(null===(_0x1577f8=_0x155dbb[0x0])||void 0x0===_0x1577f8?void 0x0:_0x1577f8['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))&&_0x155dbb[_0x2a8d('0x2d')](..._0x1ce893[_0x2a8d('0x33')](this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')][_0x2a8d('0x20')][_0x2a8d('0x29')](),_0x2a8d('0x19'))),(null===(_0x419292=_0x155dbb[_0x155dbb[_0x2a8d('0x30')]-0x1])||void 0x0===_0x419292?void 0x0:_0x419292['is'](_0x2a8d('0x38'),'listItem'))&&_0x155dbb[_0x2a8d('0xf')](..._0x1ce893[_0x2a8d('0x33')](this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')][_0x2a8d('0x20')]['getLastPosition'](),'forward')),_0x155dbb=[...new Set(_0x155dbb)],(null===(_0x191eff=null===(_0x2962b6=this['editor'][_0x2a8d('0x1b')][_0x2a8d('0xe')]['selection'][_0x2a8d('0x29')]())||void 0x0===_0x2962b6?void 0x0:_0x2962b6[_0x2a8d('0x32')])||void 0x0===_0x191eff?void 0x0:_0x191eff['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))&&(_0x155dbb=_0x155dbb[_0x2a8d('0x2e')](_0x4f88b6=>_0x4f88b6['is'](_0x2a8d('0x38'),_0x2a8d('0x0')))),_0x155dbb;}['_getSuggestionBlocks'](_0xd9a9df){const _0x2b65df=this[_0x2a8d('0x3b')][_0x2a8d('0x17')][_0x2a8d('0x15')]('ListUtils');let _0x532b83=Array['from'](this['editor'][_0x2a8d('0x1b')]['document'][_0x2a8d('0x20')][_0x2a8d('0x31')]())[_0x2a8d('0x2e')](_0xd9a9df)[_0x2a8d('0x37')](_0x499c98=>{const _0x9f7683=this[_0x2a8d('0x3b')]['model']['createPositionAt'](_0x499c98,0x0);return[..._0x2b65df['getSiblingNodes'](_0x9f7683,_0x2a8d('0x19')),..._0x2b65df[_0x2a8d('0x33')](_0x9f7683,_0x2a8d('0x11'))];})[_0x2a8d('0x1a')]();return _0x532b83=[...new Set(_0x532b83)],_0x532b83;}[_0x2a8d('0x34')](_0x2e5370){return _0x2a8d('0x28')+this['editor']['plugins'][_0x2a8d('0x15')](_0x2a8d('0x24'))[_0x2a8d('0x7')](_0x2e5370)[_0x2a8d('0x1c')]()+_0x2a8d('0x9')+_0x2e5370[_0x2a8d('0x1c')]()[_0x2a8d('0x5')](/-/g,'_');}}
|