@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240204.0 → 0.0.0-nightly-20240206.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 _0x39d8=['high','_descriptionFactory','insert','div','registerElementLabel','ELEMENT_HORIZONTAL_LINE','createPositionAt','ck-horizontal-line','has','TrackChangesEditing','get','editor','horizontalLine','showSuggestionHighlights','elementToStructure','plugins','afterInit','addClass','locale','createContainerElement','createEmptyElement'];(function(_0x652a4a,_0x39d841){const _0x5994b1=function(_0x22ea82){while(--_0x22ea82){_0x652a4a['push'](_0x652a4a['shift']());}};_0x5994b1(++_0x39d841);}(_0x39d8,0x7e));const _0x5994=function(_0x652a4a,_0x39d841){_0x652a4a=_0x652a4a-0x0;let _0x5994b1=_0x39d8[_0x652a4a];return _0x5994b1;};import{Plugin as _0x1045e1}from'ckeditor5/src/core.js';import{getTranslation as _0x1ac222}from'../utils/common-translations.js';export default class tt extends _0x1045e1{[_0x5994('0x10')](){const _0x5e814d=this[_0x5994('0xb')];if(!_0x5e814d[_0x5994('0xf')][_0x5994('0x8')]('HorizontalLineEditing'))return;_0x5e814d[_0x5994('0xf')][_0x5994('0xa')](_0x5994('0x9'))['enableCommand']('horizontalLine');const _0x194d70=_0x5e814d[_0x5994('0xf')][_0x5994('0xa')](_0x5994('0x9')),_0x2e64ed=_0x5e814d[_0x5994('0x12')];_0x194d70[_0x5994('0x1')][_0x5994('0x4')]('horizontalLine',_0x44f4be=>_0x1ac222(_0x2e64ed,_0x5994('0x5'),_0x44f4be)),_0x5e814d['conversion']['for']('dataDowncast')[_0x5994('0xe')]({'model':_0x5994('0xc'),'view':(_0x32c2f2,{writer:_0x384265,options:_0x10d2f8})=>{if(!_0x10d2f8[_0x5994('0xd')])return null;const _0x3280ea=_0x384265[_0x5994('0x13')](_0x5994('0x3')),_0x351f88=_0x384265[_0x5994('0x14')]('hr');return _0x384265[_0x5994('0x11')](_0x5994('0x7'),_0x3280ea),_0x384265[_0x5994('0x2')](_0x384265[_0x5994('0x6')](_0x3280ea,0x0),_0x351f88),_0x3280ea;},'converterPriority':_0x5994('0x0')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x383a=['rawHtml','_descriptionFactory','locale','_enableDefaultAttributesIntegration','attribute','getFirstRange','*Change\x20%0\x20content*','type','TrackChangesEditing','format','HtmlEmbed','nodeAfter','afterInit','htmlEmbed','registerElementLabel','_registerLegacyDescription','key','value','formatBlock','plugins','has','ELEMENT_HTML_EMBED','registerDescriptionCallback','editor','get','commandName'];(function(_0x4a764f,_0x383a44){const _0x430201=function(_0x11466d){while(--_0x11466d){_0x4a764f['push'](_0x4a764f['shift']());}};_0x430201(++_0x383a44);}(_0x383a,0x19d));const _0x4302=function(_0x4a764f,_0x383a44){_0x4a764f=_0x4a764f-0x0;let _0x430201=_0x383a[_0x4a764f];return _0x430201;};import{Plugin as _0x340481}from'ckeditor5/src/core.js';import{getTranslation as _0x3e049b}from'../utils/common-translations.js';export default class et extends _0x340481{[_0x4302('0xf')](){const _0x2d1380=this[_0x4302('0x0')];if(!_0x2d1380['plugins'][_0x4302('0x17')](_0x4302('0xd')))return;const _0x4a00c9=_0x2d1380[_0x4302('0x16')]['get'](_0x4302('0xb')),_0x5255b7=_0x2d1380[_0x4302('0x5')];_0x4a00c9[_0x4302('0x4')][_0x4302('0x11')](_0x4302('0x3'),_0x36448e=>_0x3e049b(_0x5255b7,_0x4302('0x18'),_0x36448e)),_0x4a00c9[_0x4302('0x6')](_0x4302('0x10'),[],[_0x4302('0x14')]),_0x4a00c9['_descriptionFactory'][_0x4302('0x19')](_0x603f6f=>{if(_0x4302('0x7')!=_0x603f6f[_0x4302('0xa')])return;const {data:_0x3dac32}=_0x603f6f;if(_0x3dac32&&_0x4302('0x14')==_0x3dac32[_0x4302('0x13')]&&_0x603f6f[_0x4302('0x8')]()['start'][_0x4302('0xe')]['is']('element',_0x4302('0x3'))){const _0x4525dd=_0x3e049b(_0x5255b7,_0x4302('0x18'));return{'type':_0x4302('0xc'),'content':_0x3e049b(_0x5255b7,_0x4302('0x9'),_0x4525dd)};}}),this[_0x4302('0x12')]();}[_0x4302('0x12')](){const _0x3f8597=this[_0x4302('0x0')],_0x34fa6c=_0x3f8597[_0x4302('0x5')];_0x3f8597[_0x4302('0x16')][_0x4302('0x1')](_0x4302('0xb'))[_0x4302('0x4')][_0x4302('0x19')](_0x1978e8=>{if(_0x4302('0x15')!=_0x1978e8[_0x4302('0xa')])return;const {data:_0x41722f}=_0x1978e8;if(_0x41722f&&_0x4302('0x10')==_0x41722f[_0x4302('0x2')]){const _0x5d6c38=_0x3e049b(_0x34fa6c,_0x4302('0x18'));return{'type':_0x4302('0xc'),'content':_0x3e049b(_0x34fa6c,_0x4302('0x9'),_0x5d6c38)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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'))};}}});}}
|
|
23
|
+
const _0x3856=['document','backward','_registerLegacyDescription','selection','markDeletion','resizedWidth','nodeAfter','removeObject','_suggestionFactory','enableCommand','schema','key','find','ImageUploadEditing','markBlockFormat','accept','element','registerCustomCallback','fromPosition','uploadImage','isCollapsed','convertBlockImageToInline','registerDescriptionCallback','nodeBefore','Block\x20image\x20to\x20inline\x20image','previous','ELEMENT_INLINE_IMAGE','type','registerElementLabel','ELEMENT_IMAGE','toNext','*Remove\x20image\x20text\x20alternative*','commandParams','getClosestSelectedImageElement','forceDefaultExecution','isOwn','getNearestSelectionRange','TrackChangesEditing','formatInline','isBefore','subType','editor','isEqual','plugins','isIntersecting','getFirstRange','*Set\x20image\x20text\x20alternative:*\x20%0','newValue','end','*Set\x20image\x20width:*\x20%0','FORMAT_IMAGE_SIZE','insertImage','markInsertion','detach','locale','resizeImage','start','imageTextAlternative','width','formatBlock','discard','ImageBlockEditing','commandName','imageTypeInline','insertion','length','change','isBlockImage','imageCaption','registerAttributeLabel','imageTypeBlock','has','ImageResize','get','forward','chain','getSuggestionCallback','toggleImageCaption','join','Inline\x20image\x20to\x20block\x20image','convertInlineImageToBlock','ImageEditing','ImageUtils','getCaptionFromImageModelElement','ImageTextAlternativeEditing','_descriptionFactory','createRange','_enableDefaultAttributesIntegration','ImageCaptionUtils','format','findIndex','caption','model','imageStylePreApply'];(function(_0x4a18ce,_0x3856c3){const _0x5a82ba=function(_0x2bafd0){while(--_0x2bafd0){_0x4a18ce['push'](_0x4a18ce['shift']());}};_0x5a82ba(++_0x3856c3);}(_0x3856,0x19b));const _0x5a82=function(_0x4a18ce,_0x3856c3){_0x4a18ce=_0x4a18ce-0x0;let _0x5a82ba=_0x3856[_0x4a18ce];return _0x5a82ba;};import{Plugin as _0x586722}from'ckeditor5/src/core.js';import{LivePosition as _0x1a588f}from'ckeditor5/src/engine.js';import{getTranslation as _0x6e12f1}from'../utils/common-translations.js';export default class it extends _0x586722{['afterInit'](){const _0x1f3c6c=this[_0x5a82('0x6')];if(!_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x24')](_0x5a82('0x2e')))return;const _0x3113ee=_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x26')]('TrackChangesEditing'),_0x5d5c50=_0x1f3c6c['plugins']['get'](_0x5a82('0x2f')),_0x169145=_0x1f3c6c[_0x5a82('0x13')];_0x3113ee[_0x5a82('0x44')](_0x5a82('0x10')),_0x3113ee[_0x5a82('0x32')]['registerElementLabel']('imageBlock',_0x425a75=>_0x6e12f1(_0x169145,_0x5a82('0x58'),_0x425a75)),_0x3113ee['_descriptionFactory'][_0x5a82('0x57')]('imageInline',_0x1726d5=>_0x6e12f1(_0x169145,_0x5a82('0x55'),_0x1726d5)),_0x3113ee[_0x5a82('0x32')][_0x5a82('0x57')](_0x5a82('0x38'),()=>_0x6e12f1(_0x169145,'ELEMENT_CAPTION')),_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x24')](_0x5a82('0x48'))&&_0x3113ee[_0x5a82('0x44')](_0x5a82('0x4e')),_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x24')](_0x5a82('0x1a'))&&_0x1f3c6c[_0x5a82('0x8')]['has']('ImageInlineEditing')&&(_0x3113ee[_0x5a82('0x44')]('imageTypeInline',(_0x141edf,_0x1e08f5)=>{const _0x409737=_0x5d5c50[_0x5a82('0x5c')](_0x1f3c6c['model'][_0x5a82('0x3b')][_0x5a82('0x3e')]);_0x1f3c6c['model']['change'](()=>{_0x3113ee['markBlockFormat'](_0x409737,{'commandName':_0x5a82('0x1c'),'commandParams':[_0x1e08f5]},[],_0x5a82('0x50'));});}),_0x3113ee[_0x5a82('0x44')](_0x5a82('0x23'),(_0x12bde7,_0x3f7340)=>{_0x1f3c6c[_0x5a82('0x39')]['change'](_0x4ee8b7=>{let _0x445da6=_0x5d5c50[_0x5a82('0x5c')](_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x3b')][_0x5a82('0x3e')]),_0x1b767c=_0x4ee8b7['createRangeOn'](_0x445da6);const _0x55c129=_0x1a588f[_0x5a82('0x4d')](_0x1b767c['start'],'toPrevious'),_0x50f302=_0x1a588f[_0x5a82('0x4d')](_0x1b767c[_0x5a82('0xd')],_0x5a82('0x59'));_0x3113ee[_0x5a82('0x5d')](()=>_0x12bde7(_0x3f7340)),_0x445da6=_0x5d5c50[_0x5a82('0x5c')](_0x1f3c6c['model'][_0x5a82('0x3b')][_0x5a82('0x3e')]),_0x1b767c=_0x4ee8b7['createRangeOn'](_0x445da6);const _0x59b7af=_0x4ee8b7[_0x5a82('0x33')](_0x55c129,_0x50f302);_0x55c129[_0x5a82('0x12')](),_0x50f302['detach'](),_0x3113ee[_0x5a82('0x49')](_0x445da6,{'commandName':_0x5a82('0x1c'),'commandParams':[_0x3f7340]},[],'convertInlineImageToBlock'),_0x59b7af[_0x5a82('0x15')][_0x5a82('0x4')](_0x1b767c[_0x5a82('0x15')])&&_0x3113ee[_0x5a82('0x11')](_0x4ee8b7['createRange'](_0x59b7af[_0x5a82('0x15')],_0x1b767c[_0x5a82('0x15')]),_0x5a82('0x2d')),_0x1b767c[_0x5a82('0xd')][_0x5a82('0x4')](_0x59b7af['end'])&&_0x3113ee['markInsertion'](_0x4ee8b7[_0x5a82('0x33')](_0x1b767c[_0x5a82('0xd')],_0x59b7af[_0x5a82('0xd')]),_0x5a82('0x2d'));});}),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x4c')]('formatBlock','convertInlineImageToBlock',_0x5a82('0x2b'),()=>!0x1),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x4c')]('formatBlock',_0x5a82('0x2d'),_0x5a82('0x4a'),()=>!0x1),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x4c')](_0x5a82('0x18'),_0x5a82('0x2d'),_0x5a82('0x19'),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x29')](_0x5a82('0x18'),'','accept')),_0x3113ee['_suggestionFactory'][_0x5a82('0x4c')](_0x5a82('0x1d'),_0x5a82('0x2d'),_0x5a82('0x2b'),()=>!0x1),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x4c')]('insertion','convertInlineImageToBlock',_0x5a82('0x19'),([_0x4078e6])=>{const _0x1a0821=_0x3113ee[_0x5a82('0x43')][_0x5a82('0x29')]('insertion','',_0x5a82('0x19'));let _0x4161f2=_0x4078e6[_0x5a82('0x15')],_0x1ee522=_0x4078e6[_0x5a82('0xd')];const _0xb52ee0=_0x1f3c6c['model'][_0x5a82('0x45')][_0x5a82('0x1')](_0x4161f2,_0x5a82('0x3c')),_0x1bc03e=_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x45')][_0x5a82('0x1')](_0x1ee522,_0x5a82('0x27'));_0xb52ee0['isCollapsed']&&(_0x4161f2=_0xb52ee0['start']),_0x1bc03e[_0x5a82('0x4f')]&&(_0x1ee522=_0x1bc03e[_0x5a82('0xd')]),_0x1a0821([_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x33')](_0x4161f2,_0x1ee522)]);}),_0x3113ee['_suggestionFactory'][_0x5a82('0x4c')](_0x5a82('0x18'),_0x5a82('0x2d'),_0x5a82('0x28'),_0x172896),_0x3113ee[_0x5a82('0x43')][_0x5a82('0x4c')](_0x5a82('0x1d'),_0x5a82('0x2d'),_0x5a82('0x28'),_0x172896)),_0x1f3c6c['plugins'][_0x5a82('0x24')]('ImageCaptionEditing')&&(_0x3113ee[_0x5a82('0x44')](_0x5a82('0x2a'),(_0x1311b5,_0x2d6bd4)=>{const _0x104ffa=_0x1f3c6c['plugins'][_0x5a82('0x26')](_0x5a82('0x35'));let _0x38e209=_0x5d5c50[_0x5a82('0x5c')](_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x3b')][_0x5a82('0x3e')]),_0x72fe34=_0x104ffa[_0x5a82('0x30')](_0x38e209);_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x1f')](()=>{if(_0x72fe34)return void _0x3113ee[_0x5a82('0x3f')](_0x1f3c6c['model']['createRangeOn'](_0x72fe34));const _0x1497f5=_0x5d5c50[_0x5a82('0x20')](_0x38e209);_0x1311b5(_0x2d6bd4),_0x38e209=_0x5d5c50[_0x5a82('0x5c')](_0x1f3c6c[_0x5a82('0x39')][_0x5a82('0x3b')][_0x5a82('0x3e')]),_0x72fe34=_0x104ffa[_0x5a82('0x30')](_0x38e209),_0x3113ee['markInsertion'](_0x1f3c6c[_0x5a82('0x39')]['createRangeOn'](_0x72fe34),_0x1497f5?null:_0x5a82('0x21'));});}),_0x3113ee[_0x5a82('0x43')]['registerCustomCallback'](_0x5a82('0x1d'),_0x5a82('0x21'),_0x5a82('0x28'),_0x172896));const _0x20def6=[{'type':'formatBlock','subType':_0x5a82('0x3a')},{'type':_0x5a82('0x1d'),'subType':_0x5a82('0x21')},{'type':_0x5a82('0x18'),'subType':_0x5a82('0x2d')},{'type':_0x5a82('0x1d'),'subType':'convertInlineImageToBlock'}];function _0x5cd069(_0x382c6f,_0x5ad66d){const _0x3a5c9c=_0x20def6[_0x5a82('0x37')](({type:_0x1ff2ce,subType:_0x2fe361})=>_0x382c6f[_0x5a82('0x56')]==_0x1ff2ce&&_0x382c6f[_0x5a82('0x5')]==_0x2fe361),_0x5a064c=_0x20def6['findIndex'](({type:_0x366faf,subType:_0x19378a})=>_0x5ad66d[_0x5a82('0x56')]==_0x366faf&&_0x5ad66d[_0x5a82('0x5')]==_0x19378a);if(_0x3a5c9c<0x0||_0x5a064c<0x0)return!0x1;const _0x391032=_0x382c6f[_0x5a82('0xa')](),_0xb719a3=_0x5ad66d[_0x5a82('0xa')]();if((0x0==_0x3a5c9c||0x1==_0x3a5c9c)&&0x2==_0x5a064c&&_0x391032[_0x5a82('0x9')](_0xb719a3))return!0x0;if(0x2==_0x3a5c9c&&0x3==_0x5a064c){const _0xb000de=_0x3113ee['_findSuggestions'](_0x391032,_0x5a82('0x1d'))['filter'](({suggestion:_0x1c4e9e,meta:_0x17ed39})=>_0x17ed39[_0x5a82('0x0')]&&'convertInlineImageToBlock'==_0x1c4e9e[_0x5a82('0x5')]);if(_0xb000de['length']>0x1&&_0xb719a3[_0x5a82('0xd')]['isEqual'](_0x391032[_0x5a82('0x15')]))return!0x0;if(0x1==_0xb000de[_0x5a82('0x1e')]&&(_0x391032[_0x5a82('0x15')][_0x5a82('0x7')](_0xb719a3[_0x5a82('0xd')])||_0x391032[_0x5a82('0xd')][_0x5a82('0x7')](_0xb719a3['start'])))return!0x0;}if(0x3==_0x3a5c9c&&0x3==_0x5a064c&&_0x391032[_0x5a82('0x15')][_0x5a82('0x4')](_0xb719a3[_0x5a82('0x15')])){const _0x5c85cb=_0x391032[_0x5a82('0xd')][_0x5a82('0x41')],_0xb6eba4=_0xb719a3[_0x5a82('0x15')][_0x5a82('0x52')];return _0x5d5c50[_0x5a82('0x20')](_0x5c85cb)&&_0x5c85cb===_0xb6eba4;}return!0x1;}function _0x172896(_0x31fdd0,_0x394624){return _0x5cd069(_0x31fdd0,_0x394624)?[_0x31fdd0,_0x394624]:_0x5cd069(_0x394624,_0x31fdd0)?[_0x394624,_0x31fdd0]:null;}_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x24')](_0x5a82('0x25'))&&(_0x3113ee['_enableDefaultAttributesIntegration'](_0x5a82('0x14'),[],[_0x5a82('0x40')]),_0x3113ee['_descriptionFactory'][_0x5a82('0x22')](_0x5a82('0x40'),_0x6e12f1(_0x169145,_0x5a82('0xf')))),_0x1f3c6c[_0x5a82('0x8')][_0x5a82('0x24')](_0x5a82('0x31'))&&_0x3113ee[_0x5a82('0x34')](_0x5a82('0x16'),[],['alt']),_0x3113ee[_0x5a82('0x32')][_0x5a82('0x51')](_0x1ae134=>{if(!!_0x20def6[_0x5a82('0x47')](({type:_0x2c86a7,subType:_0x46b2d7})=>_0x1ae134['type']==_0x2c86a7&&_0x1ae134[_0x5a82('0x5')]==_0x46b2d7))return _0x1ae134[_0x5a82('0x54')]?{}:void 0x0;}),_0x3113ee[_0x5a82('0x32')][_0x5a82('0x51')](_0x504279=>{if(_0x5a82('0x1d')==_0x504279['type']||'deletion'==_0x504279[_0x5a82('0x56')]){const _0x2f7f41=_0x504279['getContainedElement']();if(_0x2f7f41&&_0x2f7f41['is'](_0x5a82('0x4b'),'caption'))return{'type':_0x5a82('0x1d')==_0x504279[_0x5a82('0x56')]?'addObject':_0x5a82('0x42'),'element':_0x2f7f41,'quantity':0x1};}}),_0x3113ee[_0x5a82('0x32')][_0x5a82('0x51')](_0x393c66=>_0x5a82('0x18')==_0x393c66[_0x5a82('0x56')]&&'convertInlineImageToBlock'==_0x393c66['subType']?{'type':_0x5a82('0x36'),'content':_0x5a82('0x2c')}:_0x5a82('0x18')==_0x393c66['type']&&_0x5a82('0x50')==_0x393c66['subType']?{'type':_0x5a82('0x36'),'content':_0x5a82('0x53')}:void 0x0),_0x3113ee[_0x5a82('0x32')]['registerDescriptionCallback'](_0x2283bf=>{if('attribute'!=_0x2283bf['type'])return;const {data:_0x3298eb}=_0x2283bf;if(!_0x3298eb||'alt'!=_0x3298eb[_0x5a82('0x46')])return;const _0x559de3=_0x3298eb[_0x5a82('0xc')];return _0x559de3?{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x169145,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x559de3+'\x22')}:{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x169145,_0x5a82('0x5a'))};}),this['_registerLegacyDescription']();}[_0x5a82('0x3d')](){const _0x58eb59=this[_0x5a82('0x6')],_0x5e0f3d=_0x58eb59['locale'];_0x58eb59[_0x5a82('0x8')][_0x5a82('0x26')](_0x5a82('0x2'))['_descriptionFactory'][_0x5a82('0x51')](_0x4dc9f2=>{if(_0x5a82('0x18')!=_0x4dc9f2[_0x5a82('0x56')]&&_0x5a82('0x3')!=_0x4dc9f2[_0x5a82('0x56')])return;const {data:_0x5eb538}=_0x4dc9f2;if(_0x5eb538){if(_0x5a82('0x16')==_0x5eb538[_0x5a82('0x1b')]){const _0x9dc2c7=_0x5eb538[_0x5a82('0x5b')][0x0][_0x5a82('0xc')];return _0x9dc2c7?{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x5e0f3d,_0x5a82('0xb'),'\x22'+_0x9dc2c7+'\x22')}:{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x5e0f3d,_0x5a82('0x5a'))};}if(_0x5a82('0x14')==_0x5eb538[_0x5a82('0x1b')]){const _0x144ef3=_0x5eb538[_0x5a82('0x5b')][0x0][_0x5a82('0x17')];return _0x144ef3?{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x5e0f3d,_0x5a82('0xe'),_0x144ef3)}:{'type':_0x5a82('0x36'),'content':_0x6e12f1(_0x5e0f3d,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5666=['formatBlock','newValue','_registerLegacyDescription','replaceImageSource','get','_handleLegacySuggestions','commandName','_enableDefaultAttributesIntegration','type','TrackChangesEditing','oldValue','registerDescriptionCallback','attribute','editor','*Replace\x20image\x20URL*','_suggestionFactory','format','formatInline','has','src','discard','locale','key','registerCustomCallback','plugins','ImageEditing','accept','getSuggestionCallback','_descriptionFactory'];(function(_0x37745f,_0x5666d8){const _0x456382=function(_0x462f62){while(--_0x462f62){_0x37745f['push'](_0x37745f['shift']());}};_0x456382(++_0x5666d8);}(_0x5666,0x14d));const _0x4563=function(_0x37745f,_0x5666d8){_0x37745f=_0x37745f-0x0;let _0x456382=_0x5666[_0x37745f];return _0x456382;};import{Plugin as _0x299ff8}from'ckeditor5/src/core.js';import{getTranslation as _0x1ff755}from'../utils/common-translations.js';export default class st extends _0x299ff8{['afterInit'](){if(!this[_0x4563('0x1c')][_0x4563('0xa')][_0x4563('0x4')](_0x4563('0xb')))return;const _0x27275b=this['editor'][_0x4563('0x7')],_0x55e674=this['editor'][_0x4563('0xa')][_0x4563('0x13')](_0x4563('0x18'));_0x55e674[_0x4563('0x16')]('replaceImageSource',[],[_0x4563('0x5')]),_0x55e674[_0x4563('0xe')][_0x4563('0x1a')](_0x25f403=>{if(_0x4563('0x1b')!=_0x25f403[_0x4563('0x17')])return;const {data:_0xc9485}=_0x25f403;return _0xc9485&&_0x4563('0x5')==_0xc9485[_0x4563('0x8')]?_0xc9485[_0x4563('0x10')]&&_0xc9485[_0x4563('0x19')]?{'type':_0x4563('0x2'),'content':_0x1ff755(_0x27275b,_0x4563('0x0'))}:{'type':_0x4563('0x2'),'content':''}:void 0x0;}),this[_0x4563('0x14')]();}[_0x4563('0x14')](){const _0x30657c=this[_0x4563('0x1c')]['plugins'][_0x4563('0x13')](_0x4563('0x18'));_0x30657c['_suggestionFactory'][_0x4563('0x9')](_0x4563('0xf'),_0x4563('0x12'),_0x4563('0xc'),_0x30657c[_0x4563('0x1')][_0x4563('0xd')](_0x4563('0xf'),null,'discard')),_0x30657c[_0x4563('0x1')][_0x4563('0x9')](_0x4563('0xf'),_0x4563('0x12'),_0x4563('0x6'),_0x30657c[_0x4563('0x1')][_0x4563('0xd')](_0x4563('0xf'),null,_0x4563('0xc'))),this[_0x4563('0x11')]();}[_0x4563('0x11')](){const _0x5a404a=this[_0x4563('0x1c')],_0x5c92ef=_0x5a404a['locale'];_0x5a404a[_0x4563('0xa')]['get'](_0x4563('0x18'))['_descriptionFactory'][_0x4563('0x1a')](_0x16b1ed=>{if(_0x4563('0xf')!=_0x16b1ed[_0x4563('0x17')]&&_0x4563('0x3')!=_0x16b1ed['type'])return;const {data:_0x45bbee}=_0x16b1ed;if(!_0x45bbee||_0x4563('0x12')!=_0x45bbee[_0x4563('0x15')])return;return{'type':_0x4563('0x2'),'content':_0x1ff755(_0x5c92ef,'*Format:*\x20replace\x20image\x20URL')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59ee=['toLowerCase','side','markBlockFormat','plugins','insertion','getSuggestion','newRange','end','registerDescriptionCallback','getClosestSelectedImageElement','isInContent','suggestion','selection','value','commandName','isEqual','afterInit','commands','format','isBlockImage','imageTypeInline','document','getContainedElement','locale','title','start','get','length','chain','*Format:*\x20%0','imageStylePreApply','enableCommand','subType','accept','findIndex','formatBlock','has','change','head','FORMAT_SIDE_IMAGE','discard','formatInline','createRangeOn','nodeBefore','join','imageStylePostApply','_suggestionFactory','filter','differ','type','editor','setImageNaturalSizeAttributes','_registerLegacyDescription','_descriptionFactory','imageTypeBlock','next','commandParams','_splitMarkerName','imageStyle','getFirstRange','getSuggestionCallback','hasSuggestion','model','refresh','commandReversedParams','registerCustomCallback','discardSuggestion','convertInlineImageToBlock','_findSuggestions','isBefore','Users','isInlineImage','markInlineFormat','imageCaption'];(function(_0x9ee1ed,_0x59eeaa){const _0x2a5f01=function(_0x20a189){while(--_0x20a189){_0x9ee1ed['push'](_0x9ee1ed['shift']());}};_0x2a5f01(++_0x59eeaa);}(_0x59ee,0x8d));const _0x2a5f=function(_0x9ee1ed,_0x59eeaa){_0x9ee1ed=_0x9ee1ed-0x0;let _0x2a5f01=_0x59ee[_0x9ee1ed];return _0x2a5f01;};import{Plugin as _0x4c3a3d}from'ckeditor5/src/core.js';import{uid as _0xd250db}from'ckeditor5/src/utils.js';import{getTranslation as _0x8efc21}from'../utils/common-translations.js';export default class nt extends _0x4c3a3d{[_0x2a5f('0x17')](){const _0xfd235b=this[_0x2a5f('0x39')];if(!_0xfd235b[_0x2a5f('0xa')][_0x2a5f('0x2b')]('ImageStyleEditing'))return;const _0x1a9f3f=_0xfd235b[_0x2a5f('0xa')][_0x2a5f('0x21')]('TrackChangesEditing'),_0x1fa5e1=_0xfd235b[_0x2a5f('0xa')][_0x2a5f('0x21')]('ImageUtils'),_0x3e4d9b={};_0x1a9f3f[_0x2a5f('0x26')](_0x2a5f('0x41'),(_0x1c5f94,_0xfba471)=>{const _0x1cf643=_0xfd235b[_0x2a5f('0xa')][_0x2a5f('0x21')](_0x2a5f('0x3'))['me'],_0x371356=_0xfd235b[_0x2a5f('0x18')][_0x2a5f('0x21')](_0x2a5f('0x41'));let _0x27074d=_0x1fa5e1[_0x2a5f('0x10')](_0xfd235b[_0x2a5f('0x45')]['document'][_0x2a5f('0x13')]),_0x110cce=_0xfd235b[_0x2a5f('0x45')][_0x2a5f('0x31')](_0x27074d),_0x5ee791=_0x371356[_0x2a5f('0x14')];if(_0x5ee791==_0xfba471[_0x2a5f('0x14')])return;const _0x1a6d86={'commandName':'imageStyle','commandParams':[_0xfba471],'formatGroupId':_0xd250db()};_0xfd235b[_0x2a5f('0x45')][_0x2a5f('0x2c')](()=>{if(_0x1a9f3f['getSuggestions']()[_0x2a5f('0x36')](_0x33d93=>_0x33d93[_0x2a5f('0x11')]&&_0x1cf643==_0x33d93['author']&&(_0x2a5f('0x2a')==_0x33d93['type']||_0x2a5f('0x30')==_0x33d93['type'])&&(_0x2a5f('0x25')==_0x33d93[_0x2a5f('0x27')]||'imageStylePostApply'==_0x33d93[_0x2a5f('0x27')])&&_0x33d93[_0x2a5f('0x42')]()[_0x2a5f('0x16')](_0x110cce))['forEach'](_0x142d5f=>_0x1a9f3f[_0x2a5f('0x49')](_0x142d5f[_0x2a5f('0x2d')])),_0x27074d=_0x1fa5e1[_0x2a5f('0x10')](_0xfd235b[_0x2a5f('0x45')]['document'][_0x2a5f('0x13')]),_0x110cce=_0xfd235b[_0x2a5f('0x45')]['createRangeOn'](_0x27074d),_0x371356[_0x2a5f('0x46')](),_0xfd235b[_0x2a5f('0x18')][_0x2a5f('0x21')](_0x2a5f('0x1b'))[_0x2a5f('0x46')](),_0xfd235b[_0x2a5f('0x18')][_0x2a5f('0x21')](_0x2a5f('0x3d'))[_0x2a5f('0x46')](),_0x5ee791=_0x371356[_0x2a5f('0x14')],_0x5ee791!=_0xfba471['value'])return _0x1fa5e1[_0x2a5f('0x4')](_0x27074d)&&_0x371356['shouldConvertImageType'](_0xfba471[_0x2a5f('0x14')],_0x27074d)?(_0x1c5f94({..._0xfba471,'setImageSizes':!0x1}),_0x27074d=_0x1fa5e1[_0x2a5f('0x10')](_0xfd235b[_0x2a5f('0x45')]['document'][_0x2a5f('0x13')]),void _0x1a9f3f['markBlockFormat'](_0x27074d,{..._0x1a6d86,'commandReversedParams':[{'value':_0x5ee791||null,'setImageSizes':!0x1}]},[],_0x2a5f('0x25'))):void(_0x1fa5e1['isBlockImage'](_0x27074d)?_0x1a9f3f[_0x2a5f('0x9')](_0x27074d,_0x1a6d86,[],_0x2a5f('0x34')):_0x1a9f3f[_0x2a5f('0x5')](_0x110cce,_0x1a6d86,_0x2a5f('0x34')));});});for(const _0x5c3377 of _0xfd235b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3e4d9b[_0x5c3377['name']]=_0x5c3377[_0x2a5f('0x1f')][_0x2a5f('0x7')]();_0x1a9f3f[_0x2a5f('0x35')][_0x2a5f('0x48')](_0x2a5f('0x2a'),'imageStylePreApply','join',()=>!0x1),_0x1a9f3f[_0x2a5f('0x35')][_0x2a5f('0x48')]('formatBlock',_0x2a5f('0x34'),_0x2a5f('0x33'),()=>!0x1),_0x1a9f3f[_0x2a5f('0x35')]['registerCustomCallback'](_0x2a5f('0x30'),'imageStylePostApply',_0x2a5f('0x33'),()=>!0x1),_0x1a9f3f[_0x2a5f('0x35')][_0x2a5f('0x48')]('formatBlock',_0x2a5f('0x25'),_0x2a5f('0x28'),([_0x21efc7])=>{_0x1fa5e1[_0x2a5f('0x3a')](_0x21efc7[_0x2a5f('0x1d')]());}),_0x1a9f3f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a5f('0x25'),_0x2a5f('0x2f'),(_0xc67b71,_0x552674)=>{_0x1a9f3f[_0x2a5f('0x35')][_0x2a5f('0x43')]('formatBlock','',_0x2a5f('0x28'))(_0xc67b71,{'commandName':_0x552674[_0x2a5f('0x15')],'commandParams':_0x552674[_0x2a5f('0x47')]});}),_0x1a9f3f[_0x2a5f('0x35')][_0x2a5f('0x48')](_0x2a5f('0x2a'),'imageStylePreApply',_0x2a5f('0x23'),function(_0x496025,_0x5e7abb){if(_0x50229b(_0x496025,_0x5e7abb))return[_0x496025,_0x5e7abb];if(_0x50229b(_0x5e7abb,_0x496025))return[_0x5e7abb,_0x496025];return null;});const _0x47e190=[{'type':_0x2a5f('0x2a'),'subType':_0x2a5f('0x25')},{'type':_0x2a5f('0xb'),'subType':'imageCaption'},{'type':_0x2a5f('0x2a'),'subType':_0x2a5f('0x0')},{'type':_0x2a5f('0xb'),'subType':_0x2a5f('0x0')}];function _0x50229b(_0x164779,_0x242350){const _0x39a418=_0x47e190[_0x2a5f('0x29')](({type:_0xc8935a,subType:_0x52e2e3})=>_0x164779['type']==_0xc8935a&&_0x164779['subType']==_0x52e2e3),_0x5c562e=_0x47e190[_0x2a5f('0x29')](({type:_0x4f8085,subType:_0x34dee5})=>_0x242350['type']==_0x4f8085&&_0x242350[_0x2a5f('0x27')]==_0x34dee5);if(_0x39a418<0x0||_0x5c562e<0x0)return!0x1;const _0x2fd21b=_0x164779[_0x2a5f('0x42')](),_0x2a1d31=_0x242350[_0x2a5f('0x42')]();if((0x0==_0x39a418||0x1==_0x39a418)&&0x2==_0x5c562e&&_0x2fd21b['isIntersecting'](_0x2a1d31))return!0x0;if(0x2==_0x39a418&&0x3==_0x5c562e){const _0x405133=_0x1a9f3f[_0x2a5f('0x1')](_0x2fd21b,_0x2a5f('0xb'))[_0x2a5f('0x36')](({suggestion:_0x1a6db8,meta:_0x6d0ee2})=>_0x6d0ee2['isOwn']&&_0x2a5f('0x0')==_0x1a6db8['subType']);if(_0x405133[_0x2a5f('0x22')]>0x1&&_0x2a1d31[_0x2a5f('0xe')]['isEqual'](_0x2fd21b['start']))return!0x0;if(0x1==_0x405133[_0x2a5f('0x22')]&&(_0x2fd21b[_0x2a5f('0x20')][_0x2a5f('0x16')](_0x2a1d31['end'])||_0x2fd21b[_0x2a5f('0xe')][_0x2a5f('0x16')](_0x2a1d31['start'])))return!0x0;}if(0x3==_0x39a418&&0x3==_0x5c562e&&_0x2fd21b[_0x2a5f('0x20')][_0x2a5f('0x2')](_0x2a1d31[_0x2a5f('0x20')])){const _0x1e4ef0=_0x2fd21b[_0x2a5f('0xe')]['nodeAfter'],_0x5b82e6=_0x2a1d31[_0x2a5f('0x20')][_0x2a5f('0x32')];return _0x1fa5e1[_0x2a5f('0x1a')](_0x1e4ef0)&&_0x1e4ef0===_0x5b82e6;}return!0x1;}_0xfd235b[_0x2a5f('0x45')][_0x2a5f('0x1c')]['registerPostFixer'](()=>{let _0xca6ad0=!0x1;const _0x51e2af=Array['from'](_0xfd235b[_0x2a5f('0x45')][_0x2a5f('0x1c')][_0x2a5f('0x37')]['getChangedMarkers']());for(const {name:_0x18d5e0,data:_0x10f25c}of _0x51e2af){const {group:_0x19bcfe,type:_0x59ec79,subType:_0x54983f,id:_0x11792d}=_0x1a9f3f[_0x2a5f('0x40')](_0x18d5e0);if(_0x2a5f('0x12')==_0x19bcfe&&_0x1a9f3f[_0x2a5f('0x44')](_0x11792d)){if(_0x2a5f('0x2a')==_0x59ec79&&(_0x2a5f('0x25')==_0x54983f||'imageStylePostApply'==_0x54983f)){const _0x2bf069=_0x1a9f3f[_0x2a5f('0xc')](_0x11792d);if(_0x10f25c[_0x2a5f('0xd')]){const _0xa3e67=_0x2bf069[_0x2a5f('0x42')]()[_0x2a5f('0x1d')]();if(_0x1fa5e1[_0x2a5f('0x1a')](_0xa3e67))continue;_0x1a9f3f[_0x2a5f('0x49')](_0x2bf069),_0xca6ad0=!0x0;}}if(_0x2a5f('0xb')==_0x59ec79&&_0x2a5f('0x6')==_0x54983f&&!_0x10f25c['newRange']){const _0x2ff69b=_0x1a9f3f[_0x2a5f('0xc')](_0x11792d);_0x2ff69b[_0x2a5f('0x3e')]&&_0x2ff69b['next'][_0x2a5f('0x11')]&&(_0x1a9f3f[_0x2a5f('0x49')](_0x2ff69b[_0x2a5f('0x3e')]),_0xca6ad0=!0x0);}}}return _0xca6ad0;}),this[_0x2a5f('0x3b')](_0x3e4d9b);}[_0x2a5f('0x3b')](_0x11ea3c){const _0x4e1684=this[_0x2a5f('0x39')],_0x517727=_0x4e1684[_0x2a5f('0x1e')];_0x4e1684[_0x2a5f('0xa')][_0x2a5f('0x21')]('TrackChangesEditing')[_0x2a5f('0x3c')][_0x2a5f('0xf')](_0x1f3347=>{if(_0x2a5f('0x2a')!=_0x1f3347[_0x2a5f('0x38')]&&_0x2a5f('0x30')!=_0x1f3347[_0x2a5f('0x38')])return;const {data:_0x236714}=_0x1f3347;if(!_0x236714||'imageStyle'!=_0x236714[_0x2a5f('0x15')])return;const _0x414e86=_0x236714[_0x2a5f('0x3f')][0x0][_0x2a5f('0x14')];return _0x4db190(_0x2a5f('0x8')===_0x414e86?_0x8efc21(_0x517727,_0x2a5f('0x2e')):_0x11ea3c[_0x414e86]||_0x414e86);function _0x4db190(_0x314b54){return{'type':_0x2a5f('0x19'),'content':_0x8efc21(_0x517727,_0x2a5f('0x24'),_0x314b54)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ac4=['editor','get','enableCommand','trackChanges','bind','value','lowest','high','forEach','_trackChangesExecuted','execute','importWord','_handleImportedData','track_changes','_setSuggestionData','afterInit','commands','Users','_trackChangesValueDuringImport','plugins','TrackChangesEditing','listenTo'];(function(_0x482b52,_0x1ac420){const _0x97e3d4=function(_0x3df05d){while(--_0x3df05d){_0x482b52['push'](_0x482b52['shift']());}};_0x97e3d4(++_0x1ac420);}(_0x1ac4,0x193));const _0x97e3=function(_0x482b52,_0x1ac420){_0x482b52=_0x482b52-0x0;let _0x97e3d4=_0x1ac4[_0x482b52];return _0x97e3d4;};import{Plugin as _0x13f976}from'ckeditor5/src/core.js';export default class ot extends _0x13f976{constructor(_0x5238ad){super(_0x5238ad),this[_0x97e3('0xb')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x97e3('0x8')](){const _0x461f02=this[_0x97e3('0xf')],_0x3e8e10=_0x461f02[_0x97e3('0x9')][_0x97e3('0x10')](_0x97e3('0x4')),_0x4d9f41=_0x461f02[_0x97e3('0x9')]['get'](_0x97e3('0x12'));_0x3e8e10&&(_0x3e8e10['on'](_0x97e3('0x3'),(_0x3598f0,[,_0x131333])=>{this['_trackChangesValueDuringImport']=_0x4d9f41[_0x97e3('0x14')],_0x131333['collaboration_features'][_0x97e3('0x6')]=!this[_0x97e3('0xb')];},{'priority':_0x97e3('0x0')}),this[_0x97e3('0xe')](_0x3e8e10,'dataInsert',this[_0x97e3('0x5')][_0x97e3('0x13')](this)),this[_0x97e3('0xe')](_0x3e8e10,'dataInsert',()=>{this[_0x97e3('0x2')]&&(_0x4d9f41[_0x97e3('0x3')](),this[_0x97e3('0x2')]=!0x1);},{'priority':_0x97e3('0x15')}),_0x461f02[_0x97e3('0xc')]['get'](_0x97e3('0xd'))[_0x97e3('0x11')](_0x97e3('0x4')));}[_0x97e3('0x5')](_0x384c35,_0x2f40a4){const {suggestions:_0x41fb1e}=_0x2f40a4,_0x2a75f7=this[_0x97e3('0xf')][_0x97e3('0x9')][_0x97e3('0x10')](_0x97e3('0x12')),_0x393329=_0x2a75f7['value'];this[_0x97e3('0xb')]!==_0x393329&&(_0x2a75f7[_0x97e3('0x3')](),this[_0x97e3('0x2')]=!0x0),_0x41fb1e&&_0x41fb1e[_0x97e3('0x1')](({id:_0x422ec1,type:_0xc8ec96,author:_0x55c7fe,created_at:_0x49a047})=>{const _0x36a823={'id':_0x422ec1,'type':_0xc8ec96,'authorId':this[_0x97e3('0xf')][_0x97e3('0xc')][_0x97e3('0x10')](_0x97e3('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55c7fe,'createdAt':_0x49a047?new Date(_0x49a047):new Date(),'source':'importWord'}}};this[_0x97e3('0xf')][_0x97e3('0xc')]['get'](_0x97e3('0xd'))[_0x97e3('0x7')](_0x36a823);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c50=['formatBlock','_enableDefaultAttributesIntegration','*Indent:*\x20%0','afterInit','_registerLegacyDescription','registerDescriptionCallback','getItems','outdent','IndentBlock','enableCommand','locale','commandName','_registerBlockAttribute','*Outdent:*\x20%0','TrackChangesEditing','indentBlock','getItemLabel','_descriptionFactory','blockIndent','editor','has','outdentBlock','plugins','type','get'];(function(_0x339391,_0x2c5024){const _0x21d99c=function(_0x522967){while(--_0x522967){_0x339391['push'](_0x339391['shift']());}};_0x21d99c(++_0x2c5024);}(_0x2c50,0x13c));const _0x21d9=function(_0x339391,_0x2c5024){_0x339391=_0x339391-0x0;let _0x21d99c=_0x2c50[_0x339391];return _0x21d99c;};import{Plugin as _0x108b8d}from'ckeditor5/src/core.js';import{getTranslation as _0x33aad2}from'../utils/common-translations.js';export default class rt extends _0x108b8d{[_0x21d9('0xc')](){const _0x24781e=this[_0x21d9('0x3')],_0x517c25=_0x24781e[_0x21d9('0x6')][_0x21d9('0x8')](_0x21d9('0x17'));if(_0x24781e[_0x21d9('0x6')]['has']('IndentEditing')&&(_0x517c25[_0x21d9('0x12')]('indent'),_0x517c25[_0x21d9('0x12')](_0x21d9('0x10'))),_0x24781e[_0x21d9('0x6')][_0x21d9('0x4')](_0x21d9('0x11')))for(const _0x5c61de of[_0x21d9('0x18'),_0x21d9('0x5')])_0x517c25[_0x21d9('0xa')](_0x5c61de);const _0x5c17f5=_0x24781e['locale'];_0x517c25[_0x21d9('0x15')](_0x21d9('0x2')),_0x517c25[_0x21d9('0x1')]['registerAttributeLabel'](_0x21d9('0x2'),_0x33aad2(_0x5c17f5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}[_0x21d9('0xd')](){const _0x5f30bb=this[_0x21d9('0x3')],_0x21a251=_0x5f30bb[_0x21d9('0x13')],_0x440042=_0x5f30bb['plugins'][_0x21d9('0x8')](_0x21d9('0x17'));_0x440042[_0x21d9('0x1')][_0x21d9('0xe')](_0x594b69=>{if(_0x21d9('0x9')!=_0x594b69[_0x21d9('0x7')])return;const {data:_0x385a74}=_0x594b69;if(!_0x385a74)return;if(_0x21d9('0x18')!=_0x385a74[_0x21d9('0x14')]&&'outdentBlock'!=_0x385a74[_0x21d9('0x14')])return;const _0x49d131=_0x594b69[_0x21d9('0xf')]()[0x0],_0x215a86=_0x440042[_0x21d9('0x1')][_0x21d9('0x0')](_0x49d131);return'indentBlock'==_0x385a74[_0x21d9('0x14')]?{'type':'format','content':_0x33aad2(_0x21a251,_0x21d9('0xb'),_0x215a86)}:_0x21d9('0x5')==_0x385a74[_0x21d9('0x14')]?{'type':'format','content':_0x33aad2(_0x21a251,_0x21d9('0x16'),_0x215a86)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2568=['editor','requires','plugins','enableCommand','TrackChangesEditing','get','init'];(function(_0x5252ca,_0x256847){var _0xed8f79=function(_0x31381d){while(--_0x31381d){_0x5252ca['push'](_0x5252ca['shift']());}};_0xed8f79(++_0x256847);}(_0x2568,0x1be));var _0xed8f=function(_0x5252ca,_0x256847){_0x5252ca=_0x5252ca-0x0;var _0xed8f79=_0x2568[_0x5252ca];return _0xed8f79;};import{Plugin as _0x200731}from'ckeditor5/src/core.js';import{Input as _0x96dbc}from'ckeditor5/src/typing.js';export default class at extends _0x200731{static get[_0xed8f('0x3')](){return[_0x96dbc];}[_0xed8f('0x1')](){this[_0xed8f('0x2')][_0xed8f('0x4')][_0xed8f('0x0')](_0xed8f('0x6'))[_0xed8f('0x5')]('input');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cf8=['commandName','has','todoList','bulleted','*Check\x20item*','List','slice','editor','length','before','bulletedList','locale','element','formatInline','LegacyListEditing','registerElementLabel','numberedList','commands','_selectedElements','filter','ELEMENT_TODO_LIST','_descriptionFactory','indentList','LegacyTodoListEditing','isObject','change','plugins','ELEMENT_LIST_ITEM','todoListChecked','previousSibling','*Uncheck\x20item*','listType','parent','afterInit','forceValue','outdentList','markBlockFormat','format','add','getSelectedBlocks','type','nextSibling','findIndex','selection','ELEMENT_NUMBERED_LIST','getAttribute','schema','end','enableCommand','document','todo','execute','numbered','model','from','push','*Change\x20to:*\x20%0','*Indent:*\x20%0','value','checkTodoList','commandParams','get','createRange','ELEMENT_BULLETED_LIST','listItem','TrackChangesEditing','listIndent'];(function(_0x22cb8f,_0x3cf83d){const _0x461c13=function(_0x42aaaa){while(--_0x42aaaa){_0x22cb8f['push'](_0x22cb8f['shift']());}};_0x461c13(++_0x3cf83d);}(_0x3cf8,0xf6));const _0x461c=function(_0x22cb8f,_0x3cf83d){_0x22cb8f=_0x22cb8f-0x0;let _0x461c13=_0x3cf8[_0x22cb8f];return _0x461c13;};import{Plugin as _0x388ada}from'ckeditor5/src/core.js';import{getTranslation as _0x114b88}from'../utils/common-translations.js';export default class ut extends _0x388ada{[_0x461c('0x37')](){const _0x371aed=this[_0x461c('0x1d')],_0x1201b8=_0x371aed[_0x461c('0x21')];if(!_0x371aed[_0x461c('0x30')]['has'](_0x461c('0x24')))return;const _0x58d9fc=_0x371aed[_0x461c('0x30')]['get'](_0x461c('0x14')),_0x43bafd=_0x371aed[_0x461c('0x30')][_0x461c('0x17')](_0x461c('0x2d'));function _0x3ceef5(_0x1e7d71){return()=>{const _0x5d4fd6=_0x371aed[_0x461c('0x8')][_0x461c('0x4')][_0x461c('0x41')],_0x4f1030=_0x371aed[_0x461c('0x27')][_0x461c('0x10')](_0x1e7d71);if(_0x4f1030[_0x461c('0xd')])return void _0x371aed[_0x461c('0x6')]('paragraph',{});const _0x5c3cfb=_0x1e7d71[_0x461c('0x1c')](0x0,-0x4),_0x107a5f=function(_0x1e6643,_0x6f1369,_0x1471cb){let _0x208713=Array[_0x461c('0x9')](_0x1e6643)[_0x461c('0x29')](_0x9dd341=>function(_0x588114,_0x3abf4e){return _0x3abf4e['checkChild'](_0x588114[_0x461c('0x36')],_0x461c('0x13'))&&!_0x3abf4e[_0x461c('0x2e')](_0x588114);}(_0x9dd341,_0x1471cb));_0x208713=_0x208713[_0x461c('0x29')](_0x5cf779=>!_0x5cf779['is'](_0x461c('0x22'),_0x461c('0x13'))||_0x5cf779[_0x461c('0x0')](_0x461c('0x35'))!=_0x6f1369);const _0x4d2f08=new Set();for(const _0x11a791 of _0x208713)_0x11a791['is'](_0x461c('0x22'),_0x461c('0x13'))?_0x4d2f08[_0x461c('0x3c')](ne(_0x11a791)):_0x4d2f08[_0x461c('0x3c')](_0x11a791);return Array[_0x461c('0x9')](_0x4d2f08);}(_0x5d4fd6[_0x461c('0x3d')](),_0x5c3cfb,_0x371aed[_0x461c('0x8')][_0x461c('0x1')]);_0x371aed[_0x461c('0x8')][_0x461c('0x2f')](()=>{for(const _0x5c0af3 of _0x107a5f)_0x58d9fc['markBlockFormat'](_0x5c0af3,{'commandName':_0x1e7d71,'commandParams':[{'forceValue':!_0x4f1030[_0x461c('0xd')]}],'formatGroupId':'blockName'},oe(_0x5c0af3));});};}function _0x19442c(_0xac9686){return()=>{const _0xb0ec82=function(_0x428472){let _0x6a1647=Array[_0x461c('0x9')](_0x428472);const _0x4f1350=_0x6a1647[_0x461c('0x40')](_0x5f4f27=>'listItem'!=_0x5f4f27['name']);return _0x4f1350>-0x1&&(_0x6a1647=_0x6a1647[_0x461c('0x1c')](0x0,_0x4f1350)),_0x6a1647;}(_0x371aed[_0x461c('0x8')][_0x461c('0x4')]['selection'][_0x461c('0x3d')]()),_0x12ece0=_0x371aed[_0x461c('0x8')][_0x461c('0x11')](_0x371aed[_0x461c('0x8')]['createPositionAt'](_0xb0ec82[0x0],_0x461c('0x1f')),_0x371aed[_0x461c('0x8')]['createPositionAt'](_0xb0ec82[_0xb0ec82[_0x461c('0x1e')]-0x1],_0x461c('0x2')));_0x371aed[_0x461c('0x8')]['change'](()=>{_0x58d9fc['markBlockFormat'](_0x12ece0,{'commandName':_0xac9686,'commandParams':[],'formatGroupId':_0x461c('0x15')},function(_0x1d1744){const _0x1bca51=new Set();for(const _0x2adeed of _0x1d1744){let _0x5681fd=_0x2adeed[_0x461c('0x3f')];for(;_0x5681fd&&_0x5681fd[_0x461c('0x0')](_0x461c('0x15'))>_0x2adeed['getAttribute']('listIndent');)_0x1bca51[_0x461c('0x3c')](_0x5681fd),_0x5681fd=_0x5681fd[_0x461c('0x3f')];}return Array[_0x461c('0x9')](_0x1bca51);}(_0xb0ec82));});};}_0x58d9fc[_0x461c('0x3')](_0x461c('0x26'),_0x3ceef5('numberedList')),_0x58d9fc[_0x461c('0x3')](_0x461c('0x20'),_0x3ceef5(_0x461c('0x20'))),_0x43bafd&&_0x58d9fc[_0x461c('0x3')]('todoList',_0x3ceef5(_0x461c('0x18'))),_0x58d9fc[_0x461c('0x3')](_0x461c('0x2c'),_0x19442c(_0x461c('0x2c'))),_0x58d9fc['enableCommand'](_0x461c('0x39'),_0x19442c(_0x461c('0x39'))),_0x43bafd&&_0x58d9fc[_0x461c('0x3')](_0x461c('0xe'),()=>{const _0x3dfe7a=_0x371aed[_0x461c('0x27')][_0x461c('0x10')]('checkTodoList'),_0x4bc5bd=Array[_0x461c('0x9')](_0x3dfe7a[_0x461c('0x28')]);_0x4bc5bd[_0x461c('0x29')](_0x260bcf=>_0x260bcf[_0x461c('0x0')](_0x461c('0x32'))!=_0x3dfe7a[_0x461c('0xd')]),_0x371aed[_0x461c('0x8')][_0x461c('0x2f')](()=>{for(const _0x4eefc7 of _0x4bc5bd)_0x58d9fc[_0x461c('0x3a')](_0x4eefc7,{'commandName':_0x461c('0xe'),'commandParams':[{'forceValue':!_0x3dfe7a[_0x461c('0xd')]}]});});}),_0x58d9fc[_0x461c('0x2b')][_0x461c('0x25')](_0x461c('0x13'),_0x107f40=>_0x114b88(_0x1201b8,'ELEMENT_LIST_ITEM',_0x107f40)),_0x58d9fc[_0x461c('0x2b')]['registerDescriptionCallback'](_0xd2a372=>{if('formatBlock'!=_0xd2a372['type']&&_0x461c('0x23')!=_0xd2a372[_0x461c('0x3e')])return;const {data:_0x7907d8}=_0xd2a372;if(_0x7907d8){if(_0x461c('0x26')==_0x7907d8[_0x461c('0x16')]||'bulletedList'==_0x7907d8[_0x461c('0x16')]||_0x461c('0x18')==_0x7907d8['commandName'])switch(_0x7907d8[_0x461c('0x16')]['replace'](_0x461c('0x1b'),'')){case _0x461c('0x19'):return _0xc3ed1d(_0x114b88(_0x1201b8,_0x461c('0x12')));case _0x461c('0x7'):return _0xc3ed1d(_0x114b88(_0x1201b8,_0x461c('0x42')));case _0x461c('0x5'):return _0xc3ed1d(_0x114b88(_0x1201b8,_0x461c('0x2a')));}if(_0x461c('0x2c')==_0x7907d8[_0x461c('0x16')])return{'type':_0x461c('0x3b'),'content':_0x114b88(_0x1201b8,_0x461c('0xc'),_0x114b88(_0x1201b8,_0x461c('0x31')))};if(_0x461c('0x39')==_0x7907d8[_0x461c('0x16')])return{'type':_0x461c('0x3b'),'content':_0x114b88(_0x1201b8,'*Outdent:*\x20%0',_0x114b88(_0x1201b8,_0x461c('0x31')))};if(_0x461c('0xe')==_0x7907d8[_0x461c('0x16')])return _0x7907d8[_0x461c('0xf')][0x0][_0x461c('0x38')]?{'type':_0x461c('0x3b'),'content':_0x114b88(_0x1201b8,_0x461c('0x1a'))}:{'type':_0x461c('0x3b'),'content':_0x114b88(_0x1201b8,_0x461c('0x34'))};}function _0xc3ed1d(_0x504b73){return{'type':'format','content':_0x114b88(_0x1201b8,_0x461c('0xb'),_0x504b73)};}});}}function ne(_0x4a7a1d){const _0x3b4d46=_0x4a7a1d['getAttribute'](_0x461c('0x15'));if(0x0==_0x3b4d46)return _0x4a7a1d;let _0x219e8b=_0x4a7a1d;for(;_0x4a7a1d[_0x461c('0x33')]&&_0x4a7a1d[_0x461c('0x33')]['is'](_0x461c('0x22'),'listItem');){const _0x10756e=_0x4a7a1d[_0x461c('0x33')][_0x461c('0x0')]('listIndent');if(_0x10756e==_0x3b4d46)_0x219e8b=_0x4a7a1d[_0x461c('0x33')];else{if(_0x10756e<_0x3b4d46)break;}_0x4a7a1d=_0x4a7a1d[_0x461c('0x33')];}return _0x219e8b;}function oe(_0xb18061){const _0x577a35=[];if(_0xb18061['is']('element','listItem')&&_0xb18061['getAttribute'](_0x461c('0x15'))>0x0){let _0x5a2f65=_0xb18061[_0x461c('0x3f')];for(;_0x5a2f65&&_0x461c('0x13')==_0x5a2f65['name']&&_0x5a2f65[_0x461c('0x0')](_0x461c('0x15'))==_0xb18061[_0x461c('0x0')](_0x461c('0x15'));)_0x577a35[_0x461c('0xa')](_0x5a2f65),_0x5a2f65=_0x5a2f65[_0x461c('0x3f')];}return _0x577a35;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26bb=['listReversed','model','filter','before','length','flat','handleListStartCommand','LegacyListUtils','editor','*Change\x20to:*\x20%0','markMultiRangeBlockFormat','listItem','getAttribute','commandParams','listType','type','selection','commandName','_LIST_','has','getLastPosition','_getSuggestionBlocks','plugins','from','TrackChangesEditing','enableCommand','handleListStyleCommand','handleListReversedCommand','forward','bind','reversed','listStyle','toUpperCase','backward','numbered','getListTypeFromListStyleType','getSelectedBlocks','list.properties','document','*Format:*\x20set\x20start\x20index\x20to\x20%0','createRange','styles','*Format:*\x20set\x20order\x20to\x20regular','formatBlock','element','_getTranslationKeyForListStyle','format','startIndex','createPositionAt','listStart','push','replace','ELEMENT_','getSiblingNodes','map','LegacyListPropertiesEditing','handleDescriptions','_getSuggestionBlocksForListStyle','get','getFirstPosition','change','*Format:*\x20set\x20order\x20to\x20reversed','afterInit','config'];(function(_0x131fcc,_0x26bbd){const _0x297488=function(_0x1945e1){while(--_0x1945e1){_0x131fcc['push'](_0x131fcc['shift']());}};_0x297488(++_0x26bbd);}(_0x26bb,0xb4));const _0x2974=function(_0x131fcc,_0x26bbd){_0x131fcc=_0x131fcc-0x0;let _0x297488=_0x26bb[_0x131fcc];return _0x297488;};import{Plugin as _0x379515}from'ckeditor5/src/core.js';import{getTranslation as _0x513c25}from'../utils/common-translations.js';export default class K extends _0x379515{[_0x2974('0xa')](){if(!this[_0x2974('0x14')][_0x2974('0x22')][_0x2974('0x1f')](_0x2974('0x3')))return;const _0x5641d1=this[_0x2974('0x14')][_0x2974('0xb')][_0x2974('0x6')](_0x2974('0x31')),_0x2b7dfa=this['editor'][_0x2974('0x22')]['get'](_0x2974('0x24'));_0x5641d1[_0x2974('0x35')]&&_0x2b7dfa[_0x2974('0x25')](_0x2974('0x2b'),this[_0x2974('0x26')]['bind'](this)),_0x5641d1['reversed']&&_0x2b7dfa[_0x2974('0x25')](_0x2974('0xc'),this[_0x2974('0x27')][_0x2974('0x29')](this)),_0x5641d1[_0x2974('0x3b')]&&_0x2b7dfa[_0x2974('0x25')](_0x2974('0x3d'),this[_0x2974('0x12')]['bind'](this)),_0x2b7dfa['_descriptionFactory']['registerDescriptionCallback'](this[_0x2974('0x4')][_0x2974('0x29')](this));}[_0x2974('0x26')](_0x33ab35,_0x2dd542={}){const _0x402918=this[_0x2974('0x14')]['plugins'][_0x2974('0x6')]('TrackChangesEditing'),_0x285893=this[_0x2974('0x5')]();this[_0x2974('0x14')][_0x2974('0xd')][_0x2974('0x8')](()=>{_0x402918[_0x2974('0x16')](_0x285893,{'commandName':_0x2974('0x2b'),'commandParams':[{'type':_0x2dd542[_0x2974('0x1b')]}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x182a0b,_0x332c0d={}){const _0x4cda55=this[_0x2974('0x14')][_0x2974('0x22')][_0x2974('0x6')](_0x2974('0x24')),_0x2eb9a7=this['_getSuggestionBlocks'](_0x28b66e=>_0x28b66e['is']('element',_0x2974('0x17'))&&_0x2974('0x2e')===_0x28b66e[_0x2974('0x18')]('listType'));if(_0x2eb9a7[_0x2974('0x10')]<0x1)return;const _0x15c742=_0x2eb9a7[_0x2974('0x2')](_0x118713=>this['editor'][_0x2974('0xd')]['createRange'](this[_0x2974('0x14')][_0x2974('0xd')][_0x2974('0x3c')](_0x118713,_0x2974('0xf')),this[_0x2974('0x14')][_0x2974('0xd')]['createPositionAt'](_0x118713,0x0)));this[_0x2974('0x14')][_0x2974('0xd')]['change'](()=>{_0x4cda55['markMultiRangeBlockFormat'](_0x15c742,{'commandName':_0x2974('0xc'),'commandParams':[{'reversed':_0x332c0d[_0x2974('0x2a')]}],'formatGroupId':_0x2974('0xc')});});}[_0x2974('0x12')](_0x568cca,_0x39acc9={}){const _0x532d3e=this[_0x2974('0x14')][_0x2974('0x22')]['get']('TrackChangesEditing'),_0x8ca189=this['_getSuggestionBlocks'](_0x13be19=>_0x13be19['is']('element',_0x2974('0x17'))&&_0x2974('0x2e')===_0x13be19[_0x2974('0x18')](_0x2974('0x1a')));if(_0x8ca189['length']<0x1)return;const _0x102ebf=_0x8ca189[_0x2974('0x2')](_0x18f977=>this[_0x2974('0x14')]['model'][_0x2974('0x34')](this[_0x2974('0x14')][_0x2974('0xd')]['createPositionAt'](_0x18f977,_0x2974('0xf')),this[_0x2974('0x14')]['model'][_0x2974('0x3c')](_0x18f977,0x0)));this['editor']['model']['change'](()=>{_0x532d3e['markMultiRangeBlockFormat'](_0x102ebf,{'commandName':'listStart','commandParams':[{'startIndex':_0x39acc9[_0x2974('0x3b')]}],'formatGroupId':_0x2974('0x3d')});});}[_0x2974('0x4')](_0x9e2994){if(_0x2974('0x37')!=_0x9e2994[_0x2974('0x1b')]&&'formatInline'!=_0x9e2994[_0x2974('0x1b')])return;const _0x27907b=this['editor']['locale'],{data:_0x154d87}=_0x9e2994;if(!_0x154d87)return;let _0x392481,_0x2b5f11;switch(_0x154d87[_0x2974('0x1d')]){case'listStyle':_0x392481=_0x2974('0x15'),_0x2b5f11={'type':_0x2974('0x3a'),'content':_0x513c25(_0x27907b,_0x392481,_0x513c25(_0x27907b,this[_0x2974('0x39')](_0x154d87['commandParams'][0x0][_0x2974('0x1b')])))};break;case'listReversed':_0x392481=_0x154d87['commandParams'][0x0]['reversed']?_0x2974('0x9'):_0x2974('0x36'),_0x2b5f11={'type':_0x2974('0x3a'),'content':_0x513c25(_0x27907b,_0x392481)};break;case _0x2974('0x3d'):_0x392481=_0x2974('0x33'),_0x2b5f11={'type':'format','content':_0x513c25(_0x27907b,_0x392481,_0x154d87[_0x2974('0x19')][0x0][_0x2974('0x3b')])};}return _0x2b5f11;}[_0x2974('0x5')](){var _0x146053,_0x40083a,_0x500d17,_0x36846f;const _0x52d30d=this['editor'][_0x2974('0x22')]['get']('LegacyListUtils');let _0x513d36=Array['from'](this['editor'][_0x2974('0xd')][_0x2974('0x32')][_0x2974('0x1c')][_0x2974('0x30')]());return(null===(_0x146053=_0x513d36[0x0])||void 0x0===_0x146053?void 0x0:_0x146053['is'](_0x2974('0x38'),_0x2974('0x17')))&&_0x513d36['unshift'](..._0x52d30d[_0x2974('0x1')](this[_0x2974('0x14')][_0x2974('0xd')][_0x2974('0x32')]['selection']['getFirstPosition'](),'backward')),(null===(_0x40083a=_0x513d36[_0x513d36['length']-0x1])||void 0x0===_0x40083a?void 0x0:_0x40083a['is']('element','listItem'))&&_0x513d36[_0x2974('0x3e')](..._0x52d30d[_0x2974('0x1')](this[_0x2974('0x14')][_0x2974('0xd')]['document'][_0x2974('0x1c')][_0x2974('0x20')](),_0x2974('0x28'))),_0x513d36=[...new Set(_0x513d36)],(null===(_0x36846f=null===(_0x500d17=this[_0x2974('0x14')]['model'][_0x2974('0x32')][_0x2974('0x1c')][_0x2974('0x7')]())||void 0x0===_0x500d17?void 0x0:_0x500d17['parent'])||void 0x0===_0x36846f?void 0x0:_0x36846f['is'](_0x2974('0x38'),_0x2974('0x17')))&&(_0x513d36=_0x513d36[_0x2974('0xe')](_0x27b142=>_0x27b142['is'](_0x2974('0x38'),_0x2974('0x17')))),_0x513d36;}[_0x2974('0x21')](_0x5bd73d){const _0x8aa0e9=this[_0x2974('0x14')][_0x2974('0x22')][_0x2974('0x6')](_0x2974('0x13'));let _0x3caf42=Array[_0x2974('0x23')](this[_0x2974('0x14')][_0x2974('0xd')][_0x2974('0x32')][_0x2974('0x1c')][_0x2974('0x30')]())[_0x2974('0xe')](_0x5bd73d)[_0x2974('0x2')](_0x43327d=>{const _0x5e4f8e=this[_0x2974('0x14')][_0x2974('0xd')][_0x2974('0x3c')](_0x43327d,0x0);return[..._0x8aa0e9['getSiblingNodes'](_0x5e4f8e,_0x2974('0x2d')),..._0x8aa0e9['getSiblingNodes'](_0x5e4f8e,'forward')];})[_0x2974('0x11')]();return _0x3caf42=[...new Set(_0x3caf42)],_0x3caf42;}[_0x2974('0x39')](_0xa18fc3){return _0x2974('0x0')+this['editor'][_0x2974('0x22')][_0x2974('0x6')](_0x2974('0x13'))[_0x2974('0x2f')](_0xa18fc3)['toUpperCase']()+_0x2974('0x1e')+_0xa18fc3[_0x2974('0x2c')]()[_0x2974('0x3f')](/-/g,'_');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b88=['type','newValue','_registerLegacyDescription','*Remove\x20link*','manualDecorators','link\x20(','link','locale','_enableDefaultAttributesIntegration','TrackChangesEditing','registerDescriptionCallback','*Set\x20link:*\x20%0','attribute','format','get','toLowerCase','has','map','editor','label','afterInit','key','formatInline','commandName','plugins','_descriptionFactory','commandParams'];(function(_0x1fa5b7,_0x4b8802){const _0x46ed43=function(_0xbd2ee6){while(--_0xbd2ee6){_0x1fa5b7['push'](_0x1fa5b7['shift']());}};_0x46ed43(++_0x4b8802);}(_0x4b88,0xe9));const _0x46ed=function(_0x1fa5b7,_0x4b8802){_0x1fa5b7=_0x1fa5b7-0x0;let _0x46ed43=_0x4b88[_0x1fa5b7];return _0x46ed43;};import{Plugin as _0x201801}from'ckeditor5/src/core.js';import{getTranslation as _0x13c7c7}from'../utils/common-translations.js';export default class ct extends _0x201801{[_0x46ed('0x3')](){const _0x2f5e74=this[_0x46ed('0x1')];if(!_0x2f5e74['plugins'][_0x46ed('0x1a')]('LinkEditing'))return;const _0x2ddb85=_0x2f5e74[_0x46ed('0x7')]['get'](_0x46ed('0x13')),_0x1aaa87=_0x2f5e74['commands']['get']('link');_0x2ddb85[_0x46ed('0x12')](_0x46ed('0x10'),['linkHref',..._0x1aaa87['manualDecorators'][_0x46ed('0x0')](_0x181d41=>_0x181d41['id'])]),_0x2ddb85['_enableDefaultAttributesIntegration']('unlink');for(const _0x4db583 of _0x1aaa87[_0x46ed('0xe')])_0x2ddb85[_0x46ed('0x8')]['registerAttributeLabel'](_0x4db583['id'],_0x46ed('0xf')+_0x4db583[_0x46ed('0x2')][_0x46ed('0x19')]()+')');_0x2ddb85['_descriptionFactory'][_0x46ed('0x14')](_0x425520=>{if(_0x46ed('0x16')!=_0x425520[_0x46ed('0xa')])return;const {data:_0x11eb3a}=_0x425520;if(!_0x11eb3a||'linkHref'!=_0x11eb3a[_0x46ed('0x4')])return;const _0x5d535e=_0x11eb3a[_0x46ed('0xb')],_0x4e19d0=_0x2f5e74[_0x46ed('0x11')];return{'type':_0x46ed('0x17'),'content':null==_0x5d535e?_0x13c7c7(_0x4e19d0,'*Remove\x20link*'):_0x13c7c7(_0x4e19d0,_0x46ed('0x15'),'\x22'+_0x5d535e+'\x22')};}),this[_0x46ed('0xc')]();}[_0x46ed('0xc')](){const _0x2e50ed=this[_0x46ed('0x1')],_0xaa6b00=_0x2e50ed['locale'];_0x2e50ed['plugins'][_0x46ed('0x18')]('TrackChangesEditing')[_0x46ed('0x8')]['registerDescriptionCallback'](_0x59e160=>{if(_0x46ed('0x5')!=_0x59e160[_0x46ed('0xa')])return;const {data:_0x544c7e}=_0x59e160;if(_0x544c7e){if(_0x46ed('0x10')==_0x544c7e['commandName']){const _0x251d35=_0x544c7e[_0x46ed('0x9')][0x0];return{'type':_0x46ed('0x17'),'content':_0x13c7c7(_0xaa6b00,'*Set\x20link:*\x20%0','\x22'+_0x251d35+'\x22')};}return'unlink'==_0x544c7e[_0x46ed('0x6')]?{'type':_0x46ed('0x17'),'content':_0x13c7c7(_0xaa6b00,_0x46ed('0xd'))}:void 0x0;}});}}
|