@ckeditor/ckeditor5-track-changes 35.3.0 → 35.3.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/build/track-changes.js +1 -2
- package/package.json +4 -4
- 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/entercommand.js +1 -1
- package/src/integrations/font.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/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/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/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.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.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
- package/build/translations/ar.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4084=['enableCommand','rawHtml','afterInit','editing','getAttribute','rawHtmlApi','has','plugins','HtmlEmbed','getSelectedElement','commandName','format','element','value','ELEMENT_HTML_EMBED','cancel','get','locale','htmlEmbed','model','selection','view','markBlockFormat'];(function(_0xf3eaeb,_0x408461){const _0x4b42a6=function(_0x66c151){while(--_0x66c151){_0xf3eaeb['push'](_0xf3eaeb['shift']());}};_0x4b42a6(++_0x408461);}(_0x4084,0xa4));const _0x4b42=function(_0xf3eaeb,_0x408461){_0xf3eaeb=_0xf3eaeb-0x0;let _0x4b42a6=_0x4084[_0xf3eaeb];return _0x4b42a6;};import{Plugin as _0x5f22ba}from'ckeditor5/src/core';import{getTranslation as _0x406fa8}from'../utils/common-translations';export default class Q extends _0x5f22ba{[_0x4b42('0x16')](){const _0x31f2d9=this['editor'];if(!_0x31f2d9[_0x4b42('0x4')][_0x4b42('0x3')](_0x4b42('0x5')))return;const _0x225ca8=_0x31f2d9[_0x4b42('0x4')][_0x4b42('0xd')]('TrackChangesEditing'),_0x3dff53=_0x31f2d9[_0x4b42('0xe')],_0x33f8a0=_0x31f2d9[_0x4b42('0x0')][_0x4b42('0x12')]['document'][_0x4b42('0x11')];_0x225ca8['_descriptionFactory']['registerElementLabel'](_0x4b42('0x15'),_0x3a7629=>_0x406fa8(_0x3dff53,'ELEMENT_HTML_EMBED',_0x3a7629)),_0x31f2d9[_0x4b42('0x4')]['get']('TrackChangesEditing')[_0x4b42('0x14')](_0x4b42('0xf'),(_0x18f802,_0x5bd4d5)=>{const _0x4f4218=_0x31f2d9[_0x4b42('0x10')],_0x4f1486=_0x4f4218['document'][_0x4b42('0x11')];_0x4f4218['change'](()=>{const _0x5da0d7=function(_0x595429){const _0x3de673=_0x595429[_0x4b42('0x6')]();if(_0x3de673&&_0x3de673['is'](_0x4b42('0x9'),'rawHtml'))return _0x595429[_0x4b42('0x6')]();return null;}(_0x4f1486);if(!_0x5da0d7)return void _0x18f802(null);const _0x1cf702=_0x5da0d7[_0x4b42('0x1')](_0x4b42('0xa'))||'';if(void 0x0===_0x5bd4d5)return;if(_0x5bd4d5===_0x1cf702)return;_0x225ca8[_0x4b42('0x13')](_0x5da0d7,{'commandName':_0x4b42('0xf'),'commandParams':[_0x5bd4d5]}),_0x33f8a0['getSelectedElement']()['getCustomProperty'](_0x4b42('0x2'))[_0x4b42('0xc')]();});}),_0x225ca8['_descriptionFactory']['registerDescriptionCallback'](_0x1dd67e=>{const {data:_0x3306b5}=_0x1dd67e;if(_0x3306b5&&_0x4b42('0xf')==_0x3306b5[_0x4b42('0x7')]){const _0x1ab3f8=_0x406fa8(_0x3dff53,_0x4b42('0xb'));return{'type':_0x4b42('0x8'),'content':_0x406fa8(_0x3dff53,'*Change\x20%0\x20content*',_0x1ab3f8)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x439a=['format','registerElementLabel','_descriptionFactory','ImageEditing','getNearestSelectionRange','getSuggestion','commandParams','shouldConvertImageType','accept','ImageCaptionUtils','isOwn','type','value','length','ImageBlockEditing','registerCustomCallback','ImageUploadEditing','_findSuggestions','isInlineImage','getSuggestionCallback','ImageCaptionEditing','ImageUtils','head','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','suggestion','newRange','insertion','width','*Remove\x20image\x20text\x20alternative*','normalizedStyles','imageCaption','from','deletion','*Format:*\x20%0','imageStylePreApply','plugins','Users','alt','isCollapsed','isBlockImage','imageStyle','formatBlock','schema','has','next','imageTextAlternative','formatInline','markBlockFormat','enableCommand','FORMAT_SIDE_IMAGE','fromPosition','forceDefaultExecution','isInContent','caption','previous','commands','markInsertion','ImageResize','title','ELEMENT_IMAGE','model','discard','getAttribute','convertBlockImageToInline','toggleImageCaption','registerDescriptionCallback','discardSuggestion','getCaptionFromImageModelElement','isBefore','newValue','imageStylePostApply','imageBlock','start','change','TrackChangesEditing','getClosestSelectedImageElement','isIntersecting','addObject','removeObject','convertInlineImageToBlock','imageInline','getFirstRange','_suggestionFactory','toNext','end','filter','getSuggestions','toPrevious','forward','createRangeOn','getChangedMarkers','join','differ','subType','editor','selection','nodeAfter','find','author','ImageTextAlternativeEditing','commandReversedParams','imageTypeInline','insertImage','document','*Set\x20image\x20width:*\x20%0','hasAttribute','element','resizeImage','get','commandName','ImageStyleEditing','isEqual','imageTypeBlock','createRange','chain','hasSuggestion','ELEMENT_INLINE_IMAGE','ELEMENT_CAPTION','findIndex','refresh','detach'];(function(_0x2eee25,_0x439abc){const _0x25dfc4=function(_0x1c23f3){while(--_0x1c23f3){_0x2eee25['push'](_0x2eee25['shift']());}};_0x25dfc4(++_0x439abc);}(_0x439a,0x129));const _0x25df=function(_0x2eee25,_0x439abc){_0x2eee25=_0x2eee25-0x0;let _0x25dfc4=_0x439a[_0x2eee25];return _0x25dfc4;};import{Plugin as _0x55eabf}from'ckeditor5/src/core';import{LivePosition as _0x1efb0b}from'ckeditor5/src/engine';import{uid as _0x251978}from'ckeditor5/src/utils';import{getTranslation as _0x32720a}from'../utils/common-translations';export default class V extends _0x55eabf{['afterInit'](){const _0x536c4b=this[_0x25df('0x2a')];if(!_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x48')))return;const _0x30f95c=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x16')),_0x5ca996=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x5a')),_0x5852b1={},_0x49e9d2=_0x536c4b['locale'];if(_0x30f95c[_0x25df('0x76')](_0x25df('0x32')),_0x30f95c[_0x25df('0x47')]['registerElementLabel'](_0x25df('0x13'),_0x2352b8=>_0x32720a(_0x49e9d2,_0x25df('0x7'),_0x2352b8)),_0x30f95c[_0x25df('0x47')][_0x25df('0x46')](_0x25df('0x1c'),_0x39f257=>_0x32720a(_0x49e9d2,_0x25df('0x40'),_0x39f257)),_0x30f95c[_0x25df('0x47')][_0x25df('0x46')](_0x25df('0x1'),()=>_0x32720a(_0x49e9d2,_0x25df('0x41'))),_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x55'))&&_0x30f95c[_0x25df('0x76')]('uploadImage'),_0x536c4b[_0x25df('0x69')]['has'](_0x25df('0x53'))&&_0x536c4b['plugins']['has']('ImageInlineEditing')&&(_0x30f95c[_0x25df('0x76')](_0x25df('0x31'),(_0x3ddde1,_0xfdb0cf)=>{const _0x357778=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]);_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{_0x30f95c[_0x25df('0x75')](_0x357778,{'commandName':'imageTypeInline','commandParams':[_0xfdb0cf]},[],_0x25df('0xb'));});}),_0x30f95c['enableCommand'](_0x25df('0x3c'),(_0x52615d,_0x186034)=>{_0x536c4b['model']['change'](_0x4352c9=>{let _0x39e632=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')][_0x25df('0x2b')]),_0x17ad68=_0x4352c9[_0x25df('0x25')](_0x39e632);const _0x3e0755=_0x1efb0b[_0x25df('0x78')](_0x17ad68[_0x25df('0x14')],_0x25df('0x23')),_0x151287=_0x1efb0b['fromPosition'](_0x17ad68[_0x25df('0x20')],_0x25df('0x1f'));_0x30f95c[_0x25df('0x79')](()=>_0x52615d(_0x186034)),_0x39e632=_0x5ca996['getClosestSelectedImageElement'](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']),_0x17ad68=_0x4352c9['createRangeOn'](_0x39e632);const _0x18954e=_0x4352c9['createRange'](_0x3e0755,_0x151287);_0x3e0755[_0x25df('0x44')](),_0x151287[_0x25df('0x44')](),_0x30f95c[_0x25df('0x75')](_0x39e632,{'commandName':_0x25df('0x31')},[],'convertInlineImageToBlock'),_0x18954e['start'][_0x25df('0x10')](_0x17ad68[_0x25df('0x14')])&&_0x30f95c[_0x25df('0x4')](_0x4352c9['createRange'](_0x18954e['start'],_0x17ad68[_0x25df('0x14')]),'convertInlineImageToBlock'),_0x17ad68[_0x25df('0x20')]['isBefore'](_0x18954e[_0x25df('0x20')])&&_0x30f95c[_0x25df('0x4')](_0x4352c9[_0x25df('0x3d')](_0x17ad68[_0x25df('0x20')],_0x18954e[_0x25df('0x20')]),_0x25df('0x1b'));});}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x1b'),_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock',_0x25df('0x1b'),_0x25df('0x4d'),()=>{}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x1b'),'discard',_0x30f95c['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x25df('0x4d'))),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x1b'),_0x25df('0x27'),()=>{}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x1b'),_0x25df('0x9'),([_0x1495dd])=>{const _0x2b60df=_0x30f95c[_0x25df('0x1e')][_0x25df('0x58')](_0x25df('0x60'),'',_0x25df('0x9'));let _0x41fbe6=_0x1495dd[_0x25df('0x14')],_0x55648e=_0x1495dd[_0x25df('0x20')];const _0x28294d=_0x536c4b[_0x25df('0x8')][_0x25df('0x70')][_0x25df('0x49')](_0x41fbe6,'backward'),_0xb5f396=_0x536c4b[_0x25df('0x8')][_0x25df('0x70')][_0x25df('0x49')](_0x55648e,_0x25df('0x24'));_0x28294d[_0x25df('0x6c')]&&(_0x41fbe6=_0x28294d[_0x25df('0x14')]),_0xb5f396[_0x25df('0x6c')]&&(_0x55648e=_0xb5f396[_0x25df('0x20')]),_0x2b60df([_0x536c4b[_0x25df('0x8')]['createRange'](_0x41fbe6,_0x55648e)]);}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')]('formatBlock',_0x25df('0x1b'),_0x25df('0x3e'),_0x4da4b6),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')]('insertion','convertInlineImageToBlock',_0x25df('0x3e'),_0x4da4b6)),_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x59'))&&(_0x30f95c[_0x25df('0x76')](_0x25df('0xc'),(_0x10dcc5,_0xdc5a6e)=>{const _0x5111eb=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x4e'));let _0x144d94=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]),_0x53714b=_0x5111eb[_0x25df('0xf')](_0x144d94);_0x536c4b[_0x25df('0x8')]['change'](()=>{if(_0x53714b)return void _0x30f95c[_0x25df('0x5d')](_0x536c4b['model'][_0x25df('0x25')](_0x53714b));const _0x5306fc=_0x5ca996[_0x25df('0x6d')](_0x144d94);_0x10dcc5(_0xdc5a6e),_0x144d94=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]),_0x53714b=_0x5111eb['getCaptionFromImageModelElement'](_0x144d94),_0x30f95c[_0x25df('0x4')](_0x536c4b[_0x25df('0x8')]['createRangeOn'](_0x53714b),_0x5306fc?null:_0x25df('0x64'));});}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x64'),'chain',_0x4da4b6)),_0x536c4b[_0x25df('0x69')]['has']('ImageStyleEditing')){_0x30f95c[_0x25df('0x76')](_0x25df('0x6e'),(_0x2fb7ef,_0x2b395d)=>{const _0x2317b4=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x6a'))['me'],_0x205ea9=_0x536c4b[_0x25df('0x3')][_0x25df('0x38')](_0x25df('0x6e'));let _0x3bcf04=_0x5ca996['getClosestSelectedImageElement'](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']),_0x21cadd=_0x536c4b['model'][_0x25df('0x25')](_0x3bcf04),_0x29b7cb=_0x205ea9[_0x25df('0x51')];if(_0x29b7cb==_0x2b395d[_0x25df('0x51')])return;const _0x55c18c={'commandName':'imageStyle','commandParams':[_0x2b395d],'formatGroupId':_0x251978()};_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{if(_0x30f95c[_0x25df('0x22')]()[_0x25df('0x21')](_0x2be69d=>_0x2be69d[_0x25df('0x0')]&&_0x2317b4==_0x2be69d[_0x25df('0x2e')]&&('formatBlock'==_0x2be69d[_0x25df('0x50')]||_0x25df('0x74')==_0x2be69d['type'])&&(_0x25df('0x68')==_0x2be69d[_0x25df('0x29')]||_0x25df('0x12')==_0x2be69d[_0x25df('0x29')])&&_0x2be69d['getFirstRange']()[_0x25df('0x3b')](_0x21cadd))['forEach'](_0xb823d4=>_0x30f95c[_0x25df('0xe')](_0xb823d4[_0x25df('0x5b')])),_0x3bcf04=_0x5ca996[_0x25df('0x17')](_0x536c4b['model'][_0x25df('0x33')]['selection']),_0x21cadd=_0x536c4b[_0x25df('0x8')][_0x25df('0x25')](_0x3bcf04),_0x205ea9[_0x25df('0x43')](),_0x536c4b['commands'][_0x25df('0x38')]('imageTypeInline')[_0x25df('0x43')](),_0x536c4b[_0x25df('0x3')][_0x25df('0x38')](_0x25df('0x3c'))[_0x25df('0x43')](),_0x29b7cb=_0x205ea9[_0x25df('0x51')],_0x29b7cb!=_0x2b395d[_0x25df('0x51')])return _0x5ca996[_0x25df('0x57')](_0x3bcf04)&&_0x205ea9[_0x25df('0x4c')](_0x2b395d[_0x25df('0x51')],_0x3bcf04)?(_0x2fb7ef(_0x2b395d),_0x3bcf04=_0x5ca996[_0x25df('0x17')](_0x536c4b['model']['document'][_0x25df('0x2b')]),void _0x30f95c[_0x25df('0x75')](_0x3bcf04,{..._0x55c18c,'commandReversedParams':[{'value':_0x29b7cb||null}]},[],_0x25df('0x68'))):void(_0x5ca996['isBlockImage'](_0x3bcf04)?_0x30f95c[_0x25df('0x75')](_0x3bcf04,_0x55c18c,[],_0x25df('0x12')):_0x30f95c['markInlineFormat'](_0x21cadd,_0x55c18c,_0x25df('0x12')));});});for(const _0x27d3f7 of _0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x3a'))[_0x25df('0x63')])_0x5852b1[_0x27d3f7['name']]=_0x27d3f7[_0x25df('0x6')]['toLowerCase']();_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback'](_0x25df('0x6f'),'imageStylePostApply',_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x74'),_0x25df('0x12'),_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x68'),_0x25df('0x4d'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback'](_0x25df('0x6f'),_0x25df('0x68'),_0x25df('0x9'),(_0x319739,_0x570674)=>{_0x30f95c[_0x25df('0x1e')][_0x25df('0x58')]('formatBlock','',_0x25df('0x4d'))(_0x319739,{'commandName':_0x570674[_0x25df('0x39')],'commandParams':_0x570674[_0x25df('0x30')]});}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock',_0x25df('0x68'),_0x25df('0x3e'),_0x4da4b6);}const _0x45cc89=[{'type':'formatBlock','subType':_0x25df('0x68')},{'type':_0x25df('0x60'),'subType':_0x25df('0x64')},{'type':_0x25df('0x6f'),'subType':_0x25df('0x1b')},{'type':'insertion','subType':_0x25df('0x1b')}];function _0x554115(_0x3b729e,_0x559682){const _0xd0e154=_0x45cc89[_0x25df('0x42')](({type:_0x3e054e,subType:_0x5a35ec})=>_0x3b729e[_0x25df('0x50')]==_0x3e054e&&_0x3b729e[_0x25df('0x29')]==_0x5a35ec),_0x159d5b=_0x45cc89[_0x25df('0x42')](({type:_0x3164c5,subType:_0x221016})=>_0x559682[_0x25df('0x50')]==_0x3164c5&&_0x559682[_0x25df('0x29')]==_0x221016);if(_0xd0e154<0x0||_0x159d5b<0x0)return!0x1;const _0x1fc839=_0x3b729e[_0x25df('0x1d')](),_0x31d71b=_0x559682[_0x25df('0x1d')]();if((0x0==_0xd0e154||0x1==_0xd0e154)&&0x2==_0x159d5b&&_0x1fc839[_0x25df('0x18')](_0x31d71b))return!0x0;if(0x2==_0xd0e154&&0x3==_0x159d5b){const _0x17aac3=_0x30f95c[_0x25df('0x56')](_0x1fc839,_0x25df('0x60'))[_0x25df('0x21')](({suggestion:_0x5a25ce,meta:_0x34c4f0})=>_0x34c4f0[_0x25df('0x4f')]&&'convertInlineImageToBlock'==_0x5a25ce['subType']);if(_0x17aac3[_0x25df('0x52')]>0x1&&_0x31d71b[_0x25df('0x20')][_0x25df('0x3b')](_0x1fc839[_0x25df('0x14')]))return!0x0;if(0x1==_0x17aac3['length']&&(_0x1fc839[_0x25df('0x14')]['isEqual'](_0x31d71b[_0x25df('0x20')])||_0x1fc839[_0x25df('0x20')][_0x25df('0x3b')](_0x31d71b[_0x25df('0x14')])))return!0x0;}if(0x3==_0xd0e154&&0x3==_0x159d5b&&_0x1fc839['start'][_0x25df('0x10')](_0x31d71b[_0x25df('0x14')])){const _0x1dfd50=_0x1fc839['end'][_0x25df('0x2c')],_0xaf6660=_0x31d71b[_0x25df('0x14')]['nodeBefore'];return _0x5ca996[_0x25df('0x6d')](_0x1dfd50)&&_0x1dfd50===_0xaf6660;}return!0x1;}function _0x4da4b6(_0x10ad34,_0x53af2e){return _0x554115(_0x10ad34,_0x53af2e)?[_0x10ad34,_0x53af2e]:_0x554115(_0x53af2e,_0x10ad34)?[_0x53af2e,_0x10ad34]:null;}_0x536c4b['model'][_0x25df('0x33')]['registerPostFixer'](()=>{let _0x57c2a3=!0x1;const _0x2b5140=Array[_0x25df('0x65')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')][_0x25df('0x28')][_0x25df('0x26')]());for(const {name:_0x35e50d,data:_0x300dda}of _0x2b5140){const {group:_0xb41f07,type:_0x10fe12,subType:_0x1dac43,id:_0x1683c1}=_0x30f95c['_splitMarkerName'](_0x35e50d);if(_0x25df('0x5e')==_0xb41f07&&_0x30f95c[_0x25df('0x3f')](_0x1683c1)){if('formatBlock'==_0x10fe12&&(_0x25df('0x68')==_0x1dac43||'imageStylePostApply'==_0x1dac43)){const _0x29782e=_0x30f95c[_0x25df('0x4a')](_0x1683c1);if(_0x300dda[_0x25df('0x5f')]){const _0x3b3186=_0x29782e[_0x25df('0x1d')]()['getContainedElement']();if(_0x5ca996[_0x25df('0x6d')](_0x3b3186))continue;_0x30f95c[_0x25df('0xe')](_0x29782e),_0x57c2a3=!0x0;}}if(_0x25df('0x60')==_0x10fe12&&_0x25df('0x64')==_0x1dac43&&!_0x300dda[_0x25df('0x5f')]){const _0x561484=_0x30f95c[_0x25df('0x4a')](_0x1683c1);_0x561484[_0x25df('0x72')]&&_0x561484[_0x25df('0x72')][_0x25df('0x0')]&&(_0x30f95c[_0x25df('0xe')](_0x561484['next']),_0x57c2a3=!0x0);}}}return _0x57c2a3;}),_0x536c4b['plugins'][_0x25df('0x71')](_0x25df('0x5'))&&_0x30f95c[_0x25df('0x76')](_0x25df('0x37'),(_0x3c1ef4,_0x285c46)=>{const _0x47596a=_0x5ca996[_0x25df('0x17')](_0x536c4b['model']['document'][_0x25df('0x2b')]);_0x47596a['getAttribute'](_0x25df('0x61'))!=_0x285c46['width']&&_0x536c4b['model'][_0x25df('0x15')](()=>{_0x30f95c[_0x25df('0x75')](_0x47596a,{'commandName':_0x25df('0x37'),'commandParams':[_0x285c46]});});}),_0x536c4b[_0x25df('0x69')]['has'](_0x25df('0x2f'))&&_0x30f95c['enableCommand'](_0x25df('0x73'),(_0x1d1177,_0x5a64b7)=>{const _0x28add7=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']);(_0x28add7[_0x25df('0x35')](_0x25df('0x6b'))?_0x28add7[_0x25df('0xa')](_0x25df('0x6b')):'')!=_0x5a64b7[_0x25df('0x11')]&&_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{_0x30f95c['markBlockFormat'](_0x28add7,{'commandName':_0x25df('0x73'),'commandParams':[_0x5a64b7]});});}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x3a07a4=>{if(!!_0x45cc89[_0x25df('0x2d')](({type:_0x17f26a,subType:_0x5b3506})=>_0x3a07a4[_0x25df('0x50')]==_0x17f26a&&_0x3a07a4[_0x25df('0x29')]==_0x5b3506))return _0x3a07a4[_0x25df('0x2')]?{}:void 0x0;}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x2f7be6=>{if(_0x25df('0x60')==_0x2f7be6[_0x25df('0x50')]||_0x25df('0x66')==_0x2f7be6[_0x25df('0x50')]){const _0x5c7353=_0x2f7be6['getContainedElement']();if(_0x5c7353&&_0x5c7353['is'](_0x25df('0x36'),_0x25df('0x1')))return{'type':_0x25df('0x60')==_0x2f7be6[_0x25df('0x50')]?_0x25df('0x19'):_0x25df('0x1a'),'element':_0x5c7353,'quantity':0x1};}}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x34fb3e=>_0x25df('0x6f')==_0x34fb3e[_0x25df('0x50')]&&_0x25df('0x1b')==_0x34fb3e[_0x25df('0x29')]?{'type':_0x25df('0x45'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34fb3e[_0x25df('0x50')]&&'convertBlockImageToInline'==_0x34fb3e[_0x25df('0x29')]?{'type':_0x25df('0x45'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x30f95c[_0x25df('0x47')]['registerDescriptionCallback'](_0x43c041=>{const {data:_0x4ae535}=_0x43c041;if(_0x4ae535){if(_0x25df('0x6e')==_0x4ae535[_0x25df('0x39')]){const _0x4fd535=_0x4ae535[_0x25df('0x4b')][0x0][_0x25df('0x51')];return _0x4bcadb('side'===_0x4fd535?_0x32720a(_0x49e9d2,_0x25df('0x77')):_0x5852b1[_0x4fd535]||_0x4fd535);}if(_0x25df('0x73')==_0x4ae535['commandName']){const _0x3213ec=_0x4ae535[_0x25df('0x4b')][0x0][_0x25df('0x11')];return _0x3213ec?{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x5c'),'\x22'+_0x3213ec+'\x22')}:{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x62'))};}if(_0x25df('0x37')==_0x4ae535[_0x25df('0x39')]){const _0x3111df=_0x4ae535[_0x25df('0x4b')][0x0]['width'];return _0x3111df?{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x34'),_0x3111df)}:{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,'*Reset\x20image\x20width*')};}}function _0x4bcadb(_0x4f7922){return{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x67'),_0x4f7922)};}});}}
|
|
23
|
+
const _0x9fac=['head','getAttribute','createRangeOn','imageTextAlternative','toPrevious','document','ImageStyleEditing','newRange','getCaptionFromImageModelElement','isCollapsed','imageTypeInline','change','*Set\x20image\x20text\x20alternative:*\x20%0','isInlineImage','imageStylePostApply','resizeImage','getSuggestion','isOwn','subType','markInlineFormat','Inline\x20image\x20to\x20block\x20image','schema','toNext','ImageUploadEditing','toggleImageCaption','isIntersecting','nodeBefore','commandName','refresh','registerPostFixer','afterInit','normalizedStyles','title','_splitMarkerName','hasSuggestion','formatBlock','*Reset\x20image\x20width*','start','alt','ImageCaptionUtils','convertBlockImageToInline','registerElementLabel','shouldConvertImageType','imageTypeBlock','imageStyle','_suggestionFactory','ImageTextAlternativeEditing','filter','commandParams','getSuggestions','next','format','insertion','name','getFirstRange','getNearestSelectionRange','newValue','Users','_descriptionFactory','forEach','getClosestSelectedImageElement','caption','registerCustomCallback','end','markInsertion','forward','length','imageInline','*Set\x20image\x20width:*\x20%0','value','*Remove\x20image\x20text\x20alternative*','type','detach','getSuggestionCallback','ELEMENT_IMAGE','ImageCaptionEditing','Block\x20image\x20to\x20inline\x20image','FORMAT_SIDE_IMAGE','markBlockFormat','suggestion','find','registerDescriptionCallback','_findSuggestions','commands','getChangedMarkers','*Format:*\x20%0','plugins','chain','backward','TrackChangesEditing','width','ELEMENT_INLINE_IMAGE','addObject','isBlockImage','createRange','isInContent','enableCommand','imageStylePreApply','getContainedElement','discardSuggestion','isEqual','get','locale','selection','author','side','convertInlineImageToBlock','discard','model','nodeAfter','fromPosition','accept','findIndex','insertImage','join','has','differ','imageCaption','commandReversedParams','uploadImage','previous','isBefore'];(function(_0x470a79,_0x9fac1){const _0x58350c=function(_0x279e7e){while(--_0x279e7e){_0x470a79['push'](_0x470a79['shift']());}};_0x58350c(++_0x9fac1);}(_0x9fac,0x18e));const _0x5835=function(_0x470a79,_0x9fac1){_0x470a79=_0x470a79-0x0;let _0x58350c=_0x9fac[_0x470a79];return _0x58350c;};import{Plugin as _0x4ba67f}from'ckeditor5/src/core';import{LivePosition as _0x4a46bd}from'ckeditor5/src/engine';import{uid as _0x92ff32}from'ckeditor5/src/utils';import{getTranslation as _0xe3b8f3}from'../utils/common-translations';export default class V extends _0x4ba67f{[_0x5835('0x78')](){const _0x5834f5=this['editor'];if(!_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageEditing'))return;const _0x50d537=_0x5834f5[_0x5835('0x36')][_0x5835('0x45')](_0x5835('0x39')),_0x256f2a=_0x5834f5[_0x5835('0x36')]['get']('ImageUtils'),_0x23cca4={},_0x5ce467=_0x5834f5[_0x5835('0x46')];if(_0x50d537[_0x5835('0x40')](_0x5835('0x51')),_0x50d537['_descriptionFactory'][_0x5835('0x9')]('imageBlock',_0x765a6c=>_0xe3b8f3(_0x5ce467,_0x5835('0x2a'),_0x765a6c)),_0x50d537[_0x5835('0x1a')][_0x5835('0x9')](_0x5835('0x23'),_0x16e106=>_0xe3b8f3(_0x5ce467,_0x5835('0x3b'),_0x16e106)),_0x50d537[_0x5835('0x1a')][_0x5835('0x9')](_0x5835('0x1d'),()=>_0xe3b8f3(_0x5ce467,'ELEMENT_CAPTION')),_0x5834f5['plugins'][_0x5835('0x53')](_0x5835('0x71'))&&_0x50d537[_0x5835('0x40')](_0x5835('0x57')),_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageBlockEditing')&&_0x5834f5[_0x5835('0x36')]['has']('ImageInlineEditing')&&(_0x50d537[_0x5835('0x40')]('imageTypeInline',(_0x54b077,_0x54de58)=>{const _0x343149=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]);_0x5834f5[_0x5835('0x4c')][_0x5835('0x65')](()=>{_0x50d537[_0x5835('0x2e')](_0x343149,{'commandName':_0x5835('0x64'),'commandParams':[_0x54de58]},[],_0x5835('0x8'));});}),_0x50d537[_0x5835('0x40')](_0x5835('0xb'),(_0x2732db,_0x428b31)=>{_0x5834f5['model'][_0x5835('0x65')](_0x5a800e=>{let _0x3e6c94=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')]['selection']),_0x531d47=_0x5a800e[_0x5835('0x5c')](_0x3e6c94);const _0x433925=_0x4a46bd['fromPosition'](_0x531d47[_0x5835('0x5')],_0x5835('0x5e')),_0x1c5223=_0x4a46bd[_0x5835('0x4e')](_0x531d47['end'],_0x5835('0x70'));_0x50d537['forceDefaultExecution'](()=>_0x2732db(_0x428b31)),_0x3e6c94=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')]['document']['selection']),_0x531d47=_0x5a800e[_0x5835('0x5c')](_0x3e6c94);const _0x31f412=_0x5a800e['createRange'](_0x433925,_0x1c5223);_0x433925[_0x5835('0x28')](),_0x1c5223[_0x5835('0x28')](),_0x50d537[_0x5835('0x2e')](_0x3e6c94,{'commandName':_0x5835('0x64')},[],_0x5835('0x4a')),_0x31f412[_0x5835('0x5')]['isBefore'](_0x531d47[_0x5835('0x5')])&&_0x50d537[_0x5835('0x20')](_0x5a800e[_0x5835('0x3e')](_0x31f412['start'],_0x531d47['start']),_0x5835('0x4a')),_0x531d47[_0x5835('0x1f')]['isBefore'](_0x31f412['end'])&&_0x50d537[_0x5835('0x20')](_0x5a800e['createRange'](_0x531d47[_0x5835('0x1f')],_0x31f412[_0x5835('0x1f')]),_0x5835('0x4a'));});}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x52'),()=>{}),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x4f'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),_0x5835('0x4b'),_0x50d537['_suggestionFactory'][_0x5835('0x29')](_0x5835('0x3'),'',_0x5835('0x4f'))),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x14'),_0x5835('0x4a'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('insertion',_0x5835('0x4a'),_0x5835('0x4b'),([_0xf44232])=>{const _0x3e93f8=_0x50d537[_0x5835('0xd')][_0x5835('0x29')](_0x5835('0x14'),'',_0x5835('0x4b'));let _0x1da0b8=_0xf44232[_0x5835('0x5')],_0x41a3fb=_0xf44232[_0x5835('0x1f')];const _0x38a094=_0x5834f5[_0x5835('0x4c')][_0x5835('0x6f')][_0x5835('0x17')](_0x1da0b8,_0x5835('0x38')),_0x1e05ab=_0x5834f5[_0x5835('0x4c')][_0x5835('0x6f')][_0x5835('0x17')](_0x41a3fb,_0x5835('0x21'));_0x38a094[_0x5835('0x63')]&&(_0x1da0b8=_0x38a094['start']),_0x1e05ab[_0x5835('0x63')]&&(_0x41a3fb=_0x1e05ab[_0x5835('0x1f')]),_0x3e93f8([_0x5834f5[_0x5835('0x4c')]['createRange'](_0x1da0b8,_0x41a3fb)]);}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x4a'),'chain',_0x2e3d0c),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x14'),_0x5835('0x4a'),'chain',_0x2e3d0c)),_0x5834f5[_0x5835('0x36')]['has'](_0x5835('0x2b'))&&(_0x50d537['enableCommand'](_0x5835('0x72'),(_0x3215e4,_0x2bea09)=>{const _0x3d5b4e=_0x5834f5['plugins'][_0x5835('0x45')](_0x5835('0x7'));let _0x4f3d02=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x4c2e2f=_0x3d5b4e[_0x5835('0x62')](_0x4f3d02);_0x5834f5['model'][_0x5835('0x65')](()=>{if(_0x4c2e2f)return void _0x50d537['markDeletion'](_0x5834f5['model'][_0x5835('0x5c')](_0x4c2e2f));const _0x20e5d8=_0x256f2a[_0x5835('0x3d')](_0x4f3d02);_0x3215e4(_0x2bea09),_0x4f3d02=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x4c2e2f=_0x3d5b4e['getCaptionFromImageModelElement'](_0x4f3d02),_0x50d537[_0x5835('0x20')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0x4c2e2f),_0x20e5d8?null:_0x5835('0x55'));});}),_0x50d537[_0x5835('0xd')]['registerCustomCallback'](_0x5835('0x14'),_0x5835('0x55'),_0x5835('0x37'),_0x2e3d0c)),_0x5834f5[_0x5835('0x36')]['has'](_0x5835('0x60'))){_0x50d537['enableCommand'](_0x5835('0xc'),(_0x2e8feb,_0x365955)=>{const _0x1e8466=_0x5834f5['plugins'][_0x5835('0x45')](_0x5835('0x19'))['me'],_0x13b67c=_0x5834f5['commands'][_0x5835('0x45')](_0x5835('0xc'));let _0xa70978=_0x256f2a['getClosestSelectedImageElement'](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),_0x401f2d=_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0xa70978),_0x59dfe2=_0x13b67c[_0x5835('0x25')];if(_0x59dfe2==_0x365955['value'])return;const _0x5ec510={'commandName':_0x5835('0xc'),'commandParams':[_0x365955],'formatGroupId':_0x92ff32()};_0x5834f5['model'][_0x5835('0x65')](()=>{if(_0x50d537[_0x5835('0x11')]()[_0x5835('0xf')](_0x678130=>_0x678130[_0x5835('0x3f')]&&_0x1e8466==_0x678130[_0x5835('0x48')]&&('formatBlock'==_0x678130[_0x5835('0x27')]||'formatInline'==_0x678130[_0x5835('0x27')])&&(_0x5835('0x41')==_0x678130[_0x5835('0x6c')]||_0x5835('0x68')==_0x678130[_0x5835('0x6c')])&&_0x678130[_0x5835('0x16')]()[_0x5835('0x44')](_0x401f2d))[_0x5835('0x1b')](_0x1d6e21=>_0x50d537[_0x5835('0x43')](_0x1d6e21[_0x5835('0x5a')])),_0xa70978=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]),_0x401f2d=_0x5834f5[_0x5835('0x4c')][_0x5835('0x5c')](_0xa70978),_0x13b67c[_0x5835('0x76')](),_0x5834f5[_0x5835('0x33')][_0x5835('0x45')]('imageTypeInline')['refresh'](),_0x5834f5[_0x5835('0x33')][_0x5835('0x45')](_0x5835('0xb'))[_0x5835('0x76')](),_0x59dfe2=_0x13b67c['value'],_0x59dfe2!=_0x365955[_0x5835('0x25')])return _0x256f2a[_0x5835('0x67')](_0xa70978)&&_0x13b67c[_0x5835('0xa')](_0x365955[_0x5835('0x25')],_0xa70978)?(_0x2e8feb(_0x365955),_0xa70978=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')][_0x5835('0x47')]),void _0x50d537[_0x5835('0x2e')](_0xa70978,{..._0x5ec510,'commandReversedParams':[{'value':_0x59dfe2||null}]},[],_0x5835('0x41'))):void(_0x256f2a['isBlockImage'](_0xa70978)?_0x50d537[_0x5835('0x2e')](_0xa70978,_0x5ec510,[],_0x5835('0x68')):_0x50d537[_0x5835('0x6d')](_0x401f2d,_0x5ec510,_0x5835('0x68')));});});for(const _0x227bad of _0x5834f5[_0x5835('0x36')][_0x5835('0x45')](_0x5835('0x60'))[_0x5835('0x79')])_0x23cca4[_0x227bad[_0x5835('0x15')]]=_0x227bad[_0x5835('0x0')]['toLowerCase']();_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x41'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x68'),_0x5835('0x52'),()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('formatInline',_0x5835('0x68'),_0x5835('0x52'),()=>{}),_0x50d537['_suggestionFactory'][_0x5835('0x1e')](_0x5835('0x3'),_0x5835('0x41'),'accept',()=>{}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')](_0x5835('0x3'),'imageStylePreApply',_0x5835('0x4b'),(_0x5f8cc0,_0x229c60)=>{_0x50d537['_suggestionFactory'][_0x5835('0x29')](_0x5835('0x3'),'',_0x5835('0x4f'))(_0x5f8cc0,{'commandName':_0x229c60[_0x5835('0x75')],'commandParams':_0x229c60[_0x5835('0x56')]});}),_0x50d537[_0x5835('0xd')][_0x5835('0x1e')]('formatBlock','imageStylePreApply',_0x5835('0x37'),_0x2e3d0c);}const _0x481d74=[{'type':'formatBlock','subType':_0x5835('0x41')},{'type':_0x5835('0x14'),'subType':_0x5835('0x55')},{'type':_0x5835('0x3'),'subType':_0x5835('0x4a')},{'type':_0x5835('0x14'),'subType':_0x5835('0x4a')}];function _0x248480(_0x23055f,_0x5ede26){const _0x169c0e=_0x481d74['findIndex'](({type:_0x21818c,subType:_0x3bc6de})=>_0x23055f[_0x5835('0x27')]==_0x21818c&&_0x23055f[_0x5835('0x6c')]==_0x3bc6de),_0x3b1476=_0x481d74[_0x5835('0x50')](({type:_0x6e591f,subType:_0x2c1d3d})=>_0x5ede26['type']==_0x6e591f&&_0x5ede26[_0x5835('0x6c')]==_0x2c1d3d);if(_0x169c0e<0x0||_0x3b1476<0x0)return!0x1;const _0x44c246=_0x23055f[_0x5835('0x16')](),_0xb2ba43=_0x5ede26[_0x5835('0x16')]();if((0x0==_0x169c0e||0x1==_0x169c0e)&&0x2==_0x3b1476&&_0x44c246[_0x5835('0x73')](_0xb2ba43))return!0x0;if(0x2==_0x169c0e&&0x3==_0x3b1476){const _0x22fdb8=_0x50d537[_0x5835('0x32')](_0x44c246,_0x5835('0x14'))['filter'](({suggestion:_0x2d8390,meta:_0x303a7b})=>_0x303a7b[_0x5835('0x6b')]&&_0x5835('0x4a')==_0x2d8390[_0x5835('0x6c')]);if(_0x22fdb8['length']>0x1&&_0xb2ba43[_0x5835('0x1f')][_0x5835('0x44')](_0x44c246['start']))return!0x0;if(0x1==_0x22fdb8[_0x5835('0x22')]&&(_0x44c246[_0x5835('0x5')]['isEqual'](_0xb2ba43[_0x5835('0x1f')])||_0x44c246['end'][_0x5835('0x44')](_0xb2ba43[_0x5835('0x5')])))return!0x0;}if(0x3==_0x169c0e&&0x3==_0x3b1476&&_0x44c246[_0x5835('0x5')][_0x5835('0x59')](_0xb2ba43['start'])){const _0x8293e8=_0x44c246['end'][_0x5835('0x4d')],_0x50522c=_0xb2ba43['start'][_0x5835('0x74')];return _0x256f2a[_0x5835('0x3d')](_0x8293e8)&&_0x8293e8===_0x50522c;}return!0x1;}function _0x2e3d0c(_0x3ae3aa,_0x34cb1b){return _0x248480(_0x3ae3aa,_0x34cb1b)?[_0x3ae3aa,_0x34cb1b]:_0x248480(_0x34cb1b,_0x3ae3aa)?[_0x34cb1b,_0x3ae3aa]:null;}_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x77')](()=>{let _0x55313a=!0x1;const _0x616073=Array['from'](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x54')][_0x5835('0x34')]());for(const {name:_0x2f8191,data:_0x106bc6}of _0x616073){const {group:_0x44eef2,type:_0x33b6dd,subType:_0x33bcae,id:_0x4717e8}=_0x50d537[_0x5835('0x1')](_0x2f8191);if(_0x5835('0x2f')==_0x44eef2&&_0x50d537[_0x5835('0x2')](_0x4717e8)){if(_0x5835('0x3')==_0x33b6dd&&(_0x5835('0x41')==_0x33bcae||_0x5835('0x68')==_0x33bcae)){const _0x47ee12=_0x50d537[_0x5835('0x6a')](_0x4717e8);if(_0x106bc6[_0x5835('0x61')]){const _0x7f0dc2=_0x47ee12[_0x5835('0x16')]()[_0x5835('0x42')]();if(_0x256f2a['isBlockImage'](_0x7f0dc2))continue;_0x50d537['discardSuggestion'](_0x47ee12),_0x55313a=!0x0;}}if(_0x5835('0x14')==_0x33b6dd&&'imageCaption'==_0x33bcae&&!_0x106bc6[_0x5835('0x61')]){const _0x477d9c=_0x50d537['getSuggestion'](_0x4717e8);_0x477d9c['next']&&_0x477d9c[_0x5835('0x12')][_0x5835('0x3f')]&&(_0x50d537[_0x5835('0x43')](_0x477d9c['next']),_0x55313a=!0x0);}}}return _0x55313a;}),_0x5834f5[_0x5835('0x36')][_0x5835('0x53')]('ImageResize')&&_0x50d537[_0x5835('0x40')](_0x5835('0x69'),(_0x452e8e,_0x588453)=>{const _0x133b5d=_0x256f2a[_0x5835('0x1c')](_0x5834f5['model'][_0x5835('0x5f')]['selection']);_0x133b5d[_0x5835('0x5b')](_0x5835('0x3a'))!=_0x588453['width']&&_0x5834f5[_0x5835('0x4c')][_0x5835('0x65')](()=>{_0x50d537[_0x5835('0x2e')](_0x133b5d,{'commandName':_0x5835('0x69'),'commandParams':[_0x588453]});});}),_0x5834f5['plugins']['has'](_0x5835('0xe'))&&_0x50d537[_0x5835('0x40')](_0x5835('0x5d'),(_0x485e66,_0x5fcec1)=>{const _0x953d5e=_0x256f2a[_0x5835('0x1c')](_0x5834f5[_0x5835('0x4c')][_0x5835('0x5f')][_0x5835('0x47')]);(_0x953d5e['hasAttribute'](_0x5835('0x6'))?_0x953d5e[_0x5835('0x5b')]('alt'):'')!=_0x5fcec1[_0x5835('0x18')]&&_0x5834f5['model']['change'](()=>{_0x50d537[_0x5835('0x2e')](_0x953d5e,{'commandName':'imageTextAlternative','commandParams':[_0x5fcec1]});});}),_0x50d537['_descriptionFactory'][_0x5835('0x31')](_0x4fcf26=>{if(!!_0x481d74[_0x5835('0x30')](({type:_0x4a6948,subType:_0x585bba})=>_0x4fcf26[_0x5835('0x27')]==_0x4a6948&&_0x4fcf26[_0x5835('0x6c')]==_0x585bba))return _0x4fcf26[_0x5835('0x58')]?{}:void 0x0;}),_0x50d537[_0x5835('0x1a')][_0x5835('0x31')](_0x39f8b8=>{if(_0x5835('0x14')==_0x39f8b8['type']||'deletion'==_0x39f8b8['type']){const _0x303c16=_0x39f8b8['getContainedElement']();if(_0x303c16&&_0x303c16['is']('element',_0x5835('0x1d')))return{'type':'insertion'==_0x39f8b8[_0x5835('0x27')]?_0x5835('0x3c'):'removeObject','element':_0x303c16,'quantity':0x1};}}),_0x50d537[_0x5835('0x1a')][_0x5835('0x31')](_0x1d5cf1=>_0x5835('0x3')==_0x1d5cf1[_0x5835('0x27')]&&'convertInlineImageToBlock'==_0x1d5cf1['subType']?{'type':_0x5835('0x13'),'content':_0x5835('0x6e')}:_0x5835('0x3')==_0x1d5cf1['type']&&_0x5835('0x8')==_0x1d5cf1['subType']?{'type':'format','content':_0x5835('0x2c')}:void 0x0),_0x50d537['_descriptionFactory'][_0x5835('0x31')](_0x41fac8=>{const {data:_0x510609}=_0x41fac8;if(_0x510609){if('imageStyle'==_0x510609[_0x5835('0x75')]){const _0x236467=_0x510609[_0x5835('0x10')][0x0]['value'];return _0x3e3c42(_0x5835('0x49')===_0x236467?_0xe3b8f3(_0x5ce467,_0x5835('0x2d')):_0x23cca4[_0x236467]||_0x236467);}if(_0x5835('0x5d')==_0x510609[_0x5835('0x75')]){const _0x7a00fd=_0x510609[_0x5835('0x10')][0x0][_0x5835('0x18')];return _0x7a00fd?{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x66'),'\x22'+_0x7a00fd+'\x22')}:{'type':'format','content':_0xe3b8f3(_0x5ce467,_0x5835('0x26'))};}if(_0x5835('0x69')==_0x510609[_0x5835('0x75')]){const _0x2511c7=_0x510609['commandParams'][0x0]['width'];return _0x2511c7?{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x24'),_0x2511c7)}:{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x4'))};}}function _0x3e3c42(_0x5ccf86){return{'type':_0x5835('0x13'),'content':_0xe3b8f3(_0x5ce467,_0x5835('0x35'),_0x5ccf86)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3309=['importWord','_handleImportedData','trackChanges','execute','editor','high','commands','_setSuggestionData','_trackChangesExecuted','get','plugins','forEach','enableCommand','_trackChangesValueDuringImport','lowest','listenTo','track_changes','TrackChangesEditing','Users','value'];(function(_0x3a5851,_0x3309dc){const _0x4c4152=function(_0x3b309f){while(--_0x3b309f){_0x3a5851['push'](_0x3a5851['shift']());}};_0x4c4152(++_0x3309dc);}(_0x3309,0x159));const _0x4c41=function(_0x3a5851,_0x3309dc){_0x3a5851=_0x3a5851-0x0;let _0x4c4152=_0x3309[_0x3a5851];return _0x4c4152;};import{Plugin as _0x2156e6}from'ckeditor5/src/core';import _0xdcfa47 from'../trackchangesediting';export default class X extends _0x2156e6{constructor(_0x38cbd2){super(_0x38cbd2),this[_0x4c41('0x8')]=!0x1,this[_0x4c41('0x3')]=!0x1;}['afterInit'](){const _0xb87495=this['editor'],_0x40a208=_0xb87495[_0x4c41('0x1')]['get']('importWord'),_0xcdf209=_0xb87495[_0x4c41('0x1')]['get'](_0x4c41('0x11'));_0x40a208&&(_0x40a208['on'](_0x4c41('0x12'),(_0x310780,[,_0x40eaf6])=>{this[_0x4c41('0x8')]=_0xcdf209[_0x4c41('0xe')],_0x40eaf6['collaboration_features'][_0x4c41('0xb')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x4c41('0x0')}),this[_0x4c41('0xa')](_0x40a208,'dataInsert',this[_0x4c41('0x10')]['bind'](this)),this[_0x4c41('0xa')](_0x40a208,'dataInsert',()=>{this[_0x4c41('0x3')]&&(_0xcdf209['execute'](),this[_0x4c41('0x3')]=!0x1);},{'priority':_0x4c41('0x9')}),_0xb87495[_0x4c41('0x5')][_0x4c41('0x4')](_0x4c41('0xc'))[_0x4c41('0x7')](_0x4c41('0xf')));}[_0x4c41('0x10')](_0x35fb1e,_0x2a70c2){const {suggestions:_0x51404d}=_0x2a70c2,_0x1355b8=this[_0x4c41('0x13')][_0x4c41('0x1')][_0x4c41('0x4')]('trackChanges'),_0x1aa5df=_0x1355b8[_0x4c41('0xe')];this[_0x4c41('0x8')]!==_0x1aa5df&&(_0x1355b8[_0x4c41('0x12')](),this['_trackChangesExecuted']=!0x0),_0x51404d&&_0x51404d[_0x4c41('0x6')](({id:_0x4820ca,type:_0xb00705,author:_0x53937d,created_at:_0xdabbc8})=>{const _0x4275b9={'id':_0x4820ca,'type':_0xb00705,'authorId':this[_0x4c41('0x13')][_0x4c41('0x5')][_0x4c41('0x4')](_0x4c41('0xd'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x53937d,'createdAt':_0xdabbc8?new Date(_0xdabbc8):new Date(),'source':_0x4c41('0xf')}}};this['editor']['plugins'][_0x4c41('0x4')](_0xdcfa47)[_0x4c41('0x2')](_0x4275b9);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37d5=['filter','selection','enableCommand','commandName','IndentBlock','format','document','model','indent','_descriptionFactory','getSelectedBlocks','outdentBlock','has','indentBlock','get','locale','registerDescriptionCallback','getItemLabel','afterInit','change','editor','outdent','plugins','from','TrackChangesEditing','getItems'];(function(_0x5d8fa3,_0x37d551){const _0xbc581c=function(_0x1ed328){while(--_0x1ed328){_0x5d8fa3['push'](_0x5d8fa3['shift']());}};_0xbc581c(++_0x37d551);}(_0x37d5,0x1ed));const _0xbc58=function(_0x5d8fa3,_0x37d551){_0x5d8fa3=_0x5d8fa3-0x0;let _0xbc581c=_0x37d5[_0x5d8fa3];return _0xbc581c;};import{Plugin as _0x315060}from'ckeditor5/src/core';import{getTranslation as _0x17cfa7}from'../utils/common-translations';export default class Y extends _0x315060{[_0xbc58('0x13')](){const _0x2d2721=this['editor'],_0x3f1f65=_0x2d2721[_0xbc58('0x17')][_0xbc58('0xf')](_0xbc58('0x19'));_0x2d2721['plugins'][_0xbc58('0xd')]('IndentEditing')&&(_0x3f1f65['enableCommand'](_0xbc58('0x9')),_0x3f1f65[_0xbc58('0x3')](_0xbc58('0x16')));const _0x1ffbe9=_0x2d2721[_0xbc58('0x10')];if(_0x2d2721[_0xbc58('0x17')][_0xbc58('0xd')](_0xbc58('0x5'))){for(const _0x28ed1c of[_0xbc58('0xe'),_0xbc58('0xc')])_0x3f1f65['enableCommand'](_0x28ed1c,()=>{const _0x50e07b=Array[_0xbc58('0x18')](this[_0xbc58('0x15')][_0xbc58('0x8')][_0xbc58('0x7')][_0xbc58('0x2')][_0xbc58('0xb')]())[_0xbc58('0x1')](_0x306144=>this[_0xbc58('0x15')]['model']['schema']['checkAttribute'](_0x306144,'blockIndent'));_0x2d2721['model'][_0xbc58('0x14')](()=>{for(const _0x1f0fce of _0x50e07b)_0x3f1f65['markBlockFormat'](_0x1f0fce,{'commandName':_0x28ed1c,'commandParams':[{'value':''}],'formatGroupId':_0xbc58('0xe')});});});_0x3f1f65[_0xbc58('0xa')][_0xbc58('0x11')](_0x1e26ef=>{const {data:_0x34d53e}=_0x1e26ef;if(!_0x34d53e)return;if(_0xbc58('0xe')!=_0x34d53e[_0xbc58('0x4')]&&_0xbc58('0xc')!=_0x34d53e[_0xbc58('0x4')])return;const _0x5707c9=_0x1e26ef[_0xbc58('0x0')]()[0x0],_0x4fa5b7=_0x3f1f65[_0xbc58('0xa')][_0xbc58('0x12')](_0x5707c9);return _0xbc58('0xe')==_0x34d53e['commandName']?{'type':_0xbc58('0x6'),'content':_0x17cfa7(_0x1ffbe9,'*Indent:*\x20%0',_0x4fa5b7)}:'outdentBlock'==_0x34d53e['commandName']?{'type':_0xbc58('0x6'),'content':_0x17cfa7(_0x1ffbe9,'*Outdent:*\x20%0',_0x4fa5b7)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x10c7=['get','requires','input','editor','enableCommand','TrackChangesEditing'];(function(_0x45e90a,_0x10c781){var _0x1df918=function(_0x4cf9b6){while(--_0x4cf9b6){_0x45e90a['push'](_0x45e90a['shift']());}};_0x1df918(++_0x10c781);}(_0x10c7,0x189));var _0x1df9=function(_0x45e90a,_0x10c781){_0x45e90a=_0x45e90a-0x0;var _0x1df918=_0x10c7[_0x45e90a];return _0x1df918;};import{Plugin as _0x64dea}from'ckeditor5/src/core';import{Input as _0x4ef7cb}from'ckeditor5/src/typing';export default class Z extends _0x64dea{static get[_0x1df9('0x4')](){return[_0x4ef7cb];}['init'](){this[_0x1df9('0x0')]['plugins'][_0x1df9('0x3')](_0x1df9('0x2'))[_0x1df9('0x1')](_0x1df9('0x5'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x417e=['commandName','get','hasAttribute','editor','unlink','*Remove\x20link*','*Set\x20link:*\x20%0','markInlineFormat','locale','format','document','isCollapsed','commandParams','getAttribute','registerDescriptionCallback','TrackChangesEditing','link','_descriptionFactory','getFirstPosition','getFirstRange','afterInit','change','selection','plugins','model','enableCommand','has','linkHref','LinkEditing'];(function(_0x27e859,_0x417e1f){const _0x189380=function(_0x3b8bd1){while(--_0x3b8bd1){_0x27e859['push'](_0x27e859['shift']());}};_0x189380(++_0x417e1f);}(_0x417e,0x10b));const _0x1893=function(_0x27e859,_0x417e1f){_0x27e859=_0x27e859-0x0;let _0x189380=_0x417e[_0x27e859];return _0x189380;};import{Plugin as _0x5baf9f}from'ckeditor5/src/core';import{findAttributeRange as _0x5e18e4}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2de67b}from'./utils';import{getTranslation as _0x5addc2}from'../utils/common-translations';export default class tt extends _0x5baf9f{[_0x1893('0xe')](){const _0x5a5cb0=this[_0x1893('0x1a')];if(!_0x5a5cb0[_0x1893('0x11')][_0x1893('0x14')](_0x1893('0x16')))return;const _0x21b007=_0x5a5cb0[_0x1893('0x11')][_0x1893('0x18')](_0x1893('0x9'));_0x21b007[_0x1893('0x13')]('link',(_0x31f42b,_0x158ef6)=>{const _0x509301=_0x5a5cb0[_0x1893('0x12')][_0x1893('0x4')][_0x1893('0x10')];let _0x410ddb=[];if(_0x509301[_0x1893('0x5')]){if(!_0x509301[_0x1893('0x19')](_0x1893('0x15')))return void _0x31f42b(_0x158ef6);{const _0x21c79a=_0x5e18e4(_0x509301[_0x1893('0xc')](),_0x1893('0x15'),_0x509301['getAttribute'](_0x1893('0x15')),_0x5a5cb0[_0x1893('0x12')]);_0x410ddb=[_0x21c79a];}}else _0x410ddb=Array['from'](_0x509301['getRanges']());_0x5a5cb0[_0x1893('0x12')]['change'](()=>{for(const _0xe03015 of _0x410ddb)_0x21b007[_0x1893('0x1')](_0xe03015,{'commandName':_0x1893('0xa'),'commandParams':[_0x158ef6]});});}),_0x21b007[_0x1893('0x13')]('unlink',()=>{const _0x186336=this[_0x1893('0x1a')][_0x1893('0x12')],_0x4f31c7=_0x186336[_0x1893('0x4')][_0x1893('0x10')];_0x186336[_0x1893('0xf')](()=>{let _0x2cd76a=[];if(_0x4f31c7[_0x1893('0x5')])_0x2cd76a=[_0x5e18e4(_0x4f31c7[_0x1893('0xc')](),_0x1893('0x15'),_0x4f31c7[_0x1893('0x7')](_0x1893('0x15')),_0x5a5cb0[_0x1893('0x12')])];else _0x2cd76a=_0x2de67b(_0x1893('0x15'),_0x4f31c7[_0x1893('0xd')](),_0x5a5cb0['model']);for(const _0xbe10d2 of _0x2cd76a)_0x21b007[_0x1893('0x1')](_0xbe10d2,{'commandName':_0x1893('0x1b'),'commandParams':[]});});}),_0x21b007[_0x1893('0xb')][_0x1893('0x8')](_0xb498f0=>{const {data:_0x17f05f}=_0xb498f0,_0x559d4a=_0x5a5cb0[_0x1893('0x2')];if(_0x17f05f){if('link'==_0x17f05f['commandName']){const _0x1fc7d0=_0x17f05f[_0x1893('0x6')][0x0];return{'type':_0x1893('0x3'),'content':_0x5addc2(_0x559d4a,_0x1893('0x0'),'\x22'+_0x1fc7d0+'\x22')};}return _0x1893('0x1b')==_0x17f05f[_0x1893('0x17')]?{'type':_0x1893('0x3'),'content':_0x5addc2(_0x559d4a,_0x1893('0x1c'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5924=['ListEditing','enableCommand','*Check\x20item*','outdentList','TodoListEditing','TrackChangesEditing','listIndent','todoListChecked','todo','locale','List','listType','ELEMENT_TODO_LIST','checkTodoList','get','getSelectedBlocks','createPositionAt','add','filter','numberedList','length','*Uncheck\x20item*','before','replace','_selectedElements','name','markBlockFormat','bulleted','push','value','editor','selection','element','findIndex','nextSibling','parent','from','commandParams','ELEMENT_LIST_ITEM','getAttribute','_descriptionFactory','commands','isObject','slice','ELEMENT_NUMBERED_LIST','schema','*Indent:*\x20%0','afterInit','plugins','execute','registerElementLabel','ELEMENT_BULLETED_LIST','model','listItem','document','previousSibling','registerDescriptionCallback','bulletedList','*Change\x20to:*\x20%0','commandName','todoList','change','format','numbered','checkChild','*Outdent:*\x20%0','indentList','has'];(function(_0x57afc7,_0x592402){const _0x120759=function(_0x39f845){while(--_0x39f845){_0x57afc7['push'](_0x57afc7['shift']());}};_0x120759(++_0x592402);}(_0x5924,0x1d4));const _0x1207=function(_0x57afc7,_0x592402){_0x57afc7=_0x57afc7-0x0;let _0x120759=_0x5924[_0x57afc7];return _0x120759;};import{Plugin as _0x230822}from'ckeditor5/src/core';import{getTranslation as _0x5026ae}from'../utils/common-translations';export default class it extends _0x230822{[_0x1207('0x37')](){const _0x4c3727=this[_0x1207('0x26')],_0x44ea5d=_0x4c3727[_0x1207('0x11')];if(!_0x4c3727[_0x1207('0x38')][_0x1207('0x7')](_0x1207('0x8')))return;const _0xc97ebf=_0x4c3727[_0x1207('0x38')][_0x1207('0x16')](_0x1207('0xd')),_0x4cd87a=_0x4c3727[_0x1207('0x38')]['has'](_0x1207('0xc'));function _0x1b590e(_0x2124f0){return()=>{const _0x58c654=_0x4c3727[_0x1207('0x3c')]['document']['selection'],_0x93bd86=_0x4c3727[_0x1207('0x31')][_0x1207('0x16')](_0x2124f0);if(_0x93bd86[_0x1207('0x25')])return void _0x4c3727[_0x1207('0x39')]('paragraph',{});const _0x5f2472=_0x2124f0[_0x1207('0x33')](0x0,-0x4),_0x47ff9c=function(_0x4edcfb,_0x14082a,_0x34bb89){let _0x54c049=Array[_0x1207('0x2c')](_0x4edcfb)['filter'](_0x308d6c=>function(_0x578c1c,_0x5e88eb){return _0x5e88eb[_0x1207('0x4')](_0x578c1c[_0x1207('0x2b')],_0x1207('0x3d'))&&!_0x5e88eb[_0x1207('0x32')](_0x578c1c);}(_0x308d6c,_0x34bb89));_0x54c049=_0x54c049[_0x1207('0x1a')](_0x2288d6=>!_0x2288d6['is'](_0x1207('0x28'),_0x1207('0x3d'))||_0x2288d6[_0x1207('0x2f')](_0x1207('0x13'))!=_0x14082a);const _0x4fa07d=new Set();for(const _0x3b366 of _0x54c049)_0x3b366['is'](_0x1207('0x28'),_0x1207('0x3d'))?_0x4fa07d['add'](Pt(_0x3b366)):_0x4fa07d[_0x1207('0x19')](_0x3b366);return Array[_0x1207('0x2c')](_0x4fa07d);}(_0x58c654[_0x1207('0x17')](),_0x5f2472,_0x4c3727['model'][_0x1207('0x35')]);_0x4c3727[_0x1207('0x3c')][_0x1207('0x1')](()=>{for(const _0x5d4a4a of _0x47ff9c)_0xc97ebf[_0x1207('0x22')](_0x5d4a4a,{'commandName':_0x2124f0,'commandParams':[{'forceValue':!_0x93bd86[_0x1207('0x25')]}],'formatGroupId':'blockName'},Gt(_0x5d4a4a));});};}function _0x20dd74(_0x548a4b){return()=>{const _0x27544f=function(_0x305001){const _0x43f293=(_0x305001=Array['from'](_0x305001))[_0x1207('0x29')](_0x33eac9=>'listItem'!=_0x33eac9['name']);return _0x43f293>-0x1&&(_0x305001=_0x305001[_0x1207('0x33')](0x0,_0x43f293)),_0x305001;}(_0x4c3727['model'][_0x1207('0x3e')][_0x1207('0x27')][_0x1207('0x17')]()),_0x3edb3c=_0x4c3727[_0x1207('0x3c')]['createRange'](_0x4c3727['model'][_0x1207('0x18')](_0x27544f[0x0],_0x1207('0x1e')),_0x4c3727['model']['createPositionAt'](_0x27544f[_0x27544f[_0x1207('0x1c')]-0x1],'end'));_0x4c3727[_0x1207('0x3c')]['change'](()=>{_0xc97ebf[_0x1207('0x22')](_0x3edb3c,{'commandName':_0x548a4b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2617c2){const _0x23d4f6=new Set();for(const _0x3b168d of _0x2617c2){let _0x4ccecf=_0x3b168d[_0x1207('0x2a')];for(;_0x4ccecf&&_0x4ccecf[_0x1207('0x2f')](_0x1207('0xe'))>_0x3b168d[_0x1207('0x2f')]('listIndent');)_0x23d4f6[_0x1207('0x19')](_0x4ccecf),_0x4ccecf=_0x4ccecf['nextSibling'];}return Array[_0x1207('0x2c')](_0x23d4f6);}(_0x27544f));});};}_0xc97ebf[_0x1207('0x9')]('numberedList',_0x1b590e('numberedList')),_0xc97ebf[_0x1207('0x9')]('bulletedList',_0x1b590e(_0x1207('0x41'))),_0x4cd87a&&_0xc97ebf[_0x1207('0x9')](_0x1207('0x0'),_0x1b590e(_0x1207('0x0'))),_0xc97ebf['enableCommand'](_0x1207('0x6'),_0x20dd74(_0x1207('0x6'))),_0xc97ebf[_0x1207('0x9')]('outdentList',_0x20dd74('outdentList')),_0x4cd87a&&_0xc97ebf['enableCommand'](_0x1207('0x15'),()=>{const _0x259db8=_0x4c3727[_0x1207('0x31')][_0x1207('0x16')](_0x1207('0x15')),_0x3e7ffe=Array[_0x1207('0x2c')](_0x259db8[_0x1207('0x20')]);_0x3e7ffe[_0x1207('0x1a')](_0x30482d=>_0x30482d[_0x1207('0x2f')](_0x1207('0xf'))!=_0x259db8['value']),_0x4c3727['model'][_0x1207('0x1')](()=>{for(const _0x3edff4 of _0x3e7ffe)_0xc97ebf[_0x1207('0x22')](_0x3edff4,{'commandName':_0x1207('0x15'),'commandParams':[{'forceValue':!_0x259db8['value']}]});});}),_0xc97ebf[_0x1207('0x30')][_0x1207('0x3a')](_0x1207('0x3d'),_0x979dfb=>_0x5026ae(_0x44ea5d,_0x1207('0x2e'),_0x979dfb)),_0xc97ebf['_descriptionFactory'][_0x1207('0x40')](_0x1a9b9a=>{const {data:_0x380dc0}=_0x1a9b9a;if(_0x380dc0){if(_0x1207('0x1b')==_0x380dc0[_0x1207('0x43')]||_0x1207('0x41')==_0x380dc0[_0x1207('0x43')]||_0x1207('0x0')==_0x380dc0[_0x1207('0x43')])switch(_0x380dc0[_0x1207('0x43')][_0x1207('0x1f')](_0x1207('0x12'),'')){case _0x1207('0x23'):return _0x4b081f(_0x5026ae(_0x44ea5d,_0x1207('0x3b')));case _0x1207('0x3'):return _0x4b081f(_0x5026ae(_0x44ea5d,_0x1207('0x34')));case _0x1207('0x10'):return _0x4b081f(_0x5026ae(_0x44ea5d,_0x1207('0x14')));}if(_0x1207('0x6')==_0x380dc0[_0x1207('0x43')])return{'type':_0x1207('0x2'),'content':_0x5026ae(_0x44ea5d,_0x1207('0x36'),_0x5026ae(_0x44ea5d,_0x1207('0x2e')))};if(_0x1207('0xb')==_0x380dc0[_0x1207('0x43')])return{'type':_0x1207('0x2'),'content':_0x5026ae(_0x44ea5d,_0x1207('0x5'),_0x5026ae(_0x44ea5d,_0x1207('0x2e')))};if(_0x1207('0x15')==_0x380dc0[_0x1207('0x43')])return _0x380dc0[_0x1207('0x2d')][0x0]['forceValue']?{'type':_0x1207('0x2'),'content':_0x5026ae(_0x44ea5d,_0x1207('0xa'))}:{'type':_0x1207('0x2'),'content':_0x5026ae(_0x44ea5d,_0x1207('0x1d'))};}function _0x4b081f(_0x2267c2){return{'type':_0x1207('0x2'),'content':_0x5026ae(_0x44ea5d,_0x1207('0x42'),_0x2267c2)};}});}}function Pt(_0x296858){const _0x221726=_0x296858[_0x1207('0x2f')](_0x1207('0xe'));if(0x0==_0x221726)return _0x296858;let _0x4ab145=_0x296858;for(;_0x296858[_0x1207('0x3f')]&&_0x296858[_0x1207('0x3f')]['is'](_0x1207('0x28'),_0x1207('0x3d'));){const _0x2cbec3=_0x296858['previousSibling'][_0x1207('0x2f')](_0x1207('0xe'));if(_0x2cbec3==_0x221726)_0x4ab145=_0x296858[_0x1207('0x3f')];else{if(_0x2cbec3<_0x221726)break;}_0x296858=_0x296858[_0x1207('0x3f')];}return _0x4ab145;}function Gt(_0x146abd){const _0x4ee6ef=[];if(_0x146abd['is'](_0x1207('0x28'),_0x1207('0x3d'))&&_0x146abd[_0x1207('0x2f')](_0x1207('0xe'))>0x0){let _0x37c42=_0x146abd[_0x1207('0x2a')];for(;_0x37c42&&_0x1207('0x3d')==_0x37c42[_0x1207('0x21')]&&_0x37c42['getAttribute']('listIndent')==_0x146abd[_0x1207('0x2f')]('listIndent');)_0x4ee6ef[_0x1207('0x24')](_0x37c42),_0x37c42=_0x37c42['nextSibling'];}return _0x4ee6ef;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fad=['MediaEmbedEditing','media','plugins','div','ELEMENT_MEDIA','locale','downcastDispatcher','dataDowncast','enableCommand','high','stop','get','createEmptyElement','editor','data','conversion','elementToElement','afterInit','TrackChangesEditing','registerElementLabel','showSuggestionHighlights','options','has','_descriptionFactory'];(function(_0x5c7c2a,_0x2fad37){const _0x1bdf68=function(_0x5420e8){while(--_0x5420e8){_0x5c7c2a['push'](_0x5c7c2a['shift']());}};_0x1bdf68(++_0x2fad37);}(_0x2fad,0x1e8));const _0x1bdf=function(_0x5c7c2a,_0x2fad37){_0x5c7c2a=_0x5c7c2a-0x0;let _0x1bdf68=_0x2fad[_0x5c7c2a];return _0x1bdf68;};import{Plugin as _0x4d416b}from'ckeditor5/src/core';import{getTranslation as _0x3b52a0}from'../utils/common-translations';export default class st extends _0x4d416b{[_0x1bdf('0x9')](){const _0xffb3f9=this[_0x1bdf('0x5')];if(!_0xffb3f9[_0x1bdf('0x12')][_0x1bdf('0xe')](_0x1bdf('0x10')))return;const _0x1c5c7a=_0xffb3f9['plugins'][_0x1bdf('0x3')](_0x1bdf('0xa')),_0x5f31be=_0xffb3f9[_0x1bdf('0x15')];_0x1c5c7a[_0x1bdf('0x0')]('mediaEmbed'),_0x1c5c7a[_0x1bdf('0xf')][_0x1bdf('0xb')](_0x1bdf('0x11'),_0x4f5aa1=>_0x3b52a0(_0x5f31be,_0x1bdf('0x14'),_0x4f5aa1)),_0xffb3f9[_0x1bdf('0x7')]['for'](_0x1bdf('0x17'))[_0x1bdf('0x8')]({'model':_0x1bdf('0x11'),'view':(_0x20dba8,{writer:_0x15d0c3,options:_0x5d7e33})=>{if(_0x5d7e33[_0x1bdf('0xc')])return _0x15d0c3[_0x1bdf('0x4')](_0x1bdf('0x13'));},'converterPriority':_0x1bdf('0x1')}),_0xffb3f9[_0x1bdf('0x6')][_0x1bdf('0x16')]['on']('attribute:url:media',(_0x55bcef,_0x56b61b,_0x22fa3a)=>{_0x22fa3a[_0x1bdf('0xd')]['showSuggestionHighlights']&&_0x55bcef[_0x1bdf('0x2')]();},{'priority':_0x1bdf('0x1')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40b9=['has','afterInit','mention','enableCommand','plugins','MentionEditing','get','editor','TrackChangesEditing'];(function(_0x20b189,_0x40b921){const _0x24ffeb=function(_0x2efe51){while(--_0x2efe51){_0x20b189['push'](_0x20b189['shift']());}};_0x24ffeb(++_0x40b921);}(_0x40b9,0xed));const _0x24ff=function(_0x20b189,_0x40b921){_0x20b189=_0x20b189-0x0;let _0x24ffeb=_0x40b9[_0x20b189];return _0x24ffeb;};import{Plugin as _0x2737a6}from'ckeditor5/src/core';export default class et extends _0x2737a6{[_0x24ff('0x7')](){const _0x1c1ffd=this[_0x24ff('0x4')];_0x1c1ffd[_0x24ff('0x1')][_0x24ff('0x6')](_0x24ff('0x2'))&&_0x1c1ffd[_0x24ff('0x1')][_0x24ff('0x3')](_0x24ff('0x5'))[_0x24ff('0x0')](_0x24ff('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa8bc=['has','pageBreak','TrackChangesEditing','get','enableCommand','afterInit','plugins','PageBreakEditing','registerElementLabel','_descriptionFactory','locale','ELEMENT_PAGE_BREAK','editor'];(function(_0x22fc66,_0xa8bc0){const _0x7daebf=function(_0x482487){while(--_0x482487){_0x22fc66['push'](_0x22fc66['shift']());}};_0x7daebf(++_0xa8bc0);}(_0xa8bc,0xf7));const _0x7dae=function(_0x22fc66,_0xa8bc0){_0x22fc66=_0x22fc66-0x0;let _0x7daebf=_0xa8bc[_0x22fc66];return _0x7daebf;};import{Plugin as _0x30a677}from'ckeditor5/src/core';import{getTranslation as _0x4719c8}from'../utils/common-translations';export default class nt extends _0x30a677{[_0x7dae('0x5')](){const _0x49c048=this[_0x7dae('0xc')];if(!_0x49c048['plugins'][_0x7dae('0x0')](_0x7dae('0x7')))return;_0x49c048[_0x7dae('0x6')][_0x7dae('0x3')](_0x7dae('0x2'))[_0x7dae('0x4')](_0x7dae('0x1'));const _0x2d29b2=_0x49c048[_0x7dae('0x6')][_0x7dae('0x3')](_0x7dae('0x2')),_0x180501=_0x49c048[_0x7dae('0xa')];_0x2d29b2[_0x7dae('0x9')][_0x7dae('0x8')](_0x7dae('0x1'),_0x5f2d50=>_0x4719c8(_0x180501,_0x7dae('0xb'),_0x5f2d50));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2159=['has','commandName','nodeAfter','afterInit','editing','$text','toViewPosition','model','showSuggestionHighlights','TrackChangesEditing','filter','registerElementLabel','isLimit','checkChild','markerName','consume','options','isBlock','ELEMENT_PARAGRAPH','*Insert:*\x20%0','name','createUIElement','bindElementToMarker','addMarker:suggestion:insertion','isTouching','locale','type','downcastDispatcher','getItemLabel','editor','plugins','selection','markBlockFormat','schema','writer','get','getFirstRange','mapper','_descriptionFactory','end','paragraph','insert','insertParagraph','highest','enableCommand','from','start','markerRange','document'];(function(_0x310388,_0x21595a){const _0x435780=function(_0x4aeeb2){while(--_0x4aeeb2){_0x310388['push'](_0x310388['shift']());}};_0x435780(++_0x21595a);}(_0x2159,0x132));const _0x4357=function(_0x310388,_0x21595a){_0x310388=_0x310388-0x0;let _0x435780=_0x2159[_0x310388];return _0x435780;};import{Plugin as _0xb8bc6}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x1f2e12}from'./utils';import{getTranslation as _0x1d2650}from'../utils/common-translations';export default class ot extends _0xb8bc6{[_0x4357('0x28')](){const _0x575576=this[_0x4357('0x11')];if(!_0x575576[_0x4357('0x12')][_0x4357('0x25')]('Paragraph'))return;const _0x33d4da=_0x575576[_0x4357('0xd')],_0x3791d3=_0x575576[_0x4357('0x12')][_0x4357('0x17')]('TrackChangesEditing');_0x3791d3[_0x4357('0x1a')][_0x4357('0x30')](_0x4357('0x1c'),_0x36cd6e=>_0x1d2650(_0x33d4da,_0x4357('0x6'),_0x36cd6e)),_0x3791d3['enableCommand'](_0x4357('0x1c'),(_0x5bb631,_0x1b47f1={})=>{const _0x4922b3=_0x575576[_0x4357('0x2c')][_0x4357('0x24')],_0x4fbcf8=_0x1b47f1[_0x4357('0x13')]||_0x4922b3[_0x4357('0x13')],_0xa94258=Array[_0x4357('0x21')](_0x4fbcf8['getSelectedBlocks']())[_0x4357('0x2f')](_0x3d2e91=>function(_0x21cb32,_0x449dbc){return _0x449dbc[_0x4357('0x1')](_0x21cb32['parent'],_0x4357('0x1c'))&&!_0x449dbc['isObject'](_0x21cb32)&&_0x4357('0x1c')!=_0x21cb32[_0x4357('0x8')];}(_0x3d2e91,this[_0x4357('0x11')][_0x4357('0x2c')][_0x4357('0x15')]));_0x575576['model']['change'](()=>{for(const _0x8a11ce of _0xa94258)_0x3791d3[_0x4357('0x14')](_0x8a11ce,{'commandName':_0x4357('0x1c'),'commandParams':[],'formatGroupId':'blockName'},_0x1f2e12(_0x8a11ce));});}),_0x3791d3[_0x4357('0x1a')]['registerDescriptionCallback'](_0x42081f=>{const {data:_0x147973}=_0x42081f;if(_0x147973&&_0x4357('0x1c')==_0x147973[_0x4357('0x26')])return{'type':'format','content':_0x1d2650(_0x33d4da,'*Change\x20to:*\x20%0',_0x1d2650(_0x33d4da,_0x4357('0x6')))};}),_0x3791d3[_0x4357('0x20')](_0x4357('0x1e')),_0x575576[_0x4357('0x29')][_0x4357('0xf')]['on']('addMarker:suggestion:insertion',tr(_0x575576),{'priority':_0x4357('0x1f')}),_0x575576['data'][_0x4357('0xf')]['on'](_0x4357('0xb'),(_0x22eee1,_0x1b4d02,_0x53588e)=>{_0x53588e[_0x4357('0x4')][_0x4357('0x2d')]&&tr(_0x575576,{'showActiveMarker':!0x1})(_0x22eee1,_0x1b4d02,_0x53588e);},{'priority':'highest'});const _0x3463e2=_0x3791d3[_0x4357('0x1a')];_0x3463e2['registerDescriptionCallback'](_0x4c2c3f=>{if('insertion'!==_0x4c2c3f[_0x4357('0xe')])return;const {start:_0x3940d1,end:_0x3faae2}=_0x4c2c3f[_0x4357('0x18')]();if(!_0x3940d1['isTouching'](_0x3faae2)||!_0x3940d1[_0x4357('0x27')])return;const _0x4689cf=_0x575576['model'][_0x4357('0x15')],_0x594168=_0x3940d1[_0x4357('0x27')];return _0x4689cf[_0x4357('0x5')](_0x594168)&&!_0x4689cf[_0x4357('0x0')](_0x594168)&&_0x4689cf['checkChild'](_0x594168,'$text')?{'type':'insertion','content':_0x1d2650(_0x33d4da,_0x4357('0x7'),_0x3463e2[_0x4357('0x10')](_0x594168,0x1))}:void 0x0;});}}function tr(_0x3b7266,{showActiveMarker:_0x386914=!0x0}={}){return(_0x31fdf1,_0x522072,_0x518774)=>{const _0x52a219=_0x3b7266[_0x4357('0x12')][_0x4357('0x17')](_0x4357('0x2e')),_0x5a7ee1=_0x522072[_0x4357('0x23')][_0x4357('0x22')],_0x356302=_0x522072[_0x4357('0x23')][_0x4357('0x1b')],_0x408467=_0x3b7266[_0x4357('0x2c')]['schema'];if(!_0x5a7ee1[_0x4357('0xc')](_0x356302)||!_0x5a7ee1[_0x4357('0x27')])return;const _0x3a18a0=_0x5a7ee1[_0x4357('0x27')];if(_0x408467['isBlock'](_0x3a18a0)&&!_0x408467['isLimit'](_0x3a18a0)&&_0x408467['checkChild'](_0x3a18a0,_0x4357('0x2a'))){if(!_0x518774['consumable'][_0x4357('0x3')](_0x522072[_0x4357('0x23')],_0x31fdf1[_0x4357('0x8')]))return;const _0x34062d=_0x518774['writer'][_0x4357('0x9')]('span',{'class':'ck-suggestion-marker-split'}),_0x287f9d=_0x518774[_0x4357('0x19')][_0x4357('0x2b')](_0x356302);_0x386914&&_0x52a219['activeMarkers']['includes'](_0x522072[_0x4357('0x2')])&&_0x518774[_0x4357('0x16')]['addClass']('ck-suggestion-marker--active',_0x34062d),_0x518774[_0x4357('0x16')][_0x4357('0x1d')](_0x287f9d,_0x34062d),_0x518774[_0x4357('0x19')][_0x4357('0xa')](_0x34062d,_0x522072[_0x4357('0x2')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5628=['model','getAttributes','get','getAttributeProperties','TrackChangesEditing','plugins','RemoveFormatEditing','commandName','locale','schema','document','isFormatting','*Remove\x20all\x20formatting*','markInlineFormat','_descriptionFactory','from','getRanges','change','enableCommand','afterInit','getItems','removeFormat','isCollapsed'];(function(_0x31179e,_0x5628c5){const _0x57cbf2=function(_0x3e2cfa){while(--_0x3e2cfa){_0x31179e['push'](_0x31179e['shift']());}};_0x57cbf2(++_0x5628c5);}(_0x5628,0x132));const _0x57cb=function(_0x31179e,_0x5628c5){_0x31179e=_0x31179e-0x0;let _0x57cbf2=_0x5628[_0x31179e];return _0x57cbf2;};import{Plugin as _0x3b6b4b}from'ckeditor5/src/core';import{getTranslation as _0x30866f}from'../utils/common-translations';export default class rt extends _0x3b6b4b{[_0x57cb('0xc')](){const _0x3f7f58=this['editor'];if(!_0x3f7f58[_0x57cb('0x15')]['has'](_0x57cb('0x16')))return;const _0x5de2c5=_0x3f7f58[_0x57cb('0x15')][_0x57cb('0x12')](_0x57cb('0x14'));_0x5de2c5[_0x57cb('0xb')](_0x57cb('0xe'),_0x5a3e6c=>{const _0x4d23b8=_0x3f7f58[_0x57cb('0x10')][_0x57cb('0x3')]['selection'];_0x4d23b8[_0x57cb('0xf')]?_0x5a3e6c():_0x3f7f58[_0x57cb('0x10')][_0x57cb('0xa')](()=>{const _0x26c841=Array[_0x57cb('0x8')](_0x4d23b8[_0x57cb('0x9')]());for(const _0x2888a8 of _0x26c841)for(const _0x3bff10 of _0x2888a8[_0x57cb('0xd')]())to(_0x3bff10,_0x3f7f58[_0x57cb('0x10')][_0x57cb('0x2')])&&_0x5de2c5[_0x57cb('0x6')](_0x3f7f58[_0x57cb('0x10')]['createRangeOn'](_0x3bff10),{'commandName':'removeFormat','commandParams':[]});});}),_0x5de2c5[_0x57cb('0x7')]['registerDescriptionCallback'](_0x357add=>{const {data:_0x49d2b6}=_0x357add;if(_0x49d2b6&&_0x57cb('0xe')==_0x49d2b6[_0x57cb('0x0')])return{'type':'format','content':_0x30866f(_0x3f7f58[_0x57cb('0x1')],_0x57cb('0x5'))};});}}function to(_0x5beb39,_0x330539){for(const [_0x512b1c]of _0x5beb39[_0x57cb('0x11')]()){const _0x49bce2=_0x330539[_0x57cb('0x13')](_0x512b1c);if(_0x49bce2&&_0x49bce2[_0x57cb('0x4')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc906=['editor','acceptSuggestion','discardSelectedSuggestions','goToPreviousRestrictedEditingException','enableCommand','afterInit','discardSuggestion','discardAllSuggestions','RestrictedEditingModeEditing','has','trackChanges','get','plugins','acceptSelectedSuggestions','acceptAllSuggestions'];(function(_0x572aba,_0xc90682){const _0x1d430c=function(_0x214b5e){while(--_0x214b5e){_0x572aba['push'](_0x572aba['shift']());}};_0x1d430c(++_0xc90682);}(_0xc906,0x1d2));const _0x1d43=function(_0x572aba,_0xc90682){_0x572aba=_0x572aba-0x0;let _0x1d430c=_0xc906[_0x572aba];return _0x1d430c;};import{Plugin as _0x420454}from'ckeditor5/src/core';export default class at extends _0x420454{[_0x1d43('0x4')](){const _0x540887=this[_0x1d43('0xe')];if(!_0x540887[_0x1d43('0xb')][_0x1d43('0x8')](_0x1d43('0x7')))return;const _0x9b5b20=_0x540887[_0x1d43('0xb')]['get']('TrackChangesEditing');_0x9b5b20['enableCommand'](_0x1d43('0x2')),_0x9b5b20[_0x1d43('0x3')]('goToNextRestrictedEditingException');const _0x4ce316=_0x540887[_0x1d43('0xb')][_0x1d43('0xa')]('RestrictedEditingModeEditing');_0x4ce316[_0x1d43('0x3')](_0x1d43('0x9')),_0x4ce316[_0x1d43('0x3')](_0x1d43('0x0')),_0x4ce316[_0x1d43('0x3')](_0x1d43('0x5')),_0x4ce316['enableCommand'](_0x1d43('0xd')),_0x4ce316['enableCommand'](_0x1d43('0x6')),_0x4ce316[_0x1d43('0x3')](_0x1d43('0xc')),_0x4ce316[_0x1d43('0x3')](_0x1d43('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57ef=['writer','consumable','ck-suggestion-marker--active','includes','activeMarkers','registerElementLabel','enableCommand','_descriptionFactory','split','mapper','model','showSuggestionHighlights','init','markerRange','editing','plugins','span','addClass','deletion','data','requires','softBreak','addMarker:suggestion:deletion','options','locale','bindElementToMarker','element','addMarker:suggestion:insertion','ELEMENT_LINE_BREAK','ck-suggestion-marker-','shiftEnter','createUIElement','markerName','get','downcastDispatcher','test','TrackChangesEditing'];(function(_0x14001e,_0x57ef0e){const _0x19897e=function(_0x5c416b){while(--_0x5c416b){_0x14001e['push'](_0x14001e['shift']());}};_0x19897e(++_0x57ef0e);}(_0x57ef,0x69));const _0x1989=function(_0x14001e,_0x57ef0e){_0x14001e=_0x14001e-0x0;let _0x19897e=_0x57ef[_0x14001e];return _0x19897e;};import{Plugin as _0x5d7350}from'ckeditor5/src/core';import{ShiftEnter as _0xdcc56b}from'ckeditor5/src/enter';import{getTranslation as _0x55e6a2}from'../utils/common-translations';export default class ct extends _0x5d7350{static get[_0x1989('0x1a')](){return[_0xdcc56b];}[_0x1989('0x12')](){const _0x238b86=this['editor'],_0x30b76e=_0x238b86[_0x1989('0x15')][_0x1989('0x2')](_0x1989('0x5'));_0x30b76e[_0x1989('0xc')](_0x1989('0x24')),_0x238b86[_0x1989('0x14')]['downcastDispatcher']['on'](_0x1989('0x21'),re(_0x238b86),{'priority':'high'}),_0x238b86['editing'][_0x1989('0x3')]['on'](_0x1989('0x1c'),re(_0x238b86),{'priority':'high'}),_0x238b86[_0x1989('0x19')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d7a1d,_0x5820f8,_0x226461)=>{_0x226461[_0x1989('0x1d')][_0x1989('0x11')]&&re(_0x238b86,{'showActiveMarker':!0x1})(_0x4d7a1d,_0x5820f8,_0x226461);}),_0x30b76e[_0x1989('0xd')][_0x1989('0xb')](_0x1989('0x1b'),_0x129c35=>_0x55e6a2(_0x238b86[_0x1989('0x1e')],_0x1989('0x22'),_0x129c35));}}function re(_0x92da16,{showActiveMarker:_0x2219f1=!0x0}={}){return(_0xdb39aa,_0x57e181,_0x5c8576)=>{const _0x3cedb0=_0x92da16[_0x1989('0x15')]['get']('TrackChangesEditing');if(!_0x5c8576[_0x1989('0x7')][_0x1989('0x4')](_0x57e181[_0x1989('0x13')],_0xdb39aa['name']))return;const _0x17873b=_0x92da16[_0x1989('0x10')];for(const _0x2580a5 of _0x57e181[_0x1989('0x13')]['getItems']()){if(!_0x2580a5['is'](_0x1989('0x20'),_0x1989('0x1b')))continue;const _0x221adb=_0x1989('0x18')==_0x57e181[_0x1989('0x1')]['split'](':')[0x1]?'merge':_0x1989('0xe'),_0x237f41=_0x5c8576[_0x1989('0x6')][_0x1989('0x0')](_0x1989('0x16'),{'class':_0x1989('0x23')+_0x221adb}),_0x4ee271=_0x5c8576[_0x1989('0xf')]['toViewPosition'](_0x17873b['createPositionBefore'](_0x2580a5));_0x2219f1&&_0x3cedb0[_0x1989('0xa')][_0x1989('0x9')](_0x57e181[_0x1989('0x1')])&&_0x5c8576[_0x1989('0x6')][_0x1989('0x17')](_0x1989('0x8'),_0x237f41),_0x5c8576[_0x1989('0x6')]['insert'](_0x4ee271,_0x237f41),_0x5c8576['mapper'][_0x1989('0x1f')](_0x237f41,_0x57e181[_0x1989('0x1')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x141d=['getRanges','commands','afterInit','editor','change','StandardEditingModeEditing','markInlineFormat','_descriptionFactory','commandName','TrackChangesEditing','restrictedEditingException','isCollapsed','locale','has','format','commandParams','forceValue','FORMAT_RESTRICTED_ENABLED','get','selection','plugins','model','value','enableCommand'];(function(_0x1c6e07,_0x141de1){const _0x1c8151=function(_0x1e0f0e){while(--_0x1e0f0e){_0x1c6e07['push'](_0x1c6e07['shift']());}};_0x1c8151(++_0x141de1);}(_0x141d,0xdb));const _0x1c81=function(_0x1c6e07,_0x141de1){_0x1c6e07=_0x1c6e07-0x0;let _0x1c8151=_0x141d[_0x1c6e07];return _0x1c8151;};import{Plugin as _0x5d564f}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x54cdeb}from'./utils';import{getTranslation as _0xba90ef}from'../utils/common-translations';export default class ht extends _0x5d564f{[_0x1c81('0x17')](){const _0xd9615a=this[_0x1c81('0x0')],_0x100a3b=_0xd9615a[_0x1c81('0x12')],_0x521495=_0xd9615a[_0x1c81('0x9')];if(!_0xd9615a['plugins'][_0x1c81('0xa')](_0x1c81('0x2')))return;const _0x23479f=_0xd9615a[_0x1c81('0x11')][_0x1c81('0xf')](_0x1c81('0x6')),_0x1cf219=_0x1c81('0x7'),_0x203c8c=_0xd9615a[_0x1c81('0x16')][_0x1c81('0xf')](_0x1cf219);_0x23479f[_0x1c81('0x14')](_0x1cf219,(_0xa71320,_0xce5cae={})=>{const _0x3f49b5=_0x100a3b['document'][_0x1c81('0x10')];if(_0x3f49b5[_0x1c81('0x8')])return void _0xa71320(_0xce5cae);const _0x23cb8d=void 0x0!==_0xce5cae['forceValue']?_0xce5cae[_0x1c81('0xd')]:!_0x203c8c[_0x1c81('0x13')];_0x100a3b[_0x1c81('0x1')](()=>{const _0xede2e=Array['from'](_0x3f49b5[_0x1c81('0x15')]());for(const _0x2af828 of _0xede2e){const _0x48a282=_0x23cb8d?[_0x2af828]:_0x54cdeb(_0x1cf219,_0x2af828,_0x100a3b);for(const _0x45d743 of _0x48a282)_0x23479f[_0x1c81('0x3')](_0x45d743,{'commandName':_0x1cf219,'commandParams':[{'forceValue':_0x23cb8d}]});}});}),_0x23479f[_0x1c81('0x4')]['registerDescriptionCallback'](_0x242dba=>{const {data:_0x26c074}=_0x242dba;if(_0x26c074&&_0x26c074[_0x1c81('0x5')]==_0x1cf219)return _0x26c074[_0x1c81('0xc')][0x0][_0x1c81('0xd')]?{'type':_0x1c81('0xb'),'content':_0xba90ef(_0x521495,_0x1c81('0xe'))}:{'type':'format','content':_0xba90ef(_0x521495,'FORMAT_RESTRICTED_DISABLED')};});}}
|