@ckeditor/ckeditor5-track-changes 35.3.2 → 36.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/build/track-changes.js +3 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/contexts.json +16 -0
- package/lang/translations/ar.po +68 -4
- package/lang/translations/az.po +65 -1
- package/lang/translations/bg.po +68 -4
- package/lang/translations/bn.po +68 -4
- package/lang/translations/ca.po +68 -4
- package/lang/translations/cs.po +68 -4
- package/lang/translations/da.po +68 -4
- package/lang/translations/de.po +68 -4
- package/lang/translations/el.po +68 -4
- package/lang/translations/en-au.po +65 -1
- package/lang/translations/en.po +65 -1
- package/lang/translations/es.po +68 -4
- package/lang/translations/et.po +68 -4
- package/lang/translations/fi.po +68 -4
- package/lang/translations/fr.po +68 -4
- package/lang/translations/gl.po +65 -1
- package/lang/translations/he.po +68 -4
- package/lang/translations/hi.po +68 -4
- package/lang/translations/hr.po +65 -1
- package/lang/translations/hu.po +68 -4
- package/lang/translations/id.po +68 -4
- package/lang/translations/it.po +68 -4
- package/lang/translations/ja.po +68 -4
- package/lang/translations/ko.po +68 -4
- package/lang/translations/lt.po +68 -4
- package/lang/translations/lv.po +68 -4
- package/lang/translations/ms.po +68 -4
- package/lang/translations/nl.po +68 -4
- package/lang/translations/no.po +68 -4
- package/lang/translations/pl.po +68 -4
- package/lang/translations/pt-br.po +68 -4
- package/lang/translations/pt.po +68 -4
- package/lang/translations/ro.po +68 -4
- package/lang/translations/ru.po +68 -4
- package/lang/translations/sk.po +68 -4
- package/lang/translations/sr-latn.po +68 -4
- package/lang/translations/sr.po +69 -5
- package/lang/translations/sv.po +68 -4
- package/lang/translations/th.po +68 -4
- package/lang/translations/tk.po +65 -1
- package/lang/translations/tr.po +68 -4
- package/lang/translations/tt.po +65 -1
- package/lang/translations/uk.po +68 -4
- package/lang/translations/ur.po +65 -1
- package/lang/translations/vi.po +68 -4
- package/lang/translations/zh-cn.po +68 -4
- package/lang/translations/zh.po +68 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +23 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +23 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x9fac=['head','getAttribute','createRangeOn','imageTextAlternative','toPrevious','document','ImageStyleEditing','newRange','getCaptionFromImageModelElement','isCollapsed','imageTypeInline','change','*Set\x20image\x20text\x20alternative:*\x20%0','isInlineImage','imageStylePostApply','resizeImage','getSuggestion','isOwn','subType','markInlineFormat','Inline\x20image\x20to\x20block\x20image','schema','toNext','ImageUploadEditing','toggleImageCaption','isIntersecting','nodeBefore','commandName','refresh','registerPostFixer','afterInit','normalizedStyles','title','_splitMarkerName','hasSuggestion','formatBlock','*Reset\x20image\x20width*','start','alt','ImageCaptionUtils','convertBlockImageToInline','registerElementLabel','shouldConvertImageType','imageTypeBlock','imageStyle','_suggestionFactory','ImageTextAlternativeEditing','filter','commandParams','getSuggestions','next','format','insertion','name','getFirstRange','getNearestSelectionRange','newValue','Users','_descriptionFactory','forEach','getClosestSelectedImageElement','caption','registerCustomCallback','end','markInsertion','forward','length','imageInline','*Set\x20image\x20width:*\x20%0','value','*Remove\x20image\x20text\x20alternative*','type','detach','getSuggestionCallback','ELEMENT_IMAGE','ImageCaptionEditing','Block\x20image\x20to\x20inline\x20image','FORMAT_SIDE_IMAGE','markBlockFormat','suggestion','find','registerDescriptionCallback','_findSuggestions','commands','getChangedMarkers','*Format:*\x20%0','plugins','chain','backward','TrackChangesEditing','width','ELEMENT_INLINE_IMAGE','addObject','isBlockImage','createRange','isInContent','enableCommand','imageStylePreApply','getContainedElement','discardSuggestion','isEqual','get','locale','selection','author','side','convertInlineImageToBlock','discard','model','nodeAfter','fromPosition','accept','findIndex','insertImage','join','has','differ','imageCaption','commandReversedParams','uploadImage','previous','isBefore'];(function(_0x470a79,_0x9fac1){const _0x58350c=function(_0x279e7e){while(--_0x279e7e){_0x470a79['push'](_0x470a79['shift']());}};_0x58350c(++_0x9fac1);}(_0x9fac,0x18e));const _0x5835=function(_0x470a79,_0x9fac1){_0x470a79=_0x470a79-0x0;let _0x58350c=_0x9fac[_0x470a79];return _0x58350c;};import{Plugin as _0x4ba67f}from'ckeditor5/src/core';import{LivePosition as _0x4a46bd}from'ckeditor5/src/engine';import{uid as _0x92ff32}from'ckeditor5/src/utils';import{getTranslation as _0xe3b8f3}from'../utils/common-translations';export default class V extends _0x4ba67f{[_0x5835('0x78')](){const _0x5834f5=this['editor'];if(!_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageEditing'))return;const _0x50d537=_0x5834f5[_0x5835('0x36')][_0x5835('0x45')](_0x5835('0x39')),_0x256f2a=_0x5834f5[_0x5835('0x36')]['get']('ImageUtils'),_0x23cca4={},_0x5ce467=_0x5834f5[_0x5835('0x46')];if(_0x50d537[_0x5835('0x40')](_0x5835('0x51')),_0x50d537['_descriptionFactory'][_0x5835('0x9')]('imageBlock',_0x765a6c=>_0xe3b8f3(_0x5ce467,_0x5835('0x2a'),_0x765a6c)),_0x50d537[_0x5835('0x1a')][_0x5835('0x9')](_0x5835('0x23'),_0x16e106=>_0xe3b8f3(_0x5ce467,_0x5835('0x3b'),_0x16e106)),_0x50d537[_0x5835('0x1a')][_0x5835('0x9')](_0x5835('0x1d'),()=>_0xe3b8f3(_0x5ce467,'ELEMENT_CAPTION')),_0x5834f5['plugins'][_0x5835('0x53')](_0x5835('0x71'))&&_0x50d537[_0x5835('0x40')](_0x5835('0x57')),_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageBlockEditing')&&_0x5834f5[_0x5835('0x36')]['has']('ImageInlineEditing')&&(_0x50d537[_0x5835('0x40')]('imageTypeInline',(_0x54b077,_0x54de58)=>{const _0x343149=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]);_0x5834f5[_0x5835('0x4c')][_0x5835('0x65')](()=>{_0x50d537[_0x5835('0x2e')](_0x343149,{'commandName':_0x5835('0x64'),'commandParams':[_0x54de58]},[],_0x5835('0x8'));});}),_0x50d537[_0x5835('0x40')](_0x5835('0xb'),(_0x2732db,_0x428b31)=>{_0x5834f5['model'][_0x5835('0x65')](_0x5a800e=>{let _0x3e6c94=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')]['selection']),_0x531d47=_0x5a800e[_0x5835('0x5c')](_0x3e6c94);const _0x433925=_0x4a46bd['fromPosition'](_0x531d47[_0x5835('0x5')],_0x5835('0x5e')),_0x1c5223=_0x4a46bd[_0x5835('0x4e')](_0x531d47['end'],_0x5835('0x70'));_0x50d537['forceDefaultExecution'](()=>_0x2732db(_0x428b31)),_0x3e6c94=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')]['document']['selection']),_0x531d47=_0x5a800e[_0x5835('0x5c')](_0x3e6c94);const _0x31f412=_0x5a800e['createRange'](_0x433925,_0x1c5223);_0x433925[_0x5835('0x28')](),_0x1c5223[_0x5835('0x28')](),_0x50d537[_0x5835('0x2e')](_0x3e6c94,{'commandName':_0x5835('0x64')},[],_0x5835('0x4a')),_0x31f412[_0x5835('0x5')]['isBefore'](_0x531d47[_0x5835('0x5')])&&_0x50d537[_0x5835('0x20')](_0x5a800e[_0x5835('0x3e')](_0x31f412['start'],_0x531d47['start']),_0x5835('0x4a')),_0x531d47[_0x5835('0x1f')]['isBefore'](_0x31f412['end'])&&_0x50d537[_0x5835('0x20')](_0x5a800e['createRange'](_0x531d47[_0x5835('0x1f')],_0x31f412[_0x5835('0x1f')]),_0x5835('0x4a'));});}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x52'),()=>{}),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x4f'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x4b'),_0x50d537['_suggestionFactory'][_0x5835('0x29')](_0x5835('0x3'),'',_0x5835('0x4f'))),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x14'),_0x5835('0x4a'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('insertion',_0x5835('0x4a'),_0x5835('0x4b'),([_0xf44232])=>{const _0x3e93f8=_0x50d537[_0x5835('0xd')][_0x5835('0x29')](_0x5835('0x14'),'',_0x5835('0x4b'));let _0x1da0b8=_0xf44232[_0x5835('0x5')],_0x41a3fb=_0xf44232[_0x5835('0x1f')];const _0x38a094=_0x5834f5[_0x5835('0x4c')][_0x5835('0x6f')][_0x5835('0x17')](_0x1da0b8,_0x5835('0x38')),_0x1e05ab=_0x5834f5[_0x5835('0x4c')][_0x5835('0x6f')][_0x5835('0x17')](_0x41a3fb,_0x5835('0x21'));_0x38a094[_0x5835('0x63')]&&(_0x1da0b8=_0x38a094['start']),_0x1e05ab[_0x5835('0x63')]&&(_0x41a3fb=_0x1e05ab[_0x5835('0x1f')]),_0x3e93f8([_0x5834f5[_0x5835('0x4c')]['createRange'](_0x1da0b8,_0x41a3fb)]);}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),'chain',_0x2e3d0c),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x14'),_0x5835('0x4a'),'chain',_0x2e3d0c)),_0x5834f5[_0x5835('0x36')]['has'](_0x5835('0x2b'))&&(_0x50d537['enableCommand'](_0x5835('0x72'),(_0x3215e4,_0x2bea09)=>{const _0x3d5b4e=_0x5834f5['plugins'][_0x5835('0x45')](_0x5835('0x7'));let _0x4f3d02=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x4c2e2f=_0x3d5b4e[_0x5835('0x62')](_0x4f3d02);_0x5834f5['model'][_0x5835('0x65')](()=>{if(_0x4c2e2f)return void _0x50d537['markDeletion'](_0x5834f5['model'][_0x5835('0x5c')](_0x4c2e2f));const _0x20e5d8=_0x256f2a[_0x5835('0x3d')](_0x4f3d02);_0x3215e4(_0x2bea09),_0x4f3d02=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x4c2e2f=_0x3d5b4e['getCaptionFromImageModelElement'](_0x4f3d02),_0x50d537[_0x5835('0x20')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0x4c2e2f),_0x20e5d8?null:_0x5835('0x55'));});}),_0x50d537[_0x5835('0xd')]['registerCustomCallback'](_0x5835('0x14'),_0x5835('0x55'),_0x5835('0x37'),_0x2e3d0c)),_0x5834f5[_0x5835('0x36')]['has'](_0x5835('0x60'))){_0x50d537['enableCommand'](_0x5835('0xc'),(_0x2e8feb,_0x365955)=>{const _0x1e8466=_0x5834f5['plugins'][_0x5835('0x45')](_0x5835('0x19'))['me'],_0x13b67c=_0x5834f5['commands'][_0x5835('0x45')](_0x5835('0xc'));let _0xa70978=_0x256f2a['getClosestSelectedImageElement'](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x401f2d=_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0xa70978),_0x59dfe2=_0x13b67c[_0x5835('0x25')];if(_0x59dfe2==_0x365955['value'])return;const _0x5ec510={'commandName':_0x5835('0xc'),'commandParams':[_0x365955],'formatGroupId':_0x92ff32()};_0x5834f5['model'][_0x5835('0x65')](()=>{if(_0x50d537[_0x5835('0x11')]()[_0x5835('0xf')](_0x678130=>_0x678130[_0x5835('0x3f')]&&_0x1e8466==_0x678130[_0x5835('0x48')]&&('formatBlock'==_0x678130[_0x5835('0x27')]||'formatInline'==_0x678130[_0x5835('0x27')])&&(_0x5835('0x41')==_0x678130[_0x5835('0x6c')]||_0x5835('0x68')==_0x678130[_0x5835('0x6c')])&&_0x678130[_0x5835('0x16')]()[_0x5835('0x44')](_0x401f2d))[_0x5835('0x1b')](_0x1d6e21=>_0x50d537[_0x5835('0x43')](_0x1d6e21[_0x5835('0x5a')])),_0xa70978=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]),_0x401f2d=_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0xa70978),_0x13b67c[_0x5835('0x76')](),_0x5834f5[_0x5835('0x33')][_0x5835('0x45')]('imageTypeInline')['refresh'](),_0x5834f5[_0x5835('0x33')][_0x5835('0x45')](_0x5835('0xb'))[_0x5835('0x76')](),_0x59dfe2=_0x13b67c['value'],_0x59dfe2!=_0x365955[_0x5835('0x25')])return _0x256f2a[_0x5835('0x67')](_0xa70978)&&_0x13b67c[_0x5835('0xa')](_0x365955[_0x5835('0x25')],_0xa70978)?(_0x2e8feb(_0x365955),_0xa70978=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),void _0x50d537[_0x5835('0x2e')](_0xa70978,{..._0x5ec510,'commandReversedParams':[{'value':_0x59dfe2||null}]},[],_0x5835('0x41'))):void(_0x256f2a['isBlockImage'](_0xa70978)?_0x50d537[_0x5835('0x2e')](_0xa70978,_0x5ec510,[],_0x5835('0x68')):_0x50d537[_0x5835('0x6d')](_0x401f2d,_0x5ec510,_0x5835('0x68')));});});for(const _0x227bad of _0x5834f5[_0x5835('0x36')][_0x5835('0x45')](_0x5835('0x60'))[_0x5835('0x79')])_0x23cca4[_0x227bad[_0x5835('0x15')]]=_0x227bad[_0x5835('0x0')]['toLowerCase']();_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x41'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x68'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('formatInline',_0x5835('0x68'),_0x5835('0x52'),()=>{}),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x41'),'accept',()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),'imageStylePreApply',_0x5835('0x4b'),(_0x5f8cc0,_0x229c60)=>{_0x50d537['_suggestionFactory'][_0x5835('0x29')](_0x5835('0x3'),'',_0x5835('0x4f'))(_0x5f8cc0,{'commandName':_0x229c60[_0x5835('0x75')],'commandParams':_0x229c60[_0x5835('0x56')]});}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('formatBlock','imageStylePreApply',_0x5835('0x37'),_0x2e3d0c);}const _0x481d74=[{'type':'formatBlock','subType':_0x5835('0x41')},{'type':_0x5835('0x14'),'subType':_0x5835('0x55')},{'type':_0x5835('0x3'),'subType':_0x5835('0x4a')},{'type':_0x5835('0x14'),'subType':_0x5835('0x4a')}];function _0x248480(_0x23055f,_0x5ede26){const _0x169c0e=_0x481d74['findIndex'](({type:_0x21818c,subType:_0x3bc6de})=>_0x23055f[_0x5835('0x27')]==_0x21818c&&_0x23055f[_0x5835('0x6c')]==_0x3bc6de),_0x3b1476=_0x481d74[_0x5835('0x50')](({type:_0x6e591f,subType:_0x2c1d3d})=>_0x5ede26['type']==_0x6e591f&&_0x5ede26[_0x5835('0x6c')]==_0x2c1d3d);if(_0x169c0e<0x0||_0x3b1476<0x0)return!0x1;const _0x44c246=_0x23055f[_0x5835('0x16')](),_0xb2ba43=_0x5ede26[_0x5835('0x16')]();if((0x0==_0x169c0e||0x1==_0x169c0e)&&0x2==_0x3b1476&&_0x44c246[_0x5835('0x73')](_0xb2ba43))return!0x0;if(0x2==_0x169c0e&&0x3==_0x3b1476){const _0x22fdb8=_0x50d537[_0x5835('0x32')](_0x44c246,_0x5835('0x14'))['filter'](({suggestion:_0x2d8390,meta:_0x303a7b})=>_0x303a7b[_0x5835('0x6b')]&&_0x5835('0x4a')==_0x2d8390[_0x5835('0x6c')]);if(_0x22fdb8['length']>0x1&&_0xb2ba43[_0x5835('0x1f')][_0x5835('0x44')](_0x44c246['start']))return!0x0;if(0x1==_0x22fdb8[_0x5835('0x22')]&&(_0x44c246[_0x5835('0x5')]['isEqual'](_0xb2ba43[_0x5835('0x1f')])||_0x44c246['end'][_0x5835('0x44')](_0xb2ba43[_0x5835('0x5')])))return!0x0;}if(0x3==_0x169c0e&&0x3==_0x3b1476&&_0x44c246[_0x5835('0x5')][_0x5835('0x59')](_0xb2ba43['start'])){const _0x8293e8=_0x44c246['end'][_0x5835('0x4d')],_0x50522c=_0xb2ba43['start'][_0x5835('0x74')];return _0x256f2a[_0x5835('0x3d')](_0x8293e8)&&_0x8293e8===_0x50522c;}return!0x1;}function _0x2e3d0c(_0x3ae3aa,_0x34cb1b){return _0x248480(_0x3ae3aa,_0x34cb1b)?[_0x3ae3aa,_0x34cb1b]:_0x248480(_0x34cb1b,_0x3ae3aa)?[_0x34cb1b,_0x3ae3aa]:null;}_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x77')](()=>{let _0x55313a=!0x1;const _0x616073=Array['from'](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x54')][_0x5835('0x34')]());for(const {name:_0x2f8191,data:_0x106bc6}of _0x616073){const {group:_0x44eef2,type:_0x33b6dd,subType:_0x33bcae,id:_0x4717e8}=_0x50d537[_0x5835('0x1')](_0x2f8191);if(_0x5835('0x2f')==_0x44eef2&&_0x50d537[_0x5835('0x2')](_0x4717e8)){if(_0x5835('0x3')==_0x33b6dd&&(_0x5835('0x41')==_0x33bcae||_0x5835('0x68')==_0x33bcae)){const _0x47ee12=_0x50d537[_0x5835('0x6a')](_0x4717e8);if(_0x106bc6[_0x5835('0x61')]){const _0x7f0dc2=_0x47ee12[_0x5835('0x16')]()[_0x5835('0x42')]();if(_0x256f2a['isBlockImage'](_0x7f0dc2))continue;_0x50d537['discardSuggestion'](_0x47ee12),_0x55313a=!0x0;}}if(_0x5835('0x14')==_0x33b6dd&&'imageCaption'==_0x33bcae&&!_0x106bc6[_0x5835('0x61')]){const _0x477d9c=_0x50d537['getSuggestion'](_0x4717e8);_0x477d9c['next']&&_0x477d9c[_0x5835('0x12')][_0x5835('0x3f')]&&(_0x50d537[_0x5835('0x43')](_0x477d9c['next']),_0x55313a=!0x0);}}}return _0x55313a;}),_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageResize')&&_0x50d537[_0x5835('0x40')](_0x5835('0x69'),(_0x452e8e,_0x588453)=>{const _0x133b5d=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')]['selection']);_0x133b5d[_0x5835('0x5b')](_0x5835('0x3a'))!=_0x588453['width']&&_0x5834f5[_0x5835('0x4c')][_0x5835('0x65')](()=>{_0x50d537[_0x5835('0x2e')](_0x133b5d,{'commandName':_0x5835('0x69'),'commandParams':[_0x588453]});});}),_0x5834f5['plugins']['has'](_0x5835('0xe'))&&_0x50d537[_0x5835('0x40')](_0x5835('0x5d'),(_0x485e66,_0x5fcec1)=>{const _0x953d5e=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]);(_0x953d5e['hasAttribute'](_0x5835('0x6'))?_0x953d5e[_0x5835('0x5b')]('alt'):'')!=_0x5fcec1[_0x5835('0x18')]&&_0x5834f5['model']['change'](()=>{_0x50d537[_0x5835('0x2e')](_0x953d5e,{'commandName':'imageTextAlternative','commandParams':[_0x5fcec1]});});}),_0x50d537['_descriptionFactory'][_0x5835('0x31')](_0x4fcf26=>{if(!!_0x481d74[_0x5835('0x30')](({type:_0x4a6948,subType:_0x585bba})=>_0x4fcf26[_0x5835('0x27')]==_0x4a6948&&_0x4fcf26[_0x5835('0x6c')]==_0x585bba))return _0x4fcf26[_0x5835('0x58')]?{}:void 0x0;}),_0x50d537[_0x5835('0x1a')][_0x5835('0x31')](_0x39f8b8=>{if(_0x5835('0x14')==_0x39f8b8['type']||'deletion'==_0x39f8b8['type']){const _0x303c16=_0x39f8b8['getContainedElement']();if(_0x303c16&&_0x303c16['is']('element',_0x5835('0x1d')))return{'type':'insertion'==_0x39f8b8[_0x5835('0x27')]?_0x5835('0x3c'):'removeObject','element':_0x303c16,'quantity':0x1};}}),_0x50d537[_0x5835('0x1a')][_0x5835('0x31')](_0x1d5cf1=>_0x5835('0x3')==_0x1d5cf1[_0x5835('0x27')]&&'convertInlineImageToBlock'==_0x1d5cf1['subType']?{'type':_0x5835('0x13'),'content':_0x5835('0x6e')}:_0x5835('0x3')==_0x1d5cf1['type']&&_0x5835('0x8')==_0x1d5cf1['subType']?{'type':'format','content':_0x5835('0x2c')}:void 0x0),_0x50d537['_descriptionFactory'][_0x5835('0x31')](_0x41fac8=>{const {data:_0x510609}=_0x41fac8;if(_0x510609){if('imageStyle'==_0x510609[_0x5835('0x75')]){const _0x236467=_0x510609[_0x5835('0x10')][0x0]['value'];return _0x3e3c42(_0x5835('0x49')===_0x236467?_0xe3b8f3(_0x5ce467,_0x5835('0x2d')):_0x23cca4[_0x236467]||_0x236467);}if(_0x5835('0x5d')==_0x510609[_0x5835('0x75')]){const _0x7a00fd=_0x510609[_0x5835('0x10')][0x0][_0x5835('0x18')];return _0x7a00fd?{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x66'),'\x22'+_0x7a00fd+'\x22')}:{'type':'format','content':_0xe3b8f3(_0x5ce467,_0x5835('0x26'))};}if(_0x5835('0x69')==_0x510609[_0x5835('0x75')]){const _0x2511c7=_0x510609['commandParams'][0x0]['width'];return _0x2511c7?{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x24'),_0x2511c7)}:{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x4'))};}}function _0x3e3c42(_0x5ccf86){return{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x35'),_0x5ccf86)};}});}}
|
|
23
|
+
const _0x37b3=['getSuggestion','previous','value','getContainedElement','newValue','Inline\x20image\x20to\x20block\x20image','convertInlineImageToBlock','imageStyle','*Set\x20image\x20width:*\x20%0','createRange','forEach','schema','getNearestSelectionRange','newRange','isInlineImage','Block\x20image\x20to\x20inline\x20image','get','formatInline','getSuggestionCallback','has','end','element','isEqual','isInContent','addObject','isCollapsed','*Reset\x20image\x20width*','markInsertion','convertBlockImageToInline','subType','start','isBlockImage','isOwn','registerPostFixer','ELEMENT_CAPTION','discardSuggestion','insertion','ImageResize','chain','detach','normalizedStyles','imageTypeBlock','getFirstRange','ImageEditing','commandReversedParams','ImageInlineEditing','plugins','format','_descriptionFactory','next','toPrevious','getSuggestions','enableCommand','backward','imageCaption','TrackChangesEditing','commandParams','getCaptionFromImageModelElement','document','ELEMENT_IMAGE','nodeBefore','filter','markDeletion','ImageTextAlternativeEditing','editor','differ','name','toLowerCase','commandName','_suggestionFactory','accept','registerCustomCallback','type','model','getChangedMarkers','*Set\x20image\x20text\x20alternative:*\x20%0','FORMAT_SIDE_IMAGE','title','fromPosition','suggestion','ImageBlockEditing','imageBlock','ImageUploadEditing','commands','markBlockFormat','alt','hasSuggestion','registerElementLabel','resizeImage','*Format:*\x20%0','imageStylePostApply','afterInit','registerDescriptionCallback','selection','length','removeObject','isBefore','shouldConvertImageType','Users','getClosestSelectedImageElement','ELEMENT_INLINE_IMAGE','discard','join','refresh','hasAttribute','formatBlock','imageTextAlternative','findIndex','_splitMarkerName','nodeAfter','side','width','ImageCaptionEditing','imageStylePreApply','_findSuggestions','imageTypeInline','from','change','caption','deletion','createRangeOn','head','uploadImage','ImageCaptionUtils','author','ImageStyleEditing','locale'];(function(_0x1e8d8b,_0x37b3a2){const _0x52979f=function(_0x3fbb14){while(--_0x3fbb14){_0x1e8d8b['push'](_0x1e8d8b['shift']());}};_0x52979f(++_0x37b3a2);}(_0x37b3,0xe4));const _0x5297=function(_0x1e8d8b,_0x37b3a2){_0x1e8d8b=_0x1e8d8b-0x0;let _0x52979f=_0x37b3[_0x1e8d8b];return _0x52979f;};import{Plugin as _0x2187cb}from'ckeditor5/src/core';import{LivePosition as _0x4e4a03}from'ckeditor5/src/engine';import{uid as _0x3eb7e0}from'ckeditor5/src/utils';import{getTranslation as _0x408a6d}from'../utils/common-translations';export default class Y extends _0x2187cb{[_0x5297('0x75')](){const _0x3abc47=this[_0x5297('0x5a')];if(!_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x45')))return;const _0x3f89ea=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x51')),_0x51d7a7=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')]('ImageUtils'),_0x2bf3d1={},_0x5d7a22=_0x3abc47[_0x5297('0x19')];if(_0x3f89ea[_0x5297('0x4e')]('insertImage'),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')](_0x5297('0x6b'),_0x20e8e3=>_0x408a6d(_0x5d7a22,_0x5297('0x55'),_0x20e8e3)),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x71')]('imageInline',_0x1d73a8=>_0x408a6d(_0x5d7a22,_0x5297('0x7e'),_0x1d73a8)),_0x3f89ea[_0x5297('0x4a')]['registerElementLabel']('caption',()=>_0x408a6d(_0x5d7a22,_0x5297('0x3c'))),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x6c'))&&_0x3f89ea['enableCommand'](_0x5297('0x15')),_0x3abc47['plugins'][_0x5297('0x2d')](_0x5297('0x6a'))&&_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x47'))&&(_0x3f89ea['enableCommand'](_0x5297('0xe'),(_0x2be1fb,_0x170126)=>{const _0x404148=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x404148,{'commandName':'imageTypeInline','commandParams':[_0x170126]},[],'convertBlockImageToInline');});}),_0x3f89ea[_0x5297('0x4e')](_0x5297('0x43'),(_0x59276a,_0x5a0dc5)=>{_0x3abc47['model'][_0x5297('0x10')](_0x49e021=>{let _0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x5d87d0=_0x4e4a03[_0x5297('0x68')](_0x3b568d[_0x5297('0x38')],_0x5297('0x4c')),_0x9fa9b=_0x4e4a03[_0x5297('0x68')](_0x3b568d['end'],'toNext');_0x3f89ea['forceDefaultExecution'](()=>_0x59276a(_0x5a0dc5)),_0x5f2340=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x3b568d=_0x49e021[_0x5297('0x13')](_0x5f2340);const _0x595f7b=_0x49e021[_0x5297('0x23')](_0x5d87d0,_0x9fa9b);_0x5d87d0[_0x5297('0x41')](),_0x9fa9b['detach'](),_0x3f89ea['markBlockFormat'](_0x5f2340,{'commandName':_0x5297('0xe')},[],_0x5297('0x20')),_0x595f7b['start'][_0x5297('0x7a')](_0x3b568d[_0x5297('0x38')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x595f7b['start'],_0x3b568d[_0x5297('0x38')]),_0x5297('0x20')),_0x3b568d['end'][_0x5297('0x7a')](_0x595f7b[_0x5297('0x2e')])&&_0x3f89ea[_0x5297('0x35')](_0x49e021[_0x5297('0x23')](_0x3b568d[_0x5297('0x2e')],_0x595f7b['end']),'convertInlineImageToBlock');});}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),'accept',()=>{}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')]('formatBlock',_0x5297('0x20'),_0x5297('0x0'),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'',_0x5297('0x60'))),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('insertion',_0x5297('0x20'),_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x20'),'discard',([_0xd95cf1])=>{const _0x49c301=_0x3f89ea['_suggestionFactory'][_0x5297('0x2c')](_0x5297('0x3e'),'',_0x5297('0x0'));let _0x228f58=_0xd95cf1[_0x5297('0x38')],_0x48655e=_0xd95cf1['end'];const _0x4c7e3d=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x228f58,_0x5297('0x4f')),_0x292f45=_0x3abc47[_0x5297('0x63')][_0x5297('0x25')][_0x5297('0x26')](_0x48655e,'forward');_0x4c7e3d['isCollapsed']&&(_0x228f58=_0x4c7e3d[_0x5297('0x38')]),_0x292f45[_0x5297('0x33')]&&(_0x48655e=_0x292f45[_0x5297('0x2e')]),_0x49c301([_0x3abc47[_0x5297('0x63')][_0x5297('0x23')](_0x228f58,_0x48655e)]);}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x20'),_0x5297('0x40'),_0x2e0be3),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x3e'),_0x5297('0x20'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0xb'))&&(_0x3f89ea[_0x5297('0x4e')]('toggleImageCaption',(_0x3f0782,_0x49e06b)=>{const _0x4ab62c=_0x3abc47['plugins'][_0x5297('0x2a')](_0x5297('0x16'));let _0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']),_0x1eff4a=_0x4ab62c['getCaptionFromImageModelElement'](_0x1eca4b);_0x3abc47[_0x5297('0x63')]['change'](()=>{if(_0x1eff4a)return void _0x3f89ea[_0x5297('0x58')](_0x3abc47['model'][_0x5297('0x13')](_0x1eff4a));const _0xad1e6=_0x51d7a7[_0x5297('0x39')](_0x1eca4b);_0x3f0782(_0x49e06b),_0x1eca4b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x1eff4a=_0x4ab62c[_0x5297('0x53')](_0x1eca4b),_0x3f89ea[_0x5297('0x35')](_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x1eff4a),_0xad1e6?null:'imageCaption');});}),_0x3f89ea['_suggestionFactory']['registerCustomCallback'](_0x5297('0x3e'),_0x5297('0x50'),'chain',_0x2e0be3)),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x18'))){_0x3f89ea['enableCommand'](_0x5297('0x21'),(_0x417426,_0x36d117)=>{const _0x3f25a9=_0x3abc47[_0x5297('0x48')][_0x5297('0x2a')](_0x5297('0x7c'))['me'],_0x51b23e=_0x3abc47[_0x5297('0x6d')]['get'](_0x5297('0x21'));let _0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0xb9cba5=_0x51b23e[_0x5297('0x1c')];if(_0xb9cba5==_0x36d117[_0x5297('0x1c')])return;const _0x462b18={'commandName':_0x5297('0x21'),'commandParams':[_0x36d117],'formatGroupId':_0x3eb7e0()};_0x3abc47['model'][_0x5297('0x10')](()=>{if(_0x3f89ea[_0x5297('0x4d')]()[_0x5297('0x57')](_0x14e094=>_0x14e094['isInContent']&&_0x3f25a9==_0x14e094[_0x5297('0x17')]&&(_0x5297('0x4')==_0x14e094[_0x5297('0x62')]||_0x5297('0x2b')==_0x14e094['type'])&&('imageStylePreApply'==_0x14e094[_0x5297('0x37')]||_0x5297('0x74')==_0x14e094['subType'])&&_0x14e094[_0x5297('0x44')]()['isEqual'](_0x26a5ed))[_0x5297('0x24')](_0x172dc4=>_0x3f89ea['discardSuggestion'](_0x172dc4[_0x5297('0x14')])),_0x5e228b=_0x51d7a7[_0x5297('0x7d')](_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x77')]),_0x26a5ed=_0x3abc47[_0x5297('0x63')][_0x5297('0x13')](_0x5e228b),_0x51b23e[_0x5297('0x2')](),_0x3abc47['commands'][_0x5297('0x2a')](_0x5297('0xe'))['refresh'](),_0x3abc47['commands']['get'](_0x5297('0x43'))[_0x5297('0x2')](),_0xb9cba5=_0x51b23e[_0x5297('0x1c')],_0xb9cba5!=_0x36d117[_0x5297('0x1c')])return _0x51d7a7[_0x5297('0x28')](_0x5e228b)&&_0x51b23e[_0x5297('0x7b')](_0x36d117[_0x5297('0x1c')],_0x5e228b)?(_0x417426(_0x36d117),_0x5e228b=_0x51d7a7['getClosestSelectedImageElement'](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]),void _0x3f89ea[_0x5297('0x6e')](_0x5e228b,{..._0x462b18,'commandReversedParams':[{'value':_0xb9cba5||null}]},[],_0x5297('0xc'))):void(_0x51d7a7[_0x5297('0x39')](_0x5e228b)?_0x3f89ea[_0x5297('0x6e')](_0x5e228b,_0x462b18,[],_0x5297('0x74')):_0x3f89ea['markInlineFormat'](_0x26a5ed,_0x462b18,'imageStylePostApply'));});});for(const _0x55e384 of _0x3abc47['plugins']['get'](_0x5297('0x18'))[_0x5297('0x42')])_0x2bf3d1[_0x55e384[_0x5297('0x5c')]]=_0x55e384[_0x5297('0x67')][_0x5297('0x5d')]();_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback'](_0x5297('0x4'),_0x5297('0x74'),'join',()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')](_0x5297('0x2b'),'imageStylePostApply',_0x5297('0x1'),()=>{}),_0x3f89ea[_0x5297('0x5f')]['registerCustomCallback']('formatBlock',_0x5297('0xc'),_0x5297('0x60'),()=>{}),_0x3f89ea[_0x5297('0x5f')][_0x5297('0x61')]('formatBlock','imageStylePreApply',_0x5297('0x0'),(_0x657d73,_0x6e2f98)=>{_0x3f89ea[_0x5297('0x5f')][_0x5297('0x2c')](_0x5297('0x4'),'','accept')(_0x657d73,{'commandName':_0x6e2f98[_0x5297('0x5e')],'commandParams':_0x6e2f98[_0x5297('0x46')]});}),_0x3f89ea['_suggestionFactory'][_0x5297('0x61')](_0x5297('0x4'),_0x5297('0xc'),'chain',_0x2e0be3);}const _0x2142cf=[{'type':_0x5297('0x4'),'subType':_0x5297('0xc')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x50')},{'type':_0x5297('0x4'),'subType':_0x5297('0x20')},{'type':_0x5297('0x3e'),'subType':_0x5297('0x20')}];function _0x58c5d2(_0x51afb2,_0x497856){const _0x5bd3c2=_0x2142cf[_0x5297('0x6')](({type:_0x4b624d,subType:_0x46901c})=>_0x51afb2[_0x5297('0x62')]==_0x4b624d&&_0x51afb2['subType']==_0x46901c),_0x4054de=_0x2142cf[_0x5297('0x6')](({type:_0xe4fd2a,subType:_0x3896e8})=>_0x497856['type']==_0xe4fd2a&&_0x497856['subType']==_0x3896e8);if(_0x5bd3c2<0x0||_0x4054de<0x0)return!0x1;const _0x34a278=_0x51afb2['getFirstRange'](),_0x178a02=_0x497856[_0x5297('0x44')]();if((0x0==_0x5bd3c2||0x1==_0x5bd3c2)&&0x2==_0x4054de&&_0x34a278['isIntersecting'](_0x178a02))return!0x0;if(0x2==_0x5bd3c2&&0x3==_0x4054de){const _0x341424=_0x3f89ea[_0x5297('0xd')](_0x34a278,_0x5297('0x3e'))['filter'](({suggestion:_0x51f833,meta:_0x5eb759})=>_0x5eb759[_0x5297('0x3a')]&&_0x5297('0x20')==_0x51f833[_0x5297('0x37')]);if(_0x341424['length']>0x1&&_0x178a02[_0x5297('0x2e')][_0x5297('0x30')](_0x34a278[_0x5297('0x38')]))return!0x0;if(0x1==_0x341424[_0x5297('0x78')]&&(_0x34a278['start'][_0x5297('0x30')](_0x178a02[_0x5297('0x2e')])||_0x34a278[_0x5297('0x2e')][_0x5297('0x30')](_0x178a02[_0x5297('0x38')])))return!0x0;}if(0x3==_0x5bd3c2&&0x3==_0x4054de&&_0x34a278[_0x5297('0x38')][_0x5297('0x7a')](_0x178a02['start'])){const _0x3563be=_0x34a278[_0x5297('0x2e')][_0x5297('0x8')],_0x3b194b=_0x178a02[_0x5297('0x38')][_0x5297('0x56')];return _0x51d7a7[_0x5297('0x39')](_0x3563be)&&_0x3563be===_0x3b194b;}return!0x1;}function _0x2e0be3(_0x3a03bb,_0x51f870){return _0x58c5d2(_0x3a03bb,_0x51f870)?[_0x3a03bb,_0x51f870]:_0x58c5d2(_0x51f870,_0x3a03bb)?[_0x51f870,_0x3a03bb]:null;}_0x3abc47['model'][_0x5297('0x54')][_0x5297('0x3b')](()=>{let _0x187651=!0x1;const _0x111462=Array[_0x5297('0xf')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x5b')][_0x5297('0x64')]());for(const {name:_0x1a4ddd,data:_0x4c271e}of _0x111462){const {group:_0x3dbd0c,type:_0x30c7aa,subType:_0x395dca,id:_0xc2f7d1}=_0x3f89ea[_0x5297('0x7')](_0x1a4ddd);if(_0x5297('0x69')==_0x3dbd0c&&_0x3f89ea[_0x5297('0x70')](_0xc2f7d1)){if('formatBlock'==_0x30c7aa&&('imageStylePreApply'==_0x395dca||_0x5297('0x74')==_0x395dca)){const _0x41c565=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);if(_0x4c271e[_0x5297('0x27')]){const _0x15c4d4=_0x41c565[_0x5297('0x44')]()[_0x5297('0x1d')]();if(_0x51d7a7[_0x5297('0x39')](_0x15c4d4))continue;_0x3f89ea[_0x5297('0x3d')](_0x41c565),_0x187651=!0x0;}}if(_0x5297('0x3e')==_0x30c7aa&&_0x5297('0x50')==_0x395dca&&!_0x4c271e[_0x5297('0x27')]){const _0x18afa7=_0x3f89ea[_0x5297('0x1a')](_0xc2f7d1);_0x18afa7[_0x5297('0x4b')]&&_0x18afa7[_0x5297('0x4b')][_0x5297('0x31')]&&(_0x3f89ea[_0x5297('0x3d')](_0x18afa7[_0x5297('0x4b')]),_0x187651=!0x0);}}}return _0x187651;}),_0x3abc47[_0x5297('0x48')][_0x5297('0x2d')](_0x5297('0x3f'))&&_0x3f89ea[_0x5297('0x4e')]('resizeImage',(_0x187f10,_0x418acd)=>{const _0x320f5c=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')]['selection']);_0x320f5c['getAttribute'](_0x5297('0xa'))!=_0x418acd['width']&&_0x3abc47[_0x5297('0x63')]['change'](()=>{_0x3f89ea['markBlockFormat'](_0x320f5c,{'commandName':_0x5297('0x72'),'commandParams':[_0x418acd]});});}),_0x3abc47[_0x5297('0x48')]['has'](_0x5297('0x59'))&&_0x3f89ea[_0x5297('0x4e')](_0x5297('0x5'),(_0x45b43e,_0x3f9bbd)=>{const _0x4a7827=_0x51d7a7[_0x5297('0x7d')](_0x3abc47[_0x5297('0x63')][_0x5297('0x54')][_0x5297('0x77')]);(_0x4a7827[_0x5297('0x3')](_0x5297('0x6f'))?_0x4a7827['getAttribute'](_0x5297('0x6f')):'')!=_0x3f9bbd[_0x5297('0x1e')]&&_0x3abc47[_0x5297('0x63')][_0x5297('0x10')](()=>{_0x3f89ea[_0x5297('0x6e')](_0x4a7827,{'commandName':_0x5297('0x5'),'commandParams':[_0x3f9bbd]});});}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x23ee04=>{if(!!_0x2142cf['find'](({type:_0x4be72f,subType:_0x485d40})=>_0x23ee04['type']==_0x4be72f&&_0x23ee04[_0x5297('0x37')]==_0x485d40))return _0x23ee04[_0x5297('0x1b')]?{}:void 0x0;}),_0x3f89ea[_0x5297('0x4a')][_0x5297('0x76')](_0x168026=>{if(_0x5297('0x3e')==_0x168026[_0x5297('0x62')]||_0x5297('0x12')==_0x168026[_0x5297('0x62')]){const _0x924c97=_0x168026[_0x5297('0x1d')]();if(_0x924c97&&_0x924c97['is'](_0x5297('0x2f'),_0x5297('0x11')))return{'type':_0x5297('0x3e')==_0x168026[_0x5297('0x62')]?_0x5297('0x32'):_0x5297('0x79'),'element':_0x924c97,'quantity':0x1};}}),_0x3f89ea['_descriptionFactory']['registerDescriptionCallback'](_0x2b603f=>_0x5297('0x4')==_0x2b603f['type']&&_0x5297('0x20')==_0x2b603f['subType']?{'type':_0x5297('0x49'),'content':_0x5297('0x1f')}:'formatBlock'==_0x2b603f[_0x5297('0x62')]&&_0x5297('0x36')==_0x2b603f[_0x5297('0x37')]?{'type':_0x5297('0x49'),'content':_0x5297('0x29')}:void 0x0),_0x3f89ea['_descriptionFactory'][_0x5297('0x76')](_0x2a4a18=>{const {data:_0x4e4cc6}=_0x2a4a18;if(_0x4e4cc6){if(_0x5297('0x21')==_0x4e4cc6[_0x5297('0x5e')]){const _0x49babc=_0x4e4cc6[_0x5297('0x52')][0x0]['value'];return _0x5877cd(_0x5297('0x9')===_0x49babc?_0x408a6d(_0x5d7a22,_0x5297('0x66')):_0x2bf3d1[_0x49babc]||_0x49babc);}if(_0x5297('0x5')==_0x4e4cc6['commandName']){const _0x307c85=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0x1e')];return _0x307c85?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x65'),'\x22'+_0x307c85+'\x22')}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e4cc6[_0x5297('0x5e')]){const _0xec3c1b=_0x4e4cc6[_0x5297('0x52')][0x0][_0x5297('0xa')];return _0xec3c1b?{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x22'),_0xec3c1b)}:{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x34'))};}}function _0x5877cd(_0x292a6d){return{'type':_0x5297('0x49'),'content':_0x408a6d(_0x5d7a22,_0x5297('0x73'),_0x292a6d)};}});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 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 _0xe0c9=['subType','locale','format','*Format:*\x20replace\x20image\x20URL','src','registerCustomCallback','handleReplaceImageCommand','has','handleSuggestionDescription','accept','TrackChangesEditing','formatBlock','discard','ImageEditing','commandParams','data','_descriptionFactory','getSuggestionCallback','getSuggestions','markBlockFormat','getContainedElement','_suggestionFactory','get','enableCommand','getSelectedElement','change','model','selection','editor','replaceImageSource','plugins','registerDescriptionCallback'];(function(_0x2397fb,_0xe0c95a){const _0x2bdee6=function(_0x240609){while(--_0x240609){_0x2397fb['push'](_0x2397fb['shift']());}};_0x2bdee6(++_0xe0c95a);}(_0xe0c9,0xf9));const _0x2bde=function(_0x2397fb,_0xe0c95a){_0x2397fb=_0x2397fb-0x0;let _0x2bdee6=_0xe0c9[_0x2397fb];return _0x2bdee6;};import{Plugin as _0x4bf2bd}from'ckeditor5/src/core';import{getTranslation as _0x52db62}from'../utils/common-translations';export default class Z extends _0x4bf2bd{['afterInit'](){if(!this['editor']['plugins'][_0x2bde('0xe')](_0x2bde('0x14')))return;const _0x1d09d9=this[_0x2bde('0x3')][_0x2bde('0x5')][_0x2bde('0x1d')](_0x2bde('0x11'));_0x1d09d9[_0x2bde('0x1e')]('replaceImageSource',(_0x2dba88,_0x127af4)=>this[_0x2bde('0xd')](_0x2dba88,_0x127af4)),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0xc')](_0x2bde('0x12'),'replaceImageSource',_0x2bde('0x10'),_0x1d09d9['_suggestionFactory']['getSuggestionCallback'](_0x2bde('0x12'),null,_0x2bde('0x13'))),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0xc')](_0x2bde('0x12'),'replaceImageSource',_0x2bde('0x13'),_0x1d09d9[_0x2bde('0x1c')][_0x2bde('0x18')](_0x2bde('0x12'),null,_0x2bde('0x10'))),_0x1d09d9[_0x2bde('0x17')][_0x2bde('0x6')](_0x22ccc8=>this[_0x2bde('0xf')](_0x22ccc8));}[_0x2bde('0xd')](_0x4842fb,_0x3a96fe){const _0xcec22d=this[_0x2bde('0x3')][_0x2bde('0x5')][_0x2bde('0x1d')](_0x2bde('0x11')),_0x2a8a56=this[_0x2bde('0x3')]['model']['document'][_0x2bde('0x2')][_0x2bde('0x1f')]();this[_0x2bde('0x3')][_0x2bde('0x1')][_0x2bde('0x0')](()=>{let _0x57acd4=_0x2a8a56['getAttribute'](_0x2bde('0xb'));const _0x1bf3ed=this['editor'][_0x2bde('0x5')][_0x2bde('0x1d')]('Users')['me'];for(const _0x3231a8 of _0xcec22d[_0x2bde('0x19')]({'skipNotAttached':!0x0})){const _0x13bc11=_0x3231a8[_0x2bde('0x1b')]();if(_0x2bde('0x4')===_0x3231a8[_0x2bde('0x7')]&&_0x13bc11===_0x2a8a56){_0x3231a8['author']!==_0x1bf3ed&&_0x3231a8[_0x2bde('0x13')](),_0x57acd4=_0x3231a8[_0x2bde('0x16')][_0x2bde('0x15')][0x0]['source'];break;}}_0x4842fb(_0x3a96fe),_0xcec22d[_0x2bde('0x1a')](_0x2a8a56,{'commandName':_0x2bde('0x4'),'commandParams':[{'source':_0x57acd4}]},[],'replaceImageSource');});}[_0x2bde('0xf')](_0x32a30b){const {data:_0x5c831b}=_0x32a30b;if(_0x5c831b&&_0x2bde('0x4')===_0x5c831b['commandName']){const _0x19f3d0=_0x2bde('0xa');return{'type':_0x2bde('0x9'),'content':_0x52db62(this[_0x2bde('0x3')][_0x2bde('0x8')],_0x19f3d0)};}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0xe6fb=['listenTo','importWord','_handleImportedData','enableCommand','dataInsert','TrackChangesEditing','trackChanges','plugins','commands','forEach','track_changes','value','afterInit','bind','get','editor','execute','_trackChangesExecuted','high','collaboration_features','_trackChangesValueDuringImport','_setSuggestionData'];(function(_0x563778,_0xe6fb9f){const _0x353fca=function(_0x1b6d25){while(--_0x1b6d25){_0x563778['push'](_0x563778['shift']());}};_0x353fca(++_0xe6fb9f);}(_0xe6fb,0x1ce));const _0x353f=function(_0x563778,_0xe6fb9f){_0x563778=_0x563778-0x0;let _0x353fca=_0xe6fb[_0x563778];return _0x353fca;};import{Plugin as _0x35e9c1}from'ckeditor5/src/core';import _0x1c6f52 from'../trackchangesediting';export default class tt extends _0x35e9c1{constructor(_0x38f053){super(_0x38f053),this[_0x353f('0x14')]=!0x1,this[_0x353f('0x11')]=!0x1;}[_0x353f('0xc')](){const _0x17c80f=this[_0x353f('0xf')],_0x50bcf5=_0x17c80f[_0x353f('0x8')]['get'](_0x353f('0x1')),_0x4bdc5d=_0x17c80f['commands'][_0x353f('0xe')](_0x353f('0x6'));_0x50bcf5&&(_0x50bcf5['on'](_0x353f('0x10'),(_0xdf2677,[,_0x3aeb38])=>{this[_0x353f('0x14')]=_0x4bdc5d[_0x353f('0xb')],_0x3aeb38[_0x353f('0x13')][_0x353f('0xa')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x353f('0x12')}),this['listenTo'](_0x50bcf5,_0x353f('0x4'),this[_0x353f('0x2')][_0x353f('0xd')](this)),this[_0x353f('0x0')](_0x50bcf5,_0x353f('0x4'),()=>{this[_0x353f('0x11')]&&(_0x4bdc5d[_0x353f('0x10')](),this[_0x353f('0x11')]=!0x1);},{'priority':'lowest'}),_0x17c80f[_0x353f('0x7')][_0x353f('0xe')](_0x353f('0x5'))[_0x353f('0x3')](_0x353f('0x1')));}[_0x353f('0x2')](_0x15778f,_0x105e60){const {suggestions:_0x18d86c}=_0x105e60,_0x5dbe13=this['editor'][_0x353f('0x8')][_0x353f('0xe')](_0x353f('0x6')),_0x41e406=_0x5dbe13[_0x353f('0xb')];this[_0x353f('0x14')]!==_0x41e406&&(_0x5dbe13[_0x353f('0x10')](),this['_trackChangesExecuted']=!0x0),_0x18d86c&&_0x18d86c[_0x353f('0x9')](({id:_0x534a71,type:_0x3976a5,author:_0x4032fd,created_at:_0x623223})=>{const _0x4fba50={'id':_0x534a71,'type':_0x3976a5,'authorId':this[_0x353f('0xf')][_0x353f('0x7')][_0x353f('0xe')]('Users')['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4032fd,'createdAt':_0x623223?new Date(_0x623223):new Date(),'source':_0x353f('0x1')}}};this[_0x353f('0xf')][_0x353f('0x7')][_0x353f('0xe')](_0x1c6f52)[_0x353f('0x15')](_0x4fba50);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x1293=['plugins','format','checkAttribute','commandName','document','getItemLabel','locale','_descriptionFactory','afterInit','get','IndentEditing','IndentBlock','indentBlock','editor','registerDescriptionCallback','schema','outdent','change','TrackChangesEditing','getSelectedBlocks','enableCommand','*Indent:*\x20%0','markBlockFormat','filter','model','outdentBlock','has'];(function(_0x18f5b6,_0x129393){const _0x7474fa=function(_0x318449){while(--_0x318449){_0x18f5b6['push'](_0x18f5b6['shift']());}};_0x7474fa(++_0x129393);}(_0x1293,0xcc));const _0x7474=function(_0x18f5b6,_0x129393){_0x18f5b6=_0x18f5b6-0x0;let _0x7474fa=_0x1293[_0x18f5b6];return _0x7474fa;};import{Plugin as _0x163414}from'ckeditor5/src/core';import{getTranslation as _0xd9ef75}from'../utils/common-translations';export default class it extends _0x163414{[_0x7474('0x14')](){const _0xc111d7=this['editor'],_0x159dbd=_0xc111d7[_0x7474('0xc')][_0x7474('0x15')](_0x7474('0x3'));_0xc111d7['plugins']['has'](_0x7474('0x16'))&&(_0x159dbd['enableCommand']('indent'),_0x159dbd[_0x7474('0x5')](_0x7474('0x1')));const _0x316721=_0xc111d7[_0x7474('0x12')];if(_0xc111d7['plugins'][_0x7474('0xb')](_0x7474('0x17'))){for(const _0x4c4ffe of['indentBlock',_0x7474('0xa')])_0x159dbd[_0x7474('0x5')](_0x4c4ffe,()=>{const _0x3002c0=Array['from'](this[_0x7474('0x19')][_0x7474('0x9')][_0x7474('0x10')]['selection'][_0x7474('0x4')]())[_0x7474('0x8')](_0x1249ef=>this[_0x7474('0x19')][_0x7474('0x9')][_0x7474('0x0')][_0x7474('0xe')](_0x1249ef,'blockIndent'));_0xc111d7['model'][_0x7474('0x2')](()=>{for(const _0x12b4f2 of _0x3002c0)_0x159dbd[_0x7474('0x7')](_0x12b4f2,{'commandName':_0x4c4ffe,'commandParams':[{'value':''}],'formatGroupId':_0x7474('0x18')});});});_0x159dbd[_0x7474('0x13')][_0x7474('0x1a')](_0x321828=>{const {data:_0x509b50}=_0x321828;if(!_0x509b50)return;if(_0x7474('0x18')!=_0x509b50[_0x7474('0xf')]&&'outdentBlock'!=_0x509b50[_0x7474('0xf')])return;const _0x55e0e8=_0x321828['getItems']()[0x0],_0x35f49a=_0x159dbd['_descriptionFactory'][_0x7474('0x11')](_0x55e0e8);return _0x7474('0x18')==_0x509b50[_0x7474('0xf')]?{'type':_0x7474('0xd'),'content':_0xd9ef75(_0x316721,_0x7474('0x6'),_0x35f49a)}:_0x7474('0xa')==_0x509b50[_0x7474('0xf')]?{'type':_0x7474('0xd'),'content':_0xd9ef75(_0x316721,'*Outdent:*\x20%0',_0x35f49a)}:void 0x0;});}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0xd310=['editor','init','enableCommand','input','get'];(function(_0x539842,_0xd310be){var _0x5e47a4=function(_0x4ae932){while(--_0x4ae932){_0x539842['push'](_0x539842['shift']());}};_0x5e47a4(++_0xd310be);}(_0xd310,0x1c3));var _0x5e47=function(_0x539842,_0xd310be){_0x539842=_0x539842-0x0;var _0x5e47a4=_0xd310[_0x539842];return _0x5e47a4;};import{Plugin as _0x18dd5e}from'ckeditor5/src/core';import{Input as _0x5abb80}from'ckeditor5/src/typing';export default class st extends _0x18dd5e{static get['requires'](){return[_0x5abb80];}[_0x5e47('0x0')](){this[_0x5e47('0x4')]['plugins'][_0x5e47('0x3')]('TrackChangesEditing')[_0x5e47('0x1')](_0x5e47('0x2'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0xc96e=['link','isCollapsed','getAttribute','change','locale','model','document','hasAttribute','commandName','get','enableCommand','from','commandParams','getFirstPosition','linkHref','has','format','getRanges','afterInit','markInlineFormat','TrackChangesEditing','_descriptionFactory','selection','*Remove\x20link*','unlink','plugins','*Set\x20link:*\x20%0','editor'];(function(_0x28fc6b,_0xc96ed0){const _0x402982=function(_0x4a839d){while(--_0x4a839d){_0x28fc6b['push'](_0x28fc6b['shift']());}};_0x402982(++_0xc96ed0);}(_0xc96e,0x110));const _0x4029=function(_0x28fc6b,_0xc96ed0){_0x28fc6b=_0x28fc6b-0x0;let _0x402982=_0xc96e[_0x28fc6b];return _0x402982;};import{Plugin as _0x1e35be}from'ckeditor5/src/core';import{findAttributeRange as _0x4fb234}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x18269e}from'./utils';import{getTranslation as _0x3dd2aa}from'../utils/common-translations';export default class et extends _0x1e35be{[_0x4029('0x1a')](){const _0x3d0971=this[_0x4029('0x7')];if(!_0x3d0971[_0x4029('0x5')][_0x4029('0x17')]('LinkEditing'))return;const _0x93e3dd=_0x3d0971[_0x4029('0x5')][_0x4029('0x11')](_0x4029('0x0'));_0x93e3dd[_0x4029('0x12')](_0x4029('0x8'),(_0x4764b6,_0x434412)=>{const _0x2cc0dc=_0x3d0971[_0x4029('0xd')][_0x4029('0xe')][_0x4029('0x2')];let _0x223fbb=[];if(_0x2cc0dc[_0x4029('0x9')]){if(!_0x2cc0dc[_0x4029('0xf')](_0x4029('0x16')))return void _0x4764b6(_0x434412);{const _0x128a10=_0x4fb234(_0x2cc0dc[_0x4029('0x15')](),_0x4029('0x16'),_0x2cc0dc['getAttribute'](_0x4029('0x16')),_0x3d0971[_0x4029('0xd')]);_0x223fbb=[_0x128a10];}}else _0x223fbb=Array[_0x4029('0x13')](_0x2cc0dc[_0x4029('0x19')]());_0x3d0971[_0x4029('0xd')]['change'](()=>{for(const _0x932feb of _0x223fbb)_0x93e3dd[_0x4029('0x1b')](_0x932feb,{'commandName':_0x4029('0x8'),'commandParams':[_0x434412]});});}),_0x93e3dd[_0x4029('0x12')](_0x4029('0x4'),()=>{const _0x10ec5e=this[_0x4029('0x7')]['model'],_0x3cce38=_0x10ec5e[_0x4029('0xe')][_0x4029('0x2')];_0x10ec5e[_0x4029('0xb')](()=>{let _0x57cf82=[];if(_0x3cce38[_0x4029('0x9')])_0x57cf82=[_0x4fb234(_0x3cce38['getFirstPosition'](),_0x4029('0x16'),_0x3cce38[_0x4029('0xa')](_0x4029('0x16')),_0x3d0971['model'])];else _0x57cf82=_0x18269e(_0x4029('0x16'),_0x3cce38['getFirstRange'](),_0x3d0971[_0x4029('0xd')]);for(const _0x1c61db of _0x57cf82)_0x93e3dd[_0x4029('0x1b')](_0x1c61db,{'commandName':_0x4029('0x4'),'commandParams':[]});});}),_0x93e3dd[_0x4029('0x1')]['registerDescriptionCallback'](_0x5b1e48=>{const {data:_0x2b24ce}=_0x5b1e48,_0x854c81=_0x3d0971[_0x4029('0xc')];if(_0x2b24ce){if(_0x4029('0x8')==_0x2b24ce['commandName']){const _0x28f679=_0x2b24ce[_0x4029('0x14')][0x0];return{'type':_0x4029('0x18'),'content':_0x3dd2aa(_0x854c81,_0x4029('0x6'),'\x22'+_0x28f679+'\x22')};}return'unlink'==_0x2b24ce[_0x4029('0x10')]?{'type':_0x4029('0x18'),'content':_0x3dd2aa(_0x854c81,_0x4029('0x3'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x29e8=['outdentList','nextSibling','getAttribute','format','value','forceValue','indentList','*Outdent:*\x20%0','selection','*Check\x20item*','*Indent:*\x20%0','blockName','enableCommand','registerElementLabel','todo','from','editor','push','commandName','bulleted','execute','length','todoList','numbered','todoListChecked','List','*Change\x20to:*\x20%0','model','plugins','ELEMENT_LIST_ITEM','ELEMENT_BULLETED_LIST','listType','replace','has','before','add','checkChild','filter','commands','afterInit','TrackChangesEditing','_selectedElements','element','slice','get','name','TodoListEditing','previousSibling','change','checkTodoList','markBlockFormat','getSelectedBlocks','numberedList','parent','findIndex','createPositionAt','document','ELEMENT_NUMBERED_LIST','listItem','_descriptionFactory','listIndent','commandParams'];(function(_0x3dc852,_0x29e8af){const _0x173b8c=function(_0x56a108){while(--_0x56a108){_0x3dc852['push'](_0x3dc852['shift']());}};_0x173b8c(++_0x29e8af);}(_0x29e8,0x167));const _0x173b=function(_0x3dc852,_0x29e8af){_0x3dc852=_0x3dc852-0x0;let _0x173b8c=_0x29e8[_0x3dc852];return _0x173b8c;};import{Plugin as _0x5f1d6b}from'ckeditor5/src/core';import{getTranslation as _0x37a128}from'../utils/common-translations';export default class nt extends _0x5f1d6b{[_0x173b('0x34')](){const _0x4a34ca=this[_0x173b('0x1d')],_0x2ceaa1=_0x4a34ca['locale'];if(!_0x4a34ca[_0x173b('0x29')]['has']('ListEditing'))return;const _0x10a7a4=_0x4a34ca['plugins']['get'](_0x173b('0x35')),_0x14d47e=_0x4a34ca[_0x173b('0x29')][_0x173b('0x2e')](_0x173b('0x3b'));function _0x36335a(_0xe2170c){return()=>{const _0x2d50a2=_0x4a34ca[_0x173b('0x28')][_0x173b('0x7')][_0x173b('0x15')],_0x110b86=_0x4a34ca[_0x173b('0x33')][_0x173b('0x39')](_0xe2170c);if(_0x110b86[_0x173b('0x11')])return void _0x4a34ca[_0x173b('0x21')]('paragraph',{});const _0x4463ec=_0xe2170c[_0x173b('0x38')](0x0,-0x4),_0x366723=function(_0x23c433,_0x4be3f3,_0xa8a57){let _0x3bfc16=Array['from'](_0x23c433)['filter'](_0x134804=>function(_0x32333b,_0xcd3555){return _0xcd3555[_0x173b('0x31')](_0x32333b[_0x173b('0x4')],_0x173b('0x9'))&&!_0xcd3555['isObject'](_0x32333b);}(_0x134804,_0xa8a57));_0x3bfc16=_0x3bfc16[_0x173b('0x32')](_0x1f73c0=>!_0x1f73c0['is'](_0x173b('0x37'),_0x173b('0x9'))||_0x1f73c0['getAttribute'](_0x173b('0x2c'))!=_0x4be3f3);const _0x59a6aa=new Set();for(const _0x3403f3 of _0x3bfc16)_0x3403f3['is']('element',_0x173b('0x9'))?_0x59a6aa['add'](ne(_0x3403f3)):_0x59a6aa[_0x173b('0x30')](_0x3403f3);return Array[_0x173b('0x1c')](_0x59a6aa);}(_0x2d50a2['getSelectedBlocks'](),_0x4463ec,_0x4a34ca[_0x173b('0x28')]['schema']);_0x4a34ca['model'][_0x173b('0x3d')](()=>{for(const _0x21e6ce of _0x366723)_0x10a7a4[_0x173b('0x1')](_0x21e6ce,{'commandName':_0xe2170c,'commandParams':[{'forceValue':!_0x110b86['value']}],'formatGroupId':_0x173b('0x18')},oe(_0x21e6ce));});};}function _0x8beb50(_0x5c2ea2){return()=>{const _0x4518a9=function(_0xc260fa){const _0x3b7e0=(_0xc260fa=Array[_0x173b('0x1c')](_0xc260fa))[_0x173b('0x5')](_0x2b7f13=>'listItem'!=_0x2b7f13[_0x173b('0x3a')]);return _0x3b7e0>-0x1&&(_0xc260fa=_0xc260fa[_0x173b('0x38')](0x0,_0x3b7e0)),_0xc260fa;}(_0x4a34ca[_0x173b('0x28')][_0x173b('0x7')][_0x173b('0x15')][_0x173b('0x2')]()),_0x46a925=_0x4a34ca['model']['createRange'](_0x4a34ca['model'][_0x173b('0x6')](_0x4518a9[0x0],_0x173b('0x2f')),_0x4a34ca[_0x173b('0x28')][_0x173b('0x6')](_0x4518a9[_0x4518a9[_0x173b('0x22')]-0x1],'end'));_0x4a34ca['model'][_0x173b('0x3d')](()=>{_0x10a7a4[_0x173b('0x1')](_0x46a925,{'commandName':_0x5c2ea2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e670e){const _0x13429b=new Set();for(const _0x4180f6 of _0x4e670e){let _0x1c14dc=_0x4180f6['nextSibling'];for(;_0x1c14dc&&_0x1c14dc['getAttribute'](_0x173b('0xb'))>_0x4180f6[_0x173b('0xf')](_0x173b('0xb'));)_0x13429b[_0x173b('0x30')](_0x1c14dc),_0x1c14dc=_0x1c14dc[_0x173b('0xe')];}return Array[_0x173b('0x1c')](_0x13429b);}(_0x4518a9));});};}_0x10a7a4[_0x173b('0x19')]('numberedList',_0x36335a('numberedList')),_0x10a7a4['enableCommand']('bulletedList',_0x36335a('bulletedList')),_0x14d47e&&_0x10a7a4[_0x173b('0x19')]('todoList',_0x36335a(_0x173b('0x23'))),_0x10a7a4['enableCommand'](_0x173b('0x13'),_0x8beb50(_0x173b('0x13'))),_0x10a7a4[_0x173b('0x19')]('outdentList',_0x8beb50(_0x173b('0xd'))),_0x14d47e&&_0x10a7a4[_0x173b('0x19')](_0x173b('0x0'),()=>{const _0x20c309=_0x4a34ca[_0x173b('0x33')][_0x173b('0x39')](_0x173b('0x0')),_0x26a210=Array['from'](_0x20c309[_0x173b('0x36')]);_0x26a210[_0x173b('0x32')](_0x151b8e=>_0x151b8e[_0x173b('0xf')](_0x173b('0x25'))!=_0x20c309['value']),_0x4a34ca[_0x173b('0x28')]['change'](()=>{for(const _0x197167 of _0x26a210)_0x10a7a4[_0x173b('0x1')](_0x197167,{'commandName':_0x173b('0x0'),'commandParams':[{'forceValue':!_0x20c309['value']}]});});}),_0x10a7a4[_0x173b('0xa')][_0x173b('0x1a')]('listItem',_0x18a50e=>_0x37a128(_0x2ceaa1,_0x173b('0x2a'),_0x18a50e)),_0x10a7a4[_0x173b('0xa')]['registerDescriptionCallback'](_0x1bd805=>{const {data:_0x3cfcb7}=_0x1bd805;if(_0x3cfcb7){if(_0x173b('0x3')==_0x3cfcb7[_0x173b('0x1f')]||'bulletedList'==_0x3cfcb7['commandName']||_0x173b('0x23')==_0x3cfcb7[_0x173b('0x1f')])switch(_0x3cfcb7[_0x173b('0x1f')][_0x173b('0x2d')](_0x173b('0x26'),'')){case _0x173b('0x20'):return _0x5a22a1(_0x37a128(_0x2ceaa1,_0x173b('0x2b')));case _0x173b('0x24'):return _0x5a22a1(_0x37a128(_0x2ceaa1,_0x173b('0x8')));case _0x173b('0x1b'):return _0x5a22a1(_0x37a128(_0x2ceaa1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3cfcb7[_0x173b('0x1f')])return{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x17'),_0x37a128(_0x2ceaa1,_0x173b('0x2a')))};if('outdentList'==_0x3cfcb7[_0x173b('0x1f')])return{'type':_0x173b('0x10'),'content':_0x37a128(_0x2ceaa1,_0x173b('0x14'),_0x37a128(_0x2ceaa1,_0x173b('0x2a')))};if(_0x173b('0x0')==_0x3cfcb7[_0x173b('0x1f')])return _0x3cfcb7[_0x173b('0xc')][0x0][_0x173b('0x12')]?{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x16'))}:{'type':_0x173b('0x10'),'content':_0x37a128(_0x2ceaa1,'*Uncheck\x20item*')};}function _0x5a22a1(_0x421eca){return{'type':'format','content':_0x37a128(_0x2ceaa1,_0x173b('0x27'),_0x421eca)};}});}}function ne(_0x28eafa){const _0x849158=_0x28eafa[_0x173b('0xf')](_0x173b('0xb'));if(0x0==_0x849158)return _0x28eafa;let _0x2ca7c5=_0x28eafa;for(;_0x28eafa[_0x173b('0x3c')]&&_0x28eafa[_0x173b('0x3c')]['is'](_0x173b('0x37'),_0x173b('0x9'));){const _0x2074e3=_0x28eafa[_0x173b('0x3c')][_0x173b('0xf')](_0x173b('0xb'));if(_0x2074e3==_0x849158)_0x2ca7c5=_0x28eafa[_0x173b('0x3c')];else{if(_0x2074e3<_0x849158)break;}_0x28eafa=_0x28eafa[_0x173b('0x3c')];}return _0x2ca7c5;}function oe(_0x586d3f){const _0x149166=[];if(_0x586d3f['is'](_0x173b('0x37'),'listItem')&&_0x586d3f[_0x173b('0xf')](_0x173b('0xb'))>0x0){let _0x5d3c7e=_0x586d3f['nextSibling'];for(;_0x5d3c7e&&_0x173b('0x9')==_0x5d3c7e[_0x173b('0x3a')]&&_0x5d3c7e[_0x173b('0xf')](_0x173b('0xb'))==_0x586d3f[_0x173b('0xf')](_0x173b('0xb'));)_0x149166[_0x173b('0x1e')](_0x5d3c7e),_0x5d3c7e=_0x5d3c7e[_0x173b('0xe')];}return _0x149166;}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x2ab5=['length','handleListStartCommand','handleListReversedCommand','backward','plugins','from','get','ListUtils','toUpperCase','forward','_getTranslationKeyForListStyle','change','afterInit','handleDescriptions','_getSuggestionBlocks','handleListStyleCommand','type','startIndex','has','bind','listItem','getSiblingNodes','config','listType','map','list.properties','TrackChangesEditing','_LIST_','format','editor','_descriptionFactory','enableCommand','listStart','getListTypeFromListStyleType','element','reversed','hasAttribute','createPositionAt','before','getSelectedBlocks','flat','listStyle','commandParams','markMultiRangeBlockFormat','*Change\x20to:*\x20%0','selection','*Format:*\x20set\x20order\x20to\x20regular','document','styles','listReversed','ELEMENT_','model','ListPropertiesEditing'];(function(_0x2c6ca0,_0x2ab584){const _0x47b370=function(_0x5b4c8d){while(--_0x5b4c8d){_0x2c6ca0['push'](_0x2c6ca0['shift']());}};_0x47b370(++_0x2ab584);}(_0x2ab5,0x11e));const _0x47b3=function(_0x2c6ca0,_0x2ab584){_0x2c6ca0=_0x2c6ca0-0x0;let _0x47b370=_0x2ab5[_0x2c6ca0];return _0x47b370;};import{Plugin as _0x47fb26}from'ckeditor5/src/core';import{getTranslation as _0x5c236b}from'../utils/common-translations';export default class ot extends _0x47fb26{[_0x47b3('0x2c')](){if(!this[_0x47b3('0x8')]['plugins'][_0x47b3('0x32')](_0x47b3('0x1f')))return;const _0x2f9a79=this['editor'][_0x47b3('0x1')][_0x47b3('0x26')](_0x47b3('0x4')),_0x3c5c8d=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5'));_0x2f9a79[_0x47b3('0x1b')]&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0x14'),this['handleListStyleCommand'][_0x47b3('0x33')](this)),_0x2f9a79[_0x47b3('0xe')]&&_0x3c5c8d[_0x47b3('0xa')]('listReversed',this[_0x47b3('0x22')][_0x47b3('0x33')](this)),_0x2f9a79['startIndex']&&_0x3c5c8d[_0x47b3('0xa')](_0x47b3('0xb'),this[_0x47b3('0x21')][_0x47b3('0x33')](this)),_0x3c5c8d[_0x47b3('0x9')]['registerDescriptionCallback'](this[_0x47b3('0x2d')][_0x47b3('0x33')](this));}[_0x47b3('0x2f')](_0x5c8993,_0x2068b3){const _0x5616bf=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')](_0x47b3('0x5')),_0x5aa0d6=this[_0x47b3('0x2e')](_0x3877fe=>_0x3877fe[_0x47b3('0xf')](_0x47b3('0x2')));_0x5aa0d6['length']<0x1||this[_0x47b3('0x8')]['model']['change'](()=>{_0x5616bf[_0x47b3('0x16')](_0x5aa0d6,{'commandName':_0x47b3('0x14'),'commandParams':[{'type':_0x2068b3[_0x47b3('0x30')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x201b94,_0x3b167d){const _0x3a0113=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')]('TrackChangesEditing'),_0x4a06f9=this[_0x47b3('0x2e')](_0x1ecb77=>_0x1ecb77['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1ecb77['getAttribute'](_0x47b3('0x2')));if(_0x4a06f9[_0x47b3('0x20')]<0x1)return;const _0x4fa7cb=_0x4a06f9['map'](_0xf7b7bf=>this['editor'][_0x47b3('0x1e')]['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,'before'),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0xf7b7bf,0x0)));this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x2b')](()=>{_0x3a0113[_0x47b3('0x16')](_0x4fa7cb,{'commandName':_0x47b3('0x1c'),'commandParams':[{'reversed':_0x3b167d[_0x47b3('0xe')]}],'formatGroupId':_0x47b3('0x1c')});});}['handleListStartCommand'](_0x4bef8b,_0x7f0049){const _0x5b99fe=this[_0x47b3('0x8')]['plugins'][_0x47b3('0x26')](_0x47b3('0x5')),_0x31c5bb=this[_0x47b3('0x2e')](_0x1eacb7=>_0x1eacb7['is'](_0x47b3('0xd'),_0x47b3('0x34'))&&'numbered'===_0x1eacb7['getAttribute'](_0x47b3('0x2')));if(_0x31c5bb[_0x47b3('0x20')]<0x1)return;const _0x2efa2d=_0x31c5bb[_0x47b3('0x3')](_0x1f63ea=>this[_0x47b3('0x8')]['model']['createRange'](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,_0x47b3('0x11')),this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x1f63ea,0x0)));this[_0x47b3('0x8')]['model'][_0x47b3('0x2b')](()=>{_0x5b99fe[_0x47b3('0x16')](_0x2efa2d,{'commandName':_0x47b3('0xb'),'commandParams':[{'startIndex':_0x7f0049[_0x47b3('0x31')]}],'formatGroupId':_0x47b3('0xb')});});}[_0x47b3('0x2d')](_0x19e7d7){const _0x107624=this['editor']['locale'],{data:_0x5b45aa}=_0x19e7d7;if(!_0x5b45aa)return;let _0xb7118b,_0x21c7d7;switch(_0x5b45aa['commandName']){case _0x47b3('0x14'):_0xb7118b=_0x47b3('0x17'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5c236b(_0x107624,this[_0x47b3('0x2a')](_0x5b45aa[_0x47b3('0x15')][0x0]['type'])))};break;case'listReversed':_0xb7118b=_0x5b45aa[_0x47b3('0x15')][0x0][_0x47b3('0xe')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x47b3('0x19'),_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b)};break;case _0x47b3('0xb'):_0xb7118b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c7d7={'type':_0x47b3('0x7'),'content':_0x5c236b(_0x107624,_0xb7118b,_0x5b45aa['commandParams'][0x0][_0x47b3('0x31')])};}return _0x21c7d7;}[_0x47b3('0x2e')](_0x84cbb9){const _0x39581e=this[_0x47b3('0x8')][_0x47b3('0x24')][_0x47b3('0x26')]('ListUtils');let _0x17364c=Array[_0x47b3('0x25')](this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x1a')][_0x47b3('0x18')][_0x47b3('0x12')]())['filter'](_0x84cbb9)[_0x47b3('0x3')](_0x5ea1c1=>{const _0x505711=this[_0x47b3('0x8')][_0x47b3('0x1e')][_0x47b3('0x10')](_0x5ea1c1,0x0);return[..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x23')),..._0x39581e[_0x47b3('0x0')](_0x505711,_0x47b3('0x29'))];})[_0x47b3('0x13')]();return _0x17364c=[...new Set(_0x17364c)],_0x17364c;}[_0x47b3('0x2a')](_0x4adb39){return _0x47b3('0x1d')+this['editor'][_0x47b3('0x24')]['get'](_0x47b3('0x27'))[_0x47b3('0xc')](_0x4adb39)[_0x47b3('0x28')]()+_0x47b3('0x6')+_0x4adb39[_0x47b3('0x28')]()['replaceAll']('-','_');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x5825=['_descriptionFactory','plugins','downcastDispatcher','editor','has','registerElementLabel','options','locale','MediaEmbedEditing','showSuggestionHighlights','attribute:url:media','media','ELEMENT_MEDIA','afterInit','data','high','mediaEmbed','TrackChangesEditing','for','div','dataDowncast','stop'];(function(_0x25618a,_0x5825ed){const _0x16fd48=function(_0x7cb824){while(--_0x7cb824){_0x25618a['push'](_0x25618a['shift']());}};_0x16fd48(++_0x5825ed);}(_0x5825,0x101));const _0x16fd=function(_0x25618a,_0x5825ed){_0x25618a=_0x25618a-0x0;let _0x16fd48=_0x5825[_0x25618a];return _0x16fd48;};import{Plugin as _0x293430}from'ckeditor5/src/core';import{getTranslation as _0x2cd137}from'../utils/common-translations';export default class rt extends _0x293430{[_0x16fd('0x14')](){const _0x4dfaf7=this[_0x16fd('0xa')];if(!_0x4dfaf7[_0x16fd('0x8')][_0x16fd('0xb')](_0x16fd('0xf')))return;const _0x5f517b=_0x4dfaf7['plugins']['get'](_0x16fd('0x2')),_0x39203b=_0x4dfaf7[_0x16fd('0xe')];_0x5f517b['enableCommand'](_0x16fd('0x1')),_0x5f517b[_0x16fd('0x7')][_0x16fd('0xc')](_0x16fd('0x12'),_0x65aedd=>_0x2cd137(_0x39203b,_0x16fd('0x13'),_0x65aedd)),_0x4dfaf7['conversion'][_0x16fd('0x3')](_0x16fd('0x5'))['elementToElement']({'model':_0x16fd('0x12'),'view':(_0x3e13cd,{writer:_0x2fad86,options:_0x1f46af})=>{if(_0x1f46af[_0x16fd('0x10')])return _0x2fad86['createEmptyElement'](_0x16fd('0x4'));},'converterPriority':_0x16fd('0x0')}),_0x4dfaf7[_0x16fd('0x15')][_0x16fd('0x9')]['on'](_0x16fd('0x11'),(_0x19e892,_0x14ae63,_0x12f0d8)=>{_0x12f0d8[_0x16fd('0xd')][_0x16fd('0x10')]&&_0x19e892[_0x16fd('0x6')]();},{'priority':_0x16fd('0x0')});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x2c1b=['plugins','MentionEditing','get','has','enableCommand','mention','afterInit','TrackChangesEditing'];(function(_0x51429c,_0x2c1b45){const _0x4f348d=function(_0x51f77e){while(--_0x51f77e){_0x51429c['push'](_0x51429c['shift']());}};_0x4f348d(++_0x2c1b45);}(_0x2c1b,0x1b9));const _0x4f34=function(_0x51429c,_0x2c1b45){_0x51429c=_0x51429c-0x0;let _0x4f348d=_0x2c1b[_0x51429c];return _0x4f348d;};import{Plugin as _0x37b14d}from'ckeditor5/src/core';export default class at extends _0x37b14d{[_0x4f34('0x5')](){const _0x57d2bb=this['editor'];_0x57d2bb['plugins'][_0x4f34('0x2')](_0x4f34('0x0'))&&_0x57d2bb[_0x4f34('0x7')][_0x4f34('0x1')](_0x4f34('0x6'))[_0x4f34('0x3')](_0x4f34('0x4'));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x13a8=['ELEMENT_PAGE_BREAK','afterInit','_descriptionFactory','TrackChangesEditing','pageBreak','registerElementLabel','has','get','PageBreakEditing','enableCommand','plugins'];(function(_0x155c14,_0x13a893){const _0x31db2c=function(_0xc9af9d){while(--_0xc9af9d){_0x155c14['push'](_0x155c14['shift']());}};_0x31db2c(++_0x13a893);}(_0x13a8,0xbd));const _0x31db=function(_0x155c14,_0x13a893){_0x155c14=_0x155c14-0x0;let _0x31db2c=_0x13a8[_0x155c14];return _0x31db2c;};import{Plugin as _0x517e42}from'ckeditor5/src/core';import{getTranslation as _0x3c4329}from'../utils/common-translations';export default class ct extends _0x517e42{[_0x31db('0xa')](){const _0x5e9fc0=this['editor'];if(!_0x5e9fc0[_0x31db('0x8')][_0x31db('0x4')](_0x31db('0x6')))return;_0x5e9fc0[_0x31db('0x8')][_0x31db('0x5')]('TrackChangesEditing')[_0x31db('0x7')](_0x31db('0x2'));const _0x2d6e57=_0x5e9fc0[_0x31db('0x8')][_0x31db('0x5')](_0x31db('0x1')),_0x8c580a=_0x5e9fc0['locale'];_0x2d6e57[_0x31db('0x0')][_0x31db('0x3')]('pageBreak',_0x57eddf=>_0x3c4329(_0x8c580a,_0x31db('0x9'),_0x57eddf));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x4e64=['from','blockName','filter','format','model','includes','addMarker:suggestion:insertion','enableCommand','schema','selection','ck-suggestion-marker-split','getFirstRange','insert','highest','Paragraph','plugins','locale','markBlockFormat','*Insert:*\x20%0','has','downcastDispatcher','isLimit','isObject','registerElementLabel','editor','start','name','toViewPosition','options','writer','mapper','activeMarkers','nodeAfter','paragraph','get','registerDescriptionCallback','change','isBlock','isTouching','*Change\x20to:*\x20%0','checkChild','insertion','markerRange','end','createUIElement','TrackChangesEditing','$text','ck-suggestion-marker--active','afterInit','type','_descriptionFactory','commandName','bindElementToMarker','markerName','getItemLabel','data'];(function(_0x34efaa,_0x4e644d){const _0x2dc9cf=function(_0x5d72a3){while(--_0x5d72a3){_0x34efaa['push'](_0x34efaa['shift']());}};_0x2dc9cf(++_0x4e644d);}(_0x4e64,0x142));const _0x2dc9=function(_0x34efaa,_0x4e644d){_0x34efaa=_0x34efaa-0x0;let _0x2dc9cf=_0x4e64[_0x34efaa];return _0x2dc9cf;};import{Plugin as _0x5c2cf1}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x15cb55}from'./utils';import{getTranslation as _0x5889d7}from'../utils/common-translations';export default class ht extends _0x5c2cf1{[_0x2dc9('0x6')](){const _0x219432=this['editor'];if(!_0x219432[_0x2dc9('0x1d')][_0x2dc9('0x21')](_0x2dc9('0x1c')))return;const _0x339a65=_0x219432[_0x2dc9('0x1e')],_0x2c7054=_0x219432['plugins'][_0x2dc9('0x30')]('TrackChangesEditing');_0x2c7054['_descriptionFactory'][_0x2dc9('0x25')]('paragraph',_0x23d865=>_0x5889d7(_0x339a65,'ELEMENT_PARAGRAPH',_0x23d865)),_0x2c7054[_0x2dc9('0x15')](_0x2dc9('0x2f'),(_0x2c57c7,_0x18d600={})=>{const _0x9f52cb=_0x219432[_0x2dc9('0x12')]['document'],_0x46b26e=_0x18d600[_0x2dc9('0x17')]||_0x9f52cb[_0x2dc9('0x17')],_0x2270ba=Array[_0x2dc9('0xe')](_0x46b26e['getSelectedBlocks']())[_0x2dc9('0x10')](_0x2d2408=>function(_0x159bb2,_0x378a8e){return _0x378a8e[_0x2dc9('0x36')](_0x159bb2['parent'],'paragraph')&&!_0x378a8e[_0x2dc9('0x24')](_0x159bb2)&&_0x2dc9('0x2f')!=_0x159bb2[_0x2dc9('0x28')];}(_0x2d2408,this[_0x2dc9('0x26')][_0x2dc9('0x12')][_0x2dc9('0x16')]));_0x219432[_0x2dc9('0x12')][_0x2dc9('0x32')](()=>{for(const _0x4e375c of _0x2270ba)_0x2c7054[_0x2dc9('0x1f')](_0x4e375c,{'commandName':_0x2dc9('0x2f'),'commandParams':[],'formatGroupId':_0x2dc9('0xf')},_0x15cb55(_0x4e375c));});}),_0x2c7054[_0x2dc9('0x8')][_0x2dc9('0x31')](_0x177ded=>{const {data:_0x5b8b62}=_0x177ded;if(_0x5b8b62&&_0x2dc9('0x2f')==_0x5b8b62[_0x2dc9('0x9')])return{'type':_0x2dc9('0x11'),'content':_0x5889d7(_0x339a65,_0x2dc9('0x35'),_0x5889d7(_0x339a65,'ELEMENT_PARAGRAPH'))};}),_0x2c7054[_0x2dc9('0x15')]('insertParagraph'),_0x219432['editing'][_0x2dc9('0x22')]['on'](_0x2dc9('0x14'),ar(_0x219432),{'priority':_0x2dc9('0x1b')}),_0x219432[_0x2dc9('0xd')]['downcastDispatcher']['on'](_0x2dc9('0x14'),(_0x36e8f2,_0x2db4f3,_0x28f7e)=>{_0x28f7e[_0x2dc9('0x2a')]['showSuggestionHighlights']&&ar(_0x219432,{'showActiveMarker':!0x1})(_0x36e8f2,_0x2db4f3,_0x28f7e);},{'priority':_0x2dc9('0x1b')});const _0x2979cf=_0x2c7054[_0x2dc9('0x8')];_0x2979cf[_0x2dc9('0x31')](_0x44ddc6=>{if(_0x2dc9('0x37')!==_0x44ddc6[_0x2dc9('0x7')])return;const {start:_0x4a3653,end:_0x70e010}=_0x44ddc6[_0x2dc9('0x19')]();if(!_0x4a3653[_0x2dc9('0x34')](_0x70e010)||!_0x4a3653[_0x2dc9('0x2e')])return;const _0x1b1110=_0x219432['model'][_0x2dc9('0x16')],_0x4cfb2a=_0x4a3653['nodeAfter'];return _0x1b1110[_0x2dc9('0x33')](_0x4cfb2a)&&!_0x1b1110[_0x2dc9('0x23')](_0x4cfb2a)&&_0x1b1110[_0x2dc9('0x36')](_0x4cfb2a,_0x2dc9('0x4'))?{'type':_0x2dc9('0x37'),'content':_0x5889d7(_0x339a65,_0x2dc9('0x20'),_0x2979cf[_0x2dc9('0xc')](_0x4cfb2a,0x1))}:void 0x0;});}}function ar(_0x2f902d,{showActiveMarker:_0x4e62a4=!0x0}={}){return(_0x38bbc6,_0xcb5a99,_0x4fbad6)=>{const _0x4d415d=_0x2f902d[_0x2dc9('0x1d')]['get'](_0x2dc9('0x3')),_0x21d0bc=_0xcb5a99[_0x2dc9('0x0')][_0x2dc9('0x27')],_0x2c99ce=_0xcb5a99[_0x2dc9('0x0')][_0x2dc9('0x1')],_0x5b32b5=_0x2f902d[_0x2dc9('0x12')][_0x2dc9('0x16')];if(!_0x21d0bc[_0x2dc9('0x34')](_0x2c99ce)||!_0x21d0bc[_0x2dc9('0x2e')])return;const _0x792665=_0x21d0bc[_0x2dc9('0x2e')];if(_0x5b32b5[_0x2dc9('0x33')](_0x792665)&&!_0x5b32b5[_0x2dc9('0x23')](_0x792665)&&_0x5b32b5[_0x2dc9('0x36')](_0x792665,_0x2dc9('0x4'))){if(!_0x4fbad6['consumable']['consume'](_0xcb5a99[_0x2dc9('0x0')],_0x38bbc6[_0x2dc9('0x28')]))return;const _0x18bcdc=_0x4fbad6['writer'][_0x2dc9('0x2')]('span',{'class':_0x2dc9('0x18')}),_0x1752d7=_0x4fbad6[_0x2dc9('0x2c')][_0x2dc9('0x29')](_0x2c99ce);_0x4e62a4&&_0x4d415d[_0x2dc9('0x2d')][_0x2dc9('0x13')](_0xcb5a99[_0x2dc9('0xb')])&&_0x4fbad6[_0x2dc9('0x2b')]['addClass'](_0x2dc9('0x5'),_0x18bcdc),_0x4fbad6['writer'][_0x2dc9('0x1a')](_0x1752d7,_0x18bcdc),_0x4fbad6[_0x2dc9('0x2c')][_0x2dc9('0xa')](_0x18bcdc,_0xcb5a99['markerName']);}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 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 _0x3355=['*Remove\x20all\x20formatting*','getAttributeProperties','RemoveFormatEditing','removeFormat','locale','commandName','document','schema','isFormatting','enableCommand','editor','TrackChangesEditing','has','markInlineFormat','isCollapsed','registerDescriptionCallback','createRangeOn','getItems','model','_descriptionFactory','plugins','afterInit'];(function(_0x1ec2ca,_0x335502){const _0x871461=function(_0xa176fa){while(--_0xa176fa){_0x1ec2ca['push'](_0x1ec2ca['shift']());}};_0x871461(++_0x335502);}(_0x3355,0xe5));const _0x8714=function(_0x1ec2ca,_0x335502){_0x1ec2ca=_0x1ec2ca-0x0;let _0x871461=_0x3355[_0x1ec2ca];return _0x871461;};import{Plugin as _0x44e6b5}from'ckeditor5/src/core';import{getTranslation as _0x33eb5e}from'../utils/common-translations';export default class ut extends _0x44e6b5{[_0x8714('0xc')](){const _0x358588=this[_0x8714('0x1')];if(!_0x358588[_0x8714('0xb')][_0x8714('0x3')](_0x8714('0xf')))return;const _0x56664=_0x358588[_0x8714('0xb')]['get'](_0x8714('0x2'));_0x56664[_0x8714('0x0')](_0x8714('0x10'),_0x17a365=>{const _0x43c2f2=_0x358588['model'][_0x8714('0x13')]['selection'];_0x43c2f2[_0x8714('0x5')]?_0x17a365():_0x358588[_0x8714('0x9')]['change'](()=>{const _0x49b48d=Array['from'](_0x43c2f2['getRanges']());for(const _0x1ad5be of _0x49b48d)for(const _0x3adb04 of _0x1ad5be[_0x8714('0x8')]())to(_0x3adb04,_0x358588[_0x8714('0x9')][_0x8714('0x14')])&&_0x56664[_0x8714('0x4')](_0x358588['model'][_0x8714('0x7')](_0x3adb04),{'commandName':_0x8714('0x10'),'commandParams':[]});});}),_0x56664[_0x8714('0xa')][_0x8714('0x6')](_0x3673a8=>{const {data:_0x5d1da6}=_0x3673a8;if(_0x5d1da6&&_0x8714('0x10')==_0x5d1da6[_0x8714('0x12')])return{'type':'format','content':_0x33eb5e(_0x358588[_0x8714('0x11')],_0x8714('0xd'))};});}}function to(_0x564a92,_0x17d87b){for(const [_0x10fbfc]of _0x564a92['getAttributes']()){const _0x38ac02=_0x17d87b[_0x8714('0xe')](_0x10fbfc);if(_0x38ac02&&_0x38ac02[_0x8714('0x15')])return!0x0;}return!0x1;}
|