@ckeditor/ckeditor5-track-changes 39.0.2 → 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/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 +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/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +0 -6
- 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.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +0 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +26 -11
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +25 -5
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -69
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +59 -2
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4378=['get','locale','registerCustomCallback','TrackChangesEditing','format','editor','getSuggestionCallback','accept','_handleLegacySuggestions','plugins','key','registerDescriptionCallback','_registerLegacyDescription','_descriptionFactory','type','_enableDefaultAttributesIntegration','_suggestionFactory','src','ImageEditing','formatBlock','discard','replaceImageSource','formatInline','*Replace\x20image\x20URL*'];(function(_0xba6dff,_0x437887){const _0x35b411=function(_0x10493b){while(--_0x10493b){_0xba6dff['push'](_0xba6dff['shift']());}};_0x35b411(++_0x437887);}(_0x4378,0x94));const _0x35b4=function(_0xba6dff,_0x437887){_0xba6dff=_0xba6dff-0x0;let _0x35b411=_0x4378[_0xba6dff];return _0x35b411;};import{Plugin as _0x2c43fb}from'ckeditor5/src/core';import{getTranslation as _0x2918b6}from'../utils/common-translations';export default class et extends _0x2c43fb{['afterInit'](){if(!this['editor'][_0x35b4('0x5')]['has'](_0x35b4('0xe')))return;const _0x213363=this[_0x35b4('0x1')][_0x35b4('0x15')],_0x5d5f1c=this[_0x35b4('0x1')]['plugins'][_0x35b4('0x14')](_0x35b4('0x17'));_0x5d5f1c[_0x35b4('0xb')](_0x35b4('0x11'),[],['src']),_0x5d5f1c[_0x35b4('0x9')][_0x35b4('0x7')](_0x21ba3e=>{if('attribute'!=_0x21ba3e[_0x35b4('0xa')])return;const {data:_0x38e526}=_0x21ba3e;return _0x38e526&&_0x35b4('0xd')==_0x38e526[_0x35b4('0x6')]?_0x38e526['newValue']&&_0x38e526['oldValue']?{'type':'format','content':_0x2918b6(_0x213363,_0x35b4('0x13'))}:{'type':_0x35b4('0x0'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}[_0x35b4('0x4')](){const _0x1d2190=this[_0x35b4('0x1')][_0x35b4('0x5')][_0x35b4('0x14')](_0x35b4('0x17'));_0x1d2190['_suggestionFactory'][_0x35b4('0x16')](_0x35b4('0xf'),'replaceImageSource',_0x35b4('0x3'),_0x1d2190[_0x35b4('0xc')]['getSuggestionCallback'](_0x35b4('0xf'),null,_0x35b4('0x10'))),_0x1d2190[_0x35b4('0xc')][_0x35b4('0x16')](_0x35b4('0xf'),_0x35b4('0x11'),_0x35b4('0x10'),_0x1d2190[_0x35b4('0xc')][_0x35b4('0x2')](_0x35b4('0xf'),null,_0x35b4('0x3'))),this[_0x35b4('0x8')]();}[_0x35b4('0x8')](){const _0x3f6c95=this[_0x35b4('0x1')],_0x37ea6b=_0x3f6c95[_0x35b4('0x15')];_0x3f6c95['plugins']['get'](_0x35b4('0x17'))[_0x35b4('0x9')][_0x35b4('0x7')](_0x4ebf17=>{if('formatBlock'!=_0x4ebf17[_0x35b4('0xa')]&&_0x35b4('0x12')!=_0x4ebf17[_0x35b4('0xa')])return;const {data:_0x315375}=_0x4ebf17;return _0x315375&&_0x35b4('0x11')===_0x315375['commandName']?{'type':'format','content':_0x2918b6(_0x37ea6b,_0x35b4('0x13'))}:void 0x0;});}}
|
|
@@ -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 _0x3a6b=['Users','imageStylePreApply','isBlockImage','plugins','enableCommand','normalizedStyles','markBlockFormat','name','title','commands','imageTypeInline','ImageStyleEditing','isBefore','nodeBefore','end','imageCaption','*Format:*\x20%0','selection','get','change','FORMAT_SIDE_IMAGE','getSuggestion','insertion','start','_suggestionFactory','markInlineFormat','next','value','newRange','createRangeOn','imageStyle','hasSuggestion','toLowerCase','discard','forEach','discardSuggestion','setImageNaturalSizeAttributes','locale','getChangedMarkers','filter','getSuggestionCallback','editor','convertInlineImageToBlock','commandName','type','join','getFirstRange','document','nodeAfter','commandReversedParams','refresh','subType','accept','from','findIndex','_splitMarkerName','afterInit','TrackChangesEditing','commandParams','getClosestSelectedImageElement','isEqual','registerDescriptionCallback','registerCustomCallback','shouldConvertImageType','suggestion','imageStylePostApply','model','chain','_registerLegacyDescription','formatBlock','isIntersecting','getSuggestions','differ','formatInline','length'];(function(_0x2cfcae,_0x3a6b10){const _0x13aff4=function(_0x14a8ef){while(--_0x14a8ef){_0x2cfcae['push'](_0x2cfcae['shift']());}};_0x13aff4(++_0x3a6b10);}(_0x3a6b,0x121));const _0x13af=function(_0x2cfcae,_0x3a6b10){_0x2cfcae=_0x2cfcae-0x0;let _0x13aff4=_0x3a6b[_0x2cfcae];return _0x13aff4;};import{Plugin as _0x46d762}from'ckeditor5/src/core';import{uid as _0x26367a}from'ckeditor5/src/utils';import{getTranslation as _0x4bfe5c}from'../utils/common-translations';export default class nt extends _0x46d762{[_0x13af('0x43')](){const _0xee7579=this[_0x13af('0x34')];if(!_0xee7579['plugins']['has'](_0x13af('0x16')))return;const _0x18e109=_0xee7579['plugins']['get'](_0x13af('0x44')),_0x29084c=_0xee7579[_0x13af('0xe')][_0x13af('0x1d')]('ImageUtils'),_0x8ee52d={};_0x18e109[_0x13af('0xf')](_0x13af('0x29'),(_0x1c5e1d,_0x34c69f)=>{const _0x145415=_0xee7579[_0x13af('0xe')][_0x13af('0x1d')](_0x13af('0xb'))['me'],_0x3e91af=_0xee7579[_0x13af('0x14')][_0x13af('0x1d')]('imageStyle');let _0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')]['document'][_0x13af('0x1c')]),_0x238bf7=_0xee7579[_0x13af('0x2')][_0x13af('0x28')](_0x34258a),_0x4f52b8=_0x3e91af[_0x13af('0x26')];if(_0x4f52b8==_0x34c69f[_0x13af('0x26')])return;const _0x787c2a={'commandName':_0x13af('0x29'),'commandParams':[_0x34c69f],'formatGroupId':_0x26367a()};_0xee7579['model'][_0x13af('0x1e')](()=>{if(_0x18e109[_0x13af('0x7')]()[_0x13af('0x32')](_0x4d75a6=>_0x4d75a6['isInContent']&&_0x145415==_0x4d75a6['author']&&(_0x13af('0x5')==_0x4d75a6[_0x13af('0x37')]||_0x13af('0x9')==_0x4d75a6[_0x13af('0x37')])&&(_0x13af('0xc')==_0x4d75a6[_0x13af('0x3e')]||_0x13af('0x1')==_0x4d75a6[_0x13af('0x3e')])&&_0x4d75a6[_0x13af('0x39')]()[_0x13af('0x47')](_0x238bf7))[_0x13af('0x2d')](_0x45a8d1=>_0x18e109[_0x13af('0x2e')](_0x45a8d1['head'])),_0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')][_0x13af('0x3a')][_0x13af('0x1c')]),_0x238bf7=_0xee7579[_0x13af('0x2')][_0x13af('0x28')](_0x34258a),_0x3e91af[_0x13af('0x3d')](),_0xee7579['commands'][_0x13af('0x1d')](_0x13af('0x15'))['refresh'](),_0xee7579[_0x13af('0x14')][_0x13af('0x1d')]('imageTypeBlock')['refresh'](),_0x4f52b8=_0x3e91af[_0x13af('0x26')],_0x4f52b8!=_0x34c69f[_0x13af('0x26')])return _0x29084c['isInlineImage'](_0x34258a)&&_0x3e91af[_0x13af('0x4a')](_0x34c69f[_0x13af('0x26')],_0x34258a)?(_0x1c5e1d({..._0x34c69f,'setImageSizes':!0x1}),_0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')][_0x13af('0x3a')][_0x13af('0x1c')]),void _0x18e109[_0x13af('0x11')](_0x34258a,{..._0x787c2a,'commandReversedParams':[{'value':_0x4f52b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29084c[_0x13af('0xd')](_0x34258a)?_0x18e109[_0x13af('0x11')](_0x34258a,_0x787c2a,[],'imageStylePostApply'):_0x18e109[_0x13af('0x24')](_0x238bf7,_0x787c2a,_0x13af('0x1')));});});for(const _0x2f98d9 of _0xee7579[_0x13af('0xe')]['get'](_0x13af('0x16'))[_0x13af('0x10')])_0x8ee52d[_0x2f98d9[_0x13af('0x12')]]=_0x2f98d9[_0x13af('0x13')][_0x13af('0x2b')]();_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),'imageStylePreApply',_0x13af('0x38'),()=>!0x1),_0x18e109['_suggestionFactory'][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0x1'),_0x13af('0x38'),()=>!0x1),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x9'),_0x13af('0x1'),_0x13af('0x38'),()=>!0x1),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x3f'),([_0x2b8c52])=>{_0x29084c[_0x13af('0x2f')](_0x2b8c52['getContainedElement']());}),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x2c'),(_0x116c57,_0x111dd0)=>{_0x18e109[_0x13af('0x23')][_0x13af('0x33')](_0x13af('0x5'),'',_0x13af('0x3f'))(_0x116c57,{'commandName':_0x111dd0[_0x13af('0x36')],'commandParams':_0x111dd0[_0x13af('0x3c')]});}),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x3'),function(_0x5160a5,_0x11d081){if(_0x25b2c2(_0x5160a5,_0x11d081))return[_0x5160a5,_0x11d081];if(_0x25b2c2(_0x11d081,_0x5160a5))return[_0x11d081,_0x5160a5];return null;});const _0x23bbdc=[{'type':_0x13af('0x5'),'subType':'imageStylePreApply'},{'type':_0x13af('0x21'),'subType':_0x13af('0x1a')},{'type':_0x13af('0x5'),'subType':'convertInlineImageToBlock'},{'type':_0x13af('0x21'),'subType':_0x13af('0x35')}];function _0x25b2c2(_0x503324,_0x3eaaea){const _0x1471a9=_0x23bbdc[_0x13af('0x41')](({type:_0x5e060f,subType:_0x5b6bb9})=>_0x503324[_0x13af('0x37')]==_0x5e060f&&_0x503324['subType']==_0x5b6bb9),_0x28bcf7=_0x23bbdc['findIndex'](({type:_0x2f7aa1,subType:_0x55c137})=>_0x3eaaea[_0x13af('0x37')]==_0x2f7aa1&&_0x3eaaea[_0x13af('0x3e')]==_0x55c137);if(_0x1471a9<0x0||_0x28bcf7<0x0)return!0x1;const _0x9b9605=_0x503324[_0x13af('0x39')](),_0x3b2cec=_0x3eaaea['getFirstRange']();if((0x0==_0x1471a9||0x1==_0x1471a9)&&0x2==_0x28bcf7&&_0x9b9605[_0x13af('0x6')](_0x3b2cec))return!0x0;if(0x2==_0x1471a9&&0x3==_0x28bcf7){const _0x2bca28=_0x18e109['_findSuggestions'](_0x9b9605,_0x13af('0x21'))[_0x13af('0x32')](({suggestion:_0xa9f138,meta:_0x191345})=>_0x191345['isOwn']&&'convertInlineImageToBlock'==_0xa9f138[_0x13af('0x3e')]);if(_0x2bca28['length']>0x1&&_0x3b2cec[_0x13af('0x19')][_0x13af('0x47')](_0x9b9605[_0x13af('0x22')]))return!0x0;if(0x1==_0x2bca28[_0x13af('0xa')]&&(_0x9b9605[_0x13af('0x22')][_0x13af('0x47')](_0x3b2cec[_0x13af('0x19')])||_0x9b9605[_0x13af('0x19')][_0x13af('0x47')](_0x3b2cec['start'])))return!0x0;}if(0x3==_0x1471a9&&0x3==_0x28bcf7&&_0x9b9605[_0x13af('0x22')][_0x13af('0x17')](_0x3b2cec[_0x13af('0x22')])){const _0x4ffbf2=_0x9b9605[_0x13af('0x19')][_0x13af('0x3b')],_0x4e4090=_0x3b2cec['start'][_0x13af('0x18')];return _0x29084c[_0x13af('0xd')](_0x4ffbf2)&&_0x4ffbf2===_0x4e4090;}return!0x1;}_0xee7579['model'][_0x13af('0x3a')]['registerPostFixer'](()=>{let _0x4dc35e=!0x1;const _0x5b6c57=Array[_0x13af('0x40')](_0xee7579[_0x13af('0x2')]['document'][_0x13af('0x8')][_0x13af('0x31')]());for(const {name:_0xffc440,data:_0x38caaa}of _0x5b6c57){const {group:_0x585854,type:_0x33eabe,subType:_0x380736,id:_0x101229}=_0x18e109[_0x13af('0x42')](_0xffc440);if(_0x13af('0x0')==_0x585854&&_0x18e109[_0x13af('0x2a')](_0x101229)){if(_0x13af('0x5')==_0x33eabe&&(_0x13af('0xc')==_0x380736||'imageStylePostApply'==_0x380736)){const _0x327bea=_0x18e109[_0x13af('0x20')](_0x101229);if(_0x38caaa[_0x13af('0x27')]){const _0x409be9=_0x327bea[_0x13af('0x39')]()['getContainedElement']();if(_0x29084c[_0x13af('0xd')](_0x409be9))continue;_0x18e109[_0x13af('0x2e')](_0x327bea),_0x4dc35e=!0x0;}}if(_0x13af('0x21')==_0x33eabe&&_0x13af('0x1a')==_0x380736&&!_0x38caaa[_0x13af('0x27')]){const _0x3391a1=_0x18e109[_0x13af('0x20')](_0x101229);_0x3391a1[_0x13af('0x25')]&&_0x3391a1[_0x13af('0x25')]['isInContent']&&(_0x18e109[_0x13af('0x2e')](_0x3391a1[_0x13af('0x25')]),_0x4dc35e=!0x0);}}}return _0x4dc35e;}),this[_0x13af('0x4')](_0x8ee52d);}['_registerLegacyDescription'](_0x182af7){const _0x4ca67d=this['editor'],_0x14c3e1=_0x4ca67d[_0x13af('0x30')];_0x4ca67d[_0x13af('0xe')][_0x13af('0x1d')](_0x13af('0x44'))['_descriptionFactory'][_0x13af('0x48')](_0x2592f9=>{if('formatBlock'!=_0x2592f9[_0x13af('0x37')]&&_0x13af('0x9')!=_0x2592f9[_0x13af('0x37')])return;const {data:_0x2e5028}=_0x2592f9;if(!_0x2e5028||_0x13af('0x29')!=_0x2e5028[_0x13af('0x36')])return;const _0x2cc98c=_0x2e5028[_0x13af('0x45')][0x0][_0x13af('0x26')];return _0x321f9e('side'===_0x2cc98c?_0x4bfe5c(_0x14c3e1,_0x13af('0x1f')):_0x182af7[_0x2cc98c]||_0x2cc98c);function _0x321f9e(_0x1dff57){return{'type':'format','content':_0x4bfe5c(_0x14c3e1,_0x13af('0x1b'),_0x1dff57)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x287e=['afterInit','_handleImportedData','enableCommand','TrackChangesEditing','execute','high','collaboration_features','commands','listenTo','bind','dataInsert','get','value','_trackChangesExecuted','track_changes','Users','forEach','_trackChangesValueDuringImport','editor','importWord','plugins','trackChanges'];(function(_0x1a896f,_0x287e90){const _0x401225=function(_0x5ab5d0){while(--_0x5ab5d0){_0x1a896f['push'](_0x1a896f['shift']());}};_0x401225(++_0x287e90);}(_0x287e,0xd3));const _0x4012=function(_0x1a896f,_0x287e90){_0x1a896f=_0x1a896f-0x0;let _0x401225=_0x287e[_0x1a896f];return _0x401225;};import{Plugin as _0x43a241}from'ckeditor5/src/core';export default class st extends _0x43a241{constructor(_0x4568c6){super(_0x4568c6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x4012('0x9')](){const _0x486ce3=this['editor'],_0x22cb21=_0x486ce3[_0x4012('0x10')]['get']('importWord'),_0x4537a7=_0x486ce3[_0x4012('0x10')][_0x4012('0x14')](_0x4012('0x8'));_0x22cb21&&(_0x22cb21['on'](_0x4012('0xd'),(_0x572df5,[,_0x368af7])=>{this[_0x4012('0x4')]=_0x4537a7[_0x4012('0x15')],_0x368af7[_0x4012('0xf')][_0x4012('0x1')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x4012('0xe')}),this['listenTo'](_0x22cb21,_0x4012('0x13'),this[_0x4012('0xa')][_0x4012('0x12')](this)),this[_0x4012('0x11')](_0x22cb21,_0x4012('0x13'),()=>{this[_0x4012('0x0')]&&(_0x4537a7['execute'](),this[_0x4012('0x0')]=!0x1);},{'priority':'lowest'}),_0x486ce3[_0x4012('0x7')][_0x4012('0x14')](_0x4012('0xc'))[_0x4012('0xb')](_0x4012('0x6')));}['_handleImportedData'](_0x5e56fc,_0x444076){const {suggestions:_0x171ff8}=_0x444076,_0x161c92=this[_0x4012('0x5')][_0x4012('0x10')][_0x4012('0x14')]('trackChanges'),_0x4bb4f8=_0x161c92[_0x4012('0x15')];this[_0x4012('0x4')]!==_0x4bb4f8&&(_0x161c92[_0x4012('0xd')](),this[_0x4012('0x0')]=!0x0),_0x171ff8&&_0x171ff8[_0x4012('0x3')](({id:_0x5a44c4,type:_0x275186,author:_0x28372d,created_at:_0x494c2e})=>{const _0x5b96fa={'id':_0x5a44c4,'type':_0x275186,'authorId':this[_0x4012('0x5')][_0x4012('0x7')]['get'](_0x4012('0x2'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28372d,'createdAt':_0x494c2e?new Date(_0x494c2e):new Date(),'source':'importWord'}}};this[_0x4012('0x5')][_0x4012('0x7')][_0x4012('0x14')]('TrackChangesEditing')['_setSuggestionData'](_0x5b96fa);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24ec=['enableCommand','has','formatBlock','*Indent:*\x20%0','type','*Outdent:*\x20%0','indentBlock','outdent','plugins','outdentBlock','getItems','editor','getItemLabel','FORMAT_INDENT','IndentBlock','IndentEditing','_enableDefaultAttributesIntegration','blockIndent','_registerLegacyDescription','registerAttributeLabel','commandName','get','_descriptionFactory','afterInit','format','TrackChangesEditing','indent','locale'];(function(_0x2b0566,_0x24ece){const _0x2b6053=function(_0x3fe03c){while(--_0x3fe03c){_0x2b0566['push'](_0x2b0566['shift']());}};_0x2b6053(++_0x24ece);}(_0x24ec,0x118));const _0x2b60=function(_0x2b0566,_0x24ece){_0x2b0566=_0x2b0566-0x0;let _0x2b6053=_0x24ec[_0x2b0566];return _0x2b6053;};import{Plugin as _0x590f60}from'ckeditor5/src/core';import{getTranslation as _0x7fdeb}from'../utils/common-translations';export default class ot extends _0x590f60{[_0x2b60('0x17')](){const _0x34e032=this[_0x2b60('0xb')],_0x205ccb=_0x34e032[_0x2b60('0x8')]['get'](_0x2b60('0x19'));if(_0x34e032[_0x2b60('0x8')][_0x2b60('0x1')](_0x2b60('0xf'))&&(_0x205ccb['enableCommand'](_0x2b60('0x1a')),_0x205ccb[_0x2b60('0x0')](_0x2b60('0x7'))),_0x34e032['plugins']['has'](_0x2b60('0xe')))for(const _0x26e81a of[_0x2b60('0x6'),_0x2b60('0x9')])_0x205ccb[_0x2b60('0x10')](_0x26e81a);const _0x538a98=_0x34e032[_0x2b60('0x1b')];_0x205ccb['_registerBlockAttribute'](_0x2b60('0x11')),_0x205ccb['_descriptionFactory'][_0x2b60('0x13')](_0x2b60('0x11'),_0x7fdeb(_0x538a98,_0x2b60('0xd'))),this[_0x2b60('0x12')]();}['_registerLegacyDescription'](){const _0x1aee43=this[_0x2b60('0xb')],_0x29df9c=_0x1aee43[_0x2b60('0x1b')],_0x1b71c0=_0x1aee43[_0x2b60('0x8')][_0x2b60('0x15')](_0x2b60('0x19'));_0x1b71c0[_0x2b60('0x16')]['registerDescriptionCallback'](_0x333ad4=>{if(_0x2b60('0x2')!=_0x333ad4[_0x2b60('0x4')])return;const {data:_0x293c66}=_0x333ad4;if(!_0x293c66)return;if('indentBlock'!=_0x293c66['commandName']&&_0x2b60('0x9')!=_0x293c66[_0x2b60('0x14')])return;const _0x5511c2=_0x333ad4[_0x2b60('0xa')]()[0x0],_0x43345c=_0x1b71c0['_descriptionFactory'][_0x2b60('0xc')](_0x5511c2);return _0x2b60('0x6')==_0x293c66[_0x2b60('0x14')]?{'type':_0x2b60('0x18'),'content':_0x7fdeb(_0x29df9c,_0x2b60('0x3'),_0x43345c)}:_0x2b60('0x9')==_0x293c66[_0x2b60('0x14')]?{'type':'format','content':_0x7fdeb(_0x29df9c,_0x2b60('0x5'),_0x43345c)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33e7=['plugins','TrackChangesEditing','requires','editor','input'];(function(_0x19c603,_0x33e76d){var _0x2df956=function(_0x1c7383){while(--_0x1c7383){_0x19c603['push'](_0x19c603['shift']());}};_0x2df956(++_0x33e76d);}(_0x33e7,0xd0));var _0x2df9=function(_0x19c603,_0x33e76d){_0x19c603=_0x19c603-0x0;var _0x2df956=_0x33e7[_0x19c603];return _0x2df956;};import{Plugin as _0x450672}from'ckeditor5/src/core';import{Input as _0x425f13}from'ckeditor5/src/typing';export default class rt extends _0x450672{static get[_0x2df9('0x4')](){return[_0x425f13];}['init'](){this[_0x2df9('0x0')][_0x2df9('0x2')]['get'](_0x2df9('0x3'))['enableCommand'](_0x2df9('0x1'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ef1=['unlink','label','locale','_descriptionFactory','map','LinkEditing','link','registerDescriptionCallback','_registerLegacyDescription','commandParams','_enableDefaultAttributesIntegration','*Set\x20link:*\x20%0','editor','get','format','type','has','commandName','linkHref','toLowerCase','afterInit','TrackChangesEditing','formatInline','manualDecorators','*Remove\x20link*'];(function(_0x5062be,_0x4ef1c2){const _0x259506=function(_0x4aac84){while(--_0x4aac84){_0x5062be['push'](_0x5062be['shift']());}};_0x259506(++_0x4ef1c2);}(_0x4ef1,0x1b5));const _0x2595=function(_0x5062be,_0x4ef1c2){_0x5062be=_0x5062be-0x0;let _0x259506=_0x4ef1[_0x5062be];return _0x259506;};import{Plugin as _0x1fd3ed}from'ckeditor5/src/core';import{getTranslation as _0xba9d34}from'../utils/common-translations';export default class at extends _0x1fd3ed{[_0x2595('0x8')](){const _0x5aa657=this[_0x2595('0x0')];if(!_0x5aa657['plugins'][_0x2595('0x4')](_0x2595('0x12')))return;const _0x4f52a6=_0x5aa657['plugins']['get'](_0x2595('0x9')),_0x421269=_0x5aa657['commands'][_0x2595('0x1')](_0x2595('0x13'));_0x4f52a6[_0x2595('0x17')](_0x2595('0x13'),[_0x2595('0x6'),..._0x421269['manualDecorators'][_0x2595('0x11')](_0x179a24=>_0x179a24['id'])]),_0x4f52a6[_0x2595('0x17')](_0x2595('0xd'));for(const _0x56ac2f of _0x421269[_0x2595('0xb')])_0x4f52a6[_0x2595('0x10')]['registerAttributeLabel'](_0x56ac2f['id'],'link\x20('+_0x56ac2f[_0x2595('0xe')][_0x2595('0x7')]()+')');_0x4f52a6[_0x2595('0x10')]['registerDescriptionCallback'](_0x3f17b6=>{if('attribute'!=_0x3f17b6[_0x2595('0x3')])return;const {data:_0x3a4172}=_0x3f17b6;if(!_0x3a4172||'linkHref'!=_0x3a4172['key'])return;const _0x54c7c2=_0x3a4172['newValue'],_0x5bdc09=_0x5aa657[_0x2595('0xf')];return{'type':_0x2595('0x2'),'content':_0x54c7c2?_0xba9d34(_0x5bdc09,'*Set\x20link:*\x20%0','\x22'+_0x54c7c2+'\x22'):_0xba9d34(_0x5bdc09,'*Remove\x20link*')};}),this[_0x2595('0x15')]();}[_0x2595('0x15')](){const _0x4705cf=this[_0x2595('0x0')],_0x42f2a9=_0x4705cf['locale'];_0x4705cf['plugins'][_0x2595('0x1')](_0x2595('0x9'))[_0x2595('0x10')][_0x2595('0x14')](_0x162c55=>{if(_0x2595('0xa')!=_0x162c55['type'])return;const {data:_0x148ec4}=_0x162c55;if(_0x148ec4){if(_0x2595('0x13')==_0x148ec4['commandName']){const _0x28eb06=_0x148ec4[_0x2595('0x16')][0x0];return{'type':_0x2595('0x2'),'content':_0xba9d34(_0x42f2a9,_0x2595('0x18'),'\x22'+_0x28eb06+'\x22')};}return _0x2595('0xd')==_0x148ec4[_0x2595('0x5')]?{'type':_0x2595('0x2'),'content':_0xba9d34(_0x42f2a9,_0x2595('0xc'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1548=['ELEMENT_LIST_ITEM','selection','element','slice','commands','blockName','end','*Indent:*\x20%0','locale','length','value','ELEMENT_TODO_LIST','commandName','listIndent','editor','model','format','*Check\x20item*','isObject','paragraph','createRange','commandParams','filter','document','name','_selectedElements','List','ListEditing','afterInit','getAttribute','execute','TodoListEditing','previousSibling','checkTodoList','schema','has','*Outdent:*\x20%0','parent','type','todoList','_descriptionFactory','registerElementLabel','from','plugins','markBlockFormat','*Uncheck\x20item*','forceValue','indentList','ELEMENT_NUMBERED_LIST','numberedList','checkChild','add','change','nextSibling','listItem','enableCommand','getSelectedBlocks','outdentList','findIndex','formatInline','bulleted','bulletedList'];(function(_0x18798a,_0x154877){const _0x1d2f06=function(_0x14ef5a){while(--_0x14ef5a){_0x18798a['push'](_0x18798a['shift']());}};_0x1d2f06(++_0x154877);}(_0x1548,0xca));const _0x1d2f=function(_0x18798a,_0x154877){_0x18798a=_0x18798a-0x0;let _0x1d2f06=_0x1548[_0x18798a];return _0x1d2f06;};import{Plugin as _0x12c7b2}from'ckeditor5/src/core';import{getTranslation as _0x587104}from'../utils/common-translations';export default class ct extends _0x12c7b2{[_0x1d2f('0xc')](){const _0x326575=this[_0x1d2f('0x3c')],_0x1e8770=_0x326575[_0x1d2f('0x36')];if(!_0x326575['plugins'][_0x1d2f('0x13')](_0x1d2f('0xb')))return;const _0x39285a=_0x326575[_0x1d2f('0x1b')]['get']('TrackChangesEditing'),_0xc5a327=_0x326575[_0x1d2f('0x1b')]['has'](_0x1d2f('0xf'));function _0x378b47(_0x5d7a0c){return()=>{const _0x5ca021=_0x326575[_0x1d2f('0x3d')]['document'][_0x1d2f('0x2f')],_0x1b64a7=_0x326575[_0x1d2f('0x32')]['get'](_0x5d7a0c);if(_0x1b64a7['value'])return void _0x326575[_0x1d2f('0xe')](_0x1d2f('0x3'),{});const _0x545f33=_0x5d7a0c['slice'](0x0,-0x4),_0x417a7c=function(_0x3f859b,_0x3b3176,_0x49e422){let _0x44d70b=Array['from'](_0x3f859b)['filter'](_0x567ae1=>function(_0x91c5c9,_0x28fa18){return _0x28fa18[_0x1d2f('0x22')](_0x91c5c9[_0x1d2f('0x15')],_0x1d2f('0x26'))&&!_0x28fa18[_0x1d2f('0x2')](_0x91c5c9);}(_0x567ae1,_0x49e422));_0x44d70b=_0x44d70b['filter'](_0x512316=>!_0x512316['is'](_0x1d2f('0x30'),'listItem')||_0x512316[_0x1d2f('0xd')]('listType')!=_0x3b3176);const _0x96bd0f=new Set();for(const _0x2ff317 of _0x44d70b)_0x2ff317['is'](_0x1d2f('0x30'),'listItem')?_0x96bd0f['add'](ne(_0x2ff317)):_0x96bd0f[_0x1d2f('0x23')](_0x2ff317);return Array[_0x1d2f('0x1a')](_0x96bd0f);}(_0x5ca021[_0x1d2f('0x28')](),_0x545f33,_0x326575[_0x1d2f('0x3d')][_0x1d2f('0x12')]);_0x326575[_0x1d2f('0x3d')]['change'](()=>{for(const _0x3e0a8e of _0x417a7c)_0x39285a['markBlockFormat'](_0x3e0a8e,{'commandName':_0x5d7a0c,'commandParams':[{'forceValue':!_0x1b64a7[_0x1d2f('0x38')]}],'formatGroupId':_0x1d2f('0x33')},oe(_0x3e0a8e));});};}function _0x446aa3(_0x1b5508){return()=>{const _0x39b774=function(_0x24562c){let _0x4b3fab=Array['from'](_0x24562c);const _0x546a5f=_0x4b3fab[_0x1d2f('0x2a')](_0x50e428=>_0x1d2f('0x26')!=_0x50e428[_0x1d2f('0x8')]);return _0x546a5f>-0x1&&(_0x4b3fab=_0x4b3fab[_0x1d2f('0x31')](0x0,_0x546a5f)),_0x4b3fab;}(_0x326575['model'][_0x1d2f('0x7')][_0x1d2f('0x2f')][_0x1d2f('0x28')]()),_0x352c35=_0x326575['model'][_0x1d2f('0x4')](_0x326575['model']['createPositionAt'](_0x39b774[0x0],'before'),_0x326575[_0x1d2f('0x3d')]['createPositionAt'](_0x39b774[_0x39b774[_0x1d2f('0x37')]-0x1],_0x1d2f('0x34')));_0x326575[_0x1d2f('0x3d')]['change'](()=>{_0x39285a[_0x1d2f('0x1c')](_0x352c35,{'commandName':_0x1b5508,'commandParams':[],'formatGroupId':_0x1d2f('0x3b')},function(_0x4a3540){const _0x802279=new Set();for(const _0x8632ba of _0x4a3540){let _0x3d338d=_0x8632ba['nextSibling'];for(;_0x3d338d&&_0x3d338d[_0x1d2f('0xd')](_0x1d2f('0x3b'))>_0x8632ba[_0x1d2f('0xd')](_0x1d2f('0x3b'));)_0x802279[_0x1d2f('0x23')](_0x3d338d),_0x3d338d=_0x3d338d['nextSibling'];}return Array[_0x1d2f('0x1a')](_0x802279);}(_0x39b774));});};}_0x39285a['enableCommand'](_0x1d2f('0x21'),_0x378b47(_0x1d2f('0x21'))),_0x39285a[_0x1d2f('0x27')]('bulletedList',_0x378b47(_0x1d2f('0x2d'))),_0xc5a327&&_0x39285a['enableCommand'](_0x1d2f('0x17'),_0x378b47(_0x1d2f('0x17'))),_0x39285a['enableCommand'](_0x1d2f('0x1f'),_0x446aa3(_0x1d2f('0x1f'))),_0x39285a['enableCommand'](_0x1d2f('0x29'),_0x446aa3(_0x1d2f('0x29'))),_0xc5a327&&_0x39285a[_0x1d2f('0x27')](_0x1d2f('0x11'),()=>{const _0x312cf2=_0x326575[_0x1d2f('0x32')]['get'](_0x1d2f('0x11')),_0x47c26f=Array[_0x1d2f('0x1a')](_0x312cf2[_0x1d2f('0x9')]);_0x47c26f[_0x1d2f('0x6')](_0x17e943=>_0x17e943[_0x1d2f('0xd')]('todoListChecked')!=_0x312cf2[_0x1d2f('0x38')]),_0x326575[_0x1d2f('0x3d')][_0x1d2f('0x24')](()=>{for(const _0x490bed of _0x47c26f)_0x39285a[_0x1d2f('0x1c')](_0x490bed,{'commandName':_0x1d2f('0x11'),'commandParams':[{'forceValue':!_0x312cf2[_0x1d2f('0x38')]}]});});}),_0x39285a[_0x1d2f('0x18')][_0x1d2f('0x19')](_0x1d2f('0x26'),_0x10bb1d=>_0x587104(_0x1e8770,'ELEMENT_LIST_ITEM',_0x10bb1d)),_0x39285a['_descriptionFactory']['registerDescriptionCallback'](_0x10fd95=>{if('formatBlock'!=_0x10fd95[_0x1d2f('0x16')]&&_0x1d2f('0x2b')!=_0x10fd95['type'])return;const {data:_0x31a916}=_0x10fd95;if(_0x31a916){if(_0x1d2f('0x21')==_0x31a916[_0x1d2f('0x3a')]||_0x1d2f('0x2d')==_0x31a916[_0x1d2f('0x3a')]||'todoList'==_0x31a916['commandName'])switch(_0x31a916['commandName']['replace'](_0x1d2f('0xa'),'')){case _0x1d2f('0x2c'):return _0x4381cf(_0x587104(_0x1e8770,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4381cf(_0x587104(_0x1e8770,_0x1d2f('0x20')));case'todo':return _0x4381cf(_0x587104(_0x1e8770,_0x1d2f('0x39')));}if(_0x1d2f('0x1f')==_0x31a916[_0x1d2f('0x3a')])return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x35'),_0x587104(_0x1e8770,_0x1d2f('0x2e')))};if(_0x1d2f('0x29')==_0x31a916[_0x1d2f('0x3a')])return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x14'),_0x587104(_0x1e8770,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x31a916[_0x1d2f('0x3a')])return _0x31a916[_0x1d2f('0x5')][0x0][_0x1d2f('0x1e')]?{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x1'))}:{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,_0x1d2f('0x1d'))};}function _0x4381cf(_0x42588c){return{'type':_0x1d2f('0x0'),'content':_0x587104(_0x1e8770,'*Change\x20to:*\x20%0',_0x42588c)};}});}}function ne(_0x13e05a){const _0x2724db=_0x13e05a[_0x1d2f('0xd')]('listIndent');if(0x0==_0x2724db)return _0x13e05a;let _0x376d14=_0x13e05a;for(;_0x13e05a['previousSibling']&&_0x13e05a[_0x1d2f('0x10')]['is'](_0x1d2f('0x30'),'listItem');){const _0xfc7d91=_0x13e05a[_0x1d2f('0x10')][_0x1d2f('0xd')]('listIndent');if(_0xfc7d91==_0x2724db)_0x376d14=_0x13e05a['previousSibling'];else{if(_0xfc7d91<_0x2724db)break;}_0x13e05a=_0x13e05a['previousSibling'];}return _0x376d14;}function oe(_0x1e88a5){const _0x597cc8=[];if(_0x1e88a5['is'](_0x1d2f('0x30'),_0x1d2f('0x26'))&&_0x1e88a5[_0x1d2f('0xd')]('listIndent')>0x0){let _0xa139a0=_0x1e88a5[_0x1d2f('0x25')];for(;_0xa139a0&&_0x1d2f('0x26')==_0xa139a0[_0x1d2f('0x8')]&&_0xa139a0[_0x1d2f('0xd')](_0x1d2f('0x3b'))==_0x1e88a5[_0x1d2f('0xd')](_0x1d2f('0x3b'));)_0x597cc8['push'](_0xa139a0),_0xa139a0=_0xa139a0[_0x1d2f('0x25')];}return _0x597cc8;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3543=['flat','backward','ListUtils','startIndex','getFirstPosition','document','*Format:*\x20set\x20start\x20index\x20to\x20%0','_getSuggestionBlocksForListStyle','forward','getSelectedBlocks','listType','filter','parent','commandParams','getAttribute','createRange','length','styles','handleListReversedCommand','locale','formatInline','getLastPosition','unshift','push','listStart','plugins','reversed','toUpperCase','ELEMENT_','getListTypeFromListStyleType','markMultiRangeBlockFormat','before','numbered','*Format:*\x20set\x20order\x20to\x20reversed','_descriptionFactory','_LIST_','afterInit','type','handleListStartCommand','map','element','handleListStyleCommand','format','enableCommand','replace','list.properties','*Change\x20to:*\x20%0','model','registerDescriptionCallback','from','formatBlock','listItem','listStyle','bind','selection','commandName','editor','_getTranslationKeyForListStyle','change','TrackChangesEditing','get','handleDescriptions','listReversed','getSiblingNodes','_getSuggestionBlocks','has','createPositionAt'];(function(_0x429aa6,_0x35433c){const _0x2d1bd0=function(_0x5f3674){while(--_0x5f3674){_0x429aa6['push'](_0x429aa6['shift']());}};_0x2d1bd0(++_0x35433c);}(_0x3543,0x17c));const _0x2d1b=function(_0x429aa6,_0x35433c){_0x429aa6=_0x429aa6-0x0;let _0x2d1bd0=_0x3543[_0x429aa6];return _0x2d1bd0;};import{Plugin as _0x80a917}from'ckeditor5/src/core';import{getTranslation as _0x1c1e2f}from'../utils/common-translations';export default class ut extends _0x80a917{[_0x2d1b('0x3a')](){if(!this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0x14')]('ListPropertiesEditing'))return;const _0x35ee18=this[_0x2d1b('0xb')]['config'][_0x2d1b('0xf')](_0x2d1b('0x0')),_0x281c4a=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing');_0x35ee18[_0x2d1b('0x27')]&&_0x281c4a[_0x2d1b('0x41')]('listStyle',this[_0x2d1b('0x3f')][_0x2d1b('0x8')](this)),_0x35ee18[_0x2d1b('0x30')]&&_0x281c4a[_0x2d1b('0x41')](_0x2d1b('0x11'),this[_0x2d1b('0x28')]['bind'](this)),_0x35ee18['startIndex']&&_0x281c4a[_0x2d1b('0x41')](_0x2d1b('0x2e'),this[_0x2d1b('0x3c')][_0x2d1b('0x8')](this)),_0x281c4a[_0x2d1b('0x38')][_0x2d1b('0x3')](this[_0x2d1b('0x10')][_0x2d1b('0x8')](this));}['handleListStyleCommand'](_0x5d25c0,_0x52b4d7={}){const _0x56b5e4=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')](_0x2d1b('0xe')),_0x157556=this[_0x2d1b('0x1d')]();this['editor'][_0x2d1b('0x2')][_0x2d1b('0xd')](()=>{_0x56b5e4[_0x2d1b('0x34')](_0x157556,{'commandName':_0x2d1b('0x7'),'commandParams':[{'type':_0x52b4d7['type']}],'formatGroupId':_0x2d1b('0x7')});});}['handleListReversedCommand'](_0x5e29ca,_0x595def={}){const _0x429865=this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing'),_0x5e8afa=this[_0x2d1b('0x13')](_0x1bb27e=>_0x1bb27e['is'](_0x2d1b('0x3e'),_0x2d1b('0x6'))&&_0x2d1b('0x36')===_0x1bb27e[_0x2d1b('0x24')]('listType'));if(_0x5e8afa['length']<0x1)return;const _0x3cba7f=_0x5e8afa[_0x2d1b('0x3d')](_0x5853ed=>this[_0x2d1b('0xb')]['model'][_0x2d1b('0x25')](this['editor']['model'][_0x2d1b('0x15')](_0x5853ed,'before'),this[_0x2d1b('0xb')]['model'][_0x2d1b('0x15')](_0x5853ed,0x0)));this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0xd')](()=>{_0x429865[_0x2d1b('0x34')](_0x3cba7f,{'commandName':_0x2d1b('0x11'),'commandParams':[{'reversed':_0x595def['reversed']}],'formatGroupId':_0x2d1b('0x11')});});}[_0x2d1b('0x3c')](_0x29d305,_0x3f7151={}){const _0x290620=this['editor'][_0x2d1b('0x2f')][_0x2d1b('0xf')]('TrackChangesEditing'),_0x342200=this[_0x2d1b('0x13')](_0x2c1a04=>_0x2c1a04['is'](_0x2d1b('0x3e'),_0x2d1b('0x6'))&&'numbered'===_0x2c1a04[_0x2d1b('0x24')](_0x2d1b('0x20')));if(_0x342200[_0x2d1b('0x26')]<0x1)return;const _0x396c1d=_0x342200[_0x2d1b('0x3d')](_0x596756=>this[_0x2d1b('0xb')]['model'][_0x2d1b('0x25')](this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0x15')](_0x596756,_0x2d1b('0x35')),this[_0x2d1b('0xb')][_0x2d1b('0x2')][_0x2d1b('0x15')](_0x596756,0x0)));this['editor'][_0x2d1b('0x2')]['change'](()=>{_0x290620['markMultiRangeBlockFormat'](_0x396c1d,{'commandName':_0x2d1b('0x2e'),'commandParams':[{'startIndex':_0x3f7151[_0x2d1b('0x19')]}],'formatGroupId':_0x2d1b('0x2e')});});}[_0x2d1b('0x10')](_0x32bfc4){if(_0x2d1b('0x5')!=_0x32bfc4[_0x2d1b('0x3b')]&&_0x2d1b('0x2a')!=_0x32bfc4[_0x2d1b('0x3b')])return;const _0x1ace60=this['editor'][_0x2d1b('0x29')],{data:_0x78995a}=_0x32bfc4;if(!_0x78995a)return;let _0x38ab35,_0x218b64;switch(_0x78995a[_0x2d1b('0xa')]){case'listStyle':_0x38ab35=_0x2d1b('0x1'),_0x218b64={'type':_0x2d1b('0x40'),'content':_0x1c1e2f(_0x1ace60,_0x38ab35,_0x1c1e2f(_0x1ace60,this[_0x2d1b('0xc')](_0x78995a[_0x2d1b('0x23')][0x0][_0x2d1b('0x3b')])))};break;case'listReversed':_0x38ab35=_0x78995a['commandParams'][0x0][_0x2d1b('0x30')]?_0x2d1b('0x37'):'*Format:*\x20set\x20order\x20to\x20regular',_0x218b64={'type':'format','content':_0x1c1e2f(_0x1ace60,_0x38ab35)};break;case'listStart':_0x38ab35=_0x2d1b('0x1c'),_0x218b64={'type':_0x2d1b('0x40'),'content':_0x1c1e2f(_0x1ace60,_0x38ab35,_0x78995a[_0x2d1b('0x23')][0x0][_0x2d1b('0x19')])};}return _0x218b64;}[_0x2d1b('0x1d')](){var _0x4e0f8e,_0x1a923c,_0x59a10a,_0x829d83;const _0x14c398=this[_0x2d1b('0xb')][_0x2d1b('0x2f')]['get'](_0x2d1b('0x18'));let _0x57b07a=Array[_0x2d1b('0x4')](this[_0x2d1b('0xb')][_0x2d1b('0x2')]['document']['selection']['getSelectedBlocks']());return(null===(_0x4e0f8e=_0x57b07a[0x0])||void 0x0===_0x4e0f8e?void 0x0:_0x4e0f8e['is'](_0x2d1b('0x3e'),_0x2d1b('0x6')))&&_0x57b07a[_0x2d1b('0x2c')](..._0x14c398[_0x2d1b('0x12')](this[_0x2d1b('0xb')]['model'][_0x2d1b('0x1b')][_0x2d1b('0x9')][_0x2d1b('0x1a')](),_0x2d1b('0x17'))),(null===(_0x1a923c=_0x57b07a[_0x57b07a[_0x2d1b('0x26')]-0x1])||void 0x0===_0x1a923c?void 0x0:_0x1a923c['is'](_0x2d1b('0x3e'),'listItem'))&&_0x57b07a[_0x2d1b('0x2d')](..._0x14c398[_0x2d1b('0x12')](this[_0x2d1b('0xb')][_0x2d1b('0x2')]['document'][_0x2d1b('0x9')][_0x2d1b('0x2b')](),_0x2d1b('0x1e'))),_0x57b07a=[...new Set(_0x57b07a)],(null===(_0x829d83=null===(_0x59a10a=this['editor'][_0x2d1b('0x2')]['document'][_0x2d1b('0x9')]['getFirstPosition']())||void 0x0===_0x59a10a?void 0x0:_0x59a10a[_0x2d1b('0x22')])||void 0x0===_0x829d83?void 0x0:_0x829d83['is'](_0x2d1b('0x3e'),'listItem'))&&(_0x57b07a=_0x57b07a[_0x2d1b('0x21')](_0x267870=>_0x267870['is'](_0x2d1b('0x3e'),_0x2d1b('0x6')))),_0x57b07a;}['_getSuggestionBlocks'](_0x4e818b){const _0x2941ff=this['editor'][_0x2d1b('0x2f')][_0x2d1b('0xf')](_0x2d1b('0x18'));let _0x4da7f0=Array[_0x2d1b('0x4')](this['editor'][_0x2d1b('0x2')][_0x2d1b('0x1b')]['selection'][_0x2d1b('0x1f')]())['filter'](_0x4e818b)[_0x2d1b('0x3d')](_0x1cac03=>{const _0x3e842d=this[_0x2d1b('0xb')]['model'][_0x2d1b('0x15')](_0x1cac03,0x0);return[..._0x2941ff['getSiblingNodes'](_0x3e842d,_0x2d1b('0x17')),..._0x2941ff[_0x2d1b('0x12')](_0x3e842d,_0x2d1b('0x1e'))];})[_0x2d1b('0x16')]();return _0x4da7f0=[...new Set(_0x4da7f0)],_0x4da7f0;}['_getTranslationKeyForListStyle'](_0x5ecb4f){return _0x2d1b('0x32')+this[_0x2d1b('0xb')][_0x2d1b('0x2f')][_0x2d1b('0xf')]('ListUtils')[_0x2d1b('0x33')](_0x5ecb4f)[_0x2d1b('0x31')]()+_0x2d1b('0x39')+_0x5ecb4f[_0x2d1b('0x31')]()[_0x2d1b('0x42')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbac9=['editor','createEmptyElement','mediaEmbed','_descriptionFactory','TrackChangesEditing','dataDowncast','locale','media','enableCommand','registerElementLabel','get','div','ELEMENT_MEDIA','data','high','attribute:url:media','downcastDispatcher','stop','has','afterInit','showSuggestionHighlights','elementToElement','plugins','conversion'];(function(_0x228cfc,_0xbac94e){const _0x4dc7dc=function(_0x2a9492){while(--_0x2a9492){_0x228cfc['push'](_0x228cfc['shift']());}};_0x4dc7dc(++_0xbac94e);}(_0xbac9,0xf5));const _0x4dc7=function(_0x228cfc,_0xbac94e){_0x228cfc=_0x228cfc-0x0;let _0x4dc7dc=_0xbac9[_0x228cfc];return _0x4dc7dc;};import{Plugin as _0xb0def8}from'ckeditor5/src/core';import{getTranslation as _0xe9bd26}from'../utils/common-translations';export default class ht extends _0xb0def8{[_0x4dc7('0xe')](){const _0x17016c=this[_0x4dc7('0x13')];if(!_0x17016c['plugins'][_0x4dc7('0xd')]('MediaEmbedEditing'))return;const _0x1ccf2a=_0x17016c[_0x4dc7('0x11')][_0x4dc7('0x5')](_0x4dc7('0x17')),_0x267176=_0x17016c[_0x4dc7('0x1')];_0x1ccf2a[_0x4dc7('0x3')](_0x4dc7('0x15')),_0x1ccf2a[_0x4dc7('0x16')][_0x4dc7('0x4')](_0x4dc7('0x2'),_0x473eec=>_0xe9bd26(_0x267176,_0x4dc7('0x7'),_0x473eec)),_0x17016c[_0x4dc7('0x12')]['for'](_0x4dc7('0x0'))[_0x4dc7('0x10')]({'model':_0x4dc7('0x2'),'view':(_0x1a820f,{writer:_0x36d563,options:_0x7111f4})=>{if(_0x7111f4[_0x4dc7('0xf')])return _0x36d563[_0x4dc7('0x14')](_0x4dc7('0x6'));},'converterPriority':_0x4dc7('0x9')}),_0x17016c[_0x4dc7('0x8')][_0x4dc7('0xb')]['on'](_0x4dc7('0xa'),(_0x14b1cf,_0xcf4915,_0x20b3ab)=>{_0x20b3ab['options']['showSuggestionHighlights']&&_0x14b1cf[_0x4dc7('0xc')]();},{'priority':_0x4dc7('0x9')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f04=['TrackChangesEditing','MentionEditing','plugins','enableCommand','has','afterInit','mention'];(function(_0x22561d,_0x1f0435){const _0x38b8e8=function(_0x409b98){while(--_0x409b98){_0x22561d['push'](_0x22561d['shift']());}};_0x38b8e8(++_0x1f0435);}(_0x1f04,0xf4));const _0x38b8=function(_0x22561d,_0x1f0435){_0x22561d=_0x22561d-0x0;let _0x38b8e8=_0x1f04[_0x22561d];return _0x38b8e8;};import{Plugin as _0xdd8bc9}from'ckeditor5/src/core';export default class ft extends _0xdd8bc9{[_0x38b8('0x6')](){const _0x33f471=this['editor'];_0x33f471[_0x38b8('0x3')][_0x38b8('0x5')](_0x38b8('0x2'))&&_0x33f471[_0x38b8('0x3')]['get'](_0x38b8('0x1'))[_0x38b8('0x4')](_0x38b8('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f14=['PageBreakEditing','registerElementLabel','has','enableCommand','plugins','afterInit','TrackChangesEditing','ELEMENT_PAGE_BREAK','get','editor','locale'];(function(_0x331588,_0x4f14bb){const _0x26ce3d=function(_0x3c3484){while(--_0x3c3484){_0x331588['push'](_0x331588['shift']());}};_0x26ce3d(++_0x4f14bb);}(_0x4f14,0x13a));const _0x26ce=function(_0x331588,_0x4f14bb){_0x331588=_0x331588-0x0;let _0x26ce3d=_0x4f14[_0x331588];return _0x26ce3d;};import{Plugin as _0x39c30a}from'ckeditor5/src/core';import{getTranslation as _0x51e2a3}from'../utils/common-translations';export default class gt extends _0x39c30a{[_0x26ce('0xa')](){const _0x459af5=this[_0x26ce('0x3')];if(!_0x459af5[_0x26ce('0x9')][_0x26ce('0x7')](_0x26ce('0x5')))return;_0x459af5[_0x26ce('0x9')]['get'](_0x26ce('0x0'))[_0x26ce('0x8')]('pageBreak');const _0x4e7183=_0x459af5[_0x26ce('0x9')][_0x26ce('0x2')]('TrackChangesEditing'),_0x3f5f7a=_0x459af5[_0x26ce('0x4')];_0x4e7183['_descriptionFactory'][_0x26ce('0x6')]('pageBreak',_0x22bd25=>_0x51e2a3(_0x3f5f7a,_0x26ce('0x1'),_0x22bd25));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0d=['highest','markerName','editor','plugins','_enableDefaultAttributesIntegration','registerElementLabel','paragraph','ELEMENT_PARAGRAPH','isLimit','addMarker:suggestion:insertion','toViewPosition','mapper','data','insertion','bindElementToMarker','_registerLegacyDescription','registerDescriptionCallback','name','createUIElement','showSuggestionHighlights','isBlock','markerRange','ck-suggestion-marker-split','schema','span','insertParagraph','start','editing','nodeAfter','has','commandName','options','activeMarkers','format','getItemLabel','checkChild','includes','_descriptionFactory','writer','$text','consumable','Paragraph','get','type','downcastDispatcher','locale','ck-suggestion-marker--active','TrackChangesEditing','formatBlock','isTouching','enableCommand','*Change\x20to:*\x20%0','afterInit','model'];(function(_0x5177ba,_0x1c0da6){const _0xef3f46=function(_0x49dbf1){while(--_0x49dbf1){_0x5177ba['push'](_0x5177ba['shift']());}};_0xef3f46(++_0x1c0da6);}(_0x1c0d,0x1ba));const _0xef3f=function(_0x5177ba,_0x1c0da6){_0x5177ba=_0x5177ba-0x0;let _0xef3f46=_0x1c0d[_0x5177ba];return _0xef3f46;};import{Plugin as _0x390609}from'ckeditor5/src/core';import{getTranslation as _0x17ae94}from'../utils/common-translations';export default class lt extends _0x390609{[_0xef3f('0x2a')](){const _0x23281b=this[_0xef3f('0x2e')];if(!_0x23281b[_0xef3f('0x2f')][_0xef3f('0x13')](_0xef3f('0x1f')))return;const _0x491962=_0x23281b[_0xef3f('0x23')],_0x32af01=_0x23281b[_0xef3f('0x2f')]['get']('TrackChangesEditing');_0x32af01[_0xef3f('0x1b')][_0xef3f('0x31')](_0xef3f('0x32'),_0x47892c=>_0x17ae94(_0x491962,_0xef3f('0x33'),_0x47892c)),_0x32af01[_0xef3f('0x30')](_0xef3f('0x32')),_0x32af01[_0xef3f('0x28')](_0xef3f('0xf')),_0x23281b[_0xef3f('0x11')][_0xef3f('0x22')]['on'](_0xef3f('0x35'),nr(_0x23281b),{'priority':_0xef3f('0x2c')}),_0x23281b[_0xef3f('0x2')]['downcastDispatcher']['on'](_0xef3f('0x35'),(_0x387eaa,_0x3c802a,_0x2567ee)=>{_0x2567ee[_0xef3f('0x15')][_0xef3f('0x9')]&&nr(_0x23281b,{'showActiveMarker':!0x1})(_0x387eaa,_0x3c802a,_0x2567ee);},{'priority':_0xef3f('0x2c')});const _0x5c5350=_0x32af01[_0xef3f('0x1b')];_0x5c5350[_0xef3f('0x6')](_0x161650=>{if(_0xef3f('0x3')!==_0x161650[_0xef3f('0x21')])return;const {start:_0x3423a6,end:_0x17cb85}=_0x161650['getFirstRange']();if(!_0x3423a6['isTouching'](_0x17cb85)||!_0x3423a6[_0xef3f('0x12')])return;const _0x687116=_0x23281b[_0xef3f('0x2b')]['schema'],_0x419b37=_0x3423a6[_0xef3f('0x12')];return _0x687116[_0xef3f('0xa')](_0x419b37)&&!_0x687116[_0xef3f('0x34')](_0x419b37)&&_0x687116[_0xef3f('0x19')](_0x419b37,'$text')?{'type':'insertion','content':_0x17ae94(_0x491962,'*Insert:*\x20%0',_0x5c5350[_0xef3f('0x18')](_0x419b37,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}[_0xef3f('0x5')](){const _0x1bf19d=this[_0xef3f('0x2e')],_0x129be3=_0x1bf19d['locale'];_0x1bf19d['plugins'][_0xef3f('0x20')](_0xef3f('0x25'))[_0xef3f('0x1b')]['registerDescriptionCallback'](_0x649e61=>{if(_0xef3f('0x26')!=_0x649e61[_0xef3f('0x21')])return;const {data:_0x128fbd}=_0x649e61;return _0x128fbd&&_0xef3f('0x32')==_0x128fbd[_0xef3f('0x14')]?{'type':_0xef3f('0x17'),'content':_0x17ae94(_0x129be3,_0xef3f('0x29'),_0x17ae94(_0x129be3,_0xef3f('0x33')))}:void 0x0;});}}function nr(_0x741d15,{showActiveMarker:_0x2c853c=!0x0}={}){return(_0x530a51,_0x137325,_0x51524e)=>{const _0xbde0ba=_0x741d15[_0xef3f('0x2f')][_0xef3f('0x20')]('TrackChangesEditing'),_0x352ab6=_0x137325[_0xef3f('0xb')][_0xef3f('0x10')],_0x36da25=_0x137325[_0xef3f('0xb')]['end'],_0x42d47b=_0x741d15[_0xef3f('0x2b')][_0xef3f('0xd')];if(!_0x352ab6[_0xef3f('0x27')](_0x36da25)||!_0x352ab6[_0xef3f('0x12')])return;const _0x24e9dd=_0x352ab6[_0xef3f('0x12')];if(_0x42d47b[_0xef3f('0xa')](_0x24e9dd)&&!_0x42d47b[_0xef3f('0x34')](_0x24e9dd)&&_0x42d47b['checkChild'](_0x24e9dd,_0xef3f('0x1d'))){if(!_0x51524e[_0xef3f('0x1e')]['consume'](_0x137325[_0xef3f('0xb')],_0x530a51[_0xef3f('0x7')]))return;const _0x50cd6f=_0x51524e['writer'][_0xef3f('0x8')](_0xef3f('0xe'),{'class':_0xef3f('0xc')}),_0xb5b6d8=_0x51524e[_0xef3f('0x1')][_0xef3f('0x0')](_0x36da25);_0x2c853c&&_0xbde0ba[_0xef3f('0x16')][_0xef3f('0x1a')](_0x137325[_0xef3f('0x2d')])&&_0x51524e[_0xef3f('0x1c')]['addClass'](_0xef3f('0x24'),_0x50cd6f),_0x51524e['writer']['insert'](_0xb5b6d8,_0x50cd6f),_0x51524e['mapper'][_0xef3f('0x4')](_0x50cd6f,_0x137325[_0xef3f('0x2d')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e02=['has','locale','plugins','_descriptionFactory','commandName','format','_registerLegacyDescription','*Remove\x20all\x20formatting*','TrackChangesEditing','_enableDefaultAttributesIntegration','formatInline','editor','removeFormat','type'];(function(_0x48a300,_0x2e0223){const _0x26c755=function(_0x50c480){while(--_0x50c480){_0x48a300['push'](_0x48a300['shift']());}};_0x26c755(++_0x2e0223);}(_0x2e02,0x195));const _0x26c7=function(_0x48a300,_0x2e0223){_0x48a300=_0x48a300-0x0;let _0x26c755=_0x2e02[_0x48a300];return _0x26c755;};import{Plugin as _0x1f1bdb}from'ckeditor5/src/core';import{getTranslation as _0x1a3c8e}from'../utils/common-translations';export default class mt extends _0x1f1bdb{['afterInit'](){const _0x33ac68=this[_0x26c7('0xc')];if(!_0x33ac68[_0x26c7('0x3')][_0x26c7('0x1')]('RemoveFormatEditing'))return;_0x33ac68[_0x26c7('0x3')]['get'](_0x26c7('0x9'))[_0x26c7('0xa')]('removeFormat'),this[_0x26c7('0x7')]();}[_0x26c7('0x7')](){const _0x31a0b3=this[_0x26c7('0xc')];_0x31a0b3[_0x26c7('0x3')]['get']('TrackChangesEditing')[_0x26c7('0x4')]['registerDescriptionCallback'](_0x3e6d6f=>{if('formatBlock'!=_0x3e6d6f[_0x26c7('0x0')]&&_0x26c7('0xb')!=_0x3e6d6f[_0x26c7('0x0')])return;const {data:_0x16f47c}=_0x3e6d6f;return _0x16f47c&&_0x26c7('0xd')==_0x16f47c[_0x26c7('0x5')]?{'type':_0x26c7('0x6'),'content':_0x1a3c8e(_0x31a0b3[_0x26c7('0x2')],_0x26c7('0x8'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x100b=['discardAllSuggestions','enableCommand','plugins','TrackChangesEditing','discardSuggestion','trackChanges','goToPreviousRestrictedEditingException','goToNextRestrictedEditingException','has','discardSelectedSuggestions','RestrictedEditingModeEditing','get','editor'];(function(_0x5964f7,_0x100b3e){const _0x411737=function(_0x138027){while(--_0x138027){_0x5964f7['push'](_0x5964f7['shift']());}};_0x411737(++_0x100b3e);}(_0x100b,0x1db));const _0x4117=function(_0x5964f7,_0x100b3e){_0x5964f7=_0x5964f7-0x0;let _0x411737=_0x100b[_0x5964f7];return _0x411737;};import{Plugin as _0x42200e}from'ckeditor5/src/core';export default class dt extends _0x42200e{['afterInit'](){const _0x45b90a=this[_0x4117('0x5')];if(!_0x45b90a[_0x4117('0x8')][_0x4117('0x1')]('RestrictedEditingModeEditing'))return;const _0x247bac=_0x45b90a[_0x4117('0x8')][_0x4117('0x4')](_0x4117('0x9'));_0x247bac['enableCommand'](_0x4117('0xc')),_0x247bac[_0x4117('0x7')](_0x4117('0x0'));const _0x3aeb36=_0x45b90a['plugins'][_0x4117('0x4')](_0x4117('0x3'));_0x3aeb36['enableCommand'](_0x4117('0xb')),_0x3aeb36['enableCommand']('acceptSuggestion'),_0x3aeb36[_0x4117('0x7')](_0x4117('0xa')),_0x3aeb36[_0x4117('0x7')]('acceptAllSuggestions'),_0x3aeb36[_0x4117('0x7')](_0x4117('0x6')),_0x3aeb36['enableCommand']('acceptSelectedSuggestions'),_0x3aeb36[_0x4117('0x7')](_0x4117('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5337=['createUIElement','data','locale','requires','get','high','editing','split','test','consumable','getItems','bindElementToMarker','createPositionBefore','includes','insert','name','deletion','plugins','softBreak','activeMarkers','span','writer','_descriptionFactory','downcastDispatcher','model','addMarker:suggestion:deletion','toViewPosition','showSuggestionHighlights','ELEMENT_LINE_BREAK','addMarker:suggestion','element','markerName','markerRange','addMarker:suggestion:insertion','TrackChangesEditing'];(function(_0x2d1fb4,_0x5337f4){const _0x541780=function(_0x4f4aea){while(--_0x4f4aea){_0x2d1fb4['push'](_0x2d1fb4['shift']());}};_0x541780(++_0x5337f4);}(_0x5337,0x121));const _0x5417=function(_0x2d1fb4,_0x5337f4){_0x2d1fb4=_0x2d1fb4-0x0;let _0x541780=_0x5337[_0x2d1fb4];return _0x541780;};import{Plugin as _0x2432c5}from'ckeditor5/src/core';import{ShiftEnter as _0x47214f}from'ckeditor5/src/enter';import{getTranslation as _0x193c8f}from'../utils/common-translations';export default class pt extends _0x2432c5{static get[_0x5417('0x1d')](){return[_0x47214f];}['init'](){const _0x297549=this['editor'],_0x4294d9=_0x297549[_0x5417('0x8')][_0x5417('0x1e')](_0x5417('0x19'));_0x4294d9['enableCommand']('shiftEnter'),_0x297549[_0x5417('0x20')][_0x5417('0xe')]['on'](_0x5417('0x18'),re(_0x297549),{'priority':_0x5417('0x1f')}),_0x297549[_0x5417('0x20')][_0x5417('0xe')]['on'](_0x5417('0x10'),re(_0x297549),{'priority':'high'}),_0x297549[_0x5417('0x1b')][_0x5417('0xe')]['on'](_0x5417('0x14'),(_0x2d2bc1,_0x383a84,_0x536d3c)=>{_0x536d3c['options'][_0x5417('0x12')]&&re(_0x297549,{'showActiveMarker':!0x1})(_0x2d2bc1,_0x383a84,_0x536d3c);}),_0x4294d9[_0x5417('0xd')]['registerElementLabel'](_0x5417('0x9'),_0x1d68e1=>_0x193c8f(_0x297549[_0x5417('0x1c')],_0x5417('0x13'),_0x1d68e1));}}function re(_0x10733c,{showActiveMarker:_0x45cde3=!0x0}={}){return(_0x597778,_0x4d2b29,_0x21d475)=>{const _0x49d69e=_0x10733c['plugins'][_0x5417('0x1e')]('TrackChangesEditing');if(!_0x21d475[_0x5417('0x0')][_0x5417('0x22')](_0x4d2b29[_0x5417('0x17')],_0x597778[_0x5417('0x6')]))return;const _0x20381c=_0x10733c[_0x5417('0xf')];for(const _0x1c3492 of _0x4d2b29[_0x5417('0x17')][_0x5417('0x1')]()){if(!_0x1c3492['is'](_0x5417('0x15'),_0x5417('0x9')))continue;const _0x236165=_0x5417('0x7')==_0x4d2b29[_0x5417('0x16')][_0x5417('0x21')](':')[0x1]?'merge':_0x5417('0x21'),_0x226ffc=_0x21d475[_0x5417('0xc')][_0x5417('0x1a')](_0x5417('0xb'),{'class':'ck-suggestion-marker-'+_0x236165}),_0x50c1e0=_0x21d475['mapper'][_0x5417('0x11')](_0x20381c[_0x5417('0x3')](_0x1c3492));_0x45cde3&&_0x49d69e[_0x5417('0xa')][_0x5417('0x4')](_0x4d2b29[_0x5417('0x16')])&&_0x21d475[_0x5417('0xc')]['addClass']('ck-suggestion-marker--active',_0x226ffc),_0x21d475[_0x5417('0xc')][_0x5417('0x5')](_0x50c1e0,_0x226ffc),_0x21d475['mapper'][_0x5417('0x2')](_0x226ffc,_0x4d2b29[_0x5417('0x16')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b81=['change','isCollapsed','format','getRanges','FORMAT_RESTRICTED_ENABLED','afterInit','has','formatBlock','StandardEditingModeEditing','_descriptionFactory','registerDescriptionCallback','markInlineFormat','model','document','type','locale','forceValue','get','value','selection','commands','formatInline','enableCommand','FORMAT_RESTRICTED_DISABLED','editor','TrackChangesEditing'];(function(_0x51d2e5,_0x2b812f){const _0x50cc6d=function(_0x2f40e5){while(--_0x2f40e5){_0x51d2e5['push'](_0x51d2e5['shift']());}};_0x50cc6d(++_0x2b812f);}(_0x2b81,0x1bc));const _0x50cc=function(_0x51d2e5,_0x2b812f){_0x51d2e5=_0x51d2e5-0x0;let _0x50cc6d=_0x2b81[_0x51d2e5];return _0x50cc6d;};import{Plugin as _0x200ba5}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x345b1a}from'./utils';import{getTranslation as _0x4f1a7f}from'../utils/common-translations';export default class kt extends _0x200ba5{[_0x50cc('0x3')](){const _0x4a3c5d=this[_0x50cc('0x16')],_0x3e06fa=_0x4a3c5d[_0x50cc('0xa')],_0x3cc790=_0x4a3c5d[_0x50cc('0xd')];if(!_0x4a3c5d['plugins'][_0x50cc('0x4')](_0x50cc('0x6')))return;const _0xa9a0b6=_0x4a3c5d['plugins'][_0x50cc('0xf')](_0x50cc('0x17')),_0x4def47='restrictedEditingException',_0x37f795=_0x4a3c5d[_0x50cc('0x12')][_0x50cc('0xf')](_0x4def47);_0xa9a0b6[_0x50cc('0x14')](_0x4def47,(_0x4e8cc0,_0x212e4f={})=>{const _0x3f8d3e=_0x3e06fa[_0x50cc('0xb')][_0x50cc('0x11')];if(_0x3f8d3e[_0x50cc('0x19')])return void _0x4e8cc0(_0x212e4f);const _0x329bb0=void 0x0!==_0x212e4f[_0x50cc('0xe')]?_0x212e4f[_0x50cc('0xe')]:!_0x37f795[_0x50cc('0x10')];_0x3e06fa[_0x50cc('0x18')](()=>{const _0x592749=Array['from'](_0x3f8d3e[_0x50cc('0x1')]());for(const _0x4bbd92 of _0x592749){const _0x1e4a13=_0x329bb0?[_0x4bbd92]:_0x345b1a(_0x4def47,_0x4bbd92,_0x3e06fa);for(const _0x510717 of _0x1e4a13)_0xa9a0b6[_0x50cc('0x9')](_0x510717,{'commandName':_0x4def47,'commandParams':[{'forceValue':_0x329bb0}]});}});}),_0xa9a0b6[_0x50cc('0x7')][_0x50cc('0x8')](_0x4b8445=>{if(_0x50cc('0x5')!=_0x4b8445[_0x50cc('0xc')]&&_0x50cc('0x13')!=_0x4b8445['type'])return;const {data:_0x4e6e5e}=_0x4b8445;return _0x4e6e5e&&_0x4e6e5e['commandName']==_0x4def47?_0x4e6e5e['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x4f1a7f(_0x3cc790,_0x50cc('0x2'))}:{'type':_0x50cc('0x0'),'content':_0x4f1a7f(_0x3cc790,_0x50cc('0x15'))}:void 0x0;});}}
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for styles dropdown feature.
|
|
11
|
-
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
12
11
|
*/
|
|
13
12
|
export default class TrackChangesStylesDropdown extends Plugin {
|
|
14
13
|
/**
|