@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.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/casechange.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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.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 _0x1e58=['ck-horizontal-line','get','enableCommand','conversion','insert','addClass','div','createPositionAt','TrackChangesEditing','_descriptionFactory','HorizontalLineEditing','plugins','showSuggestionHighlights','elementToStructure','registerElementLabel','locale','editor','has','horizontalLine'];(function(_0x29bffa,_0x1e580c){const _0x36cdbf=function(_0x24528b){while(--_0x24528b){_0x29bffa['push'](_0x29bffa['shift']());}};_0x36cdbf(++_0x1e580c);}(_0x1e58,0x6e));const _0x36cd=function(_0x29bffa,_0x1e580c){_0x29bffa=_0x29bffa-0x0;let _0x36cdbf=_0x1e58[_0x29bffa];return _0x36cdbf;};import{Plugin as _0x4987f8}from'ckeditor5/src/core.js';import{getTranslation as _0x1e06ca}from'../utils/common-translations.js';export default class tt extends _0x4987f8{['afterInit'](){const _0x3a4084=this[_0x36cd('0x1')];if(!_0x3a4084['plugins'][_0x36cd('0x2')](_0x36cd('0xe')))return;_0x3a4084[_0x36cd('0xf')][_0x36cd('0x5')](_0x36cd('0xc'))[_0x36cd('0x6')]('horizontalLine');const _0x17b654=_0x3a4084[_0x36cd('0xf')][_0x36cd('0x5')](_0x36cd('0xc')),_0x3186d9=_0x3a4084[_0x36cd('0x0')];_0x17b654[_0x36cd('0xd')][_0x36cd('0x12')](_0x36cd('0x3'),_0x58185e=>_0x1e06ca(_0x3186d9,'ELEMENT_HORIZONTAL_LINE',_0x58185e)),_0x3a4084[_0x36cd('0x7')]['for']('dataDowncast')[_0x36cd('0x11')]({'model':_0x36cd('0x3'),'view':(_0x4def4a,{writer:_0x4cfa48,options:_0x571b78})=>{if(!_0x571b78[_0x36cd('0x10')])return null;const _0x2ccd42=_0x4cfa48['createContainerElement'](_0x36cd('0xa')),_0x552178=_0x4cfa48['createEmptyElement']('hr');return _0x4cfa48[_0x36cd('0x9')](_0x36cd('0x4'),_0x2ccd42),_0x4cfa48[_0x36cd('0x8')](_0x4cfa48[_0x36cd('0xb')](_0x2ccd42,0x0),_0x552178),_0x2ccd42;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x527b=['_enableDefaultAttributesIntegration','attribute','commandName','editor','value','locale','_descriptionFactory','getFirstRange','plugins','start','formatBlock','registerDescriptionCallback','format','nodeAfter','*Change\x20%0\x20content*','has','get','key','type','rawHtml','ELEMENT_HTML_EMBED','HtmlEmbed','element','htmlEmbed','TrackChangesEditing','_registerLegacyDescription'];(function(_0x3ea858,_0x527b86){const _0x576f3f=function(_0x4e9f03){while(--_0x4e9f03){_0x3ea858['push'](_0x3ea858['shift']());}};_0x576f3f(++_0x527b86);}(_0x527b,0x16b));const _0x576f=function(_0x3ea858,_0x527b86){_0x3ea858=_0x3ea858-0x0;let _0x576f3f=_0x527b[_0x3ea858];return _0x576f3f;};import{Plugin as _0x5298df}from'ckeditor5/src/core.js';import{getTranslation as _0x17eb97}from'../utils/common-translations.js';export default class et extends _0x5298df{['afterInit'](){const _0x4010ac=this[_0x576f('0x4')];if(!_0x4010ac[_0x576f('0x9')][_0x576f('0x10')](_0x576f('0x16')))return;const _0xb1f395=_0x4010ac[_0x576f('0x9')]['get'](_0x576f('0x19')),_0x33b373=_0x4010ac['locale'];_0xb1f395[_0x576f('0x7')]['registerElementLabel'](_0x576f('0x14'),_0x28ea48=>_0x17eb97(_0x33b373,_0x576f('0x15'),_0x28ea48)),_0xb1f395[_0x576f('0x1')](_0x576f('0x18'),[],[_0x576f('0x5')]),_0xb1f395[_0x576f('0x7')][_0x576f('0xc')](_0x48a7cb=>{if(_0x576f('0x2')!=_0x48a7cb[_0x576f('0x13')])return;const {data:_0x557db7}=_0x48a7cb;if(_0x557db7&&'value'==_0x557db7[_0x576f('0x12')]&&_0x48a7cb[_0x576f('0x8')]()[_0x576f('0xa')][_0x576f('0xe')]['is'](_0x576f('0x17'),_0x576f('0x14'))){const _0x2f8884=_0x17eb97(_0x33b373,_0x576f('0x15'));return{'type':_0x576f('0xd'),'content':_0x17eb97(_0x33b373,_0x576f('0xf'),_0x2f8884)};}}),this['_registerLegacyDescription']();}[_0x576f('0x0')](){const _0x57636e=this[_0x576f('0x4')],_0x54713c=_0x57636e[_0x576f('0x6')];_0x57636e[_0x576f('0x9')][_0x576f('0x11')](_0x576f('0x19'))['_descriptionFactory'][_0x576f('0xc')](_0xb3c00c=>{if(_0x576f('0xb')!=_0xb3c00c['type'])return;const {data:_0x3d14a5}=_0xb3c00c;if(_0x3d14a5&&_0x576f('0x18')==_0x3d14a5[_0x576f('0x3')]){const _0x156fd2=_0x17eb97(_0x54713c,_0x576f('0x15'));return{'type':_0x576f('0xd'),'content':_0x17eb97(_0x54713c,_0x576f('0xf'),_0x156fd2)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c1b=['document','_registerLegacyDescription','getFirstRange','resizeImage','selection','_descriptionFactory','isBlockImage','getContainedElement','formatBlock','*Remove\x20image\x20text\x20alternative*','imageTextAlternative','detach','format','toPrevious','forceDefaultExecution','enableCommand','isCollapsed','_enableDefaultAttributesIntegration','plugins','caption','*Set\x20image\x20text\x20alternative:*\x20%0','convertBlockImageToInline','ImageCaptionUtils','accept','getSuggestionCallback','has','ELEMENT_CAPTION','registerDescriptionCallback','locale','imageCaption','fromPosition','markInsertion','*Set\x20image\x20width:*\x20%0','ImageUploadEditing','model','TrackChangesEditing','ELEMENT_IMAGE','start','createRangeOn','join','Inline\x20image\x20to\x20block\x20image','isEqual','formatInline','FORMAT_IMAGE_SIZE','registerCustomCallback','previous','ImageEditing','convertInlineImageToBlock','ImageCaptionEditing','imageStylePreApply','resizedWidth','isBefore','filter','_suggestionFactory','newValue','length','key','type','schema','insertion','nodeAfter','discard','addObject','element','createRange','ImageUtils','alt','subType','ImageInlineEditing','registerAttributeLabel','_findSuggestions','get','getCaptionFromImageModelElement','afterInit','markBlockFormat','chain','deletion','ImageTextAlternativeEditing','uploadImage','backward','toNext','registerElementLabel','commandParams','nodeBefore','width','change','imageTypeInline','end','editor','findIndex','getClosestSelectedImageElement','ImageBlockEditing'];(function(_0x642e3f,_0x1c1bec){const _0x252320=function(_0x5dd127){while(--_0x5dd127){_0x642e3f['push'](_0x642e3f['shift']());}};_0x252320(++_0x1c1bec);}(_0x1c1b,0x7e));const _0x2523=function(_0x642e3f,_0x1c1bec){_0x642e3f=_0x642e3f-0x0;let _0x252320=_0x1c1b[_0x642e3f];return _0x252320;};import{Plugin as _0xbc0ea6}from'ckeditor5/src/core.js';import{LivePosition as _0x4a6f0f}from'ckeditor5/src/engine.js';import{getTranslation as _0x528881}from'../utils/common-translations.js';export default class it extends _0xbc0ea6{[_0x2523('0x27')](){const _0x12acf7=this[_0x2523('0x36')];if(!_0x12acf7[_0x2523('0x4c')][_0x2523('0x53')](_0x2523('0xc')))return;const _0x4e967c=_0x12acf7['plugins'][_0x2523('0x25')]('TrackChangesEditing'),_0x1ee0f1=_0x12acf7['plugins']['get'](_0x2523('0x1f')),_0x40eb5c=_0x12acf7[_0x2523('0x56')];_0x4e967c['enableCommand']('insertImage'),_0x4e967c[_0x2523('0x3f')][_0x2523('0x2f')]('imageBlock',_0x21cc40=>_0x528881(_0x40eb5c,_0x2523('0x2'),_0x21cc40)),_0x4e967c[_0x2523('0x3f')]['registerElementLabel']('imageInline',_0xc12d08=>_0x528881(_0x40eb5c,'ELEMENT_INLINE_IMAGE',_0xc12d08)),_0x4e967c[_0x2523('0x3f')][_0x2523('0x2f')](_0x2523('0x4d'),()=>_0x528881(_0x40eb5c,_0x2523('0x54'))),_0x12acf7[_0x2523('0x4c')][_0x2523('0x53')](_0x2523('0x5b'))&&_0x4e967c[_0x2523('0x49')](_0x2523('0x2c')),_0x12acf7[_0x2523('0x4c')]['has'](_0x2523('0x39'))&&_0x12acf7[_0x2523('0x4c')][_0x2523('0x53')](_0x2523('0x22'))&&(_0x4e967c[_0x2523('0x49')]('imageTypeInline',(_0x174397,_0x6e234)=>{const _0x241e37=_0x1ee0f1[_0x2523('0x38')](_0x12acf7['model']['document'][_0x2523('0x3e')]);_0x12acf7[_0x2523('0x0')][_0x2523('0x33')](()=>{_0x4e967c[_0x2523('0x28')](_0x241e37,{'commandName':_0x2523('0x34'),'commandParams':[_0x6e234]},[],_0x2523('0x4f'));});}),_0x4e967c[_0x2523('0x49')]('imageTypeBlock',(_0x2ad31d,_0x336e0d)=>{_0x12acf7[_0x2523('0x0')]['change'](_0x1eb3de=>{let _0x23c57f=_0x1ee0f1['getClosestSelectedImageElement'](_0x12acf7[_0x2523('0x0')][_0x2523('0x3a')][_0x2523('0x3e')]),_0x31af80=_0x1eb3de[_0x2523('0x4')](_0x23c57f);const _0x4a06e8=_0x4a6f0f[_0x2523('0x58')](_0x31af80[_0x2523('0x3')],_0x2523('0x47')),_0x558e32=_0x4a6f0f[_0x2523('0x58')](_0x31af80['end'],_0x2523('0x2e'));_0x4e967c[_0x2523('0x48')](()=>_0x2ad31d(_0x336e0d)),_0x23c57f=_0x1ee0f1[_0x2523('0x38')](_0x12acf7['model'][_0x2523('0x3a')][_0x2523('0x3e')]),_0x31af80=_0x1eb3de[_0x2523('0x4')](_0x23c57f);const _0x33c517=_0x1eb3de[_0x2523('0x1e')](_0x4a06e8,_0x558e32);_0x4a06e8['detach'](),_0x558e32[_0x2523('0x45')](),_0x4e967c['markBlockFormat'](_0x23c57f,{'commandName':'imageTypeInline','commandParams':[_0x336e0d]},[],_0x2523('0xd')),_0x33c517[_0x2523('0x3')][_0x2523('0x11')](_0x31af80['start'])&&_0x4e967c[_0x2523('0x59')](_0x1eb3de[_0x2523('0x1e')](_0x33c517['start'],_0x31af80[_0x2523('0x3')]),_0x2523('0xd')),_0x31af80[_0x2523('0x35')][_0x2523('0x11')](_0x33c517[_0x2523('0x35')])&&_0x4e967c[_0x2523('0x59')](_0x1eb3de[_0x2523('0x1e')](_0x31af80[_0x2523('0x35')],_0x33c517[_0x2523('0x35')]),_0x2523('0xd'));});}),_0x4e967c['_suggestionFactory'][_0x2523('0xa')]('formatBlock',_0x2523('0xd'),_0x2523('0x5'),()=>!0x1),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')]('formatBlock',_0x2523('0xd'),_0x2523('0x51'),()=>!0x1),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')]('formatBlock',_0x2523('0xd'),_0x2523('0x1b'),_0x4e967c['_suggestionFactory'][_0x2523('0x52')](_0x2523('0x42'),'',_0x2523('0x51'))),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')](_0x2523('0x19'),_0x2523('0xd'),_0x2523('0x5'),()=>!0x1),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')](_0x2523('0x19'),_0x2523('0xd'),_0x2523('0x1b'),([_0x4a8bae])=>{const _0x201cf7=_0x4e967c['_suggestionFactory']['getSuggestionCallback']('insertion','',_0x2523('0x1b'));let _0x124bd2=_0x4a8bae[_0x2523('0x3')],_0x422c7f=_0x4a8bae[_0x2523('0x35')];const _0x26b261=_0x12acf7[_0x2523('0x0')][_0x2523('0x18')]['getNearestSelectionRange'](_0x124bd2,_0x2523('0x2d')),_0x57a4cd=_0x12acf7[_0x2523('0x0')]['schema']['getNearestSelectionRange'](_0x422c7f,'forward');_0x26b261[_0x2523('0x4a')]&&(_0x124bd2=_0x26b261[_0x2523('0x3')]),_0x57a4cd[_0x2523('0x4a')]&&(_0x422c7f=_0x57a4cd['end']),_0x201cf7([_0x12acf7[_0x2523('0x0')][_0x2523('0x1e')](_0x124bd2,_0x422c7f)]);}),_0x4e967c['_suggestionFactory'][_0x2523('0xa')](_0x2523('0x42'),'convertInlineImageToBlock','chain',_0x49c9e7),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')](_0x2523('0x19'),_0x2523('0xd'),_0x2523('0x29'),_0x49c9e7)),_0x12acf7[_0x2523('0x4c')][_0x2523('0x53')](_0x2523('0xe'))&&(_0x4e967c[_0x2523('0x49')]('toggleImageCaption',(_0x5bcda4,_0x55d0a3)=>{const _0x19c081=_0x12acf7['plugins'][_0x2523('0x25')](_0x2523('0x50'));let _0x3cfaaf=_0x1ee0f1[_0x2523('0x38')](_0x12acf7['model'][_0x2523('0x3a')]['selection']),_0x51ed95=_0x19c081['getCaptionFromImageModelElement'](_0x3cfaaf);_0x12acf7['model'][_0x2523('0x33')](()=>{if(_0x51ed95)return void _0x4e967c['markDeletion'](_0x12acf7[_0x2523('0x0')]['createRangeOn'](_0x51ed95));const _0x3252db=_0x1ee0f1['isBlockImage'](_0x3cfaaf);_0x5bcda4(_0x55d0a3),_0x3cfaaf=_0x1ee0f1[_0x2523('0x38')](_0x12acf7[_0x2523('0x0')][_0x2523('0x3a')][_0x2523('0x3e')]),_0x51ed95=_0x19c081[_0x2523('0x26')](_0x3cfaaf),_0x4e967c[_0x2523('0x59')](_0x12acf7[_0x2523('0x0')][_0x2523('0x4')](_0x51ed95),_0x3252db?null:'imageCaption');});}),_0x4e967c[_0x2523('0x13')][_0x2523('0xa')](_0x2523('0x19'),_0x2523('0x57'),_0x2523('0x29'),_0x49c9e7));const _0x3f3044=[{'type':_0x2523('0x42'),'subType':_0x2523('0xf')},{'type':'insertion','subType':_0x2523('0x57')},{'type':_0x2523('0x42'),'subType':_0x2523('0xd')},{'type':_0x2523('0x19'),'subType':_0x2523('0xd')}];function _0x5f20e4(_0x43979c,_0x5853bb){const _0x3f2f57=_0x3f3044['findIndex'](({type:_0xa4fe5c,subType:_0x2939e6})=>_0x43979c[_0x2523('0x17')]==_0xa4fe5c&&_0x43979c[_0x2523('0x21')]==_0x2939e6),_0x26493e=_0x3f3044[_0x2523('0x37')](({type:_0x4a4fc2,subType:_0x13b7b0})=>_0x5853bb['type']==_0x4a4fc2&&_0x5853bb[_0x2523('0x21')]==_0x13b7b0);if(_0x3f2f57<0x0||_0x26493e<0x0)return!0x1;const _0x4a590c=_0x43979c[_0x2523('0x3c')](),_0x3145cf=_0x5853bb['getFirstRange']();if((0x0==_0x3f2f57||0x1==_0x3f2f57)&&0x2==_0x26493e&&_0x4a590c['isIntersecting'](_0x3145cf))return!0x0;if(0x2==_0x3f2f57&&0x3==_0x26493e){const _0x4fdf8b=_0x4e967c[_0x2523('0x24')](_0x4a590c,_0x2523('0x19'))[_0x2523('0x12')](({suggestion:_0x388de8,meta:_0x328a56})=>_0x328a56['isOwn']&&'convertInlineImageToBlock'==_0x388de8[_0x2523('0x21')]);if(_0x4fdf8b['length']>0x1&&_0x3145cf[_0x2523('0x35')][_0x2523('0x7')](_0x4a590c['start']))return!0x0;if(0x1==_0x4fdf8b[_0x2523('0x15')]&&(_0x4a590c[_0x2523('0x3')][_0x2523('0x7')](_0x3145cf[_0x2523('0x35')])||_0x4a590c[_0x2523('0x35')][_0x2523('0x7')](_0x3145cf[_0x2523('0x3')])))return!0x0;}if(0x3==_0x3f2f57&&0x3==_0x26493e&&_0x4a590c['start'][_0x2523('0x11')](_0x3145cf[_0x2523('0x3')])){const _0x713e4a=_0x4a590c[_0x2523('0x35')][_0x2523('0x1a')],_0x150131=_0x3145cf['start'][_0x2523('0x31')];return _0x1ee0f1[_0x2523('0x40')](_0x713e4a)&&_0x713e4a===_0x150131;}return!0x1;}function _0x49c9e7(_0x244b62,_0x5da8c6){return _0x5f20e4(_0x244b62,_0x5da8c6)?[_0x244b62,_0x5da8c6]:_0x5f20e4(_0x5da8c6,_0x244b62)?[_0x5da8c6,_0x244b62]:null;}_0x12acf7[_0x2523('0x4c')][_0x2523('0x53')]('ImageResize')&&(_0x4e967c[_0x2523('0x4b')]('resizeImage',[],['resizedWidth']),_0x4e967c[_0x2523('0x3f')][_0x2523('0x23')](_0x2523('0x10'),_0x528881(_0x40eb5c,_0x2523('0x9')))),_0x12acf7[_0x2523('0x4c')]['has'](_0x2523('0x2b'))&&_0x4e967c[_0x2523('0x4b')](_0x2523('0x44'),[],['alt']),_0x4e967c[_0x2523('0x3f')]['registerDescriptionCallback'](_0x2f6ae1=>{if(!!_0x3f3044['find'](({type:_0x558f9a,subType:_0x4ac639})=>_0x2f6ae1['type']==_0x558f9a&&_0x2f6ae1[_0x2523('0x21')]==_0x4ac639))return _0x2f6ae1[_0x2523('0xb')]?{}:void 0x0;}),_0x4e967c[_0x2523('0x3f')][_0x2523('0x55')](_0xbe5c43=>{if('insertion'==_0xbe5c43[_0x2523('0x17')]||_0x2523('0x2a')==_0xbe5c43[_0x2523('0x17')]){const _0x4c5441=_0xbe5c43[_0x2523('0x41')]();if(_0x4c5441&&_0x4c5441['is'](_0x2523('0x1d'),_0x2523('0x4d')))return{'type':_0x2523('0x19')==_0xbe5c43[_0x2523('0x17')]?_0x2523('0x1c'):'removeObject','element':_0x4c5441,'quantity':0x1};}}),_0x4e967c[_0x2523('0x3f')]['registerDescriptionCallback'](_0x5cdc67=>_0x2523('0x42')==_0x5cdc67[_0x2523('0x17')]&&_0x2523('0xd')==_0x5cdc67['subType']?{'type':_0x2523('0x46'),'content':_0x2523('0x6')}:_0x2523('0x42')==_0x5cdc67[_0x2523('0x17')]&&_0x2523('0x4f')==_0x5cdc67[_0x2523('0x21')]?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4e967c['_descriptionFactory'][_0x2523('0x55')](_0x345226=>{if('attribute'!=_0x345226[_0x2523('0x17')])return;const {data:_0x130b39}=_0x345226;if(!_0x130b39||_0x2523('0x20')!=_0x130b39[_0x2523('0x16')])return;const _0xc6aaaf=_0x130b39[_0x2523('0x14')];return _0xc6aaaf?{'type':_0x2523('0x46'),'content':_0x528881(_0x40eb5c,_0x2523('0x4e'),'\x22'+_0xc6aaaf+'\x22')}:{'type':_0x2523('0x46'),'content':_0x528881(_0x40eb5c,_0x2523('0x43'))};}),this[_0x2523('0x3b')]();}[_0x2523('0x3b')](){const _0x4f9b31=this[_0x2523('0x36')],_0x578560=_0x4f9b31[_0x2523('0x56')];_0x4f9b31[_0x2523('0x4c')][_0x2523('0x25')](_0x2523('0x1'))[_0x2523('0x3f')]['registerDescriptionCallback'](_0x418492=>{if('formatBlock'!=_0x418492[_0x2523('0x17')]&&_0x2523('0x8')!=_0x418492[_0x2523('0x17')])return;const {data:_0x4bad62}=_0x418492;if(_0x4bad62){if(_0x2523('0x44')==_0x4bad62['commandName']){const _0x49cb4c=_0x4bad62[_0x2523('0x30')][0x0][_0x2523('0x14')];return _0x49cb4c?{'type':_0x2523('0x46'),'content':_0x528881(_0x578560,_0x2523('0x4e'),'\x22'+_0x49cb4c+'\x22')}:{'type':_0x2523('0x46'),'content':_0x528881(_0x578560,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2523('0x3d')==_0x4bad62['commandName']){const _0x13ebaf=_0x4bad62[_0x2523('0x30')][0x0][_0x2523('0x32')];return _0x13ebaf?{'type':_0x2523('0x46'),'content':_0x528881(_0x578560,_0x2523('0x5a'),_0x13ebaf)}:{'type':_0x2523('0x46'),'content':_0x528881(_0x578560,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x508c=['ImageResize','ELEMENT_CAPTION','filter','change','ELEMENT_INLINE_IMAGE','isBefore','forward','createRangeOn','chain','format','imageTypeBlock','type','ImageUploadEditing','insertImage','backward','plugins','start','key','document','getClosestSelectedImageElement','resizedWidth','get','subType','findIndex','formatBlock','nodeBefore','TrackChangesEditing','FORMAT_IMAGE_SIZE','isCollapsed','model','_suggestionFactory','imageCaption','*Reset\x20image\x20width*','ImageTextAlternativeEditing','markBlockFormat','resizeImage','_enableDefaultAttributesIntegration','discard','newValue','schema','createRange','fromPosition','has','imageTypeInline','editor','removeObject','getCaptionFromImageModelElement','isIntersecting','uploadImage','formatInline','width','isOwn','accept','imageBlock','Inline\x20image\x20to\x20block\x20image','detach','addObject','insertion','deletion','imageTextAlternative','locale','selection','*Remove\x20image\x20text\x20alternative*','commandParams','toNext','join','ImageCaptionUtils','Block\x20image\x20to\x20inline\x20image','_descriptionFactory','getSuggestionCallback','registerCustomCallback','registerDescriptionCallback','ELEMENT_IMAGE','previous','attribute','afterInit','isEqual','markInsertion','registerElementLabel','caption','convertInlineImageToBlock','commandName','_registerLegacyDescription','toPrevious','ImageUtils','toggleImageCaption','markDeletion','end','isBlockImage','*Set\x20image\x20text\x20alternative:*\x20%0','getContainedElement','alt','enableCommand','ImageEditing','_findSuggestions','convertBlockImageToInline','length'];(function(_0x23e249,_0x508cb9){const _0xf6ee2=function(_0x2e1e04){while(--_0x2e1e04){_0x23e249['push'](_0x23e249['shift']());}};_0xf6ee2(++_0x508cb9);}(_0x508c,0xfa));const _0xf6ee=function(_0x23e249,_0x508cb9){_0x23e249=_0x23e249-0x0;let _0xf6ee2=_0x508c[_0x23e249];return _0xf6ee2;};import{Plugin as _0x44912c}from'ckeditor5/src/core.js';import{LivePosition as _0x77dc84}from'ckeditor5/src/engine.js';import{getTranslation as _0x178ef3}from'../utils/common-translations.js';export default class it extends _0x44912c{[_0xf6ee('0x13')](){const _0x41a926=this[_0xf6ee('0x55')];if(!_0x41a926[_0xf6ee('0x38')][_0xf6ee('0x53')](_0xf6ee('0x25')))return;const _0x32f12d=_0x41a926['plugins'][_0xf6ee('0x3e')]('TrackChangesEditing'),_0x59c530=_0x41a926[_0xf6ee('0x38')]['get'](_0xf6ee('0x1c')),_0x166e26=_0x41a926['locale'];_0x32f12d['enableCommand'](_0xf6ee('0x36')),_0x32f12d['_descriptionFactory'][_0xf6ee('0x16')](_0xf6ee('0x5e'),_0x299bb4=>_0x178ef3(_0x166e26,_0xf6ee('0x10'),_0x299bb4)),_0x32f12d[_0xf6ee('0xc')][_0xf6ee('0x16')]('imageInline',_0x2f8c32=>_0x178ef3(_0x166e26,_0xf6ee('0x2d'),_0x2f8c32)),_0x32f12d['_descriptionFactory'][_0xf6ee('0x16')](_0xf6ee('0x17'),()=>_0x178ef3(_0x166e26,_0xf6ee('0x2a'))),_0x41a926['plugins'][_0xf6ee('0x53')](_0xf6ee('0x35'))&&_0x32f12d[_0xf6ee('0x24')](_0xf6ee('0x59')),_0x41a926[_0xf6ee('0x38')][_0xf6ee('0x53')]('ImageBlockEditing')&&_0x41a926['plugins'][_0xf6ee('0x53')]('ImageInlineEditing')&&(_0x32f12d['enableCommand']('imageTypeInline',(_0x2db03c,_0x16a81a)=>{const _0x22edeb=_0x59c530[_0xf6ee('0x3c')](_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x3b')][_0xf6ee('0x5')]);_0x41a926['model'][_0xf6ee('0x2c')](()=>{_0x32f12d[_0xf6ee('0x4b')](_0x22edeb,{'commandName':'imageTypeInline','commandParams':[_0x16a81a]},[],_0xf6ee('0x27'));});}),_0x32f12d[_0xf6ee('0x24')](_0xf6ee('0x33'),(_0x5afe0b,_0x14a7a0)=>{_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x2c')](_0xf1d8db=>{let _0x44be77=_0x59c530[_0xf6ee('0x3c')](_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x3b')][_0xf6ee('0x5')]),_0x4b0514=_0xf1d8db[_0xf6ee('0x30')](_0x44be77);const _0x5a1d33=_0x77dc84[_0xf6ee('0x52')](_0x4b0514[_0xf6ee('0x39')],_0xf6ee('0x1b')),_0x3531b7=_0x77dc84[_0xf6ee('0x52')](_0x4b0514[_0xf6ee('0x1f')],_0xf6ee('0x8'));_0x32f12d['forceDefaultExecution'](()=>_0x5afe0b(_0x14a7a0)),_0x44be77=_0x59c530[_0xf6ee('0x3c')](_0x41a926[_0xf6ee('0x46')]['document'][_0xf6ee('0x5')]),_0x4b0514=_0xf1d8db[_0xf6ee('0x30')](_0x44be77);const _0x2424b6=_0xf1d8db[_0xf6ee('0x51')](_0x5a1d33,_0x3531b7);_0x5a1d33[_0xf6ee('0x60')](),_0x3531b7[_0xf6ee('0x60')](),_0x32f12d[_0xf6ee('0x4b')](_0x44be77,{'commandName':_0xf6ee('0x54'),'commandParams':[_0x14a7a0]},[],_0xf6ee('0x18')),_0x2424b6[_0xf6ee('0x39')][_0xf6ee('0x2e')](_0x4b0514[_0xf6ee('0x39')])&&_0x32f12d[_0xf6ee('0x15')](_0xf1d8db[_0xf6ee('0x51')](_0x2424b6['start'],_0x4b0514[_0xf6ee('0x39')]),'convertInlineImageToBlock'),_0x4b0514[_0xf6ee('0x1f')]['isBefore'](_0x2424b6['end'])&&_0x32f12d['markInsertion'](_0xf1d8db[_0xf6ee('0x51')](_0x4b0514['end'],_0x2424b6[_0xf6ee('0x1f')]),_0xf6ee('0x18'));});}),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')](_0xf6ee('0x41'),_0xf6ee('0x18'),'join',()=>!0x1),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')](_0xf6ee('0x41'),'convertInlineImageToBlock','accept',()=>!0x1),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')]('formatBlock',_0xf6ee('0x18'),_0xf6ee('0x4e'),_0x32f12d[_0xf6ee('0x47')][_0xf6ee('0xd')](_0xf6ee('0x41'),'',_0xf6ee('0x5d'))),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')](_0xf6ee('0x1'),'convertInlineImageToBlock',_0xf6ee('0x9'),()=>!0x1),_0x32f12d[_0xf6ee('0x47')][_0xf6ee('0xe')]('insertion',_0xf6ee('0x18'),'discard',([_0x50a879])=>{const _0x5b3d95=_0x32f12d[_0xf6ee('0x47')]['getSuggestionCallback'](_0xf6ee('0x1'),'',_0xf6ee('0x4e'));let _0x6d3074=_0x50a879[_0xf6ee('0x39')],_0x2817ca=_0x50a879[_0xf6ee('0x1f')];const _0x3f19ce=_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x50')]['getNearestSelectionRange'](_0x6d3074,_0xf6ee('0x37')),_0x17f83b=_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x50')]['getNearestSelectionRange'](_0x2817ca,_0xf6ee('0x2f'));_0x3f19ce[_0xf6ee('0x45')]&&(_0x6d3074=_0x3f19ce['start']),_0x17f83b[_0xf6ee('0x45')]&&(_0x2817ca=_0x17f83b[_0xf6ee('0x1f')]),_0x5b3d95([_0x41a926['model'][_0xf6ee('0x51')](_0x6d3074,_0x2817ca)]);}),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')]('formatBlock','convertInlineImageToBlock','chain',_0xac8d0e),_0x32f12d['_suggestionFactory'][_0xf6ee('0xe')](_0xf6ee('0x1'),'convertInlineImageToBlock',_0xf6ee('0x31'),_0xac8d0e)),_0x41a926[_0xf6ee('0x38')][_0xf6ee('0x53')]('ImageCaptionEditing')&&(_0x32f12d[_0xf6ee('0x24')](_0xf6ee('0x1d'),(_0x39f987,_0x3b1cde)=>{const _0x136af3=_0x41a926[_0xf6ee('0x38')][_0xf6ee('0x3e')](_0xf6ee('0xa'));let _0x2928de=_0x59c530[_0xf6ee('0x3c')](_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x3b')][_0xf6ee('0x5')]),_0x1de8d1=_0x136af3[_0xf6ee('0x57')](_0x2928de);_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x2c')](()=>{if(_0x1de8d1)return void _0x32f12d[_0xf6ee('0x1e')](_0x41a926[_0xf6ee('0x46')]['createRangeOn'](_0x1de8d1));const _0x33f117=_0x59c530['isBlockImage'](_0x2928de);_0x39f987(_0x3b1cde),_0x2928de=_0x59c530[_0xf6ee('0x3c')](_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x3b')][_0xf6ee('0x5')]),_0x1de8d1=_0x136af3['getCaptionFromImageModelElement'](_0x2928de),_0x32f12d[_0xf6ee('0x15')](_0x41a926[_0xf6ee('0x46')][_0xf6ee('0x30')](_0x1de8d1),_0x33f117?null:_0xf6ee('0x48'));});}),_0x32f12d[_0xf6ee('0x47')][_0xf6ee('0xe')](_0xf6ee('0x1'),_0xf6ee('0x48'),_0xf6ee('0x31'),_0xac8d0e));const _0x5a966d=[{'type':_0xf6ee('0x41'),'subType':'imageStylePreApply'},{'type':_0xf6ee('0x1'),'subType':'imageCaption'},{'type':'formatBlock','subType':_0xf6ee('0x18')},{'type':_0xf6ee('0x1'),'subType':_0xf6ee('0x18')}];function _0x368c6d(_0x1ecf3d,_0x4dd576){const _0x78fd3d=_0x5a966d[_0xf6ee('0x40')](({type:_0x41d138,subType:_0x778e00})=>_0x1ecf3d[_0xf6ee('0x34')]==_0x41d138&&_0x1ecf3d[_0xf6ee('0x3f')]==_0x778e00),_0xda741b=_0x5a966d[_0xf6ee('0x40')](({type:_0x47bc72,subType:_0x58f593})=>_0x4dd576['type']==_0x47bc72&&_0x4dd576['subType']==_0x58f593);if(_0x78fd3d<0x0||_0xda741b<0x0)return!0x1;const _0x170b4d=_0x1ecf3d['getFirstRange'](),_0x46bfbf=_0x4dd576['getFirstRange']();if((0x0==_0x78fd3d||0x1==_0x78fd3d)&&0x2==_0xda741b&&_0x170b4d[_0xf6ee('0x58')](_0x46bfbf))return!0x0;if(0x2==_0x78fd3d&&0x3==_0xda741b){const _0x5abc08=_0x32f12d[_0xf6ee('0x26')](_0x170b4d,_0xf6ee('0x1'))[_0xf6ee('0x2b')](({suggestion:_0x4cbee6,meta:_0x95e05c})=>_0x95e05c[_0xf6ee('0x5c')]&&_0xf6ee('0x18')==_0x4cbee6[_0xf6ee('0x3f')]);if(_0x5abc08[_0xf6ee('0x28')]>0x1&&_0x46bfbf[_0xf6ee('0x1f')][_0xf6ee('0x14')](_0x170b4d[_0xf6ee('0x39')]))return!0x0;if(0x1==_0x5abc08[_0xf6ee('0x28')]&&(_0x170b4d[_0xf6ee('0x39')][_0xf6ee('0x14')](_0x46bfbf['end'])||_0x170b4d['end']['isEqual'](_0x46bfbf[_0xf6ee('0x39')])))return!0x0;}if(0x3==_0x78fd3d&&0x3==_0xda741b&&_0x170b4d[_0xf6ee('0x39')][_0xf6ee('0x2e')](_0x46bfbf[_0xf6ee('0x39')])){const _0x3786fc=_0x170b4d[_0xf6ee('0x1f')]['nodeAfter'],_0x4cd4d9=_0x46bfbf['start'][_0xf6ee('0x42')];return _0x59c530[_0xf6ee('0x20')](_0x3786fc)&&_0x3786fc===_0x4cd4d9;}return!0x1;}function _0xac8d0e(_0x1f3c52,_0x1ee7ca){return _0x368c6d(_0x1f3c52,_0x1ee7ca)?[_0x1f3c52,_0x1ee7ca]:_0x368c6d(_0x1ee7ca,_0x1f3c52)?[_0x1ee7ca,_0x1f3c52]:null;}_0x41a926[_0xf6ee('0x38')][_0xf6ee('0x53')](_0xf6ee('0x29'))&&(_0x32f12d[_0xf6ee('0x4d')](_0xf6ee('0x4c'),[],[_0xf6ee('0x3d')]),_0x32f12d['_descriptionFactory']['registerAttributeLabel'](_0xf6ee('0x3d'),_0x178ef3(_0x166e26,_0xf6ee('0x44')))),_0x41a926['plugins'][_0xf6ee('0x53')](_0xf6ee('0x4a'))&&_0x32f12d[_0xf6ee('0x4d')](_0xf6ee('0x3'),[],['alt']),_0x32f12d[_0xf6ee('0xc')]['registerDescriptionCallback'](_0x430d09=>{if(!!_0x5a966d['find'](({type:_0x4c79b0,subType:_0x153740})=>_0x430d09[_0xf6ee('0x34')]==_0x4c79b0&&_0x430d09['subType']==_0x153740))return _0x430d09[_0xf6ee('0x11')]?{}:void 0x0;}),_0x32f12d[_0xf6ee('0xc')][_0xf6ee('0xf')](_0x3addf3=>{if(_0xf6ee('0x1')==_0x3addf3[_0xf6ee('0x34')]||_0xf6ee('0x2')==_0x3addf3[_0xf6ee('0x34')]){const _0x520965=_0x3addf3[_0xf6ee('0x22')]();if(_0x520965&&_0x520965['is']('element',_0xf6ee('0x17')))return{'type':_0xf6ee('0x1')==_0x3addf3['type']?_0xf6ee('0x0'):_0xf6ee('0x56'),'element':_0x520965,'quantity':0x1};}}),_0x32f12d[_0xf6ee('0xc')]['registerDescriptionCallback'](_0x388d5d=>_0xf6ee('0x41')==_0x388d5d[_0xf6ee('0x34')]&&'convertInlineImageToBlock'==_0x388d5d[_0xf6ee('0x3f')]?{'type':'format','content':_0xf6ee('0x5f')}:_0xf6ee('0x41')==_0x388d5d['type']&&'convertBlockImageToInline'==_0x388d5d[_0xf6ee('0x3f')]?{'type':'format','content':_0xf6ee('0xb')}:void 0x0),_0x32f12d[_0xf6ee('0xc')][_0xf6ee('0xf')](_0x2d5e24=>{if(_0xf6ee('0x12')!=_0x2d5e24[_0xf6ee('0x34')])return;const {data:_0x44e9e7}=_0x2d5e24;if(!_0x44e9e7||_0xf6ee('0x23')!=_0x44e9e7[_0xf6ee('0x3a')])return;const _0x2e8932=_0x44e9e7['newValue'];return _0x2e8932?{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x166e26,_0xf6ee('0x21'),'\x22'+_0x2e8932+'\x22')}:{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x166e26,_0xf6ee('0x6'))};}),this[_0xf6ee('0x1a')]();}[_0xf6ee('0x1a')](){const _0x1c226b=this[_0xf6ee('0x55')],_0x3480d0=_0x1c226b[_0xf6ee('0x4')];_0x1c226b['plugins'][_0xf6ee('0x3e')](_0xf6ee('0x43'))['_descriptionFactory'][_0xf6ee('0xf')](_0x670637=>{if(_0xf6ee('0x41')!=_0x670637[_0xf6ee('0x34')]&&_0xf6ee('0x5a')!=_0x670637[_0xf6ee('0x34')])return;const {data:_0x213e77}=_0x670637;if(_0x213e77){if(_0xf6ee('0x3')==_0x213e77[_0xf6ee('0x19')]){const _0x240256=_0x213e77[_0xf6ee('0x7')][0x0][_0xf6ee('0x4f')];return _0x240256?{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x3480d0,_0xf6ee('0x21'),'\x22'+_0x240256+'\x22')}:{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x3480d0,_0xf6ee('0x6'))};}if('resizeImage'==_0x213e77[_0xf6ee('0x19')]){const _0x3a9437=_0x213e77[_0xf6ee('0x7')][0x0][_0xf6ee('0x5b')];return _0x3a9437?{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x3480d0,'*Set\x20image\x20width:*\x20%0',_0x3a9437)}:{'type':_0xf6ee('0x32'),'content':_0x178ef3(_0x3480d0,_0xf6ee('0x49'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x479b=['_descriptionFactory','discard','key','_registerLegacyDescription','format','type','_suggestionFactory','oldValue','plugins','src','newValue','formatInline','attribute','replaceImageSource','formatBlock','accept','registerCustomCallback','editor','afterInit','TrackChangesEditing','getSuggestionCallback','registerDescriptionCallback','get','locale','commandName','has','_enableDefaultAttributesIntegration','_handleLegacySuggestions','*Replace\x20image\x20URL*','ImageEditing'];(function(_0x1bbf31,_0x479b9d){const _0x5d35b8=function(_0x3b7357){while(--_0x3b7357){_0x1bbf31['push'](_0x1bbf31['shift']());}};_0x5d35b8(++_0x479b9d);}(_0x479b,0xd8));const _0x5d35=function(_0x1bbf31,_0x479b9d){_0x1bbf31=_0x1bbf31-0x0;let _0x5d35b8=_0x479b[_0x1bbf31];return _0x5d35b8;};import{Plugin as _0x12567a}from'ckeditor5/src/core.js';import{getTranslation as _0x22b8a8}from'../utils/common-translations.js';export default class st extends _0x12567a{[_0x5d35('0xc')](){if(!this[_0x5d35('0xb')][_0x5d35('0x2')][_0x5d35('0x13')](_0x5d35('0x17')))return;const _0x12c93e=this[_0x5d35('0xb')][_0x5d35('0x11')],_0x407d11=this[_0x5d35('0xb')]['plugins'][_0x5d35('0x10')]('TrackChangesEditing');_0x407d11[_0x5d35('0x14')]('replaceImageSource',[],[_0x5d35('0x3')]),_0x407d11[_0x5d35('0x18')][_0x5d35('0xf')](_0x1c0eeb=>{if(_0x5d35('0x6')!=_0x1c0eeb[_0x5d35('0x1d')])return;const {data:_0x57a95c}=_0x1c0eeb;return _0x57a95c&&_0x5d35('0x3')==_0x57a95c[_0x5d35('0x1a')]?_0x57a95c[_0x5d35('0x4')]&&_0x57a95c[_0x5d35('0x1')]?{'type':'format','content':_0x22b8a8(_0x12c93e,_0x5d35('0x16'))}:{'type':_0x5d35('0x1c'),'content':''}:void 0x0;}),this[_0x5d35('0x15')]();}['_handleLegacySuggestions'](){const _0xb86b0=this[_0x5d35('0xb')][_0x5d35('0x2')][_0x5d35('0x10')](_0x5d35('0xd'));_0xb86b0[_0x5d35('0x0')][_0x5d35('0xa')](_0x5d35('0x8'),_0x5d35('0x7'),_0x5d35('0x9'),_0xb86b0['_suggestionFactory'][_0x5d35('0xe')](_0x5d35('0x8'),null,_0x5d35('0x19'))),_0xb86b0['_suggestionFactory'][_0x5d35('0xa')]('formatBlock',_0x5d35('0x7'),_0x5d35('0x19'),_0xb86b0[_0x5d35('0x0')][_0x5d35('0xe')](_0x5d35('0x8'),null,_0x5d35('0x9'))),this[_0x5d35('0x1b')]();}[_0x5d35('0x1b')](){const _0x5b202e=this[_0x5d35('0xb')],_0x5a9737=_0x5b202e[_0x5d35('0x11')];_0x5b202e['plugins'][_0x5d35('0x10')]('TrackChangesEditing')['_descriptionFactory'][_0x5d35('0xf')](_0x49577b=>{if(_0x5d35('0x8')!=_0x49577b[_0x5d35('0x1d')]&&_0x5d35('0x5')!=_0x49577b[_0x5d35('0x1d')])return;const {data:_0x5ce6a6}=_0x49577b;if(!_0x5ce6a6||_0x5d35('0x7')!=_0x5ce6a6[_0x5d35('0x12')])return;return{'type':_0x5d35('0x1c'),'content':_0x22b8a8(_0x5a9737,'*Format:*\x20replace\x20image\x20URL')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4813=['setImageNaturalSizeAttributes','start','imageTypeBlock','selection','isBlockImage','registerDescriptionCallback','ImageStyleEditing','name','discardSuggestion','imageStylePreApply','isIntersecting','commands','_registerLegacyDescription','editor','from','document','getFirstRange','accept','registerCustomCallback','Users','_findSuggestions','findIndex','model','value','getClosestSelectedImageElement','insertion','getContainedElement','next','chain','subType','nodeAfter','FORMAT_SIDE_IMAGE','shouldConvertImageType','title','type','forEach','nodeBefore','side','imageStylePostApply','filter','TrackChangesEditing','formatInline','toLowerCase','join','formatBlock','commandReversedParams','end','commandParams','markBlockFormat','isInContent','convertInlineImageToBlock','imageStyle','has','isOwn','commandName','newRange','registerPostFixer','get','imageTypeInline','hasSuggestion','_suggestionFactory','_descriptionFactory','plugins','author','_splitMarkerName','length','suggestion','getSuggestionCallback','imageCaption','change','locale','markInlineFormat','isEqual','getSuggestion','ImageUtils','differ','refresh','afterInit','createRangeOn','isInlineImage'];(function(_0x14a5a2,_0x481390){const _0x2009c3=function(_0x5529fc){while(--_0x5529fc){_0x14a5a2['push'](_0x14a5a2['shift']());}};_0x2009c3(++_0x481390);}(_0x4813,0x69));const _0x2009=function(_0x14a5a2,_0x481390){_0x14a5a2=_0x14a5a2-0x0;let _0x2009c3=_0x4813[_0x14a5a2];return _0x2009c3;};import{Plugin as _0x1b2448}from'ckeditor5/src/core.js';import{uid as _0x52b936}from'ckeditor5/src/utils.js';import{getTranslation as _0x251003}from'../utils/common-translations.js';export default class nt extends _0x1b2448{[_0x2009('0x34')](){const _0x2ba67d=this[_0x2009('0x44')];if(!_0x2ba67d[_0x2009('0x25')][_0x2009('0x1b')]('ImageStyleEditing'))return;const _0x4f0967=_0x2ba67d['plugins'][_0x2009('0x20')](_0x2009('0xf')),_0x2b5724=_0x2ba67d[_0x2009('0x25')][_0x2009('0x20')](_0x2009('0x31')),_0x38cf6e={};_0x4f0967['enableCommand'](_0x2009('0x1a'),(_0x3843b6,_0x3fb6c3)=>{const _0x38763d=_0x2ba67d['plugins'][_0x2009('0x20')](_0x2009('0x4a'))['me'],_0x2adaa3=_0x2ba67d['commands'][_0x2009('0x20')](_0x2009('0x1a'));let _0x5443c0=_0x2b5724[_0x2009('0x4f')](_0x2ba67d['model'][_0x2009('0x46')][_0x2009('0x3a')]),_0x161fd9=_0x2ba67d['model'][_0x2009('0x35')](_0x5443c0),_0x113bd8=_0x2adaa3[_0x2009('0x4e')];if(_0x113bd8==_0x3fb6c3[_0x2009('0x4e')])return;const _0x4442c8={'commandName':_0x2009('0x1a'),'commandParams':[_0x3fb6c3],'formatGroupId':_0x52b936()};_0x2ba67d[_0x2009('0x4d')][_0x2009('0x2c')](()=>{if(_0x4f0967['getSuggestions']()[_0x2009('0xe')](_0x1242ab=>_0x1242ab[_0x2009('0x18')]&&_0x38763d==_0x1242ab[_0x2009('0x26')]&&(_0x2009('0x13')==_0x1242ab['type']||_0x2009('0x10')==_0x1242ab[_0x2009('0x9')])&&(_0x2009('0x40')==_0x1242ab[_0x2009('0x4')]||'imageStylePostApply'==_0x1242ab['subType'])&&_0x1242ab['getFirstRange']()['isEqual'](_0x161fd9))[_0x2009('0xa')](_0x25fd0d=>_0x4f0967[_0x2009('0x3f')](_0x25fd0d['head'])),_0x5443c0=_0x2b5724[_0x2009('0x4f')](_0x2ba67d['model'][_0x2009('0x46')][_0x2009('0x3a')]),_0x161fd9=_0x2ba67d[_0x2009('0x4d')]['createRangeOn'](_0x5443c0),_0x2adaa3[_0x2009('0x33')](),_0x2ba67d[_0x2009('0x42')][_0x2009('0x20')](_0x2009('0x21'))[_0x2009('0x33')](),_0x2ba67d[_0x2009('0x42')][_0x2009('0x20')](_0x2009('0x39'))[_0x2009('0x33')](),_0x113bd8=_0x2adaa3[_0x2009('0x4e')],_0x113bd8!=_0x3fb6c3[_0x2009('0x4e')])return _0x2b5724[_0x2009('0x36')](_0x5443c0)&&_0x2adaa3[_0x2009('0x7')](_0x3fb6c3[_0x2009('0x4e')],_0x5443c0)?(_0x3843b6({..._0x3fb6c3,'setImageSizes':!0x1}),_0x5443c0=_0x2b5724[_0x2009('0x4f')](_0x2ba67d['model'][_0x2009('0x46')][_0x2009('0x3a')]),void _0x4f0967[_0x2009('0x17')](_0x5443c0,{..._0x4442c8,'commandReversedParams':[{'value':_0x113bd8||null,'setImageSizes':!0x1}]},[],_0x2009('0x40'))):void(_0x2b5724[_0x2009('0x3b')](_0x5443c0)?_0x4f0967['markBlockFormat'](_0x5443c0,_0x4442c8,[],'imageStylePostApply'):_0x4f0967[_0x2009('0x2e')](_0x161fd9,_0x4442c8,_0x2009('0xd')));});});for(const _0x31d0b6 of _0x2ba67d[_0x2009('0x25')][_0x2009('0x20')](_0x2009('0x3d'))['normalizedStyles'])_0x38cf6e[_0x31d0b6[_0x2009('0x3e')]]=_0x31d0b6[_0x2009('0x8')][_0x2009('0x11')]();_0x4f0967['_suggestionFactory'][_0x2009('0x49')]('formatBlock','imageStylePreApply',_0x2009('0x12'),()=>!0x1),_0x4f0967[_0x2009('0x23')]['registerCustomCallback'](_0x2009('0x13'),'imageStylePostApply','join',()=>!0x1),_0x4f0967[_0x2009('0x23')][_0x2009('0x49')](_0x2009('0x10'),'imageStylePostApply',_0x2009('0x12'),()=>!0x1),_0x4f0967[_0x2009('0x23')][_0x2009('0x49')]('formatBlock',_0x2009('0x40'),'accept',([_0x4a089c])=>{_0x2b5724[_0x2009('0x37')](_0x4a089c[_0x2009('0x1')]());}),_0x4f0967[_0x2009('0x23')][_0x2009('0x49')](_0x2009('0x13'),'imageStylePreApply','discard',(_0x312b0e,_0x3c03d3)=>{_0x4f0967[_0x2009('0x23')][_0x2009('0x2a')](_0x2009('0x13'),'',_0x2009('0x48'))(_0x312b0e,{'commandName':_0x3c03d3['commandName'],'commandParams':_0x3c03d3[_0x2009('0x14')]});}),_0x4f0967[_0x2009('0x23')]['registerCustomCallback'](_0x2009('0x13'),_0x2009('0x40'),_0x2009('0x3'),function(_0x331439,_0x227bef){if(_0x3915c8(_0x331439,_0x227bef))return[_0x331439,_0x227bef];if(_0x3915c8(_0x227bef,_0x331439))return[_0x227bef,_0x331439];return null;});const _0x116a3b=[{'type':_0x2009('0x13'),'subType':_0x2009('0x40')},{'type':_0x2009('0x0'),'subType':'imageCaption'},{'type':_0x2009('0x13'),'subType':'convertInlineImageToBlock'},{'type':_0x2009('0x0'),'subType':_0x2009('0x19')}];function _0x3915c8(_0x156482,_0x4e560e){const _0x5a61a8=_0x116a3b[_0x2009('0x4c')](({type:_0x5538ea,subType:_0x571abb})=>_0x156482[_0x2009('0x9')]==_0x5538ea&&_0x156482[_0x2009('0x4')]==_0x571abb),_0x24544a=_0x116a3b['findIndex'](({type:_0x194e8d,subType:_0x28caa0})=>_0x4e560e[_0x2009('0x9')]==_0x194e8d&&_0x4e560e['subType']==_0x28caa0);if(_0x5a61a8<0x0||_0x24544a<0x0)return!0x1;const _0x2b7353=_0x156482[_0x2009('0x47')](),_0x13a44c=_0x4e560e[_0x2009('0x47')]();if((0x0==_0x5a61a8||0x1==_0x5a61a8)&&0x2==_0x24544a&&_0x2b7353[_0x2009('0x41')](_0x13a44c))return!0x0;if(0x2==_0x5a61a8&&0x3==_0x24544a){const _0x7f538d=_0x4f0967[_0x2009('0x4b')](_0x2b7353,_0x2009('0x0'))[_0x2009('0xe')](({suggestion:_0x90d5c2,meta:_0x3d5182})=>_0x3d5182[_0x2009('0x1c')]&&'convertInlineImageToBlock'==_0x90d5c2[_0x2009('0x4')]);if(_0x7f538d['length']>0x1&&_0x13a44c[_0x2009('0x15')][_0x2009('0x2f')](_0x2b7353[_0x2009('0x38')]))return!0x0;if(0x1==_0x7f538d[_0x2009('0x28')]&&(_0x2b7353[_0x2009('0x38')][_0x2009('0x2f')](_0x13a44c[_0x2009('0x15')])||_0x2b7353[_0x2009('0x15')]['isEqual'](_0x13a44c[_0x2009('0x38')])))return!0x0;}if(0x3==_0x5a61a8&&0x3==_0x24544a&&_0x2b7353[_0x2009('0x38')]['isBefore'](_0x13a44c[_0x2009('0x38')])){const _0x19837e=_0x2b7353['end'][_0x2009('0x5')],_0x4d67b3=_0x13a44c['start'][_0x2009('0xb')];return _0x2b5724[_0x2009('0x3b')](_0x19837e)&&_0x19837e===_0x4d67b3;}return!0x1;}_0x2ba67d[_0x2009('0x4d')][_0x2009('0x46')][_0x2009('0x1f')](()=>{let _0x5a61db=!0x1;const _0x22c953=Array[_0x2009('0x45')](_0x2ba67d[_0x2009('0x4d')]['document'][_0x2009('0x32')]['getChangedMarkers']());for(const {name:_0x34ed0d,data:_0x4acae6}of _0x22c953){const {group:_0xe16219,type:_0x533fde,subType:_0x13dfc2,id:_0x30687f}=_0x4f0967[_0x2009('0x27')](_0x34ed0d);if(_0x2009('0x29')==_0xe16219&&_0x4f0967[_0x2009('0x22')](_0x30687f)){if(_0x2009('0x13')==_0x533fde&&('imageStylePreApply'==_0x13dfc2||_0x2009('0xd')==_0x13dfc2)){const _0xa664bf=_0x4f0967[_0x2009('0x30')](_0x30687f);if(_0x4acae6['newRange']){const _0x55a483=_0xa664bf[_0x2009('0x47')]()[_0x2009('0x1')]();if(_0x2b5724[_0x2009('0x3b')](_0x55a483))continue;_0x4f0967[_0x2009('0x3f')](_0xa664bf),_0x5a61db=!0x0;}}if(_0x2009('0x0')==_0x533fde&&_0x2009('0x2b')==_0x13dfc2&&!_0x4acae6[_0x2009('0x1e')]){const _0x1b24db=_0x4f0967['getSuggestion'](_0x30687f);_0x1b24db[_0x2009('0x2')]&&_0x1b24db[_0x2009('0x2')]['isInContent']&&(_0x4f0967[_0x2009('0x3f')](_0x1b24db['next']),_0x5a61db=!0x0);}}}return _0x5a61db;}),this[_0x2009('0x43')](_0x38cf6e);}[_0x2009('0x43')](_0x1efce9){const _0x21f4a8=this['editor'],_0x4eb660=_0x21f4a8[_0x2009('0x2d')];_0x21f4a8[_0x2009('0x25')][_0x2009('0x20')](_0x2009('0xf'))[_0x2009('0x24')][_0x2009('0x3c')](_0x49dff0=>{if('formatBlock'!=_0x49dff0[_0x2009('0x9')]&&_0x2009('0x10')!=_0x49dff0[_0x2009('0x9')])return;const {data:_0x552340}=_0x49dff0;if(!_0x552340||_0x2009('0x1a')!=_0x552340[_0x2009('0x1d')])return;const _0x3508f7=_0x552340[_0x2009('0x16')][0x0][_0x2009('0x4e')];return _0x4aa37d(_0x2009('0xc')===_0x3508f7?_0x251003(_0x4eb660,_0x2009('0x6')):_0x1efce9[_0x3508f7]||_0x3508f7);function _0x4aa37d(_0x16cca1){return{'type':'format','content':_0x251003(_0x4eb660,'*Format:*\x20%0',_0x16cca1)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a58=['forEach','value','_handleImportedData','afterInit','high','TrackChangesEditing','plugins','collaboration_features','trackChanges','track_changes','bind','commands','dataInsert','editor','get','lowest','execute','_trackChangesValueDuringImport','listenTo','_trackChangesExecuted','enableCommand','_setSuggestionData','importWord','Users'];(function(_0x4e3c81,_0x1a58eb){const _0x32f58c=function(_0x272128){while(--_0x272128){_0x4e3c81['push'](_0x4e3c81['shift']());}};_0x32f58c(++_0x1a58eb);}(_0x1a58,0x1ac));const _0x32f5=function(_0x4e3c81,_0x1a58eb){_0x4e3c81=_0x4e3c81-0x0;let _0x32f58c=_0x1a58[_0x4e3c81];return _0x32f58c;};import{Plugin as _0x36e3bd}from'ckeditor5/src/core.js';export default class ot extends _0x36e3bd{constructor(_0x4e71f4){super(_0x4e71f4),this[_0x32f5('0x15')]=!0x1,this[_0x32f5('0x17')]=!0x1;}[_0x32f5('0x7')](){const _0x486f53=this[_0x32f5('0x11')],_0x4f836b=_0x486f53[_0x32f5('0xf')][_0x32f5('0x12')](_0x32f5('0x2')),_0x53c105=_0x486f53[_0x32f5('0xf')][_0x32f5('0x12')]('trackChanges');_0x4f836b&&(_0x4f836b['on'](_0x32f5('0x14'),(_0x2e2d6f,[,_0x2c7e04])=>{this[_0x32f5('0x15')]=_0x53c105['value'],_0x2c7e04[_0x32f5('0xb')][_0x32f5('0xd')]=!this[_0x32f5('0x15')];},{'priority':_0x32f5('0x8')}),this[_0x32f5('0x16')](_0x4f836b,_0x32f5('0x10'),this[_0x32f5('0x6')][_0x32f5('0xe')](this)),this[_0x32f5('0x16')](_0x4f836b,'dataInsert',()=>{this[_0x32f5('0x17')]&&(_0x53c105[_0x32f5('0x14')](),this[_0x32f5('0x17')]=!0x1);},{'priority':_0x32f5('0x13')}),_0x486f53[_0x32f5('0xa')][_0x32f5('0x12')](_0x32f5('0x9'))[_0x32f5('0x0')](_0x32f5('0x2')));}['_handleImportedData'](_0x32df67,_0x41f08a){const {suggestions:_0x383e96}=_0x41f08a,_0x3d55b2=this[_0x32f5('0x11')][_0x32f5('0xf')][_0x32f5('0x12')](_0x32f5('0xc')),_0x1d9623=_0x3d55b2[_0x32f5('0x5')];this[_0x32f5('0x15')]!==_0x1d9623&&(_0x3d55b2[_0x32f5('0x14')](),this[_0x32f5('0x17')]=!0x0),_0x383e96&&_0x383e96[_0x32f5('0x4')](({id:_0x3373e3,type:_0x29f0b4,author:_0x54ffc4,created_at:_0x41289a})=>{const _0x13cd0b={'id':_0x3373e3,'type':_0x29f0b4,'authorId':this[_0x32f5('0x11')][_0x32f5('0xa')][_0x32f5('0x12')](_0x32f5('0x3'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x54ffc4,'createdAt':_0x41289a?new Date(_0x41289a):new Date(),'source':'importWord'}}};this[_0x32f5('0x11')][_0x32f5('0xa')][_0x32f5('0x12')](_0x32f5('0x9'))[_0x32f5('0x1')](_0x13cd0b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43c3=['plugins','_enableDefaultAttributesIntegration','blockIndent','*Outdent:*\x20%0','enableCommand','locale','registerDescriptionCallback','indentBlock','get','formatBlock','format','commandName','getItemLabel','TrackChangesEditing','_registerLegacyDescription','outdent','registerAttributeLabel','editor','outdentBlock','_registerBlockAttribute','_descriptionFactory','has','afterInit'];(function(_0x1cda33,_0x43c30e){const _0x535d40=function(_0x461917){while(--_0x461917){_0x1cda33['push'](_0x1cda33['shift']());}};_0x535d40(++_0x43c30e);}(_0x43c3,0xdd));const _0x535d=function(_0x1cda33,_0x43c30e){_0x1cda33=_0x1cda33-0x0;let _0x535d40=_0x43c3[_0x1cda33];return _0x535d40;};import{Plugin as _0x432d6b}from'ckeditor5/src/core.js';import{getTranslation as _0x18f202}from'../utils/common-translations.js';export default class rt extends _0x432d6b{[_0x535d('0x8')](){const _0xc714f5=this[_0x535d('0x3')],_0x4e3a06=_0xc714f5[_0x535d('0x9')][_0x535d('0x11')](_0x535d('0x16'));if(_0xc714f5[_0x535d('0x9')][_0x535d('0x7')]('IndentEditing')&&(_0x4e3a06[_0x535d('0xd')]('indent'),_0x4e3a06[_0x535d('0xd')](_0x535d('0x1'))),_0xc714f5[_0x535d('0x9')]['has']('IndentBlock'))for(const _0x3ad4b9 of[_0x535d('0x10'),_0x535d('0x4')])_0x4e3a06[_0x535d('0xa')](_0x3ad4b9);const _0x4944bb=_0xc714f5[_0x535d('0xe')];_0x4e3a06[_0x535d('0x5')](_0x535d('0xb')),_0x4e3a06[_0x535d('0x6')][_0x535d('0x2')](_0x535d('0xb'),_0x18f202(_0x4944bb,'FORMAT_INDENT')),this[_0x535d('0x0')]();}['_registerLegacyDescription'](){const _0x4b7815=this[_0x535d('0x3')],_0x147d60=_0x4b7815[_0x535d('0xe')],_0x40023b=_0x4b7815[_0x535d('0x9')][_0x535d('0x11')](_0x535d('0x16'));_0x40023b[_0x535d('0x6')][_0x535d('0xf')](_0x4d0726=>{if(_0x535d('0x12')!=_0x4d0726['type'])return;const {data:_0x2e03b1}=_0x4d0726;if(!_0x2e03b1)return;if(_0x535d('0x10')!=_0x2e03b1[_0x535d('0x14')]&&_0x535d('0x4')!=_0x2e03b1['commandName'])return;const _0x54a96b=_0x4d0726['getItems']()[0x0],_0x368810=_0x40023b['_descriptionFactory'][_0x535d('0x15')](_0x54a96b);return _0x535d('0x10')==_0x2e03b1[_0x535d('0x14')]?{'type':_0x535d('0x13'),'content':_0x18f202(_0x147d60,'*Indent:*\x20%0',_0x368810)}:_0x535d('0x4')==_0x2e03b1[_0x535d('0x14')]?{'type':_0x535d('0x13'),'content':_0x18f202(_0x147d60,_0x535d('0xc'),_0x368810)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b6b=['input','TrackChangesEditing','editor','plugins','enableCommand','get','init'];(function(_0x41b0ef,_0x4b6b38){var _0x3a46bf=function(_0x1dd19f){while(--_0x1dd19f){_0x41b0ef['push'](_0x41b0ef['shift']());}};_0x3a46bf(++_0x4b6b38);}(_0x4b6b,0x178));var _0x3a46=function(_0x41b0ef,_0x4b6b38){_0x41b0ef=_0x41b0ef-0x0;var _0x3a46bf=_0x4b6b[_0x41b0ef];return _0x3a46bf;};import{Plugin as _0x78b771}from'ckeditor5/src/core.js';import{Input as _0x39692f}from'ckeditor5/src/typing.js';export default class at extends _0x78b771{static get['requires'](){return[_0x39692f];}[_0x3a46('0x1')](){this[_0x3a46('0x4')][_0x3a46('0x5')][_0x3a46('0x0')](_0x3a46('0x3'))[_0x3a46('0x6')](_0x3a46('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c64=['change','element','ELEMENT_LIST_ITEM','registerDescriptionCallback','listIndent','end','numberedList','ELEMENT_NUMBERED_LIST','editor','numbered','markBlockFormat','commandName','todoList','nextSibling','previousSibling','document','value','paragraph','parent','TrackChangesEditing','format','blockName','LegacyTodoListEditing','listType','createPositionAt','isObject','model','*Indent:*\x20%0','*Outdent:*\x20%0','selection','listItem','todo','commands','_selectedElements','createRange','plugins','_descriptionFactory','execute','todoListChecked','getSelectedBlocks','*Check\x20item*','formatBlock','List','*Change\x20to:*\x20%0','findIndex','enableCommand','LegacyListEditing','checkTodoList','*Uncheck\x20item*','before','add','from','get','bulletedList','getAttribute','forceValue','outdentList','locale','schema','slice','has','type','name','indentList','replace'];(function(_0x10dec6,_0x2c6496){const _0x3eefe8=function(_0x5034d4){while(--_0x5034d4){_0x10dec6['push'](_0x10dec6['shift']());}};_0x3eefe8(++_0x2c6496);}(_0x2c64,0xaa));const _0x3eef=function(_0x10dec6,_0x2c6496){_0x10dec6=_0x10dec6-0x0;let _0x3eefe8=_0x2c64[_0x10dec6];return _0x3eefe8;};import{Plugin as _0x9af38c}from'ckeditor5/src/core.js';import{getTranslation as _0xebc3d7}from'../utils/common-translations.js';export default class ut extends _0x9af38c{['afterInit'](){const _0x2fbec9=this[_0x3eef('0x21')],_0x2d9fff=_0x2fbec9[_0x3eef('0x11')];if(!_0x2fbec9['plugins'][_0x3eef('0x14')](_0x3eef('0x6')))return;const _0x23e6c1=_0x2fbec9[_0x3eef('0x3c')][_0x3eef('0xc')](_0x3eef('0x2c')),_0x5a7e67=_0x2fbec9[_0x3eef('0x3c')][_0x3eef('0x14')](_0x3eef('0x2f'));function _0x164f85(_0x1a383b){return()=>{const _0x32868e=_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x28')][_0x3eef('0x36')],_0x321fed=_0x2fbec9[_0x3eef('0x39')][_0x3eef('0xc')](_0x1a383b);if(_0x321fed[_0x3eef('0x29')])return void _0x2fbec9[_0x3eef('0x3e')](_0x3eef('0x2a'),{});const _0x336fcf=_0x1a383b[_0x3eef('0x13')](0x0,-0x4),_0x4a8012=function(_0x559307,_0x4464dc,_0x5d2c5b){let _0x158f93=Array[_0x3eef('0xb')](_0x559307)['filter'](_0x5505c0=>function(_0x312d92,_0x1f0acf){return _0x1f0acf['checkChild'](_0x312d92[_0x3eef('0x2b')],_0x3eef('0x37'))&&!_0x1f0acf[_0x3eef('0x32')](_0x312d92);}(_0x5505c0,_0x5d2c5b));_0x158f93=_0x158f93['filter'](_0x15fac7=>!_0x15fac7['is']('element','listItem')||_0x15fac7['getAttribute'](_0x3eef('0x30'))!=_0x4464dc);const _0x571e05=new Set();for(const _0x39dbbd of _0x158f93)_0x39dbbd['is'](_0x3eef('0x1a'),_0x3eef('0x37'))?_0x571e05[_0x3eef('0xa')](ne(_0x39dbbd)):_0x571e05[_0x3eef('0xa')](_0x39dbbd);return Array[_0x3eef('0xb')](_0x571e05);}(_0x32868e[_0x3eef('0x40')](),_0x336fcf,_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x12')]);_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x19')](()=>{for(const _0x59ff88 of _0x4a8012)_0x23e6c1[_0x3eef('0x23')](_0x59ff88,{'commandName':_0x1a383b,'commandParams':[{'forceValue':!_0x321fed[_0x3eef('0x29')]}],'formatGroupId':_0x3eef('0x2e')},oe(_0x59ff88));});};}function _0x52268c(_0x5d3d56){return()=>{const _0x51a934=function(_0x36e1ac){let _0x1b127c=Array['from'](_0x36e1ac);const _0x5524f7=_0x1b127c[_0x3eef('0x4')](_0x23ac6d=>_0x3eef('0x37')!=_0x23ac6d[_0x3eef('0x16')]);return _0x5524f7>-0x1&&(_0x1b127c=_0x1b127c[_0x3eef('0x13')](0x0,_0x5524f7)),_0x1b127c;}(_0x2fbec9[_0x3eef('0x33')]['document'][_0x3eef('0x36')][_0x3eef('0x40')]()),_0x37b09d=_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x3b')](_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x31')](_0x51a934[0x0],_0x3eef('0x9')),_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x31')](_0x51a934[_0x51a934['length']-0x1],_0x3eef('0x1e')));_0x2fbec9[_0x3eef('0x33')][_0x3eef('0x19')](()=>{_0x23e6c1[_0x3eef('0x23')](_0x37b09d,{'commandName':_0x5d3d56,'commandParams':[],'formatGroupId':_0x3eef('0x1d')},function(_0x112ba6){const _0x11aa00=new Set();for(const _0x478752 of _0x112ba6){let _0x248674=_0x478752[_0x3eef('0x26')];for(;_0x248674&&_0x248674[_0x3eef('0xe')](_0x3eef('0x1d'))>_0x478752[_0x3eef('0xe')](_0x3eef('0x1d'));)_0x11aa00[_0x3eef('0xa')](_0x248674),_0x248674=_0x248674[_0x3eef('0x26')];}return Array[_0x3eef('0xb')](_0x11aa00);}(_0x51a934));});};}_0x23e6c1['enableCommand']('numberedList',_0x164f85(_0x3eef('0x1f'))),_0x23e6c1['enableCommand'](_0x3eef('0xd'),_0x164f85(_0x3eef('0xd'))),_0x5a7e67&&_0x23e6c1['enableCommand'](_0x3eef('0x25'),_0x164f85(_0x3eef('0x25'))),_0x23e6c1[_0x3eef('0x5')](_0x3eef('0x17'),_0x52268c(_0x3eef('0x17'))),_0x23e6c1[_0x3eef('0x5')](_0x3eef('0x10'),_0x52268c(_0x3eef('0x10'))),_0x5a7e67&&_0x23e6c1['enableCommand'](_0x3eef('0x7'),()=>{const _0x1b67db=_0x2fbec9[_0x3eef('0x39')][_0x3eef('0xc')](_0x3eef('0x7')),_0x5b4e52=Array[_0x3eef('0xb')](_0x1b67db[_0x3eef('0x3a')]);_0x5b4e52['filter'](_0x4b5984=>_0x4b5984[_0x3eef('0xe')](_0x3eef('0x3f'))!=_0x1b67db[_0x3eef('0x29')]),_0x2fbec9['model'][_0x3eef('0x19')](()=>{for(const _0x25f9a3 of _0x5b4e52)_0x23e6c1['markBlockFormat'](_0x25f9a3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b67db[_0x3eef('0x29')]}]});});}),_0x23e6c1[_0x3eef('0x3d')]['registerElementLabel'](_0x3eef('0x37'),_0x3faa67=>_0xebc3d7(_0x2d9fff,_0x3eef('0x1b'),_0x3faa67)),_0x23e6c1[_0x3eef('0x3d')][_0x3eef('0x1c')](_0x351df7=>{if(_0x3eef('0x1')!=_0x351df7['type']&&'formatInline'!=_0x351df7[_0x3eef('0x15')])return;const {data:_0x54068e}=_0x351df7;if(_0x54068e){if(_0x3eef('0x1f')==_0x54068e[_0x3eef('0x24')]||_0x3eef('0xd')==_0x54068e[_0x3eef('0x24')]||_0x3eef('0x25')==_0x54068e[_0x3eef('0x24')])switch(_0x54068e[_0x3eef('0x24')][_0x3eef('0x18')](_0x3eef('0x2'),'')){case'bulleted':return _0x47d7e2(_0xebc3d7(_0x2d9fff,'ELEMENT_BULLETED_LIST'));case _0x3eef('0x22'):return _0x47d7e2(_0xebc3d7(_0x2d9fff,_0x3eef('0x20')));case _0x3eef('0x38'):return _0x47d7e2(_0xebc3d7(_0x2d9fff,'ELEMENT_TODO_LIST'));}if('indentList'==_0x54068e[_0x3eef('0x24')])return{'type':'format','content':_0xebc3d7(_0x2d9fff,_0x3eef('0x34'),_0xebc3d7(_0x2d9fff,_0x3eef('0x1b')))};if(_0x3eef('0x10')==_0x54068e[_0x3eef('0x24')])return{'type':_0x3eef('0x2d'),'content':_0xebc3d7(_0x2d9fff,_0x3eef('0x35'),_0xebc3d7(_0x2d9fff,'ELEMENT_LIST_ITEM'))};if(_0x3eef('0x7')==_0x54068e['commandName'])return _0x54068e['commandParams'][0x0][_0x3eef('0xf')]?{'type':_0x3eef('0x2d'),'content':_0xebc3d7(_0x2d9fff,_0x3eef('0x0'))}:{'type':_0x3eef('0x2d'),'content':_0xebc3d7(_0x2d9fff,_0x3eef('0x8'))};}function _0x47d7e2(_0x4d5a52){return{'type':_0x3eef('0x2d'),'content':_0xebc3d7(_0x2d9fff,_0x3eef('0x3'),_0x4d5a52)};}});}}function ne(_0x4f053d){const _0x18e01b=_0x4f053d[_0x3eef('0xe')]('listIndent');if(0x0==_0x18e01b)return _0x4f053d;let _0x243b6b=_0x4f053d;for(;_0x4f053d[_0x3eef('0x27')]&&_0x4f053d[_0x3eef('0x27')]['is'](_0x3eef('0x1a'),_0x3eef('0x37'));){const _0x205ba4=_0x4f053d[_0x3eef('0x27')]['getAttribute'](_0x3eef('0x1d'));if(_0x205ba4==_0x18e01b)_0x243b6b=_0x4f053d[_0x3eef('0x27')];else{if(_0x205ba4<_0x18e01b)break;}_0x4f053d=_0x4f053d[_0x3eef('0x27')];}return _0x243b6b;}function oe(_0x1ef524){const _0x2caf19=[];if(_0x1ef524['is']('element',_0x3eef('0x37'))&&_0x1ef524['getAttribute']('listIndent')>0x0){let _0x2cf45d=_0x1ef524['nextSibling'];for(;_0x2cf45d&&_0x3eef('0x37')==_0x2cf45d[_0x3eef('0x16')]&&_0x2cf45d[_0x3eef('0xe')](_0x3eef('0x1d'))==_0x1ef524[_0x3eef('0xe')](_0x3eef('0x1d'));)_0x2caf19['push'](_0x2cf45d),_0x2cf45d=_0x2cf45d[_0x3eef('0x26')];}return _0x2caf19;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf6=['from','LegacyListPropertiesEditing','length','_getSuggestionBlocks','get','plugins','*Format:*\x20set\x20order\x20to\x20regular','change','map','reversed','backward','config','formatBlock','bind','getSiblingNodes','listStyle','LegacyListUtils','_getTranslationKeyForListStyle','listStart','commandParams','TrackChangesEditing','listReversed','handleListReversedCommand','editor','replace','format','handleDescriptions','getAttribute','numbered','createPositionAt','element','_LIST_','markMultiRangeBlockFormat','selection','type','model','list.properties','before','createRange','listType','toUpperCase','getSelectedBlocks','styles','listItem','forward','parent','ELEMENT_','enableCommand','locale','document','handleListStyleCommand','_getSuggestionBlocksForListStyle','startIndex','filter','flat','handleListStartCommand','unshift','getFirstPosition','_descriptionFactory'];(function(_0x1d22d5,_0x3bf6d1){const _0x292337=function(_0x30aa98){while(--_0x30aa98){_0x1d22d5['push'](_0x1d22d5['shift']());}};_0x292337(++_0x3bf6d1);}(_0x3bf6,0xde));const _0x2923=function(_0x1d22d5,_0x3bf6d1){_0x1d22d5=_0x1d22d5-0x0;let _0x292337=_0x3bf6[_0x1d22d5];return _0x292337;};import{Plugin as _0x25ea0b}from'ckeditor5/src/core.js';import{getTranslation as _0x2e044e}from'../utils/common-translations.js';export default class K extends _0x25ea0b{['afterInit'](){if(!this[_0x2923('0x25')]['plugins']['has'](_0x2923('0xf')))return;const _0x4502d4=this[_0x2923('0x25')][_0x2923('0x19')][_0x2923('0x12')](_0x2923('0x32')),_0x25531c=this[_0x2923('0x25')][_0x2923('0x13')][_0x2923('0x12')](_0x2923('0x22'));_0x4502d4[_0x2923('0x38')]&&_0x25531c[_0x2923('0x2')](_0x2923('0x1d'),this[_0x2923('0x5')]['bind'](this)),_0x4502d4[_0x2923('0x17')]&&_0x25531c[_0x2923('0x2')](_0x2923('0x23'),this[_0x2923('0x24')][_0x2923('0x1b')](this)),_0x4502d4[_0x2923('0x7')]&&_0x25531c[_0x2923('0x2')](_0x2923('0x20'),this[_0x2923('0xa')][_0x2923('0x1b')](this)),_0x25531c[_0x2923('0xd')]['registerDescriptionCallback'](this[_0x2923('0x28')][_0x2923('0x1b')](this));}[_0x2923('0x5')](_0x9e6bc3,_0x5de27b={}){const _0x23d8e1=this[_0x2923('0x25')]['plugins'][_0x2923('0x12')](_0x2923('0x22')),_0x1ff74f=this[_0x2923('0x6')]();this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x15')](()=>{_0x23d8e1[_0x2923('0x2e')](_0x1ff74f,{'commandName':_0x2923('0x1d'),'commandParams':[{'type':_0x5de27b[_0x2923('0x30')]}],'formatGroupId':_0x2923('0x1d')});});}[_0x2923('0x24')](_0x57cbff,_0x19437e={}){const _0x291589=this[_0x2923('0x25')][_0x2923('0x13')][_0x2923('0x12')]('TrackChangesEditing'),_0x1904d0=this[_0x2923('0x11')](_0x37cb91=>_0x37cb91['is'](_0x2923('0x2c'),_0x2923('0x39'))&&_0x2923('0x2a')===_0x37cb91[_0x2923('0x29')](_0x2923('0x35')));if(_0x1904d0[_0x2923('0x10')]<0x1)return;const _0x414e01=_0x1904d0['map'](_0x4859de=>this[_0x2923('0x25')]['model'][_0x2923('0x34')](this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x2b')](_0x4859de,'before'),this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x2b')](_0x4859de,0x0)));this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x15')](()=>{_0x291589[_0x2923('0x2e')](_0x414e01,{'commandName':'listReversed','commandParams':[{'reversed':_0x19437e[_0x2923('0x17')]}],'formatGroupId':_0x2923('0x23')});});}[_0x2923('0xa')](_0x4ce998,_0x1d5407={}){const _0x37947a=this['editor'][_0x2923('0x13')]['get'](_0x2923('0x22')),_0x14fbdb=this['_getSuggestionBlocks'](_0x6b2f80=>_0x6b2f80['is']('element',_0x2923('0x39'))&&_0x2923('0x2a')===_0x6b2f80[_0x2923('0x29')](_0x2923('0x35')));if(_0x14fbdb[_0x2923('0x10')]<0x1)return;const _0x48770c=_0x14fbdb[_0x2923('0x16')](_0x369ff5=>this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x34')](this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x2b')](_0x369ff5,_0x2923('0x33')),this['editor']['model'][_0x2923('0x2b')](_0x369ff5,0x0)));this['editor'][_0x2923('0x31')][_0x2923('0x15')](()=>{_0x37947a['markMultiRangeBlockFormat'](_0x48770c,{'commandName':_0x2923('0x20'),'commandParams':[{'startIndex':_0x1d5407[_0x2923('0x7')]}],'formatGroupId':_0x2923('0x20')});});}[_0x2923('0x28')](_0x2af56b){if(_0x2923('0x1a')!=_0x2af56b[_0x2923('0x30')]&&'formatInline'!=_0x2af56b[_0x2923('0x30')])return;const _0x39e8c4=this[_0x2923('0x25')][_0x2923('0x3')],{data:_0x488b7f}=_0x2af56b;if(!_0x488b7f)return;let _0x24ecd9,_0x3365b6;switch(_0x488b7f['commandName']){case _0x2923('0x1d'):_0x24ecd9='*Change\x20to:*\x20%0',_0x3365b6={'type':_0x2923('0x27'),'content':_0x2e044e(_0x39e8c4,_0x24ecd9,_0x2e044e(_0x39e8c4,this[_0x2923('0x1f')](_0x488b7f[_0x2923('0x21')][0x0][_0x2923('0x30')])))};break;case _0x2923('0x23'):_0x24ecd9=_0x488b7f[_0x2923('0x21')][0x0][_0x2923('0x17')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x2923('0x14'),_0x3365b6={'type':_0x2923('0x27'),'content':_0x2e044e(_0x39e8c4,_0x24ecd9)};break;case _0x2923('0x20'):_0x24ecd9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3365b6={'type':_0x2923('0x27'),'content':_0x2e044e(_0x39e8c4,_0x24ecd9,_0x488b7f[_0x2923('0x21')][0x0][_0x2923('0x7')])};}return _0x3365b6;}['_getSuggestionBlocksForListStyle'](){var _0x52761a,_0x49fd1d,_0xb26a1e,_0x42cff1;const _0x15fff9=this[_0x2923('0x25')][_0x2923('0x13')][_0x2923('0x12')](_0x2923('0x1e'));let _0x19e58c=Array[_0x2923('0xe')](this[_0x2923('0x25')]['model'][_0x2923('0x4')][_0x2923('0x2f')][_0x2923('0x37')]());return(null===(_0x52761a=_0x19e58c[0x0])||void 0x0===_0x52761a?void 0x0:_0x52761a['is'](_0x2923('0x2c'),_0x2923('0x39')))&&_0x19e58c[_0x2923('0xb')](..._0x15fff9['getSiblingNodes'](this[_0x2923('0x25')][_0x2923('0x31')]['document'][_0x2923('0x2f')][_0x2923('0xc')](),_0x2923('0x18'))),(null===(_0x49fd1d=_0x19e58c[_0x19e58c['length']-0x1])||void 0x0===_0x49fd1d?void 0x0:_0x49fd1d['is'](_0x2923('0x2c'),_0x2923('0x39')))&&_0x19e58c['push'](..._0x15fff9[_0x2923('0x1c')](this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x4')][_0x2923('0x2f')]['getLastPosition'](),'forward')),_0x19e58c=[...new Set(_0x19e58c)],(null===(_0x42cff1=null===(_0xb26a1e=this['editor'][_0x2923('0x31')][_0x2923('0x4')]['selection'][_0x2923('0xc')]())||void 0x0===_0xb26a1e?void 0x0:_0xb26a1e[_0x2923('0x0')])||void 0x0===_0x42cff1?void 0x0:_0x42cff1['is'](_0x2923('0x2c'),_0x2923('0x39')))&&(_0x19e58c=_0x19e58c[_0x2923('0x8')](_0x3103a7=>_0x3103a7['is']('element',_0x2923('0x39')))),_0x19e58c;}['_getSuggestionBlocks'](_0x2d2944){const _0x3e688b=this[_0x2923('0x25')][_0x2923('0x13')][_0x2923('0x12')]('LegacyListUtils');let _0x3f6b4b=Array['from'](this[_0x2923('0x25')]['model'][_0x2923('0x4')][_0x2923('0x2f')][_0x2923('0x37')]())[_0x2923('0x8')](_0x2d2944)[_0x2923('0x16')](_0x50f932=>{const _0x2abe2d=this[_0x2923('0x25')][_0x2923('0x31')][_0x2923('0x2b')](_0x50f932,0x0);return[..._0x3e688b['getSiblingNodes'](_0x2abe2d,_0x2923('0x18')),..._0x3e688b['getSiblingNodes'](_0x2abe2d,_0x2923('0x3a'))];})[_0x2923('0x9')]();return _0x3f6b4b=[...new Set(_0x3f6b4b)],_0x3f6b4b;}[_0x2923('0x1f')](_0x499488){return _0x2923('0x1')+this[_0x2923('0x25')][_0x2923('0x13')]['get'](_0x2923('0x1e'))['getListTypeFromListStyleType'](_0x499488)[_0x2923('0x36')]()+_0x2923('0x2d')+_0x499488[_0x2923('0x36')]()[_0x2923('0x26')](/-/g,'_');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2236=['_descriptionFactory','link','TrackChangesEditing','key','editor','plugins','registerAttributeLabel','afterInit','*Remove\x20link*','commandParams','locale','*Set\x20link:*\x20%0','map','unlink','_registerLegacyDescription','manualDecorators','_enableDefaultAttributesIntegration','label','formatInline','link\x20(','registerDescriptionCallback','type','newValue','linkHref','commands','has','format','attribute','get'];(function(_0x13ccc7,_0x2236fc){const _0x542746=function(_0x4c9f43){while(--_0x4c9f43){_0x13ccc7['push'](_0x13ccc7['shift']());}};_0x542746(++_0x2236fc);}(_0x2236,0xb7));const _0x5427=function(_0x13ccc7,_0x2236fc){_0x13ccc7=_0x13ccc7-0x0;let _0x542746=_0x2236[_0x13ccc7];return _0x542746;};import{Plugin as _0x784d34}from'ckeditor5/src/core.js';import{getTranslation as _0x10693c}from'../utils/common-translations.js';export default class ct extends _0x784d34{[_0x5427('0x1b')](){const _0x43f067=this[_0x5427('0x18')];if(!_0x43f067[_0x5427('0x19')][_0x5427('0x10')]('LinkEditing'))return;const _0x2416eb=_0x43f067[_0x5427('0x19')][_0x5427('0x13')](_0x5427('0x16')),_0x5be8ab=_0x43f067[_0x5427('0xf')][_0x5427('0x13')](_0x5427('0x15'));_0x2416eb[_0x5427('0x7')](_0x5427('0x15'),[_0x5427('0xe'),..._0x5be8ab[_0x5427('0x6')][_0x5427('0x3')](_0x10ea1b=>_0x10ea1b['id'])]),_0x2416eb['_enableDefaultAttributesIntegration'](_0x5427('0x4'));for(const _0x169300 of _0x5be8ab[_0x5427('0x6')])_0x2416eb['_descriptionFactory'][_0x5427('0x1a')](_0x169300['id'],_0x5427('0xa')+_0x169300[_0x5427('0x8')]['toLowerCase']()+')');_0x2416eb[_0x5427('0x14')][_0x5427('0xb')](_0x9d6ab6=>{if(_0x5427('0x12')!=_0x9d6ab6[_0x5427('0xc')])return;const {data:_0x404174}=_0x9d6ab6;if(!_0x404174||_0x5427('0xe')!=_0x404174[_0x5427('0x17')])return;const _0x170319=_0x404174[_0x5427('0xd')],_0x5c986c=_0x43f067['locale'];return{'type':'format','content':null==_0x170319?_0x10693c(_0x5c986c,'*Remove\x20link*'):_0x10693c(_0x5c986c,_0x5427('0x2'),'\x22'+_0x170319+'\x22')};}),this[_0x5427('0x5')]();}[_0x5427('0x5')](){const _0x48c06d=this[_0x5427('0x18')],_0x38f3ff=_0x48c06d[_0x5427('0x1')];_0x48c06d[_0x5427('0x19')][_0x5427('0x13')]('TrackChangesEditing')[_0x5427('0x14')][_0x5427('0xb')](_0x2f2af3=>{if(_0x5427('0x9')!=_0x2f2af3[_0x5427('0xc')])return;const {data:_0x13e746}=_0x2f2af3;if(_0x13e746){if(_0x5427('0x15')==_0x13e746['commandName']){const _0x24775e=_0x13e746[_0x5427('0x0')][0x0];return{'type':_0x5427('0x11'),'content':_0x10693c(_0x38f3ff,'*Set\x20link:*\x20%0','\x22'+_0x24775e+'\x22')};}return'unlink'==_0x13e746['commandName']?{'type':_0x5427('0x11'),'content':_0x10693c(_0x38f3ff,_0x5427('0x1c'))}:void 0x0;}});}}
|