@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240203.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 _0x5ce7=['editor','high','enableCommand','createPositionAt','plugins','horizontalLine','registerElementLabel','afterInit','for','_descriptionFactory','elementToStructure','get','TrackChangesEditing','has','ck-horizontal-line','dataDowncast','createContainerElement'];(function(_0x484639,_0x5ce7ec){const _0x22d57c=function(_0x463eda){while(--_0x463eda){_0x484639['push'](_0x484639['shift']());}};_0x22d57c(++_0x5ce7ec);}(_0x5ce7,0x193));const _0x22d5=function(_0x484639,_0x5ce7ec){_0x484639=_0x484639-0x0;let _0x22d57c=_0x5ce7[_0x484639];return _0x22d57c;};import{Plugin as _0x407eb0}from'ckeditor5/src/core.js';import{getTranslation as _0x493894}from'../utils/common-translations.js';export default class tt extends _0x407eb0{[_0x22d5('0xc')](){const _0xba0e01=this[_0x22d5('0x5')];if(!_0xba0e01['plugins'][_0x22d5('0x1')]('HorizontalLineEditing'))return;_0xba0e01['plugins'][_0x22d5('0x10')](_0x22d5('0x0'))[_0x22d5('0x7')](_0x22d5('0xa'));const _0x3421ae=_0xba0e01[_0x22d5('0x9')]['get'](_0x22d5('0x0')),_0x46e242=_0xba0e01['locale'];_0x3421ae[_0x22d5('0xe')][_0x22d5('0xb')](_0x22d5('0xa'),_0x1014d3=>_0x493894(_0x46e242,'ELEMENT_HORIZONTAL_LINE',_0x1014d3)),_0xba0e01['conversion'][_0x22d5('0xd')](_0x22d5('0x3'))[_0x22d5('0xf')]({'model':_0x22d5('0xa'),'view':(_0x5b4165,{writer:_0x298183,options:_0x258761})=>{if(!_0x258761['showSuggestionHighlights'])return null;const _0x1686d9=_0x298183[_0x22d5('0x4')]('div'),_0x67ba1b=_0x298183['createEmptyElement']('hr');return _0x298183['addClass'](_0x22d5('0x2'),_0x1686d9),_0x298183['insert'](_0x298183[_0x22d5('0x8')](_0x1686d9,0x0),_0x67ba1b),_0x1686d9;},'converterPriority':_0x22d5('0x6')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb523=['afterInit','_descriptionFactory','editor','*Change\x20%0\x20content*','_registerLegacyDescription','TrackChangesEditing','getFirstRange','ELEMENT_HTML_EMBED','plugins','registerDescriptionCallback','rawHtml','htmlEmbed','element','locale','nodeAfter','attribute','formatBlock','registerElementLabel','HtmlEmbed','key','value','format','has','type'];(function(_0x43ae2c,_0xb523c){const _0x47cb59=function(_0x1c29ec){while(--_0x1c29ec){_0x43ae2c['push'](_0x43ae2c['shift']());}};_0x47cb59(++_0xb523c);}(_0xb523,0x180));const _0x47cb=function(_0x43ae2c,_0xb523c){_0x43ae2c=_0x43ae2c-0x0;let _0x47cb59=_0xb523[_0x43ae2c];return _0x47cb59;};import{Plugin as _0x17c620}from'ckeditor5/src/core.js';import{getTranslation as _0x5c7e69}from'../utils/common-translations.js';export default class et extends _0x17c620{[_0x47cb('0x0')](){const _0x18f365=this[_0x47cb('0x2')];if(!_0x18f365['plugins'][_0x47cb('0x16')](_0x47cb('0x12')))return;const _0x31de99=_0x18f365[_0x47cb('0x8')]['get']('TrackChangesEditing'),_0x137c8d=_0x18f365[_0x47cb('0xd')];_0x31de99[_0x47cb('0x1')][_0x47cb('0x11')](_0x47cb('0xa'),_0x16c412=>_0x5c7e69(_0x137c8d,_0x47cb('0x7'),_0x16c412)),_0x31de99['_enableDefaultAttributesIntegration'](_0x47cb('0xb'),[],['value']),_0x31de99['_descriptionFactory'][_0x47cb('0x9')](_0xd703be=>{if(_0x47cb('0xf')!=_0xd703be[_0x47cb('0x17')])return;const {data:_0x32a29d}=_0xd703be;if(_0x32a29d&&_0x47cb('0x14')==_0x32a29d[_0x47cb('0x13')]&&_0xd703be[_0x47cb('0x6')]()['start'][_0x47cb('0xe')]['is'](_0x47cb('0xc'),'rawHtml')){const _0x26326f=_0x5c7e69(_0x137c8d,_0x47cb('0x7'));return{'type':_0x47cb('0x15'),'content':_0x5c7e69(_0x137c8d,_0x47cb('0x3'),_0x26326f)};}}),this[_0x47cb('0x4')]();}[_0x47cb('0x4')](){const _0x3cbf57=this[_0x47cb('0x2')],_0x58c868=_0x3cbf57[_0x47cb('0xd')];_0x3cbf57[_0x47cb('0x8')]['get'](_0x47cb('0x5'))[_0x47cb('0x1')][_0x47cb('0x9')](_0xd836f6=>{if(_0x47cb('0x10')!=_0xd836f6[_0x47cb('0x17')])return;const {data:_0x3ae7a9}=_0xd836f6;if(_0x3ae7a9&&_0x47cb('0xb')==_0x3ae7a9['commandName']){const _0x153f60=_0x5c7e69(_0x58c868,'ELEMENT_HTML_EMBED');return{'type':_0x47cb('0x15'),'content':_0x5c7e69(_0x58c868,'*Change\x20%0\x20content*',_0x153f60)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1134=['editor','getContainedElement','accept','selection','resizedWidth','insertion','imageCaption','ImageTextAlternativeEditing','Block\x20image\x20to\x20inline\x20image','end','convertBlockImageToInline','caption','createRange','discard','formatBlock','imageTypeBlock','registerCustomCallback','imageTypeInline','isCollapsed','getFirstRange','locale','ImageEditing','isOwn','filter','deletion','imageStylePreApply','nodeAfter','uploadImage','resizeImage','change','previous','alt','createRangeOn','ELEMENT_IMAGE','*Remove\x20image\x20text\x20alternative*','markInsertion','get','getClosestSelectedImageElement','insertImage','_registerLegacyDescription','*Set\x20image\x20text\x20alternative:*\x20%0','ImageCaptionUtils','element','imageInline','enableCommand','markBlockFormat','isBlockImage','model','_enableDefaultAttributesIntegration','fromPosition','registerElementLabel','commandParams','getSuggestionCallback','commandName','forceDefaultExecution','newValue','find','Inline\x20image\x20to\x20block\x20image','getCaptionFromImageModelElement','ELEMENT_CAPTION','plugins','convertInlineImageToBlock','has','ImageBlockEditing','chain','subType','getNearestSelectionRange','format','addObject','findIndex','key','type','imageTextAlternative','length','attribute','ImageUtils','_descriptionFactory','document','isEqual','join','isBefore','ELEMENT_INLINE_IMAGE','FORMAT_IMAGE_SIZE','schema','TrackChangesEditing','_suggestionFactory','registerDescriptionCallback','width','markDeletion','*Set\x20image\x20width:*\x20%0','toggleImageCaption','start','ImageCaptionEditing','toPrevious'];(function(_0x3f1fed,_0x113465){const _0x31e3b3=function(_0x4d768d){while(--_0x4d768d){_0x3f1fed['push'](_0x3f1fed['shift']());}};_0x31e3b3(++_0x113465);}(_0x1134,0x16d));const _0x31e3=function(_0x3f1fed,_0x113465){_0x3f1fed=_0x3f1fed-0x0;let _0x31e3b3=_0x1134[_0x3f1fed];return _0x31e3b3;};import{Plugin as _0x15858e}from'ckeditor5/src/core.js';import{LivePosition as _0x365816}from'ckeditor5/src/engine.js';import{getTranslation as _0xb7e4a6}from'../utils/common-translations.js';export default class it extends _0x15858e{['afterInit'](){const _0x27ec13=this[_0x31e3('0xb')];if(!_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')](_0x31e3('0x20')))return;const _0xf73f44=_0x27ec13[_0x31e3('0x47')][_0x31e3('0x2f')](_0x31e3('0x1')),_0xcf2bbc=_0x27ec13[_0x31e3('0x47')][_0x31e3('0x2f')](_0x31e3('0x56')),_0xfbb017=_0x27ec13['locale'];_0xf73f44[_0x31e3('0x37')](_0x31e3('0x31')),_0xf73f44[_0x31e3('0x57')][_0x31e3('0x3d')]('imageBlock',_0x3ab6c1=>_0xb7e4a6(_0xfbb017,_0x31e3('0x2c'),_0x3ab6c1)),_0xf73f44[_0x31e3('0x57')][_0x31e3('0x3d')](_0x31e3('0x36'),_0x5df658=>_0xb7e4a6(_0xfbb017,_0x31e3('0x5c'),_0x5df658)),_0xf73f44[_0x31e3('0x57')]['registerElementLabel'](_0x31e3('0x16'),()=>_0xb7e4a6(_0xfbb017,_0x31e3('0x46'))),_0x27ec13['plugins'][_0x31e3('0x49')]('ImageUploadEditing')&&_0xf73f44[_0x31e3('0x37')](_0x31e3('0x26')),_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')](_0x31e3('0x4a'))&&_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')]('ImageInlineEditing')&&(_0xf73f44[_0x31e3('0x37')](_0x31e3('0x1c'),(_0x4b5857,_0x1c21e0)=>{const _0x29776b=_0xcf2bbc[_0x31e3('0x30')](_0x27ec13['model'][_0x31e3('0x58')][_0x31e3('0xe')]);_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x28')](()=>{_0xf73f44[_0x31e3('0x38')](_0x29776b,{'commandName':_0x31e3('0x1c'),'commandParams':[_0x1c21e0]},[],_0x31e3('0x15'));});}),_0xf73f44[_0x31e3('0x37')](_0x31e3('0x1a'),(_0x5f01cc,_0x1e7904)=>{_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x28')](_0x16e4c7=>{let _0x5f2071=_0xcf2bbc[_0x31e3('0x30')](_0x27ec13[_0x31e3('0x3a')]['document'][_0x31e3('0xe')]),_0x2737aa=_0x16e4c7[_0x31e3('0x2b')](_0x5f2071);const _0x51c920=_0x365816['fromPosition'](_0x2737aa['start'],_0x31e3('0xa')),_0x34d6f3=_0x365816[_0x31e3('0x3c')](_0x2737aa[_0x31e3('0x14')],'toNext');_0xf73f44[_0x31e3('0x41')](()=>_0x5f01cc(_0x1e7904)),_0x5f2071=_0xcf2bbc[_0x31e3('0x30')](_0x27ec13[_0x31e3('0x3a')]['document'][_0x31e3('0xe')]),_0x2737aa=_0x16e4c7[_0x31e3('0x2b')](_0x5f2071);const _0x139592=_0x16e4c7[_0x31e3('0x17')](_0x51c920,_0x34d6f3);_0x51c920['detach'](),_0x34d6f3['detach'](),_0xf73f44[_0x31e3('0x38')](_0x5f2071,{'commandName':'imageTypeInline','commandParams':[_0x1e7904]},[],_0x31e3('0x48')),_0x139592['start'][_0x31e3('0x5b')](_0x2737aa[_0x31e3('0x8')])&&_0xf73f44['markInsertion'](_0x16e4c7['createRange'](_0x139592[_0x31e3('0x8')],_0x2737aa[_0x31e3('0x8')]),_0x31e3('0x48')),_0x2737aa[_0x31e3('0x14')][_0x31e3('0x5b')](_0x139592[_0x31e3('0x14')])&&_0xf73f44[_0x31e3('0x2e')](_0x16e4c7[_0x31e3('0x17')](_0x2737aa[_0x31e3('0x14')],_0x139592[_0x31e3('0x14')]),_0x31e3('0x48'));});}),_0xf73f44[_0x31e3('0x2')]['registerCustomCallback'](_0x31e3('0x19'),'convertInlineImageToBlock',_0x31e3('0x5a'),()=>!0x1),_0xf73f44[_0x31e3('0x2')]['registerCustomCallback'](_0x31e3('0x19'),'convertInlineImageToBlock',_0x31e3('0xd'),()=>!0x1),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x1b')](_0x31e3('0x19'),'convertInlineImageToBlock',_0x31e3('0x18'),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x3f')]('formatBlock','',_0x31e3('0xd'))),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x1b')](_0x31e3('0x10'),'convertInlineImageToBlock',_0x31e3('0x5a'),()=>!0x1),_0xf73f44['_suggestionFactory']['registerCustomCallback']('insertion',_0x31e3('0x48'),_0x31e3('0x18'),([_0x5c4952])=>{const _0x36bd4e=_0xf73f44['_suggestionFactory'][_0x31e3('0x3f')](_0x31e3('0x10'),'',_0x31e3('0x18'));let _0xdd9dad=_0x5c4952[_0x31e3('0x8')],_0x17b0e4=_0x5c4952[_0x31e3('0x14')];const _0x3ec859=_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x0')][_0x31e3('0x4d')](_0xdd9dad,'backward'),_0x28beb9=_0x27ec13['model'][_0x31e3('0x0')][_0x31e3('0x4d')](_0x17b0e4,'forward');_0x3ec859[_0x31e3('0x1d')]&&(_0xdd9dad=_0x3ec859[_0x31e3('0x8')]),_0x28beb9[_0x31e3('0x1d')]&&(_0x17b0e4=_0x28beb9[_0x31e3('0x14')]),_0x36bd4e([_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x17')](_0xdd9dad,_0x17b0e4)]);}),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x1b')](_0x31e3('0x19'),_0x31e3('0x48'),_0x31e3('0x4b'),_0x1a00ac),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x1b')]('insertion','convertInlineImageToBlock','chain',_0x1a00ac)),_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')](_0x31e3('0x9'))&&(_0xf73f44['enableCommand'](_0x31e3('0x7'),(_0x3b044c,_0x4ad6a4)=>{const _0x5ba0c3=_0x27ec13[_0x31e3('0x47')][_0x31e3('0x2f')](_0x31e3('0x34'));let _0x1453a3=_0xcf2bbc[_0x31e3('0x30')](_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x58')][_0x31e3('0xe')]),_0x597a8b=_0x5ba0c3[_0x31e3('0x45')](_0x1453a3);_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x28')](()=>{if(_0x597a8b)return void _0xf73f44[_0x31e3('0x5')](_0x27ec13[_0x31e3('0x3a')]['createRangeOn'](_0x597a8b));const _0x137aac=_0xcf2bbc[_0x31e3('0x39')](_0x1453a3);_0x3b044c(_0x4ad6a4),_0x1453a3=_0xcf2bbc[_0x31e3('0x30')](_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x58')][_0x31e3('0xe')]),_0x597a8b=_0x5ba0c3[_0x31e3('0x45')](_0x1453a3),_0xf73f44[_0x31e3('0x2e')](_0x27ec13[_0x31e3('0x3a')][_0x31e3('0x2b')](_0x597a8b),_0x137aac?null:_0x31e3('0x11'));});}),_0xf73f44[_0x31e3('0x2')][_0x31e3('0x1b')](_0x31e3('0x10'),_0x31e3('0x11'),'chain',_0x1a00ac));const _0x4748d4=[{'type':'formatBlock','subType':_0x31e3('0x24')},{'type':_0x31e3('0x10'),'subType':_0x31e3('0x11')},{'type':_0x31e3('0x19'),'subType':_0x31e3('0x48')},{'type':_0x31e3('0x10'),'subType':_0x31e3('0x48')}];function _0x265cf8(_0x54444,_0x462aa3){const _0x413f67=_0x4748d4[_0x31e3('0x50')](({type:_0x4c30ca,subType:_0x5cebe4})=>_0x54444['type']==_0x4c30ca&&_0x54444['subType']==_0x5cebe4),_0x1cb2fe=_0x4748d4[_0x31e3('0x50')](({type:_0x483658,subType:_0xd82c06})=>_0x462aa3[_0x31e3('0x52')]==_0x483658&&_0x462aa3[_0x31e3('0x4c')]==_0xd82c06);if(_0x413f67<0x0||_0x1cb2fe<0x0)return!0x1;const _0x38dcc9=_0x54444[_0x31e3('0x1e')](),_0x2cf6ca=_0x462aa3[_0x31e3('0x1e')]();if((0x0==_0x413f67||0x1==_0x413f67)&&0x2==_0x1cb2fe&&_0x38dcc9['isIntersecting'](_0x2cf6ca))return!0x0;if(0x2==_0x413f67&&0x3==_0x1cb2fe){const _0x19a9f0=_0xf73f44['_findSuggestions'](_0x38dcc9,_0x31e3('0x10'))[_0x31e3('0x22')](({suggestion:_0x268aff,meta:_0x4790dc})=>_0x4790dc[_0x31e3('0x21')]&&_0x31e3('0x48')==_0x268aff[_0x31e3('0x4c')]);if(_0x19a9f0[_0x31e3('0x54')]>0x1&&_0x2cf6ca['end']['isEqual'](_0x38dcc9[_0x31e3('0x8')]))return!0x0;if(0x1==_0x19a9f0['length']&&(_0x38dcc9[_0x31e3('0x8')][_0x31e3('0x59')](_0x2cf6ca[_0x31e3('0x14')])||_0x38dcc9[_0x31e3('0x14')]['isEqual'](_0x2cf6ca[_0x31e3('0x8')])))return!0x0;}if(0x3==_0x413f67&&0x3==_0x1cb2fe&&_0x38dcc9['start'][_0x31e3('0x5b')](_0x2cf6ca['start'])){const _0x519e41=_0x38dcc9[_0x31e3('0x14')][_0x31e3('0x25')],_0x45d39b=_0x2cf6ca[_0x31e3('0x8')]['nodeBefore'];return _0xcf2bbc[_0x31e3('0x39')](_0x519e41)&&_0x519e41===_0x45d39b;}return!0x1;}function _0x1a00ac(_0x1537bb,_0x5ef266){return _0x265cf8(_0x1537bb,_0x5ef266)?[_0x1537bb,_0x5ef266]:_0x265cf8(_0x5ef266,_0x1537bb)?[_0x5ef266,_0x1537bb]:null;}_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')]('ImageResize')&&(_0xf73f44['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0xf73f44[_0x31e3('0x57')]['registerAttributeLabel'](_0x31e3('0xf'),_0xb7e4a6(_0xfbb017,_0x31e3('0x5d')))),_0x27ec13[_0x31e3('0x47')][_0x31e3('0x49')](_0x31e3('0x12'))&&_0xf73f44[_0x31e3('0x3b')]('imageTextAlternative',[],['alt']),_0xf73f44[_0x31e3('0x57')]['registerDescriptionCallback'](_0x5f024c=>{if(!!_0x4748d4[_0x31e3('0x43')](({type:_0x413f5d,subType:_0x5b066d})=>_0x5f024c['type']==_0x413f5d&&_0x5f024c[_0x31e3('0x4c')]==_0x5b066d))return _0x5f024c[_0x31e3('0x29')]?{}:void 0x0;}),_0xf73f44[_0x31e3('0x57')]['registerDescriptionCallback'](_0x4f5e6a=>{if('insertion'==_0x4f5e6a['type']||_0x31e3('0x23')==_0x4f5e6a[_0x31e3('0x52')]){const _0x20fdcb=_0x4f5e6a[_0x31e3('0xc')]();if(_0x20fdcb&&_0x20fdcb['is'](_0x31e3('0x35'),'caption'))return{'type':'insertion'==_0x4f5e6a[_0x31e3('0x52')]?_0x31e3('0x4f'):'removeObject','element':_0x20fdcb,'quantity':0x1};}}),_0xf73f44[_0x31e3('0x57')][_0x31e3('0x3')](_0x32f32a=>_0x31e3('0x19')==_0x32f32a[_0x31e3('0x52')]&&_0x31e3('0x48')==_0x32f32a[_0x31e3('0x4c')]?{'type':_0x31e3('0x4e'),'content':_0x31e3('0x44')}:_0x31e3('0x19')==_0x32f32a[_0x31e3('0x52')]&&_0x31e3('0x15')==_0x32f32a[_0x31e3('0x4c')]?{'type':_0x31e3('0x4e'),'content':_0x31e3('0x13')}:void 0x0),_0xf73f44[_0x31e3('0x57')][_0x31e3('0x3')](_0x253182=>{if(_0x31e3('0x55')!=_0x253182[_0x31e3('0x52')])return;const {data:_0x441fe0}=_0x253182;if(!_0x441fe0||_0x31e3('0x2a')!=_0x441fe0[_0x31e3('0x51')])return;const _0x1ff64e=_0x441fe0[_0x31e3('0x42')];return _0x1ff64e?{'type':_0x31e3('0x4e'),'content':_0xb7e4a6(_0xfbb017,_0x31e3('0x33'),'\x22'+_0x1ff64e+'\x22')}:{'type':_0x31e3('0x4e'),'content':_0xb7e4a6(_0xfbb017,_0x31e3('0x2d'))};}),this[_0x31e3('0x32')]();}['_registerLegacyDescription'](){const _0x1049b0=this[_0x31e3('0xb')],_0x10f400=_0x1049b0[_0x31e3('0x1f')];_0x1049b0[_0x31e3('0x47')]['get'](_0x31e3('0x1'))['_descriptionFactory'][_0x31e3('0x3')](_0x1aae73=>{if(_0x31e3('0x19')!=_0x1aae73['type']&&'formatInline'!=_0x1aae73[_0x31e3('0x52')])return;const {data:_0x17cab4}=_0x1aae73;if(_0x17cab4){if(_0x31e3('0x53')==_0x17cab4[_0x31e3('0x40')]){const _0x4aa052=_0x17cab4[_0x31e3('0x3e')][0x0][_0x31e3('0x42')];return _0x4aa052?{'type':'format','content':_0xb7e4a6(_0x10f400,_0x31e3('0x33'),'\x22'+_0x4aa052+'\x22')}:{'type':'format','content':_0xb7e4a6(_0x10f400,_0x31e3('0x2d'))};}if(_0x31e3('0x27')==_0x17cab4[_0x31e3('0x40')]){const _0x168b72=_0x17cab4[_0x31e3('0x3e')][0x0][_0x31e3('0x4')];return _0x168b72?{'type':_0x31e3('0x4e'),'content':_0xb7e4a6(_0x10f400,_0x31e3('0x6'),_0x168b72)}:{'type':'format','content':_0xb7e4a6(_0x10f400,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x81d2=['caption','ImageTextAlternativeEditing','get','chain','imageInline','ImageUploadEditing','document','markBlockFormat','uploadImage','getFirstRange','nodeBefore','join','type','forceDefaultExecution','backward','attribute','*Remove\x20image\x20text\x20alternative*','accept','ELEMENT_CAPTION','registerAttributeLabel','enableCommand','nodeAfter','has','ImageBlockEditing','registerDescriptionCallback','newValue','subType','commandName','editor','alt','insertion','plugins','isCollapsed','end','commandParams','getSuggestionCallback','toggleImageCaption','imageStylePreApply','imageCaption','imageTextAlternative','findIndex','width','isBefore','markDeletion','formatBlock','convertBlockImageToInline','imageTypeInline','format','TrackChangesEditing','getNearestSelectionRange','start','_enableDefaultAttributesIntegration','ELEMENT_INLINE_IMAGE','find','resizeImage','*Reset\x20image\x20width*','convertInlineImageToBlock','isIntersecting','filter','_registerLegacyDescription','isBlockImage','imageBlock','selection','ImageCaptionEditing','*Set\x20image\x20width:*\x20%0','discard','change','fromPosition','_suggestionFactory','locale','isEqual','toNext','ELEMENT_IMAGE','removeObject','registerElementLabel','createRangeOn','previous','afterInit','resizedWidth','createRange','deletion','element','length','registerCustomCallback','*Set\x20image\x20text\x20alternative:*\x20%0','model','Block\x20image\x20to\x20inline\x20image','getClosestSelectedImageElement','ImageEditing','imageTypeBlock','ImageUtils','_descriptionFactory','markInsertion'];(function(_0x134a17,_0x81d29d){const _0x328d5b=function(_0x385370){while(--_0x385370){_0x134a17['push'](_0x134a17['shift']());}};_0x328d5b(++_0x81d29d);}(_0x81d2,0xb5));const _0x328d=function(_0x134a17,_0x81d29d){_0x134a17=_0x134a17-0x0;let _0x328d5b=_0x81d2[_0x134a17];return _0x328d5b;};import{Plugin as _0x240a1f}from'ckeditor5/src/core.js';import{LivePosition as _0x388280}from'ckeditor5/src/engine.js';import{getTranslation as _0x17d576}from'../utils/common-translations.js';export default class it extends _0x240a1f{[_0x328d('0x52')](){const _0x3eed58=this['editor'];if(!_0x3eed58[_0x328d('0x24')][_0x328d('0x1b')](_0x328d('0x0')))return;const _0x319903=_0x3eed58[_0x328d('0x24')][_0x328d('0x7')](_0x328d('0x35')),_0x307249=_0x3eed58['plugins']['get'](_0x328d('0x2')),_0x350d4f=_0x3eed58['locale'];_0x319903[_0x328d('0x19')]('insertImage'),_0x319903[_0x328d('0x3')][_0x328d('0x4f')](_0x328d('0x42'),_0x482754=>_0x17d576(_0x350d4f,_0x328d('0x4d'),_0x482754)),_0x319903[_0x328d('0x3')]['registerElementLabel'](_0x328d('0x9'),_0x46f9fc=>_0x17d576(_0x350d4f,_0x328d('0x39'),_0x46f9fc)),_0x319903[_0x328d('0x3')][_0x328d('0x4f')](_0x328d('0x5'),()=>_0x17d576(_0x350d4f,_0x328d('0x17'))),_0x3eed58['plugins']['has'](_0x328d('0xa'))&&_0x319903[_0x328d('0x19')](_0x328d('0xd')),_0x3eed58['plugins'][_0x328d('0x1b')](_0x328d('0x1c'))&&_0x3eed58[_0x328d('0x24')]['has']('ImageInlineEditing')&&(_0x319903[_0x328d('0x19')]('imageTypeInline',(_0x2a11a3,_0xf748c3)=>{const _0x132072=_0x307249['getClosestSelectedImageElement'](_0x3eed58[_0x328d('0x5a')]['document'][_0x328d('0x43')]);_0x3eed58[_0x328d('0x5a')][_0x328d('0x47')](()=>{_0x319903[_0x328d('0xc')](_0x132072,{'commandName':_0x328d('0x33'),'commandParams':[_0xf748c3]},[],_0x328d('0x32'));});}),_0x319903[_0x328d('0x19')](_0x328d('0x1'),(_0x2e3f1e,_0x42a462)=>{_0x3eed58[_0x328d('0x5a')][_0x328d('0x47')](_0x52a702=>{let _0x2358d5=_0x307249[_0x328d('0x5c')](_0x3eed58[_0x328d('0x5a')][_0x328d('0xb')]['selection']),_0x40c990=_0x52a702[_0x328d('0x50')](_0x2358d5);const _0x17f6b5=_0x388280[_0x328d('0x48')](_0x40c990['start'],'toPrevious'),_0xa16e2a=_0x388280['fromPosition'](_0x40c990['end'],_0x328d('0x4c'));_0x319903[_0x328d('0x12')](()=>_0x2e3f1e(_0x42a462)),_0x2358d5=_0x307249[_0x328d('0x5c')](_0x3eed58[_0x328d('0x5a')][_0x328d('0xb')]['selection']),_0x40c990=_0x52a702['createRangeOn'](_0x2358d5);const _0x21dad6=_0x52a702[_0x328d('0x54')](_0x17f6b5,_0xa16e2a);_0x17f6b5['detach'](),_0xa16e2a['detach'](),_0x319903[_0x328d('0xc')](_0x2358d5,{'commandName':_0x328d('0x33'),'commandParams':[_0x42a462]},[],'convertInlineImageToBlock'),_0x21dad6['start']['isBefore'](_0x40c990[_0x328d('0x37')])&&_0x319903['markInsertion'](_0x52a702[_0x328d('0x54')](_0x21dad6[_0x328d('0x37')],_0x40c990[_0x328d('0x37')]),_0x328d('0x3d')),_0x40c990[_0x328d('0x26')]['isBefore'](_0x21dad6[_0x328d('0x26')])&&_0x319903[_0x328d('0x4')](_0x52a702[_0x328d('0x54')](_0x40c990['end'],_0x21dad6[_0x328d('0x26')]),_0x328d('0x3d'));});}),_0x319903[_0x328d('0x49')][_0x328d('0x58')]('formatBlock',_0x328d('0x3d'),_0x328d('0x10'),()=>!0x1),_0x319903['_suggestionFactory'][_0x328d('0x58')]('formatBlock',_0x328d('0x3d'),'accept',()=>!0x1),_0x319903[_0x328d('0x49')][_0x328d('0x58')]('formatBlock',_0x328d('0x3d'),_0x328d('0x46'),_0x319903[_0x328d('0x49')][_0x328d('0x28')]('formatBlock','',_0x328d('0x16'))),_0x319903[_0x328d('0x49')][_0x328d('0x58')](_0x328d('0x23'),_0x328d('0x3d'),_0x328d('0x10'),()=>!0x1),_0x319903[_0x328d('0x49')][_0x328d('0x58')](_0x328d('0x23'),_0x328d('0x3d'),'discard',([_0x229f70])=>{const _0x2980d2=_0x319903['_suggestionFactory'][_0x328d('0x28')](_0x328d('0x23'),'',_0x328d('0x46'));let _0x14be59=_0x229f70['start'],_0x36711c=_0x229f70[_0x328d('0x26')];const _0x2bad61=_0x3eed58[_0x328d('0x5a')]['schema'][_0x328d('0x36')](_0x14be59,_0x328d('0x13')),_0x58e07a=_0x3eed58[_0x328d('0x5a')]['schema'][_0x328d('0x36')](_0x36711c,'forward');_0x2bad61[_0x328d('0x25')]&&(_0x14be59=_0x2bad61[_0x328d('0x37')]),_0x58e07a['isCollapsed']&&(_0x36711c=_0x58e07a[_0x328d('0x26')]),_0x2980d2([_0x3eed58['model'][_0x328d('0x54')](_0x14be59,_0x36711c)]);}),_0x319903[_0x328d('0x49')][_0x328d('0x58')]('formatBlock','convertInlineImageToBlock',_0x328d('0x8'),_0x16a36b),_0x319903[_0x328d('0x49')][_0x328d('0x58')](_0x328d('0x23'),_0x328d('0x3d'),_0x328d('0x8'),_0x16a36b)),_0x3eed58[_0x328d('0x24')]['has'](_0x328d('0x44'))&&(_0x319903[_0x328d('0x19')](_0x328d('0x29'),(_0x166d38,_0x503a54)=>{const _0x30c6f7=_0x3eed58[_0x328d('0x24')][_0x328d('0x7')]('ImageCaptionUtils');let _0x5ba255=_0x307249[_0x328d('0x5c')](_0x3eed58[_0x328d('0x5a')]['document'][_0x328d('0x43')]),_0x682388=_0x30c6f7['getCaptionFromImageModelElement'](_0x5ba255);_0x3eed58['model'][_0x328d('0x47')](()=>{if(_0x682388)return void _0x319903[_0x328d('0x30')](_0x3eed58[_0x328d('0x5a')][_0x328d('0x50')](_0x682388));const _0x1a72e4=_0x307249[_0x328d('0x41')](_0x5ba255);_0x166d38(_0x503a54),_0x5ba255=_0x307249[_0x328d('0x5c')](_0x3eed58['model'][_0x328d('0xb')][_0x328d('0x43')]),_0x682388=_0x30c6f7['getCaptionFromImageModelElement'](_0x5ba255),_0x319903[_0x328d('0x4')](_0x3eed58['model']['createRangeOn'](_0x682388),_0x1a72e4?null:_0x328d('0x2b'));});}),_0x319903[_0x328d('0x49')][_0x328d('0x58')](_0x328d('0x23'),'imageCaption','chain',_0x16a36b));const _0x470429=[{'type':_0x328d('0x31'),'subType':_0x328d('0x2a')},{'type':'insertion','subType':_0x328d('0x2b')},{'type':_0x328d('0x31'),'subType':_0x328d('0x3d')},{'type':_0x328d('0x23'),'subType':_0x328d('0x3d')}];function _0x389d0d(_0x9be331,_0x52d13f){const _0x8c7c9e=_0x470429['findIndex'](({type:_0x595e02,subType:_0x1e15b6})=>_0x9be331['type']==_0x595e02&&_0x9be331['subType']==_0x1e15b6),_0x511a91=_0x470429[_0x328d('0x2d')](({type:_0x4b9482,subType:_0x4868c4})=>_0x52d13f[_0x328d('0x11')]==_0x4b9482&&_0x52d13f[_0x328d('0x1f')]==_0x4868c4);if(_0x8c7c9e<0x0||_0x511a91<0x0)return!0x1;const _0x5af503=_0x9be331['getFirstRange'](),_0x520e7f=_0x52d13f[_0x328d('0xe')]();if((0x0==_0x8c7c9e||0x1==_0x8c7c9e)&&0x2==_0x511a91&&_0x5af503[_0x328d('0x3e')](_0x520e7f))return!0x0;if(0x2==_0x8c7c9e&&0x3==_0x511a91){const _0x40e237=_0x319903['_findSuggestions'](_0x5af503,_0x328d('0x23'))[_0x328d('0x3f')](({suggestion:_0x4bb267,meta:_0x149a90})=>_0x149a90['isOwn']&&_0x328d('0x3d')==_0x4bb267[_0x328d('0x1f')]);if(_0x40e237[_0x328d('0x57')]>0x1&&_0x520e7f['end']['isEqual'](_0x5af503[_0x328d('0x37')]))return!0x0;if(0x1==_0x40e237[_0x328d('0x57')]&&(_0x5af503[_0x328d('0x37')][_0x328d('0x4b')](_0x520e7f[_0x328d('0x26')])||_0x5af503[_0x328d('0x26')][_0x328d('0x4b')](_0x520e7f['start'])))return!0x0;}if(0x3==_0x8c7c9e&&0x3==_0x511a91&&_0x5af503[_0x328d('0x37')][_0x328d('0x2f')](_0x520e7f[_0x328d('0x37')])){const _0x214375=_0x5af503['end'][_0x328d('0x1a')],_0x4d7f8f=_0x520e7f[_0x328d('0x37')][_0x328d('0xf')];return _0x307249[_0x328d('0x41')](_0x214375)&&_0x214375===_0x4d7f8f;}return!0x1;}function _0x16a36b(_0x101c96,_0x16a92f){return _0x389d0d(_0x101c96,_0x16a92f)?[_0x101c96,_0x16a92f]:_0x389d0d(_0x16a92f,_0x101c96)?[_0x16a92f,_0x101c96]:null;}_0x3eed58[_0x328d('0x24')][_0x328d('0x1b')]('ImageResize')&&(_0x319903['_enableDefaultAttributesIntegration'](_0x328d('0x3b'),[],[_0x328d('0x53')]),_0x319903[_0x328d('0x3')][_0x328d('0x18')](_0x328d('0x53'),_0x17d576(_0x350d4f,'FORMAT_IMAGE_SIZE'))),_0x3eed58[_0x328d('0x24')][_0x328d('0x1b')](_0x328d('0x6'))&&_0x319903[_0x328d('0x38')](_0x328d('0x2c'),[],[_0x328d('0x22')]),_0x319903[_0x328d('0x3')][_0x328d('0x1d')](_0x144fd0=>{if(!!_0x470429[_0x328d('0x3a')](({type:_0xc9e9b9,subType:_0x8ba571})=>_0x144fd0['type']==_0xc9e9b9&&_0x144fd0['subType']==_0x8ba571))return _0x144fd0[_0x328d('0x51')]?{}:void 0x0;}),_0x319903[_0x328d('0x3')][_0x328d('0x1d')](_0x3effe6=>{if(_0x328d('0x23')==_0x3effe6[_0x328d('0x11')]||_0x328d('0x55')==_0x3effe6['type']){const _0x41bcfd=_0x3effe6['getContainedElement']();if(_0x41bcfd&&_0x41bcfd['is'](_0x328d('0x56'),_0x328d('0x5')))return{'type':_0x328d('0x23')==_0x3effe6['type']?'addObject':_0x328d('0x4e'),'element':_0x41bcfd,'quantity':0x1};}}),_0x319903[_0x328d('0x3')]['registerDescriptionCallback'](_0x7998d0=>'formatBlock'==_0x7998d0[_0x328d('0x11')]&&_0x328d('0x3d')==_0x7998d0[_0x328d('0x1f')]?{'type':_0x328d('0x34'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x328d('0x31')==_0x7998d0[_0x328d('0x11')]&&'convertBlockImageToInline'==_0x7998d0['subType']?{'type':_0x328d('0x34'),'content':_0x328d('0x5b')}:void 0x0),_0x319903[_0x328d('0x3')]['registerDescriptionCallback'](_0x57fc72=>{if(_0x328d('0x14')!=_0x57fc72[_0x328d('0x11')])return;const {data:_0x34ea3e}=_0x57fc72;if(!_0x34ea3e||_0x328d('0x22')!=_0x34ea3e['key'])return;const _0x1b57f7=_0x34ea3e['newValue'];return _0x1b57f7?{'type':'format','content':_0x17d576(_0x350d4f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b57f7+'\x22')}:{'type':_0x328d('0x34'),'content':_0x17d576(_0x350d4f,_0x328d('0x15'))};}),this[_0x328d('0x40')]();}[_0x328d('0x40')](){const _0x224232=this[_0x328d('0x21')],_0x33d772=_0x224232[_0x328d('0x4a')];_0x224232[_0x328d('0x24')][_0x328d('0x7')](_0x328d('0x35'))[_0x328d('0x3')][_0x328d('0x1d')](_0x4281c2=>{if('formatBlock'!=_0x4281c2[_0x328d('0x11')]&&'formatInline'!=_0x4281c2[_0x328d('0x11')])return;const {data:_0x2b58cf}=_0x4281c2;if(_0x2b58cf){if('imageTextAlternative'==_0x2b58cf[_0x328d('0x20')]){const _0x5f54b1=_0x2b58cf[_0x328d('0x27')][0x0][_0x328d('0x1e')];return _0x5f54b1?{'type':_0x328d('0x34'),'content':_0x17d576(_0x33d772,_0x328d('0x59'),'\x22'+_0x5f54b1+'\x22')}:{'type':'format','content':_0x17d576(_0x33d772,_0x328d('0x15'))};}if(_0x328d('0x3b')==_0x2b58cf['commandName']){const _0x33a5f4=_0x2b58cf['commandParams'][0x0][_0x328d('0x2e')];return _0x33a5f4?{'type':'format','content':_0x17d576(_0x33d772,_0x328d('0x45'),_0x33a5f4)}:{'type':'format','content':_0x17d576(_0x33d772,_0x328d('0x3c'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3096=['getSuggestionCallback','afterInit','has','discard','type','formatBlock','formatInline','ImageEditing','*Replace\x20image\x20URL*','_registerLegacyDescription','accept','registerDescriptionCallback','src','replaceImageSource','plugins','oldValue','key','editor','TrackChangesEditing','_descriptionFactory','_suggestionFactory','_enableDefaultAttributesIntegration','_handleLegacySuggestions','*Format:*\x20replace\x20image\x20URL','locale','get','format','registerCustomCallback'];(function(_0x2a4962,_0x30963d){const _0x5a0272=function(_0x3caf76){while(--_0x3caf76){_0x2a4962['push'](_0x2a4962['shift']());}};_0x5a0272(++_0x30963d);}(_0x3096,0x115));const _0x5a02=function(_0x2a4962,_0x30963d){_0x2a4962=_0x2a4962-0x0;let _0x5a0272=_0x3096[_0x2a4962];return _0x5a0272;};import{Plugin as _0x1c4f35}from'ckeditor5/src/core.js';import{getTranslation as _0x42a8a7}from'../utils/common-translations.js';export default class st extends _0x1c4f35{[_0x5a02('0x4')](){if(!this[_0x5a02('0x14')][_0x5a02('0x11')][_0x5a02('0x5')](_0x5a02('0xa')))return;const _0x7ef143=this[_0x5a02('0x14')][_0x5a02('0x1b')],_0x15315d=this['editor'][_0x5a02('0x11')][_0x5a02('0x0')](_0x5a02('0x15'));_0x15315d[_0x5a02('0x18')](_0x5a02('0x10'),[],[_0x5a02('0xf')]),_0x15315d[_0x5a02('0x16')][_0x5a02('0xe')](_0x30cf67=>{if('attribute'!=_0x30cf67[_0x5a02('0x7')])return;const {data:_0x20948a}=_0x30cf67;return _0x20948a&&_0x5a02('0xf')==_0x20948a[_0x5a02('0x13')]?_0x20948a['newValue']&&_0x20948a[_0x5a02('0x12')]?{'type':'format','content':_0x42a8a7(_0x7ef143,_0x5a02('0xb'))}:{'type':_0x5a02('0x1'),'content':''}:void 0x0;}),this[_0x5a02('0x19')]();}['_handleLegacySuggestions'](){const _0xa4770=this[_0x5a02('0x14')][_0x5a02('0x11')]['get'](_0x5a02('0x15'));_0xa4770[_0x5a02('0x17')][_0x5a02('0x2')](_0x5a02('0x8'),_0x5a02('0x10'),_0x5a02('0xd'),_0xa4770['_suggestionFactory']['getSuggestionCallback'](_0x5a02('0x8'),null,_0x5a02('0x6'))),_0xa4770['_suggestionFactory'][_0x5a02('0x2')](_0x5a02('0x8'),'replaceImageSource','discard',_0xa4770[_0x5a02('0x17')][_0x5a02('0x3')]('formatBlock',null,_0x5a02('0xd'))),this['_registerLegacyDescription']();}[_0x5a02('0xc')](){const _0x40def2=this[_0x5a02('0x14')],_0x251e53=_0x40def2[_0x5a02('0x1b')];_0x40def2[_0x5a02('0x11')][_0x5a02('0x0')](_0x5a02('0x15'))[_0x5a02('0x16')][_0x5a02('0xe')](_0x40bdb6=>{if(_0x5a02('0x8')!=_0x40bdb6[_0x5a02('0x7')]&&_0x5a02('0x9')!=_0x40bdb6[_0x5a02('0x7')])return;const {data:_0x31a130}=_0x40bdb6;if(!_0x31a130||_0x5a02('0x10')!=_0x31a130['commandName'])return;return{'type':_0x5a02('0x1'),'content':_0x42a8a7(_0x251e53,_0x5a02('0x1a'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c19=['commands','imageTypeBlock','suggestion','registerPostFixer','imageStyle','imageStylePostApply','afterInit','name','refresh','imageTypeInline','get','join','plugins','getContainedElement','findIndex','isBlockImage','model','convertInlineImageToBlock','length','getFirstRange','isOwn','registerDescriptionCallback','author','isInlineImage','value','newRange','FORMAT_SIDE_IMAGE','document','getClosestSelectedImageElement','isInContent','filter','nodeBefore','next','TrackChangesEditing','formatInline','markBlockFormat','_descriptionFactory','registerCustomCallback','_registerLegacyDescription','commandReversedParams','getSuggestions','editor','discard','commandName','isBefore','title','chain','imageStylePreApply','selection','discardSuggestion','getSuggestionCallback','getSuggestion','imageCaption','change','commandParams','accept','locale','setImageNaturalSizeAttributes','formatBlock','side','_suggestionFactory','shouldConvertImageType','nodeAfter','enableCommand','markInlineFormat','type','ImageUtils','start','_findSuggestions','differ','subType','*Format:*\x20%0','isEqual','isIntersecting','insertion','end','ImageStyleEditing'];(function(_0x5c273b,_0x2c1993){const _0x4af846=function(_0x5dfc7d){while(--_0x5dfc7d){_0x5c273b['push'](_0x5c273b['shift']());}};_0x4af846(++_0x2c1993);}(_0x2c19,0x1e7));const _0x4af8=function(_0x5c273b,_0x2c1993){_0x5c273b=_0x5c273b-0x0;let _0x4af846=_0x2c19[_0x5c273b];return _0x4af846;};import{Plugin as _0x24e06d}from'ckeditor5/src/core.js';import{uid as _0x49549e}from'ckeditor5/src/utils.js';import{getTranslation as _0x17f443}from'../utils/common-translations.js';export default class nt extends _0x24e06d{[_0x4af8('0x3a')](){const _0x10bd42=this[_0x4af8('0x10')];if(!_0x10bd42['plugins']['has'](_0x4af8('0x33')))return;const _0x2811bb=_0x10bd42[_0x4af8('0x40')][_0x4af8('0x3e')](_0x4af8('0x8')),_0x17565d=_0x10bd42[_0x4af8('0x40')]['get'](_0x4af8('0x29')),_0x43860a={};_0x2811bb[_0x4af8('0x26')](_0x4af8('0x38'),(_0x325c0b,_0x279830)=>{const _0xd2e63c=_0x10bd42['plugins'][_0x4af8('0x3e')]('Users')['me'],_0xbaf674=_0x10bd42['commands'][_0x4af8('0x3e')](_0x4af8('0x38'));let _0x58cf5f=_0x17565d[_0x4af8('0x3')](_0x10bd42[_0x4af8('0x44')][_0x4af8('0x2')][_0x4af8('0x17')]),_0x4148ae=_0x10bd42[_0x4af8('0x44')]['createRangeOn'](_0x58cf5f),_0x214241=_0xbaf674[_0x4af8('0x4c')];if(_0x214241==_0x279830[_0x4af8('0x4c')])return;const _0x387b0e={'commandName':_0x4af8('0x38'),'commandParams':[_0x279830],'formatGroupId':_0x49549e()};_0x10bd42[_0x4af8('0x44')][_0x4af8('0x1c')](()=>{if(_0x2811bb[_0x4af8('0xf')]()[_0x4af8('0x5')](_0x29ad9b=>_0x29ad9b[_0x4af8('0x4')]&&_0xd2e63c==_0x29ad9b[_0x4af8('0x4a')]&&(_0x4af8('0x21')==_0x29ad9b[_0x4af8('0x28')]||'formatInline'==_0x29ad9b[_0x4af8('0x28')])&&('imageStylePreApply'==_0x29ad9b[_0x4af8('0x2d')]||_0x4af8('0x39')==_0x29ad9b[_0x4af8('0x2d')])&&_0x29ad9b[_0x4af8('0x47')]()[_0x4af8('0x2f')](_0x4148ae))['forEach'](_0x5fca5=>_0x2811bb['discardSuggestion'](_0x5fca5['head'])),_0x58cf5f=_0x17565d[_0x4af8('0x3')](_0x10bd42[_0x4af8('0x44')]['document']['selection']),_0x4148ae=_0x10bd42[_0x4af8('0x44')]['createRangeOn'](_0x58cf5f),_0xbaf674[_0x4af8('0x3c')](),_0x10bd42[_0x4af8('0x34')][_0x4af8('0x3e')](_0x4af8('0x3d'))['refresh'](),_0x10bd42['commands'][_0x4af8('0x3e')](_0x4af8('0x35'))[_0x4af8('0x3c')](),_0x214241=_0xbaf674[_0x4af8('0x4c')],_0x214241!=_0x279830['value'])return _0x17565d[_0x4af8('0x4b')](_0x58cf5f)&&_0xbaf674[_0x4af8('0x24')](_0x279830[_0x4af8('0x4c')],_0x58cf5f)?(_0x325c0b({..._0x279830,'setImageSizes':!0x1}),_0x58cf5f=_0x17565d[_0x4af8('0x3')](_0x10bd42[_0x4af8('0x44')]['document']['selection']),void _0x2811bb[_0x4af8('0xa')](_0x58cf5f,{..._0x387b0e,'commandReversedParams':[{'value':_0x214241||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x17565d[_0x4af8('0x43')](_0x58cf5f)?_0x2811bb[_0x4af8('0xa')](_0x58cf5f,_0x387b0e,[],_0x4af8('0x39')):_0x2811bb[_0x4af8('0x27')](_0x4148ae,_0x387b0e,_0x4af8('0x39')));});});for(const _0x5a8dc0 of _0x10bd42[_0x4af8('0x40')][_0x4af8('0x3e')](_0x4af8('0x33'))['normalizedStyles'])_0x43860a[_0x5a8dc0[_0x4af8('0x3b')]]=_0x5a8dc0[_0x4af8('0x14')]['toLowerCase']();_0x2811bb['_suggestionFactory']['registerCustomCallback'](_0x4af8('0x21'),_0x4af8('0x16'),'join',()=>!0x1),_0x2811bb[_0x4af8('0x23')]['registerCustomCallback']('formatBlock','imageStylePostApply',_0x4af8('0x3f'),()=>!0x1),_0x2811bb[_0x4af8('0x23')][_0x4af8('0xc')]('formatInline','imageStylePostApply',_0x4af8('0x3f'),()=>!0x1),_0x2811bb[_0x4af8('0x23')][_0x4af8('0xc')]('formatBlock','imageStylePreApply',_0x4af8('0x1e'),([_0x1ffd57])=>{_0x17565d[_0x4af8('0x20')](_0x1ffd57[_0x4af8('0x41')]());}),_0x2811bb[_0x4af8('0x23')][_0x4af8('0xc')](_0x4af8('0x21'),_0x4af8('0x16'),_0x4af8('0x11'),(_0x15a5e1,_0x58c7d2)=>{_0x2811bb['_suggestionFactory'][_0x4af8('0x19')](_0x4af8('0x21'),'',_0x4af8('0x1e'))(_0x15a5e1,{'commandName':_0x58c7d2[_0x4af8('0x12')],'commandParams':_0x58c7d2[_0x4af8('0xe')]});}),_0x2811bb['_suggestionFactory'][_0x4af8('0xc')]('formatBlock','imageStylePreApply',_0x4af8('0x15'),function(_0xd6f29f,_0x16fc2e){if(_0x536695(_0xd6f29f,_0x16fc2e))return[_0xd6f29f,_0x16fc2e];if(_0x536695(_0x16fc2e,_0xd6f29f))return[_0x16fc2e,_0xd6f29f];return null;});const _0xd6f885=[{'type':_0x4af8('0x21'),'subType':_0x4af8('0x16')},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':_0x4af8('0x45')},{'type':_0x4af8('0x31'),'subType':_0x4af8('0x45')}];function _0x536695(_0x5221e3,_0x39e1ec){const _0x46b720=_0xd6f885[_0x4af8('0x42')](({type:_0xe2e230,subType:_0x492c14})=>_0x5221e3[_0x4af8('0x28')]==_0xe2e230&&_0x5221e3[_0x4af8('0x2d')]==_0x492c14),_0x2dd986=_0xd6f885['findIndex'](({type:_0x49a2a5,subType:_0x3ba1ec})=>_0x39e1ec[_0x4af8('0x28')]==_0x49a2a5&&_0x39e1ec['subType']==_0x3ba1ec);if(_0x46b720<0x0||_0x2dd986<0x0)return!0x1;const _0x592faa=_0x5221e3['getFirstRange'](),_0x20004e=_0x39e1ec[_0x4af8('0x47')]();if((0x0==_0x46b720||0x1==_0x46b720)&&0x2==_0x2dd986&&_0x592faa[_0x4af8('0x30')](_0x20004e))return!0x0;if(0x2==_0x46b720&&0x3==_0x2dd986){const _0x4936b7=_0x2811bb[_0x4af8('0x2b')](_0x592faa,'insertion')['filter'](({suggestion:_0x2f59ad,meta:_0x5c44fa})=>_0x5c44fa[_0x4af8('0x48')]&&_0x4af8('0x45')==_0x2f59ad[_0x4af8('0x2d')]);if(_0x4936b7[_0x4af8('0x46')]>0x1&&_0x20004e['end']['isEqual'](_0x592faa[_0x4af8('0x2a')]))return!0x0;if(0x1==_0x4936b7['length']&&(_0x592faa[_0x4af8('0x2a')][_0x4af8('0x2f')](_0x20004e[_0x4af8('0x32')])||_0x592faa[_0x4af8('0x32')][_0x4af8('0x2f')](_0x20004e['start'])))return!0x0;}if(0x3==_0x46b720&&0x3==_0x2dd986&&_0x592faa['start'][_0x4af8('0x13')](_0x20004e[_0x4af8('0x2a')])){const _0x481a07=_0x592faa[_0x4af8('0x32')][_0x4af8('0x25')],_0x102b0a=_0x20004e[_0x4af8('0x2a')][_0x4af8('0x6')];return _0x17565d['isBlockImage'](_0x481a07)&&_0x481a07===_0x102b0a;}return!0x1;}_0x10bd42[_0x4af8('0x44')][_0x4af8('0x2')][_0x4af8('0x37')](()=>{let _0x4bafc2=!0x1;const _0x37e448=Array['from'](_0x10bd42[_0x4af8('0x44')][_0x4af8('0x2')][_0x4af8('0x2c')]['getChangedMarkers']());for(const {name:_0x3226a8,data:_0x47c9bf}of _0x37e448){const {group:_0x48b1de,type:_0x5ba5fa,subType:_0x215bbd,id:_0x4605c9}=_0x2811bb['_splitMarkerName'](_0x3226a8);if(_0x4af8('0x36')==_0x48b1de&&_0x2811bb['hasSuggestion'](_0x4605c9)){if('formatBlock'==_0x5ba5fa&&(_0x4af8('0x16')==_0x215bbd||'imageStylePostApply'==_0x215bbd)){const _0x169d80=_0x2811bb[_0x4af8('0x1a')](_0x4605c9);if(_0x47c9bf[_0x4af8('0x0')]){const _0x8b8546=_0x169d80[_0x4af8('0x47')]()[_0x4af8('0x41')]();if(_0x17565d['isBlockImage'](_0x8b8546))continue;_0x2811bb[_0x4af8('0x18')](_0x169d80),_0x4bafc2=!0x0;}}if(_0x4af8('0x31')==_0x5ba5fa&&_0x4af8('0x1b')==_0x215bbd&&!_0x47c9bf[_0x4af8('0x0')]){const _0x5234c4=_0x2811bb[_0x4af8('0x1a')](_0x4605c9);_0x5234c4['next']&&_0x5234c4[_0x4af8('0x7')]['isInContent']&&(_0x2811bb[_0x4af8('0x18')](_0x5234c4['next']),_0x4bafc2=!0x0);}}}return _0x4bafc2;}),this[_0x4af8('0xd')](_0x43860a);}[_0x4af8('0xd')](_0x1b55e8){const _0x5ce58a=this[_0x4af8('0x10')],_0x59eeae=_0x5ce58a[_0x4af8('0x1f')];_0x5ce58a[_0x4af8('0x40')]['get'](_0x4af8('0x8'))[_0x4af8('0xb')][_0x4af8('0x49')](_0xd9f40=>{if('formatBlock'!=_0xd9f40[_0x4af8('0x28')]&&_0x4af8('0x9')!=_0xd9f40[_0x4af8('0x28')])return;const {data:_0x1540b4}=_0xd9f40;if(!_0x1540b4||_0x4af8('0x38')!=_0x1540b4[_0x4af8('0x12')])return;const _0x1db199=_0x1540b4[_0x4af8('0x1d')][0x0][_0x4af8('0x4c')];return _0x10d996(_0x4af8('0x22')===_0x1db199?_0x17f443(_0x59eeae,_0x4af8('0x1')):_0x1b55e8[_0x1db199]||_0x1db199);function _0x10d996(_0x212399){return{'type':'format','content':_0x17f443(_0x59eeae,_0x4af8('0x2e'),_0x212399)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x286a=['value','track_changes','lowest','plugins','listenTo','Users','get','dataInsert','execute','commands','_trackChangesExecuted','_trackChangesValueDuringImport','trackChanges','enableCommand','importWord','afterInit','TrackChangesEditing','collaboration_features','editor','_handleImportedData','high'];(function(_0x4af10a,_0x286aa8){const _0x16cc45=function(_0x231a07){while(--_0x231a07){_0x4af10a['push'](_0x4af10a['shift']());}};_0x16cc45(++_0x286aa8);}(_0x286a,0x19f));const _0x16cc=function(_0x4af10a,_0x286aa8){_0x4af10a=_0x4af10a-0x0;let _0x16cc45=_0x286a[_0x4af10a];return _0x16cc45;};import{Plugin as _0x3d1872}from'ckeditor5/src/core.js';export default class ot extends _0x3d1872{constructor(_0x1e9835){super(_0x1e9835),this[_0x16cc('0x10')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x16cc('0x14')](){const _0x258a02=this[_0x16cc('0x2')],_0x1dbfb4=_0x258a02[_0x16cc('0xe')]['get'](_0x16cc('0x13')),_0x51ffa9=_0x258a02[_0x16cc('0xe')][_0x16cc('0xb')](_0x16cc('0x11'));_0x1dbfb4&&(_0x1dbfb4['on']('execute',(_0x53b50e,[,_0x34ec71])=>{this[_0x16cc('0x10')]=_0x51ffa9[_0x16cc('0x5')],_0x34ec71[_0x16cc('0x1')][_0x16cc('0x6')]=!this[_0x16cc('0x10')];},{'priority':_0x16cc('0x4')}),this[_0x16cc('0x9')](_0x1dbfb4,'dataInsert',this['_handleImportedData']['bind'](this)),this[_0x16cc('0x9')](_0x1dbfb4,_0x16cc('0xc'),()=>{this[_0x16cc('0xf')]&&(_0x51ffa9[_0x16cc('0xd')](),this[_0x16cc('0xf')]=!0x1);},{'priority':_0x16cc('0x7')}),_0x258a02['plugins'][_0x16cc('0xb')](_0x16cc('0x0'))[_0x16cc('0x12')](_0x16cc('0x13')));}[_0x16cc('0x3')](_0x2b4267,_0x1d719a){const {suggestions:_0x457537}=_0x1d719a,_0x15d5c7=this[_0x16cc('0x2')]['commands'][_0x16cc('0xb')](_0x16cc('0x11')),_0x3ac6d7=_0x15d5c7[_0x16cc('0x5')];this[_0x16cc('0x10')]!==_0x3ac6d7&&(_0x15d5c7[_0x16cc('0xd')](),this[_0x16cc('0xf')]=!0x0),_0x457537&&_0x457537['forEach'](({id:_0x596ffa,type:_0x920c26,author:_0x54ddbd,created_at:_0x31bdda})=>{const _0x10f2b0={'id':_0x596ffa,'type':_0x920c26,'authorId':this[_0x16cc('0x2')][_0x16cc('0x8')]['get'](_0x16cc('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x54ddbd,'createdAt':_0x31bdda?new Date(_0x31bdda):new Date(),'source':'importWord'}}};this[_0x16cc('0x2')][_0x16cc('0x8')]['get'](_0x16cc('0x0'))['_setSuggestionData'](_0x10f2b0);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10b3=['formatBlock','_registerBlockAttribute','editor','plugins','indent','registerDescriptionCallback','_enableDefaultAttributesIntegration','getItemLabel','outdent','_descriptionFactory','outdentBlock','indentBlock','locale','commandName','type','getItems','FORMAT_INDENT','get','has','TrackChangesEditing','format','IndentEditing','IndentBlock','*Indent:*\x20%0','enableCommand','registerAttributeLabel','*Outdent:*\x20%0','_registerLegacyDescription','blockIndent'];(function(_0x5673b3,_0x10b3ea){const _0x1f57b1=function(_0x4cea49){while(--_0x4cea49){_0x5673b3['push'](_0x5673b3['shift']());}};_0x1f57b1(++_0x10b3ea);}(_0x10b3,0x1cf));const _0x1f57=function(_0x5673b3,_0x10b3ea){_0x5673b3=_0x5673b3-0x0;let _0x1f57b1=_0x10b3[_0x5673b3];return _0x1f57b1;};import{Plugin as _0x1a73b2}from'ckeditor5/src/core.js';import{getTranslation as _0x2cedf0}from'../utils/common-translations.js';export default class rt extends _0x1a73b2{['afterInit'](){const _0x316218=this[_0x1f57('0x3')],_0x2fd91e=_0x316218[_0x1f57('0x4')][_0x1f57('0x12')]('TrackChangesEditing');if(_0x316218['plugins'][_0x1f57('0x13')](_0x1f57('0x16'))&&(_0x2fd91e[_0x1f57('0x19')](_0x1f57('0x5')),_0x2fd91e['enableCommand'](_0x1f57('0x9'))),_0x316218[_0x1f57('0x4')][_0x1f57('0x13')](_0x1f57('0x17')))for(const _0x362b02 of[_0x1f57('0xc'),'outdentBlock'])_0x2fd91e[_0x1f57('0x7')](_0x362b02);const _0x4a72fc=_0x316218['locale'];_0x2fd91e[_0x1f57('0x2')]('blockIndent'),_0x2fd91e[_0x1f57('0xa')][_0x1f57('0x1a')](_0x1f57('0x0'),_0x2cedf0(_0x4a72fc,_0x1f57('0x11'))),this[_0x1f57('0x1c')]();}['_registerLegacyDescription'](){const _0xcabc0e=this['editor'],_0x56fb49=_0xcabc0e[_0x1f57('0xd')],_0x4e21fb=_0xcabc0e['plugins']['get'](_0x1f57('0x14'));_0x4e21fb[_0x1f57('0xa')][_0x1f57('0x6')](_0x542590=>{if(_0x1f57('0x1')!=_0x542590[_0x1f57('0xf')])return;const {data:_0x4d1f46}=_0x542590;if(!_0x4d1f46)return;if(_0x1f57('0xc')!=_0x4d1f46[_0x1f57('0xe')]&&_0x1f57('0xb')!=_0x4d1f46[_0x1f57('0xe')])return;const _0x3723f3=_0x542590[_0x1f57('0x10')]()[0x0],_0x3f9367=_0x4e21fb['_descriptionFactory'][_0x1f57('0x8')](_0x3723f3);return _0x1f57('0xc')==_0x4d1f46[_0x1f57('0xe')]?{'type':_0x1f57('0x15'),'content':_0x2cedf0(_0x56fb49,_0x1f57('0x18'),_0x3f9367)}:_0x1f57('0xb')==_0x4d1f46[_0x1f57('0xe')]?{'type':_0x1f57('0x15'),'content':_0x2cedf0(_0x56fb49,_0x1f57('0x1b'),_0x3f9367)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cc0=['init','editor','plugins','input','enableCommand','get'];(function(_0x491021,_0x1cc072){var _0x5e3a52=function(_0x4148e5){while(--_0x4148e5){_0x491021['push'](_0x491021['shift']());}};_0x5e3a52(++_0x1cc072);}(_0x1cc0,0x197));var _0x5e3a=function(_0x491021,_0x1cc072){_0x491021=_0x491021-0x0;var _0x5e3a52=_0x1cc0[_0x491021];return _0x5e3a52;};import{Plugin as _0x59ac0f}from'ckeditor5/src/core.js';import{Input as _0x3d8ce7}from'ckeditor5/src/typing.js';export default class at extends _0x59ac0f{static get['requires'](){return[_0x3d8ce7];}[_0x5e3a('0x1')](){this[_0x5e3a('0x2')][_0x5e3a('0x3')][_0x5e3a('0x0')]('TrackChangesEditing')[_0x5e3a('0x5')](_0x5e3a('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4382=['type','afterInit','registerElementLabel','createPositionAt','model','bulletedList','filter','editor','replace','listIndent','change','markBlockFormat','bulleted','format','todoListChecked','List','parent','get','listItem','numberedList','commandParams','ELEMENT_LIST_ITEM','push','commandName','value','document','createRange','enableCommand','_descriptionFactory','selection','*Check\x20item*','LegacyTodoListEditing','ELEMENT_NUMBERED_LIST','ELEMENT_TODO_LIST','execute','checkTodoList','formatInline','registerDescriptionCallback','numbered','plugins','forceValue','*Change\x20to:*\x20%0','_selectedElements','has','indentList','ELEMENT_BULLETED_LIST','nextSibling','length','getAttribute','getSelectedBlocks','outdentList','element','todoList','isObject','name','formatBlock','checkChild','todo','paragraph','TrackChangesEditing','*Indent:*\x20%0','from','blockName','add','LegacyListEditing','*Uncheck\x20item*','before','findIndex','locale','previousSibling','slice'];(function(_0xa5fcd5,_0x438219){const _0xfd8cf3=function(_0x8ebd9e){while(--_0x8ebd9e){_0xa5fcd5['push'](_0xa5fcd5['shift']());}};_0xfd8cf3(++_0x438219);}(_0x4382,0x8f));const _0xfd8c=function(_0xa5fcd5,_0x438219){_0xa5fcd5=_0xa5fcd5-0x0;let _0xfd8cf3=_0x4382[_0xa5fcd5];return _0xfd8cf3;};import{Plugin as _0x1eab5c}from'ckeditor5/src/core.js';import{getTranslation as _0x244f56}from'../utils/common-translations.js';export default class ut extends _0x1eab5c{[_0xfd8c('0x0')](){const _0x4a6eb3=this[_0xfd8c('0x6')],_0x4016f3=_0x4a6eb3[_0xfd8c('0x43')];if(!_0x4a6eb3[_0xfd8c('0x26')]['has'](_0xfd8c('0x3f')))return;const _0x5e4205=_0x4a6eb3[_0xfd8c('0x26')]['get'](_0xfd8c('0x3a')),_0x106625=_0x4a6eb3['plugins'][_0xfd8c('0x2a')](_0xfd8c('0x1e'));function _0x36039e(_0x35c1d8){return()=>{const _0x482f2c=_0x4a6eb3[_0xfd8c('0x3')][_0xfd8c('0x18')][_0xfd8c('0x1c')],_0x13b11f=_0x4a6eb3['commands']['get'](_0x35c1d8);if(_0x13b11f[_0xfd8c('0x17')])return void _0x4a6eb3[_0xfd8c('0x21')](_0xfd8c('0x39'),{});const _0x20e347=_0x35c1d8['slice'](0x0,-0x4),_0x222c9f=function(_0x40cb76,_0x1cd773,_0x40e950){let _0x4b8b1d=Array[_0xfd8c('0x3c')](_0x40cb76)[_0xfd8c('0x5')](_0x4e791e=>function(_0x3c6978,_0x32096a){return _0x32096a[_0xfd8c('0x37')](_0x3c6978[_0xfd8c('0xf')],_0xfd8c('0x11'))&&!_0x32096a[_0xfd8c('0x34')](_0x3c6978);}(_0x4e791e,_0x40e950));_0x4b8b1d=_0x4b8b1d[_0xfd8c('0x5')](_0x286046=>!_0x286046['is'](_0xfd8c('0x32'),_0xfd8c('0x11'))||_0x286046[_0xfd8c('0x2f')]('listType')!=_0x1cd773);const _0x30c4f8=new Set();for(const _0x56b743 of _0x4b8b1d)_0x56b743['is'](_0xfd8c('0x32'),_0xfd8c('0x11'))?_0x30c4f8['add'](ne(_0x56b743)):_0x30c4f8[_0xfd8c('0x3e')](_0x56b743);return Array[_0xfd8c('0x3c')](_0x30c4f8);}(_0x482f2c[_0xfd8c('0x30')](),_0x20e347,_0x4a6eb3[_0xfd8c('0x3')]['schema']);_0x4a6eb3[_0xfd8c('0x3')][_0xfd8c('0x9')](()=>{for(const _0x3cec6b of _0x222c9f)_0x5e4205[_0xfd8c('0xa')](_0x3cec6b,{'commandName':_0x35c1d8,'commandParams':[{'forceValue':!_0x13b11f['value']}],'formatGroupId':_0xfd8c('0x3d')},oe(_0x3cec6b));});};}function _0x14ef64(_0x25cbd9){return()=>{const _0x1a879e=function(_0xe510f1){let _0xc5bb90=Array[_0xfd8c('0x3c')](_0xe510f1);const _0x3df1c7=_0xc5bb90[_0xfd8c('0x42')](_0x16bb82=>'listItem'!=_0x16bb82[_0xfd8c('0x35')]);return _0x3df1c7>-0x1&&(_0xc5bb90=_0xc5bb90[_0xfd8c('0x45')](0x0,_0x3df1c7)),_0xc5bb90;}(_0x4a6eb3[_0xfd8c('0x3')][_0xfd8c('0x18')][_0xfd8c('0x1c')]['getSelectedBlocks']()),_0x459e61=_0x4a6eb3['model'][_0xfd8c('0x19')](_0x4a6eb3['model'][_0xfd8c('0x2')](_0x1a879e[0x0],_0xfd8c('0x41')),_0x4a6eb3[_0xfd8c('0x3')][_0xfd8c('0x2')](_0x1a879e[_0x1a879e[_0xfd8c('0x2e')]-0x1],'end'));_0x4a6eb3[_0xfd8c('0x3')][_0xfd8c('0x9')](()=>{_0x5e4205[_0xfd8c('0xa')](_0x459e61,{'commandName':_0x25cbd9,'commandParams':[],'formatGroupId':_0xfd8c('0x8')},function(_0x18d2c3){const _0x1745c9=new Set();for(const _0x2ead38 of _0x18d2c3){let _0x30e48f=_0x2ead38[_0xfd8c('0x2d')];for(;_0x30e48f&&_0x30e48f[_0xfd8c('0x2f')](_0xfd8c('0x8'))>_0x2ead38['getAttribute']('listIndent');)_0x1745c9[_0xfd8c('0x3e')](_0x30e48f),_0x30e48f=_0x30e48f['nextSibling'];}return Array['from'](_0x1745c9);}(_0x1a879e));});};}_0x5e4205['enableCommand'](_0xfd8c('0x12'),_0x36039e('numberedList')),_0x5e4205[_0xfd8c('0x1a')](_0xfd8c('0x4'),_0x36039e(_0xfd8c('0x4'))),_0x106625&&_0x5e4205[_0xfd8c('0x1a')](_0xfd8c('0x33'),_0x36039e('todoList')),_0x5e4205[_0xfd8c('0x1a')]('indentList',_0x14ef64(_0xfd8c('0x2b'))),_0x5e4205[_0xfd8c('0x1a')](_0xfd8c('0x31'),_0x14ef64('outdentList')),_0x106625&&_0x5e4205[_0xfd8c('0x1a')]('checkTodoList',()=>{const _0x22c09b=_0x4a6eb3['commands'][_0xfd8c('0x10')](_0xfd8c('0x22')),_0x318350=Array[_0xfd8c('0x3c')](_0x22c09b[_0xfd8c('0x29')]);_0x318350[_0xfd8c('0x5')](_0x20c9f2=>_0x20c9f2[_0xfd8c('0x2f')](_0xfd8c('0xd'))!=_0x22c09b[_0xfd8c('0x17')]),_0x4a6eb3['model'][_0xfd8c('0x9')](()=>{for(const _0x33f4b1 of _0x318350)_0x5e4205[_0xfd8c('0xa')](_0x33f4b1,{'commandName':_0xfd8c('0x22'),'commandParams':[{'forceValue':!_0x22c09b[_0xfd8c('0x17')]}]});});}),_0x5e4205[_0xfd8c('0x1b')][_0xfd8c('0x1')](_0xfd8c('0x11'),_0x115a3b=>_0x244f56(_0x4016f3,_0xfd8c('0x14'),_0x115a3b)),_0x5e4205[_0xfd8c('0x1b')][_0xfd8c('0x24')](_0x52b117=>{if(_0xfd8c('0x36')!=_0x52b117[_0xfd8c('0x46')]&&_0xfd8c('0x23')!=_0x52b117[_0xfd8c('0x46')])return;const {data:_0x1dd04a}=_0x52b117;if(_0x1dd04a){if(_0xfd8c('0x12')==_0x1dd04a[_0xfd8c('0x16')]||_0xfd8c('0x4')==_0x1dd04a[_0xfd8c('0x16')]||_0xfd8c('0x33')==_0x1dd04a[_0xfd8c('0x16')])switch(_0x1dd04a[_0xfd8c('0x16')][_0xfd8c('0x7')](_0xfd8c('0xe'),'')){case _0xfd8c('0xb'):return _0x3de47b(_0x244f56(_0x4016f3,_0xfd8c('0x2c')));case _0xfd8c('0x25'):return _0x3de47b(_0x244f56(_0x4016f3,_0xfd8c('0x1f')));case _0xfd8c('0x38'):return _0x3de47b(_0x244f56(_0x4016f3,_0xfd8c('0x20')));}if(_0xfd8c('0x2b')==_0x1dd04a['commandName'])return{'type':_0xfd8c('0xc'),'content':_0x244f56(_0x4016f3,_0xfd8c('0x3b'),_0x244f56(_0x4016f3,_0xfd8c('0x14')))};if(_0xfd8c('0x31')==_0x1dd04a[_0xfd8c('0x16')])return{'type':_0xfd8c('0xc'),'content':_0x244f56(_0x4016f3,'*Outdent:*\x20%0',_0x244f56(_0x4016f3,_0xfd8c('0x14')))};if(_0xfd8c('0x22')==_0x1dd04a[_0xfd8c('0x16')])return _0x1dd04a[_0xfd8c('0x13')][0x0][_0xfd8c('0x27')]?{'type':'format','content':_0x244f56(_0x4016f3,_0xfd8c('0x1d'))}:{'type':_0xfd8c('0xc'),'content':_0x244f56(_0x4016f3,_0xfd8c('0x40'))};}function _0x3de47b(_0x3e8dc8){return{'type':'format','content':_0x244f56(_0x4016f3,_0xfd8c('0x28'),_0x3e8dc8)};}});}}function ne(_0x2e6508){const _0xa5d53=_0x2e6508[_0xfd8c('0x2f')](_0xfd8c('0x8'));if(0x0==_0xa5d53)return _0x2e6508;let _0x479610=_0x2e6508;for(;_0x2e6508[_0xfd8c('0x44')]&&_0x2e6508[_0xfd8c('0x44')]['is'](_0xfd8c('0x32'),_0xfd8c('0x11'));){const _0x3a0dd8=_0x2e6508[_0xfd8c('0x44')][_0xfd8c('0x2f')]('listIndent');if(_0x3a0dd8==_0xa5d53)_0x479610=_0x2e6508[_0xfd8c('0x44')];else{if(_0x3a0dd8<_0xa5d53)break;}_0x2e6508=_0x2e6508['previousSibling'];}return _0x479610;}function oe(_0x418fee){const _0x165985=[];if(_0x418fee['is'](_0xfd8c('0x32'),_0xfd8c('0x11'))&&_0x418fee['getAttribute'](_0xfd8c('0x8'))>0x0){let _0x53cd7e=_0x418fee[_0xfd8c('0x2d')];for(;_0x53cd7e&&'listItem'==_0x53cd7e[_0xfd8c('0x35')]&&_0x53cd7e[_0xfd8c('0x2f')](_0xfd8c('0x8'))==_0x418fee[_0xfd8c('0x2f')]('listIndent');)_0x165985[_0xfd8c('0x15')](_0x53cd7e),_0x53cd7e=_0x53cd7e[_0xfd8c('0x2d')];}return _0x165985;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e83=['LegacyListUtils','forward','*Format:*\x20set\x20start\x20index\x20to\x20%0','unshift','_LIST_','parent','handleDescriptions','formatInline','numbered','afterInit','getSelectedBlocks','getLastPosition','length','createRange','handleListStyleCommand','locale','listStart','push','map','registerDescriptionCallback','handleListStartCommand','handleListReversedCommand','element','editor','format','selection','_getSuggestionBlocks','getFirstPosition','*Change\x20to:*\x20%0','model','before','getSiblingNodes','list.properties','toUpperCase','styles','commandName','createPositionAt','filter','markMultiRangeBlockFormat','plugins','get','type','has','listStyle','change','listType','_descriptionFactory','reversed','*Format:*\x20set\x20order\x20to\x20reversed','replace','listItem','document','listReversed','bind','backward','_getTranslationKeyForListStyle','enableCommand','_getSuggestionBlocksForListStyle','ELEMENT_','*Format:*\x20set\x20order\x20to\x20regular','startIndex','commandParams','getListTypeFromListStyleType'];(function(_0x47b9d1,_0x1e8399){const _0x97d27b=function(_0x3c9bb6){while(--_0x3c9bb6){_0x47b9d1['push'](_0x47b9d1['shift']());}};_0x97d27b(++_0x1e8399);}(_0x1e83,0x191));const _0x97d2=function(_0x47b9d1,_0x1e8399){_0x47b9d1=_0x47b9d1-0x0;let _0x97d27b=_0x1e83[_0x47b9d1];return _0x97d27b;};import{Plugin as _0x1e4a57}from'ckeditor5/src/core.js';import{getTranslation as _0x1c28ea}from'../utils/common-translations.js';export default class K extends _0x1e4a57{[_0x97d2('0x31')](){if(!this[_0x97d2('0x0')][_0x97d2('0x10')][_0x97d2('0x13')]('LegacyListPropertiesEditing'))return;const _0x4ec59b=this[_0x97d2('0x0')]['config'][_0x97d2('0x11')](_0x97d2('0x9')),_0x1d9ed4=this['editor'][_0x97d2('0x10')]['get']('TrackChangesEditing');_0x4ec59b[_0x97d2('0xb')]&&_0x1d9ed4[_0x97d2('0x21')](_0x97d2('0x14'),this[_0x97d2('0x36')]['bind'](this)),_0x4ec59b[_0x97d2('0x18')]&&_0x1d9ed4[_0x97d2('0x21')](_0x97d2('0x1d'),this[_0x97d2('0x3d')][_0x97d2('0x1e')](this)),_0x4ec59b[_0x97d2('0x25')]&&_0x1d9ed4[_0x97d2('0x21')](_0x97d2('0x38'),this['handleListStartCommand'][_0x97d2('0x1e')](this)),_0x1d9ed4[_0x97d2('0x17')][_0x97d2('0x3b')](this[_0x97d2('0x2e')][_0x97d2('0x1e')](this));}[_0x97d2('0x36')](_0x15cc09,_0x6cc141={}){const _0x539285=this[_0x97d2('0x0')]['plugins'][_0x97d2('0x11')]('TrackChangesEditing'),_0x16a0dd=this[_0x97d2('0x22')]();this[_0x97d2('0x0')]['model'][_0x97d2('0x15')](()=>{_0x539285['markMultiRangeBlockFormat'](_0x16a0dd,{'commandName':_0x97d2('0x14'),'commandParams':[{'type':_0x6cc141[_0x97d2('0x12')]}],'formatGroupId':_0x97d2('0x14')});});}[_0x97d2('0x3d')](_0x145da0,_0x5ca456={}){const _0x34d2bf=this['editor'][_0x97d2('0x10')][_0x97d2('0x11')]('TrackChangesEditing'),_0x3e9b33=this[_0x97d2('0x3')](_0x5a49ed=>_0x5a49ed['is'](_0x97d2('0x3e'),_0x97d2('0x1b'))&&'numbered'===_0x5a49ed['getAttribute'](_0x97d2('0x16')));if(_0x3e9b33[_0x97d2('0x34')]<0x1)return;const _0x236a6c=_0x3e9b33[_0x97d2('0x3a')](_0x390169=>this[_0x97d2('0x0')][_0x97d2('0x6')][_0x97d2('0x35')](this[_0x97d2('0x0')]['model'][_0x97d2('0xd')](_0x390169,_0x97d2('0x7')),this[_0x97d2('0x0')][_0x97d2('0x6')]['createPositionAt'](_0x390169,0x0)));this['editor'][_0x97d2('0x6')][_0x97d2('0x15')](()=>{_0x34d2bf[_0x97d2('0xf')](_0x236a6c,{'commandName':'listReversed','commandParams':[{'reversed':_0x5ca456[_0x97d2('0x18')]}],'formatGroupId':'listReversed'});});}[_0x97d2('0x3c')](_0x55e103,_0x2d6bd9={}){const _0x5c554d=this[_0x97d2('0x0')][_0x97d2('0x10')]['get']('TrackChangesEditing'),_0x5046f3=this[_0x97d2('0x3')](_0x1c994f=>_0x1c994f['is'](_0x97d2('0x3e'),_0x97d2('0x1b'))&&_0x97d2('0x30')===_0x1c994f['getAttribute'](_0x97d2('0x16')));if(_0x5046f3['length']<0x1)return;const _0x1ebb78=_0x5046f3[_0x97d2('0x3a')](_0x2d79bc=>this['editor']['model'][_0x97d2('0x35')](this[_0x97d2('0x0')][_0x97d2('0x6')][_0x97d2('0xd')](_0x2d79bc,_0x97d2('0x7')),this[_0x97d2('0x0')][_0x97d2('0x6')]['createPositionAt'](_0x2d79bc,0x0)));this[_0x97d2('0x0')][_0x97d2('0x6')][_0x97d2('0x15')](()=>{_0x5c554d['markMultiRangeBlockFormat'](_0x1ebb78,{'commandName':_0x97d2('0x38'),'commandParams':[{'startIndex':_0x2d6bd9[_0x97d2('0x25')]}],'formatGroupId':_0x97d2('0x38')});});}[_0x97d2('0x2e')](_0x46fb35){if('formatBlock'!=_0x46fb35[_0x97d2('0x12')]&&_0x97d2('0x2f')!=_0x46fb35[_0x97d2('0x12')])return;const _0x4e1432=this[_0x97d2('0x0')][_0x97d2('0x37')],{data:_0x5acef0}=_0x46fb35;if(!_0x5acef0)return;let _0x4cf188,_0x1171d1;switch(_0x5acef0[_0x97d2('0xc')]){case _0x97d2('0x14'):_0x4cf188=_0x97d2('0x5'),_0x1171d1={'type':_0x97d2('0x1'),'content':_0x1c28ea(_0x4e1432,_0x4cf188,_0x1c28ea(_0x4e1432,this[_0x97d2('0x20')](_0x5acef0[_0x97d2('0x26')][0x0]['type'])))};break;case _0x97d2('0x1d'):_0x4cf188=_0x5acef0[_0x97d2('0x26')][0x0][_0x97d2('0x18')]?_0x97d2('0x19'):_0x97d2('0x24'),_0x1171d1={'type':_0x97d2('0x1'),'content':_0x1c28ea(_0x4e1432,_0x4cf188)};break;case'listStart':_0x4cf188=_0x97d2('0x2a'),_0x1171d1={'type':'format','content':_0x1c28ea(_0x4e1432,_0x4cf188,_0x5acef0['commandParams'][0x0][_0x97d2('0x25')])};}return _0x1171d1;}[_0x97d2('0x22')](){var _0x351d85,_0x17a005,_0x2e3479,_0x5e101b;const _0x53d8c5=this[_0x97d2('0x0')][_0x97d2('0x10')][_0x97d2('0x11')](_0x97d2('0x28'));let _0x270556=Array['from'](this[_0x97d2('0x0')][_0x97d2('0x6')][_0x97d2('0x1c')][_0x97d2('0x2')][_0x97d2('0x32')]());return(null===(_0x351d85=_0x270556[0x0])||void 0x0===_0x351d85?void 0x0:_0x351d85['is'](_0x97d2('0x3e'),_0x97d2('0x1b')))&&_0x270556[_0x97d2('0x2b')](..._0x53d8c5[_0x97d2('0x8')](this[_0x97d2('0x0')]['model'][_0x97d2('0x1c')]['selection'][_0x97d2('0x4')](),'backward')),(null===(_0x17a005=_0x270556[_0x270556[_0x97d2('0x34')]-0x1])||void 0x0===_0x17a005?void 0x0:_0x17a005['is']('element',_0x97d2('0x1b')))&&_0x270556[_0x97d2('0x39')](..._0x53d8c5[_0x97d2('0x8')](this[_0x97d2('0x0')][_0x97d2('0x6')]['document']['selection'][_0x97d2('0x33')](),'forward')),_0x270556=[...new Set(_0x270556)],(null===(_0x5e101b=null===(_0x2e3479=this[_0x97d2('0x0')][_0x97d2('0x6')][_0x97d2('0x1c')][_0x97d2('0x2')][_0x97d2('0x4')]())||void 0x0===_0x2e3479?void 0x0:_0x2e3479[_0x97d2('0x2d')])||void 0x0===_0x5e101b?void 0x0:_0x5e101b['is'](_0x97d2('0x3e'),'listItem'))&&(_0x270556=_0x270556[_0x97d2('0xe')](_0x4ffc48=>_0x4ffc48['is']('element',_0x97d2('0x1b')))),_0x270556;}[_0x97d2('0x3')](_0xf057a4){const _0x37bdef=this[_0x97d2('0x0')][_0x97d2('0x10')][_0x97d2('0x11')](_0x97d2('0x28'));let _0x26561d=Array['from'](this['editor'][_0x97d2('0x6')][_0x97d2('0x1c')][_0x97d2('0x2')][_0x97d2('0x32')]())[_0x97d2('0xe')](_0xf057a4)[_0x97d2('0x3a')](_0x102ad3=>{const _0x2cd66d=this['editor'][_0x97d2('0x6')][_0x97d2('0xd')](_0x102ad3,0x0);return[..._0x37bdef['getSiblingNodes'](_0x2cd66d,_0x97d2('0x1f')),..._0x37bdef[_0x97d2('0x8')](_0x2cd66d,_0x97d2('0x29'))];})['flat']();return _0x26561d=[...new Set(_0x26561d)],_0x26561d;}[_0x97d2('0x20')](_0x3025ea){return _0x97d2('0x23')+this[_0x97d2('0x0')]['plugins'][_0x97d2('0x11')](_0x97d2('0x28'))[_0x97d2('0x27')](_0x3025ea)[_0x97d2('0xa')]()+_0x97d2('0x2c')+_0x3025ea['toUpperCase']()[_0x97d2('0x1a')](/-/g,'_');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3db2=['type','commandName','_registerLegacyDescription','_enableDefaultAttributesIntegration','*Set\x20link:*\x20%0','TrackChangesEditing','commandParams','newValue','plugins','map','afterInit','format','link','label','commands','has','linkHref','get','key','unlink','LinkEditing','*Remove\x20link*','registerAttributeLabel','_descriptionFactory','link\x20(','attribute','locale'];(function(_0x207cf7,_0x3db23b){const _0x57986a=function(_0x8f0ebc){while(--_0x8f0ebc){_0x207cf7['push'](_0x207cf7['shift']());}};_0x57986a(++_0x3db23b);}(_0x3db2,0x6c));const _0x5798=function(_0x207cf7,_0x3db23b){_0x207cf7=_0x207cf7-0x0;let _0x57986a=_0x3db2[_0x207cf7];return _0x57986a;};import{Plugin as _0x307a47}from'ckeditor5/src/core.js';import{getTranslation as _0x45cfea}from'../utils/common-translations.js';export default class ct extends _0x307a47{[_0x5798('0xa')](){const _0x1a0a10=this['editor'];if(!_0x1a0a10[_0x5798('0x8')][_0x5798('0xf')](_0x5798('0x14')))return;const _0x11ad41=_0x1a0a10['plugins'][_0x5798('0x11')](_0x5798('0x5')),_0x3f4810=_0x1a0a10[_0x5798('0xe')]['get'](_0x5798('0xc'));_0x11ad41[_0x5798('0x3')]('link',[_0x5798('0x10'),..._0x3f4810['manualDecorators'][_0x5798('0x9')](_0x579a6e=>_0x579a6e['id'])]),_0x11ad41[_0x5798('0x3')](_0x5798('0x13'));for(const _0x50cd71 of _0x3f4810['manualDecorators'])_0x11ad41[_0x5798('0x17')][_0x5798('0x16')](_0x50cd71['id'],_0x5798('0x18')+_0x50cd71[_0x5798('0xd')]['toLowerCase']()+')');_0x11ad41[_0x5798('0x17')]['registerDescriptionCallback'](_0x41d760=>{if(_0x5798('0x19')!=_0x41d760[_0x5798('0x0')])return;const {data:_0x432f5a}=_0x41d760;if(!_0x432f5a||'linkHref'!=_0x432f5a[_0x5798('0x12')])return;const _0x4f377c=_0x432f5a[_0x5798('0x7')],_0xd3a6bb=_0x1a0a10[_0x5798('0x1a')];return{'type':_0x5798('0xb'),'content':null==_0x4f377c?_0x45cfea(_0xd3a6bb,_0x5798('0x15')):_0x45cfea(_0xd3a6bb,_0x5798('0x4'),'\x22'+_0x4f377c+'\x22')};}),this[_0x5798('0x2')]();}['_registerLegacyDescription'](){const _0xb31971=this['editor'],_0x5ada29=_0xb31971['locale'];_0xb31971['plugins'][_0x5798('0x11')](_0x5798('0x5'))['_descriptionFactory']['registerDescriptionCallback'](_0x416295=>{if('formatInline'!=_0x416295['type'])return;const {data:_0x56bba4}=_0x416295;if(_0x56bba4){if(_0x5798('0xc')==_0x56bba4[_0x5798('0x1')]){const _0x421730=_0x56bba4[_0x5798('0x6')][0x0];return{'type':_0x5798('0xb'),'content':_0x45cfea(_0x5ada29,_0x5798('0x4'),'\x22'+_0x421730+'\x22')};}return'unlink'==_0x56bba4['commandName']?{'type':_0x5798('0xb'),'content':_0x45cfea(_0x5ada29,'*Remove\x20link*')}:void 0x0;}});}}
|