@ckeditor/ckeditor5-track-changes 35.3.0 → 35.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x78d8=['editing','selection','commandName','locale','getAttribute','TrackChangesEditing','htmlEmbed','registerElementLabel','editor','rawHtml','value','registerDescriptionCallback','model','get','has','*Change\x20%0\x20content*','getCustomProperty','ELEMENT_HTML_EMBED','_descriptionFactory','document','view','HtmlEmbed','rawHtmlApi','format','getSelectedElement','plugins','markBlockFormat','element','change','enableCommand'];(function(_0x49be84,_0x78d820){const _0x4ac8e9=function(_0x5463bb){while(--_0x5463bb){_0x49be84['push'](_0x49be84['shift']());}};_0x4ac8e9(++_0x78d820);}(_0x78d8,0x19a));const _0x4ac8=function(_0x49be84,_0x78d820){_0x49be84=_0x49be84-0x0;let _0x4ac8e9=_0x78d8[_0x49be84];return _0x4ac8e9;};import{Plugin as _0x281663}from'ckeditor5/src/core';import{getTranslation as _0x3ba8c1}from'../utils/common-translations';export default class Q extends _0x281663{['afterInit'](){const _0x57b3a4=this[_0x4ac8('0x12')];if(!_0x57b3a4[_0x4ac8('0x5')][_0x4ac8('0x18')](_0x4ac8('0x1')))return;const _0x27d7d8=_0x57b3a4[_0x4ac8('0x5')][_0x4ac8('0x17')](_0x4ac8('0xf')),_0xeb1f09=_0x57b3a4[_0x4ac8('0xd')],_0x3c226b=_0x57b3a4[_0x4ac8('0xa')][_0x4ac8('0x0')][_0x4ac8('0x1d')]['selection'];_0x27d7d8[_0x4ac8('0x1c')][_0x4ac8('0x11')]('rawHtml',_0x5bdb64=>_0x3ba8c1(_0xeb1f09,_0x4ac8('0x1b'),_0x5bdb64)),_0x57b3a4[_0x4ac8('0x5')]['get'](_0x4ac8('0xf'))[_0x4ac8('0x9')](_0x4ac8('0x10'),(_0x5bc174,_0x575c9e)=>{const _0x240015=_0x57b3a4[_0x4ac8('0x16')],_0x17197f=_0x240015[_0x4ac8('0x1d')][_0x4ac8('0xb')];_0x240015[_0x4ac8('0x8')](()=>{const _0x5ec980=function(_0x3635f9){const _0x4472cb=_0x3635f9[_0x4ac8('0x4')]();if(_0x4472cb&&_0x4472cb['is'](_0x4ac8('0x7'),_0x4ac8('0x13')))return _0x3635f9[_0x4ac8('0x4')]();return null;}(_0x17197f);if(!_0x5ec980)return void _0x5bc174(null);const _0xd68a58=_0x5ec980[_0x4ac8('0xe')](_0x4ac8('0x14'))||'';if(void 0x0===_0x575c9e)return;if(_0x575c9e===_0xd68a58)return;_0x27d7d8[_0x4ac8('0x6')](_0x5ec980,{'commandName':_0x4ac8('0x10'),'commandParams':[_0x575c9e]}),_0x3c226b[_0x4ac8('0x4')]()[_0x4ac8('0x1a')](_0x4ac8('0x2'))['cancel']();});}),_0x27d7d8[_0x4ac8('0x1c')][_0x4ac8('0x15')](_0x241756=>{const {data:_0x1e56f7}=_0x241756;if(_0x1e56f7&&'htmlEmbed'==_0x1e56f7[_0x4ac8('0xc')]){const _0x46b2df=_0x3ba8c1(_0xeb1f09,_0x4ac8('0x1b'));return{'type':_0x4ac8('0x3'),'content':_0x3ba8c1(_0xeb1f09,_0x4ac8('0x19'),_0x46b2df)};}});}}
|
|
@@ -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 _0x4635=['length','getAttribute','_findSuggestions','createRangeOn','ImageInlineEditing','FORMAT_SIDE_IMAGE','ELEMENT_INLINE_IMAGE','getClosestSelectedImageElement','imageStyle','ImageCaptionUtils','forEach','fromPosition','removeObject','imageStylePostApply','nodeAfter','backward','hasSuggestion','_descriptionFactory','imageCaption','alt','markBlockFormat','chain','type','*Remove\x20image\x20text\x20alternative*','getSuggestionCallback','imageTypeInline','find','start','width','schema','*Set\x20image\x20text\x20alternative:*\x20%0','ImageResize','forceDefaultExecution','markDeletion','suggestion','commands','Users','newValue','commandParams','registerPostFixer','join','markInsertion','resizeImage','toNext','model','locale','isOwn','registerDescriptionCallback','isInlineImage','previous','*Set\x20image\x20width:*\x20%0','imageBlock','insertion','has','*Format:*\x20%0','deletion','detach','convertBlockImageToInline','getChangedMarkers','toLowerCase','next','refresh','createRange','registerElementLabel','selection','subType','ImageUploadEditing','getSuggestions','commandReversedParams','ImageTextAlternativeEditing','isIntersecting','filter','_suggestionFactory','change','getSuggestion','convertInlineImageToBlock','name','value','isBefore','getCaptionFromImageModelElement','formatBlock','isEqual','isBlockImage','accept','author','findIndex','element','getContainedElement','get','isCollapsed','imageTextAlternative','discard','discardSuggestion','imageTypeBlock','document','editor','hasAttribute','caption','forward','plugins','Block\x20image\x20to\x20inline\x20image','shouldConvertImageType','isInContent','imageInline','getNearestSelectionRange','toPrevious','ELEMENT_CAPTION','Inline\x20image\x20to\x20block\x20image','toggleImageCaption','ImageUtils','end','enableCommand','getFirstRange','commandName','format','newRange','registerCustomCallback','addObject','*Reset\x20image\x20width*','markInlineFormat','imageStylePreApply'];(function(_0x4f8b19,_0x463583){const _0x2f6f03=function(_0x4c0299){while(--_0x4c0299){_0x4f8b19['push'](_0x4f8b19['shift']());}};_0x2f6f03(++_0x463583);}(_0x4635,0x1b2));const _0x2f6f=function(_0x4f8b19,_0x463583){_0x4f8b19=_0x4f8b19-0x0;let _0x2f6f03=_0x4635[_0x4f8b19];return _0x2f6f03;};import{Plugin as _0x336904}from'ckeditor5/src/core';import{LivePosition as _0x128193}from'ckeditor5/src/engine';import{uid as _0x5ebd6a}from'ckeditor5/src/utils';import{getTranslation as _0x43eb8f}from'../utils/common-translations';export default class V extends _0x336904{['afterInit'](){const _0x30d359=this[_0x2f6f('0x18')];if(!_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x67')]('ImageEditing'))return;const _0x4df196=_0x30d359['plugins'][_0x2f6f('0x11')]('TrackChangesEditing'),_0x59dec7=_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x11')](_0x2f6f('0x26')),_0xbd1a61={},_0x951fd9=_0x30d359[_0x2f6f('0x5f')];if(_0x4df196[_0x2f6f('0x28')]('insertImage'),_0x4df196['_descriptionFactory'][_0x2f6f('0x71')](_0x2f6f('0x65'),_0x31ef57=>_0x43eb8f(_0x951fd9,'ELEMENT_IMAGE',_0x31ef57)),_0x4df196[_0x2f6f('0x43')][_0x2f6f('0x71')](_0x2f6f('0x20'),_0x1f488f=>_0x43eb8f(_0x951fd9,_0x2f6f('0x38'),_0x1f488f)),_0x4df196[_0x2f6f('0x43')][_0x2f6f('0x71')]('caption',()=>_0x43eb8f(_0x951fd9,_0x2f6f('0x23'))),_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x67')](_0x2f6f('0x74'))&&_0x4df196[_0x2f6f('0x28')]('uploadImage'),_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x67')]('ImageBlockEditing')&&_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x67')](_0x2f6f('0x36'))&&(_0x4df196[_0x2f6f('0x28')]('imageTypeInline',(_0x3bf2fa,_0x4d9797)=>{const _0x4639d1=_0x59dec7['getClosestSelectedImageElement'](_0x30d359['model'][_0x2f6f('0x17')][_0x2f6f('0x72')]);_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x2')](()=>{_0x4df196[_0x2f6f('0x46')](_0x4639d1,{'commandName':_0x2f6f('0x4b'),'commandParams':[_0x4d9797]},[],_0x2f6f('0x6b'));});}),_0x4df196[_0x2f6f('0x28')](_0x2f6f('0x16'),(_0x3c099e,_0xf1fffe)=>{_0x30d359['model']['change'](_0x1fab38=>{let _0x2bc148=_0x59dec7[_0x2f6f('0x39')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x72')]),_0x3e778d=_0x1fab38[_0x2f6f('0x35')](_0x2bc148);const _0x306f94=_0x128193[_0x2f6f('0x3d')](_0x3e778d[_0x2f6f('0x4d')],_0x2f6f('0x22')),_0x32c592=_0x128193[_0x2f6f('0x3d')](_0x3e778d[_0x2f6f('0x27')],_0x2f6f('0x5d'));_0x4df196[_0x2f6f('0x52')](()=>_0x3c099e(_0xf1fffe)),_0x2bc148=_0x59dec7[_0x2f6f('0x39')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x72')]),_0x3e778d=_0x1fab38[_0x2f6f('0x35')](_0x2bc148);const _0x514f70=_0x1fab38['createRange'](_0x306f94,_0x32c592);_0x306f94[_0x2f6f('0x6a')](),_0x32c592[_0x2f6f('0x6a')](),_0x4df196[_0x2f6f('0x46')](_0x2bc148,{'commandName':'imageTypeInline'},[],_0x2f6f('0x4')),_0x514f70['start'][_0x2f6f('0x7')](_0x3e778d['start'])&&_0x4df196[_0x2f6f('0x5b')](_0x1fab38[_0x2f6f('0x70')](_0x514f70[_0x2f6f('0x4d')],_0x3e778d[_0x2f6f('0x4d')]),_0x2f6f('0x4')),_0x3e778d['end']['isBefore'](_0x514f70[_0x2f6f('0x27')])&&_0x4df196['markInsertion'](_0x1fab38['createRange'](_0x3e778d['end'],_0x514f70['end']),_0x2f6f('0x4'));});}),_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')](_0x2f6f('0x9'),_0x2f6f('0x4'),_0x2f6f('0x5a'),()=>{}),_0x4df196['_suggestionFactory'][_0x2f6f('0x2d')](_0x2f6f('0x9'),_0x2f6f('0x4'),_0x2f6f('0xc'),()=>{}),_0x4df196[_0x2f6f('0x1')]['registerCustomCallback'](_0x2f6f('0x9'),'convertInlineImageToBlock','discard',_0x4df196[_0x2f6f('0x1')]['getSuggestionCallback'](_0x2f6f('0x9'),'',_0x2f6f('0xc'))),_0x4df196[_0x2f6f('0x1')]['registerCustomCallback'](_0x2f6f('0x66'),_0x2f6f('0x4'),'join',()=>{}),_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')]('insertion',_0x2f6f('0x4'),_0x2f6f('0x14'),([_0x4e2acb])=>{const _0x203c18=_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x4a')]('insertion','','discard');let _0x1a13fb=_0x4e2acb[_0x2f6f('0x4d')],_0x7a0968=_0x4e2acb['end'];const _0x455e0a=_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x4f')][_0x2f6f('0x21')](_0x1a13fb,_0x2f6f('0x41')),_0x53b948=_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x4f')]['getNearestSelectionRange'](_0x7a0968,_0x2f6f('0x1b'));_0x455e0a[_0x2f6f('0x12')]&&(_0x1a13fb=_0x455e0a['start']),_0x53b948[_0x2f6f('0x12')]&&(_0x7a0968=_0x53b948[_0x2f6f('0x27')]),_0x203c18([_0x30d359['model'][_0x2f6f('0x70')](_0x1a13fb,_0x7a0968)]);}),_0x4df196[_0x2f6f('0x1')]['registerCustomCallback'](_0x2f6f('0x9'),_0x2f6f('0x4'),_0x2f6f('0x47'),_0x518169),_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')](_0x2f6f('0x66'),_0x2f6f('0x4'),_0x2f6f('0x47'),_0x518169)),_0x30d359['plugins']['has']('ImageCaptionEditing')&&(_0x4df196[_0x2f6f('0x28')](_0x2f6f('0x25'),(_0x4a2278,_0x43aa12)=>{const _0x44d13c=_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x11')](_0x2f6f('0x3b'));let _0x424e66=_0x59dec7[_0x2f6f('0x39')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x72')]),_0x30e839=_0x44d13c[_0x2f6f('0x8')](_0x424e66);_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x2')](()=>{if(_0x30e839)return void _0x4df196[_0x2f6f('0x53')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x35')](_0x30e839));const _0x419220=_0x59dec7[_0x2f6f('0xb')](_0x424e66);_0x4a2278(_0x43aa12),_0x424e66=_0x59dec7['getClosestSelectedImageElement'](_0x30d359[_0x2f6f('0x5e')]['document'][_0x2f6f('0x72')]),_0x30e839=_0x44d13c[_0x2f6f('0x8')](_0x424e66),_0x4df196[_0x2f6f('0x5b')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x35')](_0x30e839),_0x419220?null:_0x2f6f('0x44'));});}),_0x4df196[_0x2f6f('0x1')]['registerCustomCallback'](_0x2f6f('0x66'),_0x2f6f('0x44'),_0x2f6f('0x47'),_0x518169)),_0x30d359[_0x2f6f('0x1c')]['has']('ImageStyleEditing')){_0x4df196[_0x2f6f('0x28')](_0x2f6f('0x3a'),(_0x26b360,_0x2e22a6)=>{const _0xd2658c=_0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x11')](_0x2f6f('0x56'))['me'],_0x46b506=_0x30d359[_0x2f6f('0x55')]['get'](_0x2f6f('0x3a'));let _0x4ddf35=_0x59dec7[_0x2f6f('0x39')](_0x30d359['model'][_0x2f6f('0x17')]['selection']),_0x343030=_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x35')](_0x4ddf35),_0x5ac83a=_0x46b506[_0x2f6f('0x6')];if(_0x5ac83a==_0x2e22a6[_0x2f6f('0x6')])return;const _0xbf12da={'commandName':_0x2f6f('0x3a'),'commandParams':[_0x2e22a6],'formatGroupId':_0x5ebd6a()};_0x30d359[_0x2f6f('0x5e')]['change'](()=>{if(_0x4df196[_0x2f6f('0x75')]()['filter'](_0x252d7b=>_0x252d7b['isInContent']&&_0xd2658c==_0x252d7b[_0x2f6f('0xd')]&&('formatBlock'==_0x252d7b[_0x2f6f('0x48')]||'formatInline'==_0x252d7b[_0x2f6f('0x48')])&&(_0x2f6f('0x31')==_0x252d7b[_0x2f6f('0x73')]||_0x2f6f('0x3f')==_0x252d7b['subType'])&&_0x252d7b[_0x2f6f('0x29')]()[_0x2f6f('0xa')](_0x343030))[_0x2f6f('0x3c')](_0x5c40f0=>_0x4df196[_0x2f6f('0x15')](_0x5c40f0['head'])),_0x4ddf35=_0x59dec7['getClosestSelectedImageElement'](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')]['selection']),_0x343030=_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x35')](_0x4ddf35),_0x46b506[_0x2f6f('0x6f')](),_0x30d359['commands'][_0x2f6f('0x11')]('imageTypeInline')['refresh'](),_0x30d359[_0x2f6f('0x55')][_0x2f6f('0x11')]('imageTypeBlock')[_0x2f6f('0x6f')](),_0x5ac83a=_0x46b506[_0x2f6f('0x6')],_0x5ac83a!=_0x2e22a6['value'])return _0x59dec7[_0x2f6f('0x62')](_0x4ddf35)&&_0x46b506[_0x2f6f('0x1e')](_0x2e22a6[_0x2f6f('0x6')],_0x4ddf35)?(_0x26b360(_0x2e22a6),_0x4ddf35=_0x59dec7[_0x2f6f('0x39')](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x72')]),void _0x4df196[_0x2f6f('0x46')](_0x4ddf35,{..._0xbf12da,'commandReversedParams':[{'value':_0x5ac83a||null}]},[],_0x2f6f('0x31'))):void(_0x59dec7[_0x2f6f('0xb')](_0x4ddf35)?_0x4df196[_0x2f6f('0x46')](_0x4ddf35,_0xbf12da,[],'imageStylePostApply'):_0x4df196[_0x2f6f('0x30')](_0x343030,_0xbf12da,'imageStylePostApply'));});});for(const _0x5cd302 of _0x30d359[_0x2f6f('0x1c')][_0x2f6f('0x11')]('ImageStyleEditing')['normalizedStyles'])_0xbd1a61[_0x5cd302[_0x2f6f('0x5')]]=_0x5cd302['title'][_0x2f6f('0x6d')]();_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')](_0x2f6f('0x9'),_0x2f6f('0x31'),_0x2f6f('0x5a'),()=>{}),_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')]('formatBlock',_0x2f6f('0x3f'),_0x2f6f('0x5a'),()=>{}),_0x4df196[_0x2f6f('0x1')]['registerCustomCallback']('formatInline',_0x2f6f('0x3f'),_0x2f6f('0x5a'),()=>{}),_0x4df196['_suggestionFactory']['registerCustomCallback'](_0x2f6f('0x9'),_0x2f6f('0x31'),_0x2f6f('0xc'),()=>{}),_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x2d')]('formatBlock','imageStylePreApply',_0x2f6f('0x14'),(_0xc71655,_0x530aa6)=>{_0x4df196[_0x2f6f('0x1')][_0x2f6f('0x4a')](_0x2f6f('0x9'),'',_0x2f6f('0xc'))(_0xc71655,{'commandName':_0x530aa6['commandName'],'commandParams':_0x530aa6[_0x2f6f('0x76')]});}),_0x4df196['_suggestionFactory'][_0x2f6f('0x2d')](_0x2f6f('0x9'),_0x2f6f('0x31'),_0x2f6f('0x47'),_0x518169);}const _0xade763=[{'type':_0x2f6f('0x9'),'subType':_0x2f6f('0x31')},{'type':'insertion','subType':_0x2f6f('0x44')},{'type':_0x2f6f('0x9'),'subType':'convertInlineImageToBlock'},{'type':'insertion','subType':_0x2f6f('0x4')}];function _0x41c60f(_0x53924d,_0x5d348d){const _0x495d53=_0xade763[_0x2f6f('0xe')](({type:_0x1297c7,subType:_0x223ddc})=>_0x53924d['type']==_0x1297c7&&_0x53924d[_0x2f6f('0x73')]==_0x223ddc),_0x5122bf=_0xade763[_0x2f6f('0xe')](({type:_0x54854a,subType:_0x200302})=>_0x5d348d[_0x2f6f('0x48')]==_0x54854a&&_0x5d348d['subType']==_0x200302);if(_0x495d53<0x0||_0x5122bf<0x0)return!0x1;const _0x50c665=_0x53924d['getFirstRange'](),_0x4dcd27=_0x5d348d[_0x2f6f('0x29')]();if((0x0==_0x495d53||0x1==_0x495d53)&&0x2==_0x5122bf&&_0x50c665[_0x2f6f('0x78')](_0x4dcd27))return!0x0;if(0x2==_0x495d53&&0x3==_0x5122bf){const _0x437093=_0x4df196[_0x2f6f('0x34')](_0x50c665,_0x2f6f('0x66'))[_0x2f6f('0x0')](({suggestion:_0x2f46f6,meta:_0x7f13a0})=>_0x7f13a0[_0x2f6f('0x60')]&&_0x2f6f('0x4')==_0x2f46f6['subType']);if(_0x437093['length']>0x1&&_0x4dcd27[_0x2f6f('0x27')][_0x2f6f('0xa')](_0x50c665[_0x2f6f('0x4d')]))return!0x0;if(0x1==_0x437093[_0x2f6f('0x32')]&&(_0x50c665[_0x2f6f('0x4d')][_0x2f6f('0xa')](_0x4dcd27['end'])||_0x50c665[_0x2f6f('0x27')][_0x2f6f('0xa')](_0x4dcd27[_0x2f6f('0x4d')])))return!0x0;}if(0x3==_0x495d53&&0x3==_0x5122bf&&_0x50c665['start'][_0x2f6f('0x7')](_0x4dcd27[_0x2f6f('0x4d')])){const _0x340a1e=_0x50c665[_0x2f6f('0x27')][_0x2f6f('0x40')],_0x199e5e=_0x4dcd27['start']['nodeBefore'];return _0x59dec7[_0x2f6f('0xb')](_0x340a1e)&&_0x340a1e===_0x199e5e;}return!0x1;}function _0x518169(_0x203cba,_0x1222ac){return _0x41c60f(_0x203cba,_0x1222ac)?[_0x203cba,_0x1222ac]:_0x41c60f(_0x1222ac,_0x203cba)?[_0x1222ac,_0x203cba]:null;}_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x59')](()=>{let _0x15b6ad=!0x1;const _0x4ecaed=Array['from'](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')]['differ'][_0x2f6f('0x6c')]());for(const {name:_0x20746c,data:_0x5cbda5}of _0x4ecaed){const {group:_0x149cb3,type:_0x193cdd,subType:_0x255021,id:_0x2365c0}=_0x4df196['_splitMarkerName'](_0x20746c);if(_0x2f6f('0x54')==_0x149cb3&&_0x4df196[_0x2f6f('0x42')](_0x2365c0)){if(_0x2f6f('0x9')==_0x193cdd&&('imageStylePreApply'==_0x255021||_0x2f6f('0x3f')==_0x255021)){const _0x55d22a=_0x4df196[_0x2f6f('0x3')](_0x2365c0);if(_0x5cbda5[_0x2f6f('0x2c')]){const _0x1685c4=_0x55d22a[_0x2f6f('0x29')]()[_0x2f6f('0x10')]();if(_0x59dec7[_0x2f6f('0xb')](_0x1685c4))continue;_0x4df196[_0x2f6f('0x15')](_0x55d22a),_0x15b6ad=!0x0;}}if('insertion'==_0x193cdd&&_0x2f6f('0x44')==_0x255021&&!_0x5cbda5[_0x2f6f('0x2c')]){const _0x4478d1=_0x4df196[_0x2f6f('0x3')](_0x2365c0);_0x4478d1['next']&&_0x4478d1['next'][_0x2f6f('0x1f')]&&(_0x4df196['discardSuggestion'](_0x4478d1[_0x2f6f('0x6e')]),_0x15b6ad=!0x0);}}}return _0x15b6ad;}),_0x30d359[_0x2f6f('0x1c')]['has'](_0x2f6f('0x51'))&&_0x4df196['enableCommand'](_0x2f6f('0x5c'),(_0x17c0ee,_0xfcaaad)=>{const _0x201c52=_0x59dec7[_0x2f6f('0x39')](_0x30d359['model']['document'][_0x2f6f('0x72')]);_0x201c52[_0x2f6f('0x33')](_0x2f6f('0x4e'))!=_0xfcaaad[_0x2f6f('0x4e')]&&_0x30d359[_0x2f6f('0x5e')]['change'](()=>{_0x4df196[_0x2f6f('0x46')](_0x201c52,{'commandName':_0x2f6f('0x5c'),'commandParams':[_0xfcaaad]});});}),_0x30d359['plugins'][_0x2f6f('0x67')](_0x2f6f('0x77'))&&_0x4df196[_0x2f6f('0x28')](_0x2f6f('0x13'),(_0x5bc4ee,_0x33a921)=>{const _0x51effc=_0x59dec7['getClosestSelectedImageElement'](_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x17')][_0x2f6f('0x72')]);(_0x51effc[_0x2f6f('0x19')](_0x2f6f('0x45'))?_0x51effc[_0x2f6f('0x33')](_0x2f6f('0x45')):'')!=_0x33a921[_0x2f6f('0x57')]&&_0x30d359[_0x2f6f('0x5e')][_0x2f6f('0x2')](()=>{_0x4df196[_0x2f6f('0x46')](_0x51effc,{'commandName':'imageTextAlternative','commandParams':[_0x33a921]});});}),_0x4df196[_0x2f6f('0x43')][_0x2f6f('0x61')](_0x50e0ee=>{if(!!_0xade763[_0x2f6f('0x4c')](({type:_0x16af64,subType:_0x933730})=>_0x50e0ee[_0x2f6f('0x48')]==_0x16af64&&_0x50e0ee['subType']==_0x933730))return _0x50e0ee[_0x2f6f('0x63')]?{}:void 0x0;}),_0x4df196['_descriptionFactory'][_0x2f6f('0x61')](_0x4812bf=>{if('insertion'==_0x4812bf[_0x2f6f('0x48')]||_0x2f6f('0x69')==_0x4812bf[_0x2f6f('0x48')]){const _0x1a5043=_0x4812bf[_0x2f6f('0x10')]();if(_0x1a5043&&_0x1a5043['is'](_0x2f6f('0xf'),_0x2f6f('0x1a')))return{'type':_0x2f6f('0x66')==_0x4812bf['type']?_0x2f6f('0x2e'):_0x2f6f('0x3e'),'element':_0x1a5043,'quantity':0x1};}}),_0x4df196[_0x2f6f('0x43')][_0x2f6f('0x61')](_0x22ccf4=>_0x2f6f('0x9')==_0x22ccf4[_0x2f6f('0x48')]&&'convertInlineImageToBlock'==_0x22ccf4[_0x2f6f('0x73')]?{'type':_0x2f6f('0x2b'),'content':_0x2f6f('0x24')}:'formatBlock'==_0x22ccf4[_0x2f6f('0x48')]&&_0x2f6f('0x6b')==_0x22ccf4[_0x2f6f('0x73')]?{'type':'format','content':_0x2f6f('0x1d')}:void 0x0),_0x4df196[_0x2f6f('0x43')]['registerDescriptionCallback'](_0x38578d=>{const {data:_0x50e5ad}=_0x38578d;if(_0x50e5ad){if('imageStyle'==_0x50e5ad[_0x2f6f('0x2a')]){const _0x25bf5a=_0x50e5ad[_0x2f6f('0x58')][0x0][_0x2f6f('0x6')];return _0x50c287('side'===_0x25bf5a?_0x43eb8f(_0x951fd9,_0x2f6f('0x37')):_0xbd1a61[_0x25bf5a]||_0x25bf5a);}if(_0x2f6f('0x13')==_0x50e5ad[_0x2f6f('0x2a')]){const _0x145249=_0x50e5ad[_0x2f6f('0x58')][0x0][_0x2f6f('0x57')];return _0x145249?{'type':_0x2f6f('0x2b'),'content':_0x43eb8f(_0x951fd9,_0x2f6f('0x50'),'\x22'+_0x145249+'\x22')}:{'type':_0x2f6f('0x2b'),'content':_0x43eb8f(_0x951fd9,_0x2f6f('0x49'))};}if(_0x2f6f('0x5c')==_0x50e5ad[_0x2f6f('0x2a')]){const _0x4ae424=_0x50e5ad['commandParams'][0x0][_0x2f6f('0x4e')];return _0x4ae424?{'type':_0x2f6f('0x2b'),'content':_0x43eb8f(_0x951fd9,_0x2f6f('0x64'),_0x4ae424)}:{'type':_0x2f6f('0x2b'),'content':_0x43eb8f(_0x951fd9,_0x2f6f('0x2f'))};}}function _0x50c287(_0x4e7f46){return{'type':_0x2f6f('0x2b'),'content':_0x43eb8f(_0x951fd9,_0x2f6f('0x68'),_0x4e7f46)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23ae=['enableCommand','lowest','bind','dataInsert','get','forEach','importWord','collaboration_features','_trackChangesExecuted','_trackChangesValueDuringImport','high','_setSuggestionData','execute','Users','editor','TrackChangesEditing','trackChanges','value','_handleImportedData','commands','listenTo','plugins'];(function(_0x387045,_0x23ae59){const _0x21943d=function(_0x4b22cf){while(--_0x4b22cf){_0x387045['push'](_0x387045['shift']());}};_0x21943d(++_0x23ae59);}(_0x23ae,0x151));const _0x2194=function(_0x387045,_0x23ae59){_0x387045=_0x387045-0x0;let _0x21943d=_0x23ae[_0x387045];return _0x21943d;};import{Plugin as _0x536aa7}from'ckeditor5/src/core';import _0x3c4492 from'../trackchangesediting';export default class X extends _0x536aa7{constructor(_0x7939d2){super(_0x7939d2),this[_0x2194('0x2')]=!0x1,this[_0x2194('0x1')]=!0x1;}['afterInit'](){const _0x16d0e9=this[_0x2194('0x7')],_0x234082=_0x16d0e9[_0x2194('0xc')]['get'](_0x2194('0x15')),_0x5978e7=_0x16d0e9[_0x2194('0xc')]['get'](_0x2194('0x9'));_0x234082&&(_0x234082['on']('execute',(_0x39ddac,[,_0x3fa3b0])=>{this[_0x2194('0x2')]=_0x5978e7[_0x2194('0xa')],_0x3fa3b0[_0x2194('0x0')]['track_changes']=!this[_0x2194('0x2')];},{'priority':_0x2194('0x3')}),this[_0x2194('0xd')](_0x234082,_0x2194('0x12'),this[_0x2194('0xb')][_0x2194('0x11')](this)),this[_0x2194('0xd')](_0x234082,_0x2194('0x12'),()=>{this['_trackChangesExecuted']&&(_0x5978e7[_0x2194('0x5')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x2194('0x10')}),_0x16d0e9['plugins'][_0x2194('0x13')](_0x2194('0x8'))[_0x2194('0xf')](_0x2194('0x15')));}[_0x2194('0xb')](_0x2c78a7,_0x9cd0da){const {suggestions:_0x7a5e53}=_0x9cd0da,_0x30b8e3=this[_0x2194('0x7')][_0x2194('0xc')]['get'](_0x2194('0x9')),_0x82e506=_0x30b8e3[_0x2194('0xa')];this[_0x2194('0x2')]!==_0x82e506&&(_0x30b8e3[_0x2194('0x5')](),this['_trackChangesExecuted']=!0x0),_0x7a5e53&&_0x7a5e53[_0x2194('0x14')](({id:_0x25f9ff,type:_0x2a5188,author:_0x2cfafe,created_at:_0x4aecc5})=>{const _0x13dad3={'id':_0x25f9ff,'type':_0x2a5188,'authorId':this[_0x2194('0x7')][_0x2194('0xe')][_0x2194('0x13')](_0x2194('0x6'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2cfafe,'createdAt':_0x4aecc5?new Date(_0x4aecc5):new Date(),'source':_0x2194('0x15')}}};this[_0x2194('0x7')][_0x2194('0xe')][_0x2194('0x13')](_0x3c4492)[_0x2194('0x4')](_0x13dad3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20d6=['enableCommand','registerDescriptionCallback','indent','afterInit','getItems','filter','blockIndent','_descriptionFactory','document','outdentBlock','markBlockFormat','commandName','model','editor','from','indentBlock','IndentEditing','schema','getItemLabel','locale','plugins','*Outdent:*\x20%0','has','getSelectedBlocks','outdent'];(function(_0x86a36d,_0x20d6fd){const _0x28ecb7=function(_0x2ff42f){while(--_0x2ff42f){_0x86a36d['push'](_0x86a36d['shift']());}};_0x28ecb7(++_0x20d6fd);}(_0x20d6,0x87));const _0x28ec=function(_0x86a36d,_0x20d6fd){_0x86a36d=_0x86a36d-0x0;let _0x28ecb7=_0x20d6[_0x86a36d];return _0x28ecb7;};import{Plugin as _0x3a56cd}from'ckeditor5/src/core';import{getTranslation as _0x257ae8}from'../utils/common-translations';export default class Y extends _0x3a56cd{[_0x28ec('0x12')](){const _0x354bc9=this['editor'],_0x115de8=_0x354bc9[_0x28ec('0xa')]['get']('TrackChangesEditing');_0x354bc9[_0x28ec('0xa')]['has'](_0x28ec('0x6'))&&(_0x115de8[_0x28ec('0xf')](_0x28ec('0x11')),_0x115de8[_0x28ec('0xf')](_0x28ec('0xe')));const _0x886203=_0x354bc9[_0x28ec('0x9')];if(_0x354bc9['plugins'][_0x28ec('0xc')]('IndentBlock')){for(const _0x1a08ee of[_0x28ec('0x5'),_0x28ec('0x18')])_0x115de8[_0x28ec('0xf')](_0x1a08ee,()=>{const _0x2783e1=Array[_0x28ec('0x4')](this[_0x28ec('0x3')][_0x28ec('0x2')][_0x28ec('0x17')]['selection'][_0x28ec('0xd')]())[_0x28ec('0x14')](_0x235271=>this['editor'][_0x28ec('0x2')][_0x28ec('0x7')]['checkAttribute'](_0x235271,_0x28ec('0x15')));_0x354bc9[_0x28ec('0x2')]['change'](()=>{for(const _0x47bfc0 of _0x2783e1)_0x115de8[_0x28ec('0x0')](_0x47bfc0,{'commandName':_0x1a08ee,'commandParams':[{'value':''}],'formatGroupId':_0x28ec('0x5')});});});_0x115de8['_descriptionFactory'][_0x28ec('0x10')](_0x3ad412=>{const {data:_0x5a1743}=_0x3ad412;if(!_0x5a1743)return;if(_0x28ec('0x5')!=_0x5a1743[_0x28ec('0x1')]&&'outdentBlock'!=_0x5a1743['commandName'])return;const _0x14994d=_0x3ad412[_0x28ec('0x13')]()[0x0],_0x213810=_0x115de8[_0x28ec('0x16')][_0x28ec('0x8')](_0x14994d);return _0x28ec('0x5')==_0x5a1743['commandName']?{'type':'format','content':_0x257ae8(_0x886203,'*Indent:*\x20%0',_0x213810)}:'outdentBlock'==_0x5a1743['commandName']?{'type':'format','content':_0x257ae8(_0x886203,_0x28ec('0xb'),_0x213810)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58a9=['init','editor','input','enableCommand','requires'];(function(_0x43d6f7,_0x58a97f){var _0x395add=function(_0x3ec26b){while(--_0x3ec26b){_0x43d6f7['push'](_0x43d6f7['shift']());}};_0x395add(++_0x58a97f);}(_0x58a9,0x181));var _0x395a=function(_0x43d6f7,_0x58a97f){_0x43d6f7=_0x43d6f7-0x0;var _0x395add=_0x58a9[_0x43d6f7];return _0x395add;};import{Plugin as _0x7765c4}from'ckeditor5/src/core';import{Input as _0x49fbf4}from'ckeditor5/src/typing';export default class Z extends _0x7765c4{static get[_0x395a('0x4')](){return[_0x49fbf4];}[_0x395a('0x0')](){this[_0x395a('0x1')]['plugins']['get']('TrackChangesEditing')[_0x395a('0x3')](_0x395a('0x2'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16d3=['locale','plugins','model','enableCommand','from','getFirstRange','getFirstPosition','getAttribute','markInlineFormat','unlink','*Remove\x20link*','link','selection','has','afterInit','format','TrackChangesEditing','commandParams','change','get','commandName','document','*Set\x20link:*\x20%0','linkHref','_descriptionFactory','getRanges'];(function(_0x349e88,_0x16d3fd){const _0x241712=function(_0x596e96){while(--_0x596e96){_0x349e88['push'](_0x349e88['shift']());}};_0x241712(++_0x16d3fd);}(_0x16d3,0x141));const _0x2417=function(_0x349e88,_0x16d3fd){_0x349e88=_0x349e88-0x0;let _0x241712=_0x16d3[_0x349e88];return _0x241712;};import{Plugin as _0x4a29fc}from'ckeditor5/src/core';import{findAttributeRange as _0x814acc}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x231c4b}from'./utils';import{getTranslation as _0x4d9127}from'../utils/common-translations';export default class tt extends _0x4a29fc{[_0x2417('0x5')](){const _0x469a55=this['editor'];if(!_0x469a55[_0x2417('0x12')][_0x2417('0x4')]('LinkEditing'))return;const _0x2fb658=_0x469a55[_0x2417('0x12')][_0x2417('0xa')](_0x2417('0x7'));_0x2fb658[_0x2417('0x14')]('link',(_0x374199,_0x1480ac)=>{const _0x44a367=_0x469a55[_0x2417('0x13')][_0x2417('0xc')][_0x2417('0x3')];let _0x4fd168=[];if(_0x44a367['isCollapsed']){if(!_0x44a367['hasAttribute'](_0x2417('0xe')))return void _0x374199(_0x1480ac);{const _0x261831=_0x814acc(_0x44a367[_0x2417('0x17')](),'linkHref',_0x44a367[_0x2417('0x18')](_0x2417('0xe')),_0x469a55[_0x2417('0x13')]);_0x4fd168=[_0x261831];}}else _0x4fd168=Array[_0x2417('0x15')](_0x44a367[_0x2417('0x10')]());_0x469a55[_0x2417('0x13')][_0x2417('0x9')](()=>{for(const _0xea0ee of _0x4fd168)_0x2fb658[_0x2417('0x19')](_0xea0ee,{'commandName':'link','commandParams':[_0x1480ac]});});}),_0x2fb658[_0x2417('0x14')]('unlink',()=>{const _0x36107a=this['editor'][_0x2417('0x13')],_0x4d86d6=_0x36107a[_0x2417('0xc')][_0x2417('0x3')];_0x36107a[_0x2417('0x9')](()=>{let _0x575aaf=[];if(_0x4d86d6['isCollapsed'])_0x575aaf=[_0x814acc(_0x4d86d6['getFirstPosition'](),_0x2417('0xe'),_0x4d86d6[_0x2417('0x18')](_0x2417('0xe')),_0x469a55[_0x2417('0x13')])];else _0x575aaf=_0x231c4b(_0x2417('0xe'),_0x4d86d6[_0x2417('0x16')](),_0x469a55[_0x2417('0x13')]);for(const _0x17b01a of _0x575aaf)_0x2fb658['markInlineFormat'](_0x17b01a,{'commandName':_0x2417('0x0'),'commandParams':[]});});}),_0x2fb658[_0x2417('0xf')]['registerDescriptionCallback'](_0x475795=>{const {data:_0x6b8acd}=_0x475795,_0x2512fd=_0x469a55[_0x2417('0x11')];if(_0x6b8acd){if(_0x2417('0x2')==_0x6b8acd[_0x2417('0xb')]){const _0x2efb7e=_0x6b8acd[_0x2417('0x8')][0x0];return{'type':_0x2417('0x6'),'content':_0x4d9127(_0x2512fd,_0x2417('0xd'),'\x22'+_0x2efb7e+'\x22')};}return _0x2417('0x0')==_0x6b8acd[_0x2417('0xb')]?{'type':_0x2417('0x6'),'content':_0x4d9127(_0x2512fd,_0x2417('0x1'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51d3=['commandName','ListEditing','replace','length','_selectedElements','get','add','*Check\x20item*','forceValue','*Indent:*\x20%0','todoList','plugins','ELEMENT_NUMBERED_LIST','outdentList','value','ELEMENT_LIST_ITEM','TrackChangesEditing','_descriptionFactory','indentList','format','listIndent','todoListChecked','has','paragraph','listItem','ELEMENT_TODO_LIST','locale','before','todo','checkTodoList','afterInit','schema','findIndex','document','getSelectedBlocks','numberedList','slice','markBlockFormat','registerDescriptionCallback','createPositionAt','previousSibling','model','commands','isObject','List','from','enableCommand','numbered','bulletedList','parent','listType','getAttribute','checkChild','name','end','change','ELEMENT_BULLETED_LIST','element','nextSibling','bulleted','createRange'];(function(_0xd8699f,_0x51d3ad){const _0x4cdcb4=function(_0x2644e0){while(--_0x2644e0){_0xd8699f['push'](_0xd8699f['shift']());}};_0x4cdcb4(++_0x51d3ad);}(_0x51d3,0x9c));const _0x4cdc=function(_0xd8699f,_0x51d3ad){_0xd8699f=_0xd8699f-0x0;let _0x4cdcb4=_0x51d3[_0xd8699f];return _0x4cdcb4;};import{Plugin as _0x2232da}from'ckeditor5/src/core';import{getTranslation as _0x4399ff}from'../utils/common-translations';export default class it extends _0x2232da{[_0x4cdc('0x39')](){const _0x34ac2e=this['editor'],_0x108159=_0x34ac2e[_0x4cdc('0x35')];if(!_0x34ac2e[_0x4cdc('0x26')][_0x4cdc('0x31')](_0x4cdc('0x1c')))return;const _0x23f0f2=_0x34ac2e['plugins']['get'](_0x4cdc('0x2b')),_0x5b4584=_0x34ac2e[_0x4cdc('0x26')]['has']('TodoListEditing');function _0x194580(_0xefc7c6){return()=>{const _0x46bcee=_0x34ac2e[_0x4cdc('0x7')]['document']['selection'],_0x47ee35=_0x34ac2e[_0x4cdc('0x8')][_0x4cdc('0x20')](_0xefc7c6);if(_0x47ee35[_0x4cdc('0x29')])return void _0x34ac2e['execute'](_0x4cdc('0x32'),{});const _0x1ebefc=_0xefc7c6[_0x4cdc('0x2')](0x0,-0x4),_0xc3ddb6=function(_0x36b40f,_0x5e7605,_0x520b34){let _0x3d4e19=Array[_0x4cdc('0xb')](_0x36b40f)['filter'](_0x5d5ad2=>function(_0x2c7db9,_0x3d7b99){return _0x3d7b99[_0x4cdc('0x12')](_0x2c7db9[_0x4cdc('0xf')],'listItem')&&!_0x3d7b99[_0x4cdc('0x9')](_0x2c7db9);}(_0x5d5ad2,_0x520b34));_0x3d4e19=_0x3d4e19['filter'](_0x55e0e3=>!_0x55e0e3['is'](_0x4cdc('0x17'),_0x4cdc('0x33'))||_0x55e0e3['getAttribute'](_0x4cdc('0x10'))!=_0x5e7605);const _0x5ccc82=new Set();for(const _0x2d906e of _0x3d4e19)_0x2d906e['is'](_0x4cdc('0x17'),_0x4cdc('0x33'))?_0x5ccc82[_0x4cdc('0x21')](Pt(_0x2d906e)):_0x5ccc82[_0x4cdc('0x21')](_0x2d906e);return Array[_0x4cdc('0xb')](_0x5ccc82);}(_0x46bcee[_0x4cdc('0x0')](),_0x1ebefc,_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x3a')]);_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x15')](()=>{for(const _0x3c2f34 of _0xc3ddb6)_0x23f0f2[_0x4cdc('0x3')](_0x3c2f34,{'commandName':_0xefc7c6,'commandParams':[{'forceValue':!_0x47ee35['value']}],'formatGroupId':'blockName'},Gt(_0x3c2f34));});};}function _0x5263c8(_0x3d159a){return()=>{const _0x4f808b=function(_0x549b34){const _0x48f115=(_0x549b34=Array[_0x4cdc('0xb')](_0x549b34))[_0x4cdc('0x3b')](_0x2849fe=>_0x4cdc('0x33')!=_0x2849fe[_0x4cdc('0x13')]);return _0x48f115>-0x1&&(_0x549b34=_0x549b34[_0x4cdc('0x2')](0x0,_0x48f115)),_0x549b34;}(_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x3c')]['selection'][_0x4cdc('0x0')]()),_0x21d9e8=_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x1a')](_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x5')](_0x4f808b[0x0],_0x4cdc('0x36')),_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x5')](_0x4f808b[_0x4f808b[_0x4cdc('0x1e')]-0x1],_0x4cdc('0x14')));_0x34ac2e['model']['change'](()=>{_0x23f0f2['markBlockFormat'](_0x21d9e8,{'commandName':_0x3d159a,'commandParams':[],'formatGroupId':_0x4cdc('0x2f')},function(_0x1045a9){const _0x39d66c=new Set();for(const _0x5846c0 of _0x1045a9){let _0x286edf=_0x5846c0[_0x4cdc('0x18')];for(;_0x286edf&&_0x286edf[_0x4cdc('0x11')](_0x4cdc('0x2f'))>_0x5846c0[_0x4cdc('0x11')](_0x4cdc('0x2f'));)_0x39d66c['add'](_0x286edf),_0x286edf=_0x286edf[_0x4cdc('0x18')];}return Array[_0x4cdc('0xb')](_0x39d66c);}(_0x4f808b));});};}_0x23f0f2['enableCommand'](_0x4cdc('0x1'),_0x194580(_0x4cdc('0x1'))),_0x23f0f2['enableCommand'](_0x4cdc('0xe'),_0x194580(_0x4cdc('0xe'))),_0x5b4584&&_0x23f0f2['enableCommand'](_0x4cdc('0x25'),_0x194580(_0x4cdc('0x25'))),_0x23f0f2['enableCommand'](_0x4cdc('0x2d'),_0x5263c8('indentList')),_0x23f0f2['enableCommand'](_0x4cdc('0x28'),_0x5263c8('outdentList')),_0x5b4584&&_0x23f0f2[_0x4cdc('0xc')](_0x4cdc('0x38'),()=>{const _0x2394b7=_0x34ac2e['commands'][_0x4cdc('0x20')](_0x4cdc('0x38')),_0x5876ca=Array[_0x4cdc('0xb')](_0x2394b7[_0x4cdc('0x1f')]);_0x5876ca['filter'](_0x2c3bac=>_0x2c3bac[_0x4cdc('0x11')](_0x4cdc('0x30'))!=_0x2394b7[_0x4cdc('0x29')]),_0x34ac2e[_0x4cdc('0x7')][_0x4cdc('0x15')](()=>{for(const _0x2847b5 of _0x5876ca)_0x23f0f2[_0x4cdc('0x3')](_0x2847b5,{'commandName':_0x4cdc('0x38'),'commandParams':[{'forceValue':!_0x2394b7[_0x4cdc('0x29')]}]});});}),_0x23f0f2[_0x4cdc('0x2c')]['registerElementLabel'](_0x4cdc('0x33'),_0x558cf3=>_0x4399ff(_0x108159,_0x4cdc('0x2a'),_0x558cf3)),_0x23f0f2[_0x4cdc('0x2c')][_0x4cdc('0x4')](_0x4b7d7f=>{const {data:_0x151a61}=_0x4b7d7f;if(_0x151a61){if(_0x4cdc('0x1')==_0x151a61[_0x4cdc('0x1b')]||_0x4cdc('0xe')==_0x151a61['commandName']||'todoList'==_0x151a61[_0x4cdc('0x1b')])switch(_0x151a61[_0x4cdc('0x1b')][_0x4cdc('0x1d')](_0x4cdc('0xa'),'')){case _0x4cdc('0x19'):return _0x22e5e9(_0x4399ff(_0x108159,_0x4cdc('0x16')));case _0x4cdc('0xd'):return _0x22e5e9(_0x4399ff(_0x108159,_0x4cdc('0x27')));case _0x4cdc('0x37'):return _0x22e5e9(_0x4399ff(_0x108159,_0x4cdc('0x34')));}if(_0x4cdc('0x2d')==_0x151a61[_0x4cdc('0x1b')])return{'type':_0x4cdc('0x2e'),'content':_0x4399ff(_0x108159,_0x4cdc('0x24'),_0x4399ff(_0x108159,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x151a61[_0x4cdc('0x1b')])return{'type':'format','content':_0x4399ff(_0x108159,'*Outdent:*\x20%0',_0x4399ff(_0x108159,_0x4cdc('0x2a')))};if(_0x4cdc('0x38')==_0x151a61[_0x4cdc('0x1b')])return _0x151a61['commandParams'][0x0][_0x4cdc('0x23')]?{'type':_0x4cdc('0x2e'),'content':_0x4399ff(_0x108159,_0x4cdc('0x22'))}:{'type':_0x4cdc('0x2e'),'content':_0x4399ff(_0x108159,'*Uncheck\x20item*')};}function _0x22e5e9(_0x278dd0){return{'type':_0x4cdc('0x2e'),'content':_0x4399ff(_0x108159,'*Change\x20to:*\x20%0',_0x278dd0)};}});}}function Pt(_0x46bcf0){const _0x9564a8=_0x46bcf0[_0x4cdc('0x11')](_0x4cdc('0x2f'));if(0x0==_0x9564a8)return _0x46bcf0;let _0x18b9bc=_0x46bcf0;for(;_0x46bcf0['previousSibling']&&_0x46bcf0['previousSibling']['is'](_0x4cdc('0x17'),_0x4cdc('0x33'));){const _0x2fb3ee=_0x46bcf0['previousSibling'][_0x4cdc('0x11')]('listIndent');if(_0x2fb3ee==_0x9564a8)_0x18b9bc=_0x46bcf0[_0x4cdc('0x6')];else{if(_0x2fb3ee<_0x9564a8)break;}_0x46bcf0=_0x46bcf0[_0x4cdc('0x6')];}return _0x18b9bc;}function Gt(_0x27812d){const _0x5e5f37=[];if(_0x27812d['is'](_0x4cdc('0x17'),'listItem')&&_0x27812d[_0x4cdc('0x11')](_0x4cdc('0x2f'))>0x0){let _0x4a38e5=_0x27812d[_0x4cdc('0x18')];for(;_0x4a38e5&&_0x4cdc('0x33')==_0x4a38e5['name']&&_0x4a38e5['getAttribute']('listIndent')==_0x27812d[_0x4cdc('0x11')](_0x4cdc('0x2f'));)_0x5e5f37['push'](_0x4a38e5),_0x4a38e5=_0x4a38e5[_0x4cdc('0x18')];}return _0x5e5f37;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc8ed=['MediaEmbedEditing','ELEMENT_MEDIA','elementToElement','editor','div','downcastDispatcher','high','registerElementLabel','data','media','attribute:url:media','_descriptionFactory','enableCommand','get','locale','plugins','has','options','showSuggestionHighlights','mediaEmbed'];(function(_0x42792a,_0xc8ed18){const _0x5f4231=function(_0x1f54c3){while(--_0x1f54c3){_0x42792a['push'](_0x42792a['shift']());}};_0x5f4231(++_0xc8ed18);}(_0xc8ed,0x17b));const _0x5f42=function(_0x42792a,_0xc8ed18){_0x42792a=_0x42792a-0x0;let _0x5f4231=_0xc8ed[_0x42792a];return _0x5f4231;};import{Plugin as _0x4f80}from'ckeditor5/src/core';import{getTranslation as _0x2041ab}from'../utils/common-translations';export default class st extends _0x4f80{['afterInit'](){const _0x37507=this[_0x5f42('0x4')];if(!_0x37507[_0x5f42('0x10')][_0x5f42('0x11')](_0x5f42('0x1')))return;const _0x5d6e08=_0x37507[_0x5f42('0x10')][_0x5f42('0xe')]('TrackChangesEditing'),_0x849283=_0x37507[_0x5f42('0xf')];_0x5d6e08[_0x5f42('0xd')](_0x5f42('0x0')),_0x5d6e08[_0x5f42('0xc')][_0x5f42('0x8')](_0x5f42('0xa'),_0x4c364a=>_0x2041ab(_0x849283,_0x5f42('0x2'),_0x4c364a)),_0x37507['conversion']['for']('dataDowncast')[_0x5f42('0x3')]({'model':_0x5f42('0xa'),'view':(_0x1b41ef,{writer:_0x58ebda,options:_0x1c89cb})=>{if(_0x1c89cb[_0x5f42('0x13')])return _0x58ebda['createEmptyElement'](_0x5f42('0x5'));},'converterPriority':_0x5f42('0x7')}),_0x37507[_0x5f42('0x9')][_0x5f42('0x6')]['on'](_0x5f42('0xb'),(_0x2fe47c,_0x242e2f,_0x173d77)=>{_0x173d77[_0x5f42('0x12')][_0x5f42('0x13')]&&_0x2fe47c['stop']();},{'priority':_0x5f42('0x7')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26f1=['enableCommand','afterInit','plugins','mention'];(function(_0x3afe90,_0x26f1bb){const _0x144329=function(_0x28ecd5){while(--_0x28ecd5){_0x3afe90['push'](_0x3afe90['shift']());}};_0x144329(++_0x26f1bb);}(_0x26f1,0x15c));const _0x1443=function(_0x3afe90,_0x26f1bb){_0x3afe90=_0x3afe90-0x0;let _0x144329=_0x26f1[_0x3afe90];return _0x144329;};import{Plugin as _0x575f5d}from'ckeditor5/src/core';export default class et extends _0x575f5d{[_0x1443('0x1')](){const _0x49fbd1=this['editor'];_0x49fbd1[_0x1443('0x2')]['has']('MentionEditing')&&_0x49fbd1[_0x1443('0x2')]['get']('TrackChangesEditing')[_0x1443('0x0')](_0x1443('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d72=['plugins','afterInit','pageBreak','get','ELEMENT_PAGE_BREAK','locale','editor','TrackChangesEditing','PageBreakEditing','_descriptionFactory','registerElementLabel','has'];(function(_0x1fda1c,_0x1d72d2){const _0x5d8c28=function(_0x291ab6){while(--_0x291ab6){_0x1fda1c['push'](_0x1fda1c['shift']());}};_0x5d8c28(++_0x1d72d2);}(_0x1d72,0xe9));const _0x5d8c=function(_0x1fda1c,_0x1d72d2){_0x1fda1c=_0x1fda1c-0x0;let _0x5d8c28=_0x1d72[_0x1fda1c];return _0x5d8c28;};import{Plugin as _0x58315f}from'ckeditor5/src/core';import{getTranslation as _0x27b9d4}from'../utils/common-translations';export default class nt extends _0x58315f{[_0x5d8c('0x8')](){const _0x13f224=this[_0x5d8c('0x1')];if(!_0x13f224[_0x5d8c('0x7')][_0x5d8c('0x6')](_0x5d8c('0x3')))return;_0x13f224[_0x5d8c('0x7')][_0x5d8c('0xa')](_0x5d8c('0x2'))['enableCommand'](_0x5d8c('0x9'));const _0x5a12f7=_0x13f224[_0x5d8c('0x7')]['get'](_0x5d8c('0x2')),_0x2b326c=_0x13f224[_0x5d8c('0x0')];_0x5a12f7[_0x5d8c('0x4')][_0x5d8c('0x5')](_0x5d8c('0x9'),_0x41b162=>_0x27b9d4(_0x2b326c,_0x5d8c('0xb'),_0x41b162));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a4d=['ck-suggestion-marker--active','showSuggestionHighlights','bindElementToMarker','start','$text','registerDescriptionCallback','mapper','isTouching','paragraph','editor','enableCommand','document','filter','options','ck-suggestion-marker-split','has','*Change\x20to:*\x20%0','ELEMENT_PARAGRAPH','model','_descriptionFactory','afterInit','format','from','highest','plugins','nodeAfter','toViewPosition','checkChild','blockName','addMarker:suggestion:insertion','isLimit','getFirstRange','isObject','markerRange','span','writer','*Insert:*\x20%0','markBlockFormat','isBlock','name','locale','downcastDispatcher','insertion','end','getSelectedBlocks','insertParagraph','includes','TrackChangesEditing','selection','createUIElement','schema','get'];(function(_0x3d31f0,_0x3a4dbb){const _0x773558=function(_0x289731){while(--_0x289731){_0x3d31f0['push'](_0x3d31f0['shift']());}};_0x773558(++_0x3a4dbb);}(_0x3a4d,0x165));const _0x7735=function(_0x3d31f0,_0x3a4dbb){_0x3d31f0=_0x3d31f0-0x0;let _0x773558=_0x3a4d[_0x3d31f0];return _0x773558;};import{Plugin as _0x578f45}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x335996}from'./utils';import{getTranslation as _0x2f5165}from'../utils/common-translations';export default class ot extends _0x578f45{[_0x7735('0x1b')](){const _0x56433d=this[_0x7735('0x10')];if(!_0x56433d[_0x7735('0x1f')][_0x7735('0x16')]('Paragraph'))return;const _0x653d47=_0x56433d[_0x7735('0x2f')],_0x558937=_0x56433d['plugins']['get']('TrackChangesEditing');_0x558937[_0x7735('0x1a')]['registerElementLabel'](_0x7735('0xf'),_0x581b50=>_0x2f5165(_0x653d47,_0x7735('0x18'),_0x581b50)),_0x558937[_0x7735('0x11')](_0x7735('0xf'),(_0x1013bd,_0x31fc02={})=>{const _0x23a3a4=_0x56433d['model'][_0x7735('0x12')],_0x4f9688=_0x31fc02[_0x7735('0x3')]||_0x23a3a4[_0x7735('0x3')],_0x5c1876=Array[_0x7735('0x1d')](_0x4f9688[_0x7735('0x33')]())[_0x7735('0x13')](_0x2f3179=>function(_0x1e64f9,_0x55e7d3){return _0x55e7d3['checkChild'](_0x1e64f9['parent'],_0x7735('0xf'))&&!_0x55e7d3[_0x7735('0x27')](_0x1e64f9)&&_0x7735('0xf')!=_0x1e64f9[_0x7735('0x2e')];}(_0x2f3179,this['editor'][_0x7735('0x19')][_0x7735('0x5')]));_0x56433d[_0x7735('0x19')]['change'](()=>{for(const _0x3538f8 of _0x5c1876)_0x558937[_0x7735('0x2c')](_0x3538f8,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x7735('0x23')},_0x335996(_0x3538f8));});}),_0x558937[_0x7735('0x1a')][_0x7735('0xc')](_0xb8e99d=>{const {data:_0x24b270}=_0xb8e99d;if(_0x24b270&&'paragraph'==_0x24b270['commandName'])return{'type':_0x7735('0x1c'),'content':_0x2f5165(_0x653d47,_0x7735('0x17'),_0x2f5165(_0x653d47,_0x7735('0x18')))};}),_0x558937[_0x7735('0x11')](_0x7735('0x0')),_0x56433d['editing'][_0x7735('0x30')]['on'](_0x7735('0x24'),tr(_0x56433d),{'priority':'highest'}),_0x56433d['data'][_0x7735('0x30')]['on'](_0x7735('0x24'),(_0x4b1b60,_0x41850d,_0x29e671)=>{_0x29e671[_0x7735('0x14')][_0x7735('0x8')]&&tr(_0x56433d,{'showActiveMarker':!0x1})(_0x4b1b60,_0x41850d,_0x29e671);},{'priority':_0x7735('0x1e')});const _0x57127e=_0x558937[_0x7735('0x1a')];_0x57127e[_0x7735('0xc')](_0x25bfd9=>{if('insertion'!==_0x25bfd9['type'])return;const {start:_0x135ee8,end:_0x52566a}=_0x25bfd9[_0x7735('0x26')]();if(!_0x135ee8[_0x7735('0xe')](_0x52566a)||!_0x135ee8[_0x7735('0x20')])return;const _0x5777eb=_0x56433d['model'][_0x7735('0x5')],_0x4ab628=_0x135ee8['nodeAfter'];return _0x5777eb[_0x7735('0x2d')](_0x4ab628)&&!_0x5777eb[_0x7735('0x25')](_0x4ab628)&&_0x5777eb[_0x7735('0x22')](_0x4ab628,_0x7735('0xb'))?{'type':_0x7735('0x31'),'content':_0x2f5165(_0x653d47,_0x7735('0x2b'),_0x57127e['getItemLabel'](_0x4ab628,0x1))}:void 0x0;});}}function tr(_0x592aaf,{showActiveMarker:_0x5c6476=!0x0}={}){return(_0x351d5e,_0x5ce843,_0xc84e7)=>{const _0x3ddfdf=_0x592aaf[_0x7735('0x1f')][_0x7735('0x6')](_0x7735('0x2')),_0x3c07cd=_0x5ce843[_0x7735('0x28')][_0x7735('0xa')],_0xc58669=_0x5ce843[_0x7735('0x28')][_0x7735('0x32')],_0x46117e=_0x592aaf[_0x7735('0x19')]['schema'];if(!_0x3c07cd[_0x7735('0xe')](_0xc58669)||!_0x3c07cd[_0x7735('0x20')])return;const _0x58df38=_0x3c07cd[_0x7735('0x20')];if(_0x46117e[_0x7735('0x2d')](_0x58df38)&&!_0x46117e[_0x7735('0x25')](_0x58df38)&&_0x46117e[_0x7735('0x22')](_0x58df38,_0x7735('0xb'))){if(!_0xc84e7['consumable']['consume'](_0x5ce843[_0x7735('0x28')],_0x351d5e[_0x7735('0x2e')]))return;const _0x2e51ac=_0xc84e7[_0x7735('0x2a')][_0x7735('0x4')](_0x7735('0x29'),{'class':_0x7735('0x15')}),_0x358124=_0xc84e7[_0x7735('0xd')][_0x7735('0x21')](_0xc58669);_0x5c6476&&_0x3ddfdf['activeMarkers'][_0x7735('0x1')](_0x5ce843['markerName'])&&_0xc84e7['writer']['addClass'](_0x7735('0x7'),_0x2e51ac),_0xc84e7[_0x7735('0x2a')]['insert'](_0x358124,_0x2e51ac),_0xc84e7['mapper'][_0x7735('0x9')](_0x2e51ac,_0x5ce843['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2759=['getRanges','removeFormat','has','markInlineFormat','document','afterInit','model','from','getAttributes','format','enableCommand','plugins','createRangeOn','getItems','_descriptionFactory','commandName','TrackChangesEditing','RemoveFormatEditing','isCollapsed','getAttributeProperties','*Remove\x20all\x20formatting*','registerDescriptionCallback','locale'];(function(_0xfdea8,_0x2759ec){const _0x13efe9=function(_0x14621c){while(--_0x14621c){_0xfdea8['push'](_0xfdea8['shift']());}};_0x13efe9(++_0x2759ec);}(_0x2759,0x68));const _0x13ef=function(_0xfdea8,_0x2759ec){_0xfdea8=_0xfdea8-0x0;let _0x13efe9=_0x2759[_0xfdea8];return _0x13efe9;};import{Plugin as _0x403bfc}from'ckeditor5/src/core';import{getTranslation as _0x2667a2}from'../utils/common-translations';export default class rt extends _0x403bfc{[_0x13ef('0x10')](){const _0x1707c7=this['editor'];if(!_0x1707c7[_0x13ef('0x16')][_0x13ef('0xd')](_0x13ef('0x5')))return;const _0x4b944e=_0x1707c7[_0x13ef('0x16')]['get'](_0x13ef('0x4'));_0x4b944e[_0x13ef('0x15')]('removeFormat',_0x5c9887=>{const _0x46387e=_0x1707c7[_0x13ef('0x11')][_0x13ef('0xf')]['selection'];_0x46387e[_0x13ef('0x6')]?_0x5c9887():_0x1707c7['model']['change'](()=>{const _0xe0e98f=Array[_0x13ef('0x12')](_0x46387e[_0x13ef('0xb')]());for(const _0x4cbdae of _0xe0e98f)for(const _0x294cee of _0x4cbdae[_0x13ef('0x1')]())to(_0x294cee,_0x1707c7[_0x13ef('0x11')]['schema'])&&_0x4b944e[_0x13ef('0xe')](_0x1707c7[_0x13ef('0x11')][_0x13ef('0x0')](_0x294cee),{'commandName':_0x13ef('0xc'),'commandParams':[]});});}),_0x4b944e[_0x13ef('0x2')][_0x13ef('0x9')](_0x35eb8d=>{const {data:_0x464fa4}=_0x35eb8d;if(_0x464fa4&&_0x13ef('0xc')==_0x464fa4[_0x13ef('0x3')])return{'type':_0x13ef('0x14'),'content':_0x2667a2(_0x1707c7[_0x13ef('0xa')],_0x13ef('0x8'))};});}}function to(_0x19a99a,_0x50a0b6){for(const [_0x191066]of _0x19a99a[_0x13ef('0x13')]()){const _0x4319cb=_0x50a0b6[_0x13ef('0x7')](_0x191066);if(_0x4319cb&&_0x4319cb['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52f0=['discardSuggestion','trackChanges','discardAllSuggestions','get','goToNextRestrictedEditingException','plugins','acceptSuggestion','has','goToPreviousRestrictedEditingException','enableCommand','acceptSelectedSuggestions','afterInit'];(function(_0xc5ccb1,_0x52f0aa){const _0x49c51e=function(_0x465522){while(--_0x465522){_0xc5ccb1['push'](_0xc5ccb1['shift']());}};_0x49c51e(++_0x52f0aa);}(_0x52f0,0x97));const _0x49c5=function(_0xc5ccb1,_0x52f0aa){_0xc5ccb1=_0xc5ccb1-0x0;let _0x49c51e=_0x52f0[_0xc5ccb1];return _0x49c51e;};import{Plugin as _0x204f02}from'ckeditor5/src/core';export default class at extends _0x204f02{[_0x49c5('0x4')](){const _0x32d6f5=this['editor'];if(!_0x32d6f5[_0x49c5('0xa')][_0x49c5('0x0')]('RestrictedEditingModeEditing'))return;const _0xa422b8=_0x32d6f5[_0x49c5('0xa')][_0x49c5('0x8')]('TrackChangesEditing');_0xa422b8[_0x49c5('0x2')](_0x49c5('0x1')),_0xa422b8['enableCommand'](_0x49c5('0x9'));const _0x24df51=_0x32d6f5[_0x49c5('0xa')][_0x49c5('0x8')]('RestrictedEditingModeEditing');_0x24df51[_0x49c5('0x2')](_0x49c5('0x6')),_0x24df51[_0x49c5('0x2')](_0x49c5('0xb')),_0x24df51['enableCommand'](_0x49c5('0x5')),_0x24df51[_0x49c5('0x2')]('acceptAllSuggestions'),_0x24df51[_0x49c5('0x2')](_0x49c5('0x7')),_0x24df51[_0x49c5('0x2')](_0x49c5('0x3')),_0x24df51['enableCommand']('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d16=['ck-suggestion-marker-','createPositionBefore','init','shiftEnter','activeMarkers','addClass','bindElementToMarker','insert','softBreak','locale','test','merge','data','split','mapper','writer','TrackChangesEditing','addMarker:suggestion','addMarker:suggestion:deletion','markerRange','get','_descriptionFactory','addMarker:suggestion:insertion','editing','plugins','options','showSuggestionHighlights','includes','getItems','model','editor','createUIElement','downcastDispatcher','ELEMENT_LINE_BREAK','markerName','toViewPosition','high'];(function(_0x183011,_0x1d16fb){const _0x257008=function(_0x55110d){while(--_0x55110d){_0x183011['push'](_0x183011['shift']());}};_0x257008(++_0x1d16fb);}(_0x1d16,0xc9));const _0x2570=function(_0x183011,_0x1d16fb){_0x183011=_0x183011-0x0;let _0x257008=_0x1d16[_0x183011];return _0x257008;};import{Plugin as _0x4649ed}from'ckeditor5/src/core';import{ShiftEnter as _0x161282}from'ckeditor5/src/enter';import{getTranslation as _0x1dd331}from'../utils/common-translations';export default class ct extends _0x4649ed{static get['requires'](){return[_0x161282];}[_0x2570('0x17')](){const _0x30b654=this[_0x2570('0xe')],_0x24af68=_0x30b654['plugins'][_0x2570('0x4')](_0x2570('0x0'));_0x24af68['enableCommand'](_0x2570('0x18')),_0x30b654[_0x2570('0x7')]['downcastDispatcher']['on'](_0x2570('0x6'),re(_0x30b654),{'priority':_0x2570('0x14')}),_0x30b654['editing'][_0x2570('0x10')]['on'](_0x2570('0x2'),re(_0x30b654),{'priority':_0x2570('0x14')}),_0x30b654[_0x2570('0x21')][_0x2570('0x10')]['on'](_0x2570('0x1'),(_0x333538,_0x33a7e1,_0x2909b2)=>{_0x2909b2[_0x2570('0x9')][_0x2570('0xa')]&&re(_0x30b654,{'showActiveMarker':!0x1})(_0x333538,_0x33a7e1,_0x2909b2);}),_0x24af68[_0x2570('0x5')]['registerElementLabel']('softBreak',_0xb7f6d2=>_0x1dd331(_0x30b654[_0x2570('0x1e')],_0x2570('0x11'),_0xb7f6d2));}}function re(_0x287d39,{showActiveMarker:_0x44525e=!0x0}={}){return(_0x517ef9,_0x51fb25,_0x3de2fa)=>{const _0x1047d4=_0x287d39[_0x2570('0x8')][_0x2570('0x4')]('TrackChangesEditing');if(!_0x3de2fa['consumable'][_0x2570('0x1f')](_0x51fb25['markerRange'],_0x517ef9['name']))return;const _0x23af33=_0x287d39[_0x2570('0xd')];for(const _0xa706a7 of _0x51fb25[_0x2570('0x3')][_0x2570('0xc')]()){if(!_0xa706a7['is']('element',_0x2570('0x1d')))continue;const _0x1108eb='deletion'==_0x51fb25[_0x2570('0x12')][_0x2570('0x22')](':')[0x1]?_0x2570('0x20'):_0x2570('0x22'),_0x53111e=_0x3de2fa[_0x2570('0x24')][_0x2570('0xf')]('span',{'class':_0x2570('0x15')+_0x1108eb}),_0x3ad6e6=_0x3de2fa[_0x2570('0x23')][_0x2570('0x13')](_0x23af33[_0x2570('0x16')](_0xa706a7));_0x44525e&&_0x1047d4[_0x2570('0x19')][_0x2570('0xb')](_0x51fb25['markerName'])&&_0x3de2fa[_0x2570('0x24')][_0x2570('0x1a')]('ck-suggestion-marker--active',_0x53111e),_0x3de2fa[_0x2570('0x24')][_0x2570('0x1c')](_0x3ad6e6,_0x53111e),_0x3de2fa[_0x2570('0x23')][_0x2570('0x1b')](_0x53111e,_0x51fb25[_0x2570('0x12')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b63=['editor','change','enableCommand','registerDescriptionCallback','isCollapsed','has','document','_descriptionFactory','selection','FORMAT_RESTRICTED_DISABLED','TrackChangesEditing','StandardEditingModeEditing','commandName','forceValue','afterInit','markInlineFormat','plugins','format','restrictedEditingException','get','commands','FORMAT_RESTRICTED_ENABLED','model'];(function(_0x53ba35,_0x4b63fb){const _0x3d80ba=function(_0x4d64b4){while(--_0x4d64b4){_0x53ba35['push'](_0x53ba35['shift']());}};_0x3d80ba(++_0x4b63fb);}(_0x4b63,0x79));const _0x3d80=function(_0x53ba35,_0x4b63fb){_0x53ba35=_0x53ba35-0x0;let _0x3d80ba=_0x4b63[_0x53ba35];return _0x3d80ba;};import{Plugin as _0x46aa4d}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x304e5f}from'./utils';import{getTranslation as _0x3fe663}from'../utils/common-translations';export default class ht extends _0x46aa4d{[_0x3d80('0x8')](){const _0x508ffa=this[_0x3d80('0x11')],_0x26fbfc=_0x508ffa[_0x3d80('0x10')],_0x174b96=_0x508ffa['locale'];if(!_0x508ffa['plugins'][_0x3d80('0x16')](_0x3d80('0x5')))return;const _0x24708c=_0x508ffa[_0x3d80('0xa')][_0x3d80('0xd')](_0x3d80('0x4')),_0x2d13e3=_0x3d80('0xc'),_0x444546=_0x508ffa[_0x3d80('0xe')]['get'](_0x2d13e3);_0x24708c[_0x3d80('0x13')](_0x2d13e3,(_0x5d6808,_0x19c16d={})=>{const _0x4322d3=_0x26fbfc[_0x3d80('0x0')][_0x3d80('0x2')];if(_0x4322d3[_0x3d80('0x15')])return void _0x5d6808(_0x19c16d);const _0x11099f=void 0x0!==_0x19c16d[_0x3d80('0x7')]?_0x19c16d[_0x3d80('0x7')]:!_0x444546['value'];_0x26fbfc[_0x3d80('0x12')](()=>{const _0x50b0b9=Array['from'](_0x4322d3['getRanges']());for(const _0xaa09cb of _0x50b0b9){const _0x151d0f=_0x11099f?[_0xaa09cb]:_0x304e5f(_0x2d13e3,_0xaa09cb,_0x26fbfc);for(const _0x485c85 of _0x151d0f)_0x24708c[_0x3d80('0x9')](_0x485c85,{'commandName':_0x2d13e3,'commandParams':[{'forceValue':_0x11099f}]});}});}),_0x24708c[_0x3d80('0x1')][_0x3d80('0x14')](_0x394fa8=>{const {data:_0x8305c4}=_0x394fa8;if(_0x8305c4&&_0x8305c4[_0x3d80('0x6')]==_0x2d13e3)return _0x8305c4['commandParams'][0x0][_0x3d80('0x7')]?{'type':_0x3d80('0xb'),'content':_0x3fe663(_0x174b96,_0x3d80('0xf'))}:{'type':_0x3d80('0xb'),'content':_0x3fe663(_0x174b96,_0x3d80('0x3'))};});}}
|