@ckeditor/ckeditor5-track-changes 39.0.0 → 39.0.2
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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- 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 -7
- 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 _0x449e=['item','formatInline','_descriptionFactory','value','registerDescriptionCallback','isCollapsed','*Set\x20highlight:*\x20%0','hasAttribute','push','getRanges','title','HighlightEditing','backward','get','getLastMatchingPosition','find','model','afterInit','highlight.options','color','getFirstPosition','toLowerCase','plugins','FORMAT_HIGHLIGHT','getAttribute','format','highlight','locale','change','*Remove\x20highlight*','selection'];(function(_0x5c5061,_0x449ec3){const _0x3f1441=function(_0x2dcba4){while(--_0x2dcba4){_0x5c5061['push'](_0x5c5061['shift']());}};_0x3f1441(++_0x449ec3);}(_0x449e,0x1e8));const _0x3f14=function(_0x5c5061,_0x449ec3){_0x5c5061=_0x5c5061-0x0;let _0x3f1441=_0x449e[_0x5c5061];return _0x3f1441;};import{Plugin as _0x9fd500}from'ckeditor5/src/core';import{getTranslation as _0x65a131}from'../utils/common-translations';import{getRangesWithAttribute as _0x129c76}from'./utils';export default class K extends _0x9fd500{[_0x3f14('0x19')](){const _0x3a7b7f=this['editor'];if(!_0x3a7b7f[_0x3f14('0x1e')]['has'](_0x3f14('0x13')))return;const _0x3d4223=_0x3a7b7f[_0x3f14('0x1e')][_0x3f14('0x15')]('TrackChangesEditing');_0x3d4223['enableCommand'](_0x3f14('0x3'),(_0x33551d,_0x400129={})=>{const _0x305689=_0x3a7b7f[_0x3f14('0x18')]['document'][_0x3f14('0x7')],_0x29ed39=_0x305689[_0x3f14('0x1')](_0x3f14('0x3'));let _0x2eea45=_0x400129[_0x3f14('0xb')],_0x34a276=[];if(_0x305689[_0x3f14('0xd')]){const _0x2ea5af=_0x305689[_0x3f14('0x1c')]();if(!_0x305689[_0x3f14('0xf')](_0x3f14('0x3')))return void _0x33551d(_0x400129);{const _0x221044=_0x2de050=>_0x2de050[_0x3f14('0x8')][_0x3f14('0x1')]('highlight')===_0x29ed39,_0x5212d7=_0x2ea5af[_0x3f14('0x16')](_0x221044,{'direction':_0x3f14('0x14')}),_0x142bf1=_0x2ea5af[_0x3f14('0x16')](_0x221044);_0x34a276=[_0x3a7b7f[_0x3f14('0x18')]['createRange'](_0x5212d7,_0x142bf1)],_0x2eea45==_0x29ed39&&(_0x2eea45=null);}}else for(const _0x3cdba8 of _0x305689[_0x3f14('0x11')]())_0x2eea45?_0x34a276[_0x3f14('0x10')](_0x3cdba8):_0x34a276[_0x3f14('0x10')](..._0x129c76(_0x3f14('0x3'),_0x3cdba8,_0x3a7b7f[_0x3f14('0x18')]));_0x3a7b7f[_0x3f14('0x18')][_0x3f14('0x5')](()=>{for(const _0x33349c of _0x34a276)_0x3d4223['markInlineFormat'](_0x33349c,{'commandName':'highlight','commandParams':[{'value':_0x2eea45}]});});});const _0x355e96=_0x3a7b7f[_0x3f14('0x4')];_0x3d4223[_0x3f14('0xa')][_0x3f14('0xc')](_0x48ea88=>{const {type:_0x48f3e7,data:_0x3c4b3b}=_0x48ea88;if(_0x3f14('0x9')==_0x48f3e7&&_0x3c4b3b&&_0x3f14('0x3')==_0x3c4b3b['commandName']){const _0x18c63d=_0x355e96['t'],_0x328ada=_0x3c4b3b['commandParams'][0x0][_0x3f14('0xb')];if(_0x328ada){const _0x308e22=_0x3a7b7f['config'][_0x3f14('0x15')](_0x3f14('0x1a'))[_0x3f14('0x17')](_0xae7ec=>_0xae7ec[_0x3f14('0x18')]==_0x328ada),_0x496258=_0x18c63d(_0x308e22[_0x3f14('0x12')])[_0x3f14('0x1d')]();return{'type':'format','content':_0x65a131(_0x355e96,_0x3f14('0xe'),_0x496258),'color':{'value':_0x308e22[_0x3f14('0x1b')],'title':_0x308e22['title']}};}return{'type':_0x3f14('0x2'),'content':_0x65a131(_0x355e96,_0x3f14('0x6'),_0x65a131(_0x355e96,_0x3f14('0x0')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x499c=['createEmptyElement','_descriptionFactory','plugins','createPositionAt','registerElementLabel','showSuggestionHighlights','conversion','HorizontalLineEditing','has','locale','TrackChangesEditing','horizontalLine','for','createContainerElement','afterInit','elementToStructure','high','enableCommand','ck-horizontal-line','get'];(function(_0x4fa348,_0x499c1d){const _0x300340=function(_0x30d858){while(--_0x30d858){_0x4fa348['push'](_0x4fa348['shift']());}};_0x300340(++_0x499c1d);}(_0x499c,0x1b2));const _0x3003=function(_0x4fa348,_0x499c1d){_0x4fa348=_0x4fa348-0x0;let _0x300340=_0x499c[_0x4fa348];return _0x300340;};import{Plugin as _0x2e6241}from'ckeditor5/src/core';import{getTranslation as _0x5dc28c}from'../utils/common-translations';export default class Q extends _0x2e6241{[_0x3003('0x0')](){const _0x93f457=this['editor'];if(!_0x93f457[_0x3003('0x8')][_0x3003('0xe')](_0x3003('0xd')))return;_0x93f457[_0x3003('0x8')][_0x3003('0x5')]('TrackChangesEditing')[_0x3003('0x3')](_0x3003('0x11'));const _0x44f700=_0x93f457[_0x3003('0x8')][_0x3003('0x5')](_0x3003('0x10')),_0x436028=_0x93f457[_0x3003('0xf')];_0x44f700[_0x3003('0x7')][_0x3003('0xa')]('horizontalLine',_0x17c7dc=>_0x5dc28c(_0x436028,'ELEMENT_HORIZONTAL_LINE',_0x17c7dc)),_0x93f457[_0x3003('0xc')][_0x3003('0x12')]('dataDowncast')[_0x3003('0x1')]({'model':_0x3003('0x11'),'view':(_0x3c98ba,{writer:_0x34ca91,options:_0x2ce38a})=>{if(!_0x2ce38a[_0x3003('0xb')])return null;const _0x5df9c4=_0x34ca91[_0x3003('0x13')]('div'),_0x5f288f=_0x34ca91[_0x3003('0x6')]('hr');return _0x34ca91['addClass'](_0x3003('0x4'),_0x5df9c4),_0x34ca91['insert'](_0x34ca91[_0x3003('0x9')](_0x5df9c4,0x0),_0x5f288f),_0x5df9c4;},'converterPriority':_0x3003('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b92=['has','*Change\x20%0\x20content*','change','enableCommand','TrackChangesEditing','editing','plugins','view','cancel','_descriptionFactory','commandName','editor','registerDescriptionCallback','get','ELEMENT_HTML_EMBED','selection','registerElementLabel','htmlEmbed','document','locale','rawHtmlApi','value','rawHtml'];(function(_0x33e6b3,_0x3b9285){const _0x3a60da=function(_0x4e9932){while(--_0x4e9932){_0x33e6b3['push'](_0x33e6b3['shift']());}};_0x3a60da(++_0x3b9285);}(_0x3b92,0x13e));const _0x3a60=function(_0x33e6b3,_0x3b9285){_0x33e6b3=_0x33e6b3-0x0;let _0x3a60da=_0x3b92[_0x33e6b3];return _0x3a60da;};import{Plugin as _0x34063a}from'ckeditor5/src/core';import{getTranslation as _0x573a39}from'../utils/common-translations';export default class V extends _0x34063a{['afterInit'](){const _0x5f0569=this[_0x3a60('0xf')];if(!_0x5f0569['plugins'][_0x3a60('0x4')]('HtmlEmbed'))return;const _0x2f9a6c=_0x5f0569[_0x3a60('0xa')][_0x3a60('0x11')](_0x3a60('0x8')),_0x290822=_0x5f0569[_0x3a60('0x0')],_0x3b7a57=_0x5f0569[_0x3a60('0x9')][_0x3a60('0xb')][_0x3a60('0x16')][_0x3a60('0x13')];_0x2f9a6c[_0x3a60('0xd')][_0x3a60('0x14')]('rawHtml',_0x485d68=>_0x573a39(_0x290822,_0x3a60('0x12'),_0x485d68)),_0x5f0569['plugins'][_0x3a60('0x11')](_0x3a60('0x8'))[_0x3a60('0x7')](_0x3a60('0x15'),(_0x42c17a,_0x5d8aa3)=>{const _0x408c80=_0x5f0569['model'],_0x2bd966=_0x408c80[_0x3a60('0x16')][_0x3a60('0x13')];_0x408c80[_0x3a60('0x6')](()=>{const _0x3e3b64=function(_0x1c807a){const _0x4811c3=_0x1c807a['getSelectedElement']();if(_0x4811c3&&_0x4811c3['is']('element',_0x3a60('0x3')))return _0x1c807a['getSelectedElement']();return null;}(_0x2bd966);if(!_0x3e3b64)return void _0x42c17a(null);const _0x1ff81e=_0x3e3b64['getAttribute'](_0x3a60('0x2'))||'';if(void 0x0===_0x5d8aa3)return;if(_0x5d8aa3===_0x1ff81e)return;_0x2f9a6c['markBlockFormat'](_0x3e3b64,{'commandName':_0x3a60('0x15'),'commandParams':[_0x5d8aa3]}),_0x3b7a57['getSelectedElement']()['getCustomProperty'](_0x3a60('0x1'))[_0x3a60('0xc')]();});}),_0x2f9a6c[_0x3a60('0xd')][_0x3a60('0x10')](_0xbadb08=>{const {data:_0x242a25}=_0xbadb08;if(_0x242a25&&_0x3a60('0x15')==_0x242a25[_0x3a60('0xe')]){const _0x53bce3=_0x573a39(_0x290822,_0x3a60('0x12'));return{'type':'format','content':_0x573a39(_0x290822,_0x3a60('0x5'),_0x53bce3)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1329=['ImageBlockEditing','isInContent','accept','isInlineImage','fromPosition','commandParams','isEqual','getChangedMarkers','get','shouldConvertImageType','join','ImageStyleEditing','_descriptionFactory','length','markBlockFormat','ImageTextAlternativeEditing','getSuggestionCallback','getAttribute','_findSuggestions','forceDefaultExecution','createRange','imageStyle','_splitMarkerName','format','editor','getClosestSelectedImageElement','createRangeOn','toNext','uploadImage','start','convertInlineImageToBlock','head','find','insertImage','formatBlock','discardSuggestion','FORMAT_SIDE_IMAGE','filter','from','next','ELEMENT_CAPTION','isOwn','end','insertion','getContainedElement','imageCaption','removeObject','commands','refresh','ImageUtils','discard','differ','getSuggestion','registerPostFixer','chain','imageBlock','isCollapsed','markInlineFormat','locale','getCaptionFromImageModelElement','detach','nodeAfter','enableCommand','registerDescriptionCallback','markDeletion','isIntersecting','previous','nodeBefore','imageStylePreApply','commandName','toggleImageCaption','subType','_suggestionFactory','Users','model','backward','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','selection','ImageResize','isBefore','change','ImageInlineEditing','ImageCaptionEditing','registerCustomCallback','has','alt','name','value','newValue','type','newRange','findIndex','TrackChangesEditing','document','caption','width','getFirstRange','ImageUploadEditing','forEach','convertBlockImageToInline','registerElementLabel','plugins','imageTextAlternative','imageTypeInline','forward','hasAttribute','isBlockImage','*Reset\x20image\x20width*','Inline\x20image\x20to\x20block\x20image','title','imageStylePostApply','ImageEditing','toPrevious','imageTypeBlock','resizeImage','commandReversedParams','markInsertion','schema','deletion','formatInline'];(function(_0x2764cd,_0x13290b){const _0x47e429=function(_0x36983c){while(--_0x36983c){_0x2764cd['push'](_0x2764cd['shift']());}};_0x47e429(++_0x13290b);}(_0x1329,0x109));const _0x47e4=function(_0x2764cd,_0x13290b){_0x2764cd=_0x2764cd-0x0;let _0x47e429=_0x1329[_0x2764cd];return _0x47e429;};import{Plugin as _0x10774f}from'ckeditor5/src/core';import{LivePosition as _0x2fc7c7}from'ckeditor5/src/engine';import{uid as _0xb511d0}from'ckeditor5/src/utils';import{getTranslation as _0x2f98da}from'../utils/common-translations';export default class X extends _0x10774f{['afterInit'](){const _0x20bc1d=this[_0x47e4('0x1')];if(!_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x59')))return;const _0x26a978=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x46')),_0x56a0e5=_0x20bc1d['plugins'][_0x47e4('0x6a')](_0x47e4('0x1a')),_0x247065={},_0x2064d1=_0x20bc1d[_0x47e4('0x23')];if(_0x26a978[_0x47e4('0x27')](_0x47e4('0xa')),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x20'),_0x61c6e2=>_0x2f98da(_0x2064d1,'ELEMENT_IMAGE',_0x61c6e2)),_0x26a978['_descriptionFactory']['registerElementLabel']('imageInline',_0x3830ac=>_0x2f98da(_0x2064d1,'ELEMENT_INLINE_IMAGE',_0x3830ac)),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x48'),()=>_0x2f98da(_0x2064d1,_0x47e4('0x11'))),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x4b'))&&_0x26a978['enableCommand'](_0x47e4('0x5')),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x62'))&&_0x20bc1d['plugins']['has'](_0x47e4('0x3b'))&&(_0x26a978[_0x47e4('0x27')]('imageTypeInline',(_0xf82b9a,_0x41bba0)=>{const _0x41e72a=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]);_0x20bc1d['model'][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x41e72a,{'commandName':_0x47e4('0x51'),'commandParams':[_0x41bba0]},[],_0x47e4('0x4d'));});}),_0x26a978['enableCommand'](_0x47e4('0x5b'),(_0x2b830a,_0x4e23a0)=>{_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](_0x4f0d76=>{let _0x4a56ca=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x1170d9=_0x2fc7c7[_0x47e4('0x66')](_0x432e81[_0x47e4('0x6')],_0x47e4('0x5a')),_0x23a671=_0x2fc7c7['fromPosition'](_0x432e81[_0x47e4('0x13')],_0x47e4('0x4'));_0x26a978[_0x47e4('0x75')](()=>_0x2b830a(_0x4e23a0)),_0x4a56ca=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x3969ae=_0x4f0d76[_0x47e4('0x76')](_0x1170d9,_0x23a671);_0x1170d9['detach'](),_0x23a671[_0x47e4('0x25')](),_0x26a978[_0x47e4('0x70')](_0x4a56ca,{'commandName':_0x47e4('0x51'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x3969ae[_0x47e4('0x6')][_0x47e4('0x39')](_0x432e81[_0x47e4('0x6')])&&_0x26a978['markInsertion'](_0x4f0d76[_0x47e4('0x76')](_0x3969ae[_0x47e4('0x6')],_0x432e81[_0x47e4('0x6')]),_0x47e4('0x7')),_0x432e81[_0x47e4('0x13')][_0x47e4('0x39')](_0x3969ae[_0x47e4('0x13')])&&_0x26a978[_0x47e4('0x5e')](_0x4f0d76[_0x47e4('0x76')](_0x432e81[_0x47e4('0x13')],_0x3969ae['end']),'convertInlineImageToBlock');});}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'convertInlineImageToBlock',_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x7'),_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock','convertInlineImageToBlock','discard',_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')]('formatBlock','',_0x47e4('0x64'))),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),'join',()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),_0x47e4('0x1b'),([_0xe72aaa])=>{const _0x4fc33d=_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')](_0x47e4('0x14'),'',_0x47e4('0x1b'));let _0x1ddc6d=_0xe72aaa[_0x47e4('0x6')],_0x468694=_0xe72aaa['end'];const _0x45c8da=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')]['getNearestSelectionRange'](_0x1ddc6d,_0x47e4('0x34')),_0x1c9f6e=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')][_0x47e4('0x36')](_0x468694,_0x47e4('0x52'));_0x45c8da[_0x47e4('0x21')]&&(_0x1ddc6d=_0x45c8da[_0x47e4('0x6')]),_0x1c9f6e['isCollapsed']&&(_0x468694=_0x1c9f6e[_0x47e4('0x13')]),_0x4fc33d([_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x76')](_0x1ddc6d,_0x468694)]);}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock',_0x47e4('0x7'),_0x47e4('0x1f'),_0x3bcbb8),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('insertion','convertInlineImageToBlock',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x3c'))&&(_0x26a978['enableCommand'](_0x47e4('0x2f'),(_0x420cf2,_0x22afff)=>{const _0x3aa95e=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageCaptionUtils');let _0x79a594=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594);_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x3b874a)return void _0x26a978[_0x47e4('0x29')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a));const _0x575c11=_0x56a0e5[_0x47e4('0x54')](_0x79a594);_0x420cf2(_0x22afff),_0x79a594=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594),_0x26a978[_0x47e4('0x5e')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a),_0x575c11?null:_0x47e4('0x16'));});}),_0x26a978[_0x47e4('0x31')]['registerCustomCallback'](_0x47e4('0x14'),'imageCaption',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d[_0x47e4('0x4f')]['has'](_0x47e4('0x6d'))){_0x26a978[_0x47e4('0x27')](_0x47e4('0x77'),(_0x4bfc61,_0x55f5f4)=>{const _0x2b3f6a=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x32'))['me'],_0x4eae08=_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x77'));let _0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d['model'][_0x47e4('0x3')](_0x2684c3),_0x464480=_0x4eae08['value'];if(_0x464480==_0x55f5f4[_0x47e4('0x41')])return;const _0x155f3b={'commandName':'imageStyle','commandParams':[_0x55f5f4],'formatGroupId':_0xb511d0()};_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x26a978['getSuggestions']()[_0x47e4('0xe')](_0x4cd7a5=>_0x4cd7a5[_0x47e4('0x63')]&&_0x2b3f6a==_0x4cd7a5['author']&&(_0x47e4('0xb')==_0x4cd7a5['type']||_0x47e4('0x61')==_0x4cd7a5[_0x47e4('0x43')])&&(_0x47e4('0x2d')==_0x4cd7a5[_0x47e4('0x30')]||'imageStylePostApply'==_0x4cd7a5[_0x47e4('0x30')])&&_0x4cd7a5[_0x47e4('0x4a')]()[_0x47e4('0x68')](_0x470413))[_0x47e4('0x4c')](_0x4c8742=>_0x26a978['discardSuggestion'](_0x4c8742[_0x47e4('0x8')])),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x2684c3),_0x4eae08[_0x47e4('0x19')](),_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x51'))[_0x47e4('0x19')](),_0x20bc1d['commands'][_0x47e4('0x6a')](_0x47e4('0x5b'))[_0x47e4('0x19')](),_0x464480=_0x4eae08['value'],_0x464480!=_0x55f5f4[_0x47e4('0x41')])return _0x56a0e5[_0x47e4('0x65')](_0x2684c3)&&_0x4eae08[_0x47e4('0x6b')](_0x55f5f4[_0x47e4('0x41')],_0x2684c3)?(_0x4bfc61(_0x55f5f4),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),void _0x26a978['markBlockFormat'](_0x2684c3,{..._0x155f3b,'commandReversedParams':[{'value':_0x464480||null}]},[],_0x47e4('0x2d'))):void(_0x56a0e5[_0x47e4('0x54')](_0x2684c3)?_0x26a978[_0x47e4('0x70')](_0x2684c3,_0x155f3b,[],_0x47e4('0x58')):_0x26a978[_0x47e4('0x22')](_0x470413,_0x155f3b,_0x47e4('0x58')));});});for(const _0x29dc0b of _0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageStyleEditing')['normalizedStyles'])_0x247065[_0x29dc0b[_0x47e4('0x40')]]=_0x29dc0b[_0x47e4('0x57')]['toLowerCase']();_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x61'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'imageStylePreApply',_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1b'),(_0x577b27,_0x25a4f8)=>{_0x26a978[_0x47e4('0x31')]['getSuggestionCallback'](_0x47e4('0xb'),'',_0x47e4('0x64'))(_0x577b27,{'commandName':_0x25a4f8['commandName'],'commandParams':_0x25a4f8[_0x47e4('0x5d')]});}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1f'),_0x3bcbb8);}const _0x1ddc98=[{'type':_0x47e4('0xb'),'subType':_0x47e4('0x2d')},{'type':_0x47e4('0x14'),'subType':_0x47e4('0x16')},{'type':_0x47e4('0xb'),'subType':'convertInlineImageToBlock'},{'type':_0x47e4('0x14'),'subType':'convertInlineImageToBlock'}];function _0x3f5eb8(_0x4158dc,_0x383b56){const _0x12336a=_0x1ddc98[_0x47e4('0x45')](({type:_0x3e200e,subType:_0x1496d4})=>_0x4158dc[_0x47e4('0x43')]==_0x3e200e&&_0x4158dc[_0x47e4('0x30')]==_0x1496d4),_0x5f065b=_0x1ddc98[_0x47e4('0x45')](({type:_0x2fbdc2,subType:_0x638628})=>_0x383b56[_0x47e4('0x43')]==_0x2fbdc2&&_0x383b56['subType']==_0x638628);if(_0x12336a<0x0||_0x5f065b<0x0)return!0x1;const _0x5bd65a=_0x4158dc['getFirstRange'](),_0x33c763=_0x383b56[_0x47e4('0x4a')]();if((0x0==_0x12336a||0x1==_0x12336a)&&0x2==_0x5f065b&&_0x5bd65a[_0x47e4('0x2a')](_0x33c763))return!0x0;if(0x2==_0x12336a&&0x3==_0x5f065b){const _0x550bbf=_0x26a978[_0x47e4('0x74')](_0x5bd65a,_0x47e4('0x14'))[_0x47e4('0xe')](({suggestion:_0x57c19a,meta:_0x326134})=>_0x326134[_0x47e4('0x12')]&&_0x47e4('0x7')==_0x57c19a[_0x47e4('0x30')]);if(_0x550bbf[_0x47e4('0x6f')]>0x1&&_0x33c763[_0x47e4('0x13')]['isEqual'](_0x5bd65a[_0x47e4('0x6')]))return!0x0;if(0x1==_0x550bbf[_0x47e4('0x6f')]&&(_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x13')])||_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x6')])))return!0x0;}if(0x3==_0x12336a&&0x3==_0x5f065b&&_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x39')](_0x33c763[_0x47e4('0x6')])){const _0x1397e9=_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x26')],_0xf774d9=_0x33c763[_0x47e4('0x6')][_0x47e4('0x2c')];return _0x56a0e5[_0x47e4('0x54')](_0x1397e9)&&_0x1397e9===_0xf774d9;}return!0x1;}function _0x3bcbb8(_0x4dc3c5,_0x284995){return _0x3f5eb8(_0x4dc3c5,_0x284995)?[_0x4dc3c5,_0x284995]:_0x3f5eb8(_0x284995,_0x4dc3c5)?[_0x284995,_0x4dc3c5]:null;}_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1e')](()=>{let _0x16a646=!0x1;const _0x4958c2=Array[_0x47e4('0xf')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1c')][_0x47e4('0x69')]());for(const {name:_0x1e6919,data:_0x4ea86d}of _0x4958c2){const {group:_0x2bf60c,type:_0x31715e,subType:_0x271f85,id:_0x50bc3b}=_0x26a978[_0x47e4('0x78')](_0x1e6919);if('suggestion'==_0x2bf60c&&_0x26a978['hasSuggestion'](_0x50bc3b)){if(_0x47e4('0xb')==_0x31715e&&('imageStylePreApply'==_0x271f85||'imageStylePostApply'==_0x271f85)){const _0x30dca4=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);if(_0x4ea86d['newRange']){const _0xe13c95=_0x30dca4[_0x47e4('0x4a')]()[_0x47e4('0x15')]();if(_0x56a0e5[_0x47e4('0x54')](_0xe13c95))continue;_0x26a978['discardSuggestion'](_0x30dca4),_0x16a646=!0x0;}}if(_0x47e4('0x14')==_0x31715e&&'imageCaption'==_0x271f85&&!_0x4ea86d[_0x47e4('0x44')]){const _0xaaac51=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);_0xaaac51['next']&&_0xaaac51[_0x47e4('0x10')][_0x47e4('0x63')]&&(_0x26a978[_0x47e4('0xc')](_0xaaac51[_0x47e4('0x10')]),_0x16a646=!0x0);}}}return _0x16a646;}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x38'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x5c'),(_0x1820a4,_0x2fa6d5)=>{const _0x15c3b4=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]);_0x15c3b4[_0x47e4('0x73')](_0x47e4('0x49'))!=_0x2fa6d5[_0x47e4('0x49')]&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x15c3b4,{'commandName':'resizeImage','commandParams':[_0x2fa6d5]});});}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x71'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x50'),(_0x1f1102,_0x3498a6)=>{const _0x400716=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]);(_0x400716[_0x47e4('0x53')](_0x47e4('0x3f'))?_0x400716[_0x47e4('0x73')](_0x47e4('0x3f')):'')!=_0x3498a6['newValue']&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978[_0x47e4('0x70')](_0x400716,{'commandName':'imageTextAlternative','commandParams':[_0x3498a6]});});}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x5208a5=>{if(!!_0x1ddc98[_0x47e4('0x9')](({type:_0x4f860f,subType:_0x3c4429})=>_0x5208a5[_0x47e4('0x43')]==_0x4f860f&&_0x5208a5['subType']==_0x3c4429))return _0x5208a5[_0x47e4('0x2b')]?{}:void 0x0;}),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x3851ea=>{if(_0x47e4('0x14')==_0x3851ea['type']||_0x47e4('0x60')==_0x3851ea[_0x47e4('0x43')]){const _0x3dba8c=_0x3851ea['getContainedElement']();if(_0x3dba8c&&_0x3dba8c['is']('element','caption'))return{'type':_0x47e4('0x14')==_0x3851ea[_0x47e4('0x43')]?'addObject':_0x47e4('0x17'),'element':_0x3dba8c,'quantity':0x1};}}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x3b06f8=>_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&'convertInlineImageToBlock'==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':_0x47e4('0x56')}:_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&_0x47e4('0x4d')==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x30bfa1=>{const {data:_0x1c910a}=_0x30bfa1;if(_0x1c910a){if('imageStyle'==_0x1c910a[_0x47e4('0x2e')]){const _0x2cda3f=_0x1c910a[_0x47e4('0x67')][0x0]['value'];return _0x4315fb('side'===_0x2cda3f?_0x2f98da(_0x2064d1,_0x47e4('0xd')):_0x247065[_0x2cda3f]||_0x2cda3f);}if(_0x47e4('0x50')==_0x1c910a[_0x47e4('0x2e')]){const _0x542073=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x42')];return _0x542073?{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x35'),'\x22'+_0x542073+'\x22')}:{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Remove\x20image\x20text\x20alternative*')};}if(_0x47e4('0x5c')==_0x1c910a['commandName']){const _0x2fc4ae=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x49')];return _0x2fc4ae?{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Set\x20image\x20width:*\x20%0',_0x2fc4ae)}:{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x55'))};}}function _0x4315fb(_0x4565fb){return{'type':'format','content':_0x2f98da(_0x2064d1,'*Format:*\x20%0',_0x4565fb)};}});}}
|
|
23
|
+
const _0x5a49=['ImageStyleEditing','markInlineFormat','getSuggestionCallback','insertImage','_suggestionFactory','formatBlock','isBlockImage','imageStyle','addObject','forceDefaultExecution','ImageCaptionUtils','length','refresh','imageBlock','commandName','backward','_findSuggestions','getClosestSelectedImageElement','toggleImageCaption','document','forward','registerElementLabel','head','registerCustomCallback','editor','createRange','suggestion','getFirstRange','accept','newValue','nodeAfter','*Format:*\x20%0','from','newRange','detach','imageStylePreApply','registerPostFixer','ImageUploadEditing','commandParams','ImageCaptionEditing','ImageBlockEditing','discardSuggestion','fromPosition','isInContent','get','markBlockFormat','previous','type','name','registerDescriptionCallback','schema','getChangedMarkers','isOwn','alt','*Reset\x20image\x20width*','imageTextAlternative','title','hasAttribute','convertBlockImageToInline','selection','insertion','ImageTextAlternativeEditing','model','getCaptionFromImageModelElement','change','getAttribute','getNearestSelectionRange','format','caption','find','filter','next','plugins','TrackChangesEditing','uploadImage','removeObject','isEqual','_splitMarkerName','differ','getSuggestion','formatInline','markInsertion','toPrevious','afterInit','convertInlineImageToBlock','side','resizeImage','imageStylePostApply','*Set\x20image\x20text\x20alternative:*\x20%0','getSuggestions','width','findIndex','subType','start','shouldConvertImageType','Inline\x20image\x20to\x20block\x20image','imageTypeBlock','isBefore','imageTypeInline','Users','*Remove\x20image\x20text\x20alternative*','discard','getContainedElement','imageCaption','commands','author','forEach','enableCommand','nodeBefore','join','hasSuggestion','element','toLowerCase','ELEMENT_INLINE_IMAGE','has','chain','ImageUtils','end','ELEMENT_IMAGE','_descriptionFactory','createRangeOn','value'];(function(_0x165973,_0x5a49cb){const _0x32e453=function(_0x100f8a){while(--_0x100f8a){_0x165973['push'](_0x165973['shift']());}};_0x32e453(++_0x5a49cb);}(_0x5a49,0xc1));const _0x32e4=function(_0x165973,_0x5a49cb){_0x165973=_0x165973-0x0;let _0x32e453=_0x5a49[_0x165973];return _0x32e453;};import{Plugin as _0x5c8876}from'ckeditor5/src/core';import{LivePosition as _0x3d1457}from'ckeditor5/src/engine';import{uid as _0x2589f0}from'ckeditor5/src/utils';import{getTranslation as _0x5747b3}from'../utils/common-translations';export default class X extends _0x5c8876{[_0x32e4('0xc')](){const _0x2902be=this[_0x32e4('0x4b')];if(!_0x2902be['plugins'][_0x32e4('0x2b')]('ImageEditing'))return;const _0x10fe2d=_0x2902be[_0x32e4('0x1')]['get'](_0x32e4('0x2')),_0x3708ef=_0x2902be['plugins'][_0x32e4('0x5f')](_0x32e4('0x2d')),_0x2b7392={},_0x47202d=_0x2902be['locale'];if(_0x10fe2d[_0x32e4('0x24')](_0x32e4('0x36')),_0x10fe2d[_0x32e4('0x30')][_0x32e4('0x48')](_0x32e4('0x40'),_0x5ba8fc=>_0x5747b3(_0x47202d,_0x32e4('0x2f'),_0x5ba8fc)),_0x10fe2d['_descriptionFactory'][_0x32e4('0x48')]('imageInline',_0x147f21=>_0x5747b3(_0x47202d,_0x32e4('0x2a'),_0x147f21)),_0x10fe2d[_0x32e4('0x30')]['registerElementLabel'](_0x32e4('0x77'),()=>_0x5747b3(_0x47202d,'ELEMENT_CAPTION')),_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')](_0x32e4('0x58'))&&_0x10fe2d[_0x32e4('0x24')](_0x32e4('0x3')),_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')](_0x32e4('0x5b'))&&_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')]('ImageInlineEditing')&&(_0x10fe2d[_0x32e4('0x24')]('imageTypeInline',(_0x40c6da,_0x3c1cc2)=>{const _0x25ea53=_0x3708ef[_0x32e4('0x44')](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')][_0x32e4('0x6e')]);_0x2902be[_0x32e4('0x71')]['change'](()=>{_0x10fe2d[_0x32e4('0x60')](_0x25ea53,{'commandName':_0x32e4('0x1b'),'commandParams':[_0x3c1cc2]},[],_0x32e4('0x6d'));});}),_0x10fe2d[_0x32e4('0x24')](_0x32e4('0x19'),(_0x376262,_0x456f87)=>{_0x2902be['model'][_0x32e4('0x73')](_0x530b47=>{let _0x4e85ca=_0x3708ef[_0x32e4('0x44')](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')][_0x32e4('0x6e')]),_0x456b8c=_0x530b47[_0x32e4('0x31')](_0x4e85ca);const _0x29b58a=_0x3d1457[_0x32e4('0x5d')](_0x456b8c['start'],_0x32e4('0xb')),_0x1df2c7=_0x3d1457[_0x32e4('0x5d')](_0x456b8c[_0x32e4('0x2e')],'toNext');_0x10fe2d[_0x32e4('0x3c')](()=>_0x376262(_0x456f87)),_0x4e85ca=_0x3708ef[_0x32e4('0x44')](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')][_0x32e4('0x6e')]),_0x456b8c=_0x530b47['createRangeOn'](_0x4e85ca);const _0x31f501=_0x530b47['createRange'](_0x29b58a,_0x1df2c7);_0x29b58a[_0x32e4('0x55')](),_0x1df2c7['detach'](),_0x10fe2d[_0x32e4('0x60')](_0x4e85ca,{'commandName':'imageTypeInline','commandParams':[]},[],_0x32e4('0xd')),_0x31f501[_0x32e4('0x16')][_0x32e4('0x1a')](_0x456b8c['start'])&&_0x10fe2d[_0x32e4('0xa')](_0x530b47[_0x32e4('0x4c')](_0x31f501[_0x32e4('0x16')],_0x456b8c[_0x32e4('0x16')]),_0x32e4('0xd')),_0x456b8c[_0x32e4('0x2e')][_0x32e4('0x1a')](_0x31f501['end'])&&_0x10fe2d['markInsertion'](_0x530b47['createRange'](_0x456b8c['end'],_0x31f501[_0x32e4('0x2e')]),'convertInlineImageToBlock');});}),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')](_0x32e4('0x38'),_0x32e4('0xd'),_0x32e4('0x26'),()=>!0x1),_0x10fe2d['_suggestionFactory'][_0x32e4('0x4a')](_0x32e4('0x38'),_0x32e4('0xd'),_0x32e4('0x4f'),()=>!0x1),_0x10fe2d['_suggestionFactory'][_0x32e4('0x4a')](_0x32e4('0x38'),_0x32e4('0xd'),_0x32e4('0x1e'),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x35')](_0x32e4('0x38'),'',_0x32e4('0x4f'))),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')](_0x32e4('0x6f'),_0x32e4('0xd'),_0x32e4('0x26'),()=>!0x1),_0x10fe2d[_0x32e4('0x37')]['registerCustomCallback'](_0x32e4('0x6f'),'convertInlineImageToBlock',_0x32e4('0x1e'),([_0x5176fd])=>{const _0x47d483=_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x35')]('insertion','',_0x32e4('0x1e'));let _0x55f1f3=_0x5176fd[_0x32e4('0x16')],_0x3e5e3c=_0x5176fd[_0x32e4('0x2e')];const _0x31f2c3=_0x2902be[_0x32e4('0x71')][_0x32e4('0x65')][_0x32e4('0x75')](_0x55f1f3,_0x32e4('0x42')),_0x1dd614=_0x2902be['model'][_0x32e4('0x65')][_0x32e4('0x75')](_0x3e5e3c,_0x32e4('0x47'));_0x31f2c3['isCollapsed']&&(_0x55f1f3=_0x31f2c3['start']),_0x1dd614['isCollapsed']&&(_0x3e5e3c=_0x1dd614[_0x32e4('0x2e')]),_0x47d483([_0x2902be[_0x32e4('0x71')][_0x32e4('0x4c')](_0x55f1f3,_0x3e5e3c)]);}),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')]('formatBlock','convertInlineImageToBlock','chain',_0x543000),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')](_0x32e4('0x6f'),_0x32e4('0xd'),_0x32e4('0x2c'),_0x543000)),_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')](_0x32e4('0x5a'))&&(_0x10fe2d[_0x32e4('0x24')](_0x32e4('0x45'),(_0x30c616,_0xb43010)=>{const _0xbf777e=_0x2902be[_0x32e4('0x1')][_0x32e4('0x5f')](_0x32e4('0x3d'));let _0x3cb70a=_0x3708ef[_0x32e4('0x44')](_0x2902be['model'][_0x32e4('0x46')][_0x32e4('0x6e')]),_0x25feac=_0xbf777e[_0x32e4('0x72')](_0x3cb70a);_0x2902be[_0x32e4('0x71')]['change'](()=>{if(_0x25feac)return void _0x10fe2d['markDeletion'](_0x2902be[_0x32e4('0x71')][_0x32e4('0x31')](_0x25feac));const _0x21bc78=_0x3708ef[_0x32e4('0x39')](_0x3cb70a);_0x30c616(_0xb43010),_0x3cb70a=_0x3708ef[_0x32e4('0x44')](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')][_0x32e4('0x6e')]),_0x25feac=_0xbf777e[_0x32e4('0x72')](_0x3cb70a),_0x10fe2d[_0x32e4('0xa')](_0x2902be['model'][_0x32e4('0x31')](_0x25feac),_0x21bc78?null:_0x32e4('0x20'));});}),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')]('insertion',_0x32e4('0x20'),'chain',_0x543000)),_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')](_0x32e4('0x33'))){_0x10fe2d[_0x32e4('0x24')]('imageStyle',(_0x319ed9,_0x1275a6)=>{const _0x5c7cc2=_0x2902be[_0x32e4('0x1')][_0x32e4('0x5f')](_0x32e4('0x1c'))['me'],_0x207674=_0x2902be[_0x32e4('0x21')][_0x32e4('0x5f')](_0x32e4('0x3a'));let _0x1fe048=_0x3708ef[_0x32e4('0x44')](_0x2902be['model']['document'][_0x32e4('0x6e')]),_0x9a12c1=_0x2902be[_0x32e4('0x71')]['createRangeOn'](_0x1fe048),_0x35dd13=_0x207674[_0x32e4('0x32')];if(_0x35dd13==_0x1275a6[_0x32e4('0x32')])return;const _0x450d53={'commandName':'imageStyle','commandParams':[_0x1275a6],'formatGroupId':_0x2589f0()};_0x2902be[_0x32e4('0x71')][_0x32e4('0x73')](()=>{if(_0x10fe2d[_0x32e4('0x12')]()[_0x32e4('0x79')](_0x55e126=>_0x55e126[_0x32e4('0x5e')]&&_0x5c7cc2==_0x55e126[_0x32e4('0x22')]&&(_0x32e4('0x38')==_0x55e126[_0x32e4('0x62')]||_0x32e4('0x9')==_0x55e126['type'])&&(_0x32e4('0x56')==_0x55e126[_0x32e4('0x15')]||_0x32e4('0x10')==_0x55e126[_0x32e4('0x15')])&&_0x55e126[_0x32e4('0x4e')]()[_0x32e4('0x5')](_0x9a12c1))[_0x32e4('0x23')](_0x1ef8cc=>_0x10fe2d['discardSuggestion'](_0x1ef8cc[_0x32e4('0x49')])),_0x1fe048=_0x3708ef[_0x32e4('0x44')](_0x2902be['model']['document'][_0x32e4('0x6e')]),_0x9a12c1=_0x2902be[_0x32e4('0x71')][_0x32e4('0x31')](_0x1fe048),_0x207674[_0x32e4('0x3f')](),_0x2902be[_0x32e4('0x21')][_0x32e4('0x5f')](_0x32e4('0x1b'))[_0x32e4('0x3f')](),_0x2902be['commands'][_0x32e4('0x5f')](_0x32e4('0x19'))[_0x32e4('0x3f')](),_0x35dd13=_0x207674['value'],_0x35dd13!=_0x1275a6[_0x32e4('0x32')])return _0x3708ef['isInlineImage'](_0x1fe048)&&_0x207674[_0x32e4('0x17')](_0x1275a6['value'],_0x1fe048)?(_0x319ed9(_0x1275a6),_0x1fe048=_0x3708ef['getClosestSelectedImageElement'](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')]['selection']),void _0x10fe2d[_0x32e4('0x60')](_0x1fe048,{..._0x450d53,'commandReversedParams':[{'value':_0x35dd13||null}]},[],'imageStylePreApply')):void(_0x3708ef[_0x32e4('0x39')](_0x1fe048)?_0x10fe2d[_0x32e4('0x60')](_0x1fe048,_0x450d53,[],_0x32e4('0x10')):_0x10fe2d[_0x32e4('0x34')](_0x9a12c1,_0x450d53,_0x32e4('0x10')));});});for(const _0x32e818 of _0x2902be['plugins']['get'](_0x32e4('0x33'))['normalizedStyles'])_0x2b7392[_0x32e818[_0x32e4('0x63')]]=_0x32e818[_0x32e4('0x6b')][_0x32e4('0x29')]();_0x10fe2d[_0x32e4('0x37')]['registerCustomCallback'](_0x32e4('0x38'),_0x32e4('0x56'),_0x32e4('0x26'),()=>!0x1),_0x10fe2d[_0x32e4('0x37')]['registerCustomCallback'](_0x32e4('0x38'),'imageStylePostApply','join',()=>!0x1),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')]('formatInline','imageStylePostApply',_0x32e4('0x26'),()=>!0x1),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')](_0x32e4('0x38'),_0x32e4('0x56'),'accept',()=>!0x1),_0x10fe2d[_0x32e4('0x37')]['registerCustomCallback'](_0x32e4('0x38'),_0x32e4('0x56'),_0x32e4('0x1e'),(_0x3954a8,_0xfbe19f)=>{_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x35')](_0x32e4('0x38'),'',_0x32e4('0x4f'))(_0x3954a8,{'commandName':_0xfbe19f[_0x32e4('0x41')],'commandParams':_0xfbe19f['commandReversedParams']});}),_0x10fe2d[_0x32e4('0x37')][_0x32e4('0x4a')]('formatBlock',_0x32e4('0x56'),_0x32e4('0x2c'),_0x543000);}const _0x5dad27=[{'type':'formatBlock','subType':_0x32e4('0x56')},{'type':_0x32e4('0x6f'),'subType':_0x32e4('0x20')},{'type':_0x32e4('0x38'),'subType':_0x32e4('0xd')},{'type':_0x32e4('0x6f'),'subType':'convertInlineImageToBlock'}];function _0x33edb3(_0x386114,_0x5572d1){const _0x3d72c0=_0x5dad27['findIndex'](({type:_0x2694af,subType:_0x4252e5})=>_0x386114[_0x32e4('0x62')]==_0x2694af&&_0x386114[_0x32e4('0x15')]==_0x4252e5),_0x5a3a14=_0x5dad27[_0x32e4('0x14')](({type:_0x3a9b47,subType:_0xbd4c05})=>_0x5572d1['type']==_0x3a9b47&&_0x5572d1['subType']==_0xbd4c05);if(_0x3d72c0<0x0||_0x5a3a14<0x0)return!0x1;const _0x22f59a=_0x386114[_0x32e4('0x4e')](),_0x594611=_0x5572d1[_0x32e4('0x4e')]();if((0x0==_0x3d72c0||0x1==_0x3d72c0)&&0x2==_0x5a3a14&&_0x22f59a['isIntersecting'](_0x594611))return!0x0;if(0x2==_0x3d72c0&&0x3==_0x5a3a14){const _0x2fdf98=_0x10fe2d[_0x32e4('0x43')](_0x22f59a,_0x32e4('0x6f'))[_0x32e4('0x79')](({suggestion:_0x1bf937,meta:_0x373602})=>_0x373602[_0x32e4('0x67')]&&_0x32e4('0xd')==_0x1bf937[_0x32e4('0x15')]);if(_0x2fdf98['length']>0x1&&_0x594611[_0x32e4('0x2e')][_0x32e4('0x5')](_0x22f59a['start']))return!0x0;if(0x1==_0x2fdf98[_0x32e4('0x3e')]&&(_0x22f59a[_0x32e4('0x16')][_0x32e4('0x5')](_0x594611[_0x32e4('0x2e')])||_0x22f59a['end'][_0x32e4('0x5')](_0x594611[_0x32e4('0x16')])))return!0x0;}if(0x3==_0x3d72c0&&0x3==_0x5a3a14&&_0x22f59a[_0x32e4('0x16')][_0x32e4('0x1a')](_0x594611[_0x32e4('0x16')])){const _0x37a8c3=_0x22f59a['end'][_0x32e4('0x51')],_0x27d8bd=_0x594611[_0x32e4('0x16')][_0x32e4('0x25')];return _0x3708ef[_0x32e4('0x39')](_0x37a8c3)&&_0x37a8c3===_0x27d8bd;}return!0x1;}function _0x543000(_0x363473,_0x274183){return _0x33edb3(_0x363473,_0x274183)?[_0x363473,_0x274183]:_0x33edb3(_0x274183,_0x363473)?[_0x274183,_0x363473]:null;}_0x2902be['model'][_0x32e4('0x46')][_0x32e4('0x57')](()=>{let _0x34ec4f=!0x1;const _0x158434=Array[_0x32e4('0x53')](_0x2902be['model'][_0x32e4('0x46')][_0x32e4('0x7')][_0x32e4('0x66')]());for(const {name:_0x2f628f,data:_0x4d1fa5}of _0x158434){const {group:_0x3de95e,type:_0x157146,subType:_0x46f651,id:_0x414cba}=_0x10fe2d[_0x32e4('0x6')](_0x2f628f);if(_0x32e4('0x4d')==_0x3de95e&&_0x10fe2d[_0x32e4('0x27')](_0x414cba)){if('formatBlock'==_0x157146&&('imageStylePreApply'==_0x46f651||'imageStylePostApply'==_0x46f651)){const _0x3139ac=_0x10fe2d[_0x32e4('0x8')](_0x414cba);if(_0x4d1fa5[_0x32e4('0x54')]){const _0x1e0221=_0x3139ac[_0x32e4('0x4e')]()['getContainedElement']();if(_0x3708ef[_0x32e4('0x39')](_0x1e0221))continue;_0x10fe2d[_0x32e4('0x5c')](_0x3139ac),_0x34ec4f=!0x0;}}if('insertion'==_0x157146&&'imageCaption'==_0x46f651&&!_0x4d1fa5['newRange']){const _0x50b340=_0x10fe2d[_0x32e4('0x8')](_0x414cba);_0x50b340[_0x32e4('0x0')]&&_0x50b340[_0x32e4('0x0')][_0x32e4('0x5e')]&&(_0x10fe2d[_0x32e4('0x5c')](_0x50b340['next']),_0x34ec4f=!0x0);}}}return _0x34ec4f;}),_0x2902be[_0x32e4('0x1')][_0x32e4('0x2b')]('ImageResize')&&_0x10fe2d[_0x32e4('0x24')](_0x32e4('0xf'),(_0x4962da,_0x220d14)=>{const _0x365fde=_0x3708ef['getClosestSelectedImageElement'](_0x2902be[_0x32e4('0x71')][_0x32e4('0x46')][_0x32e4('0x6e')]);_0x365fde[_0x32e4('0x74')](_0x32e4('0x13'))!=_0x220d14[_0x32e4('0x13')]&&_0x2902be[_0x32e4('0x71')][_0x32e4('0x73')](()=>{_0x10fe2d[_0x32e4('0x60')](_0x365fde,{'commandName':_0x32e4('0xf'),'commandParams':[_0x220d14]});});}),_0x2902be[_0x32e4('0x1')]['has'](_0x32e4('0x70'))&&_0x10fe2d[_0x32e4('0x24')](_0x32e4('0x6a'),(_0x350ad2,_0x11b1e8)=>{const _0x5a1131=_0x3708ef[_0x32e4('0x44')](_0x2902be[_0x32e4('0x71')]['document'][_0x32e4('0x6e')]);(_0x5a1131[_0x32e4('0x6c')](_0x32e4('0x68'))?_0x5a1131[_0x32e4('0x74')](_0x32e4('0x68')):'')!=_0x11b1e8['newValue']&&_0x2902be['model'][_0x32e4('0x73')](()=>{_0x10fe2d[_0x32e4('0x60')](_0x5a1131,{'commandName':_0x32e4('0x6a'),'commandParams':[_0x11b1e8]});});}),_0x10fe2d[_0x32e4('0x30')][_0x32e4('0x64')](_0xc08070=>{if(!!_0x5dad27[_0x32e4('0x78')](({type:_0xe73320,subType:_0x7a5c4d})=>_0xc08070[_0x32e4('0x62')]==_0xe73320&&_0xc08070[_0x32e4('0x15')]==_0x7a5c4d))return _0xc08070[_0x32e4('0x61')]?{}:void 0x0;}),_0x10fe2d['_descriptionFactory'][_0x32e4('0x64')](_0x2d5b75=>{if(_0x32e4('0x6f')==_0x2d5b75[_0x32e4('0x62')]||'deletion'==_0x2d5b75[_0x32e4('0x62')]){const _0x39b766=_0x2d5b75[_0x32e4('0x1f')]();if(_0x39b766&&_0x39b766['is'](_0x32e4('0x28'),_0x32e4('0x77')))return{'type':'insertion'==_0x2d5b75[_0x32e4('0x62')]?_0x32e4('0x3b'):_0x32e4('0x4'),'element':_0x39b766,'quantity':0x1};}}),_0x10fe2d[_0x32e4('0x30')][_0x32e4('0x64')](_0x35a144=>_0x32e4('0x38')==_0x35a144[_0x32e4('0x62')]&&_0x32e4('0xd')==_0x35a144[_0x32e4('0x15')]?{'type':'format','content':_0x32e4('0x18')}:_0x32e4('0x38')==_0x35a144[_0x32e4('0x62')]&&'convertBlockImageToInline'==_0x35a144['subType']?{'type':_0x32e4('0x76'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10fe2d['_descriptionFactory']['registerDescriptionCallback'](_0x516f3a=>{const {data:_0x5644d1}=_0x516f3a;if(_0x5644d1){if(_0x32e4('0x3a')==_0x5644d1[_0x32e4('0x41')]){const _0x550d72=_0x5644d1[_0x32e4('0x59')][0x0][_0x32e4('0x32')];return _0x457f49(_0x32e4('0xe')===_0x550d72?_0x5747b3(_0x47202d,'FORMAT_SIDE_IMAGE'):_0x2b7392[_0x550d72]||_0x550d72);}if('imageTextAlternative'==_0x5644d1[_0x32e4('0x41')]){const _0x5d5fb5=_0x5644d1[_0x32e4('0x59')][0x0][_0x32e4('0x50')];return _0x5d5fb5?{'type':_0x32e4('0x76'),'content':_0x5747b3(_0x47202d,_0x32e4('0x11'),'\x22'+_0x5d5fb5+'\x22')}:{'type':_0x32e4('0x76'),'content':_0x5747b3(_0x47202d,_0x32e4('0x1d'))};}if(_0x32e4('0xf')==_0x5644d1[_0x32e4('0x41')]){const _0xe440a3=_0x5644d1['commandParams'][0x0]['width'];return _0xe440a3?{'type':_0x32e4('0x76'),'content':_0x5747b3(_0x47202d,'*Set\x20image\x20width:*\x20%0',_0xe440a3)}:{'type':_0x32e4('0x76'),'content':_0x5747b3(_0x47202d,_0x32e4('0x69'))};}}function _0x457f49(_0x3786dd){return{'type':_0x32e4('0x76'),'content':_0x5747b3(_0x47202d,_0x32e4('0x52'),_0x3786dd)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1933=['ImageEditing','TrackChangesEditing','accept','change','commandParams','afterInit','handleSuggestionDescription','formatBlock','getSelectedElement','editor','Users','enableCommand','_suggestionFactory','src','plugins','author','_descriptionFactory','source','registerCustomCallback','model','getSuggestionCallback','get','commandName','getAttribute','format','discard','document','handleReplaceImageCommand','markBlockFormat','registerDescriptionCallback','replaceImageSource'];(function(_0x2190ca,_0x19332e){const _0x1ef601=function(_0x1f9185){while(--_0x1f9185){_0x2190ca['push'](_0x2190ca['shift']());}};_0x1ef601(++_0x19332e);}(_0x1933,0xf1));const _0x1ef6=function(_0x2190ca,_0x19332e){_0x2190ca=_0x2190ca-0x0;let _0x1ef601=_0x1933[_0x2190ca];return _0x1ef601;};import{Plugin as _0x5012e9}from'ckeditor5/src/core';import{getTranslation as _0x5c9693}from'../utils/common-translations';export default class Y extends _0x5012e9{[_0x1ef6('0xc')](){if(!this['editor'][_0x1ef6('0x15')]['has'](_0x1ef6('0x7')))return;const _0x77305=this[_0x1ef6('0x10')]['plugins'][_0x1ef6('0x1c')](_0x1ef6('0x8'));_0x77305[_0x1ef6('0x12')](_0x1ef6('0x6'),(_0x3c88aa,_0x2341d8)=>this[_0x1ef6('0x3')](_0x3c88aa,_0x2341d8)),_0x77305[_0x1ef6('0x13')][_0x1ef6('0x19')](_0x1ef6('0xe'),'replaceImageSource',_0x1ef6('0x9'),_0x77305[_0x1ef6('0x13')][_0x1ef6('0x1b')]('formatBlock',null,_0x1ef6('0x1'))),_0x77305[_0x1ef6('0x13')][_0x1ef6('0x19')](_0x1ef6('0xe'),_0x1ef6('0x6'),'discard',_0x77305[_0x1ef6('0x13')]['getSuggestionCallback'](_0x1ef6('0xe'),null,_0x1ef6('0x9'))),_0x77305[_0x1ef6('0x17')][_0x1ef6('0x5')](_0x209bd1=>this[_0x1ef6('0xd')](_0x209bd1));}[_0x1ef6('0x3')](_0x4645db,_0x5d4235){const _0x48ea98=this[_0x1ef6('0x10')][_0x1ef6('0x15')]['get'](_0x1ef6('0x8')),_0x240371=this['editor'][_0x1ef6('0x1a')][_0x1ef6('0x2')]['selection'][_0x1ef6('0xf')]();this[_0x1ef6('0x10')][_0x1ef6('0x1a')][_0x1ef6('0xa')](()=>{let _0x2954be=_0x240371[_0x1ef6('0x1e')](_0x1ef6('0x14'));const _0x246890=this[_0x1ef6('0x10')][_0x1ef6('0x15')][_0x1ef6('0x1c')](_0x1ef6('0x11'))['me'];for(const _0x595127 of _0x48ea98['getSuggestions']({'skipNotAttached':!0x0})){const _0x1099b3=_0x595127['getContainedElement']();if('replaceImageSource'===_0x595127['subType']&&_0x1099b3===_0x240371){_0x595127[_0x1ef6('0x16')]!==_0x246890&&_0x595127[_0x1ef6('0x1')](),_0x2954be=_0x595127['data'][_0x1ef6('0xb')][0x0][_0x1ef6('0x18')];break;}}_0x4645db(_0x5d4235),_0x48ea98[_0x1ef6('0x4')](_0x240371,{'commandName':_0x1ef6('0x6'),'commandParams':[{'source':_0x2954be}]},[],_0x1ef6('0x6'));});}[_0x1ef6('0xd')](_0x2f8279){const {data:_0x33f18c}=_0x2f8279;if(_0x33f18c&&_0x1ef6('0x6')===_0x33f18c[_0x1ef6('0x1d')]){const _0x186eee='*Format:*\x20replace\x20image\x20URL';return{'type':_0x1ef6('0x0'),'content':_0x5c9693(this[_0x1ef6('0x10')]['locale'],_0x186eee)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4368=['bind','high','_setSuggestionData','commands','TrackChangesEditing','_handleImportedData','trackChanges','editor','lowest','dataInsert','importWord','_trackChangesExecuted','collaboration_features','enableCommand','afterInit','listenTo','get','execute','plugins','_trackChangesValueDuringImport','Users'];(function(_0x33f12e,_0x4368c3){const _0x4ff00a=function(_0x17671f){while(--_0x17671f){_0x33f12e['push'](_0x33f12e['shift']());}};_0x4ff00a(++_0x4368c3);}(_0x4368,0x13e));const _0x4ff0=function(_0x33f12e,_0x4368c3){_0x33f12e=_0x33f12e-0x0;let _0x4ff00a=_0x4368[_0x33f12e];return _0x4ff00a;};import{Plugin as _0x225e4a}from'ckeditor5/src/core';export default class Z extends _0x225e4a{constructor(_0x3f8a7d){super(_0x3f8a7d),this[_0x4ff0('0x10')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x4ff0('0xb')](){const _0x34b67c=this['editor'],_0x440b71=_0x34b67c['commands']['get'](_0x4ff0('0x7')),_0x50c313=_0x34b67c[_0x4ff0('0x0')][_0x4ff0('0xd')](_0x4ff0('0x3'));_0x440b71&&(_0x440b71['on']('execute',(_0x57e102,[,_0x3ea11b])=>{this[_0x4ff0('0x10')]=_0x50c313['value'],_0x3ea11b[_0x4ff0('0x9')]['track_changes']=!this[_0x4ff0('0x10')];},{'priority':_0x4ff0('0x13')}),this[_0x4ff0('0xc')](_0x440b71,_0x4ff0('0x6'),this[_0x4ff0('0x2')][_0x4ff0('0x12')](this)),this[_0x4ff0('0xc')](_0x440b71,_0x4ff0('0x6'),()=>{this['_trackChangesExecuted']&&(_0x50c313[_0x4ff0('0xe')](),this[_0x4ff0('0x8')]=!0x1);},{'priority':_0x4ff0('0x5')}),_0x34b67c[_0x4ff0('0xf')][_0x4ff0('0xd')]('TrackChangesEditing')[_0x4ff0('0xa')](_0x4ff0('0x7')));}[_0x4ff0('0x2')](_0x102dfa,_0x586722){const {suggestions:_0x228104}=_0x586722,_0x40c3de=this[_0x4ff0('0x4')][_0x4ff0('0x0')][_0x4ff0('0xd')](_0x4ff0('0x3')),_0x162952=_0x40c3de['value'];this[_0x4ff0('0x10')]!==_0x162952&&(_0x40c3de[_0x4ff0('0xe')](),this[_0x4ff0('0x8')]=!0x0),_0x228104&&_0x228104['forEach'](({id:_0x44231d,type:_0x4fd678,author:_0x210bb9,created_at:_0x5cb3f6})=>{const _0x1aa20b={'id':_0x44231d,'type':_0x4fd678,'authorId':this[_0x4ff0('0x4')][_0x4ff0('0xf')]['get'](_0x4ff0('0x11'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x210bb9,'createdAt':_0x5cb3f6?new Date(_0x5cb3f6):new Date(),'source':_0x4ff0('0x7')}}};this[_0x4ff0('0x4')][_0x4ff0('0xf')]['get'](_0x4ff0('0x1'))[_0x4ff0('0x14')](_0x1aa20b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x341a=['model','IndentEditing','*Indent:*\x20%0','format','document','IndentBlock','get','schema','plugins','_descriptionFactory','getItemLabel','outdent','indent','blockIndent','getSelectedBlocks','has','registerDescriptionCallback','indentBlock','*Outdent:*\x20%0','markBlockFormat','commandName','selection','outdentBlock','filter','locale','enableCommand','editor','TrackChangesEditing'];(function(_0x55a68b,_0x341ab3){const _0x32aef1=function(_0x2f8fe0){while(--_0x2f8fe0){_0x55a68b['push'](_0x55a68b['shift']());}};_0x32aef1(++_0x341ab3);}(_0x341a,0x1cc));const _0x32ae=function(_0x55a68b,_0x341ab3){_0x55a68b=_0x55a68b-0x0;let _0x32aef1=_0x341a[_0x55a68b];return _0x32aef1;};import{Plugin as _0x6d82e9}from'ckeditor5/src/core';import{getTranslation as _0x4a3ee0}from'../utils/common-translations';export default class tt extends _0x6d82e9{['afterInit'](){const _0x115374=this[_0x32ae('0xe')],_0xb33b82=_0x115374['plugins'][_0x32ae('0x16')](_0x32ae('0xf'));_0x115374[_0x32ae('0x18')][_0x32ae('0x3')](_0x32ae('0x11'))&&(_0xb33b82['enableCommand'](_0x32ae('0x0')),_0xb33b82[_0x32ae('0xd')](_0x32ae('0x1b')));const _0x363016=_0x115374[_0x32ae('0xc')];if(_0x115374[_0x32ae('0x18')][_0x32ae('0x3')](_0x32ae('0x15'))){for(const _0x313ecc of[_0x32ae('0x5'),_0x32ae('0xa')])_0xb33b82['enableCommand'](_0x313ecc,()=>{const _0x3fef7d=Array['from'](this['editor'][_0x32ae('0x10')][_0x32ae('0x14')][_0x32ae('0x9')][_0x32ae('0x2')]())[_0x32ae('0xb')](_0x116bb2=>this[_0x32ae('0xe')][_0x32ae('0x10')][_0x32ae('0x17')]['checkAttribute'](_0x116bb2,_0x32ae('0x1')));_0x115374[_0x32ae('0x10')]['change'](()=>{for(const _0x25f7bd of _0x3fef7d)_0xb33b82[_0x32ae('0x7')](_0x25f7bd,{'commandName':_0x313ecc,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0xb33b82['_descriptionFactory'][_0x32ae('0x4')](_0x343a88=>{const {data:_0x1a2e8a}=_0x343a88;if(!_0x1a2e8a)return;if(_0x32ae('0x5')!=_0x1a2e8a[_0x32ae('0x8')]&&_0x32ae('0xa')!=_0x1a2e8a['commandName'])return;const _0x5c7ecc=_0x343a88['getItems']()[0x0],_0x25caed=_0xb33b82[_0x32ae('0x19')][_0x32ae('0x1a')](_0x5c7ecc);return'indentBlock'==_0x1a2e8a[_0x32ae('0x8')]?{'type':_0x32ae('0x13'),'content':_0x4a3ee0(_0x363016,_0x32ae('0x12'),_0x25caed)}:_0x32ae('0xa')==_0x1a2e8a[_0x32ae('0x8')]?{'type':_0x32ae('0x13'),'content':_0x4a3ee0(_0x363016,_0x32ae('0x6'),_0x25caed)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3175=['input','requires','get','enableCommand','editor','init','TrackChangesEditing'];(function(_0xa3f951,_0x317574){var _0x3d75f1=function(_0x2af538){while(--_0x2af538){_0xa3f951['push'](_0xa3f951['shift']());}};_0x3d75f1(++_0x317574);}(_0x3175,0x8f));var _0x3d75=function(_0xa3f951,_0x317574){_0xa3f951=_0xa3f951-0x0;var _0x3d75f1=_0x3175[_0xa3f951];return _0x3d75f1;};import{Plugin as _0x477e3e}from'ckeditor5/src/core';import{Input as _0x220437}from'ckeditor5/src/typing';export default class it extends _0x477e3e{static get[_0x3d75('0x5')](){return[_0x220437];}[_0x3d75('0x2')](){this[_0x3d75('0x1')]['plugins'][_0x3d75('0x6')](_0x3d75('0x3'))[_0x3d75('0x0')](_0x3d75('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e7b=['getFirstPosition','format','plugins','enableCommand','_descriptionFactory','commandParams','isCollapsed','editor','document','getRanges','markInlineFormat','hasAttribute','commandName','afterInit','LinkEditing','getAttribute','unlink','locale','from','has','model','selection','getFirstRange','link','linkHref','*Remove\x20link*'];(function(_0x35c460,_0x5e7bfb){const _0x120cc5=function(_0x3a7f84){while(--_0x3a7f84){_0x35c460['push'](_0x35c460['shift']());}};_0x120cc5(++_0x5e7bfb);}(_0x5e7b,0x146));const _0x120c=function(_0x35c460,_0x5e7bfb){_0x35c460=_0x35c460-0x0;let _0x120cc5=_0x5e7b[_0x35c460];return _0x120cc5;};import{Plugin as _0x1f7cc5}from'ckeditor5/src/core';import{findAttributeRange as _0x5a37a0}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x4cad24}from'./utils';import{getTranslation as _0x31c665}from'../utils/common-translations';export default class et extends _0x1f7cc5{[_0x120c('0x19')](){const _0x85c61b=this[_0x120c('0x13')];if(!_0x85c61b[_0x120c('0xe')][_0x120c('0x5')](_0x120c('0x0')))return;const _0x19fa94=_0x85c61b[_0x120c('0xe')]['get']('TrackChangesEditing');_0x19fa94[_0x120c('0xf')](_0x120c('0x9'),(_0x236c41,_0xce1871)=>{const _0x54c6fd=_0x85c61b[_0x120c('0x6')][_0x120c('0x14')][_0x120c('0x7')];let _0x48d633=[];if(_0x54c6fd[_0x120c('0x12')]){if(!_0x54c6fd[_0x120c('0x17')](_0x120c('0xa')))return void _0x236c41(_0xce1871);{const _0x21571f=_0x5a37a0(_0x54c6fd[_0x120c('0xc')](),_0x120c('0xa'),_0x54c6fd[_0x120c('0x1')](_0x120c('0xa')),_0x85c61b[_0x120c('0x6')]);_0x48d633=[_0x21571f];}}else _0x48d633=Array[_0x120c('0x4')](_0x54c6fd[_0x120c('0x15')]());_0x85c61b[_0x120c('0x6')]['change'](()=>{for(const _0x1c2176 of _0x48d633)_0x19fa94[_0x120c('0x16')](_0x1c2176,{'commandName':_0x120c('0x9'),'commandParams':[_0xce1871]});});}),_0x19fa94['enableCommand'](_0x120c('0x2'),()=>{const _0x542ae0=this['editor'][_0x120c('0x6')],_0x2a33ac=_0x542ae0[_0x120c('0x14')][_0x120c('0x7')];_0x542ae0['change'](()=>{let _0x626e5a=[];if(_0x2a33ac[_0x120c('0x12')])_0x626e5a=[_0x5a37a0(_0x2a33ac[_0x120c('0xc')](),'linkHref',_0x2a33ac[_0x120c('0x1')](_0x120c('0xa')),_0x85c61b[_0x120c('0x6')])];else _0x626e5a=_0x4cad24(_0x120c('0xa'),_0x2a33ac[_0x120c('0x8')](),_0x85c61b['model']);for(const _0x5a6771 of _0x626e5a)_0x19fa94['markInlineFormat'](_0x5a6771,{'commandName':'unlink','commandParams':[]});});}),_0x19fa94[_0x120c('0x10')]['registerDescriptionCallback'](_0x43ebcf=>{const {data:_0x425ac7}=_0x43ebcf,_0x5812de=_0x85c61b[_0x120c('0x3')];if(_0x425ac7){if('link'==_0x425ac7[_0x120c('0x18')]){const _0x127849=_0x425ac7[_0x120c('0x11')][0x0];return{'type':_0x120c('0xd'),'content':_0x31c665(_0x5812de,'*Set\x20link:*\x20%0','\x22'+_0x127849+'\x22')};}return _0x120c('0x2')==_0x425ac7[_0x120c('0x18')]?{'type':'format','content':_0x31c665(_0x5812de,_0x120c('0xb'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4027=['document','getSelectedBlocks','indentList','push','markBlockFormat','registerElementLabel','*Uncheck\x20item*','List','listIndent','parent','commands','bulletedList','enableCommand','filter','slice','plugins','element','ELEMENT_NUMBERED_LIST','checkChild','checkTodoList','execute','length','ELEMENT_BULLETED_LIST','todoListChecked','createPositionAt','createRange','ELEMENT_TODO_LIST','blockName','replace','todoList','outdentList','value','TodoListEditing','model','isObject','numberedList','*Indent:*\x20%0','_selectedElements','getAttribute','from','nextSibling','format','*Change\x20to:*\x20%0','TrackChangesEditing','change','previousSibling','_descriptionFactory','listType','commandName','add','todo','listItem','numbered','afterInit','ListEditing','selection','forceValue','has','get','end','ELEMENT_LIST_ITEM','bulleted','schema'];(function(_0x57b3bd,_0x402720){const _0x30f882=function(_0x3a95ea){while(--_0x3a95ea){_0x57b3bd['push'](_0x57b3bd['shift']());}};_0x30f882(++_0x402720);}(_0x4027,0x1d4));const _0x30f8=function(_0x57b3bd,_0x402720){_0x57b3bd=_0x57b3bd-0x0;let _0x30f882=_0x4027[_0x57b3bd];return _0x30f882;};import{Plugin as _0x44a8f4}from'ckeditor5/src/core';import{getTranslation as _0x138a87}from'../utils/common-translations';export default class nt extends _0x44a8f4{[_0x30f8('0x1a')](){const _0x13b32c=this['editor'],_0x361e28=_0x13b32c['locale'];if(!_0x13b32c[_0x30f8('0x33')][_0x30f8('0x1e')](_0x30f8('0x1b')))return;const _0x1bf2e5=_0x13b32c[_0x30f8('0x33')][_0x30f8('0x1f')](_0x30f8('0x10')),_0x535484=_0x13b32c[_0x30f8('0x33')][_0x30f8('0x1e')](_0x30f8('0x5'));function _0x2b345e(_0x1919ba){return()=>{const _0x4e54b7=_0x13b32c['model']['document'][_0x30f8('0x1c')],_0xcad3d5=_0x13b32c['commands'][_0x30f8('0x1f')](_0x1919ba);if(_0xcad3d5[_0x30f8('0x4')])return void _0x13b32c[_0x30f8('0x38')]('paragraph',{});const _0x525cce=_0x1919ba[_0x30f8('0x32')](0x0,-0x4),_0x6bb103=function(_0x33f701,_0x15a9d6,_0x15d887){let _0x3cbab8=Array['from'](_0x33f701)[_0x30f8('0x31')](_0x558e7f=>function(_0xa2763a,_0x44ccca){return _0x44ccca[_0x30f8('0x36')](_0xa2763a[_0x30f8('0x2d')],_0x30f8('0x18'))&&!_0x44ccca[_0x30f8('0x7')](_0xa2763a);}(_0x558e7f,_0x15d887));_0x3cbab8=_0x3cbab8[_0x30f8('0x31')](_0x124e90=>!_0x124e90['is'](_0x30f8('0x34'),'listItem')||_0x124e90[_0x30f8('0xb')](_0x30f8('0x14'))!=_0x15a9d6);const _0x5550ef=new Set();for(const _0x4c53a7 of _0x3cbab8)_0x4c53a7['is'](_0x30f8('0x34'),_0x30f8('0x18'))?_0x5550ef['add'](ne(_0x4c53a7)):_0x5550ef[_0x30f8('0x16')](_0x4c53a7);return Array[_0x30f8('0xc')](_0x5550ef);}(_0x4e54b7[_0x30f8('0x25')](),_0x525cce,_0x13b32c[_0x30f8('0x6')][_0x30f8('0x23')]);_0x13b32c[_0x30f8('0x6')][_0x30f8('0x11')](()=>{for(const _0x4d20f3 of _0x6bb103)_0x1bf2e5['markBlockFormat'](_0x4d20f3,{'commandName':_0x1919ba,'commandParams':[{'forceValue':!_0xcad3d5[_0x30f8('0x4')]}],'formatGroupId':_0x30f8('0x0')},oe(_0x4d20f3));});};}function _0x35dd40(_0x3dba9e){return()=>{const _0x5ade42=function(_0x2571d1){let _0x3965a7=Array[_0x30f8('0xc')](_0x2571d1);const _0x3f8bff=_0x3965a7['findIndex'](_0x235e24=>'listItem'!=_0x235e24['name']);return _0x3f8bff>-0x1&&(_0x3965a7=_0x3965a7[_0x30f8('0x32')](0x0,_0x3f8bff)),_0x3965a7;}(_0x13b32c['model'][_0x30f8('0x24')][_0x30f8('0x1c')]['getSelectedBlocks']()),_0x4c0611=_0x13b32c[_0x30f8('0x6')][_0x30f8('0x3d')](_0x13b32c[_0x30f8('0x6')][_0x30f8('0x3c')](_0x5ade42[0x0],'before'),_0x13b32c[_0x30f8('0x6')][_0x30f8('0x3c')](_0x5ade42[_0x5ade42[_0x30f8('0x39')]-0x1],_0x30f8('0x20')));_0x13b32c[_0x30f8('0x6')]['change'](()=>{_0x1bf2e5['markBlockFormat'](_0x4c0611,{'commandName':_0x3dba9e,'commandParams':[],'formatGroupId':_0x30f8('0x2c')},function(_0x558d36){const _0x2eebed=new Set();for(const _0x11c3ce of _0x558d36){let _0x4c09a1=_0x11c3ce['nextSibling'];for(;_0x4c09a1&&_0x4c09a1['getAttribute'](_0x30f8('0x2c'))>_0x11c3ce[_0x30f8('0xb')](_0x30f8('0x2c'));)_0x2eebed[_0x30f8('0x16')](_0x4c09a1),_0x4c09a1=_0x4c09a1[_0x30f8('0xd')];}return Array['from'](_0x2eebed);}(_0x5ade42));});};}_0x1bf2e5[_0x30f8('0x30')]('numberedList',_0x2b345e(_0x30f8('0x8'))),_0x1bf2e5[_0x30f8('0x30')](_0x30f8('0x2f'),_0x2b345e('bulletedList')),_0x535484&&_0x1bf2e5['enableCommand'](_0x30f8('0x2'),_0x2b345e(_0x30f8('0x2'))),_0x1bf2e5['enableCommand']('indentList',_0x35dd40(_0x30f8('0x26'))),_0x1bf2e5['enableCommand']('outdentList',_0x35dd40(_0x30f8('0x3'))),_0x535484&&_0x1bf2e5[_0x30f8('0x30')](_0x30f8('0x37'),()=>{const _0x10a949=_0x13b32c[_0x30f8('0x2e')]['get']('checkTodoList'),_0x53d1c7=Array[_0x30f8('0xc')](_0x10a949[_0x30f8('0xa')]);_0x53d1c7[_0x30f8('0x31')](_0x51ad14=>_0x51ad14[_0x30f8('0xb')](_0x30f8('0x3b'))!=_0x10a949[_0x30f8('0x4')]),_0x13b32c[_0x30f8('0x6')][_0x30f8('0x11')](()=>{for(const _0x57491e of _0x53d1c7)_0x1bf2e5[_0x30f8('0x28')](_0x57491e,{'commandName':_0x30f8('0x37'),'commandParams':[{'forceValue':!_0x10a949[_0x30f8('0x4')]}]});});}),_0x1bf2e5[_0x30f8('0x13')][_0x30f8('0x29')](_0x30f8('0x18'),_0xfcbf6d=>_0x138a87(_0x361e28,_0x30f8('0x21'),_0xfcbf6d)),_0x1bf2e5[_0x30f8('0x13')]['registerDescriptionCallback'](_0x498303=>{const {data:_0x3708ad}=_0x498303;if(_0x3708ad){if(_0x30f8('0x8')==_0x3708ad[_0x30f8('0x15')]||'bulletedList'==_0x3708ad[_0x30f8('0x15')]||'todoList'==_0x3708ad[_0x30f8('0x15')])switch(_0x3708ad['commandName'][_0x30f8('0x1')](_0x30f8('0x2b'),'')){case _0x30f8('0x22'):return _0x4b4bf0(_0x138a87(_0x361e28,_0x30f8('0x3a')));case _0x30f8('0x19'):return _0x4b4bf0(_0x138a87(_0x361e28,_0x30f8('0x35')));case _0x30f8('0x17'):return _0x4b4bf0(_0x138a87(_0x361e28,_0x30f8('0x3e')));}if(_0x30f8('0x26')==_0x3708ad[_0x30f8('0x15')])return{'type':_0x30f8('0xe'),'content':_0x138a87(_0x361e28,_0x30f8('0x9'),_0x138a87(_0x361e28,_0x30f8('0x21')))};if(_0x30f8('0x3')==_0x3708ad[_0x30f8('0x15')])return{'type':'format','content':_0x138a87(_0x361e28,'*Outdent:*\x20%0',_0x138a87(_0x361e28,'ELEMENT_LIST_ITEM'))};if(_0x30f8('0x37')==_0x3708ad[_0x30f8('0x15')])return _0x3708ad['commandParams'][0x0][_0x30f8('0x1d')]?{'type':_0x30f8('0xe'),'content':_0x138a87(_0x361e28,'*Check\x20item*')}:{'type':_0x30f8('0xe'),'content':_0x138a87(_0x361e28,_0x30f8('0x2a'))};}function _0x4b4bf0(_0x245d57){return{'type':_0x30f8('0xe'),'content':_0x138a87(_0x361e28,_0x30f8('0xf'),_0x245d57)};}});}}function ne(_0x446817){const _0x4755af=_0x446817['getAttribute']('listIndent');if(0x0==_0x4755af)return _0x446817;let _0x51d21c=_0x446817;for(;_0x446817['previousSibling']&&_0x446817[_0x30f8('0x12')]['is'](_0x30f8('0x34'),_0x30f8('0x18'));){const _0x3fd70d=_0x446817[_0x30f8('0x12')]['getAttribute']('listIndent');if(_0x3fd70d==_0x4755af)_0x51d21c=_0x446817['previousSibling'];else{if(_0x3fd70d<_0x4755af)break;}_0x446817=_0x446817[_0x30f8('0x12')];}return _0x51d21c;}function oe(_0x4dd0a9){const _0x312b10=[];if(_0x4dd0a9['is'](_0x30f8('0x34'),_0x30f8('0x18'))&&_0x4dd0a9[_0x30f8('0xb')](_0x30f8('0x2c'))>0x0){let _0x19f2c6=_0x4dd0a9[_0x30f8('0xd')];for(;_0x19f2c6&&_0x30f8('0x18')==_0x19f2c6['name']&&_0x19f2c6[_0x30f8('0xb')]('listIndent')==_0x4dd0a9['getAttribute'](_0x30f8('0x2c'));)_0x312b10[_0x30f8('0x27')](_0x19f2c6),_0x19f2c6=_0x19f2c6[_0x30f8('0xd')];}return _0x312b10;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21e3=['config','*Format:*\x20set\x20order\x20to\x20reversed','createPositionAt','listStyle','ListPropertiesEditing','_getTranslationKeyForListStyle','listType','listReversed','filter','_getSuggestionBlocks','*Format:*\x20set\x20order\x20to\x20regular','markMultiRangeBlockFormat','type','getFirstPosition','startIndex','backward','listItem','format','listStart','commandParams','handleListStyleCommand','length','toUpperCase','afterInit','from','change','commandName','styles','getAttribute','getSiblingNodes','_LIST_','get','enableCommand','model','createRange','ELEMENT_','element','replace','handleDescriptions','locale','document','before','handleListStartCommand','reversed','_getSuggestionBlocksForListStyle','selection','ListUtils','TrackChangesEditing','map','forward','bind','numbered','*Format:*\x20set\x20start\x20index\x20to\x20%0','getSelectedBlocks','handleListReversedCommand','plugins','editor','getLastPosition'];(function(_0x1cac73,_0x21e3f2){const _0x2730e6=function(_0x1b5ad7){while(--_0x1b5ad7){_0x1cac73['push'](_0x1cac73['shift']());}};_0x2730e6(++_0x21e3f2);}(_0x21e3,0xdc));const _0x2730=function(_0x1cac73,_0x21e3f2){_0x1cac73=_0x1cac73-0x0;let _0x2730e6=_0x21e3[_0x1cac73];return _0x2730e6;};import{Plugin as _0x443858}from'ckeditor5/src/core';import{getTranslation as _0x32cdc4}from'../utils/common-translations';export default class st extends _0x443858{[_0x2730('0x23')](){if(!this[_0x2730('0xa')][_0x2730('0x9')]['has'](_0x2730('0x10')))return;const _0x29a329=this['editor'][_0x2730('0xc')][_0x2730('0x2b')]('list.properties'),_0x3f27a6=this[_0x2730('0xa')]['plugins'][_0x2730('0x2b')](_0x2730('0x1'));_0x29a329[_0x2730('0x27')]&&_0x3f27a6[_0x2730('0x2c')](_0x2730('0xf'),this[_0x2730('0x20')][_0x2730('0x4')](this)),_0x29a329[_0x2730('0x37')]&&_0x3f27a6[_0x2730('0x2c')](_0x2730('0x13'),this[_0x2730('0x8')][_0x2730('0x4')](this)),_0x29a329[_0x2730('0x1a')]&&_0x3f27a6[_0x2730('0x2c')](_0x2730('0x1e'),this[_0x2730('0x36')][_0x2730('0x4')](this)),_0x3f27a6['_descriptionFactory']['registerDescriptionCallback'](this[_0x2730('0x32')][_0x2730('0x4')](this));}['handleListStyleCommand'](_0x5d5c0d,_0x53898e={}){const _0x380368=this['editor'][_0x2730('0x9')][_0x2730('0x2b')]('TrackChangesEditing'),_0xfaa81b=this[_0x2730('0x38')]();this[_0x2730('0xa')]['model'][_0x2730('0x25')](()=>{_0x380368[_0x2730('0x17')](_0xfaa81b,{'commandName':_0x2730('0xf'),'commandParams':[{'type':_0x53898e[_0x2730('0x18')]}],'formatGroupId':_0x2730('0xf')});});}[_0x2730('0x8')](_0x13f6f9,_0x4fdfc0={}){const _0x5e3f0a=this[_0x2730('0xa')][_0x2730('0x9')]['get'](_0x2730('0x1')),_0x32373f=this[_0x2730('0x15')](_0xb7e7c1=>_0xb7e7c1['is']('element',_0x2730('0x1c'))&&'numbered'===_0xb7e7c1[_0x2730('0x28')](_0x2730('0x12')));if(_0x32373f[_0x2730('0x21')]<0x1)return;const _0x425db0=_0x32373f['map'](_0x50671e=>this[_0x2730('0xa')][_0x2730('0x2d')]['createRange'](this[_0x2730('0xa')][_0x2730('0x2d')][_0x2730('0xe')](_0x50671e,_0x2730('0x35')),this[_0x2730('0xa')][_0x2730('0x2d')]['createPositionAt'](_0x50671e,0x0)));this[_0x2730('0xa')][_0x2730('0x2d')]['change'](()=>{_0x5e3f0a['markMultiRangeBlockFormat'](_0x425db0,{'commandName':'listReversed','commandParams':[{'reversed':_0x4fdfc0['reversed']}],'formatGroupId':'listReversed'});});}[_0x2730('0x36')](_0x89c6b3,_0x321d43={}){const _0xc4e7fd=this[_0x2730('0xa')]['plugins'][_0x2730('0x2b')](_0x2730('0x1')),_0x57fbf9=this[_0x2730('0x15')](_0x1323b0=>_0x1323b0['is'](_0x2730('0x30'),_0x2730('0x1c'))&&_0x2730('0x5')===_0x1323b0['getAttribute'](_0x2730('0x12')));if(_0x57fbf9[_0x2730('0x21')]<0x1)return;const _0xf390ed=_0x57fbf9[_0x2730('0x2')](_0xb2ca24=>this['editor']['model'][_0x2730('0x2e')](this[_0x2730('0xa')]['model'][_0x2730('0xe')](_0xb2ca24,'before'),this[_0x2730('0xa')][_0x2730('0x2d')][_0x2730('0xe')](_0xb2ca24,0x0)));this[_0x2730('0xa')][_0x2730('0x2d')][_0x2730('0x25')](()=>{_0xc4e7fd['markMultiRangeBlockFormat'](_0xf390ed,{'commandName':_0x2730('0x1e'),'commandParams':[{'startIndex':_0x321d43[_0x2730('0x1a')]}],'formatGroupId':_0x2730('0x1e')});});}[_0x2730('0x32')](_0x2d70da){const _0x18cb43=this[_0x2730('0xa')][_0x2730('0x33')],{data:_0x4574c5}=_0x2d70da;if(!_0x4574c5)return;let _0x57d751,_0x5665a5;switch(_0x4574c5[_0x2730('0x26')]){case _0x2730('0xf'):_0x57d751='*Change\x20to:*\x20%0',_0x5665a5={'type':_0x2730('0x1d'),'content':_0x32cdc4(_0x18cb43,_0x57d751,_0x32cdc4(_0x18cb43,this[_0x2730('0x11')](_0x4574c5[_0x2730('0x1f')][0x0]['type'])))};break;case _0x2730('0x13'):_0x57d751=_0x4574c5[_0x2730('0x1f')][0x0][_0x2730('0x37')]?_0x2730('0xd'):_0x2730('0x16'),_0x5665a5={'type':'format','content':_0x32cdc4(_0x18cb43,_0x57d751)};break;case _0x2730('0x1e'):_0x57d751=_0x2730('0x6'),_0x5665a5={'type':_0x2730('0x1d'),'content':_0x32cdc4(_0x18cb43,_0x57d751,_0x4574c5[_0x2730('0x1f')][0x0][_0x2730('0x1a')])};}return _0x5665a5;}['_getSuggestionBlocksForListStyle'](){var _0x2e5372,_0x38c6bf,_0x10d83f,_0x54a0c2;const _0x26e85c=this[_0x2730('0xa')][_0x2730('0x9')][_0x2730('0x2b')](_0x2730('0x0'));let _0x1215d9=Array[_0x2730('0x24')](this[_0x2730('0xa')][_0x2730('0x2d')][_0x2730('0x34')][_0x2730('0x39')]['getSelectedBlocks']());return(null===(_0x2e5372=_0x1215d9[0x0])||void 0x0===_0x2e5372?void 0x0:_0x2e5372['is'](_0x2730('0x30'),_0x2730('0x1c')))&&_0x1215d9['unshift'](..._0x26e85c['getSiblingNodes'](this['editor'][_0x2730('0x2d')][_0x2730('0x34')]['selection'][_0x2730('0x19')](),_0x2730('0x1b'))),(null===(_0x38c6bf=_0x1215d9[_0x1215d9[_0x2730('0x21')]-0x1])||void 0x0===_0x38c6bf?void 0x0:_0x38c6bf['is'](_0x2730('0x30'),_0x2730('0x1c')))&&_0x1215d9['push'](..._0x26e85c[_0x2730('0x29')](this[_0x2730('0xa')]['model'][_0x2730('0x34')][_0x2730('0x39')][_0x2730('0xb')](),_0x2730('0x3'))),_0x1215d9=[...new Set(_0x1215d9)],(null===(_0x54a0c2=null===(_0x10d83f=this[_0x2730('0xa')]['model'][_0x2730('0x34')]['selection']['getFirstPosition']())||void 0x0===_0x10d83f?void 0x0:_0x10d83f['parent'])||void 0x0===_0x54a0c2?void 0x0:_0x54a0c2['is'](_0x2730('0x30'),_0x2730('0x1c')))&&(_0x1215d9=_0x1215d9[_0x2730('0x14')](_0x498556=>_0x498556['is'](_0x2730('0x30'),'listItem'))),_0x1215d9;}['_getSuggestionBlocks'](_0x25241c){const _0x2316cd=this['editor'][_0x2730('0x9')][_0x2730('0x2b')]('ListUtils');let _0x3b74bd=Array['from'](this[_0x2730('0xa')][_0x2730('0x2d')][_0x2730('0x34')][_0x2730('0x39')][_0x2730('0x7')]())['filter'](_0x25241c)[_0x2730('0x2')](_0x4e219d=>{const _0x4ddc4f=this[_0x2730('0xa')]['model'][_0x2730('0xe')](_0x4e219d,0x0);return[..._0x2316cd[_0x2730('0x29')](_0x4ddc4f,'backward'),..._0x2316cd[_0x2730('0x29')](_0x4ddc4f,'forward')];})['flat']();return _0x3b74bd=[...new Set(_0x3b74bd)],_0x3b74bd;}['_getTranslationKeyForListStyle'](_0xa438d4){return _0x2730('0x2f')+this['editor'][_0x2730('0x9')][_0x2730('0x2b')](_0x2730('0x0'))['getListTypeFromListStyleType'](_0xa438d4)[_0x2730('0x22')]()+_0x2730('0x2a')+_0xa438d4['toUpperCase']()[_0x2730('0x31')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bd3=['media','downcastDispatcher','showSuggestionHighlights','elementToElement','MediaEmbedEditing','has','locale','TrackChangesEditing','get','data','_descriptionFactory','attribute:url:media','enableCommand','registerElementLabel','afterInit','ELEMENT_MEDIA','dataDowncast','plugins','for','editor','high','div','stop'];(function(_0x31ae24,_0x1bd39f){const _0x574511=function(_0x16666f){while(--_0x16666f){_0x31ae24['push'](_0x31ae24['shift']());}};_0x574511(++_0x1bd39f);}(_0x1bd3,0x134));const _0x5745=function(_0x31ae24,_0x1bd39f){_0x31ae24=_0x31ae24-0x0;let _0x574511=_0x1bd3[_0x31ae24];return _0x574511;};import{Plugin as _0x424471}from'ckeditor5/src/core';import{getTranslation as _0x59c05f}from'../utils/common-translations';export default class ot extends _0x424471{[_0x5745('0x5')](){const _0x9d5f73=this[_0x5745('0xa')];if(!_0x9d5f73[_0x5745('0x8')][_0x5745('0x13')](_0x5745('0x12')))return;const _0x25b4a4=_0x9d5f73[_0x5745('0x8')][_0x5745('0x16')](_0x5745('0x15')),_0x145926=_0x9d5f73[_0x5745('0x14')];_0x25b4a4[_0x5745('0x3')]('mediaEmbed'),_0x25b4a4[_0x5745('0x1')][_0x5745('0x4')](_0x5745('0xe'),_0x1b9c3e=>_0x59c05f(_0x145926,_0x5745('0x6'),_0x1b9c3e)),_0x9d5f73['conversion'][_0x5745('0x9')](_0x5745('0x7'))[_0x5745('0x11')]({'model':_0x5745('0xe'),'view':(_0xd4e676,{writer:_0x3b96af,options:_0x28923f})=>{if(_0x28923f[_0x5745('0x10')])return _0x3b96af['createEmptyElement'](_0x5745('0xc'));},'converterPriority':'high'}),_0x9d5f73[_0x5745('0x0')][_0x5745('0xf')]['on'](_0x5745('0x2'),(_0x580042,_0x4f273e,_0x68d753)=>{_0x68d753['options'][_0x5745('0x10')]&&_0x580042[_0x5745('0xd')]();},{'priority':_0x5745('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5033=['MentionEditing','TrackChangesEditing','plugins','enableCommand','has','afterInit','mention'];(function(_0x68854f,_0x50332d){const _0x280442=function(_0x145d3a){while(--_0x145d3a){_0x68854f['push'](_0x68854f['shift']());}};_0x280442(++_0x50332d);}(_0x5033,0x7f));const _0x2804=function(_0x68854f,_0x50332d){_0x68854f=_0x68854f-0x0;let _0x280442=_0x5033[_0x68854f];return _0x280442;};import{Plugin as _0x13e745}from'ckeditor5/src/core';export default class rt extends _0x13e745{[_0x2804('0x4')](){const _0x518ed1=this['editor'];_0x518ed1['plugins'][_0x2804('0x3')](_0x2804('0x6'))&&_0x518ed1[_0x2804('0x1')]['get'](_0x2804('0x0'))[_0x2804('0x2')](_0x2804('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f94=['editor','get','TrackChangesEditing','enableCommand','PageBreakEditing','pageBreak','plugins','registerElementLabel','_descriptionFactory','afterInit'];(function(_0x5edbbf,_0x1f94f7){const _0x319fa6=function(_0x52b922){while(--_0x52b922){_0x5edbbf['push'](_0x5edbbf['shift']());}};_0x319fa6(++_0x1f94f7);}(_0x1f94,0x1f2));const _0x319f=function(_0x5edbbf,_0x1f94f7){_0x5edbbf=_0x5edbbf-0x0;let _0x319fa6=_0x1f94[_0x5edbbf];return _0x319fa6;};import{Plugin as _0x5512eb}from'ckeditor5/src/core';import{getTranslation as _0x430d78}from'../utils/common-translations';export default class at extends _0x5512eb{[_0x319f('0x1')](){const _0x13d081=this[_0x319f('0x2')];if(!_0x13d081[_0x319f('0x8')]['has'](_0x319f('0x6')))return;_0x13d081[_0x319f('0x8')][_0x319f('0x3')]('TrackChangesEditing')[_0x319f('0x5')](_0x319f('0x7'));const _0x22342f=_0x13d081['plugins'][_0x319f('0x3')](_0x319f('0x4')),_0x503829=_0x13d081['locale'];_0x22342f[_0x319f('0x0')][_0x319f('0x9')](_0x319f('0x7'),_0x2400ce=>_0x430d78(_0x503829,'ELEMENT_PAGE_BREAK',_0x2400ce));}}
|