@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +4 -0
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +14 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48b7=['model','change','registerDescriptionCallback','cancel','enableCommand','document','*Change\x20%0\x20content*','locale','afterInit','element','selection','editing','ELEMENT_HTML_EMBED','markBlockFormat','rawHtml','view','editor','commandName','format','TrackChangesEditing','_descriptionFactory','has','get','getAttribute','htmlEmbed','plugins','getSelectedElement','getCustomProperty'];(function(_0x553313,_0x48b7be){const _0x2d623a=function(_0x3478c5){while(--_0x3478c5){_0x553313['push'](_0x553313['shift']());}};_0x2d623a(++_0x48b7be);}(_0x48b7,0x1ca));const _0x2d62=function(_0x553313,_0x48b7be){_0x553313=_0x553313-0x0;let _0x2d623a=_0x48b7[_0x553313];return _0x2d623a;};import{Plugin as _0x31fb9f}from'ckeditor5/src/core';import{getTranslation as _0x34c6c9}from'../utils/common-translations';export default class V extends _0x31fb9f{[_0x2d62('0x1a')](){const _0x1d6c9b=this[_0x2d62('0x6')];if(!_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xb')]('HtmlEmbed'))return;const _0x2f11cf=_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xc')](_0x2d62('0x9')),_0x1ebf0a=_0x1d6c9b[_0x2d62('0x19')],_0x4d9544=_0x1d6c9b[_0x2d62('0x1')][_0x2d62('0x5')]['document'][_0x2d62('0x0')];_0x2f11cf[_0x2d62('0xa')]['registerElementLabel']('rawHtml',_0x26f389=>_0x34c6c9(_0x1ebf0a,'ELEMENT_HTML_EMBED',_0x26f389)),_0x1d6c9b['plugins'][_0x2d62('0xc')](_0x2d62('0x9'))[_0x2d62('0x16')](_0x2d62('0xe'),(_0x2ac8fe,_0x4f6e85)=>{const _0x1ff019=_0x1d6c9b[_0x2d62('0x12')],_0x226beb=_0x1ff019[_0x2d62('0x17')]['selection'];_0x1ff019[_0x2d62('0x13')](()=>{const _0x495756=function(_0x4e92d9){const _0x11ddd2=_0x4e92d9['getSelectedElement']();if(_0x11ddd2&&_0x11ddd2['is'](_0x2d62('0x1b'),_0x2d62('0x4')))return _0x4e92d9[_0x2d62('0x10')]();return null;}(_0x226beb);if(!_0x495756)return void _0x2ac8fe(null);const _0x2ff1bf=_0x495756[_0x2d62('0xd')]('value')||'';if(void 0x0===_0x4f6e85)return;if(_0x4f6e85===_0x2ff1bf)return;_0x2f11cf[_0x2d62('0x3')](_0x495756,{'commandName':'htmlEmbed','commandParams':[_0x4f6e85]}),_0x4d9544[_0x2d62('0x10')]()[_0x2d62('0x11')]('rawHtmlApi')[_0x2d62('0x15')]();});}),_0x2f11cf[_0x2d62('0xa')][_0x2d62('0x14')](_0x590905=>{const {data:_0x354bbc}=_0x590905;if(_0x354bbc&&'htmlEmbed'==_0x354bbc[_0x2d62('0x7')]){const _0x4f2b86=_0x34c6c9(_0x1ebf0a,_0x2d62('0x2'));return{'type':_0x2d62('0x8'),'content':_0x34c6c9(_0x1ebf0a,_0x2d62('0x18'),_0x4f2b86)};}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x200c=['resizeImage','newRange','isCollapsed','_descriptionFactory','nodeAfter','*Remove\x20image\x20text\x20alternative*','getFirstRange','getClosestSelectedImageElement','ImageTextAlternativeEditing','getSuggestions','getAttribute','fromPosition','imageBlock','convertInlineImageToBlock','end','commandReversedParams','imageStylePreApply','registerPostFixer','editor','isBlockImage','refresh','plugins','discard','*Format:*\x20%0','title','convertBlockImageToInline','suggestion','toLowerCase','model','getNearestSelectionRange','discardSuggestion','element','imageTypeBlock','chain','registerElementLabel','change','imageTypeInline','shouldConvertImageType','imageInline','TrackChangesEditing','insertion','filter','forward','normalizedStyles','type','formatBlock','createRange','getChangedMarkers','markInsertion','newValue','addObject','getContainedElement','value','markBlockFormat','commandParams','enableCommand','registerDescriptionCallback','isEqual','accept','forEach','join','ImageStyleEditing','alt','markInlineFormat','Block\x20image\x20to\x20inline\x20image','findIndex','registerCustomCallback','imageTextAlternative','format','ImageInlineEditing','toPrevious','ImageCaptionEditing','getSuggestionCallback','get','uploadImage','_suggestionFactory','next','imageStylePostApply','length','getCaptionFromImageModelElement','start','removeObject','side','commandName','has','commands','_splitMarkerName','width','backward','hasSuggestion','locale','forceDefaultExecution','imageStyle','createRangeOn','isInContent','find','nodeBefore','caption','schema','_findSuggestions','isBefore','toNext','document','ImageUploadEditing','detach','getSuggestion','markDeletion','imageCaption','Users','*Reset\x20image\x20width*','subType','selection','differ'];(function(_0x24dfe0,_0x200ce7){const _0x2de435=function(_0x3abe52){while(--_0x3abe52){_0x24dfe0['push'](_0x24dfe0['shift']());}};_0x2de435(++_0x200ce7);}(_0x200c,0xff));const _0x2de4=function(_0x24dfe0,_0x200ce7){_0x24dfe0=_0x24dfe0-0x0;let _0x2de435=_0x200c[_0x24dfe0];return _0x2de435;};import{Plugin as _0x21ba82}from'ckeditor5/src/core';import{LivePosition as _0xe1678e}from'ckeditor5/src/engine';import{uid as _0x904d10}from'ckeditor5/src/utils';import{getTranslation as _0x47e069}from'../utils/common-translations';export default class X extends _0x21ba82{['afterInit'](){const _0x447c27=this[_0x2de4('0x66')];if(!_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageEditing'))return;const _0x3538fb=_0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')](_0x2de4('0xa')),_0x2b4ddf=_0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')]('ImageUtils'),_0x91b102={},_0x115097=_0x447c27[_0x2de4('0x3d')];if(_0x3538fb['enableCommand']('insertImage'),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x5')](_0x2de4('0x60'),_0x28a06b=>_0x47e069(_0x115097,'ELEMENT_IMAGE',_0x28a06b)),_0x3538fb['_descriptionFactory'][_0x2de4('0x5')](_0x2de4('0x9'),_0x21717f=>_0x47e069(_0x115097,'ELEMENT_INLINE_IMAGE',_0x21717f)),_0x3538fb['_descriptionFactory'][_0x2de4('0x5')](_0x2de4('0x44'),()=>_0x47e069(_0x115097,'ELEMENT_CAPTION')),_0x447c27[_0x2de4('0x69')]['has'](_0x2de4('0x4a'))&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x2d')),_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageBlockEditing')&&_0x447c27['plugins'][_0x2de4('0x37')](_0x2de4('0x28'))&&(_0x3538fb[_0x2de4('0x1a')]('imageTypeInline',(_0x337e89,_0x36fe42)=>{const _0x5da974=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model'][_0x2de4('0x49')]['selection']);_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x5da974,{'commandName':_0x2de4('0x7'),'commandParams':[_0x36fe42]},[],_0x2de4('0x6d'));});}),_0x3538fb[_0x2de4('0x1a')]('imageTypeBlock',(_0x158d7e,_0x3aa8f9)=>{_0x447c27[_0x2de4('0x70')]['change'](_0x570531=>{let _0x465fc5=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model']['document']['selection']),_0x366a22=_0x570531[_0x2de4('0x40')](_0x465fc5);const _0x3c09ca=_0xe1678e['fromPosition'](_0x366a22[_0x2de4('0x33')],_0x2de4('0x29')),_0x4d443b=_0xe1678e[_0x2de4('0x5f')](_0x366a22[_0x2de4('0x62')],_0x2de4('0x48'));_0x3538fb[_0x2de4('0x3e')](()=>_0x158d7e(_0x3aa8f9)),_0x465fc5=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x52')]),_0x366a22=_0x570531['createRangeOn'](_0x465fc5);const _0x35b7e8=_0x570531[_0x2de4('0x11')](_0x3c09ca,_0x4d443b);_0x3c09ca[_0x2de4('0x4b')](),_0x4d443b[_0x2de4('0x4b')](),_0x3538fb[_0x2de4('0x18')](_0x465fc5,{'commandName':_0x2de4('0x7'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x35b7e8['start'][_0x2de4('0x47')](_0x366a22['start'])&&_0x3538fb[_0x2de4('0x13')](_0x570531[_0x2de4('0x11')](_0x35b7e8[_0x2de4('0x33')],_0x366a22[_0x2de4('0x33')]),'convertInlineImageToBlock'),_0x366a22['end']['isBefore'](_0x35b7e8[_0x2de4('0x62')])&&_0x3538fb['markInsertion'](_0x570531[_0x2de4('0x11')](_0x366a22[_0x2de4('0x62')],_0x35b7e8[_0x2de4('0x62')]),_0x2de4('0x61'));});}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),'convertInlineImageToBlock',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x61'),'accept',()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),'convertInlineImageToBlock',_0x2de4('0x6a'),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x2b')](_0x2de4('0x10'),'','accept')),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('insertion',_0x2de4('0x61'),_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0xb'),_0x2de4('0x61'),'discard',([_0x1adf84])=>{const _0x25294f=_0x3538fb[_0x2de4('0x2e')]['getSuggestionCallback'](_0x2de4('0xb'),'',_0x2de4('0x6a'));let _0x4eafc8=_0x1adf84[_0x2de4('0x33')],_0x563d4f=_0x1adf84['end'];const _0x474c25=_0x447c27['model']['schema'][_0x2de4('0x0')](_0x4eafc8,_0x2de4('0x3b')),_0x2ee324=_0x447c27[_0x2de4('0x70')][_0x2de4('0x45')][_0x2de4('0x0')](_0x563d4f,_0x2de4('0xd'));_0x474c25[_0x2de4('0x56')]&&(_0x4eafc8=_0x474c25[_0x2de4('0x33')]),_0x2ee324['isCollapsed']&&(_0x563d4f=_0x2ee324[_0x2de4('0x62')]),_0x25294f([_0x447c27[_0x2de4('0x70')][_0x2de4('0x11')](_0x4eafc8,_0x563d4f)]);}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),'convertInlineImageToBlock','chain',_0x189aae),_0x3538fb['_suggestionFactory'][_0x2de4('0x25')]('insertion',_0x2de4('0x61'),_0x2de4('0x4'),_0x189aae)),_0x447c27[_0x2de4('0x69')]['has'](_0x2de4('0x2a'))&&(_0x3538fb[_0x2de4('0x1a')]('toggleImageCaption',(_0x67c727,_0x4fab6e)=>{const _0x191b3c=_0x447c27['plugins']['get']('ImageCaptionUtils');let _0x310b77=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),_0x4697f9=_0x191b3c[_0x2de4('0x32')](_0x310b77);_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{if(_0x4697f9)return void _0x3538fb[_0x2de4('0x4d')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x4697f9));const _0x1085d7=_0x2b4ddf[_0x2de4('0x67')](_0x310b77);_0x67c727(_0x4fab6e),_0x310b77=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),_0x4697f9=_0x191b3c['getCaptionFromImageModelElement'](_0x310b77),_0x3538fb[_0x2de4('0x13')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x4697f9),_0x1085d7?null:_0x2de4('0x4e'));});}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback']('insertion','imageCaption',_0x2de4('0x4'),_0x189aae)),_0x447c27['plugins'][_0x2de4('0x37')]('ImageStyleEditing')){_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x3f'),(_0x3e6168,_0xde1b51)=>{const _0x159fb3=_0x447c27[_0x2de4('0x69')]['get'](_0x2de4('0x4f'))['me'],_0x365520=_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')]('imageStyle');let _0x1b0204=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x52')]),_0x38697d=_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x1b0204),_0x47c4f0=_0x365520[_0x2de4('0x17')];if(_0x47c4f0==_0xde1b51['value'])return;const _0x4e8135={'commandName':_0x2de4('0x3f'),'commandParams':[_0xde1b51],'formatGroupId':_0x904d10()};_0x447c27[_0x2de4('0x70')][_0x2de4('0x6')](()=>{if(_0x3538fb[_0x2de4('0x5d')]()[_0x2de4('0xc')](_0x42ce03=>_0x42ce03[_0x2de4('0x41')]&&_0x159fb3==_0x42ce03['author']&&('formatBlock'==_0x42ce03[_0x2de4('0xf')]||'formatInline'==_0x42ce03[_0x2de4('0xf')])&&('imageStylePreApply'==_0x42ce03[_0x2de4('0x51')]||_0x2de4('0x30')==_0x42ce03[_0x2de4('0x51')])&&_0x42ce03[_0x2de4('0x5a')]()[_0x2de4('0x1c')](_0x38697d))[_0x2de4('0x1e')](_0x588ad0=>_0x3538fb[_0x2de4('0x1')](_0x588ad0['head'])),_0x1b0204=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')]['selection']),_0x38697d=_0x447c27[_0x2de4('0x70')][_0x2de4('0x40')](_0x1b0204),_0x365520[_0x2de4('0x68')](),_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')](_0x2de4('0x7'))['refresh'](),_0x447c27[_0x2de4('0x38')][_0x2de4('0x2c')](_0x2de4('0x3'))['refresh'](),_0x47c4f0=_0x365520[_0x2de4('0x17')],_0x47c4f0!=_0xde1b51[_0x2de4('0x17')])return _0x2b4ddf['isInlineImage'](_0x1b0204)&&_0x365520[_0x2de4('0x8')](_0xde1b51[_0x2de4('0x17')],_0x1b0204)?(_0x3e6168(_0xde1b51),_0x1b0204=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x52')]),void _0x3538fb['markBlockFormat'](_0x1b0204,{..._0x4e8135,'commandReversedParams':[{'value':_0x47c4f0||null}]},[],_0x2de4('0x64'))):void(_0x2b4ddf[_0x2de4('0x67')](_0x1b0204)?_0x3538fb[_0x2de4('0x18')](_0x1b0204,_0x4e8135,[],_0x2de4('0x30')):_0x3538fb[_0x2de4('0x22')](_0x38697d,_0x4e8135,_0x2de4('0x30')));});});for(const _0x31b52f of _0x447c27[_0x2de4('0x69')][_0x2de4('0x2c')](_0x2de4('0x20'))[_0x2de4('0xe')])_0x91b102[_0x31b52f['name']]=_0x31b52f[_0x2de4('0x6c')][_0x2de4('0x6f')]();_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatBlock','imageStylePreApply',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatBlock',_0x2de4('0x30'),_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')]('formatInline','imageStylePostApply',_0x2de4('0x1f'),()=>{}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x1d'),()=>{}),_0x3538fb[_0x2de4('0x2e')]['registerCustomCallback'](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x6a'),(_0xa74dad,_0x24a1a9)=>{_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x2b')](_0x2de4('0x10'),'',_0x2de4('0x1d'))(_0xa74dad,{'commandName':_0x24a1a9[_0x2de4('0x36')],'commandParams':_0x24a1a9[_0x2de4('0x63')]});}),_0x3538fb[_0x2de4('0x2e')][_0x2de4('0x25')](_0x2de4('0x10'),_0x2de4('0x64'),_0x2de4('0x4'),_0x189aae);}const _0x57f233=[{'type':'formatBlock','subType':_0x2de4('0x64')},{'type':_0x2de4('0xb'),'subType':_0x2de4('0x4e')},{'type':_0x2de4('0x10'),'subType':_0x2de4('0x61')},{'type':'insertion','subType':_0x2de4('0x61')}];function _0x3d9b43(_0x3a9297,_0xab6cec){const _0x55af4b=_0x57f233[_0x2de4('0x24')](({type:_0x162b0b,subType:_0x592aa1})=>_0x3a9297['type']==_0x162b0b&&_0x3a9297[_0x2de4('0x51')]==_0x592aa1),_0xe86ab5=_0x57f233[_0x2de4('0x24')](({type:_0x49b9fe,subType:_0xbbc784})=>_0xab6cec[_0x2de4('0xf')]==_0x49b9fe&&_0xab6cec[_0x2de4('0x51')]==_0xbbc784);if(_0x55af4b<0x0||_0xe86ab5<0x0)return!0x1;const _0x5992db=_0x3a9297[_0x2de4('0x5a')](),_0x457aa2=_0xab6cec['getFirstRange']();if((0x0==_0x55af4b||0x1==_0x55af4b)&&0x2==_0xe86ab5&&_0x5992db['isIntersecting'](_0x457aa2))return!0x0;if(0x2==_0x55af4b&&0x3==_0xe86ab5){const _0x297d66=_0x3538fb[_0x2de4('0x46')](_0x5992db,'insertion')[_0x2de4('0xc')](({suggestion:_0x2865e9,meta:_0x237e5f})=>_0x237e5f['isOwn']&&_0x2de4('0x61')==_0x2865e9[_0x2de4('0x51')]);if(_0x297d66[_0x2de4('0x31')]>0x1&&_0x457aa2[_0x2de4('0x62')][_0x2de4('0x1c')](_0x5992db[_0x2de4('0x33')]))return!0x0;if(0x1==_0x297d66[_0x2de4('0x31')]&&(_0x5992db[_0x2de4('0x33')]['isEqual'](_0x457aa2[_0x2de4('0x62')])||_0x5992db[_0x2de4('0x62')][_0x2de4('0x1c')](_0x457aa2['start'])))return!0x0;}if(0x3==_0x55af4b&&0x3==_0xe86ab5&&_0x5992db[_0x2de4('0x33')][_0x2de4('0x47')](_0x457aa2[_0x2de4('0x33')])){const _0x4ba06d=_0x5992db[_0x2de4('0x62')][_0x2de4('0x58')],_0x23026d=_0x457aa2[_0x2de4('0x33')][_0x2de4('0x43')];return _0x2b4ddf[_0x2de4('0x67')](_0x4ba06d)&&_0x4ba06d===_0x23026d;}return!0x1;}function _0x189aae(_0x355789,_0xf421e3){return _0x3d9b43(_0x355789,_0xf421e3)?[_0x355789,_0xf421e3]:_0x3d9b43(_0xf421e3,_0x355789)?[_0xf421e3,_0x355789]:null;}_0x447c27[_0x2de4('0x70')]['document'][_0x2de4('0x65')](()=>{let _0x43901f=!0x1;const _0x45497d=Array['from'](_0x447c27[_0x2de4('0x70')][_0x2de4('0x49')][_0x2de4('0x53')][_0x2de4('0x12')]());for(const {name:_0x22cc28,data:_0x124b8d}of _0x45497d){const {group:_0x30425a,type:_0x371f56,subType:_0x5f5351,id:_0xbcfa56}=_0x3538fb[_0x2de4('0x39')](_0x22cc28);if(_0x2de4('0x6e')==_0x30425a&&_0x3538fb[_0x2de4('0x3c')](_0xbcfa56)){if('formatBlock'==_0x371f56&&(_0x2de4('0x64')==_0x5f5351||_0x2de4('0x30')==_0x5f5351)){const _0x575fc8=_0x3538fb[_0x2de4('0x4c')](_0xbcfa56);if(_0x124b8d['newRange']){const _0x3568c1=_0x575fc8[_0x2de4('0x5a')]()['getContainedElement']();if(_0x2b4ddf[_0x2de4('0x67')](_0x3568c1))continue;_0x3538fb[_0x2de4('0x1')](_0x575fc8),_0x43901f=!0x0;}}if(_0x2de4('0xb')==_0x371f56&&'imageCaption'==_0x5f5351&&!_0x124b8d[_0x2de4('0x55')]){const _0x4a80fd=_0x3538fb[_0x2de4('0x4c')](_0xbcfa56);_0x4a80fd[_0x2de4('0x2f')]&&_0x4a80fd[_0x2de4('0x2f')][_0x2de4('0x41')]&&(_0x3538fb[_0x2de4('0x1')](_0x4a80fd['next']),_0x43901f=!0x0);}}}return _0x43901f;}),_0x447c27[_0x2de4('0x69')][_0x2de4('0x37')]('ImageResize')&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x54'),(_0x3b1193,_0x3ae7f6)=>{const _0x52d8da=_0x2b4ddf[_0x2de4('0x5b')](_0x447c27['model'][_0x2de4('0x49')][_0x2de4('0x52')]);_0x52d8da[_0x2de4('0x5e')]('width')!=_0x3ae7f6[_0x2de4('0x3a')]&&_0x447c27['model'][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x52d8da,{'commandName':_0x2de4('0x54'),'commandParams':[_0x3ae7f6]});});}),_0x447c27['plugins'][_0x2de4('0x37')](_0x2de4('0x5c'))&&_0x3538fb[_0x2de4('0x1a')](_0x2de4('0x26'),(_0x3159da,_0x35a02b)=>{const _0x7220aa=_0x2b4ddf['getClosestSelectedImageElement'](_0x447c27['model'][_0x2de4('0x49')]['selection']);(_0x7220aa['hasAttribute'](_0x2de4('0x21'))?_0x7220aa[_0x2de4('0x5e')](_0x2de4('0x21')):'')!=_0x35a02b['newValue']&&_0x447c27['model'][_0x2de4('0x6')](()=>{_0x3538fb[_0x2de4('0x18')](_0x7220aa,{'commandName':_0x2de4('0x26'),'commandParams':[_0x35a02b]});});}),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x445df4=>{if(!!_0x57f233[_0x2de4('0x42')](({type:_0x2eb587,subType:_0x1c3ea9})=>_0x445df4[_0x2de4('0xf')]==_0x2eb587&&_0x445df4[_0x2de4('0x51')]==_0x1c3ea9))return _0x445df4['previous']?{}:void 0x0;}),_0x3538fb[_0x2de4('0x57')]['registerDescriptionCallback'](_0xf44a40=>{if('insertion'==_0xf44a40[_0x2de4('0xf')]||'deletion'==_0xf44a40[_0x2de4('0xf')]){const _0x297f61=_0xf44a40[_0x2de4('0x16')]();if(_0x297f61&&_0x297f61['is'](_0x2de4('0x2'),_0x2de4('0x44')))return{'type':_0x2de4('0xb')==_0xf44a40[_0x2de4('0xf')]?_0x2de4('0x15'):_0x2de4('0x34'),'element':_0x297f61,'quantity':0x1};}}),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x38a8d5=>_0x2de4('0x10')==_0x38a8d5[_0x2de4('0xf')]&&_0x2de4('0x61')==_0x38a8d5[_0x2de4('0x51')]?{'type':_0x2de4('0x27'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x2de4('0x10')==_0x38a8d5[_0x2de4('0xf')]&&_0x2de4('0x6d')==_0x38a8d5['subType']?{'type':_0x2de4('0x27'),'content':_0x2de4('0x23')}:void 0x0),_0x3538fb[_0x2de4('0x57')][_0x2de4('0x1b')](_0x30e6b5=>{const {data:_0x4d7098}=_0x30e6b5;if(_0x4d7098){if('imageStyle'==_0x4d7098[_0x2de4('0x36')]){const _0x4e361b=_0x4d7098[_0x2de4('0x19')][0x0][_0x2de4('0x17')];return _0x216e9e(_0x2de4('0x35')===_0x4e361b?_0x47e069(_0x115097,'FORMAT_SIDE_IMAGE'):_0x91b102[_0x4e361b]||_0x4e361b);}if(_0x2de4('0x26')==_0x4d7098[_0x2de4('0x36')]){const _0x41e5b7=_0x4d7098[_0x2de4('0x19')][0x0][_0x2de4('0x14')];return _0x41e5b7?{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41e5b7+'\x22')}:{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,_0x2de4('0x59'))};}if(_0x2de4('0x54')==_0x4d7098[_0x2de4('0x36')]){const _0x8eb5e0=_0x4d7098['commandParams'][0x0][_0x2de4('0x3a')];return _0x8eb5e0?{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,'*Set\x20image\x20width:*\x20%0',_0x8eb5e0)}:{'type':'format','content':_0x47e069(_0x115097,_0x2de4('0x50'))};}}function _0x216e9e(_0xe2768b){return{'type':_0x2de4('0x27'),'content':_0x47e069(_0x115097,_0x2de4('0x6b'),_0xe2768b)};}});}}
|
|
23
|
+
const _0x1329=['ImageBlockEditing','isInContent','accept','isInlineImage','fromPosition','commandParams','isEqual','getChangedMarkers','get','shouldConvertImageType','join','ImageStyleEditing','_descriptionFactory','length','markBlockFormat','ImageTextAlternativeEditing','getSuggestionCallback','getAttribute','_findSuggestions','forceDefaultExecution','createRange','imageStyle','_splitMarkerName','format','editor','getClosestSelectedImageElement','createRangeOn','toNext','uploadImage','start','convertInlineImageToBlock','head','find','insertImage','formatBlock','discardSuggestion','FORMAT_SIDE_IMAGE','filter','from','next','ELEMENT_CAPTION','isOwn','end','insertion','getContainedElement','imageCaption','removeObject','commands','refresh','ImageUtils','discard','differ','getSuggestion','registerPostFixer','chain','imageBlock','isCollapsed','markInlineFormat','locale','getCaptionFromImageModelElement','detach','nodeAfter','enableCommand','registerDescriptionCallback','markDeletion','isIntersecting','previous','nodeBefore','imageStylePreApply','commandName','toggleImageCaption','subType','_suggestionFactory','Users','model','backward','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','selection','ImageResize','isBefore','change','ImageInlineEditing','ImageCaptionEditing','registerCustomCallback','has','alt','name','value','newValue','type','newRange','findIndex','TrackChangesEditing','document','caption','width','getFirstRange','ImageUploadEditing','forEach','convertBlockImageToInline','registerElementLabel','plugins','imageTextAlternative','imageTypeInline','forward','hasAttribute','isBlockImage','*Reset\x20image\x20width*','Inline\x20image\x20to\x20block\x20image','title','imageStylePostApply','ImageEditing','toPrevious','imageTypeBlock','resizeImage','commandReversedParams','markInsertion','schema','deletion','formatInline'];(function(_0x2764cd,_0x13290b){const _0x47e429=function(_0x36983c){while(--_0x36983c){_0x2764cd['push'](_0x2764cd['shift']());}};_0x47e429(++_0x13290b);}(_0x1329,0x109));const _0x47e4=function(_0x2764cd,_0x13290b){_0x2764cd=_0x2764cd-0x0;let _0x47e429=_0x1329[_0x2764cd];return _0x47e429;};import{Plugin as _0x10774f}from'ckeditor5/src/core';import{LivePosition as _0x2fc7c7}from'ckeditor5/src/engine';import{uid as _0xb511d0}from'ckeditor5/src/utils';import{getTranslation as _0x2f98da}from'../utils/common-translations';export default class X extends _0x10774f{['afterInit'](){const _0x20bc1d=this[_0x47e4('0x1')];if(!_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x59')))return;const _0x26a978=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x46')),_0x56a0e5=_0x20bc1d['plugins'][_0x47e4('0x6a')](_0x47e4('0x1a')),_0x247065={},_0x2064d1=_0x20bc1d[_0x47e4('0x23')];if(_0x26a978[_0x47e4('0x27')](_0x47e4('0xa')),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x20'),_0x61c6e2=>_0x2f98da(_0x2064d1,'ELEMENT_IMAGE',_0x61c6e2)),_0x26a978['_descriptionFactory']['registerElementLabel']('imageInline',_0x3830ac=>_0x2f98da(_0x2064d1,'ELEMENT_INLINE_IMAGE',_0x3830ac)),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x48'),()=>_0x2f98da(_0x2064d1,_0x47e4('0x11'))),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x4b'))&&_0x26a978['enableCommand'](_0x47e4('0x5')),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x62'))&&_0x20bc1d['plugins']['has'](_0x47e4('0x3b'))&&(_0x26a978[_0x47e4('0x27')]('imageTypeInline',(_0xf82b9a,_0x41bba0)=>{const _0x41e72a=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]);_0x20bc1d['model'][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x41e72a,{'commandName':_0x47e4('0x51'),'commandParams':[_0x41bba0]},[],_0x47e4('0x4d'));});}),_0x26a978['enableCommand'](_0x47e4('0x5b'),(_0x2b830a,_0x4e23a0)=>{_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](_0x4f0d76=>{let _0x4a56ca=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x1170d9=_0x2fc7c7[_0x47e4('0x66')](_0x432e81[_0x47e4('0x6')],_0x47e4('0x5a')),_0x23a671=_0x2fc7c7['fromPosition'](_0x432e81[_0x47e4('0x13')],_0x47e4('0x4'));_0x26a978[_0x47e4('0x75')](()=>_0x2b830a(_0x4e23a0)),_0x4a56ca=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x3969ae=_0x4f0d76[_0x47e4('0x76')](_0x1170d9,_0x23a671);_0x1170d9['detach'](),_0x23a671[_0x47e4('0x25')](),_0x26a978[_0x47e4('0x70')](_0x4a56ca,{'commandName':_0x47e4('0x51'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x3969ae[_0x47e4('0x6')][_0x47e4('0x39')](_0x432e81[_0x47e4('0x6')])&&_0x26a978['markInsertion'](_0x4f0d76[_0x47e4('0x76')](_0x3969ae[_0x47e4('0x6')],_0x432e81[_0x47e4('0x6')]),_0x47e4('0x7')),_0x432e81[_0x47e4('0x13')][_0x47e4('0x39')](_0x3969ae[_0x47e4('0x13')])&&_0x26a978[_0x47e4('0x5e')](_0x4f0d76[_0x47e4('0x76')](_0x432e81[_0x47e4('0x13')],_0x3969ae['end']),'convertInlineImageToBlock');});}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'convertInlineImageToBlock',_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x7'),_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock','convertInlineImageToBlock','discard',_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')]('formatBlock','',_0x47e4('0x64'))),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),'join',()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),_0x47e4('0x1b'),([_0xe72aaa])=>{const _0x4fc33d=_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')](_0x47e4('0x14'),'',_0x47e4('0x1b'));let _0x1ddc6d=_0xe72aaa[_0x47e4('0x6')],_0x468694=_0xe72aaa['end'];const _0x45c8da=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')]['getNearestSelectionRange'](_0x1ddc6d,_0x47e4('0x34')),_0x1c9f6e=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')][_0x47e4('0x36')](_0x468694,_0x47e4('0x52'));_0x45c8da[_0x47e4('0x21')]&&(_0x1ddc6d=_0x45c8da[_0x47e4('0x6')]),_0x1c9f6e['isCollapsed']&&(_0x468694=_0x1c9f6e[_0x47e4('0x13')]),_0x4fc33d([_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x76')](_0x1ddc6d,_0x468694)]);}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock',_0x47e4('0x7'),_0x47e4('0x1f'),_0x3bcbb8),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('insertion','convertInlineImageToBlock',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x3c'))&&(_0x26a978['enableCommand'](_0x47e4('0x2f'),(_0x420cf2,_0x22afff)=>{const _0x3aa95e=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageCaptionUtils');let _0x79a594=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594);_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x3b874a)return void _0x26a978[_0x47e4('0x29')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a));const _0x575c11=_0x56a0e5[_0x47e4('0x54')](_0x79a594);_0x420cf2(_0x22afff),_0x79a594=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594),_0x26a978[_0x47e4('0x5e')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a),_0x575c11?null:_0x47e4('0x16'));});}),_0x26a978[_0x47e4('0x31')]['registerCustomCallback'](_0x47e4('0x14'),'imageCaption',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d[_0x47e4('0x4f')]['has'](_0x47e4('0x6d'))){_0x26a978[_0x47e4('0x27')](_0x47e4('0x77'),(_0x4bfc61,_0x55f5f4)=>{const _0x2b3f6a=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x32'))['me'],_0x4eae08=_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x77'));let _0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d['model'][_0x47e4('0x3')](_0x2684c3),_0x464480=_0x4eae08['value'];if(_0x464480==_0x55f5f4[_0x47e4('0x41')])return;const _0x155f3b={'commandName':'imageStyle','commandParams':[_0x55f5f4],'formatGroupId':_0xb511d0()};_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x26a978['getSuggestions']()[_0x47e4('0xe')](_0x4cd7a5=>_0x4cd7a5[_0x47e4('0x63')]&&_0x2b3f6a==_0x4cd7a5['author']&&(_0x47e4('0xb')==_0x4cd7a5['type']||_0x47e4('0x61')==_0x4cd7a5[_0x47e4('0x43')])&&(_0x47e4('0x2d')==_0x4cd7a5[_0x47e4('0x30')]||'imageStylePostApply'==_0x4cd7a5[_0x47e4('0x30')])&&_0x4cd7a5[_0x47e4('0x4a')]()[_0x47e4('0x68')](_0x470413))[_0x47e4('0x4c')](_0x4c8742=>_0x26a978['discardSuggestion'](_0x4c8742[_0x47e4('0x8')])),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x2684c3),_0x4eae08[_0x47e4('0x19')](),_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x51'))[_0x47e4('0x19')](),_0x20bc1d['commands'][_0x47e4('0x6a')](_0x47e4('0x5b'))[_0x47e4('0x19')](),_0x464480=_0x4eae08['value'],_0x464480!=_0x55f5f4[_0x47e4('0x41')])return _0x56a0e5[_0x47e4('0x65')](_0x2684c3)&&_0x4eae08[_0x47e4('0x6b')](_0x55f5f4[_0x47e4('0x41')],_0x2684c3)?(_0x4bfc61(_0x55f5f4),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),void _0x26a978['markBlockFormat'](_0x2684c3,{..._0x155f3b,'commandReversedParams':[{'value':_0x464480||null}]},[],_0x47e4('0x2d'))):void(_0x56a0e5[_0x47e4('0x54')](_0x2684c3)?_0x26a978[_0x47e4('0x70')](_0x2684c3,_0x155f3b,[],_0x47e4('0x58')):_0x26a978[_0x47e4('0x22')](_0x470413,_0x155f3b,_0x47e4('0x58')));});});for(const _0x29dc0b of _0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageStyleEditing')['normalizedStyles'])_0x247065[_0x29dc0b[_0x47e4('0x40')]]=_0x29dc0b[_0x47e4('0x57')]['toLowerCase']();_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x61'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'imageStylePreApply',_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1b'),(_0x577b27,_0x25a4f8)=>{_0x26a978[_0x47e4('0x31')]['getSuggestionCallback'](_0x47e4('0xb'),'',_0x47e4('0x64'))(_0x577b27,{'commandName':_0x25a4f8['commandName'],'commandParams':_0x25a4f8[_0x47e4('0x5d')]});}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1f'),_0x3bcbb8);}const _0x1ddc98=[{'type':_0x47e4('0xb'),'subType':_0x47e4('0x2d')},{'type':_0x47e4('0x14'),'subType':_0x47e4('0x16')},{'type':_0x47e4('0xb'),'subType':'convertInlineImageToBlock'},{'type':_0x47e4('0x14'),'subType':'convertInlineImageToBlock'}];function _0x3f5eb8(_0x4158dc,_0x383b56){const _0x12336a=_0x1ddc98[_0x47e4('0x45')](({type:_0x3e200e,subType:_0x1496d4})=>_0x4158dc[_0x47e4('0x43')]==_0x3e200e&&_0x4158dc[_0x47e4('0x30')]==_0x1496d4),_0x5f065b=_0x1ddc98[_0x47e4('0x45')](({type:_0x2fbdc2,subType:_0x638628})=>_0x383b56[_0x47e4('0x43')]==_0x2fbdc2&&_0x383b56['subType']==_0x638628);if(_0x12336a<0x0||_0x5f065b<0x0)return!0x1;const _0x5bd65a=_0x4158dc['getFirstRange'](),_0x33c763=_0x383b56[_0x47e4('0x4a')]();if((0x0==_0x12336a||0x1==_0x12336a)&&0x2==_0x5f065b&&_0x5bd65a[_0x47e4('0x2a')](_0x33c763))return!0x0;if(0x2==_0x12336a&&0x3==_0x5f065b){const _0x550bbf=_0x26a978[_0x47e4('0x74')](_0x5bd65a,_0x47e4('0x14'))[_0x47e4('0xe')](({suggestion:_0x57c19a,meta:_0x326134})=>_0x326134[_0x47e4('0x12')]&&_0x47e4('0x7')==_0x57c19a[_0x47e4('0x30')]);if(_0x550bbf[_0x47e4('0x6f')]>0x1&&_0x33c763[_0x47e4('0x13')]['isEqual'](_0x5bd65a[_0x47e4('0x6')]))return!0x0;if(0x1==_0x550bbf[_0x47e4('0x6f')]&&(_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x13')])||_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x6')])))return!0x0;}if(0x3==_0x12336a&&0x3==_0x5f065b&&_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x39')](_0x33c763[_0x47e4('0x6')])){const _0x1397e9=_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x26')],_0xf774d9=_0x33c763[_0x47e4('0x6')][_0x47e4('0x2c')];return _0x56a0e5[_0x47e4('0x54')](_0x1397e9)&&_0x1397e9===_0xf774d9;}return!0x1;}function _0x3bcbb8(_0x4dc3c5,_0x284995){return _0x3f5eb8(_0x4dc3c5,_0x284995)?[_0x4dc3c5,_0x284995]:_0x3f5eb8(_0x284995,_0x4dc3c5)?[_0x284995,_0x4dc3c5]:null;}_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1e')](()=>{let _0x16a646=!0x1;const _0x4958c2=Array[_0x47e4('0xf')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1c')][_0x47e4('0x69')]());for(const {name:_0x1e6919,data:_0x4ea86d}of _0x4958c2){const {group:_0x2bf60c,type:_0x31715e,subType:_0x271f85,id:_0x50bc3b}=_0x26a978[_0x47e4('0x78')](_0x1e6919);if('suggestion'==_0x2bf60c&&_0x26a978['hasSuggestion'](_0x50bc3b)){if(_0x47e4('0xb')==_0x31715e&&('imageStylePreApply'==_0x271f85||'imageStylePostApply'==_0x271f85)){const _0x30dca4=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);if(_0x4ea86d['newRange']){const _0xe13c95=_0x30dca4[_0x47e4('0x4a')]()[_0x47e4('0x15')]();if(_0x56a0e5[_0x47e4('0x54')](_0xe13c95))continue;_0x26a978['discardSuggestion'](_0x30dca4),_0x16a646=!0x0;}}if(_0x47e4('0x14')==_0x31715e&&'imageCaption'==_0x271f85&&!_0x4ea86d[_0x47e4('0x44')]){const _0xaaac51=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);_0xaaac51['next']&&_0xaaac51[_0x47e4('0x10')][_0x47e4('0x63')]&&(_0x26a978[_0x47e4('0xc')](_0xaaac51[_0x47e4('0x10')]),_0x16a646=!0x0);}}}return _0x16a646;}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x38'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x5c'),(_0x1820a4,_0x2fa6d5)=>{const _0x15c3b4=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]);_0x15c3b4[_0x47e4('0x73')](_0x47e4('0x49'))!=_0x2fa6d5[_0x47e4('0x49')]&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x15c3b4,{'commandName':'resizeImage','commandParams':[_0x2fa6d5]});});}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x71'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x50'),(_0x1f1102,_0x3498a6)=>{const _0x400716=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]);(_0x400716[_0x47e4('0x53')](_0x47e4('0x3f'))?_0x400716[_0x47e4('0x73')](_0x47e4('0x3f')):'')!=_0x3498a6['newValue']&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978[_0x47e4('0x70')](_0x400716,{'commandName':'imageTextAlternative','commandParams':[_0x3498a6]});});}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x5208a5=>{if(!!_0x1ddc98[_0x47e4('0x9')](({type:_0x4f860f,subType:_0x3c4429})=>_0x5208a5[_0x47e4('0x43')]==_0x4f860f&&_0x5208a5['subType']==_0x3c4429))return _0x5208a5[_0x47e4('0x2b')]?{}:void 0x0;}),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x3851ea=>{if(_0x47e4('0x14')==_0x3851ea['type']||_0x47e4('0x60')==_0x3851ea[_0x47e4('0x43')]){const _0x3dba8c=_0x3851ea['getContainedElement']();if(_0x3dba8c&&_0x3dba8c['is']('element','caption'))return{'type':_0x47e4('0x14')==_0x3851ea[_0x47e4('0x43')]?'addObject':_0x47e4('0x17'),'element':_0x3dba8c,'quantity':0x1};}}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x3b06f8=>_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&'convertInlineImageToBlock'==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':_0x47e4('0x56')}:_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&_0x47e4('0x4d')==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x30bfa1=>{const {data:_0x1c910a}=_0x30bfa1;if(_0x1c910a){if('imageStyle'==_0x1c910a[_0x47e4('0x2e')]){const _0x2cda3f=_0x1c910a[_0x47e4('0x67')][0x0]['value'];return _0x4315fb('side'===_0x2cda3f?_0x2f98da(_0x2064d1,_0x47e4('0xd')):_0x247065[_0x2cda3f]||_0x2cda3f);}if(_0x47e4('0x50')==_0x1c910a[_0x47e4('0x2e')]){const _0x542073=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x42')];return _0x542073?{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x35'),'\x22'+_0x542073+'\x22')}:{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Remove\x20image\x20text\x20alternative*')};}if(_0x47e4('0x5c')==_0x1c910a['commandName']){const _0x2fc4ae=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x49')];return _0x2fc4ae?{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Set\x20image\x20width:*\x20%0',_0x2fc4ae)}:{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x55'))};}}function _0x4315fb(_0x4565fb){return{'type':'format','content':_0x2f98da(_0x2064d1,'*Format:*\x20%0',_0x4565fb)};}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2152=['selection','model','discard','document','data','commandName','*Format:*\x20replace\x20image\x20URL','editor','formatBlock','replaceImageSource','accept','enableCommand','handleSuggestionDescription','getAttribute','subType','getContainedElement','markBlockFormat','TrackChangesEditing','_suggestionFactory','change','format','_descriptionFactory','commandParams','registerCustomCallback','get','handleReplaceImageCommand','plugins','has','locale','getSuggestionCallback'];(function(_0xb4bb47,_0x21526f){const _0x132ea7=function(_0x1be2bb){while(--_0x1be2bb){_0xb4bb47['push'](_0xb4bb47['shift']());}};_0x132ea7(++_0x21526f);}(_0x2152,0x93));const _0x132e=function(_0xb4bb47,_0x21526f){_0xb4bb47=_0xb4bb47-0x0;let _0x132ea7=_0x2152[_0xb4bb47];return _0x132ea7;};import{Plugin as _0x5382e2}from'ckeditor5/src/core';import{getTranslation as _0x2776b0}from'../utils/common-translations';export default class Y extends _0x5382e2{['afterInit'](){if(!this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x0')]('ImageEditing'))return;const _0x229ba1=this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x1b')](_0x132e('0x14'));_0x229ba1[_0x132e('0xe')]('replaceImageSource',(_0x2fbc19,_0x1c474f)=>this[_0x132e('0x1c')](_0x2fbc19,_0x1c474f)),_0x229ba1[_0x132e('0x15')][_0x132e('0x1a')](_0x132e('0xb'),'replaceImageSource','accept',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0x5'))),_0x229ba1['_suggestionFactory'][_0x132e('0x1a')](_0x132e('0xb'),_0x132e('0xc'),'discard',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0xd'))),_0x229ba1[_0x132e('0x18')]['registerDescriptionCallback'](_0x1f5207=>this[_0x132e('0xf')](_0x1f5207));}['handleReplaceImageCommand'](_0x2abf21,_0x3ef8b3){const _0x256f0a=this[_0x132e('0xa')]['plugins'][_0x132e('0x1b')]('TrackChangesEditing'),_0x407f3c=this[_0x132e('0xa')]['model'][_0x132e('0x6')][_0x132e('0x3')]['getSelectedElement']();this[_0x132e('0xa')][_0x132e('0x4')][_0x132e('0x16')](()=>{let _0x489ec1=_0x407f3c[_0x132e('0x10')]('src');const _0x1408b3=this[_0x132e('0xa')]['plugins']['get']('Users')['me'];for(const _0x58518a of _0x256f0a['getSuggestions']({'skipNotAttached':!0x0})){const _0x24d406=_0x58518a[_0x132e('0x12')]();if(_0x132e('0xc')===_0x58518a[_0x132e('0x11')]&&_0x24d406===_0x407f3c){_0x58518a['author']!==_0x1408b3&&_0x58518a[_0x132e('0x5')](),_0x489ec1=_0x58518a[_0x132e('0x7')][_0x132e('0x19')][0x0]['source'];break;}}_0x2abf21(_0x3ef8b3),_0x256f0a[_0x132e('0x13')](_0x407f3c,{'commandName':'replaceImageSource','commandParams':[{'source':_0x489ec1}]},[],'replaceImageSource');});}[_0x132e('0xf')](_0x12cf91){const {data:_0x3ce818}=_0x12cf91;if(_0x3ce818&&_0x132e('0xc')===_0x3ce818[_0x132e('0x8')]){const _0x4b076d=_0x132e('0x9');return{'type':_0x132e('0x17'),'content':_0x2776b0(this[_0x132e('0xa')][_0x132e('0x1')],_0x4b076d)};}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1481=['get','commands','execute','plugins','dataInsert','track_changes','TrackChangesEditing','importWord','_trackChangesExecuted','_setSuggestionData','_handleImportedData','lowest','high','listenTo','afterInit','_trackChangesValueDuringImport','editor','trackChanges','value'];(function(_0x3172ef,_0x148136){const _0x4bfed8=function(_0x2b627c){while(--_0x2b627c){_0x3172ef['push'](_0x3172ef['shift']());}};_0x4bfed8(++_0x148136);}(_0x1481,0x133));const _0x4bfe=function(_0x3172ef,_0x148136){_0x3172ef=_0x3172ef-0x0;let _0x4bfed8=_0x1481[_0x3172ef];return _0x4bfed8;};import{Plugin as _0x470fee}from'ckeditor5/src/core';export default class Z extends _0x470fee{constructor(_0xd27ade){super(_0xd27ade),this['_trackChangesValueDuringImport']=!0x1,this[_0x4bfe('0x5')]=!0x1;}[_0x4bfe('0xb')](){const _0x1999ac=this['editor'],_0xd2df56=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')]('importWord'),_0x27d9fc=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')](_0x4bfe('0xe'));_0xd2df56&&(_0xd2df56['on']('execute',(_0x5f1e04,[,_0x1be8f2])=>{this[_0x4bfe('0xc')]=_0x27d9fc[_0x4bfe('0xf')],_0x1be8f2['collaboration_features'][_0x4bfe('0x2')]=!this[_0x4bfe('0xc')];},{'priority':_0x4bfe('0x9')}),this[_0x4bfe('0xa')](_0xd2df56,'dataInsert',this[_0x4bfe('0x7')]['bind'](this)),this[_0x4bfe('0xa')](_0xd2df56,_0x4bfe('0x1'),()=>{this[_0x4bfe('0x5')]&&(_0x27d9fc['execute'](),this[_0x4bfe('0x5')]=!0x1);},{'priority':_0x4bfe('0x8')}),_0x1999ac[_0x4bfe('0x0')][_0x4bfe('0x10')](_0x4bfe('0x3'))['enableCommand'](_0x4bfe('0x4')));}['_handleImportedData'](_0x3c49b7,_0x2cbab4){const {suggestions:_0x257158}=_0x2cbab4,_0x1173e7=this[_0x4bfe('0xd')][_0x4bfe('0x11')]['get'](_0x4bfe('0xe')),_0x320616=_0x1173e7[_0x4bfe('0xf')];this[_0x4bfe('0xc')]!==_0x320616&&(_0x1173e7[_0x4bfe('0x12')](),this[_0x4bfe('0x5')]=!0x0),_0x257158&&_0x257158['forEach'](({id:_0x5f46ba,type:_0xe3b9ec,author:_0x321649,created_at:_0x3ef5cf})=>{const _0x9d91b2={'id':_0x5f46ba,'type':_0xe3b9ec,'authorId':this[_0x4bfe('0xd')][_0x4bfe('0x0')][_0x4bfe('0x10')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x321649,'createdAt':_0x3ef5cf?new Date(_0x3ef5cf):new Date(),'source':_0x4bfe('0x4')}}};this[_0x4bfe('0xd')][_0x4bfe('0x0')]['get'](_0x4bfe('0x3'))[_0x4bfe('0x6')](_0x9d91b2);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45c8=['model','schema','outdent','IndentEditing','enableCommand','getItemLabel','indent','locale','change','TrackChangesEditing','selection','from','getItems','*Indent:*\x20%0','blockIndent','editor','commandName','markBlockFormat','_descriptionFactory','IndentBlock','*Outdent:*\x20%0','outdentBlock','document','get','filter','format','plugins','has','indentBlock'];(function(_0x4e278e,_0x45c8c6){const _0x2373fb=function(_0x407d04){while(--_0x407d04){_0x4e278e['push'](_0x4e278e['shift']());}};_0x2373fb(++_0x45c8c6);}(_0x45c8,0x1ac));const _0x2373=function(_0x4e278e,_0x45c8c6){_0x4e278e=_0x4e278e-0x0;let _0x2373fb=_0x45c8[_0x4e278e];return _0x2373fb;};import{Plugin as _0x243f2e}from'ckeditor5/src/core';import{getTranslation as _0x426615}from'../utils/common-translations';export default class tt extends _0x243f2e{['afterInit'](){const _0x29fff2=this[_0x2373('0x16')],_0x40e5db=_0x29fff2['plugins'][_0x2373('0x1')](_0x2373('0x10'));_0x29fff2['plugins']['has'](_0x2373('0xa'))&&(_0x40e5db[_0x2373('0xb')](_0x2373('0xd')),_0x40e5db[_0x2373('0xb')](_0x2373('0x9')));const _0x541ca2=_0x29fff2[_0x2373('0xe')];if(_0x29fff2[_0x2373('0x4')][_0x2373('0x5')](_0x2373('0x1a'))){for(const _0x1cb849 of[_0x2373('0x6'),_0x2373('0x1c')])_0x40e5db[_0x2373('0xb')](_0x1cb849,()=>{const _0x4e988b=Array[_0x2373('0x12')](this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x0')][_0x2373('0x11')]['getSelectedBlocks']())[_0x2373('0x2')](_0x419e25=>this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x8')]['checkAttribute'](_0x419e25,_0x2373('0x15')));_0x29fff2[_0x2373('0x7')][_0x2373('0xf')](()=>{for(const _0x169aaa of _0x4e988b)_0x40e5db[_0x2373('0x18')](_0x169aaa,{'commandName':_0x1cb849,'commandParams':[{'value':''}],'formatGroupId':_0x2373('0x6')});});});_0x40e5db['_descriptionFactory']['registerDescriptionCallback'](_0x1d1ece=>{const {data:_0x4ed002}=_0x1d1ece;if(!_0x4ed002)return;if(_0x2373('0x6')!=_0x4ed002['commandName']&&'outdentBlock'!=_0x4ed002['commandName'])return;const _0x24277f=_0x1d1ece[_0x2373('0x13')]()[0x0],_0x131a84=_0x40e5db[_0x2373('0x19')][_0x2373('0xc')](_0x24277f);return _0x2373('0x6')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x14'),_0x131a84)}:_0x2373('0x1c')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x1b'),_0x131a84)}:void 0x0;});}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3566=['TrackChangesEditing','init','plugins','get','editor','requires','input'];(function(_0x591e14,_0x35665b){var _0x358bab=function(_0x27d327){while(--_0x27d327){_0x591e14['push'](_0x591e14['shift']());}};_0x358bab(++_0x35665b);}(_0x3566,0x1da));var _0x358b=function(_0x591e14,_0x35665b){_0x591e14=_0x591e14-0x0;var _0x358bab=_0x3566[_0x591e14];return _0x358bab;};import{Plugin as _0x9a7fa2}from'ckeditor5/src/core';import{Input as _0x55068e}from'ckeditor5/src/typing';export default class it extends _0x9a7fa2{static get[_0x358b('0x0')](){return[_0x55068e];}[_0x358b('0x3')](){this[_0x358b('0x6')][_0x358b('0x4')][_0x358b('0x5')](_0x358b('0x2'))['enableCommand'](_0x358b('0x1'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e3e=['getRanges','selection','model','link','editor','linkHref','TrackChangesEditing','getAttribute','enableCommand','from','LinkEditing','*Set\x20link:*\x20%0','markInlineFormat','locale','document','getFirstRange','has','format','*Remove\x20link*','get','afterInit','_descriptionFactory','registerDescriptionCallback','commandParams','plugins','unlink','hasAttribute'];(function(_0x326921,_0x1e3eeb){const _0x49e24f=function(_0x2d5b67){while(--_0x2d5b67){_0x326921['push'](_0x326921['shift']());}};_0x49e24f(++_0x1e3eeb);}(_0x1e3e,0x137));const _0x49e2=function(_0x326921,_0x1e3eeb){_0x326921=_0x326921-0x0;let _0x49e24f=_0x1e3e[_0x326921];return _0x49e24f;};import{Plugin as _0x493c40}from'ckeditor5/src/core';import{findAttributeRange as _0x31ad9a}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x3c7af6}from'./utils';import{getTranslation as _0x1aa905}from'../utils/common-translations';export default class et extends _0x493c40{[_0x49e2('0x6')](){const _0x5b7e3e=this[_0x49e2('0x11')];if(!_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x2')](_0x49e2('0x17')))return;const _0x3fac09=_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x5')](_0x49e2('0x13'));_0x3fac09[_0x49e2('0x15')](_0x49e2('0x10'),(_0x354525,_0x4fd626)=>{const _0xadb70d=_0x5b7e3e[_0x49e2('0xf')][_0x49e2('0x0')][_0x49e2('0xe')];let _0xf0b765=[];if(_0xadb70d['isCollapsed']){if(!_0xadb70d[_0x49e2('0xc')](_0x49e2('0x12')))return void _0x354525(_0x4fd626);{const _0x35fb10=_0x31ad9a(_0xadb70d['getFirstPosition'](),'linkHref',_0xadb70d['getAttribute'](_0x49e2('0x12')),_0x5b7e3e['model']);_0xf0b765=[_0x35fb10];}}else _0xf0b765=Array[_0x49e2('0x16')](_0xadb70d[_0x49e2('0xd')]());_0x5b7e3e['model']['change'](()=>{for(const _0x8fecf5 of _0xf0b765)_0x3fac09[_0x49e2('0x19')](_0x8fecf5,{'commandName':_0x49e2('0x10'),'commandParams':[_0x4fd626]});});}),_0x3fac09[_0x49e2('0x15')]('unlink',()=>{const _0x474477=this[_0x49e2('0x11')][_0x49e2('0xf')],_0x2eba19=_0x474477[_0x49e2('0x0')][_0x49e2('0xe')];_0x474477['change'](()=>{let _0x24e4d7=[];if(_0x2eba19['isCollapsed'])_0x24e4d7=[_0x31ad9a(_0x2eba19['getFirstPosition'](),_0x49e2('0x12'),_0x2eba19[_0x49e2('0x14')]('linkHref'),_0x5b7e3e['model'])];else _0x24e4d7=_0x3c7af6(_0x49e2('0x12'),_0x2eba19[_0x49e2('0x1')](),_0x5b7e3e[_0x49e2('0xf')]);for(const _0x3000c1 of _0x24e4d7)_0x3fac09[_0x49e2('0x19')](_0x3000c1,{'commandName':_0x49e2('0xb'),'commandParams':[]});});}),_0x3fac09[_0x49e2('0x7')][_0x49e2('0x8')](_0x1b9b0d=>{const {data:_0x1039e5}=_0x1b9b0d,_0x4d5d3b=_0x5b7e3e[_0x49e2('0x1a')];if(_0x1039e5){if(_0x49e2('0x10')==_0x1039e5['commandName']){const _0x20590d=_0x1039e5[_0x49e2('0x9')][0x0];return{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x18'),'\x22'+_0x20590d+'\x22')};}return _0x49e2('0xb')==_0x1039e5['commandName']?{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x4'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2abc=['todo','markBlockFormat','*Change\x20to:*\x20%0','slice','end','from','has','enableCommand','listIndent','locale','model','parent','*Outdent:*\x20%0','document','checkChild','commandParams','findIndex','previousSibling','*Check\x20item*','ELEMENT_TODO_LIST','isObject','value','commandName','registerElementLabel','indentList','push','_descriptionFactory','selection','ListEditing','outdentList','bulleted','before','replace','element','*Uncheck\x20item*','name','plugins','change','get','getSelectedBlocks','registerDescriptionCallback','format','nextSibling','schema','ELEMENT_NUMBERED_LIST','ELEMENT_BULLETED_LIST','todoList','listItem','numberedList','todoListChecked','filter','bulletedList','commands','List','checkTodoList','_selectedElements','forceValue','ELEMENT_LIST_ITEM','*Indent:*\x20%0','TodoListEditing','getAttribute'];(function(_0x3e78b3,_0x2abceb){const _0x52d3ca=function(_0x27cf58){while(--_0x27cf58){_0x3e78b3['push'](_0x3e78b3['shift']());}};_0x52d3ca(++_0x2abceb);}(_0x2abc,0x16a));const _0x52d3=function(_0x3e78b3,_0x2abceb){_0x3e78b3=_0x3e78b3-0x0;let _0x52d3ca=_0x2abc[_0x3e78b3];return _0x52d3ca;};import{Plugin as _0x17f141}from'ckeditor5/src/core';import{getTranslation as _0x1f8dfc}from'../utils/common-translations';export default class st extends _0x17f141{['afterInit'](){const _0x294292=this['editor'],_0x1fd44e=_0x294292[_0x52d3('0xd')];if(!_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x20')))return;const _0x231345=_0x294292[_0x52d3('0x28')][_0x52d3('0x2a')]('TrackChangesEditing'),_0x29ac9a=_0x294292[_0x52d3('0x28')][_0x52d3('0xa')](_0x52d3('0x2'));function _0x337d2e(_0x38320e){return()=>{const _0x249f43=_0x294292['model'][_0x52d3('0x11')][_0x52d3('0x1f')],_0x44006e=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x38320e);if(_0x44006e[_0x52d3('0x19')])return void _0x294292['execute']('paragraph',{});const _0x3b49c6=_0x38320e[_0x52d3('0x7')](0x0,-0x4),_0x300e08=function(_0x147cb4,_0x4ea0f2,_0x2238a8){let _0x1b3311=Array[_0x52d3('0x9')](_0x147cb4)[_0x52d3('0x36')](_0x276292=>function(_0x3a86c1,_0x6a30df){return _0x6a30df[_0x52d3('0x12')](_0x3a86c1[_0x52d3('0xf')],_0x52d3('0x33'))&&!_0x6a30df[_0x52d3('0x18')](_0x3a86c1);}(_0x276292,_0x2238a8));_0x1b3311=_0x1b3311['filter'](_0x510ef2=>!_0x510ef2['is'](_0x52d3('0x25'),_0x52d3('0x33'))||_0x510ef2['getAttribute']('listType')!=_0x4ea0f2);const _0x3f5415=new Set();for(const _0x5812c9 of _0x1b3311)_0x5812c9['is']('element',_0x52d3('0x33'))?_0x3f5415['add'](ne(_0x5812c9)):_0x3f5415['add'](_0x5812c9);return Array[_0x52d3('0x9')](_0x3f5415);}(_0x249f43[_0x52d3('0x2b')](),_0x3b49c6,_0x294292[_0x52d3('0xe')][_0x52d3('0x2f')]);_0x294292['model']['change'](()=>{for(const _0x123e07 of _0x300e08)_0x231345['markBlockFormat'](_0x123e07,{'commandName':_0x38320e,'commandParams':[{'forceValue':!_0x44006e[_0x52d3('0x19')]}],'formatGroupId':'blockName'},oe(_0x123e07));});};}function _0x168051(_0x5888dd){return()=>{const _0x5050da=function(_0x18f5ee){let _0x13fc24=Array[_0x52d3('0x9')](_0x18f5ee);const _0x15d521=_0x13fc24[_0x52d3('0x14')](_0x32e9ae=>_0x52d3('0x33')!=_0x32e9ae[_0x52d3('0x27')]);return _0x15d521>-0x1&&(_0x13fc24=_0x13fc24[_0x52d3('0x7')](0x0,_0x15d521)),_0x13fc24;}(_0x294292[_0x52d3('0xe')][_0x52d3('0x11')][_0x52d3('0x1f')][_0x52d3('0x2b')]()),_0x288045=_0x294292[_0x52d3('0xe')]['createRange'](_0x294292[_0x52d3('0xe')]['createPositionAt'](_0x5050da[0x0],_0x52d3('0x23')),_0x294292['model']['createPositionAt'](_0x5050da[_0x5050da['length']-0x1],_0x52d3('0x8')));_0x294292[_0x52d3('0xe')][_0x52d3('0x29')](()=>{_0x231345[_0x52d3('0x5')](_0x288045,{'commandName':_0x5888dd,'commandParams':[],'formatGroupId':_0x52d3('0xc')},function(_0x5f1b49){const _0x20a128=new Set();for(const _0x487cf0 of _0x5f1b49){let _0x5a9d6f=_0x487cf0[_0x52d3('0x2e')];for(;_0x5a9d6f&&_0x5a9d6f[_0x52d3('0x3')](_0x52d3('0xc'))>_0x487cf0[_0x52d3('0x3')](_0x52d3('0xc'));)_0x20a128['add'](_0x5a9d6f),_0x5a9d6f=_0x5a9d6f[_0x52d3('0x2e')];}return Array['from'](_0x20a128);}(_0x5050da));});};}_0x231345['enableCommand'](_0x52d3('0x34'),_0x337d2e('numberedList')),_0x231345[_0x52d3('0xb')](_0x52d3('0x37'),_0x337d2e('bulletedList')),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('todoList',_0x337d2e(_0x52d3('0x32'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x1c'),_0x168051(_0x52d3('0x1c'))),_0x231345[_0x52d3('0xb')](_0x52d3('0x21'),_0x168051(_0x52d3('0x21'))),_0x29ac9a&&_0x231345[_0x52d3('0xb')]('checkTodoList',()=>{const _0x168cf5=_0x294292[_0x52d3('0x38')][_0x52d3('0x2a')](_0x52d3('0x3a')),_0x4c1393=Array[_0x52d3('0x9')](_0x168cf5[_0x52d3('0x3b')]);_0x4c1393[_0x52d3('0x36')](_0x427f94=>_0x427f94['getAttribute'](_0x52d3('0x35'))!=_0x168cf5[_0x52d3('0x19')]),_0x294292['model'][_0x52d3('0x29')](()=>{for(const _0x6a9e4c of _0x4c1393)_0x231345[_0x52d3('0x5')](_0x6a9e4c,{'commandName':_0x52d3('0x3a'),'commandParams':[{'forceValue':!_0x168cf5[_0x52d3('0x19')]}]});});}),_0x231345[_0x52d3('0x1e')][_0x52d3('0x1b')]('listItem',_0x159359=>_0x1f8dfc(_0x1fd44e,_0x52d3('0x0'),_0x159359)),_0x231345[_0x52d3('0x1e')][_0x52d3('0x2c')](_0x80c2b1=>{const {data:_0x8e9ab1}=_0x80c2b1;if(_0x8e9ab1){if(_0x52d3('0x34')==_0x8e9ab1['commandName']||_0x52d3('0x37')==_0x8e9ab1[_0x52d3('0x1a')]||_0x52d3('0x32')==_0x8e9ab1[_0x52d3('0x1a')])switch(_0x8e9ab1[_0x52d3('0x1a')][_0x52d3('0x24')](_0x52d3('0x39'),'')){case _0x52d3('0x22'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x31')));case'numbered':return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x30')));case _0x52d3('0x4'):return _0x49bf12(_0x1f8dfc(_0x1fd44e,_0x52d3('0x17')));}if('indentList'==_0x8e9ab1['commandName'])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x1'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if(_0x52d3('0x21')==_0x8e9ab1[_0x52d3('0x1a')])return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x10'),_0x1f8dfc(_0x1fd44e,_0x52d3('0x0')))};if('checkTodoList'==_0x8e9ab1[_0x52d3('0x1a')])return _0x8e9ab1[_0x52d3('0x13')][0x0][_0x52d3('0x3c')]?{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x16'))}:{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x26'))};}function _0x49bf12(_0x58aa9b){return{'type':_0x52d3('0x2d'),'content':_0x1f8dfc(_0x1fd44e,_0x52d3('0x6'),_0x58aa9b)};}});}}function ne(_0x1d925a){const _0x46ea00=_0x1d925a['getAttribute'](_0x52d3('0xc'));if(0x0==_0x46ea00)return _0x1d925a;let _0x12af5e=_0x1d925a;for(;_0x1d925a[_0x52d3('0x15')]&&_0x1d925a[_0x52d3('0x15')]['is']('element','listItem');){const _0x5e2398=_0x1d925a[_0x52d3('0x15')][_0x52d3('0x3')]('listIndent');if(_0x5e2398==_0x46ea00)_0x12af5e=_0x1d925a[_0x52d3('0x15')];else{if(_0x5e2398<_0x46ea00)break;}_0x1d925a=_0x1d925a['previousSibling'];}return _0x12af5e;}function oe(_0x403374){const _0x581ee=[];if(_0x403374['is'](_0x52d3('0x25'),_0x52d3('0x33'))&&_0x403374[_0x52d3('0x3')](_0x52d3('0xc'))>0x0){let _0x519c42=_0x403374['nextSibling'];for(;_0x519c42&&_0x52d3('0x33')==_0x519c42[_0x52d3('0x27')]&&_0x519c42[_0x52d3('0x3')](_0x52d3('0xc'))==_0x403374['getAttribute'](_0x52d3('0xc'));)_0x581ee[_0x52d3('0x1d')](_0x519c42),_0x519c42=_0x519c42['nextSibling'];}return _0x581ee;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5097=['_getTranslationKeyForListStyle','backward','model','*Change\x20to:*\x20%0','registerDescriptionCallback','selection','getLastPosition','getAttribute','createPositionAt','plugins','styles','getFirstPosition','handleDescriptions','toUpperCase','element','numbered','getListTypeFromListStyleType','listReversed','parent','commandName','before','getSelectedBlocks','get','locale','map','has','list.properties','*Format:*\x20set\x20order\x20to\x20reversed','filter','listItem','change','format','document','markMultiRangeBlockFormat','forward','listStart','getSiblingNodes','*Format:*\x20set\x20start\x20index\x20to\x20%0','unshift','listStyle','TrackChangesEditing','type','flat','startIndex','bind','config','reversed','handleListReversedCommand','listType','commandParams','createRange','length','_getSuggestionBlocksForListStyle','editor','enableCommand','_getSuggestionBlocks','handleListStartCommand','ListUtils','handleListStyleCommand'];(function(_0x4b1440,_0x509744){const _0x2c8cfe=function(_0x1717fd){while(--_0x1717fd){_0x4b1440['push'](_0x4b1440['shift']());}};_0x2c8cfe(++_0x509744);}(_0x5097,0x19f));const _0x2c8c=function(_0x4b1440,_0x509744){_0x4b1440=_0x4b1440-0x0;let _0x2c8cfe=_0x5097[_0x4b1440];return _0x2c8cfe;};import{Plugin as _0x4b0e2c}from'ckeditor5/src/core';import{getTranslation as _0x2bd9eb}from'../utils/common-translations';export default class nt extends _0x4b0e2c{['afterInit'](){if(!this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x17')]('ListPropertiesEditing'))return;const _0x4b2530=this[_0x2c8c('0x33')][_0x2c8c('0x2b')][_0x2c8c('0x14')](_0x2c8c('0x18')),_0x3a99e2=this['editor']['plugins'][_0x2c8c('0x14')](_0x2c8c('0x26'));_0x4b2530[_0x2c8c('0x8')]&&_0x3a99e2[_0x2c8c('0x34')]('listStyle',this[_0x2c8c('0x38')][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x2c')]&&_0x3a99e2[_0x2c8c('0x34')](_0x2c8c('0xf'),this['handleListReversedCommand'][_0x2c8c('0x2a')](this)),_0x4b2530[_0x2c8c('0x29')]&&_0x3a99e2['enableCommand'](_0x2c8c('0x21'),this[_0x2c8c('0x36')][_0x2c8c('0x2a')](this)),_0x3a99e2['_descriptionFactory'][_0x2c8c('0x2')](this[_0x2c8c('0xa')]['bind'](this));}[_0x2c8c('0x38')](_0x986a4d,_0x49e20d={}){const _0x27bf0c=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x55123e=this[_0x2c8c('0x32')]();this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x27bf0c[_0x2c8c('0x1f')](_0x55123e,{'commandName':_0x2c8c('0x25'),'commandParams':[{'type':_0x49e20d[_0x2c8c('0x27')]}],'formatGroupId':'listStyle'});});}[_0x2c8c('0x2d')](_0x55ad59,_0x5bdf53={}){const _0x5ea817=this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x28ea88=this[_0x2c8c('0x35')](_0x545f90=>_0x545f90['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x545f90[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x28ea88[_0x2c8c('0x31')]<0x1)return;const _0x50031b=_0x28ea88[_0x2c8c('0x16')](_0x27c15c=>this[_0x2c8c('0x33')]['model'][_0x2c8c('0x30')](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['createPositionAt'](_0x27c15c,_0x2c8c('0x12')),this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x27c15c,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0x5ea817[_0x2c8c('0x1f')](_0x50031b,{'commandName':_0x2c8c('0xf'),'commandParams':[{'reversed':_0x5bdf53[_0x2c8c('0x2c')]}],'formatGroupId':'listReversed'});});}[_0x2c8c('0x36')](_0x5aef27,_0xeb1ef3={}){const _0xede558=this['editor'][_0x2c8c('0x7')]['get'](_0x2c8c('0x26')),_0x1ad6d7=this[_0x2c8c('0x35')](_0x4c76fe=>_0x4c76fe['is'](_0x2c8c('0xc'),_0x2c8c('0x1b'))&&_0x2c8c('0xd')===_0x4c76fe[_0x2c8c('0x5')](_0x2c8c('0x2e')));if(_0x1ad6d7['length']<0x1)return;const _0x5629d5=_0x1ad6d7[_0x2c8c('0x16')](_0x66d4d4=>this['editor'][_0x2c8c('0x0')][_0x2c8c('0x30')](this['editor']['model'][_0x2c8c('0x6')](_0x66d4d4,_0x2c8c('0x12')),this['editor'][_0x2c8c('0x0')][_0x2c8c('0x6')](_0x66d4d4,0x0)));this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1c')](()=>{_0xede558['markMultiRangeBlockFormat'](_0x5629d5,{'commandName':_0x2c8c('0x21'),'commandParams':[{'startIndex':_0xeb1ef3['startIndex']}],'formatGroupId':_0x2c8c('0x21')});});}[_0x2c8c('0xa')](_0x459ac9){const _0x1e1b6d=this[_0x2c8c('0x33')][_0x2c8c('0x15')],{data:_0x4e0e93}=_0x459ac9;if(!_0x4e0e93)return;let _0x2e7f2e,_0x4b3c0b;switch(_0x4e0e93[_0x2c8c('0x11')]){case'listStyle':_0x2e7f2e=_0x2c8c('0x1'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x2bd9eb(_0x1e1b6d,this[_0x2c8c('0x39')](_0x4e0e93['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e7f2e=_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x2c')]?_0x2c8c('0x19'):'*Format:*\x20set\x20order\x20to\x20regular',_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e)};break;case _0x2c8c('0x21'):_0x2e7f2e=_0x2c8c('0x23'),_0x4b3c0b={'type':_0x2c8c('0x1d'),'content':_0x2bd9eb(_0x1e1b6d,_0x2e7f2e,_0x4e0e93[_0x2c8c('0x2f')][0x0][_0x2c8c('0x29')])};}return _0x4b3c0b;}['_getSuggestionBlocksForListStyle'](){var _0xdec752,_0x27b868,_0x409f60,_0x10b6c5;const _0x5ace8a=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')](_0x2c8c('0x37'));let _0x268f89=Array['from'](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x13')]());return(null===(_0xdec752=_0x268f89[0x0])||void 0x0===_0xdec752?void 0x0:_0xdec752['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89[_0x2c8c('0x24')](..._0x5ace8a[_0x2c8c('0x22')](this['editor'][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')](),_0x2c8c('0x3a'))),(null===(_0x27b868=_0x268f89[_0x268f89[_0x2c8c('0x31')]-0x1])||void 0x0===_0x27b868?void 0x0:_0x27b868['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&_0x268f89['push'](..._0x5ace8a[_0x2c8c('0x22')](this[_0x2c8c('0x33')][_0x2c8c('0x0')][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x4')](),_0x2c8c('0x20'))),_0x268f89=[...new Set(_0x268f89)],(null===(_0x10b6c5=null===(_0x409f60=this[_0x2c8c('0x33')]['model'][_0x2c8c('0x1e')][_0x2c8c('0x3')][_0x2c8c('0x9')]())||void 0x0===_0x409f60?void 0x0:_0x409f60[_0x2c8c('0x10')])||void 0x0===_0x10b6c5?void 0x0:_0x10b6c5['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))&&(_0x268f89=_0x268f89[_0x2c8c('0x1a')](_0x561ebb=>_0x561ebb['is'](_0x2c8c('0xc'),_0x2c8c('0x1b')))),_0x268f89;}[_0x2c8c('0x35')](_0x3608d7){const _0x5e2956=this[_0x2c8c('0x33')][_0x2c8c('0x7')][_0x2c8c('0x14')]('ListUtils');let _0x256d88=Array['from'](this[_0x2c8c('0x33')][_0x2c8c('0x0')]['document']['selection']['getSelectedBlocks']())[_0x2c8c('0x1a')](_0x3608d7)['map'](_0x3da44d=>{const _0x2d7913=this['editor'][_0x2c8c('0x0')]['createPositionAt'](_0x3da44d,0x0);return[..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x3a')),..._0x5e2956[_0x2c8c('0x22')](_0x2d7913,_0x2c8c('0x20'))];})[_0x2c8c('0x28')]();return _0x256d88=[...new Set(_0x256d88)],_0x256d88;}[_0x2c8c('0x39')](_0x26ec56){return'ELEMENT_'+this[_0x2c8c('0x33')][_0x2c8c('0x7')]['get'](_0x2c8c('0x37'))[_0x2c8c('0xe')](_0x26ec56)[_0x2c8c('0xb')]()+'_LIST_'+_0x26ec56[_0x2c8c('0xb')]()['replace'](/-/g,'_');}}
|