@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230831.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/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/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.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +29 -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 _0x2a91=['*Set\x20highlight:*\x20%0','model','find','afterInit','config','*Remove\x20highlight*','item','toLowerCase','format','selection','markInlineFormat','title','formatInline','push','editor','registerDescriptionCallback','TrackChangesEditing','plugins','isCollapsed','getLastMatchingPosition','commandParams','highlight','hasAttribute','createRange','commandName','change','getRanges','getFirstPosition','get','locale','FORMAT_HIGHLIGHT','value','getAttribute'];(function(_0x1341a7,_0x2a913e){const _0x42ac23=function(_0x21706e){while(--_0x21706e){_0x1341a7['push'](_0x1341a7['shift']());}};_0x42ac23(++_0x2a913e);}(_0x2a91,0xb4));const _0x42ac=function(_0x1341a7,_0x2a913e){_0x1341a7=_0x1341a7-0x0;let _0x42ac23=_0x2a91[_0x1341a7];return _0x42ac23;};import{Plugin as _0x16e46a}from'ckeditor5/src/core';import{getTranslation as _0x28f2ed}from'../utils/common-translations';import{getRangesWithAttribute as _0x40b23d}from'./utils';export default class K extends _0x16e46a{[_0x42ac('0x15')](){const _0x1635e7=this[_0x42ac('0x20')];if(!_0x1635e7[_0x42ac('0x2')]['has']('HighlightEditing'))return;const _0x3c14ae=_0x1635e7[_0x42ac('0x2')][_0x42ac('0xd')](_0x42ac('0x1'));_0x3c14ae['enableCommand'](_0x42ac('0x6'),(_0x2282c8,_0x1c4883={})=>{const _0x208575=_0x1635e7['model']['document'][_0x42ac('0x1b')],_0x12f843=_0x208575['getAttribute'](_0x42ac('0x6'));let _0x4c208a=_0x1c4883[_0x42ac('0x10')],_0x251415=[];if(_0x208575[_0x42ac('0x3')]){const _0x88679e=_0x208575[_0x42ac('0xc')]();if(!_0x208575[_0x42ac('0x7')]('highlight'))return void _0x2282c8(_0x1c4883);{const _0x42ea41=_0x3d51f3=>_0x3d51f3[_0x42ac('0x18')][_0x42ac('0x11')](_0x42ac('0x6'))===_0x12f843,_0x283b7e=_0x88679e['getLastMatchingPosition'](_0x42ea41,{'direction':'backward'}),_0xfe67ae=_0x88679e[_0x42ac('0x4')](_0x42ea41);_0x251415=[_0x1635e7[_0x42ac('0x13')][_0x42ac('0x8')](_0x283b7e,_0xfe67ae)],_0x4c208a==_0x12f843&&(_0x4c208a=null);}}else for(const _0x4536f9 of _0x208575[_0x42ac('0xb')]())_0x4c208a?_0x251415['push'](_0x4536f9):_0x251415[_0x42ac('0x1f')](..._0x40b23d('highlight',_0x4536f9,_0x1635e7[_0x42ac('0x13')]));_0x1635e7[_0x42ac('0x13')][_0x42ac('0xa')](()=>{for(const _0x1969c1 of _0x251415)_0x3c14ae[_0x42ac('0x1c')](_0x1969c1,{'commandName':_0x42ac('0x6'),'commandParams':[{'value':_0x4c208a}]});});});const _0x1e3bfe=_0x1635e7[_0x42ac('0xe')];_0x3c14ae['_descriptionFactory'][_0x42ac('0x0')](_0x9b1cef=>{const {type:_0x15cce2,data:_0x5d77e6}=_0x9b1cef;if(_0x42ac('0x1e')==_0x15cce2&&_0x5d77e6&&_0x42ac('0x6')==_0x5d77e6[_0x42ac('0x9')]){const _0x565baf=_0x1e3bfe['t'],_0x95e3e9=_0x5d77e6[_0x42ac('0x5')][0x0][_0x42ac('0x10')];if(_0x95e3e9){const _0x2608c8=_0x1635e7[_0x42ac('0x16')][_0x42ac('0xd')]('highlight.options')[_0x42ac('0x14')](_0x32e072=>_0x32e072['model']==_0x95e3e9),_0x312886=_0x565baf(_0x2608c8[_0x42ac('0x1d')])[_0x42ac('0x19')]();return{'type':_0x42ac('0x1a'),'content':_0x28f2ed(_0x1e3bfe,_0x42ac('0x12'),_0x312886),'color':{'value':_0x2608c8['color'],'title':_0x2608c8[_0x42ac('0x1d')]}};}return{'type':_0x42ac('0x1a'),'content':_0x28f2ed(_0x1e3bfe,_0x42ac('0x17'),_0x28f2ed(_0x1e3bfe,_0x42ac('0xf')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3519=['insert','dataDowncast','afterInit','_descriptionFactory','high','get','addClass','createPositionAt','editor','horizontalLine','HorizontalLineEditing','plugins','createContainerElement','locale','ELEMENT_HORIZONTAL_LINE','createEmptyElement','registerElementLabel','conversion','for','div','enableCommand','showSuggestionHighlights','elementToStructure'];(function(_0x2b3937,_0x351968){const _0x524b06=function(_0x15181a){while(--_0x15181a){_0x2b3937['push'](_0x2b3937['shift']());}};_0x524b06(++_0x351968);}(_0x3519,0x119));const _0x524b=function(_0x2b3937,_0x351968){_0x2b3937=_0x2b3937-0x0;let _0x524b06=_0x3519[_0x2b3937];return _0x524b06;};import{Plugin as _0x33d104}from'ckeditor5/src/core';import{getTranslation as _0x49ac8e}from'../utils/common-translations';export default class Q extends _0x33d104{[_0x524b('0x14')](){const _0x403dde=this[_0x524b('0x3')];if(!_0x403dde[_0x524b('0x6')]['has'](_0x524b('0x5')))return;_0x403dde['plugins'][_0x524b('0x0')]('TrackChangesEditing')[_0x524b('0xf')]('horizontalLine');const _0x1263e3=_0x403dde[_0x524b('0x6')][_0x524b('0x0')]('TrackChangesEditing'),_0x4468dd=_0x403dde[_0x524b('0x8')];_0x1263e3[_0x524b('0x15')][_0x524b('0xb')](_0x524b('0x4'),_0x446255=>_0x49ac8e(_0x4468dd,_0x524b('0x9'),_0x446255)),_0x403dde[_0x524b('0xc')][_0x524b('0xd')](_0x524b('0x13'))[_0x524b('0x11')]({'model':'horizontalLine','view':(_0x5069e9,{writer:_0x5e0e57,options:_0x532768})=>{if(!_0x532768[_0x524b('0x10')])return null;const _0x439644=_0x5e0e57[_0x524b('0x7')](_0x524b('0xe')),_0x5a9ec5=_0x5e0e57[_0x524b('0xa')]('hr');return _0x5e0e57[_0x524b('0x1')]('ck-horizontal-line',_0x439644),_0x5e0e57[_0x524b('0x12')](_0x5e0e57[_0x524b('0x2')](_0x439644,0x0),_0x5a9ec5),_0x439644;},'converterPriority':_0x524b('0x16')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d63=['view','markBlockFormat','format','htmlEmbed','selection','has','registerElementLabel','registerDescriptionCallback','TrackChangesEditing','getAttribute','enableCommand','HtmlEmbed','_descriptionFactory','get','ELEMENT_HTML_EMBED','getSelectedElement','model','rawHtml','document','change','*Change\x20%0\x20content*','afterInit','editor'];(function(_0x10e23c,_0x4d6305){const _0x5e9098=function(_0x13084f){while(--_0x13084f){_0x10e23c['push'](_0x10e23c['shift']());}};_0x5e9098(++_0x4d6305);}(_0x4d63,0xaa));const _0x5e90=function(_0x10e23c,_0x4d6305){_0x10e23c=_0x10e23c-0x0;let _0x5e9098=_0x4d63[_0x10e23c];return _0x5e9098;};import{Plugin as _0x5bf7a3}from'ckeditor5/src/core';import{getTranslation as _0x1cb72d}from'../utils/common-translations';export default class V extends _0x5bf7a3{[_0x5e90('0xc')](){const _0xf8de4c=this[_0x5e90('0xd')];if(!_0xf8de4c['plugins'][_0x5e90('0x13')](_0x5e90('0x2')))return;const _0x46aa90=_0xf8de4c['plugins'][_0x5e90('0x4')](_0x5e90('0x16')),_0x20ed36=_0xf8de4c['locale'],_0x46a7b1=_0xf8de4c['editing'][_0x5e90('0xe')][_0x5e90('0x9')][_0x5e90('0x12')];_0x46aa90[_0x5e90('0x3')][_0x5e90('0x14')](_0x5e90('0x8'),_0x5573fe=>_0x1cb72d(_0x20ed36,_0x5e90('0x5'),_0x5573fe)),_0xf8de4c['plugins'][_0x5e90('0x4')](_0x5e90('0x16'))[_0x5e90('0x1')](_0x5e90('0x11'),(_0x2cc703,_0x17447f)=>{const _0x198fac=_0xf8de4c[_0x5e90('0x7')],_0x24e4f7=_0x198fac[_0x5e90('0x9')][_0x5e90('0x12')];_0x198fac[_0x5e90('0xa')](()=>{const _0x12f5ea=function(_0x1c663d){const _0x55f8f8=_0x1c663d['getSelectedElement']();if(_0x55f8f8&&_0x55f8f8['is']('element',_0x5e90('0x8')))return _0x1c663d[_0x5e90('0x6')]();return null;}(_0x24e4f7);if(!_0x12f5ea)return void _0x2cc703(null);const _0x3c5945=_0x12f5ea[_0x5e90('0x0')]('value')||'';if(void 0x0===_0x17447f)return;if(_0x17447f===_0x3c5945)return;_0x46aa90[_0x5e90('0xf')](_0x12f5ea,{'commandName':_0x5e90('0x11'),'commandParams':[_0x17447f]}),_0x46a7b1[_0x5e90('0x6')]()['getCustomProperty']('rawHtmlApi')['cancel']();});}),_0x46aa90['_descriptionFactory'][_0x5e90('0x15')](_0x457797=>{const {data:_0x6e64d4}=_0x457797;if(_0x6e64d4&&_0x5e90('0x11')==_0x6e64d4['commandName']){const _0x316e2e=_0x1cb72d(_0x20ed36,_0x5e90('0x5'));return{'type':_0x5e90('0x10'),'content':_0x1cb72d(_0x20ed36,_0x5e90('0xb'),_0x316e2e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f51=['get','nodeBefore','getFirstRange','has','hasAttribute','toNext','ImageBlockEditing','removeObject','ImageStyleEditing','*Set\x20image\x20text\x20alternative:*\x20%0','_suggestionFactory','value','uploadImage','getAttribute','imageCaption','commandParams','find','isEqual','name','forEach','getContainedElement','suggestion','ImageInlineEditing','forward','filter','afterInit','getSuggestion','imageTypeBlock','isBefore','discardSuggestion','length','ImageTextAlternativeEditing','getChangedMarkers','chain','shouldConvertImageType','TrackChangesEditing','_descriptionFactory','element','Inline\x20image\x20to\x20block\x20image','fromPosition','createRangeOn','convertInlineImageToBlock','head','imageStyle','_splitMarkerName','newValue','start','accept','commands','nodeAfter','backward','formatInline','author','newRange','registerPostFixer','addObject','selection','Users','getClosestSelectedImageElement','registerDescriptionCallback','format','subType','hasSuggestion','ELEMENT_INLINE_IMAGE','imageTextAlternative','*Format:*\x20%0','convertBlockImageToInline','ELEMENT_CAPTION','getCaptionFromImageModelElement','*Set\x20image\x20width:*\x20%0','imageStylePostApply','join','next','ImageResize','side','Block\x20image\x20to\x20inline\x20image','isBlockImage','change','ImageUtils','isIntersecting','resizeImage','toggleImageCaption','caption','plugins','imageTypeInline','markBlockFormat','*Reset\x20image\x20width*','getSuggestions','isOwn','type','enableCommand','isInContent','commandName','getSuggestionCallback','formatBlock','discard','refresh','schema','width','model','findIndex','toLowerCase','insertion','registerCustomCallback','imageBlock','markInsertion','imageInline','*Remove\x20image\x20text\x20alternative*','ImageEditing','toPrevious','isCollapsed','document','previous','ImageCaptionEditing','title','createRange','ELEMENT_IMAGE','registerElementLabel','imageStylePreApply','end'];(function(_0xbcb205,_0x3f519c){const _0x29662b=function(_0x3e093b){while(--_0x3e093b){_0xbcb205['push'](_0xbcb205['shift']());}};_0x29662b(++_0x3f519c);}(_0x3f51,0x95));const _0x2966=function(_0xbcb205,_0x3f519c){_0xbcb205=_0xbcb205-0x0;let _0x29662b=_0x3f51[_0xbcb205];return _0x29662b;};import{Plugin as _0x3c1976}from'ckeditor5/src/core';import{LivePosition as _0x36460c}from'ckeditor5/src/engine';import{uid as _0x331475}from'ckeditor5/src/utils';import{getTranslation as _0x6db017}from'../utils/common-translations';export default class X extends _0x3c1976{[_0x2966('0x74')](){const _0x541f73=this['editor'];if(!_0x541f73[_0x2966('0x36')][_0x2966('0x5e')](_0x2966('0x4f')))return;const _0x329575=_0x541f73[_0x2966('0x36')][_0x2966('0x5b')](_0x2966('0x6')),_0x11d5ea=_0x541f73[_0x2966('0x36')][_0x2966('0x5b')](_0x2966('0x31')),_0x51a5e9={},_0x2632a4=_0x541f73['locale'];if(_0x329575[_0x2966('0x3d')]('insertImage'),_0x329575[_0x2966('0x7')][_0x2966('0x58')](_0x2966('0x4b'),_0x3b66e6=>_0x6db017(_0x2632a4,_0x2966('0x57'),_0x3b66e6)),_0x329575[_0x2966('0x7')][_0x2966('0x58')](_0x2966('0x4d'),_0x5520fa=>_0x6db017(_0x2632a4,_0x2966('0x22'),_0x5520fa)),_0x329575[_0x2966('0x7')]['registerElementLabel']('caption',()=>_0x6db017(_0x2632a4,_0x2966('0x26'))),_0x541f73[_0x2966('0x36')][_0x2966('0x5e')]('ImageUploadEditing')&&_0x329575[_0x2966('0x3d')](_0x2966('0x67')),_0x541f73[_0x2966('0x36')][_0x2966('0x5e')](_0x2966('0x61'))&&_0x541f73['plugins']['has'](_0x2966('0x71'))&&(_0x329575[_0x2966('0x3d')]('imageTypeInline',(_0x5f27aa,_0xc94ae8)=>{const _0x17822b=_0x11d5ea[_0x2966('0x1d')](_0x541f73['model'][_0x2966('0x52')][_0x2966('0x1b')]);_0x541f73[_0x2966('0x46')]['change'](()=>{_0x329575[_0x2966('0x38')](_0x17822b,{'commandName':_0x2966('0x37'),'commandParams':[_0xc94ae8]},[],_0x2966('0x25'));});}),_0x329575['enableCommand'](_0x2966('0x76'),(_0x4495b2,_0x4b29db)=>{_0x541f73['model'][_0x2966('0x30')](_0x26a35a=>{let _0x497fb3=_0x11d5ea[_0x2966('0x1d')](_0x541f73['model'][_0x2966('0x52')][_0x2966('0x1b')]),_0x51d640=_0x26a35a[_0x2966('0xb')](_0x497fb3);const _0x564f8b=_0x36460c[_0x2966('0xa')](_0x51d640[_0x2966('0x11')],_0x2966('0x50')),_0x2e8fed=_0x36460c['fromPosition'](_0x51d640['end'],_0x2966('0x60'));_0x329575['forceDefaultExecution'](()=>_0x4495b2(_0x4b29db)),_0x497fb3=_0x11d5ea[_0x2966('0x1d')](_0x541f73[_0x2966('0x46')][_0x2966('0x52')][_0x2966('0x1b')]),_0x51d640=_0x26a35a[_0x2966('0xb')](_0x497fb3);const _0x4337ba=_0x26a35a['createRange'](_0x564f8b,_0x2e8fed);_0x564f8b['detach'](),_0x2e8fed['detach'](),_0x329575['markBlockFormat'](_0x497fb3,{'commandName':_0x2966('0x37'),'commandParams':[]},[],_0x2966('0xc')),_0x4337ba[_0x2966('0x11')][_0x2966('0x77')](_0x51d640[_0x2966('0x11')])&&_0x329575[_0x2966('0x4c')](_0x26a35a['createRange'](_0x4337ba['start'],_0x51d640[_0x2966('0x11')]),_0x2966('0xc')),_0x51d640[_0x2966('0x5a')][_0x2966('0x77')](_0x4337ba[_0x2966('0x5a')])&&_0x329575[_0x2966('0x4c')](_0x26a35a[_0x2966('0x56')](_0x51d640[_0x2966('0x5a')],_0x4337ba['end']),_0x2966('0xc'));});}),_0x329575[_0x2966('0x65')][_0x2966('0x4a')]('formatBlock',_0x2966('0xc'),_0x2966('0x2a'),()=>{}),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x41'),_0x2966('0xc'),_0x2966('0x12'),()=>{}),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x41'),'convertInlineImageToBlock','discard',_0x329575[_0x2966('0x65')][_0x2966('0x40')](_0x2966('0x41'),'',_0x2966('0x12'))),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x49'),_0x2966('0xc'),'join',()=>{}),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x49'),'convertInlineImageToBlock','discard',([_0x1b2246])=>{const _0xb5ac82=_0x329575[_0x2966('0x65')][_0x2966('0x40')]('insertion','',_0x2966('0x42'));let _0x1862de=_0x1b2246[_0x2966('0x11')],_0x5a0ae4=_0x1b2246[_0x2966('0x5a')];const _0xa094ac=_0x541f73['model'][_0x2966('0x44')]['getNearestSelectionRange'](_0x1862de,_0x2966('0x15')),_0x485b60=_0x541f73['model'][_0x2966('0x44')]['getNearestSelectionRange'](_0x5a0ae4,_0x2966('0x72'));_0xa094ac['isCollapsed']&&(_0x1862de=_0xa094ac[_0x2966('0x11')]),_0x485b60[_0x2966('0x51')]&&(_0x5a0ae4=_0x485b60[_0x2966('0x5a')]),_0xb5ac82([_0x541f73[_0x2966('0x46')][_0x2966('0x56')](_0x1862de,_0x5a0ae4)]);}),_0x329575[_0x2966('0x65')]['registerCustomCallback'](_0x2966('0x41'),_0x2966('0xc'),_0x2966('0x4'),_0x3fc449),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x49'),'convertInlineImageToBlock',_0x2966('0x4'),_0x3fc449)),_0x541f73['plugins']['has'](_0x2966('0x54'))&&(_0x329575[_0x2966('0x3d')](_0x2966('0x34'),(_0x344790,_0x510693)=>{const _0x4dfc39=_0x541f73[_0x2966('0x36')]['get']('ImageCaptionUtils');let _0x1d133c=_0x11d5ea[_0x2966('0x1d')](_0x541f73['model']['document'][_0x2966('0x1b')]),_0x23db1b=_0x4dfc39[_0x2966('0x27')](_0x1d133c);_0x541f73[_0x2966('0x46')][_0x2966('0x30')](()=>{if(_0x23db1b)return void _0x329575['markDeletion'](_0x541f73[_0x2966('0x46')][_0x2966('0xb')](_0x23db1b));const _0x226112=_0x11d5ea[_0x2966('0x2f')](_0x1d133c);_0x344790(_0x510693),_0x1d133c=_0x11d5ea[_0x2966('0x1d')](_0x541f73['model'][_0x2966('0x52')][_0x2966('0x1b')]),_0x23db1b=_0x4dfc39[_0x2966('0x27')](_0x1d133c),_0x329575[_0x2966('0x4c')](_0x541f73[_0x2966('0x46')][_0x2966('0xb')](_0x23db1b),_0x226112?null:_0x2966('0x69'));});}),_0x329575[_0x2966('0x65')]['registerCustomCallback'](_0x2966('0x49'),_0x2966('0x69'),'chain',_0x3fc449)),_0x541f73[_0x2966('0x36')][_0x2966('0x5e')](_0x2966('0x63'))){_0x329575[_0x2966('0x3d')]('imageStyle',(_0x36d2e9,_0xfb51bf)=>{const _0x11f6fb=_0x541f73[_0x2966('0x36')][_0x2966('0x5b')](_0x2966('0x1c'))['me'],_0x28431d=_0x541f73[_0x2966('0x13')][_0x2966('0x5b')](_0x2966('0xe'));let _0x136fd3=_0x11d5ea[_0x2966('0x1d')](_0x541f73[_0x2966('0x46')]['document'][_0x2966('0x1b')]),_0x28d2d8=_0x541f73['model'][_0x2966('0xb')](_0x136fd3),_0x2b8bc1=_0x28431d[_0x2966('0x66')];if(_0x2b8bc1==_0xfb51bf[_0x2966('0x66')])return;const _0x3f20c8={'commandName':_0x2966('0xe'),'commandParams':[_0xfb51bf],'formatGroupId':_0x331475()};_0x541f73[_0x2966('0x46')]['change'](()=>{if(_0x329575[_0x2966('0x3a')]()[_0x2966('0x73')](_0x35f220=>_0x35f220[_0x2966('0x3e')]&&_0x11f6fb==_0x35f220[_0x2966('0x17')]&&(_0x2966('0x41')==_0x35f220[_0x2966('0x3c')]||'formatInline'==_0x35f220['type'])&&(_0x2966('0x59')==_0x35f220[_0x2966('0x20')]||'imageStylePostApply'==_0x35f220[_0x2966('0x20')])&&_0x35f220[_0x2966('0x5d')]()[_0x2966('0x6c')](_0x28d2d8))[_0x2966('0x6e')](_0x1a83fd=>_0x329575[_0x2966('0x0')](_0x1a83fd[_0x2966('0xd')])),_0x136fd3=_0x11d5ea[_0x2966('0x1d')](_0x541f73[_0x2966('0x46')]['document'][_0x2966('0x1b')]),_0x28d2d8=_0x541f73[_0x2966('0x46')]['createRangeOn'](_0x136fd3),_0x28431d[_0x2966('0x43')](),_0x541f73[_0x2966('0x13')][_0x2966('0x5b')](_0x2966('0x37'))[_0x2966('0x43')](),_0x541f73['commands'][_0x2966('0x5b')](_0x2966('0x76'))['refresh'](),_0x2b8bc1=_0x28431d['value'],_0x2b8bc1!=_0xfb51bf[_0x2966('0x66')])return _0x11d5ea['isInlineImage'](_0x136fd3)&&_0x28431d[_0x2966('0x5')](_0xfb51bf['value'],_0x136fd3)?(_0x36d2e9(_0xfb51bf),_0x136fd3=_0x11d5ea[_0x2966('0x1d')](_0x541f73[_0x2966('0x46')][_0x2966('0x52')][_0x2966('0x1b')]),void _0x329575[_0x2966('0x38')](_0x136fd3,{..._0x3f20c8,'commandReversedParams':[{'value':_0x2b8bc1||null}]},[],_0x2966('0x59'))):void(_0x11d5ea[_0x2966('0x2f')](_0x136fd3)?_0x329575[_0x2966('0x38')](_0x136fd3,_0x3f20c8,[],_0x2966('0x29')):_0x329575['markInlineFormat'](_0x28d2d8,_0x3f20c8,_0x2966('0x29')));});});for(const _0x5aa66e of _0x541f73[_0x2966('0x36')][_0x2966('0x5b')](_0x2966('0x63'))['normalizedStyles'])_0x51a5e9[_0x5aa66e[_0x2966('0x6d')]]=_0x5aa66e[_0x2966('0x55')][_0x2966('0x48')]();_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x41'),_0x2966('0x59'),'join',()=>{}),_0x329575[_0x2966('0x65')]['registerCustomCallback'](_0x2966('0x41'),_0x2966('0x29'),'join',()=>{}),_0x329575[_0x2966('0x65')][_0x2966('0x4a')](_0x2966('0x16'),_0x2966('0x29'),_0x2966('0x2a'),()=>{}),_0x329575['_suggestionFactory']['registerCustomCallback'](_0x2966('0x41'),_0x2966('0x59'),_0x2966('0x12'),()=>{}),_0x329575['_suggestionFactory'][_0x2966('0x4a')]('formatBlock','imageStylePreApply',_0x2966('0x42'),(_0x538239,_0x5a23f4)=>{_0x329575[_0x2966('0x65')][_0x2966('0x40')]('formatBlock','',_0x2966('0x12'))(_0x538239,{'commandName':_0x5a23f4[_0x2966('0x3f')],'commandParams':_0x5a23f4['commandReversedParams']});}),_0x329575[_0x2966('0x65')]['registerCustomCallback']('formatBlock',_0x2966('0x59'),_0x2966('0x4'),_0x3fc449);}const _0x52d572=[{'type':_0x2966('0x41'),'subType':_0x2966('0x59')},{'type':_0x2966('0x49'),'subType':_0x2966('0x69')},{'type':_0x2966('0x41'),'subType':_0x2966('0xc')},{'type':_0x2966('0x49'),'subType':'convertInlineImageToBlock'}];function _0xfd6b4(_0x284b5e,_0x5e83d9){const _0x196b7f=_0x52d572[_0x2966('0x47')](({type:_0x421c88,subType:_0x3e2f0d})=>_0x284b5e['type']==_0x421c88&&_0x284b5e[_0x2966('0x20')]==_0x3e2f0d),_0x3cf91a=_0x52d572[_0x2966('0x47')](({type:_0x498c88,subType:_0x2efe16})=>_0x5e83d9['type']==_0x498c88&&_0x5e83d9[_0x2966('0x20')]==_0x2efe16);if(_0x196b7f<0x0||_0x3cf91a<0x0)return!0x1;const _0x3b57d1=_0x284b5e[_0x2966('0x5d')](),_0x24e9ad=_0x5e83d9[_0x2966('0x5d')]();if((0x0==_0x196b7f||0x1==_0x196b7f)&&0x2==_0x3cf91a&&_0x3b57d1[_0x2966('0x32')](_0x24e9ad))return!0x0;if(0x2==_0x196b7f&&0x3==_0x3cf91a){const _0x29b8f1=_0x329575['_findSuggestions'](_0x3b57d1,_0x2966('0x49'))['filter'](({suggestion:_0x55a55f,meta:_0x2a811c})=>_0x2a811c[_0x2966('0x3b')]&&_0x2966('0xc')==_0x55a55f[_0x2966('0x20')]);if(_0x29b8f1[_0x2966('0x1')]>0x1&&_0x24e9ad['end'][_0x2966('0x6c')](_0x3b57d1[_0x2966('0x11')]))return!0x0;if(0x1==_0x29b8f1['length']&&(_0x3b57d1[_0x2966('0x11')]['isEqual'](_0x24e9ad[_0x2966('0x5a')])||_0x3b57d1['end'][_0x2966('0x6c')](_0x24e9ad[_0x2966('0x11')])))return!0x0;}if(0x3==_0x196b7f&&0x3==_0x3cf91a&&_0x3b57d1['start'][_0x2966('0x77')](_0x24e9ad[_0x2966('0x11')])){const _0x58e41d=_0x3b57d1[_0x2966('0x5a')][_0x2966('0x14')],_0x2bfe5b=_0x24e9ad[_0x2966('0x11')][_0x2966('0x5c')];return _0x11d5ea[_0x2966('0x2f')](_0x58e41d)&&_0x58e41d===_0x2bfe5b;}return!0x1;}function _0x3fc449(_0x1d5d9d,_0x47a642){return _0xfd6b4(_0x1d5d9d,_0x47a642)?[_0x1d5d9d,_0x47a642]:_0xfd6b4(_0x47a642,_0x1d5d9d)?[_0x47a642,_0x1d5d9d]:null;}_0x541f73[_0x2966('0x46')][_0x2966('0x52')][_0x2966('0x19')](()=>{let _0x60f7db=!0x1;const _0x2eb9e2=Array['from'](_0x541f73[_0x2966('0x46')][_0x2966('0x52')]['differ'][_0x2966('0x3')]());for(const {name:_0x55beb6,data:_0x331b99}of _0x2eb9e2){const {group:_0x3b2a32,type:_0x2b1de6,subType:_0x11fdeb,id:_0x248b38}=_0x329575[_0x2966('0xf')](_0x55beb6);if(_0x2966('0x70')==_0x3b2a32&&_0x329575[_0x2966('0x21')](_0x248b38)){if(_0x2966('0x41')==_0x2b1de6&&(_0x2966('0x59')==_0x11fdeb||'imageStylePostApply'==_0x11fdeb)){const _0x447dda=_0x329575['getSuggestion'](_0x248b38);if(_0x331b99['newRange']){const _0x2a8858=_0x447dda['getFirstRange']()[_0x2966('0x6f')]();if(_0x11d5ea[_0x2966('0x2f')](_0x2a8858))continue;_0x329575[_0x2966('0x0')](_0x447dda),_0x60f7db=!0x0;}}if('insertion'==_0x2b1de6&&_0x2966('0x69')==_0x11fdeb&&!_0x331b99[_0x2966('0x18')]){const _0x41e86a=_0x329575[_0x2966('0x75')](_0x248b38);_0x41e86a[_0x2966('0x2b')]&&_0x41e86a[_0x2966('0x2b')][_0x2966('0x3e')]&&(_0x329575[_0x2966('0x0')](_0x41e86a['next']),_0x60f7db=!0x0);}}}return _0x60f7db;}),_0x541f73[_0x2966('0x36')]['has'](_0x2966('0x2c'))&&_0x329575['enableCommand'](_0x2966('0x33'),(_0x1ce94d,_0xadcba0)=>{const _0x2e6022=_0x11d5ea['getClosestSelectedImageElement'](_0x541f73[_0x2966('0x46')]['document'][_0x2966('0x1b')]);_0x2e6022[_0x2966('0x68')](_0x2966('0x45'))!=_0xadcba0[_0x2966('0x45')]&&_0x541f73[_0x2966('0x46')]['change'](()=>{_0x329575['markBlockFormat'](_0x2e6022,{'commandName':'resizeImage','commandParams':[_0xadcba0]});});}),_0x541f73[_0x2966('0x36')]['has'](_0x2966('0x2'))&&_0x329575[_0x2966('0x3d')]('imageTextAlternative',(_0x420255,_0xe297d9)=>{const _0x1c2952=_0x11d5ea['getClosestSelectedImageElement'](_0x541f73['model'][_0x2966('0x52')][_0x2966('0x1b')]);(_0x1c2952[_0x2966('0x5f')]('alt')?_0x1c2952['getAttribute']('alt'):'')!=_0xe297d9[_0x2966('0x10')]&&_0x541f73[_0x2966('0x46')][_0x2966('0x30')](()=>{_0x329575[_0x2966('0x38')](_0x1c2952,{'commandName':_0x2966('0x23'),'commandParams':[_0xe297d9]});});}),_0x329575[_0x2966('0x7')][_0x2966('0x1e')](_0x2658dd=>{if(!!_0x52d572[_0x2966('0x6b')](({type:_0x5ff341,subType:_0x510a41})=>_0x2658dd[_0x2966('0x3c')]==_0x5ff341&&_0x2658dd[_0x2966('0x20')]==_0x510a41))return _0x2658dd[_0x2966('0x53')]?{}:void 0x0;}),_0x329575['_descriptionFactory'][_0x2966('0x1e')](_0x2a6d0d=>{if(_0x2966('0x49')==_0x2a6d0d[_0x2966('0x3c')]||'deletion'==_0x2a6d0d[_0x2966('0x3c')]){const _0x5cf6b4=_0x2a6d0d[_0x2966('0x6f')]();if(_0x5cf6b4&&_0x5cf6b4['is'](_0x2966('0x8'),_0x2966('0x35')))return{'type':_0x2966('0x49')==_0x2a6d0d['type']?_0x2966('0x1a'):_0x2966('0x62'),'element':_0x5cf6b4,'quantity':0x1};}}),_0x329575[_0x2966('0x7')]['registerDescriptionCallback'](_0x1c7553=>'formatBlock'==_0x1c7553[_0x2966('0x3c')]&&_0x2966('0xc')==_0x1c7553[_0x2966('0x20')]?{'type':_0x2966('0x1f'),'content':_0x2966('0x9')}:'formatBlock'==_0x1c7553[_0x2966('0x3c')]&&_0x2966('0x25')==_0x1c7553[_0x2966('0x20')]?{'type':_0x2966('0x1f'),'content':_0x2966('0x2e')}:void 0x0),_0x329575[_0x2966('0x7')]['registerDescriptionCallback'](_0x6d6596=>{const {data:_0x584f93}=_0x6d6596;if(_0x584f93){if(_0x2966('0xe')==_0x584f93[_0x2966('0x3f')]){const _0x1556b7=_0x584f93[_0x2966('0x6a')][0x0][_0x2966('0x66')];return _0x585ead(_0x2966('0x2d')===_0x1556b7?_0x6db017(_0x2632a4,'FORMAT_SIDE_IMAGE'):_0x51a5e9[_0x1556b7]||_0x1556b7);}if(_0x2966('0x23')==_0x584f93[_0x2966('0x3f')]){const _0x331a2c=_0x584f93[_0x2966('0x6a')][0x0][_0x2966('0x10')];return _0x331a2c?{'type':_0x2966('0x1f'),'content':_0x6db017(_0x2632a4,_0x2966('0x64'),'\x22'+_0x331a2c+'\x22')}:{'type':_0x2966('0x1f'),'content':_0x6db017(_0x2632a4,_0x2966('0x4e'))};}if('resizeImage'==_0x584f93[_0x2966('0x3f')]){const _0x4592e7=_0x584f93[_0x2966('0x6a')][0x0]['width'];return _0x4592e7?{'type':'format','content':_0x6db017(_0x2632a4,_0x2966('0x28'),_0x4592e7)}:{'type':_0x2966('0x1f'),'content':_0x6db017(_0x2632a4,_0x2966('0x39'))};}}function _0x585ead(_0x4f3468){return{'type':_0x2966('0x1f'),'content':_0x6db017(_0x2632a4,_0x2966('0x24'),_0x4f3468)};}});}}
|
|
23
|
+
const _0x209a=['imageInline','has','commandName','*Set\x20image\x20text\x20alternative:*\x20%0','deletion','differ','detach','isBefore','normalizedStyles','previous','plugins','getClosestSelectedImageElement','commandReversedParams','hasSuggestion','_splitMarkerName','findIndex','Users','ImageResize','ImageUtils','isBlockImage','addObject','forEach','ImageCaptionEditing','ELEMENT_IMAGE','find','enableCommand','document','chain','suggestion','_descriptionFactory','registerCustomCallback','subType','isInContent','shouldConvertImageType','fromPosition','get','createRange','TrackChangesEditing','side','isInlineImage','start','end','element','formatInline','insertImage','change','getSuggestion','afterInit','join','alt','getContainedElement','next','convertInlineImageToBlock','ELEMENT_CAPTION','getNearestSelectionRange','ImageEditing','imageTextAlternative','author','Inline\x20image\x20to\x20block\x20image','caption','isIntersecting','imageBlock','nodeBefore','hasAttribute','createRangeOn','format','isCollapsed','backward','ImageUploadEditing','from','filter','imageStyle','commands','refresh','head','insertion','selection','discardSuggestion','resizeImage','toggleImageCaption','registerDescriptionCallback','imageStylePreApply','locale','length','schema','model','newRange','markInsertion','imageTypeBlock','imageCaption','getAttribute','imageTypeInline','registerPostFixer','commandParams','*Set\x20image\x20width:*\x20%0','isEqual','title','ImageStyleEditing','discard','imageStylePostApply','convertBlockImageToInline','markDeletion','getSuggestionCallback','name','isOwn','value','uploadImage','newValue','ImageInlineEditing','registerElementLabel','getFirstRange','markInlineFormat','formatBlock','_suggestionFactory','width','accept','markBlockFormat','_findSuggestions','Block\x20image\x20to\x20inline\x20image','type'];(function(_0x505cf2,_0x209a89){const _0x4e2321=function(_0x1cfb11){while(--_0x1cfb11){_0x505cf2['push'](_0x505cf2['shift']());}};_0x4e2321(++_0x209a89);}(_0x209a,0x1b5));const _0x4e23=function(_0x505cf2,_0x209a89){_0x505cf2=_0x505cf2-0x0;let _0x4e2321=_0x209a[_0x505cf2];return _0x4e2321;};import{Plugin as _0x41771e}from'ckeditor5/src/core';import{LivePosition as _0x18d101}from'ckeditor5/src/engine';import{uid as _0x3438b0}from'ckeditor5/src/utils';import{getTranslation as _0xa770f6}from'../utils/common-translations';export default class X extends _0x41771e{[_0x4e23('0x5a')](){const _0x4c1c28=this['editor'];if(!_0x4c1c28[_0x4e23('0x35')]['has'](_0x4e23('0x62')))return;const _0x5a3c29=_0x4c1c28['plugins'][_0x4e23('0x4e')](_0x4e23('0x50')),_0x2c16a8=_0x4c1c28[_0x4e23('0x35')][_0x4e23('0x4e')](_0x4e23('0x3d')),_0x4f69da={},_0x4c636f=_0x4c1c28[_0x4e23('0x5')];if(_0x5a3c29[_0x4e23('0x44')](_0x4e23('0x57')),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x20')](_0x4e23('0x68'),_0x523ca3=>_0xa770f6(_0x4c636f,_0x4e23('0x42'),_0x523ca3)),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x20')](_0x4e23('0x2b'),_0xbe80c6=>_0xa770f6(_0x4c636f,'ELEMENT_INLINE_IMAGE',_0xbe80c6)),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x20')](_0x4e23('0x66'),()=>_0xa770f6(_0x4c636f,_0x4e23('0x60'))),_0x4c1c28['plugins']['has'](_0x4e23('0x6f'))&&_0x5a3c29[_0x4e23('0x44')](_0x4e23('0x1d')),_0x4c1c28['plugins']['has']('ImageBlockEditing')&&_0x4c1c28['plugins'][_0x4e23('0x2c')](_0x4e23('0x1f'))&&(_0x5a3c29[_0x4e23('0x44')](_0x4e23('0xe'),(_0x4993e0,_0x5c6ef4)=>{const _0xcf1932=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28['model'][_0x4e23('0x45')][_0x4e23('0x77')]);_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x58')](()=>{_0x5a3c29[_0x4e23('0x27')](_0xcf1932,{'commandName':_0x4e23('0xe'),'commandParams':[_0x5c6ef4]},[],_0x4e23('0x17'));});}),_0x5a3c29[_0x4e23('0x44')](_0x4e23('0xb'),(_0x541130,_0x577341)=>{_0x4c1c28['model'][_0x4e23('0x58')](_0xfb2e87=>{let _0x3fb117=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0x77')]),_0x508efc=_0xfb2e87[_0x4e23('0x6b')](_0x3fb117);const _0x2370e8=_0x18d101[_0x4e23('0x4d')](_0x508efc[_0x4e23('0x53')],'toPrevious'),_0x5cc164=_0x18d101[_0x4e23('0x4d')](_0x508efc[_0x4e23('0x54')],'toNext');_0x5a3c29['forceDefaultExecution'](()=>_0x541130(_0x577341)),_0x3fb117=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0x77')]),_0x508efc=_0xfb2e87['createRangeOn'](_0x3fb117);const _0x27f0f0=_0xfb2e87[_0x4e23('0x4f')](_0x2370e8,_0x5cc164);_0x2370e8[_0x4e23('0x31')](),_0x5cc164[_0x4e23('0x31')](),_0x5a3c29[_0x4e23('0x27')](_0x3fb117,{'commandName':_0x4e23('0xe'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x27f0f0[_0x4e23('0x53')][_0x4e23('0x32')](_0x508efc['start'])&&_0x5a3c29[_0x4e23('0xa')](_0xfb2e87[_0x4e23('0x4f')](_0x27f0f0['start'],_0x508efc[_0x4e23('0x53')]),_0x4e23('0x5f')),_0x508efc[_0x4e23('0x54')][_0x4e23('0x32')](_0x27f0f0[_0x4e23('0x54')])&&_0x5a3c29[_0x4e23('0xa')](_0xfb2e87[_0x4e23('0x4f')](_0x508efc[_0x4e23('0x54')],_0x27f0f0['end']),_0x4e23('0x5f'));});}),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('formatBlock',_0x4e23('0x5f'),_0x4e23('0x5b'),()=>!0x1),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')](_0x4e23('0x23'),_0x4e23('0x5f'),_0x4e23('0x26'),()=>!0x1),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('formatBlock',_0x4e23('0x5f'),_0x4e23('0x15'),_0x5a3c29['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x4e23('0x26'))),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('insertion',_0x4e23('0x5f'),_0x4e23('0x5b'),()=>!0x1),_0x5a3c29['_suggestionFactory'][_0x4e23('0x49')]('insertion',_0x4e23('0x5f'),'discard',([_0x321489])=>{const _0xfb82da=_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x19')]('insertion','','discard');let _0x3e49fd=_0x321489['start'],_0x46fa55=_0x321489[_0x4e23('0x54')];const _0x2ecb5a=_0x4c1c28[_0x4e23('0x8')]['schema'][_0x4e23('0x61')](_0x3e49fd,_0x4e23('0x6e')),_0x42fbea=_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x7')][_0x4e23('0x61')](_0x46fa55,'forward');_0x2ecb5a['isCollapsed']&&(_0x3e49fd=_0x2ecb5a['start']),_0x42fbea[_0x4e23('0x6d')]&&(_0x46fa55=_0x42fbea[_0x4e23('0x54')]),_0xfb82da([_0x4c1c28['model'][_0x4e23('0x4f')](_0x3e49fd,_0x46fa55)]);}),_0x5a3c29['_suggestionFactory']['registerCustomCallback'](_0x4e23('0x23'),_0x4e23('0x5f'),_0x4e23('0x46'),_0x2c5490),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')](_0x4e23('0x76'),_0x4e23('0x5f'),_0x4e23('0x46'),_0x2c5490)),_0x4c1c28[_0x4e23('0x35')][_0x4e23('0x2c')](_0x4e23('0x41'))&&(_0x5a3c29['enableCommand'](_0x4e23('0x2'),(_0x7f994c,_0x38ec77)=>{const _0xcbeac=_0x4c1c28[_0x4e23('0x35')][_0x4e23('0x4e')]('ImageCaptionUtils');let _0x537ce6=_0x2c16a8['getClosestSelectedImageElement'](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0x77')]),_0x3a02d6=_0xcbeac['getCaptionFromImageModelElement'](_0x537ce6);_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x58')](()=>{if(_0x3a02d6)return void _0x5a3c29[_0x4e23('0x18')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x6b')](_0x3a02d6));const _0x2013b6=_0x2c16a8[_0x4e23('0x3e')](_0x537ce6);_0x7f994c(_0x38ec77),_0x537ce6=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0x77')]),_0x3a02d6=_0xcbeac['getCaptionFromImageModelElement'](_0x537ce6),_0x5a3c29[_0x4e23('0xa')](_0x4c1c28[_0x4e23('0x8')]['createRangeOn'](_0x3a02d6),_0x2013b6?null:'imageCaption');});}),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('insertion','imageCaption',_0x4e23('0x46'),_0x2c5490)),_0x4c1c28[_0x4e23('0x35')][_0x4e23('0x2c')]('ImageStyleEditing')){_0x5a3c29['enableCommand'](_0x4e23('0x72'),(_0x522146,_0x3b0dae)=>{const _0x4cb30f=_0x4c1c28[_0x4e23('0x35')]['get'](_0x4e23('0x3b'))['me'],_0x2d88d2=_0x4c1c28[_0x4e23('0x73')][_0x4e23('0x4e')](_0x4e23('0x72'));let _0x34974b=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0x77')]),_0x3461c0=_0x4c1c28['model'][_0x4e23('0x6b')](_0x34974b),_0x47fd4a=_0x2d88d2[_0x4e23('0x1c')];if(_0x47fd4a==_0x3b0dae['value'])return;const _0x51d33f={'commandName':_0x4e23('0x72'),'commandParams':[_0x3b0dae],'formatGroupId':_0x3438b0()};_0x4c1c28['model'][_0x4e23('0x58')](()=>{if(_0x5a3c29['getSuggestions']()[_0x4e23('0x71')](_0x1c63b9=>_0x1c63b9[_0x4e23('0x4b')]&&_0x4cb30f==_0x1c63b9[_0x4e23('0x64')]&&('formatBlock'==_0x1c63b9['type']||_0x4e23('0x56')==_0x1c63b9[_0x4e23('0x2a')])&&(_0x4e23('0x4')==_0x1c63b9[_0x4e23('0x4a')]||_0x4e23('0x16')==_0x1c63b9['subType'])&&_0x1c63b9['getFirstRange']()[_0x4e23('0x12')](_0x3461c0))[_0x4e23('0x40')](_0x18eeab=>_0x5a3c29[_0x4e23('0x0')](_0x18eeab[_0x4e23('0x75')])),_0x34974b=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')]['selection']),_0x3461c0=_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x6b')](_0x34974b),_0x2d88d2[_0x4e23('0x74')](),_0x4c1c28['commands']['get'](_0x4e23('0xe'))['refresh'](),_0x4c1c28['commands']['get'](_0x4e23('0xb'))[_0x4e23('0x74')](),_0x47fd4a=_0x2d88d2[_0x4e23('0x1c')],_0x47fd4a!=_0x3b0dae[_0x4e23('0x1c')])return _0x2c16a8[_0x4e23('0x52')](_0x34974b)&&_0x2d88d2[_0x4e23('0x4c')](_0x3b0dae['value'],_0x34974b)?(_0x522146(_0x3b0dae),_0x34974b=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')]['document'][_0x4e23('0x77')]),void _0x5a3c29[_0x4e23('0x27')](_0x34974b,{..._0x51d33f,'commandReversedParams':[{'value':_0x47fd4a||null}]},[],'imageStylePreApply')):void(_0x2c16a8[_0x4e23('0x3e')](_0x34974b)?_0x5a3c29[_0x4e23('0x27')](_0x34974b,_0x51d33f,[],_0x4e23('0x16')):_0x5a3c29[_0x4e23('0x22')](_0x3461c0,_0x51d33f,_0x4e23('0x16')));});});for(const _0x5a84c7 of _0x4c1c28[_0x4e23('0x35')][_0x4e23('0x4e')](_0x4e23('0x14'))[_0x4e23('0x33')])_0x4f69da[_0x5a84c7[_0x4e23('0x1a')]]=_0x5a84c7[_0x4e23('0x13')]['toLowerCase']();_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('formatBlock',_0x4e23('0x4'),_0x4e23('0x5b'),()=>!0x1),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')](_0x4e23('0x23'),_0x4e23('0x16'),_0x4e23('0x5b'),()=>!0x1),_0x5a3c29[_0x4e23('0x24')]['registerCustomCallback'](_0x4e23('0x56'),_0x4e23('0x16'),'join',()=>!0x1),_0x5a3c29['_suggestionFactory']['registerCustomCallback'](_0x4e23('0x23'),'imageStylePreApply',_0x4e23('0x26'),()=>!0x1),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('formatBlock',_0x4e23('0x4'),'discard',(_0x9f323d,_0x516767)=>{_0x5a3c29[_0x4e23('0x24')]['getSuggestionCallback'](_0x4e23('0x23'),'',_0x4e23('0x26'))(_0x9f323d,{'commandName':_0x516767[_0x4e23('0x2d')],'commandParams':_0x516767[_0x4e23('0x37')]});}),_0x5a3c29[_0x4e23('0x24')][_0x4e23('0x49')]('formatBlock',_0x4e23('0x4'),_0x4e23('0x46'),_0x2c5490);}const _0x25705f=[{'type':_0x4e23('0x23'),'subType':_0x4e23('0x4')},{'type':_0x4e23('0x76'),'subType':'imageCaption'},{'type':_0x4e23('0x23'),'subType':_0x4e23('0x5f')},{'type':_0x4e23('0x76'),'subType':_0x4e23('0x5f')}];function _0x4995ef(_0x557ef9,_0x5bb532){const _0x2e00a3=_0x25705f[_0x4e23('0x3a')](({type:_0x5a910b,subType:_0x4236a9})=>_0x557ef9[_0x4e23('0x2a')]==_0x5a910b&&_0x557ef9[_0x4e23('0x4a')]==_0x4236a9),_0x4b1069=_0x25705f[_0x4e23('0x3a')](({type:_0x3fa641,subType:_0x4740ee})=>_0x5bb532[_0x4e23('0x2a')]==_0x3fa641&&_0x5bb532[_0x4e23('0x4a')]==_0x4740ee);if(_0x2e00a3<0x0||_0x4b1069<0x0)return!0x1;const _0xf52619=_0x557ef9[_0x4e23('0x21')](),_0x53f7b1=_0x5bb532['getFirstRange']();if((0x0==_0x2e00a3||0x1==_0x2e00a3)&&0x2==_0x4b1069&&_0xf52619[_0x4e23('0x67')](_0x53f7b1))return!0x0;if(0x2==_0x2e00a3&&0x3==_0x4b1069){const _0x42d060=_0x5a3c29[_0x4e23('0x28')](_0xf52619,_0x4e23('0x76'))['filter'](({suggestion:_0x5385b6,meta:_0x4e590c})=>_0x4e590c[_0x4e23('0x1b')]&&_0x4e23('0x5f')==_0x5385b6[_0x4e23('0x4a')]);if(_0x42d060[_0x4e23('0x6')]>0x1&&_0x53f7b1['end']['isEqual'](_0xf52619[_0x4e23('0x53')]))return!0x0;if(0x1==_0x42d060[_0x4e23('0x6')]&&(_0xf52619['start']['isEqual'](_0x53f7b1[_0x4e23('0x54')])||_0xf52619['end'][_0x4e23('0x12')](_0x53f7b1['start'])))return!0x0;}if(0x3==_0x2e00a3&&0x3==_0x4b1069&&_0xf52619[_0x4e23('0x53')][_0x4e23('0x32')](_0x53f7b1[_0x4e23('0x53')])){const _0x15e98e=_0xf52619[_0x4e23('0x54')]['nodeAfter'],_0x1f3f82=_0x53f7b1['start'][_0x4e23('0x69')];return _0x2c16a8[_0x4e23('0x3e')](_0x15e98e)&&_0x15e98e===_0x1f3f82;}return!0x1;}function _0x2c5490(_0x79623c,_0x547d0e){return _0x4995ef(_0x79623c,_0x547d0e)?[_0x79623c,_0x547d0e]:_0x4995ef(_0x547d0e,_0x79623c)?[_0x547d0e,_0x79623c]:null;}_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')][_0x4e23('0xf')](()=>{let _0x1dbf01=!0x1;const _0x259ace=Array[_0x4e23('0x70')](_0x4c1c28['model'][_0x4e23('0x45')][_0x4e23('0x30')]['getChangedMarkers']());for(const {name:_0x311cbd,data:_0x56a3f9}of _0x259ace){const {group:_0x5b8114,type:_0x1a4847,subType:_0x5bbc3b,id:_0x5a8580}=_0x5a3c29[_0x4e23('0x39')](_0x311cbd);if(_0x4e23('0x47')==_0x5b8114&&_0x5a3c29[_0x4e23('0x38')](_0x5a8580)){if(_0x4e23('0x23')==_0x1a4847&&(_0x4e23('0x4')==_0x5bbc3b||_0x4e23('0x16')==_0x5bbc3b)){const _0x228fc9=_0x5a3c29[_0x4e23('0x59')](_0x5a8580);if(_0x56a3f9[_0x4e23('0x9')]){const _0x1463b4=_0x228fc9[_0x4e23('0x21')]()[_0x4e23('0x5d')]();if(_0x2c16a8[_0x4e23('0x3e')](_0x1463b4))continue;_0x5a3c29['discardSuggestion'](_0x228fc9),_0x1dbf01=!0x0;}}if(_0x4e23('0x76')==_0x1a4847&&_0x4e23('0xc')==_0x5bbc3b&&!_0x56a3f9[_0x4e23('0x9')]){const _0x14cf78=_0x5a3c29[_0x4e23('0x59')](_0x5a8580);_0x14cf78[_0x4e23('0x5e')]&&_0x14cf78['next'][_0x4e23('0x4b')]&&(_0x5a3c29[_0x4e23('0x0')](_0x14cf78[_0x4e23('0x5e')]),_0x1dbf01=!0x0);}}}return _0x1dbf01;}),_0x4c1c28[_0x4e23('0x35')]['has'](_0x4e23('0x3c'))&&_0x5a3c29[_0x4e23('0x44')](_0x4e23('0x1'),(_0x4fdc11,_0x4daeee)=>{const _0x25e4e7=_0x2c16a8[_0x4e23('0x36')](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')]['selection']);_0x25e4e7[_0x4e23('0xd')](_0x4e23('0x25'))!=_0x4daeee[_0x4e23('0x25')]&&_0x4c1c28['model'][_0x4e23('0x58')](()=>{_0x5a3c29['markBlockFormat'](_0x25e4e7,{'commandName':_0x4e23('0x1'),'commandParams':[_0x4daeee]});});}),_0x4c1c28[_0x4e23('0x35')][_0x4e23('0x2c')]('ImageTextAlternativeEditing')&&_0x5a3c29[_0x4e23('0x44')](_0x4e23('0x63'),(_0x167490,_0x3a95f)=>{const _0x3c8846=_0x2c16a8['getClosestSelectedImageElement'](_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x45')]['selection']);(_0x3c8846[_0x4e23('0x6a')](_0x4e23('0x5c'))?_0x3c8846[_0x4e23('0xd')](_0x4e23('0x5c')):'')!=_0x3a95f[_0x4e23('0x1e')]&&_0x4c1c28[_0x4e23('0x8')][_0x4e23('0x58')](()=>{_0x5a3c29[_0x4e23('0x27')](_0x3c8846,{'commandName':'imageTextAlternative','commandParams':[_0x3a95f]});});}),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x3')](_0x26e639=>{if(!!_0x25705f[_0x4e23('0x43')](({type:_0x28b9e5,subType:_0x5769b5})=>_0x26e639[_0x4e23('0x2a')]==_0x28b9e5&&_0x26e639[_0x4e23('0x4a')]==_0x5769b5))return _0x26e639[_0x4e23('0x34')]?{}:void 0x0;}),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x3')](_0x58be00=>{if(_0x4e23('0x76')==_0x58be00[_0x4e23('0x2a')]||_0x4e23('0x2f')==_0x58be00[_0x4e23('0x2a')]){const _0x1465d2=_0x58be00[_0x4e23('0x5d')]();if(_0x1465d2&&_0x1465d2['is'](_0x4e23('0x55'),_0x4e23('0x66')))return{'type':'insertion'==_0x58be00['type']?_0x4e23('0x3f'):'removeObject','element':_0x1465d2,'quantity':0x1};}}),_0x5a3c29[_0x4e23('0x48')][_0x4e23('0x3')](_0x113771=>_0x4e23('0x23')==_0x113771['type']&&_0x4e23('0x5f')==_0x113771[_0x4e23('0x4a')]?{'type':_0x4e23('0x6c'),'content':_0x4e23('0x65')}:_0x4e23('0x23')==_0x113771['type']&&_0x4e23('0x17')==_0x113771['subType']?{'type':_0x4e23('0x6c'),'content':_0x4e23('0x29')}:void 0x0),_0x5a3c29['_descriptionFactory'][_0x4e23('0x3')](_0x3a5132=>{const {data:_0x7ce7e3}=_0x3a5132;if(_0x7ce7e3){if(_0x4e23('0x72')==_0x7ce7e3[_0x4e23('0x2d')]){const _0x56451d=_0x7ce7e3[_0x4e23('0x10')][0x0][_0x4e23('0x1c')];return _0x26a100(_0x4e23('0x51')===_0x56451d?_0xa770f6(_0x4c636f,'FORMAT_SIDE_IMAGE'):_0x4f69da[_0x56451d]||_0x56451d);}if(_0x4e23('0x63')==_0x7ce7e3[_0x4e23('0x2d')]){const _0x5d3680=_0x7ce7e3[_0x4e23('0x10')][0x0][_0x4e23('0x1e')];return _0x5d3680?{'type':_0x4e23('0x6c'),'content':_0xa770f6(_0x4c636f,_0x4e23('0x2e'),'\x22'+_0x5d3680+'\x22')}:{'type':_0x4e23('0x6c'),'content':_0xa770f6(_0x4c636f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x7ce7e3[_0x4e23('0x2d')]){const _0x63b9cc=_0x7ce7e3[_0x4e23('0x10')][0x0][_0x4e23('0x25')];return _0x63b9cc?{'type':_0x4e23('0x6c'),'content':_0xa770f6(_0x4c636f,_0x4e23('0x11'),_0x63b9cc)}:{'type':_0x4e23('0x6c'),'content':_0xa770f6(_0x4c636f,'*Reset\x20image\x20width*')};}}function _0x26a100(_0x47f390){return{'type':_0x4e23('0x6c'),'content':_0xa770f6(_0x4c636f,'*Format:*\x20%0',_0x47f390)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dbd=['commandName','discard','commandParams','TrackChangesEditing','Users','locale','handleSuggestionDescription','format','getSuggestionCallback','replaceImageSource','getSelectedElement','_suggestionFactory','formatBlock','markBlockFormat','selection','subType','plugins','editor','handleReplaceImageCommand','enableCommand','afterInit','data','registerCustomCallback','author','has','_descriptionFactory','model','getAttribute','ImageEditing','accept','get','change'];(function(_0x51b813,_0x4dbda7){const _0xdf30b=function(_0xc51374){while(--_0xc51374){_0x51b813['push'](_0x51b813['shift']());}};_0xdf30b(++_0x4dbda7);}(_0x4dbd,0x79));const _0xdf30=function(_0x51b813,_0x4dbda7){_0x51b813=_0x51b813-0x0;let _0xdf30b=_0x4dbd[_0x51b813];return _0xdf30b;};import{Plugin as _0x2265c6}from'ckeditor5/src/core';import{getTranslation as _0x198d82}from'../utils/common-translations';export default class Y extends _0x2265c6{[_0xdf30('0x1b')](){if(!this['editor']['plugins'][_0xdf30('0x1f')](_0xdf30('0x3')))return;const _0x13d8e5=this[_0xdf30('0x18')][_0xdf30('0x17')][_0xdf30('0x5')]('TrackChangesEditing');_0x13d8e5[_0xdf30('0x1a')](_0xdf30('0x10'),(_0x5c6df3,_0x316eb7)=>this['handleReplaceImageCommand'](_0x5c6df3,_0x316eb7)),_0x13d8e5[_0xdf30('0x12')][_0xdf30('0x1d')](_0xdf30('0x13'),_0xdf30('0x10'),_0xdf30('0x4'),_0x13d8e5[_0xdf30('0x12')][_0xdf30('0xf')](_0xdf30('0x13'),null,_0xdf30('0x8'))),_0x13d8e5['_suggestionFactory'][_0xdf30('0x1d')](_0xdf30('0x13'),_0xdf30('0x10'),'discard',_0x13d8e5[_0xdf30('0x12')][_0xdf30('0xf')](_0xdf30('0x13'),null,_0xdf30('0x4'))),_0x13d8e5[_0xdf30('0x0')]['registerDescriptionCallback'](_0x281e38=>this[_0xdf30('0xd')](_0x281e38));}[_0xdf30('0x19')](_0x5bbf06,_0x3ab31f){const _0x29f770=this['editor'][_0xdf30('0x17')][_0xdf30('0x5')](_0xdf30('0xa')),_0x48ff20=this[_0xdf30('0x18')][_0xdf30('0x1')]['document'][_0xdf30('0x15')][_0xdf30('0x11')]();this[_0xdf30('0x18')]['model'][_0xdf30('0x6')](()=>{let _0xbf0ffd=_0x48ff20[_0xdf30('0x2')]('src');const _0x474839=this[_0xdf30('0x18')][_0xdf30('0x17')]['get'](_0xdf30('0xb'))['me'];for(const _0x301b10 of _0x29f770['getSuggestions']({'skipNotAttached':!0x0})){const _0x30d59d=_0x301b10['getContainedElement']();if(_0xdf30('0x10')===_0x301b10[_0xdf30('0x16')]&&_0x30d59d===_0x48ff20){_0x301b10[_0xdf30('0x1e')]!==_0x474839&&_0x301b10['discard'](),_0xbf0ffd=_0x301b10[_0xdf30('0x1c')][_0xdf30('0x9')][0x0]['source'];break;}}_0x5bbf06(_0x3ab31f),_0x29f770[_0xdf30('0x14')](_0x48ff20,{'commandName':_0xdf30('0x10'),'commandParams':[{'source':_0xbf0ffd}]},[],_0xdf30('0x10'));});}[_0xdf30('0xd')](_0x58c8dc){const {data:_0x2e2480}=_0x58c8dc;if(_0x2e2480&&'replaceImageSource'===_0x2e2480[_0xdf30('0x7')]){const _0x5d5a21='*Format:*\x20replace\x20image\x20URL';return{'type':_0xdf30('0xe'),'content':_0x198d82(this[_0xdf30('0x18')][_0xdf30('0xc')],_0x5d5a21)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c5=['lowest','editor','commands','forEach','importWord','_trackChangesExecuted','listenTo','execute','_trackChangesValueDuringImport','TrackChangesEditing','collaboration_features','track_changes','bind','_handleImportedData','_setSuggestionData','value','trackChanges','high','enableCommand','Users','dataInsert','get','plugins'];(function(_0x11f07f,_0x46c5d9){const _0x5c5888=function(_0x252cd3){while(--_0x252cd3){_0x11f07f['push'](_0x11f07f['shift']());}};_0x5c5888(++_0x46c5d9);}(_0x46c5,0xaf));const _0x5c58=function(_0x11f07f,_0x46c5d9){_0x11f07f=_0x11f07f-0x0;let _0x5c5888=_0x46c5[_0x11f07f];return _0x5c5888;};import{Plugin as _0xf8e95b}from'ckeditor5/src/core';export default class Z extends _0xf8e95b{constructor(_0x3b1cd8){super(_0x3b1cd8),this['_trackChangesValueDuringImport']=!0x1,this[_0x5c58('0xe')]=!0x1;}['afterInit'](){const _0x368a37=this['editor'],_0x509956=_0x368a37['commands'][_0x5c58('0x7')]('importWord'),_0x4a3853=_0x368a37['commands']['get']('trackChanges');_0x509956&&(_0x509956['on'](_0x5c58('0x10'),(_0x1ea8df,[,_0x4e11c4])=>{this['_trackChangesValueDuringImport']=_0x4a3853[_0x5c58('0x1')],_0x4e11c4[_0x5c58('0x13')][_0x5c58('0x14')]=!this[_0x5c58('0x11')];},{'priority':_0x5c58('0x3')}),this['listenTo'](_0x509956,_0x5c58('0x6'),this[_0x5c58('0x16')][_0x5c58('0x15')](this)),this[_0x5c58('0xf')](_0x509956,'dataInsert',()=>{this[_0x5c58('0xe')]&&(_0x4a3853[_0x5c58('0x10')](),this[_0x5c58('0xe')]=!0x1);},{'priority':_0x5c58('0x9')}),_0x368a37[_0x5c58('0x8')]['get'](_0x5c58('0x12'))[_0x5c58('0x4')](_0x5c58('0xd')));}['_handleImportedData'](_0x5d7f0d,_0x164620){const {suggestions:_0x2fda4d}=_0x164620,_0x3b23ab=this[_0x5c58('0xa')][_0x5c58('0xb')]['get'](_0x5c58('0x2')),_0x50ba10=_0x3b23ab[_0x5c58('0x1')];this['_trackChangesValueDuringImport']!==_0x50ba10&&(_0x3b23ab[_0x5c58('0x10')](),this['_trackChangesExecuted']=!0x0),_0x2fda4d&&_0x2fda4d[_0x5c58('0xc')](({id:_0x438596,type:_0x52633e,author:_0x266051,created_at:_0x1d1fee})=>{const _0x5ca039={'id':_0x438596,'type':_0x52633e,'authorId':this[_0x5c58('0xa')][_0x5c58('0x8')]['get'](_0x5c58('0x5'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x266051,'createdAt':_0x1d1fee?new Date(_0x1d1fee):new Date(),'source':_0x5c58('0xd')}}};this[_0x5c58('0xa')][_0x5c58('0x8')][_0x5c58('0x7')](_0x5c58('0x12'))[_0x5c58('0x0')](_0x5ca039);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cfd=['indentBlock','*Indent:*\x20%0','locale','filter','document','has','afterInit','model','commandName','_descriptionFactory','*Outdent:*\x20%0','outdentBlock','getItemLabel','editor','indent','IndentEditing','change','outdent','registerDescriptionCallback','getSelectedBlocks','format','enableCommand','plugins'];(function(_0x4ff287,_0x1cfd1){const _0x2bff1e=function(_0xe3352a){while(--_0xe3352a){_0x4ff287['push'](_0x4ff287['shift']());}};_0x2bff1e(++_0x1cfd1);}(_0x1cfd,0x1b4));const _0x2bff=function(_0x4ff287,_0x1cfd1){_0x4ff287=_0x4ff287-0x0;let _0x2bff1e=_0x1cfd[_0x4ff287];return _0x2bff1e;};import{Plugin as _0x9c3df1}from'ckeditor5/src/core';import{getTranslation as _0x4c3707}from'../utils/common-translations';export default class tt extends _0x9c3df1{[_0x2bff('0x7')](){const _0x4172b3=this[_0x2bff('0xe')],_0x439d85=_0x4172b3[_0x2bff('0x0')]['get']('TrackChangesEditing');_0x4172b3[_0x2bff('0x0')][_0x2bff('0x6')](_0x2bff('0x10'))&&(_0x439d85[_0x2bff('0x16')](_0x2bff('0xf')),_0x439d85[_0x2bff('0x16')](_0x2bff('0x12')));const _0x66ff37=_0x4172b3[_0x2bff('0x3')];if(_0x4172b3['plugins'][_0x2bff('0x6')]('IndentBlock')){for(const _0x5e04c4 of[_0x2bff('0x1'),'outdentBlock'])_0x439d85[_0x2bff('0x16')](_0x5e04c4,()=>{const _0x3b601e=Array['from'](this['editor'][_0x2bff('0x8')][_0x2bff('0x5')]['selection'][_0x2bff('0x14')]())[_0x2bff('0x4')](_0x451768=>this[_0x2bff('0xe')][_0x2bff('0x8')]['schema']['checkAttribute'](_0x451768,'blockIndent'));_0x4172b3[_0x2bff('0x8')][_0x2bff('0x11')](()=>{for(const _0x1e9b6c of _0x3b601e)_0x439d85['markBlockFormat'](_0x1e9b6c,{'commandName':_0x5e04c4,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x439d85[_0x2bff('0xa')][_0x2bff('0x13')](_0x490238=>{const {data:_0x33d8c4}=_0x490238;if(!_0x33d8c4)return;if(_0x2bff('0x1')!=_0x33d8c4[_0x2bff('0x9')]&&'outdentBlock'!=_0x33d8c4[_0x2bff('0x9')])return;const _0x30765a=_0x490238['getItems']()[0x0],_0x3788c1=_0x439d85['_descriptionFactory'][_0x2bff('0xd')](_0x30765a);return _0x2bff('0x1')==_0x33d8c4[_0x2bff('0x9')]?{'type':_0x2bff('0x15'),'content':_0x4c3707(_0x66ff37,_0x2bff('0x2'),_0x3788c1)}:_0x2bff('0xc')==_0x33d8c4['commandName']?{'type':_0x2bff('0x15'),'content':_0x4c3707(_0x66ff37,_0x2bff('0xb'),_0x3788c1)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18a7=['input','TrackChangesEditing','requires','get','editor','enableCommand','plugins'];(function(_0x33fa0c,_0x18a71d){var _0x305dbe=function(_0x53f5ef){while(--_0x53f5ef){_0x33fa0c['push'](_0x33fa0c['shift']());}};_0x305dbe(++_0x18a71d);}(_0x18a7,0x13e));var _0x305d=function(_0x33fa0c,_0x18a71d){_0x33fa0c=_0x33fa0c-0x0;var _0x305dbe=_0x18a7[_0x33fa0c];return _0x305dbe;};import{Plugin as _0x2b4707}from'ckeditor5/src/core';import{Input as _0x1f4a59}from'ckeditor5/src/typing';export default class it extends _0x2b4707{static get[_0x305d('0x6')](){return[_0x1f4a59];}['init'](){this[_0x305d('0x1')][_0x305d('0x3')][_0x305d('0x0')](_0x305d('0x5'))[_0x305d('0x2')](_0x305d('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11c5=['hasAttribute','enableCommand','change','linkHref','getAttribute','isCollapsed','has','getRanges','LinkEditing','model','registerDescriptionCallback','markInlineFormat','link','plugins','*Set\x20link:*\x20%0','getFirstPosition','commandName','document','format','selection','afterInit','unlink','editor','TrackChangesEditing'];(function(_0x4128a3,_0x11c566){const _0xf0eedc=function(_0x249b14){while(--_0x249b14){_0x4128a3['push'](_0x4128a3['shift']());}};_0xf0eedc(++_0x11c566);}(_0x11c5,0x175));const _0xf0ee=function(_0x4128a3,_0x11c566){_0x4128a3=_0x4128a3-0x0;let _0xf0eedc=_0x11c5[_0x4128a3];return _0xf0eedc;};import{Plugin as _0x310a38}from'ckeditor5/src/core';import{findAttributeRange as _0x4b63d6}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2e5fd5}from'./utils';import{getTranslation as _0x50e6fd}from'../utils/common-translations';export default class et extends _0x310a38{[_0xf0ee('0x7')](){const _0x3cb3c6=this[_0xf0ee('0x9')];if(!_0x3cb3c6[_0xf0ee('0x0')][_0xf0ee('0x11')](_0xf0ee('0x13')))return;const _0x293c6d=_0x3cb3c6[_0xf0ee('0x0')]['get'](_0xf0ee('0xa'));_0x293c6d[_0xf0ee('0xc')](_0xf0ee('0x17'),(_0x9319cd,_0x2d62d7)=>{const _0x8bfa2d=_0x3cb3c6['model'][_0xf0ee('0x4')]['selection'];let _0x2aea1f=[];if(_0x8bfa2d[_0xf0ee('0x10')]){if(!_0x8bfa2d[_0xf0ee('0xb')]('linkHref'))return void _0x9319cd(_0x2d62d7);{const _0xf3911d=_0x4b63d6(_0x8bfa2d[_0xf0ee('0x2')](),_0xf0ee('0xe'),_0x8bfa2d['getAttribute'](_0xf0ee('0xe')),_0x3cb3c6[_0xf0ee('0x14')]);_0x2aea1f=[_0xf3911d];}}else _0x2aea1f=Array['from'](_0x8bfa2d[_0xf0ee('0x12')]());_0x3cb3c6[_0xf0ee('0x14')][_0xf0ee('0xd')](()=>{for(const _0x1b7b3e of _0x2aea1f)_0x293c6d['markInlineFormat'](_0x1b7b3e,{'commandName':_0xf0ee('0x17'),'commandParams':[_0x2d62d7]});});}),_0x293c6d['enableCommand']('unlink',()=>{const _0x4b831a=this[_0xf0ee('0x9')][_0xf0ee('0x14')],_0x53c398=_0x4b831a[_0xf0ee('0x4')][_0xf0ee('0x6')];_0x4b831a[_0xf0ee('0xd')](()=>{let _0x5608d2=[];if(_0x53c398[_0xf0ee('0x10')])_0x5608d2=[_0x4b63d6(_0x53c398['getFirstPosition'](),_0xf0ee('0xe'),_0x53c398[_0xf0ee('0xf')](_0xf0ee('0xe')),_0x3cb3c6[_0xf0ee('0x14')])];else _0x5608d2=_0x2e5fd5(_0xf0ee('0xe'),_0x53c398['getFirstRange'](),_0x3cb3c6[_0xf0ee('0x14')]);for(const _0xc02fb2 of _0x5608d2)_0x293c6d[_0xf0ee('0x16')](_0xc02fb2,{'commandName':_0xf0ee('0x8'),'commandParams':[]});});}),_0x293c6d['_descriptionFactory'][_0xf0ee('0x15')](_0x3ae4b3=>{const {data:_0xa588bd}=_0x3ae4b3,_0x5b4f3c=_0x3cb3c6['locale'];if(_0xa588bd){if(_0xf0ee('0x17')==_0xa588bd[_0xf0ee('0x3')]){const _0x576749=_0xa588bd['commandParams'][0x0];return{'type':_0xf0ee('0x5'),'content':_0x50e6fd(_0x5b4f3c,_0xf0ee('0x1'),'\x22'+_0x576749+'\x22')};}return _0xf0ee('0x8')==_0xa588bd[_0xf0ee('0x3')]?{'type':_0xf0ee('0x5'),'content':_0x50e6fd(_0x5b4f3c,'*Remove\x20link*')}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cdf=['from','forceValue','afterInit','checkChild','numberedList','TodoListEditing','commandName','ELEMENT_TODO_LIST','isObject','previousSibling','_descriptionFactory','outdentList','todoList','bulletedList','filter','slice','selection','format','enableCommand','*Check\x20item*','replace','get','change','bulleted','todo','document','value','element','getAttribute','commands','add','model','before','createPositionAt','end','numbered','markBlockFormat','length','listIndent','has','ELEMENT_BULLETED_LIST','listItem','getSelectedBlocks','*Indent:*\x20%0','editor','indentList','checkTodoList','plugins','nextSibling','ELEMENT_LIST_ITEM','todoListChecked','TrackChangesEditing','*Uncheck\x20item*','name'];(function(_0x217049,_0x1cdf67){const _0x207ab8=function(_0x5b5037){while(--_0x5b5037){_0x217049['push'](_0x217049['shift']());}};_0x207ab8(++_0x1cdf67);}(_0x1cdf,0xf0));const _0x207a=function(_0x217049,_0x1cdf67){_0x217049=_0x217049-0x0;let _0x207ab8=_0x1cdf[_0x217049];return _0x207ab8;};import{Plugin as _0x554b2f}from'ckeditor5/src/core';import{getTranslation as _0x165b46}from'../utils/common-translations';export default class nt extends _0x554b2f{[_0x207a('0x20')](){const _0xaf41e=this[_0x207a('0x14')],_0x137760=_0xaf41e['locale'];if(!_0xaf41e[_0x207a('0x17')]['has']('ListEditing'))return;const _0xbbb55d=_0xaf41e[_0x207a('0x17')]['get'](_0x207a('0x1b')),_0x2712f6=_0xaf41e[_0x207a('0x17')][_0x207a('0xf')](_0x207a('0x23'));function _0x300807(_0xeef402){return()=>{const _0x578c50=_0xaf41e['model'][_0x207a('0x1')]['selection'],_0x3f86ee=_0xaf41e[_0x207a('0x5')][_0x207a('0x33')](_0xeef402);if(_0x3f86ee[_0x207a('0x2')])return void _0xaf41e['execute']('paragraph',{});const _0xdd17de=_0xeef402[_0x207a('0x2d')](0x0,-0x4),_0xe1dfd8=function(_0x56ab0c,_0x519d08,_0x4bf867){let _0x280f77=Array[_0x207a('0x1e')](_0x56ab0c)[_0x207a('0x2c')](_0x5d9e61=>function(_0x51ed45,_0x1ef6ef){return _0x1ef6ef[_0x207a('0x21')](_0x51ed45['parent'],'listItem')&&!_0x1ef6ef[_0x207a('0x26')](_0x51ed45);}(_0x5d9e61,_0x4bf867));_0x280f77=_0x280f77[_0x207a('0x2c')](_0x9f6b81=>!_0x9f6b81['is']('element','listItem')||_0x9f6b81[_0x207a('0x4')]('listType')!=_0x519d08);const _0x3a2bdd=new Set();for(const _0x3f90ea of _0x280f77)_0x3f90ea['is'](_0x207a('0x3'),_0x207a('0x11'))?_0x3a2bdd[_0x207a('0x6')](ne(_0x3f90ea)):_0x3a2bdd[_0x207a('0x6')](_0x3f90ea);return Array[_0x207a('0x1e')](_0x3a2bdd);}(_0x578c50[_0x207a('0x12')](),_0xdd17de,_0xaf41e['model']['schema']);_0xaf41e['model'][_0x207a('0x34')](()=>{for(const _0x58302b of _0xe1dfd8)_0xbbb55d[_0x207a('0xc')](_0x58302b,{'commandName':_0xeef402,'commandParams':[{'forceValue':!_0x3f86ee[_0x207a('0x2')]}],'formatGroupId':'blockName'},oe(_0x58302b));});};}function _0x2bc7db(_0x203e1b){return()=>{const _0x5d820f=function(_0x234802){let _0x3562b6=Array[_0x207a('0x1e')](_0x234802);const _0x3af984=_0x3562b6['findIndex'](_0xbfa39d=>'listItem'!=_0xbfa39d[_0x207a('0x1d')]);return _0x3af984>-0x1&&(_0x3562b6=_0x3562b6[_0x207a('0x2d')](0x0,_0x3af984)),_0x3562b6;}(_0xaf41e[_0x207a('0x7')][_0x207a('0x1')][_0x207a('0x2e')][_0x207a('0x12')]()),_0x35e3f2=_0xaf41e[_0x207a('0x7')]['createRange'](_0xaf41e[_0x207a('0x7')]['createPositionAt'](_0x5d820f[0x0],_0x207a('0x8')),_0xaf41e[_0x207a('0x7')][_0x207a('0x9')](_0x5d820f[_0x5d820f[_0x207a('0xd')]-0x1],_0x207a('0xa')));_0xaf41e['model'][_0x207a('0x34')](()=>{_0xbbb55d[_0x207a('0xc')](_0x35e3f2,{'commandName':_0x203e1b,'commandParams':[],'formatGroupId':_0x207a('0xe')},function(_0x2d50f6){const _0x11ce28=new Set();for(const _0x18f873 of _0x2d50f6){let _0xe88c5e=_0x18f873[_0x207a('0x18')];for(;_0xe88c5e&&_0xe88c5e[_0x207a('0x4')](_0x207a('0xe'))>_0x18f873[_0x207a('0x4')](_0x207a('0xe'));)_0x11ce28[_0x207a('0x6')](_0xe88c5e),_0xe88c5e=_0xe88c5e[_0x207a('0x18')];}return Array[_0x207a('0x1e')](_0x11ce28);}(_0x5d820f));});};}_0xbbb55d[_0x207a('0x30')](_0x207a('0x22'),_0x300807(_0x207a('0x22'))),_0xbbb55d[_0x207a('0x30')](_0x207a('0x2b'),_0x300807(_0x207a('0x2b'))),_0x2712f6&&_0xbbb55d[_0x207a('0x30')](_0x207a('0x2a'),_0x300807(_0x207a('0x2a'))),_0xbbb55d[_0x207a('0x30')](_0x207a('0x15'),_0x2bc7db(_0x207a('0x15'))),_0xbbb55d['enableCommand'](_0x207a('0x29'),_0x2bc7db(_0x207a('0x29'))),_0x2712f6&&_0xbbb55d[_0x207a('0x30')](_0x207a('0x16'),()=>{const _0x3341f7=_0xaf41e['commands'][_0x207a('0x33')](_0x207a('0x16')),_0x18f0b7=Array[_0x207a('0x1e')](_0x3341f7['_selectedElements']);_0x18f0b7[_0x207a('0x2c')](_0x1e9f9f=>_0x1e9f9f[_0x207a('0x4')](_0x207a('0x1a'))!=_0x3341f7['value']),_0xaf41e[_0x207a('0x7')][_0x207a('0x34')](()=>{for(const _0x29330e of _0x18f0b7)_0xbbb55d[_0x207a('0xc')](_0x29330e,{'commandName':_0x207a('0x16'),'commandParams':[{'forceValue':!_0x3341f7[_0x207a('0x2')]}]});});}),_0xbbb55d[_0x207a('0x28')]['registerElementLabel'](_0x207a('0x11'),_0x4ef837=>_0x165b46(_0x137760,_0x207a('0x19'),_0x4ef837)),_0xbbb55d[_0x207a('0x28')]['registerDescriptionCallback'](_0x512439=>{const {data:_0x279af6}=_0x512439;if(_0x279af6){if('numberedList'==_0x279af6[_0x207a('0x24')]||_0x207a('0x2b')==_0x279af6['commandName']||_0x207a('0x2a')==_0x279af6['commandName'])switch(_0x279af6['commandName'][_0x207a('0x32')]('List','')){case _0x207a('0x35'):return _0x235443(_0x165b46(_0x137760,_0x207a('0x10')));case _0x207a('0xb'):return _0x235443(_0x165b46(_0x137760,'ELEMENT_NUMBERED_LIST'));case _0x207a('0x0'):return _0x235443(_0x165b46(_0x137760,_0x207a('0x25')));}if(_0x207a('0x15')==_0x279af6[_0x207a('0x24')])return{'type':'format','content':_0x165b46(_0x137760,_0x207a('0x13'),_0x165b46(_0x137760,'ELEMENT_LIST_ITEM'))};if(_0x207a('0x29')==_0x279af6[_0x207a('0x24')])return{'type':'format','content':_0x165b46(_0x137760,'*Outdent:*\x20%0',_0x165b46(_0x137760,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x279af6[_0x207a('0x24')])return _0x279af6['commandParams'][0x0][_0x207a('0x1f')]?{'type':_0x207a('0x2f'),'content':_0x165b46(_0x137760,_0x207a('0x31'))}:{'type':_0x207a('0x2f'),'content':_0x165b46(_0x137760,_0x207a('0x1c'))};}function _0x235443(_0x2f8b8e){return{'type':_0x207a('0x2f'),'content':_0x165b46(_0x137760,'*Change\x20to:*\x20%0',_0x2f8b8e)};}});}}function ne(_0x2bd96f){const _0x2a6e8d=_0x2bd96f[_0x207a('0x4')](_0x207a('0xe'));if(0x0==_0x2a6e8d)return _0x2bd96f;let _0x2f8801=_0x2bd96f;for(;_0x2bd96f[_0x207a('0x27')]&&_0x2bd96f[_0x207a('0x27')]['is'](_0x207a('0x3'),_0x207a('0x11'));){const _0x3ee9e9=_0x2bd96f['previousSibling'][_0x207a('0x4')](_0x207a('0xe'));if(_0x3ee9e9==_0x2a6e8d)_0x2f8801=_0x2bd96f[_0x207a('0x27')];else{if(_0x3ee9e9<_0x2a6e8d)break;}_0x2bd96f=_0x2bd96f[_0x207a('0x27')];}return _0x2f8801;}function oe(_0xf14949){const _0x4b5b39=[];if(_0xf14949['is'](_0x207a('0x3'),_0x207a('0x11'))&&_0xf14949[_0x207a('0x4')]('listIndent')>0x0){let _0x53350c=_0xf14949[_0x207a('0x18')];for(;_0x53350c&&_0x207a('0x11')==_0x53350c[_0x207a('0x1d')]&&_0x53350c['getAttribute'](_0x207a('0xe'))==_0xf14949[_0x207a('0x4')]('listIndent');)_0x4b5b39['push'](_0x53350c),_0x53350c=_0x53350c[_0x207a('0x18')];}return _0x4b5b39;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3531=['_getTranslationKeyForListStyle','listItem','ListPropertiesEditing','commandName','forward','selection','toUpperCase','getListTypeFromListStyleType','length','startIndex','getSiblingNodes','backward','numbered','_LIST_','format','listReversed','editor','listStart','ListUtils','document','config','*Format:*\x20set\x20start\x20index\x20to\x20%0','markMultiRangeBlockFormat','replace','map','_descriptionFactory','_getSuggestionBlocks','plugins','*Format:*\x20set\x20order\x20to\x20reversed','flat','bind','model','handleListReversedCommand','createRange','listStyle','listType','createPositionAt','handleListStartCommand','type','*Change\x20to:*\x20%0','unshift','before','TrackChangesEditing','_getSuggestionBlocksForListStyle','filter','locale','*Format:*\x20set\x20order\x20to\x20regular','getAttribute','getLastPosition','getSelectedBlocks','handleListStyleCommand','getFirstPosition','push','change','element','enableCommand','get','from','registerDescriptionCallback','ELEMENT_','commandParams','handleDescriptions','parent','afterInit','list.properties'];(function(_0x54d6a7,_0x3531e6){const _0x129d6b=function(_0x1d968c){while(--_0x1d968c){_0x54d6a7['push'](_0x54d6a7['shift']());}};_0x129d6b(++_0x3531e6);}(_0x3531,0x1c8));const _0x129d=function(_0x54d6a7,_0x3531e6){_0x54d6a7=_0x54d6a7-0x0;let _0x129d6b=_0x3531[_0x54d6a7];return _0x129d6b;};import{Plugin as _0xf45050}from'ckeditor5/src/core';import{getTranslation as _0x49730e}from'../utils/common-translations';export default class st extends _0xf45050{[_0x129d('0x3e')](){if(!this[_0x129d('0xf')][_0x129d('0x1a')]['has'](_0x129d('0x1')))return;const _0x53e09b=this[_0x129d('0xf')][_0x129d('0x13')][_0x129d('0x37')](_0x129d('0x3f')),_0x220c16=this[_0x129d('0xf')]['plugins'][_0x129d('0x37')](_0x129d('0x29'));_0x53e09b['styles']&&_0x220c16[_0x129d('0x36')](_0x129d('0x21'),this[_0x129d('0x31')][_0x129d('0x1d')](this)),_0x53e09b['reversed']&&_0x220c16['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53e09b['startIndex']&&_0x220c16[_0x129d('0x36')](_0x129d('0x10'),this[_0x129d('0x24')][_0x129d('0x1d')](this)),_0x220c16[_0x129d('0x18')][_0x129d('0x39')](this[_0x129d('0x3c')][_0x129d('0x1d')](this));}[_0x129d('0x31')](_0x1f1948,_0x59071a={}){const _0x3b64bb=this[_0x129d('0xf')][_0x129d('0x1a')][_0x129d('0x37')]('TrackChangesEditing'),_0x48b254=this['_getSuggestionBlocksForListStyle']();this[_0x129d('0xf')][_0x129d('0x1e')]['change'](()=>{_0x3b64bb[_0x129d('0x15')](_0x48b254,{'commandName':'listStyle','commandParams':[{'type':_0x59071a['type']}],'formatGroupId':_0x129d('0x21')});});}[_0x129d('0x1f')](_0x47cf87,_0xd32cbe={}){const _0x28ad48=this[_0x129d('0xf')][_0x129d('0x1a')][_0x129d('0x37')](_0x129d('0x29')),_0x115803=this['_getSuggestionBlocks'](_0x603405=>_0x603405['is']('element','listItem')&&'numbered'===_0x603405[_0x129d('0x2e')]('listType'));if(_0x115803[_0x129d('0x7')]<0x1)return;const _0x560f2f=_0x115803[_0x129d('0x17')](_0x3cd18b=>this['editor'][_0x129d('0x1e')][_0x129d('0x20')](this[_0x129d('0xf')]['model'][_0x129d('0x23')](_0x3cd18b,'before'),this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x23')](_0x3cd18b,0x0)));this['editor']['model'][_0x129d('0x34')](()=>{_0x28ad48[_0x129d('0x15')](_0x560f2f,{'commandName':'listReversed','commandParams':[{'reversed':_0xd32cbe['reversed']}],'formatGroupId':'listReversed'});});}[_0x129d('0x24')](_0x5f51e7,_0xbd108f={}){const _0xaa6709=this[_0x129d('0xf')]['plugins'][_0x129d('0x37')](_0x129d('0x29')),_0xce49ef=this[_0x129d('0x19')](_0x14e52d=>_0x14e52d['is'](_0x129d('0x35'),'listItem')&&_0x129d('0xb')===_0x14e52d[_0x129d('0x2e')](_0x129d('0x22')));if(_0xce49ef['length']<0x1)return;const _0x23e5b7=_0xce49ef['map'](_0x1b4cb2=>this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x20')](this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x23')](_0x1b4cb2,_0x129d('0x28')),this[_0x129d('0xf')]['model'][_0x129d('0x23')](_0x1b4cb2,0x0)));this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x34')](()=>{_0xaa6709[_0x129d('0x15')](_0x23e5b7,{'commandName':_0x129d('0x10'),'commandParams':[{'startIndex':_0xbd108f[_0x129d('0x8')]}],'formatGroupId':_0x129d('0x10')});});}['handleDescriptions'](_0xa0d092){const _0x3ac463=this[_0x129d('0xf')][_0x129d('0x2c')],{data:_0x592d30}=_0xa0d092;if(!_0x592d30)return;let _0xb98bd1,_0x280e6f;switch(_0x592d30[_0x129d('0x2')]){case'listStyle':_0xb98bd1=_0x129d('0x26'),_0x280e6f={'type':_0x129d('0xd'),'content':_0x49730e(_0x3ac463,_0xb98bd1,_0x49730e(_0x3ac463,this[_0x129d('0x40')](_0x592d30[_0x129d('0x3b')][0x0][_0x129d('0x25')])))};break;case _0x129d('0xe'):_0xb98bd1=_0x592d30[_0x129d('0x3b')][0x0]['reversed']?_0x129d('0x1b'):_0x129d('0x2d'),_0x280e6f={'type':_0x129d('0xd'),'content':_0x49730e(_0x3ac463,_0xb98bd1)};break;case _0x129d('0x10'):_0xb98bd1=_0x129d('0x14'),_0x280e6f={'type':_0x129d('0xd'),'content':_0x49730e(_0x3ac463,_0xb98bd1,_0x592d30[_0x129d('0x3b')][0x0][_0x129d('0x8')])};}return _0x280e6f;}[_0x129d('0x2a')](){var _0x254c7e,_0x2785b4,_0x5ceb82,_0x445d58;const _0x3e78a9=this[_0x129d('0xf')][_0x129d('0x1a')][_0x129d('0x37')]('ListUtils');let _0x5241ff=Array[_0x129d('0x38')](this['editor'][_0x129d('0x1e')][_0x129d('0x12')][_0x129d('0x4')][_0x129d('0x30')]());return(null===(_0x254c7e=_0x5241ff[0x0])||void 0x0===_0x254c7e?void 0x0:_0x254c7e['is'](_0x129d('0x35'),_0x129d('0x0')))&&_0x5241ff[_0x129d('0x27')](..._0x3e78a9[_0x129d('0x9')](this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x12')][_0x129d('0x4')]['getFirstPosition'](),'backward')),(null===(_0x2785b4=_0x5241ff[_0x5241ff[_0x129d('0x7')]-0x1])||void 0x0===_0x2785b4?void 0x0:_0x2785b4['is']('element',_0x129d('0x0')))&&_0x5241ff[_0x129d('0x33')](..._0x3e78a9[_0x129d('0x9')](this[_0x129d('0xf')]['model'][_0x129d('0x12')][_0x129d('0x4')][_0x129d('0x2f')](),_0x129d('0x3'))),_0x5241ff=[...new Set(_0x5241ff)],(null===(_0x445d58=null===(_0x5ceb82=this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x12')][_0x129d('0x4')][_0x129d('0x32')]())||void 0x0===_0x5ceb82?void 0x0:_0x5ceb82[_0x129d('0x3d')])||void 0x0===_0x445d58?void 0x0:_0x445d58['is'](_0x129d('0x35'),_0x129d('0x0')))&&(_0x5241ff=_0x5241ff['filter'](_0xb5e0e=>_0xb5e0e['is'](_0x129d('0x35'),_0x129d('0x0')))),_0x5241ff;}['_getSuggestionBlocks'](_0x36e204){const _0x170128=this['editor'][_0x129d('0x1a')][_0x129d('0x37')]('ListUtils');let _0x33af27=Array[_0x129d('0x38')](this[_0x129d('0xf')][_0x129d('0x1e')]['document']['selection']['getSelectedBlocks']())[_0x129d('0x2b')](_0x36e204)[_0x129d('0x17')](_0x32a98a=>{const _0x382d2a=this[_0x129d('0xf')][_0x129d('0x1e')][_0x129d('0x23')](_0x32a98a,0x0);return[..._0x170128[_0x129d('0x9')](_0x382d2a,_0x129d('0xa')),..._0x170128[_0x129d('0x9')](_0x382d2a,_0x129d('0x3'))];})[_0x129d('0x1c')]();return _0x33af27=[...new Set(_0x33af27)],_0x33af27;}[_0x129d('0x40')](_0x95436f){return _0x129d('0x3a')+this[_0x129d('0xf')][_0x129d('0x1a')][_0x129d('0x37')](_0x129d('0x11'))[_0x129d('0x6')](_0x95436f)[_0x129d('0x5')]()+_0x129d('0xc')+_0x95436f[_0x129d('0x5')]()[_0x129d('0x16')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2048=['MediaEmbedEditing','data','TrackChangesEditing','for','showSuggestionHighlights','enableCommand','downcastDispatcher','conversion','_descriptionFactory','media','mediaEmbed','locale','has','createEmptyElement','div','registerElementLabel','plugins','get','afterInit','high','editor','attribute:url:media','ELEMENT_MEDIA','stop','dataDowncast','options','elementToElement'];(function(_0x4f7385,_0x20486e){const _0x4be657=function(_0x9c12ff){while(--_0x9c12ff){_0x4f7385['push'](_0x4f7385['shift']());}};_0x4be657(++_0x20486e);}(_0x2048,0x1b2));const _0x4be6=function(_0x4f7385,_0x20486e){_0x4f7385=_0x4f7385-0x0;let _0x4be657=_0x2048[_0x4f7385];return _0x4be657;};import{Plugin as _0x38d677}from'ckeditor5/src/core';import{getTranslation as _0x2219b2}from'../utils/common-translations';export default class ot extends _0x38d677{[_0x4be6('0x10')](){const _0xdd8693=this[_0x4be6('0x12')];if(!_0xdd8693[_0x4be6('0xe')][_0x4be6('0xa')](_0x4be6('0x19')))return;const _0x1522d3=_0xdd8693['plugins'][_0x4be6('0xf')](_0x4be6('0x0')),_0x57fb42=_0xdd8693[_0x4be6('0x9')];_0x1522d3[_0x4be6('0x3')](_0x4be6('0x8')),_0x1522d3[_0x4be6('0x6')][_0x4be6('0xd')](_0x4be6('0x7'),_0x8b5dc6=>_0x2219b2(_0x57fb42,_0x4be6('0x14'),_0x8b5dc6)),_0xdd8693[_0x4be6('0x5')][_0x4be6('0x1')](_0x4be6('0x16'))[_0x4be6('0x18')]({'model':_0x4be6('0x7'),'view':(_0x52f397,{writer:_0xfdb2d3,options:_0x1ca875})=>{if(_0x1ca875[_0x4be6('0x2')])return _0xfdb2d3[_0x4be6('0xb')](_0x4be6('0xc'));},'converterPriority':_0x4be6('0x11')}),_0xdd8693[_0x4be6('0x1a')][_0x4be6('0x4')]['on'](_0x4be6('0x13'),(_0x5e5cc5,_0x2f0c04,_0x4650da)=>{_0x4650da[_0x4be6('0x17')][_0x4be6('0x2')]&&_0x5e5cc5[_0x4be6('0x15')]();},{'priority':_0x4be6('0x11')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5452=['TrackChangesEditing','get','has','plugins','mention','MentionEditing','enableCommand'];(function(_0x2e14fd,_0x5452e2){const _0x4be579=function(_0x103ea0){while(--_0x103ea0){_0x2e14fd['push'](_0x2e14fd['shift']());}};_0x4be579(++_0x5452e2);}(_0x5452,0x125));const _0x4be5=function(_0x2e14fd,_0x5452e2){_0x2e14fd=_0x2e14fd-0x0;let _0x4be579=_0x5452[_0x2e14fd];return _0x4be579;};import{Plugin as _0x4d3f50}from'ckeditor5/src/core';export default class rt extends _0x4d3f50{['afterInit'](){const _0x4b2e06=this['editor'];_0x4b2e06[_0x4be5('0x4')][_0x4be5('0x3')](_0x4be5('0x6'))&&_0x4b2e06['plugins'][_0x4be5('0x2')](_0x4be5('0x1'))[_0x4be5('0x0')](_0x4be5('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d99=['get','pageBreak','ELEMENT_PAGE_BREAK','PageBreakEditing','TrackChangesEditing','locale','has','registerElementLabel','editor','plugins','_descriptionFactory','afterInit'];(function(_0x1248df,_0x2d9933){const _0x391a9d=function(_0x347b55){while(--_0x347b55){_0x1248df['push'](_0x1248df['shift']());}};_0x391a9d(++_0x2d9933);}(_0x2d99,0xb0));const _0x391a=function(_0x1248df,_0x2d9933){_0x1248df=_0x1248df-0x0;let _0x391a9d=_0x2d99[_0x1248df];return _0x391a9d;};import{Plugin as _0x564fb0}from'ckeditor5/src/core';import{getTranslation as _0x2c4a19}from'../utils/common-translations';export default class at extends _0x564fb0{[_0x391a('0x3')](){const _0x47647c=this[_0x391a('0x0')];if(!_0x47647c[_0x391a('0x1')][_0x391a('0xa')](_0x391a('0x7')))return;_0x47647c[_0x391a('0x1')][_0x391a('0x4')]('TrackChangesEditing')['enableCommand'](_0x391a('0x5'));const _0x23053a=_0x47647c[_0x391a('0x1')]['get'](_0x391a('0x8')),_0x1fe866=_0x47647c[_0x391a('0x9')];_0x23053a[_0x391a('0x2')][_0x391a('0xb')](_0x391a('0x5'),_0x1432ae=>_0x2c4a19(_0x1fe866,_0x391a('0x6'),_0x1432ae));}}
|