@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.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 +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +7 -7
- package/lang/translations/bg.po +3 -3
- package/lang/translations/bn.po +3 -3
- package/lang/translations/ca.po +3 -3
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/el.po +3 -3
- package/lang/translations/en-au.po +23 -23
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +3 -3
- package/lang/translations/fi.po +3 -3
- package/lang/translations/fr.po +4 -4
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hr.po +26 -26
- package/lang/translations/hu.po +3 -3
- package/lang/translations/id.po +2 -2
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +2 -2
- package/lang/translations/ko.po +2 -2
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +2 -2
- package/lang/translations/nl.po +3 -3
- package/lang/translations/no.po +3 -3
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/sv.po +3 -3
- package/lang/translations/th.po +2 -2
- package/lang/translations/tr.po +3 -3
- package/lang/translations/uk.po +5 -5
- package/lang/translations/vi.po +2 -2
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +2 -2
- package/package.json +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8a1b=['format','get','config','selection','FORMAT_HIGHLIGHT','HighlightEditing','createRange','getRanges','commandParams','model','getLastMatchingPosition','getFirstPosition','locale','getAttribute','plugins','value','toLowerCase','has','*Remove\x20highlight*','title','push','item','enableCommand','hasAttribute','color','find','formatInline','highlight','change','TrackChangesEditing','editor','commandName'];(function(_0x2aba96,_0x8a1b6b){const _0x418401=function(_0x2da1e6){while(--_0x2da1e6){_0x2aba96['push'](_0x2aba96['shift']());}};_0x418401(++_0x8a1b6b);}(_0x8a1b,0x117));const _0x4184=function(_0x2aba96,_0x8a1b6b){_0x2aba96=_0x2aba96-0x0;let _0x418401=_0x8a1b[_0x2aba96];return _0x418401;};import{Plugin as _0x229725}from'ckeditor5/src/core';import{getTranslation as _0x35f18a}from'../utils/common-translations';import{getRangesWithAttribute as _0x1704df}from'./utils';export default class K extends _0x229725{['afterInit'](){const _0x3dbdff=this[_0x4184('0x7')];if(!_0x3dbdff[_0x4184('0x17')][_0x4184('0x1a')](_0x4184('0xe')))return;const _0x51f3dd=_0x3dbdff['plugins']['get'](_0x4184('0x6'));_0x51f3dd[_0x4184('0x1f')](_0x4184('0x4'),(_0x26cf4f,_0x1b6e5a={})=>{const _0x1baa73=_0x3dbdff[_0x4184('0x12')]['document'][_0x4184('0xc')],_0x404c7d=_0x1baa73[_0x4184('0x16')](_0x4184('0x4'));let _0x533a62=_0x1b6e5a[_0x4184('0x18')],_0x358384=[];if(_0x1baa73['isCollapsed']){const _0x5dffba=_0x1baa73[_0x4184('0x14')]();if(!_0x1baa73[_0x4184('0x0')](_0x4184('0x4')))return void _0x26cf4f(_0x1b6e5a);{const _0x3f7c6f=_0xef7417=>_0xef7417[_0x4184('0x1e')][_0x4184('0x16')](_0x4184('0x4'))===_0x404c7d,_0x2823d3=_0x5dffba[_0x4184('0x13')](_0x3f7c6f,{'direction':'backward'}),_0x19194f=_0x5dffba[_0x4184('0x13')](_0x3f7c6f);_0x358384=[_0x3dbdff['model'][_0x4184('0xf')](_0x2823d3,_0x19194f)],_0x533a62==_0x404c7d&&(_0x533a62=null);}}else for(const _0xd59a40 of _0x1baa73[_0x4184('0x10')]())_0x533a62?_0x358384[_0x4184('0x1d')](_0xd59a40):_0x358384[_0x4184('0x1d')](..._0x1704df(_0x4184('0x4'),_0xd59a40,_0x3dbdff['model']));_0x3dbdff[_0x4184('0x12')][_0x4184('0x5')](()=>{for(const _0x323311 of _0x358384)_0x51f3dd['markInlineFormat'](_0x323311,{'commandName':_0x4184('0x4'),'commandParams':[{'value':_0x533a62}]});});});const _0x448db3=_0x3dbdff[_0x4184('0x15')];_0x51f3dd['_descriptionFactory']['registerDescriptionCallback'](_0x56af4a=>{const {type:_0xbe8ecd,data:_0x34dc8f}=_0x56af4a;if(_0x4184('0x3')==_0xbe8ecd&&_0x34dc8f&&_0x4184('0x4')==_0x34dc8f[_0x4184('0x8')]){const _0x2f1f8c=_0x448db3['t'],_0x23900f=_0x34dc8f[_0x4184('0x11')][0x0]['value'];if(_0x23900f){const _0x509066=_0x3dbdff[_0x4184('0xb')][_0x4184('0xa')]('highlight.options')[_0x4184('0x2')](_0x38ff53=>_0x38ff53[_0x4184('0x12')]==_0x23900f),_0x104cfb=_0x2f1f8c(_0x509066['title'])[_0x4184('0x19')]();return{'type':_0x4184('0x9'),'content':_0x35f18a(_0x448db3,'*Set\x20highlight:*\x20%0',_0x104cfb),'color':{'value':_0x509066[_0x4184('0x1')],'title':_0x509066[_0x4184('0x1c')]}};}return{'type':'format','content':_0x35f18a(_0x448db3,_0x4184('0x1b'),_0x35f18a(_0x448db3,_0x4184('0xd')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3115=['enableCommand','createEmptyElement','addClass','createContainerElement','get','registerElementLabel','ck-horizontal-line','showSuggestionHighlights','TrackChangesEditing','horizontalLine','dataDowncast','ELEMENT_HORIZONTAL_LINE','plugins','for','elementToStructure','createPositionAt','insert'];(function(_0x5c8fc9,_0x311551){const _0x238916=function(_0xca4026){while(--_0xca4026){_0x5c8fc9['push'](_0x5c8fc9['shift']());}};_0x238916(++_0x311551);}(_0x3115,0x1e9));const _0x2389=function(_0x5c8fc9,_0x311551){_0x5c8fc9=_0x5c8fc9-0x0;let _0x238916=_0x3115[_0x5c8fc9];return _0x238916;};import{Plugin as _0x3ceff9}from'ckeditor5/src/core';import{getTranslation as _0x20033d}from'../utils/common-translations';export default class Q extends _0x3ceff9{['afterInit'](){const _0xaf8200=this['editor'];if(!_0xaf8200[_0x2389('0x10')]['has']('HorizontalLineEditing'))return;_0xaf8200[_0x2389('0x10')][_0x2389('0x8')]('TrackChangesEditing')[_0x2389('0x4')](_0x2389('0xd'));const _0x253694=_0xaf8200['plugins'][_0x2389('0x8')](_0x2389('0xc')),_0x3ac829=_0xaf8200['locale'];_0x253694['_descriptionFactory'][_0x2389('0x9')]('horizontalLine',_0x4e9504=>_0x20033d(_0x3ac829,_0x2389('0xf'),_0x4e9504)),_0xaf8200['conversion'][_0x2389('0x0')](_0x2389('0xe'))[_0x2389('0x1')]({'model':'horizontalLine','view':(_0x6cbe8a,{writer:_0x360b79,options:_0x4194b9})=>{if(!_0x4194b9[_0x2389('0xb')])return null;const _0x165950=_0x360b79[_0x2389('0x7')]('div'),_0x15254d=_0x360b79[_0x2389('0x5')]('hr');return _0x360b79[_0x2389('0x6')](_0x2389('0xa'),_0x165950),_0x360b79[_0x2389('0x3')](_0x360b79[_0x2389('0x2')](_0x165950,0x0),_0x15254d),_0x165950;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3726=['element','rawHtmlApi','HtmlEmbed','commandName','_descriptionFactory','editor','rawHtml','enableCommand','htmlEmbed','locale','get','ELEMENT_HTML_EMBED','selection','change','document','getSelectedElement','value','cancel','plugins','has','TrackChangesEditing','getCustomProperty','registerElementLabel','markBlockFormat','format','model'];(function(_0x45bf83,_0x37267d){const _0x1c2321=function(_0x17fc99){while(--_0x17fc99){_0x45bf83['push'](_0x45bf83['shift']());}};_0x1c2321(++_0x37267d);}(_0x3726,0x189));const _0x1c23=function(_0x45bf83,_0x37267d){_0x45bf83=_0x45bf83-0x0;let _0x1c2321=_0x3726[_0x45bf83];return _0x1c2321;};import{Plugin as _0x119141}from'ckeditor5/src/core';import{getTranslation as _0x1915e9}from'../utils/common-translations';export default class V extends _0x119141{['afterInit'](){const _0xc4cb4c=this[_0x1c23('0x2')];if(!_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x10')](_0x1c23('0x19')))return;const _0x3d7a5e=_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x7')](_0x1c23('0x11')),_0x3445c3=_0xc4cb4c[_0x1c23('0x6')],_0x194c57=_0xc4cb4c['editing']['view']['document'][_0x1c23('0x9')];_0x3d7a5e[_0x1c23('0x1')][_0x1c23('0x13')](_0x1c23('0x3'),_0x1bdf8b=>_0x1915e9(_0x3445c3,_0x1c23('0x8'),_0x1bdf8b)),_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x7')](_0x1c23('0x11'))[_0x1c23('0x4')](_0x1c23('0x5'),(_0x3d7f9e,_0x2ee870)=>{const _0x567fbe=_0xc4cb4c[_0x1c23('0x16')],_0x5aeb00=_0x567fbe[_0x1c23('0xb')][_0x1c23('0x9')];_0x567fbe[_0x1c23('0xa')](()=>{const _0x12918e=function(_0x537d5c){const _0x46445b=_0x537d5c[_0x1c23('0xc')]();if(_0x46445b&&_0x46445b['is'](_0x1c23('0x17'),_0x1c23('0x3')))return _0x537d5c['getSelectedElement']();return null;}(_0x5aeb00);if(!_0x12918e)return void _0x3d7f9e(null);const _0x1c90e0=_0x12918e['getAttribute'](_0x1c23('0xd'))||'';if(void 0x0===_0x2ee870)return;if(_0x2ee870===_0x1c90e0)return;_0x3d7a5e[_0x1c23('0x14')](_0x12918e,{'commandName':_0x1c23('0x5'),'commandParams':[_0x2ee870]}),_0x194c57[_0x1c23('0xc')]()[_0x1c23('0x12')](_0x1c23('0x18'))[_0x1c23('0xe')]();});}),_0x3d7a5e[_0x1c23('0x1')]['registerDescriptionCallback'](_0x285e5e=>{const {data:_0x27661a}=_0x285e5e;if(_0x27661a&&_0x1c23('0x5')==_0x27661a[_0x1c23('0x0')]){const _0x530865=_0x1915e9(_0x3445c3,_0x1c23('0x8'));return{'type':_0x1c23('0x15'),'content':_0x1915e9(_0x3445c3,'*Change\x20%0\x20content*',_0x530865)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5df7=['toLowerCase','differ','title','type','value','hasAttribute','resizeImage','detach','deletion','ImageStyleEditing','getAttribute','backward','newRange','ImageInlineEditing','commandName','caption','accept','chain','length','createRangeOn','ImageResize','alt','get','markInsertion','registerDescriptionCallback','commandParams','TrackChangesEditing','locale','commands','imageCaption','getSuggestions','end','imageStylePreApply','isInlineImage','Users','refresh','imageTypeInline','getCaptionFromImageModelElement','fromPosition','isBefore','getSuggestion','start','getSuggestionCallback','getClosestSelectedImageElement','markBlockFormat','width','discard','schema','filter','isOwn','uploadImage','imageStylePostApply','markInlineFormat','ImageEditing','Inline\x20image\x20to\x20block\x20image','_descriptionFactory','selection','insertImage','suggestion','imageBlock','imageStyle','ImageUploadEditing','isInContent','convertInlineImageToBlock','_suggestionFactory','toPrevious','imageTextAlternative','has','subType','head','isEqual','change','format','document','_findSuggestions','getChangedMarkers','model','side','shouldConvertImageType','author','editor','*Remove\x20image\x20text\x20alternative*','hasSuggestion','previous','_splitMarkerName','findIndex','getNearestSelectionRange','ImageBlockEditing','removeObject','next','discardSuggestion','from','enableCommand','formatInline','createRange','normalizedStyles','ELEMENT_IMAGE','registerCustomCallback','formatBlock','join','*Reset\x20image\x20width*','isBlockImage','newValue','toggleImageCaption','getFirstRange','registerElementLabel','convertBlockImageToInline','isCollapsed','insertion','plugins','forEach','element','*Format:*\x20%0','imageInline','getContainedElement'];(function(_0x1e59f2,_0x5df785){const _0x259780=function(_0x4f865c){while(--_0x4f865c){_0x1e59f2['push'](_0x1e59f2['shift']());}};_0x259780(++_0x5df785);}(_0x5df7,0xe3));const _0x2597=function(_0x1e59f2,_0x5df785){_0x1e59f2=_0x1e59f2-0x0;let _0x259780=_0x5df7[_0x1e59f2];return _0x259780;};import{Plugin as _0x175e96}from'ckeditor5/src/core';import{LivePosition as _0x4c0e1d}from'ckeditor5/src/engine';import{uid as _0x1c9a02}from'ckeditor5/src/utils';import{getTranslation as _0x212321}from'../utils/common-translations';export default class X extends _0x175e96{['afterInit'](){const _0x5ed42f=this[_0x2597('0x53')];if(!_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')](_0x2597('0x38')))return;const _0x2d9434=_0x5ed42f[_0x2597('0x70')][_0x2597('0x19')](_0x2597('0x1d')),_0x5cd437=_0x5ed42f['plugins'][_0x2597('0x19')]('ImageUtils'),_0x6a3bbb={},_0x1f2aef=_0x5ed42f[_0x2597('0x1e')];if(_0x2d9434['enableCommand'](_0x2597('0x3c')),_0x2d9434[_0x2597('0x3a')][_0x2597('0x6c')](_0x2597('0x3e'),_0x596e9b=>_0x212321(_0x1f2aef,_0x2597('0x63'),_0x596e9b)),_0x2d9434['_descriptionFactory'][_0x2597('0x6c')](_0x2597('0x1'),_0x306897=>_0x212321(_0x1f2aef,'ELEMENT_INLINE_IMAGE',_0x306897)),_0x2d9434[_0x2597('0x3a')][_0x2597('0x6c')]('caption',()=>_0x212321(_0x1f2aef,'ELEMENT_CAPTION')),_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')](_0x2597('0x40'))&&_0x2d9434[_0x2597('0x5f')](_0x2597('0x35')),_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')](_0x2597('0x5a'))&&_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')](_0x2597('0x10'))&&(_0x2d9434[_0x2597('0x5f')]('imageTypeInline',(_0x8699b7,_0x11fe64)=>{const _0x96f7e4=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')][_0x2597('0x3b')]);_0x5ed42f[_0x2597('0x4f')]['change'](()=>{_0x2d9434[_0x2597('0x2f')](_0x96f7e4,{'commandName':_0x2597('0x27'),'commandParams':[_0x11fe64]},[],_0x2597('0x6d'));});}),_0x2d9434[_0x2597('0x5f')]('imageTypeBlock',(_0x409330,_0x388fb3)=>{_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4a')](_0x465c6b=>{let _0x1c53f7=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')]['selection']),_0x248de0=_0x465c6b[_0x2597('0x16')](_0x1c53f7);const _0x11e73e=_0x4c0e1d['fromPosition'](_0x248de0[_0x2597('0x2c')],_0x2597('0x44')),_0x4cf0f3=_0x4c0e1d[_0x2597('0x29')](_0x248de0[_0x2597('0x22')],'toNext');_0x2d9434['forceDefaultExecution'](()=>_0x409330(_0x388fb3)),_0x1c53f7=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')][_0x2597('0x3b')]),_0x248de0=_0x465c6b[_0x2597('0x16')](_0x1c53f7);const _0x1cdcd1=_0x465c6b[_0x2597('0x61')](_0x11e73e,_0x4cf0f3);_0x11e73e[_0x2597('0xa')](),_0x4cf0f3[_0x2597('0xa')](),_0x2d9434[_0x2597('0x2f')](_0x1c53f7,{'commandName':_0x2597('0x27'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x1cdcd1[_0x2597('0x2c')]['isBefore'](_0x248de0[_0x2597('0x2c')])&&_0x2d9434['markInsertion'](_0x465c6b['createRange'](_0x1cdcd1[_0x2597('0x2c')],_0x248de0[_0x2597('0x2c')]),'convertInlineImageToBlock'),_0x248de0['end'][_0x2597('0x2a')](_0x1cdcd1['end'])&&_0x2d9434['markInsertion'](_0x465c6b[_0x2597('0x61')](_0x248de0[_0x2597('0x22')],_0x1cdcd1[_0x2597('0x22')]),'convertInlineImageToBlock');});}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')]('formatBlock','convertInlineImageToBlock','join',()=>{}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x65'),_0x2597('0x42'),_0x2597('0x13'),()=>{}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x65'),'convertInlineImageToBlock','discard',_0x2d9434['_suggestionFactory']['getSuggestionCallback'](_0x2597('0x65'),'',_0x2597('0x13'))),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x6f'),_0x2597('0x42'),_0x2597('0x66'),()=>{}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x6f'),_0x2597('0x42'),_0x2597('0x31'),([_0x45170c])=>{const _0x58de1f=_0x2d9434[_0x2597('0x43')][_0x2597('0x2d')]('insertion','',_0x2597('0x31'));let _0x33592d=_0x45170c['start'],_0x485983=_0x45170c[_0x2597('0x22')];const _0x1d496f=_0x5ed42f['model'][_0x2597('0x32')]['getNearestSelectionRange'](_0x33592d,_0x2597('0xe')),_0x457fd0=_0x5ed42f[_0x2597('0x4f')]['schema'][_0x2597('0x59')](_0x485983,'forward');_0x1d496f[_0x2597('0x6e')]&&(_0x33592d=_0x1d496f['start']),_0x457fd0[_0x2597('0x6e')]&&(_0x485983=_0x457fd0[_0x2597('0x22')]),_0x58de1f([_0x5ed42f['model']['createRange'](_0x33592d,_0x485983)]);}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')]('formatBlock','convertInlineImageToBlock',_0x2597('0x14'),_0x5e6234),_0x2d9434[_0x2597('0x43')]['registerCustomCallback'](_0x2597('0x6f'),_0x2597('0x42'),_0x2597('0x14'),_0x5e6234)),_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')]('ImageCaptionEditing')&&(_0x2d9434[_0x2597('0x5f')](_0x2597('0x6a'),(_0x234a9f,_0xd03dc5)=>{const _0x4c3081=_0x5ed42f[_0x2597('0x70')][_0x2597('0x19')]('ImageCaptionUtils');let _0x4a5a0e=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')]['selection']),_0x11f773=_0x4c3081[_0x2597('0x28')](_0x4a5a0e);_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4a')](()=>{if(_0x11f773)return void _0x2d9434['markDeletion'](_0x5ed42f[_0x2597('0x4f')]['createRangeOn'](_0x11f773));const _0x5f9378=_0x5cd437[_0x2597('0x68')](_0x4a5a0e);_0x234a9f(_0xd03dc5),_0x4a5a0e=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')]['document'][_0x2597('0x3b')]),_0x11f773=_0x4c3081[_0x2597('0x28')](_0x4a5a0e),_0x2d9434[_0x2597('0x1a')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x16')](_0x11f773),_0x5f9378?null:_0x2597('0x20'));});}),_0x2d9434['_suggestionFactory'][_0x2597('0x64')](_0x2597('0x6f'),'imageCaption',_0x2597('0x14'),_0x5e6234)),_0x5ed42f[_0x2597('0x70')]['has']('ImageStyleEditing')){_0x2d9434[_0x2597('0x5f')]('imageStyle',(_0xebd83a,_0x561ba5)=>{const _0x489bbe=_0x5ed42f['plugins'][_0x2597('0x19')](_0x2597('0x25'))['me'],_0x2382e0=_0x5ed42f[_0x2597('0x1f')]['get'](_0x2597('0x3f'));let _0x354a6b=_0x5cd437['getClosestSelectedImageElement'](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')][_0x2597('0x3b')]),_0x360a21=_0x5ed42f[_0x2597('0x4f')]['createRangeOn'](_0x354a6b),_0x145c73=_0x2382e0[_0x2597('0x7')];if(_0x145c73==_0x561ba5['value'])return;const _0x44e089={'commandName':'imageStyle','commandParams':[_0x561ba5],'formatGroupId':_0x1c9a02()};_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4a')](()=>{if(_0x2d9434[_0x2597('0x21')]()[_0x2597('0x33')](_0x4ccded=>_0x4ccded[_0x2597('0x41')]&&_0x489bbe==_0x4ccded[_0x2597('0x52')]&&(_0x2597('0x65')==_0x4ccded[_0x2597('0x6')]||_0x2597('0x60')==_0x4ccded[_0x2597('0x6')])&&('imageStylePreApply'==_0x4ccded[_0x2597('0x47')]||_0x2597('0x36')==_0x4ccded['subType'])&&_0x4ccded[_0x2597('0x6b')]()[_0x2597('0x49')](_0x360a21))[_0x2597('0x71')](_0x360a8f=>_0x2d9434[_0x2597('0x5d')](_0x360a8f[_0x2597('0x48')])),_0x354a6b=_0x5cd437[_0x2597('0x2e')](_0x5ed42f['model'][_0x2597('0x4c')][_0x2597('0x3b')]),_0x360a21=_0x5ed42f[_0x2597('0x4f')][_0x2597('0x16')](_0x354a6b),_0x2382e0[_0x2597('0x26')](),_0x5ed42f[_0x2597('0x1f')][_0x2597('0x19')](_0x2597('0x27'))['refresh'](),_0x5ed42f['commands'][_0x2597('0x19')]('imageTypeBlock')[_0x2597('0x26')](),_0x145c73=_0x2382e0[_0x2597('0x7')],_0x145c73!=_0x561ba5['value'])return _0x5cd437[_0x2597('0x24')](_0x354a6b)&&_0x2382e0[_0x2597('0x51')](_0x561ba5[_0x2597('0x7')],_0x354a6b)?(_0xebd83a(_0x561ba5),_0x354a6b=_0x5cd437[_0x2597('0x2e')](_0x5ed42f['model'][_0x2597('0x4c')][_0x2597('0x3b')]),void _0x2d9434['markBlockFormat'](_0x354a6b,{..._0x44e089,'commandReversedParams':[{'value':_0x145c73||null}]},[],_0x2597('0x23'))):void(_0x5cd437[_0x2597('0x68')](_0x354a6b)?_0x2d9434[_0x2597('0x2f')](_0x354a6b,_0x44e089,[],'imageStylePostApply'):_0x2d9434[_0x2597('0x37')](_0x360a21,_0x44e089,_0x2597('0x36')));});});for(const _0xb211df of _0x5ed42f[_0x2597('0x70')]['get'](_0x2597('0xc'))[_0x2597('0x62')])_0x6a3bbb[_0xb211df['name']]=_0xb211df[_0x2597('0x5')][_0x2597('0x3')]();_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x65'),_0x2597('0x23'),'join',()=>{}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')]('formatBlock',_0x2597('0x36'),_0x2597('0x66'),()=>{}),_0x2d9434[_0x2597('0x43')]['registerCustomCallback'](_0x2597('0x60'),_0x2597('0x36'),_0x2597('0x66'),()=>{}),_0x2d9434[_0x2597('0x43')][_0x2597('0x64')](_0x2597('0x65'),_0x2597('0x23'),'accept',()=>{}),_0x2d9434['_suggestionFactory'][_0x2597('0x64')](_0x2597('0x65'),_0x2597('0x23'),'discard',(_0x1bc8ea,_0x230ac7)=>{_0x2d9434[_0x2597('0x43')][_0x2597('0x2d')]('formatBlock','','accept')(_0x1bc8ea,{'commandName':_0x230ac7[_0x2597('0x11')],'commandParams':_0x230ac7['commandReversedParams']});}),_0x2d9434[_0x2597('0x43')]['registerCustomCallback'](_0x2597('0x65'),'imageStylePreApply',_0x2597('0x14'),_0x5e6234);}const _0x2e72a4=[{'type':_0x2597('0x65'),'subType':_0x2597('0x23')},{'type':_0x2597('0x6f'),'subType':_0x2597('0x20')},{'type':'formatBlock','subType':_0x2597('0x42')},{'type':'insertion','subType':_0x2597('0x42')}];function _0x5a4c4b(_0x2abf46,_0x22df43){const _0x1a592b=_0x2e72a4[_0x2597('0x58')](({type:_0x2ad3ed,subType:_0x614faf})=>_0x2abf46[_0x2597('0x6')]==_0x2ad3ed&&_0x2abf46['subType']==_0x614faf),_0x381858=_0x2e72a4[_0x2597('0x58')](({type:_0x3e3ca4,subType:_0x4a124b})=>_0x22df43[_0x2597('0x6')]==_0x3e3ca4&&_0x22df43[_0x2597('0x47')]==_0x4a124b);if(_0x1a592b<0x0||_0x381858<0x0)return!0x1;const _0x5c98e5=_0x2abf46['getFirstRange'](),_0x245fea=_0x22df43[_0x2597('0x6b')]();if((0x0==_0x1a592b||0x1==_0x1a592b)&&0x2==_0x381858&&_0x5c98e5['isIntersecting'](_0x245fea))return!0x0;if(0x2==_0x1a592b&&0x3==_0x381858){const _0x5891e6=_0x2d9434[_0x2597('0x4d')](_0x5c98e5,_0x2597('0x6f'))['filter'](({suggestion:_0x1cd28f,meta:_0x24308e})=>_0x24308e[_0x2597('0x34')]&&_0x2597('0x42')==_0x1cd28f[_0x2597('0x47')]);if(_0x5891e6[_0x2597('0x15')]>0x1&&_0x245fea['end'][_0x2597('0x49')](_0x5c98e5['start']))return!0x0;if(0x1==_0x5891e6[_0x2597('0x15')]&&(_0x5c98e5[_0x2597('0x2c')][_0x2597('0x49')](_0x245fea[_0x2597('0x22')])||_0x5c98e5[_0x2597('0x22')][_0x2597('0x49')](_0x245fea[_0x2597('0x2c')])))return!0x0;}if(0x3==_0x1a592b&&0x3==_0x381858&&_0x5c98e5['start'][_0x2597('0x2a')](_0x245fea[_0x2597('0x2c')])){const _0x7b153c=_0x5c98e5[_0x2597('0x22')]['nodeAfter'],_0x5ca364=_0x245fea[_0x2597('0x2c')]['nodeBefore'];return _0x5cd437['isBlockImage'](_0x7b153c)&&_0x7b153c===_0x5ca364;}return!0x1;}function _0x5e6234(_0x1b3cfd,_0xe451f8){return _0x5a4c4b(_0x1b3cfd,_0xe451f8)?[_0x1b3cfd,_0xe451f8]:_0x5a4c4b(_0xe451f8,_0x1b3cfd)?[_0xe451f8,_0x1b3cfd]:null;}_0x5ed42f[_0x2597('0x4f')]['document']['registerPostFixer'](()=>{let _0x5d8ae8=!0x1;const _0x5ef113=Array[_0x2597('0x5e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')][_0x2597('0x4')][_0x2597('0x4e')]());for(const {name:_0x43e2a5,data:_0x5c1124}of _0x5ef113){const {group:_0x23dd62,type:_0x4903da,subType:_0x57004f,id:_0x556dcf}=_0x2d9434[_0x2597('0x57')](_0x43e2a5);if(_0x2597('0x3d')==_0x23dd62&&_0x2d9434[_0x2597('0x55')](_0x556dcf)){if(_0x2597('0x65')==_0x4903da&&(_0x2597('0x23')==_0x57004f||_0x2597('0x36')==_0x57004f)){const _0x19c9a5=_0x2d9434[_0x2597('0x2b')](_0x556dcf);if(_0x5c1124['newRange']){const _0xfc513b=_0x19c9a5[_0x2597('0x6b')]()[_0x2597('0x2')]();if(_0x5cd437[_0x2597('0x68')](_0xfc513b))continue;_0x2d9434['discardSuggestion'](_0x19c9a5),_0x5d8ae8=!0x0;}}if('insertion'==_0x4903da&&_0x2597('0x20')==_0x57004f&&!_0x5c1124[_0x2597('0xf')]){const _0x7bb4ee=_0x2d9434[_0x2597('0x2b')](_0x556dcf);_0x7bb4ee['next']&&_0x7bb4ee['next']['isInContent']&&(_0x2d9434['discardSuggestion'](_0x7bb4ee[_0x2597('0x5c')]),_0x5d8ae8=!0x0);}}}return _0x5d8ae8;}),_0x5ed42f['plugins'][_0x2597('0x46')](_0x2597('0x17'))&&_0x2d9434['enableCommand'](_0x2597('0x9'),(_0x42a3f6,_0x12c661)=>{const _0x2ccff0=_0x5cd437['getClosestSelectedImageElement'](_0x5ed42f[_0x2597('0x4f')]['document']['selection']);_0x2ccff0[_0x2597('0xd')](_0x2597('0x30'))!=_0x12c661[_0x2597('0x30')]&&_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4a')](()=>{_0x2d9434[_0x2597('0x2f')](_0x2ccff0,{'commandName':_0x2597('0x9'),'commandParams':[_0x12c661]});});}),_0x5ed42f[_0x2597('0x70')][_0x2597('0x46')]('ImageTextAlternativeEditing')&&_0x2d9434[_0x2597('0x5f')]('imageTextAlternative',(_0x3d4097,_0x4ace4c)=>{const _0x239e57=_0x5cd437[_0x2597('0x2e')](_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4c')][_0x2597('0x3b')]);(_0x239e57[_0x2597('0x8')]('alt')?_0x239e57[_0x2597('0xd')](_0x2597('0x18')):'')!=_0x4ace4c[_0x2597('0x69')]&&_0x5ed42f[_0x2597('0x4f')][_0x2597('0x4a')](()=>{_0x2d9434[_0x2597('0x2f')](_0x239e57,{'commandName':_0x2597('0x45'),'commandParams':[_0x4ace4c]});});}),_0x2d9434[_0x2597('0x3a')]['registerDescriptionCallback'](_0x9facb2=>{if(!!_0x2e72a4['find'](({type:_0x14bfae,subType:_0x41fc9b})=>_0x9facb2[_0x2597('0x6')]==_0x14bfae&&_0x9facb2[_0x2597('0x47')]==_0x41fc9b))return _0x9facb2[_0x2597('0x56')]?{}:void 0x0;}),_0x2d9434[_0x2597('0x3a')][_0x2597('0x1b')](_0x4f9bbf=>{if(_0x2597('0x6f')==_0x4f9bbf[_0x2597('0x6')]||_0x2597('0xb')==_0x4f9bbf[_0x2597('0x6')]){const _0x2b2f96=_0x4f9bbf[_0x2597('0x2')]();if(_0x2b2f96&&_0x2b2f96['is'](_0x2597('0x72'),_0x2597('0x12')))return{'type':'insertion'==_0x4f9bbf[_0x2597('0x6')]?'addObject':_0x2597('0x5b'),'element':_0x2b2f96,'quantity':0x1};}}),_0x2d9434[_0x2597('0x3a')][_0x2597('0x1b')](_0x2f784d=>_0x2597('0x65')==_0x2f784d[_0x2597('0x6')]&&_0x2597('0x42')==_0x2f784d[_0x2597('0x47')]?{'type':_0x2597('0x4b'),'content':_0x2597('0x39')}:'formatBlock'==_0x2f784d[_0x2597('0x6')]&&_0x2597('0x6d')==_0x2f784d[_0x2597('0x47')]?{'type':_0x2597('0x4b'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d9434[_0x2597('0x3a')][_0x2597('0x1b')](_0x1eb97b=>{const {data:_0x3505bb}=_0x1eb97b;if(_0x3505bb){if(_0x2597('0x3f')==_0x3505bb[_0x2597('0x11')]){const _0x189c8c=_0x3505bb['commandParams'][0x0]['value'];return _0x2321a4(_0x2597('0x50')===_0x189c8c?_0x212321(_0x1f2aef,'FORMAT_SIDE_IMAGE'):_0x6a3bbb[_0x189c8c]||_0x189c8c);}if(_0x2597('0x45')==_0x3505bb[_0x2597('0x11')]){const _0x3b4153=_0x3505bb[_0x2597('0x1c')][0x0]['newValue'];return _0x3b4153?{'type':_0x2597('0x4b'),'content':_0x212321(_0x1f2aef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b4153+'\x22')}:{'type':_0x2597('0x4b'),'content':_0x212321(_0x1f2aef,_0x2597('0x54'))};}if('resizeImage'==_0x3505bb[_0x2597('0x11')]){const _0x5c34ee=_0x3505bb[_0x2597('0x1c')][0x0][_0x2597('0x30')];return _0x5c34ee?{'type':'format','content':_0x212321(_0x1f2aef,'*Set\x20image\x20width:*\x20%0',_0x5c34ee)}:{'type':_0x2597('0x4b'),'content':_0x212321(_0x1f2aef,_0x2597('0x67'))};}}function _0x2321a4(_0x353258){return{'type':_0x2597('0x4b'),'content':_0x212321(_0x1f2aef,_0x2597('0x0'),_0x353258)};}});}}
|
|
23
|
+
const _0x31ed=['discard','imageTextAlternative','commandParams','forceDefaultExecution','get','resizeImage','forward','commandName','imageInline','type','imageTypeInline','markInsertion','selection','find','ImageUploadEditing','getCaptionFromImageModelElement','name','*Format:*\x20%0','toPrevious','filter','isEqual','document','ELEMENT_INLINE_IMAGE','ImageTextAlternativeEditing','ELEMENT_IMAGE','ImageBlockEditing','findIndex','chain','imageStylePreApply','isInContent','toNext','subType','imageStyle','formatBlock','FORMAT_SIDE_IMAGE','Block\x20image\x20to\x20inline\x20image','backward','newValue','registerPostFixer','nodeBefore','refresh','ELEMENT_CAPTION','schema','*Reset\x20image\x20width*','createRangeOn','width','markInlineFormat','ImageStyleEditing','imageStylePostApply','commands','next','start','getSuggestion','addObject','isOwn','markBlockFormat','newRange','removeObject','fromPosition','registerElementLabel','from','author','side','getAttribute','model','detach','imageCaption','end','change','hasSuggestion','editor','convertInlineImageToBlock','insertion','insertImage','alt','accept','markDeletion','getNearestSelectionRange','toLowerCase','plugins','getFirstRange','join','has','_descriptionFactory','getClosestSelectedImageElement','head','*Remove\x20image\x20text\x20alternative*','isBlockImage','ImageCaptionUtils','isCollapsed','locale','value','format','registerCustomCallback','afterInit','createRange','isInlineImage','isBefore','deletion','shouldConvertImageType','nodeAfter','uploadImage','TrackChangesEditing','toggleImageCaption','previous','formatInline','length','ImageEditing','getSuggestionCallback','*Set\x20image\x20width:*\x20%0','ImageUtils','convertBlockImageToInline','element','discardSuggestion','isIntersecting','enableCommand','forEach','getContainedElement','imageTypeBlock','registerDescriptionCallback','caption','_suggestionFactory'];(function(_0x35f5d7,_0x31ed74){const _0x21231c=function(_0x2a48fb){while(--_0x2a48fb){_0x35f5d7['push'](_0x35f5d7['shift']());}};_0x21231c(++_0x31ed74);}(_0x31ed,0x146));const _0x2123=function(_0x35f5d7,_0x31ed74){_0x35f5d7=_0x35f5d7-0x0;let _0x21231c=_0x31ed[_0x35f5d7];return _0x21231c;};import{Plugin as _0x11a7e7}from'ckeditor5/src/core';import{LivePosition as _0x33711f}from'ckeditor5/src/engine';import{uid as _0x1f670d}from'ckeditor5/src/utils';import{getTranslation as _0x1adf2f}from'../utils/common-translations';export default class X extends _0x11a7e7{[_0x2123('0xc')](){const _0x2aebe3=this[_0x2123('0x6e')];if(!_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x19')))return;const _0x50cfca=_0x2aebe3[_0x2123('0x77')][_0x2123('0x2c')](_0x2123('0x14')),_0x163010=_0x2aebe3['plugins']['get'](_0x2123('0x1c')),_0x1fe626={},_0x236755=_0x2aebe3[_0x2123('0x8')];if(_0x50cfca[_0x2123('0x21')](_0x2123('0x71')),_0x50cfca[_0x2123('0x1')][_0x2123('0x63')]('imageBlock',_0x2ea53e=>_0x1adf2f(_0x236755,_0x2123('0x40'),_0x2ea53e)),_0x50cfca[_0x2123('0x1')][_0x2123('0x63')](_0x2123('0x30'),_0x3bd17e=>_0x1adf2f(_0x236755,_0x2123('0x3e'),_0x3bd17e)),_0x50cfca[_0x2123('0x1')]['registerElementLabel'](_0x2123('0x26'),()=>_0x1adf2f(_0x236755,_0x2123('0x51'))),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x36'))&&_0x50cfca[_0x2123('0x21')](_0x2123('0x13')),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x41'))&&_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')]('ImageInlineEditing')&&(_0x50cfca['enableCommand']('imageTypeInline',(_0x4ff0e0,_0x187aaa)=>{const _0x70973a=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]);_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{_0x50cfca[_0x2123('0x5f')](_0x70973a,{'commandName':_0x2123('0x32'),'commandParams':[_0x187aaa]},[],_0x2123('0x1d'));});}),_0x50cfca[_0x2123('0x21')](_0x2123('0x24'),(_0x5627e5,_0x3ff8b1)=>{_0x2aebe3['model'][_0x2123('0x6c')](_0x3a81f1=>{let _0x415edb=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]),_0x510c09=_0x3a81f1[_0x2123('0x54')](_0x415edb);const _0x10ad3f=_0x33711f[_0x2123('0x62')](_0x510c09[_0x2123('0x5b')],_0x2123('0x3a')),_0x4302b3=_0x33711f['fromPosition'](_0x510c09[_0x2123('0x6b')],_0x2123('0x46'));_0x50cfca[_0x2123('0x2b')](()=>_0x5627e5(_0x3ff8b1)),_0x415edb=_0x163010[_0x2123('0x2')](_0x2aebe3['model'][_0x2123('0x3d')][_0x2123('0x34')]),_0x510c09=_0x3a81f1[_0x2123('0x54')](_0x415edb);const _0x2a9240=_0x3a81f1[_0x2123('0xd')](_0x10ad3f,_0x4302b3);_0x10ad3f[_0x2123('0x69')](),_0x4302b3[_0x2123('0x69')](),_0x50cfca[_0x2123('0x5f')](_0x415edb,{'commandName':_0x2123('0x32'),'commandParams':[]},[],_0x2123('0x6f')),_0x2a9240[_0x2123('0x5b')][_0x2123('0xf')](_0x510c09[_0x2123('0x5b')])&&_0x50cfca['markInsertion'](_0x3a81f1['createRange'](_0x2a9240[_0x2123('0x5b')],_0x510c09[_0x2123('0x5b')]),_0x2123('0x6f')),_0x510c09[_0x2123('0x6b')][_0x2123('0xf')](_0x2a9240[_0x2123('0x6b')])&&_0x50cfca[_0x2123('0x33')](_0x3a81f1[_0x2123('0xd')](_0x510c09[_0x2123('0x6b')],_0x2a9240[_0x2123('0x6b')]),_0x2123('0x6f'));});}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x73'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('formatBlock',_0x2123('0x6f'),_0x2123('0x28'),_0x50cfca[_0x2123('0x27')][_0x2123('0x1a')](_0x2123('0x49'),'',_0x2123('0x73'))),_0x50cfca['_suggestionFactory'][_0x2123('0xb')](_0x2123('0x70'),'convertInlineImageToBlock',_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')]['registerCustomCallback'](_0x2123('0x70'),_0x2123('0x6f'),'discard',([_0x3660ae])=>{const _0x3a309d=_0x50cfca[_0x2123('0x27')]['getSuggestionCallback'](_0x2123('0x70'),'','discard');let _0x5c4ef2=_0x3660ae[_0x2123('0x5b')],_0x4f7669=_0x3660ae[_0x2123('0x6b')];const _0x31e9f6=_0x2aebe3[_0x2123('0x68')][_0x2123('0x52')][_0x2123('0x75')](_0x5c4ef2,_0x2123('0x4c')),_0x43e686=_0x2aebe3['model']['schema']['getNearestSelectionRange'](_0x4f7669,_0x2123('0x2e'));_0x31e9f6['isCollapsed']&&(_0x5c4ef2=_0x31e9f6[_0x2123('0x5b')]),_0x43e686[_0x2123('0x7')]&&(_0x4f7669=_0x43e686['end']),_0x3a309d([_0x2aebe3[_0x2123('0x68')][_0x2123('0xd')](_0x5c4ef2,_0x4f7669)]);}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x43'),_0x25451c),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('insertion',_0x2123('0x6f'),_0x2123('0x43'),_0x25451c)),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')]('ImageCaptionEditing')&&(_0x50cfca[_0x2123('0x21')](_0x2123('0x15'),(_0x3a051d,_0x3fe936)=>{const _0x183912=_0x2aebe3[_0x2123('0x77')][_0x2123('0x2c')](_0x2123('0x6'));let _0x1a2820=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]),_0x3379de=_0x183912['getCaptionFromImageModelElement'](_0x1a2820);_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{if(_0x3379de)return void _0x50cfca[_0x2123('0x74')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x3379de));const _0xc9501c=_0x163010[_0x2123('0x5')](_0x1a2820);_0x3a051d(_0x3fe936),_0x1a2820=_0x163010[_0x2123('0x2')](_0x2aebe3['model'][_0x2123('0x3d')][_0x2123('0x34')]),_0x3379de=_0x183912[_0x2123('0x37')](_0x1a2820),_0x50cfca[_0x2123('0x33')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x3379de),_0xc9501c?null:_0x2123('0x6a'));});}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('insertion',_0x2123('0x6a'),_0x2123('0x43'),_0x25451c)),_0x2aebe3['plugins'][_0x2123('0x0')]('ImageStyleEditing')){_0x50cfca[_0x2123('0x21')]('imageStyle',(_0x28e616,_0x51ab5d)=>{const _0x41fb12=_0x2aebe3[_0x2123('0x77')]['get']('Users')['me'],_0x38fb78=_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')](_0x2123('0x48'));let _0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']),_0x1e688b=_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x2882cd),_0x3347fd=_0x38fb78[_0x2123('0x9')];if(_0x3347fd==_0x51ab5d[_0x2123('0x9')])return;const _0x35dee9={'commandName':_0x2123('0x48'),'commandParams':[_0x51ab5d],'formatGroupId':_0x1f670d()};_0x2aebe3[_0x2123('0x68')]['change'](()=>{if(_0x50cfca['getSuggestions']()[_0x2123('0x3b')](_0x58bc93=>_0x58bc93[_0x2123('0x45')]&&_0x41fb12==_0x58bc93[_0x2123('0x65')]&&(_0x2123('0x49')==_0x58bc93[_0x2123('0x31')]||_0x2123('0x17')==_0x58bc93[_0x2123('0x31')])&&('imageStylePreApply'==_0x58bc93['subType']||_0x2123('0x58')==_0x58bc93[_0x2123('0x47')])&&_0x58bc93[_0x2123('0x78')]()['isEqual'](_0x1e688b))[_0x2123('0x22')](_0x543d56=>_0x50cfca[_0x2123('0x1f')](_0x543d56[_0x2123('0x3')])),_0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']),_0x1e688b=_0x2aebe3['model']['createRangeOn'](_0x2882cd),_0x38fb78['refresh'](),_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')]('imageTypeInline')['refresh'](),_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')](_0x2123('0x24'))[_0x2123('0x50')](),_0x3347fd=_0x38fb78[_0x2123('0x9')],_0x3347fd!=_0x51ab5d[_0x2123('0x9')])return _0x163010[_0x2123('0xe')](_0x2882cd)&&_0x38fb78[_0x2123('0x11')](_0x51ab5d[_0x2123('0x9')],_0x2882cd)?(_0x28e616(_0x51ab5d),_0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')]['document']['selection']),void _0x50cfca[_0x2123('0x5f')](_0x2882cd,{..._0x35dee9,'commandReversedParams':[{'value':_0x3347fd||null}]},[],_0x2123('0x44'))):void(_0x163010[_0x2123('0x5')](_0x2882cd)?_0x50cfca['markBlockFormat'](_0x2882cd,_0x35dee9,[],'imageStylePostApply'):_0x50cfca[_0x2123('0x56')](_0x1e688b,_0x35dee9,_0x2123('0x58')));});});for(const _0xdd3189 of _0x2aebe3[_0x2123('0x77')]['get'](_0x2123('0x57'))['normalizedStyles'])_0x1fe626[_0xdd3189[_0x2123('0x38')]]=_0xdd3189['title'][_0x2123('0x76')]();_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),'imageStylePreApply',_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x58'),'join',()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x17'),_0x2123('0x58'),_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('formatBlock',_0x2123('0x44'),_0x2123('0x73'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x44'),_0x2123('0x28'),(_0x1a77de,_0x50ec8d)=>{_0x50cfca[_0x2123('0x27')][_0x2123('0x1a')](_0x2123('0x49'),'',_0x2123('0x73'))(_0x1a77de,{'commandName':_0x50ec8d[_0x2123('0x2f')],'commandParams':_0x50ec8d['commandReversedParams']});}),_0x50cfca[_0x2123('0x27')]['registerCustomCallback'](_0x2123('0x49'),'imageStylePreApply',_0x2123('0x43'),_0x25451c);}const _0x59765a=[{'type':_0x2123('0x49'),'subType':_0x2123('0x44')},{'type':_0x2123('0x70'),'subType':_0x2123('0x6a')},{'type':_0x2123('0x49'),'subType':'convertInlineImageToBlock'},{'type':_0x2123('0x70'),'subType':_0x2123('0x6f')}];function _0x14f27d(_0x3a0306,_0x3ce349){const _0x27db09=_0x59765a['findIndex'](({type:_0x158d48,subType:_0x20308e})=>_0x3a0306[_0x2123('0x31')]==_0x158d48&&_0x3a0306['subType']==_0x20308e),_0x1dd8bf=_0x59765a[_0x2123('0x42')](({type:_0x111155,subType:_0x401ec6})=>_0x3ce349[_0x2123('0x31')]==_0x111155&&_0x3ce349[_0x2123('0x47')]==_0x401ec6);if(_0x27db09<0x0||_0x1dd8bf<0x0)return!0x1;const _0x33fff5=_0x3a0306[_0x2123('0x78')](),_0x23af49=_0x3ce349[_0x2123('0x78')]();if((0x0==_0x27db09||0x1==_0x27db09)&&0x2==_0x1dd8bf&&_0x33fff5[_0x2123('0x20')](_0x23af49))return!0x0;if(0x2==_0x27db09&&0x3==_0x1dd8bf){const _0x4d8249=_0x50cfca['_findSuggestions'](_0x33fff5,_0x2123('0x70'))[_0x2123('0x3b')](({suggestion:_0x37d849,meta:_0x19ba7a})=>_0x19ba7a[_0x2123('0x5e')]&&'convertInlineImageToBlock'==_0x37d849[_0x2123('0x47')]);if(_0x4d8249[_0x2123('0x18')]>0x1&&_0x23af49[_0x2123('0x6b')]['isEqual'](_0x33fff5[_0x2123('0x5b')]))return!0x0;if(0x1==_0x4d8249[_0x2123('0x18')]&&(_0x33fff5[_0x2123('0x5b')][_0x2123('0x3c')](_0x23af49[_0x2123('0x6b')])||_0x33fff5[_0x2123('0x6b')][_0x2123('0x3c')](_0x23af49[_0x2123('0x5b')])))return!0x0;}if(0x3==_0x27db09&&0x3==_0x1dd8bf&&_0x33fff5[_0x2123('0x5b')]['isBefore'](_0x23af49['start'])){const _0x2c6a38=_0x33fff5[_0x2123('0x6b')][_0x2123('0x12')],_0xc71472=_0x23af49[_0x2123('0x5b')][_0x2123('0x4f')];return _0x163010['isBlockImage'](_0x2c6a38)&&_0x2c6a38===_0xc71472;}return!0x1;}function _0x25451c(_0x77f0e5,_0x221101){return _0x14f27d(_0x77f0e5,_0x221101)?[_0x77f0e5,_0x221101]:_0x14f27d(_0x221101,_0x77f0e5)?[_0x221101,_0x77f0e5]:null;}_0x2aebe3[_0x2123('0x68')]['document'][_0x2123('0x4e')](()=>{let _0x1f751a=!0x1;const _0x5c63e7=Array[_0x2123('0x64')](_0x2aebe3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4caec6,data:_0x150660}of _0x5c63e7){const {group:_0x324ee8,type:_0x47d5c5,subType:_0xaf1c25,id:_0x1ee001}=_0x50cfca['_splitMarkerName'](_0x4caec6);if('suggestion'==_0x324ee8&&_0x50cfca[_0x2123('0x6d')](_0x1ee001)){if(_0x2123('0x49')==_0x47d5c5&&(_0x2123('0x44')==_0xaf1c25||_0x2123('0x58')==_0xaf1c25)){const _0x2b75da=_0x50cfca['getSuggestion'](_0x1ee001);if(_0x150660['newRange']){const _0x36ffb8=_0x2b75da[_0x2123('0x78')]()[_0x2123('0x23')]();if(_0x163010[_0x2123('0x5')](_0x36ffb8))continue;_0x50cfca['discardSuggestion'](_0x2b75da),_0x1f751a=!0x0;}}if(_0x2123('0x70')==_0x47d5c5&&_0x2123('0x6a')==_0xaf1c25&&!_0x150660[_0x2123('0x60')]){const _0x5c8023=_0x50cfca[_0x2123('0x5c')](_0x1ee001);_0x5c8023[_0x2123('0x5a')]&&_0x5c8023[_0x2123('0x5a')][_0x2123('0x45')]&&(_0x50cfca['discardSuggestion'](_0x5c8023[_0x2123('0x5a')]),_0x1f751a=!0x0);}}}return _0x1f751a;}),_0x2aebe3[_0x2123('0x77')]['has']('ImageResize')&&_0x50cfca[_0x2123('0x21')](_0x2123('0x2d'),(_0x5d4bf4,_0x3429de)=>{const _0x35c9d2=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]);_0x35c9d2['getAttribute'](_0x2123('0x55'))!=_0x3429de[_0x2123('0x55')]&&_0x2aebe3['model']['change'](()=>{_0x50cfca['markBlockFormat'](_0x35c9d2,{'commandName':_0x2123('0x2d'),'commandParams':[_0x3429de]});});}),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x3f'))&&_0x50cfca[_0x2123('0x21')](_0x2123('0x29'),(_0x47eac8,_0x5611a7)=>{const _0x48cd4e=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']);(_0x48cd4e['hasAttribute'](_0x2123('0x72'))?_0x48cd4e[_0x2123('0x67')](_0x2123('0x72')):'')!=_0x5611a7[_0x2123('0x4d')]&&_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{_0x50cfca[_0x2123('0x5f')](_0x48cd4e,{'commandName':'imageTextAlternative','commandParams':[_0x5611a7]});});}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x10f55f=>{if(!!_0x59765a[_0x2123('0x35')](({type:_0xa6d02c,subType:_0x178705})=>_0x10f55f[_0x2123('0x31')]==_0xa6d02c&&_0x10f55f[_0x2123('0x47')]==_0x178705))return _0x10f55f[_0x2123('0x16')]?{}:void 0x0;}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x37b0e7=>{if(_0x2123('0x70')==_0x37b0e7[_0x2123('0x31')]||_0x2123('0x10')==_0x37b0e7[_0x2123('0x31')]){const _0x49da14=_0x37b0e7[_0x2123('0x23')]();if(_0x49da14&&_0x49da14['is'](_0x2123('0x1e'),_0x2123('0x26')))return{'type':_0x2123('0x70')==_0x37b0e7['type']?_0x2123('0x5d'):_0x2123('0x61'),'element':_0x49da14,'quantity':0x1};}}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x3c0b4d=>_0x2123('0x49')==_0x3c0b4d[_0x2123('0x31')]&&'convertInlineImageToBlock'==_0x3c0b4d[_0x2123('0x47')]?{'type':_0x2123('0xa'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c0b4d[_0x2123('0x31')]&&_0x2123('0x1d')==_0x3c0b4d[_0x2123('0x47')]?{'type':'format','content':_0x2123('0x4b')}:void 0x0),_0x50cfca['_descriptionFactory']['registerDescriptionCallback'](_0x5f0265=>{const {data:_0x3fcbaf}=_0x5f0265;if(_0x3fcbaf){if(_0x2123('0x48')==_0x3fcbaf[_0x2123('0x2f')]){const _0x441004=_0x3fcbaf[_0x2123('0x2a')][0x0][_0x2123('0x9')];return _0x5ccefb(_0x2123('0x66')===_0x441004?_0x1adf2f(_0x236755,_0x2123('0x4a')):_0x1fe626[_0x441004]||_0x441004);}if(_0x2123('0x29')==_0x3fcbaf['commandName']){const _0x46b12b=_0x3fcbaf[_0x2123('0x2a')][0x0]['newValue'];return _0x46b12b?{'type':'format','content':_0x1adf2f(_0x236755,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46b12b+'\x22')}:{'type':'format','content':_0x1adf2f(_0x236755,_0x2123('0x4'))};}if(_0x2123('0x2d')==_0x3fcbaf['commandName']){const _0x4d20f5=_0x3fcbaf[_0x2123('0x2a')][0x0][_0x2123('0x55')];return _0x4d20f5?{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x1b'),_0x4d20f5)}:{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x53'))};}}function _0x5ccefb(_0x4b8f24){return{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x39'),_0x4b8f24)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48ac=['_suggestionFactory','handleSuggestionDescription','getAttribute','document','source','enableCommand','getSuggestionCallback','has','TrackChangesEditing','author','formatBlock','getContainedElement','replaceImageSource','Users','src','data','subType','model','handleReplaceImageCommand','format','registerCustomCallback','afterInit','*Format:*\x20replace\x20image\x20URL','commandName','_descriptionFactory','plugins','getSelectedElement','markBlockFormat','ImageEditing','accept','get','editor','selection','discard'];(function(_0x2a9fbb,_0x48ac4b){const _0x555219=function(_0x1c9bdf){while(--_0x1c9bdf){_0x2a9fbb['push'](_0x2a9fbb['shift']());}};_0x555219(++_0x48ac4b);}(_0x48ac,0x117));const _0x5552=function(_0x2a9fbb,_0x48ac4b){_0x2a9fbb=_0x2a9fbb-0x0;let _0x555219=_0x48ac[_0x2a9fbb];return _0x555219;};import{Plugin as _0x3c12d2}from'ckeditor5/src/core';import{getTranslation as _0x173957}from'../utils/common-translations';export default class Y extends _0x3c12d2{[_0x5552('0xe')](){if(!this['editor'][_0x5552('0x12')][_0x5552('0x0')](_0x5552('0x15')))return;const _0x218240=this[_0x5552('0x18')]['plugins'][_0x5552('0x17')](_0x5552('0x1'));_0x218240[_0x5552('0x20')]('replaceImageSource',(_0x16f310,_0x3aac20)=>this[_0x5552('0xb')](_0x16f310,_0x3aac20)),_0x218240['_suggestionFactory'][_0x5552('0xd')](_0x5552('0x3'),'replaceImageSource',_0x5552('0x16'),_0x218240[_0x5552('0x1b')][_0x5552('0x21')](_0x5552('0x3'),null,_0x5552('0x1a'))),_0x218240[_0x5552('0x1b')][_0x5552('0xd')](_0x5552('0x3'),_0x5552('0x5'),_0x5552('0x1a'),_0x218240[_0x5552('0x1b')][_0x5552('0x21')](_0x5552('0x3'),null,_0x5552('0x16'))),_0x218240[_0x5552('0x11')]['registerDescriptionCallback'](_0x5b05b2=>this[_0x5552('0x1c')](_0x5b05b2));}[_0x5552('0xb')](_0x141fc7,_0x49a021){const _0x765f14=this['editor'][_0x5552('0x12')][_0x5552('0x17')]('TrackChangesEditing'),_0x18ea40=this[_0x5552('0x18')]['model'][_0x5552('0x1e')][_0x5552('0x19')][_0x5552('0x13')]();this[_0x5552('0x18')][_0x5552('0xa')]['change'](()=>{let _0x54584c=_0x18ea40[_0x5552('0x1d')](_0x5552('0x7'));const _0x4620ca=this[_0x5552('0x18')][_0x5552('0x12')][_0x5552('0x17')](_0x5552('0x6'))['me'];for(const _0x301e43 of _0x765f14['getSuggestions']({'skipNotAttached':!0x0})){const _0x30f0dc=_0x301e43[_0x5552('0x4')]();if('replaceImageSource'===_0x301e43[_0x5552('0x9')]&&_0x30f0dc===_0x18ea40){_0x301e43[_0x5552('0x2')]!==_0x4620ca&&_0x301e43[_0x5552('0x1a')](),_0x54584c=_0x301e43[_0x5552('0x8')]['commandParams'][0x0][_0x5552('0x1f')];break;}}_0x141fc7(_0x49a021),_0x765f14[_0x5552('0x14')](_0x18ea40,{'commandName':_0x5552('0x5'),'commandParams':[{'source':_0x54584c}]},[],_0x5552('0x5'));});}[_0x5552('0x1c')](_0x46f663){const {data:_0x5ab0b8}=_0x46f663;if(_0x5ab0b8&&_0x5552('0x5')===_0x5ab0b8[_0x5552('0x10')]){const _0x135c55=_0x5552('0xf');return{'type':_0x5552('0xc'),'content':_0x173957(this[_0x5552('0x18')]['locale'],_0x135c55)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44c8=['execute','commands','enableCommand','importWord','get','_trackChangesExecuted','editor','value','collaboration_features','listenTo','afterInit','_trackChangesValueDuringImport','plugins','Users','_setSuggestionData','_handleImportedData','trackChanges','TrackChangesEditing','dataInsert','track_changes','bind','lowest'];(function(_0x32e1fc,_0x44c867){const _0x1f6243=function(_0x5add88){while(--_0x5add88){_0x32e1fc['push'](_0x32e1fc['shift']());}};_0x1f6243(++_0x44c867);}(_0x44c8,0x71));const _0x1f62=function(_0x32e1fc,_0x44c867){_0x32e1fc=_0x32e1fc-0x0;let _0x1f6243=_0x44c8[_0x32e1fc];return _0x1f6243;};import{Plugin as _0x1b534f}from'ckeditor5/src/core';export default class Z extends _0x1b534f{constructor(_0x5f55bc){super(_0x5f55bc),this[_0x1f62('0x8')]=!0x1,this[_0x1f62('0x2')]=!0x1;}[_0x1f62('0x7')](){const _0x3ef7e9=this['editor'],_0xbc3037=_0x3ef7e9[_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0x0')),_0x560113=_0x3ef7e9[_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0xd'));_0xbc3037&&(_0xbc3037['on'](_0x1f62('0x13'),(_0x1a66d3,[,_0x432180])=>{this[_0x1f62('0x8')]=_0x560113[_0x1f62('0x4')],_0x432180[_0x1f62('0x5')][_0x1f62('0x10')]=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this[_0x1f62('0x6')](_0xbc3037,_0x1f62('0xf'),this[_0x1f62('0xc')][_0x1f62('0x11')](this)),this[_0x1f62('0x6')](_0xbc3037,'dataInsert',()=>{this[_0x1f62('0x2')]&&(_0x560113[_0x1f62('0x13')](),this[_0x1f62('0x2')]=!0x1);},{'priority':_0x1f62('0x12')}),_0x3ef7e9[_0x1f62('0x9')][_0x1f62('0x1')]('TrackChangesEditing')[_0x1f62('0x15')](_0x1f62('0x0')));}[_0x1f62('0xc')](_0x11215f,_0x5aced4){const {suggestions:_0x4aec51}=_0x5aced4,_0x11cdf7=this['editor'][_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0xd')),_0x153246=_0x11cdf7[_0x1f62('0x4')];this[_0x1f62('0x8')]!==_0x153246&&(_0x11cdf7[_0x1f62('0x13')](),this[_0x1f62('0x2')]=!0x0),_0x4aec51&&_0x4aec51['forEach'](({id:_0x393e5a,type:_0x52c57d,author:_0xcb49d4,created_at:_0x12806a})=>{const _0x2c2ec8={'id':_0x393e5a,'type':_0x52c57d,'authorId':this[_0x1f62('0x3')][_0x1f62('0x9')][_0x1f62('0x1')](_0x1f62('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xcb49d4,'createdAt':_0x12806a?new Date(_0x12806a):new Date(),'source':_0x1f62('0x0')}}};this['editor']['plugins'][_0x1f62('0x1')](_0x1f62('0xe'))[_0x1f62('0xb')](_0x2c2ec8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30ee=['from','get','blockIndent','indentBlock','*Outdent:*\x20%0','selection','enableCommand','IndentEditing','document','plugins','change','registerDescriptionCallback','_descriptionFactory','editor','outdentBlock','IndentBlock','has','model','getSelectedBlocks','checkAttribute','format','outdent','filter','getItemLabel','afterInit','commandName'];(function(_0x1a520f,_0x30eec4){const _0x2c5caf=function(_0x2f1c43){while(--_0x2f1c43){_0x1a520f['push'](_0x1a520f['shift']());}};_0x2c5caf(++_0x30eec4);}(_0x30ee,0xd2));const _0x2c5c=function(_0x1a520f,_0x30eec4){_0x1a520f=_0x1a520f-0x0;let _0x2c5caf=_0x30ee[_0x1a520f];return _0x2c5caf;};import{Plugin as _0x4a7df1}from'ckeditor5/src/core';import{getTranslation as _0x5e3ed2}from'../utils/common-translations';export default class tt extends _0x4a7df1{[_0x2c5c('0x16')](){const _0x2b3b95=this[_0x2c5c('0xb')],_0x13e7a6=_0x2b3b95['plugins'][_0x2c5c('0x19')]('TrackChangesEditing');_0x2b3b95[_0x2c5c('0x7')]['has'](_0x2c5c('0x5'))&&(_0x13e7a6[_0x2c5c('0x4')]('indent'),_0x13e7a6[_0x2c5c('0x4')](_0x2c5c('0x13')));const _0x3539a1=_0x2b3b95['locale'];if(_0x2b3b95[_0x2c5c('0x7')][_0x2c5c('0xe')](_0x2c5c('0xd'))){for(const _0x3e1648 of['indentBlock','outdentBlock'])_0x13e7a6['enableCommand'](_0x3e1648,()=>{const _0x1ea8eb=Array[_0x2c5c('0x18')](this[_0x2c5c('0xb')]['model'][_0x2c5c('0x6')][_0x2c5c('0x3')][_0x2c5c('0x10')]())[_0x2c5c('0x14')](_0x289e4d=>this[_0x2c5c('0xb')][_0x2c5c('0xf')]['schema'][_0x2c5c('0x11')](_0x289e4d,_0x2c5c('0x0')));_0x2b3b95[_0x2c5c('0xf')][_0x2c5c('0x8')](()=>{for(const _0x222187 of _0x1ea8eb)_0x13e7a6['markBlockFormat'](_0x222187,{'commandName':_0x3e1648,'commandParams':[{'value':''}],'formatGroupId':_0x2c5c('0x1')});});});_0x13e7a6[_0x2c5c('0xa')][_0x2c5c('0x9')](_0x47e7b6=>{const {data:_0x451ee1}=_0x47e7b6;if(!_0x451ee1)return;if(_0x2c5c('0x1')!=_0x451ee1['commandName']&&_0x2c5c('0xc')!=_0x451ee1[_0x2c5c('0x17')])return;const _0x288eb8=_0x47e7b6['getItems']()[0x0],_0x50a4ef=_0x13e7a6['_descriptionFactory'][_0x2c5c('0x15')](_0x288eb8);return _0x2c5c('0x1')==_0x451ee1[_0x2c5c('0x17')]?{'type':_0x2c5c('0x12'),'content':_0x5e3ed2(_0x3539a1,'*Indent:*\x20%0',_0x50a4ef)}:_0x2c5c('0xc')==_0x451ee1[_0x2c5c('0x17')]?{'type':_0x2c5c('0x12'),'content':_0x5e3ed2(_0x3539a1,_0x2c5c('0x2'),_0x50a4ef)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5de0=['enableCommand','editor','TrackChangesEditing','init','get','requires','input'];(function(_0x15c5dd,_0x5de09e){var _0x165623=function(_0x3ba0e5){while(--_0x3ba0e5){_0x15c5dd['push'](_0x15c5dd['shift']());}};_0x165623(++_0x5de09e);}(_0x5de0,0xbf));var _0x1656=function(_0x15c5dd,_0x5de09e){_0x15c5dd=_0x15c5dd-0x0;var _0x165623=_0x5de0[_0x15c5dd];return _0x165623;};import{Plugin as _0xeb627}from'ckeditor5/src/core';import{Input as _0x3582a0}from'ckeditor5/src/typing';export default class it extends _0xeb627{static get[_0x1656('0x3')](){return[_0x3582a0];}[_0x1656('0x1')](){this[_0x1656('0x6')]['plugins'][_0x1656('0x2')](_0x1656('0x0'))[_0x1656('0x5')](_0x1656('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d4=['selection','commandName','locale','_descriptionFactory','linkHref','format','model','hasAttribute','TrackChangesEditing','from','afterInit','plugins','change','commandParams','getFirstRange','getFirstPosition','editor','unlink','*Remove\x20link*','getRanges','LinkEditing','link','get','isCollapsed','document','enableCommand'];(function(_0x3eca97,_0x44d441){const _0x382e20=function(_0x13785d){while(--_0x13785d){_0x3eca97['push'](_0x3eca97['shift']());}};_0x382e20(++_0x44d441);}(_0x44d4,0x16c));const _0x382e=function(_0x3eca97,_0x44d441){_0x3eca97=_0x3eca97-0x0;let _0x382e20=_0x44d4[_0x3eca97];return _0x382e20;};import{Plugin as _0x4a5ef1}from'ckeditor5/src/core';import{findAttributeRange as _0x381248}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x3bc639}from'./utils';import{getTranslation as _0x56a68d}from'../utils/common-translations';export default class et extends _0x4a5ef1{[_0x382e('0xa')](){const _0x15d45a=this[_0x382e('0x10')];if(!_0x15d45a['plugins']['has'](_0x382e('0x14')))return;const _0x40d173=_0x15d45a[_0x382e('0xb')][_0x382e('0x16')](_0x382e('0x8'));_0x40d173[_0x382e('0x19')](_0x382e('0x15'),(_0x164b90,_0x5301c1)=>{const _0x11d940=_0x15d45a[_0x382e('0x6')][_0x382e('0x18')][_0x382e('0x0')];let _0x516723=[];if(_0x11d940['isCollapsed']){if(!_0x11d940[_0x382e('0x7')](_0x382e('0x4')))return void _0x164b90(_0x5301c1);{const _0x527dfb=_0x381248(_0x11d940[_0x382e('0xf')](),_0x382e('0x4'),_0x11d940['getAttribute'](_0x382e('0x4')),_0x15d45a['model']);_0x516723=[_0x527dfb];}}else _0x516723=Array[_0x382e('0x9')](_0x11d940[_0x382e('0x13')]());_0x15d45a['model'][_0x382e('0xc')](()=>{for(const _0x180e9e of _0x516723)_0x40d173['markInlineFormat'](_0x180e9e,{'commandName':_0x382e('0x15'),'commandParams':[_0x5301c1]});});}),_0x40d173[_0x382e('0x19')](_0x382e('0x11'),()=>{const _0x18ba94=this['editor'][_0x382e('0x6')],_0x49eff0=_0x18ba94[_0x382e('0x18')][_0x382e('0x0')];_0x18ba94[_0x382e('0xc')](()=>{let _0x369f3a=[];if(_0x49eff0[_0x382e('0x17')])_0x369f3a=[_0x381248(_0x49eff0[_0x382e('0xf')](),_0x382e('0x4'),_0x49eff0['getAttribute'](_0x382e('0x4')),_0x15d45a[_0x382e('0x6')])];else _0x369f3a=_0x3bc639(_0x382e('0x4'),_0x49eff0[_0x382e('0xe')](),_0x15d45a[_0x382e('0x6')]);for(const _0x4274c3 of _0x369f3a)_0x40d173['markInlineFormat'](_0x4274c3,{'commandName':_0x382e('0x11'),'commandParams':[]});});}),_0x40d173[_0x382e('0x3')]['registerDescriptionCallback'](_0x14c8ad=>{const {data:_0x54fac0}=_0x14c8ad,_0x4c1189=_0x15d45a[_0x382e('0x2')];if(_0x54fac0){if(_0x382e('0x15')==_0x54fac0['commandName']){const _0x22c1a9=_0x54fac0[_0x382e('0xd')][0x0];return{'type':_0x382e('0x5'),'content':_0x56a68d(_0x4c1189,'*Set\x20link:*\x20%0','\x22'+_0x22c1a9+'\x22')};}return _0x382e('0x11')==_0x54fac0[_0x382e('0x1')]?{'type':_0x382e('0x5'),'content':_0x56a68d(_0x4c1189,_0x382e('0x12'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5322=['indentList','markBlockFormat','List','getSelectedBlocks','editor','from','numbered','name','model','value','outdentList','element','*Check\x20item*','enableCommand','locale','plugins','registerDescriptionCallback','todoListChecked','length','slice','add','document','ELEMENT_BULLETED_LIST','listIndent','end','ELEMENT_TODO_LIST','*Uncheck\x20item*','forceValue','todo','_selectedElements','parent','blockName','isObject','bulleted','nextSibling','ELEMENT_NUMBERED_LIST','numberedList','afterInit','replace','has','filter','previousSibling','ELEMENT_LIST_ITEM','*Outdent:*\x20%0','getAttribute','*Change\x20to:*\x20%0','createPositionAt','format','checkTodoList','change','commandParams','ListEditing','checkChild','registerElementLabel','execute','todoList','_descriptionFactory','get','bulletedList','listItem','commandName','schema'];(function(_0x296c58,_0x5322f8){const _0x28cb8e=function(_0x355120){while(--_0x355120){_0x296c58['push'](_0x296c58['shift']());}};_0x28cb8e(++_0x5322f8);}(_0x5322,0x112));const _0x28cb=function(_0x296c58,_0x5322f8){_0x296c58=_0x296c58-0x0;let _0x28cb8e=_0x5322[_0x296c58];return _0x28cb8e;};import{Plugin as _0x4af57a}from'ckeditor5/src/core';import{getTranslation as _0x2a53c3}from'../utils/common-translations';export default class st extends _0x4af57a{[_0x28cb('0xb')](){const _0x2d8ec2=this[_0x28cb('0x28')],_0x5994bb=_0x2d8ec2[_0x28cb('0x32')];if(!_0x2d8ec2[_0x28cb('0x33')][_0x28cb('0xd')](_0x28cb('0x19')))return;const _0x36c842=_0x2d8ec2[_0x28cb('0x33')][_0x28cb('0x1f')]('TrackChangesEditing'),_0xdafc2e=_0x2d8ec2['plugins'][_0x28cb('0xd')]('TodoListEditing');function _0x40a36f(_0x172f56){return()=>{const _0x337f1a=_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x39')]['selection'],_0x67fab=_0x2d8ec2['commands'][_0x28cb('0x1f')](_0x172f56);if(_0x67fab[_0x28cb('0x2d')])return void _0x2d8ec2[_0x28cb('0x1c')]('paragraph',{});const _0x5bf417=_0x172f56['slice'](0x0,-0x4),_0x5efa04=function(_0xf8b14d,_0x5c7d8a,_0x2fe80d){let _0x533e42=Array['from'](_0xf8b14d)[_0x28cb('0xe')](_0x2130e9=>function(_0x555be7,_0x9caacb){return _0x9caacb[_0x28cb('0x1a')](_0x555be7[_0x28cb('0x4')],_0x28cb('0x21'))&&!_0x9caacb[_0x28cb('0x6')](_0x555be7);}(_0x2130e9,_0x2fe80d));_0x533e42=_0x533e42[_0x28cb('0xe')](_0x2eef51=>!_0x2eef51['is'](_0x28cb('0x2f'),_0x28cb('0x21'))||_0x2eef51[_0x28cb('0x12')]('listType')!=_0x5c7d8a);const _0x552737=new Set();for(const _0x4f23b8 of _0x533e42)_0x4f23b8['is'](_0x28cb('0x2f'),'listItem')?_0x552737[_0x28cb('0x38')](ne(_0x4f23b8)):_0x552737['add'](_0x4f23b8);return Array[_0x28cb('0x29')](_0x552737);}(_0x337f1a[_0x28cb('0x27')](),_0x5bf417,_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x23')]);_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x17')](()=>{for(const _0x54ccf0 of _0x5efa04)_0x36c842['markBlockFormat'](_0x54ccf0,{'commandName':_0x172f56,'commandParams':[{'forceValue':!_0x67fab[_0x28cb('0x2d')]}],'formatGroupId':_0x28cb('0x5')},oe(_0x54ccf0));});};}function _0x3da163(_0xcf3e3a){return()=>{const _0x32d305=function(_0xc824fb){let _0x187851=Array[_0x28cb('0x29')](_0xc824fb);const _0x1c0ac0=_0x187851['findIndex'](_0x21e74f=>_0x28cb('0x21')!=_0x21e74f['name']);return _0x1c0ac0>-0x1&&(_0x187851=_0x187851[_0x28cb('0x37')](0x0,_0x1c0ac0)),_0x187851;}(_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x39')]['selection'][_0x28cb('0x27')]()),_0x182121=_0x2d8ec2[_0x28cb('0x2c')]['createRange'](_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x14')](_0x32d305[0x0],'before'),_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x14')](_0x32d305[_0x32d305[_0x28cb('0x36')]-0x1],_0x28cb('0x3c')));_0x2d8ec2[_0x28cb('0x2c')][_0x28cb('0x17')](()=>{_0x36c842[_0x28cb('0x25')](_0x182121,{'commandName':_0xcf3e3a,'commandParams':[],'formatGroupId':_0x28cb('0x3b')},function(_0x5dbcf7){const _0x2a5ffe=new Set();for(const _0x3ba2c6 of _0x5dbcf7){let _0x2346a2=_0x3ba2c6[_0x28cb('0x8')];for(;_0x2346a2&&_0x2346a2[_0x28cb('0x12')](_0x28cb('0x3b'))>_0x3ba2c6[_0x28cb('0x12')]('listIndent');)_0x2a5ffe[_0x28cb('0x38')](_0x2346a2),_0x2346a2=_0x2346a2[_0x28cb('0x8')];}return Array[_0x28cb('0x29')](_0x2a5ffe);}(_0x32d305));});};}_0x36c842[_0x28cb('0x31')]('numberedList',_0x40a36f(_0x28cb('0xa'))),_0x36c842[_0x28cb('0x31')](_0x28cb('0x20'),_0x40a36f(_0x28cb('0x20'))),_0xdafc2e&&_0x36c842[_0x28cb('0x31')]('todoList',_0x40a36f(_0x28cb('0x1d'))),_0x36c842[_0x28cb('0x31')](_0x28cb('0x24'),_0x3da163(_0x28cb('0x24'))),_0x36c842[_0x28cb('0x31')](_0x28cb('0x2e'),_0x3da163('outdentList')),_0xdafc2e&&_0x36c842[_0x28cb('0x31')](_0x28cb('0x16'),()=>{const _0x1443ce=_0x2d8ec2['commands'][_0x28cb('0x1f')](_0x28cb('0x16')),_0x362573=Array['from'](_0x1443ce[_0x28cb('0x3')]);_0x362573['filter'](_0x2b7d9a=>_0x2b7d9a[_0x28cb('0x12')](_0x28cb('0x35'))!=_0x1443ce[_0x28cb('0x2d')]),_0x2d8ec2[_0x28cb('0x2c')]['change'](()=>{for(const _0xaa6d85 of _0x362573)_0x36c842[_0x28cb('0x25')](_0xaa6d85,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1443ce[_0x28cb('0x2d')]}]});});}),_0x36c842[_0x28cb('0x1e')][_0x28cb('0x1b')](_0x28cb('0x21'),_0x50db46=>_0x2a53c3(_0x5994bb,_0x28cb('0x10'),_0x50db46)),_0x36c842[_0x28cb('0x1e')][_0x28cb('0x34')](_0x122e60=>{const {data:_0x2a0c1a}=_0x122e60;if(_0x2a0c1a){if('numberedList'==_0x2a0c1a['commandName']||_0x28cb('0x20')==_0x2a0c1a['commandName']||'todoList'==_0x2a0c1a[_0x28cb('0x22')])switch(_0x2a0c1a[_0x28cb('0x22')][_0x28cb('0xc')](_0x28cb('0x26'),'')){case _0x28cb('0x7'):return _0x1f6638(_0x2a53c3(_0x5994bb,_0x28cb('0x3a')));case _0x28cb('0x2a'):return _0x1f6638(_0x2a53c3(_0x5994bb,_0x28cb('0x9')));case _0x28cb('0x2'):return _0x1f6638(_0x2a53c3(_0x5994bb,_0x28cb('0x3d')));}if(_0x28cb('0x24')==_0x2a0c1a[_0x28cb('0x22')])return{'type':'format','content':_0x2a53c3(_0x5994bb,'*Indent:*\x20%0',_0x2a53c3(_0x5994bb,_0x28cb('0x10')))};if(_0x28cb('0x2e')==_0x2a0c1a['commandName'])return{'type':_0x28cb('0x15'),'content':_0x2a53c3(_0x5994bb,_0x28cb('0x11'),_0x2a53c3(_0x5994bb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2a0c1a[_0x28cb('0x22')])return _0x2a0c1a[_0x28cb('0x18')][0x0][_0x28cb('0x1')]?{'type':_0x28cb('0x15'),'content':_0x2a53c3(_0x5994bb,_0x28cb('0x30'))}:{'type':'format','content':_0x2a53c3(_0x5994bb,_0x28cb('0x0'))};}function _0x1f6638(_0xe544cd){return{'type':_0x28cb('0x15'),'content':_0x2a53c3(_0x5994bb,_0x28cb('0x13'),_0xe544cd)};}});}}function ne(_0x4fea71){const _0x3e46aa=_0x4fea71[_0x28cb('0x12')]('listIndent');if(0x0==_0x3e46aa)return _0x4fea71;let _0x516911=_0x4fea71;for(;_0x4fea71[_0x28cb('0xf')]&&_0x4fea71['previousSibling']['is'](_0x28cb('0x2f'),_0x28cb('0x21'));){const _0x1b8f11=_0x4fea71['previousSibling'][_0x28cb('0x12')](_0x28cb('0x3b'));if(_0x1b8f11==_0x3e46aa)_0x516911=_0x4fea71[_0x28cb('0xf')];else{if(_0x1b8f11<_0x3e46aa)break;}_0x4fea71=_0x4fea71[_0x28cb('0xf')];}return _0x516911;}function oe(_0x1ae918){const _0xbec55a=[];if(_0x1ae918['is'](_0x28cb('0x2f'),_0x28cb('0x21'))&&_0x1ae918[_0x28cb('0x12')]('listIndent')>0x0){let _0x541f34=_0x1ae918['nextSibling'];for(;_0x541f34&&_0x28cb('0x21')==_0x541f34[_0x28cb('0x2b')]&&_0x541f34[_0x28cb('0x12')](_0x28cb('0x3b'))==_0x1ae918[_0x28cb('0x12')](_0x28cb('0x3b'));)_0xbec55a['push'](_0x541f34),_0x541f34=_0x541f34[_0x28cb('0x8')];}return _0xbec55a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31b4=['listItem','handleListReversedCommand','*Change\x20to:*\x20%0','afterInit','ListPropertiesEditing','replace','_LIST_','commandName','commandParams','numbered','registerDescriptionCallback','getSiblingNodes','has','_descriptionFactory','filter','ELEMENT_','element','_getTranslationKeyForListStyle','listStyle','length','get','*Format:*\x20set\x20order\x20to\x20regular','*Format:*\x20set\x20order\x20to\x20reversed','editor','document','plugins','getSelectedBlocks','createPositionAt','type','flat','ListUtils','listReversed','TrackChangesEditing','handleDescriptions','push','before','map','markMultiRangeBlockFormat','toUpperCase','getListTypeFromListStyleType','change','enableCommand','_getSuggestionBlocksForListStyle','unshift','forward','config','createRange','_getSuggestionBlocks','startIndex','*Format:*\x20set\x20start\x20index\x20to\x20%0','bind','reversed','from','parent','format','backward','getAttribute','model','listStart','selection','styles'];(function(_0x11e7cc,_0x31b4db){const _0x3a584a=function(_0x2bed4e){while(--_0x2bed4e){_0x11e7cc['push'](_0x11e7cc['shift']());}};_0x3a584a(++_0x31b4db);}(_0x31b4,0xaf));const _0x3a58=function(_0x11e7cc,_0x31b4db){_0x11e7cc=_0x11e7cc-0x0;let _0x3a584a=_0x31b4[_0x11e7cc];return _0x3a584a;};import{Plugin as _0x5a7e51}from'ckeditor5/src/core';import{getTranslation as _0x5ca951}from'../utils/common-translations';export default class nt extends _0x5a7e51{[_0x3a58('0xb')](){if(!this[_0x3a58('0x1f')]['plugins'][_0x3a58('0x14')](_0x3a58('0xc')))return;const _0x39ea06=this[_0x3a58('0x1f')][_0x3a58('0x35')][_0x3a58('0x1c')]('list.properties'),_0x171384=this[_0x3a58('0x1f')][_0x3a58('0x21')]['get'](_0x3a58('0x28'));_0x39ea06[_0x3a58('0x7')]&&_0x171384[_0x3a58('0x31')](_0x3a58('0x1a'),this['handleListStyleCommand'][_0x3a58('0x3a')](this)),_0x39ea06[_0x3a58('0x3b')]&&_0x171384[_0x3a58('0x31')](_0x3a58('0x27'),this[_0x3a58('0x9')][_0x3a58('0x3a')](this)),_0x39ea06[_0x3a58('0x38')]&&_0x171384['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x171384[_0x3a58('0x15')][_0x3a58('0x12')](this[_0x3a58('0x29')][_0x3a58('0x3a')](this));}['handleListStyleCommand'](_0x28bd4d,_0x51f7b5={}){const _0x463f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9e058d=this[_0x3a58('0x32')]();this[_0x3a58('0x1f')][_0x3a58('0x4')]['change'](()=>{_0x463f8f[_0x3a58('0x2d')](_0x9e058d,{'commandName':'listStyle','commandParams':[{'type':_0x51f7b5['type']}],'formatGroupId':_0x3a58('0x1a')});});}[_0x3a58('0x9')](_0x540c83,_0x41c05e={}){const _0xf23fd3=this[_0x3a58('0x1f')][_0x3a58('0x21')][_0x3a58('0x1c')]('TrackChangesEditing'),_0x5776ae=this[_0x3a58('0x37')](_0xf746d6=>_0xf746d6['is']('element',_0x3a58('0x8'))&&_0x3a58('0x11')===_0xf746d6[_0x3a58('0x3')]('listType'));if(_0x5776ae['length']<0x1)return;const _0x2b3800=_0x5776ae['map'](_0x6524bd=>this[_0x3a58('0x1f')]['model'][_0x3a58('0x36')](this[_0x3a58('0x1f')]['model'][_0x3a58('0x23')](_0x6524bd,_0x3a58('0x2b')),this['editor'][_0x3a58('0x4')]['createPositionAt'](_0x6524bd,0x0)));this[_0x3a58('0x1f')][_0x3a58('0x4')][_0x3a58('0x30')](()=>{_0xf23fd3[_0x3a58('0x2d')](_0x2b3800,{'commandName':'listReversed','commandParams':[{'reversed':_0x41c05e[_0x3a58('0x3b')]}],'formatGroupId':_0x3a58('0x27')});});}['handleListStartCommand'](_0x3c819a,_0x5087a0={}){const _0x5d42c3=this[_0x3a58('0x1f')][_0x3a58('0x21')][_0x3a58('0x1c')](_0x3a58('0x28')),_0x155e5e=this['_getSuggestionBlocks'](_0x571796=>_0x571796['is'](_0x3a58('0x18'),'listItem')&&_0x3a58('0x11')===_0x571796[_0x3a58('0x3')]('listType'));if(_0x155e5e[_0x3a58('0x1b')]<0x1)return;const _0x87542f=_0x155e5e[_0x3a58('0x2c')](_0x926144=>this[_0x3a58('0x1f')]['model'][_0x3a58('0x36')](this['editor']['model'][_0x3a58('0x23')](_0x926144,_0x3a58('0x2b')),this['editor'][_0x3a58('0x4')]['createPositionAt'](_0x926144,0x0)));this['editor'][_0x3a58('0x4')]['change'](()=>{_0x5d42c3['markMultiRangeBlockFormat'](_0x87542f,{'commandName':_0x3a58('0x5'),'commandParams':[{'startIndex':_0x5087a0[_0x3a58('0x38')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x42ab91){const _0x2c6d68=this[_0x3a58('0x1f')]['locale'],{data:_0x2c87cf}=_0x42ab91;if(!_0x2c87cf)return;let _0x50c082,_0x2f721c;switch(_0x2c87cf[_0x3a58('0xf')]){case'listStyle':_0x50c082=_0x3a58('0xa'),_0x2f721c={'type':_0x3a58('0x1'),'content':_0x5ca951(_0x2c6d68,_0x50c082,_0x5ca951(_0x2c6d68,this['_getTranslationKeyForListStyle'](_0x2c87cf[_0x3a58('0x10')][0x0][_0x3a58('0x24')])))};break;case _0x3a58('0x27'):_0x50c082=_0x2c87cf[_0x3a58('0x10')][0x0]['reversed']?_0x3a58('0x1e'):_0x3a58('0x1d'),_0x2f721c={'type':_0x3a58('0x1'),'content':_0x5ca951(_0x2c6d68,_0x50c082)};break;case'listStart':_0x50c082=_0x3a58('0x39'),_0x2f721c={'type':'format','content':_0x5ca951(_0x2c6d68,_0x50c082,_0x2c87cf[_0x3a58('0x10')][0x0][_0x3a58('0x38')])};}return _0x2f721c;}['_getSuggestionBlocksForListStyle'](){var _0x7c14f5,_0xf6fdf4,_0x499566,_0x3a6330;const _0x2af5f4=this[_0x3a58('0x1f')]['plugins'][_0x3a58('0x1c')](_0x3a58('0x26'));let _0x4f63fd=Array[_0x3a58('0x3c')](this[_0x3a58('0x1f')][_0x3a58('0x4')][_0x3a58('0x20')]['selection']['getSelectedBlocks']());return(null===(_0x7c14f5=_0x4f63fd[0x0])||void 0x0===_0x7c14f5?void 0x0:_0x7c14f5['is']('element',_0x3a58('0x8')))&&_0x4f63fd[_0x3a58('0x33')](..._0x2af5f4[_0x3a58('0x13')](this['editor'][_0x3a58('0x4')][_0x3a58('0x20')]['selection']['getFirstPosition'](),_0x3a58('0x2'))),(null===(_0xf6fdf4=_0x4f63fd[_0x4f63fd[_0x3a58('0x1b')]-0x1])||void 0x0===_0xf6fdf4?void 0x0:_0xf6fdf4['is'](_0x3a58('0x18'),_0x3a58('0x8')))&&_0x4f63fd[_0x3a58('0x2a')](..._0x2af5f4[_0x3a58('0x13')](this[_0x3a58('0x1f')]['model'][_0x3a58('0x20')][_0x3a58('0x6')]['getLastPosition'](),'forward')),_0x4f63fd=[...new Set(_0x4f63fd)],(null===(_0x3a6330=null===(_0x499566=this[_0x3a58('0x1f')]['model'][_0x3a58('0x20')][_0x3a58('0x6')]['getFirstPosition']())||void 0x0===_0x499566?void 0x0:_0x499566[_0x3a58('0x0')])||void 0x0===_0x3a6330?void 0x0:_0x3a6330['is'](_0x3a58('0x18'),'listItem'))&&(_0x4f63fd=_0x4f63fd[_0x3a58('0x16')](_0x42aa41=>_0x42aa41['is'](_0x3a58('0x18'),_0x3a58('0x8')))),_0x4f63fd;}[_0x3a58('0x37')](_0x54c627){const _0x3d1bc5=this[_0x3a58('0x1f')][_0x3a58('0x21')][_0x3a58('0x1c')](_0x3a58('0x26'));let _0x2279ab=Array[_0x3a58('0x3c')](this[_0x3a58('0x1f')][_0x3a58('0x4')][_0x3a58('0x20')][_0x3a58('0x6')][_0x3a58('0x22')]())[_0x3a58('0x16')](_0x54c627)[_0x3a58('0x2c')](_0x9e00a3=>{const _0x1cd6e8=this[_0x3a58('0x1f')][_0x3a58('0x4')][_0x3a58('0x23')](_0x9e00a3,0x0);return[..._0x3d1bc5['getSiblingNodes'](_0x1cd6e8,'backward'),..._0x3d1bc5[_0x3a58('0x13')](_0x1cd6e8,_0x3a58('0x34'))];})[_0x3a58('0x25')]();return _0x2279ab=[...new Set(_0x2279ab)],_0x2279ab;}[_0x3a58('0x19')](_0x3e0132){return _0x3a58('0x17')+this[_0x3a58('0x1f')]['plugins'][_0x3a58('0x1c')]('ListUtils')[_0x3a58('0x2f')](_0x3e0132)[_0x3a58('0x2e')]()+_0x3a58('0xe')+_0x3e0132[_0x3a58('0x2e')]()[_0x3a58('0xd')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x528b=['get','editor','options','data','div','media','mediaEmbed','showSuggestionHighlights','conversion','plugins','downcastDispatcher','attribute:url:media','ELEMENT_MEDIA','high','stop','createEmptyElement','TrackChangesEditing','afterInit','_descriptionFactory','dataDowncast','MediaEmbedEditing','for'];(function(_0x1c44c1,_0x528b86){const _0x3b6ad0=function(_0xc289cd){while(--_0xc289cd){_0x1c44c1['push'](_0x1c44c1['shift']());}};_0x3b6ad0(++_0x528b86);}(_0x528b,0xda));const _0x3b6a=function(_0x1c44c1,_0x528b86){_0x1c44c1=_0x1c44c1-0x0;let _0x3b6ad0=_0x528b[_0x1c44c1];return _0x3b6ad0;};import{Plugin as _0x2d3266}from'ckeditor5/src/core';import{getTranslation as _0x45d7e2}from'../utils/common-translations';export default class ot extends _0x2d3266{[_0x3b6a('0x13')](){const _0x111c0c=this[_0x3b6a('0x3')];if(!_0x111c0c['plugins']['has'](_0x3b6a('0x0')))return;const _0x329e07=_0x111c0c[_0x3b6a('0xb')][_0x3b6a('0x2')](_0x3b6a('0x12')),_0x1bcdfb=_0x111c0c['locale'];_0x329e07['enableCommand'](_0x3b6a('0x8')),_0x329e07[_0x3b6a('0x14')]['registerElementLabel'](_0x3b6a('0x7'),_0x5bfccd=>_0x45d7e2(_0x1bcdfb,_0x3b6a('0xe'),_0x5bfccd)),_0x111c0c[_0x3b6a('0xa')][_0x3b6a('0x1')](_0x3b6a('0x15'))['elementToElement']({'model':_0x3b6a('0x7'),'view':(_0x460c01,{writer:_0x9f6176,options:_0x3dea89})=>{if(_0x3dea89[_0x3b6a('0x9')])return _0x9f6176[_0x3b6a('0x11')](_0x3b6a('0x6'));},'converterPriority':'high'}),_0x111c0c[_0x3b6a('0x5')][_0x3b6a('0xc')]['on'](_0x3b6a('0xd'),(_0x42c5e1,_0x2eec8b,_0x1aeb51)=>{_0x1aeb51[_0x3b6a('0x4')][_0x3b6a('0x9')]&&_0x42c5e1[_0x3b6a('0x10')]();},{'priority':_0x3b6a('0xf')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cbc=['afterInit','editor','has','plugins','get','enableCommand','MentionEditing','mention','TrackChangesEditing'];(function(_0x5ca3c8,_0x2cbcf4){const _0x1989a3=function(_0x30888e){while(--_0x30888e){_0x5ca3c8['push'](_0x5ca3c8['shift']());}};_0x1989a3(++_0x2cbcf4);}(_0x2cbc,0x1e9));const _0x1989=function(_0x5ca3c8,_0x2cbcf4){_0x5ca3c8=_0x5ca3c8-0x0;let _0x1989a3=_0x2cbc[_0x5ca3c8];return _0x1989a3;};import{Plugin as _0x4093fc}from'ckeditor5/src/core';export default class rt extends _0x4093fc{[_0x1989('0x6')](){const _0x3a3f94=this[_0x1989('0x7')];_0x3a3f94[_0x1989('0x0')][_0x1989('0x8')](_0x1989('0x3'))&&_0x3a3f94['plugins'][_0x1989('0x1')](_0x1989('0x5'))[_0x1989('0x2')](_0x1989('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x156e=['_descriptionFactory','enableCommand','registerElementLabel','plugins','has','TrackChangesEditing','get','pageBreak','ELEMENT_PAGE_BREAK','locale'];(function(_0x217eff,_0x156ed0){const _0x5faae1=function(_0x1d6bba){while(--_0x1d6bba){_0x217eff['push'](_0x217eff['shift']());}};_0x5faae1(++_0x156ed0);}(_0x156e,0xf0));const _0x5faa=function(_0x217eff,_0x156ed0){_0x217eff=_0x217eff-0x0;let _0x5faae1=_0x156e[_0x217eff];return _0x5faae1;};import{Plugin as _0x4b9e6d}from'ckeditor5/src/core';import{getTranslation as _0x3952d0}from'../utils/common-translations';export default class at extends _0x4b9e6d{['afterInit'](){const _0x53d25=this['editor'];if(!_0x53d25[_0x5faa('0x3')][_0x5faa('0x4')]('PageBreakEditing'))return;_0x53d25[_0x5faa('0x3')][_0x5faa('0x6')](_0x5faa('0x5'))[_0x5faa('0x1')]('pageBreak');const _0x108294=_0x53d25[_0x5faa('0x3')][_0x5faa('0x6')]('TrackChangesEditing'),_0x56fcf8=_0x53d25[_0x5faa('0x9')];_0x108294[_0x5faa('0x0')][_0x5faa('0x2')](_0x5faa('0x7'),_0x1290bc=>_0x3952d0(_0x56fcf8,_0x5faa('0x8'),_0x1290bc));}}
|