@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240125.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 _0x3823=['has','HorizontalLineEditing','insert','createEmptyElement','registerElementLabel','createContainerElement','dataDowncast','elementToStructure','ELEMENT_HORIZONTAL_LINE','plugins','showSuggestionHighlights','ck-horizontal-line','enableCommand','high','horizontalLine','locale','get','TrackChangesEditing','_descriptionFactory','editor'];(function(_0x504d67,_0x38239e){const _0x172861=function(_0x344e0c){while(--_0x344e0c){_0x504d67['push'](_0x504d67['shift']());}};_0x172861(++_0x38239e);}(_0x3823,0x1b5));const _0x1728=function(_0x504d67,_0x38239e){_0x504d67=_0x504d67-0x0;let _0x172861=_0x3823[_0x504d67];return _0x172861;};import{Plugin as _0x16a758}from'ckeditor5/src/core.js';import{getTranslation as _0x6ebac9}from'../utils/common-translations.js';export default class tt extends _0x16a758{['afterInit'](){const _0x4edbcf=this[_0x1728('0x2')];if(!_0x4edbcf[_0x1728('0xc')][_0x1728('0x3')](_0x1728('0x4')))return;_0x4edbcf[_0x1728('0xc')][_0x1728('0x13')](_0x1728('0x0'))[_0x1728('0xf')]('horizontalLine');const _0x184e5b=_0x4edbcf[_0x1728('0xc')]['get']('TrackChangesEditing'),_0x135246=_0x4edbcf[_0x1728('0x12')];_0x184e5b[_0x1728('0x1')][_0x1728('0x7')](_0x1728('0x11'),_0x3e25ab=>_0x6ebac9(_0x135246,_0x1728('0xb'),_0x3e25ab)),_0x4edbcf['conversion']['for'](_0x1728('0x9'))[_0x1728('0xa')]({'model':_0x1728('0x11'),'view':(_0x375246,{writer:_0x3b8cc4,options:_0x3d8165})=>{if(!_0x3d8165[_0x1728('0xd')])return null;const _0x3625e2=_0x3b8cc4[_0x1728('0x8')]('div'),_0x3314c1=_0x3b8cc4[_0x1728('0x6')]('hr');return _0x3b8cc4['addClass'](_0x1728('0xe'),_0x3625e2),_0x3b8cc4[_0x1728('0x5')](_0x3b8cc4['createPositionAt'](_0x3625e2,0x0),_0x3314c1),_0x3625e2;},'converterPriority':_0x1728('0x10')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4292=['plugins','has','rawHtml','htmlEmbed','_descriptionFactory','type','start','TrackChangesEditing','format','get','ELEMENT_HTML_EMBED','registerDescriptionCallback','*Change\x20%0\x20content*','key','registerElementLabel','getFirstRange','nodeAfter','afterInit','HtmlEmbed','_enableDefaultAttributesIntegration','editor','element','locale'];(function(_0x566c84,_0x4292b0){const _0x4362d0=function(_0x155acc){while(--_0x155acc){_0x566c84['push'](_0x566c84['shift']());}};_0x4362d0(++_0x4292b0);}(_0x4292,0x1cf));const _0x4362=function(_0x566c84,_0x4292b0){_0x566c84=_0x566c84-0x0;let _0x4362d0=_0x4292[_0x566c84];return _0x4362d0;};import{Plugin as _0x5e98a1}from'ckeditor5/src/core.js';import{getTranslation as _0xf651f6}from'../utils/common-translations.js';export default class et extends _0x5e98a1{[_0x4362('0xe')](){const _0xe591c4=this['editor'];if(!_0xe591c4[_0x4362('0x14')][_0x4362('0x15')](_0x4362('0xf')))return;const _0x26097c=_0xe591c4['plugins'][_0x4362('0x6')](_0x4362('0x4')),_0x14c9ce=_0xe591c4[_0x4362('0x13')];_0x26097c[_0x4362('0x1')][_0x4362('0xb')](_0x4362('0x16'),_0x96abd6=>_0xf651f6(_0x14c9ce,_0x4362('0x7'),_0x96abd6)),_0x26097c[_0x4362('0x10')](_0x4362('0x0'),[],['value']),_0x26097c[_0x4362('0x1')][_0x4362('0x8')](_0x2465bf=>{if('attribute'!=_0x2465bf[_0x4362('0x2')])return;const {data:_0x598395}=_0x2465bf;if(_0x598395&&'value'==_0x598395[_0x4362('0xa')]&&_0x2465bf[_0x4362('0xc')]()[_0x4362('0x3')][_0x4362('0xd')]['is'](_0x4362('0x12'),_0x4362('0x16'))){const _0x25463c=_0xf651f6(_0x14c9ce,'ELEMENT_HTML_EMBED');return{'type':_0x4362('0x5'),'content':_0xf651f6(_0x14c9ce,_0x4362('0x9'),_0x25463c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a9e07=this[_0x4362('0x11')],_0x363dfb=_0x2a9e07[_0x4362('0x13')];_0x2a9e07[_0x4362('0x14')][_0x4362('0x6')](_0x4362('0x4'))[_0x4362('0x1')][_0x4362('0x8')](_0x4e53e9=>{if('formatBlock'!=_0x4e53e9[_0x4362('0x2')])return;const {data:_0x5da89a}=_0x4e53e9;if(_0x5da89a&&_0x4362('0x0')==_0x5da89a['commandName']){const _0x9b4ade=_0xf651f6(_0x363dfb,_0x4362('0x7'));return{'type':_0x4362('0x5'),'content':_0xf651f6(_0x363dfb,'*Change\x20%0\x20content*',_0x9b4ade)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x261d=['nodeBefore','attribute','detach','alt','removeObject','commandParams','isCollapsed','model','previous','formatBlock','createRangeOn','backward','_descriptionFactory','deletion','nodeAfter','registerCustomCallback','has','*Remove\x20image\x20text\x20alternative*','ImageResize','getFirstRange','start','imageTextAlternative','Inline\x20image\x20to\x20block\x20image','FORMAT_IMAGE_SIZE','find','toNext','change','getContainedElement','getCaptionFromImageModelElement','markBlockFormat','afterInit','document','imageStylePreApply','filter','chain','format','forward','accept','uploadImage','plugins','discard','*Set\x20image\x20width:*\x20%0','isBefore','end','convertBlockImageToInline','resizeImage','subType','get','key','insertion','ImageTextAlternativeEditing','imageCaption','length','commandName','enableCommand','ImageUploadEditing','isEqual','_suggestionFactory','TrackChangesEditing','registerElementLabel','getClosestSelectedImageElement','*Set\x20image\x20text\x20alternative:*\x20%0','_enableDefaultAttributesIntegration','addObject','Block\x20image\x20to\x20inline\x20image','isBlockImage','createRange','markInsertion','ELEMENT_IMAGE','markDeletion','*Reset\x20image\x20width*','caption','locale','toPrevious','_registerLegacyDescription','ImageEditing','imageTypeInline','fromPosition','newValue','editor','element','resizedWidth','ImageUtils','join','convertInlineImageToBlock','registerDescriptionCallback','type','selection','_findSuggestions','ImageInlineEditing','getNearestSelectionRange','insertImage'];(function(_0x51c261,_0x261d37){const _0x51961d=function(_0x136398){while(--_0x136398){_0x51c261['push'](_0x51c261['shift']());}};_0x51961d(++_0x261d37);}(_0x261d,0x1bb));const _0x5196=function(_0x51c261,_0x261d37){_0x51c261=_0x51c261-0x0;let _0x51961d=_0x261d[_0x51c261];return _0x51961d;};import{Plugin as _0x59278c}from'ckeditor5/src/core.js';import{LivePosition as _0x46c9b1}from'ckeditor5/src/engine.js';import{getTranslation as _0x1b7414}from'../utils/common-translations.js';export default class it extends _0x59278c{[_0x5196('0x2f')](){const _0x5c1eb5=this[_0x5196('0x4')];if(!_0x5c1eb5[_0x5196('0x38')][_0x5196('0x21')](_0x5196('0x0')))return;const _0x30864e=_0x5c1eb5[_0x5196('0x38')][_0x5196('0x40')](_0x5196('0x4b')),_0x77534b=_0x5c1eb5[_0x5196('0x38')][_0x5196('0x40')](_0x5196('0x7')),_0x5b4e6b=_0x5c1eb5[_0x5196('0x59')];_0x30864e[_0x5196('0x47')](_0x5196('0x10')),_0x30864e[_0x5196('0x1d')]['registerElementLabel']('imageBlock',_0x5cfb0c=>_0x1b7414(_0x5b4e6b,_0x5196('0x55'),_0x5cfb0c)),_0x30864e[_0x5196('0x1d')][_0x5196('0x4c')]('imageInline',_0x39229b=>_0x1b7414(_0x5b4e6b,'ELEMENT_INLINE_IMAGE',_0x39229b)),_0x30864e['_descriptionFactory'][_0x5196('0x4c')](_0x5196('0x58'),()=>_0x1b7414(_0x5b4e6b,'ELEMENT_CAPTION')),_0x5c1eb5['plugins'][_0x5196('0x21')](_0x5196('0x48'))&&_0x30864e[_0x5196('0x47')](_0x5196('0x37')),_0x5c1eb5[_0x5196('0x38')][_0x5196('0x21')]('ImageBlockEditing')&&_0x5c1eb5[_0x5196('0x38')][_0x5196('0x21')](_0x5196('0xe'))&&(_0x30864e['enableCommand']('imageTypeInline',(_0x3779a8,_0x6905fb)=>{const _0xecc669=_0x77534b['getClosestSelectedImageElement'](_0x5c1eb5['model'][_0x5196('0x30')][_0x5196('0xc')]);_0x5c1eb5[_0x5196('0x18')][_0x5196('0x2b')](()=>{_0x30864e['markBlockFormat'](_0xecc669,{'commandName':_0x5196('0x1'),'commandParams':[_0x6905fb]},[],_0x5196('0x3d'));});}),_0x30864e[_0x5196('0x47')]('imageTypeBlock',(_0x51876d,_0xc3c84a)=>{_0x5c1eb5[_0x5196('0x18')]['change'](_0x1093c0=>{let _0x603995=_0x77534b[_0x5196('0x4d')](_0x5c1eb5[_0x5196('0x18')][_0x5196('0x30')][_0x5196('0xc')]),_0x15a331=_0x1093c0['createRangeOn'](_0x603995);const _0x5df205=_0x46c9b1[_0x5196('0x2')](_0x15a331[_0x5196('0x25')],_0x5196('0x5a')),_0x1c5aa7=_0x46c9b1[_0x5196('0x2')](_0x15a331[_0x5196('0x3c')],_0x5196('0x2a'));_0x30864e['forceDefaultExecution'](()=>_0x51876d(_0xc3c84a)),_0x603995=_0x77534b[_0x5196('0x4d')](_0x5c1eb5[_0x5196('0x18')][_0x5196('0x30')]['selection']),_0x15a331=_0x1093c0['createRangeOn'](_0x603995);const _0x5622f5=_0x1093c0[_0x5196('0x53')](_0x5df205,_0x1c5aa7);_0x5df205['detach'](),_0x1c5aa7[_0x5196('0x13')](),_0x30864e[_0x5196('0x2e')](_0x603995,{'commandName':_0x5196('0x1'),'commandParams':[_0xc3c84a]},[],_0x5196('0x9')),_0x5622f5[_0x5196('0x25')][_0x5196('0x3b')](_0x15a331['start'])&&_0x30864e['markInsertion'](_0x1093c0[_0x5196('0x53')](_0x5622f5[_0x5196('0x25')],_0x15a331[_0x5196('0x25')]),_0x5196('0x9')),_0x15a331[_0x5196('0x3c')][_0x5196('0x3b')](_0x5622f5[_0x5196('0x3c')])&&_0x30864e[_0x5196('0x54')](_0x1093c0[_0x5196('0x53')](_0x15a331[_0x5196('0x3c')],_0x5622f5[_0x5196('0x3c')]),_0x5196('0x9'));});}),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')](_0x5196('0x1a'),_0x5196('0x9'),_0x5196('0x8'),()=>!0x1),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')]('formatBlock',_0x5196('0x9'),'accept',()=>!0x1),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')](_0x5196('0x1a'),_0x5196('0x9'),'discard',_0x30864e[_0x5196('0x4a')]['getSuggestionCallback'](_0x5196('0x1a'),'',_0x5196('0x36'))),_0x30864e[_0x5196('0x4a')]['registerCustomCallback']('insertion',_0x5196('0x9'),_0x5196('0x8'),()=>!0x1),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')](_0x5196('0x42'),_0x5196('0x9'),_0x5196('0x39'),([_0x177422])=>{const _0x1b0fba=_0x30864e[_0x5196('0x4a')]['getSuggestionCallback'](_0x5196('0x42'),'','discard');let _0x18e55e=_0x177422['start'],_0x28cf86=_0x177422[_0x5196('0x3c')];const _0x53a5aa=_0x5c1eb5['model']['schema']['getNearestSelectionRange'](_0x18e55e,_0x5196('0x1c')),_0x1a18a5=_0x5c1eb5['model']['schema'][_0x5196('0xf')](_0x28cf86,_0x5196('0x35'));_0x53a5aa[_0x5196('0x17')]&&(_0x18e55e=_0x53a5aa['start']),_0x1a18a5['isCollapsed']&&(_0x28cf86=_0x1a18a5[_0x5196('0x3c')]),_0x1b0fba([_0x5c1eb5['model']['createRange'](_0x18e55e,_0x28cf86)]);}),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')](_0x5196('0x1a'),_0x5196('0x9'),'chain',_0x46eaa1),_0x30864e[_0x5196('0x4a')][_0x5196('0x20')](_0x5196('0x42'),'convertInlineImageToBlock',_0x5196('0x33'),_0x46eaa1)),_0x5c1eb5[_0x5196('0x38')]['has']('ImageCaptionEditing')&&(_0x30864e[_0x5196('0x47')]('toggleImageCaption',(_0x389efa,_0x57064c)=>{const _0x3dc630=_0x5c1eb5['plugins'][_0x5196('0x40')]('ImageCaptionUtils');let _0x192a98=_0x77534b[_0x5196('0x4d')](_0x5c1eb5['model']['document'][_0x5196('0xc')]),_0x79171b=_0x3dc630[_0x5196('0x2d')](_0x192a98);_0x5c1eb5[_0x5196('0x18')]['change'](()=>{if(_0x79171b)return void _0x30864e[_0x5196('0x56')](_0x5c1eb5[_0x5196('0x18')][_0x5196('0x1b')](_0x79171b));const _0x571c50=_0x77534b[_0x5196('0x52')](_0x192a98);_0x389efa(_0x57064c),_0x192a98=_0x77534b[_0x5196('0x4d')](_0x5c1eb5['model'][_0x5196('0x30')][_0x5196('0xc')]),_0x79171b=_0x3dc630[_0x5196('0x2d')](_0x192a98),_0x30864e['markInsertion'](_0x5c1eb5[_0x5196('0x18')][_0x5196('0x1b')](_0x79171b),_0x571c50?null:'imageCaption');});}),_0x30864e['_suggestionFactory']['registerCustomCallback'](_0x5196('0x42'),_0x5196('0x44'),'chain',_0x46eaa1));const _0x2f29c6=[{'type':_0x5196('0x1a'),'subType':_0x5196('0x31')},{'type':_0x5196('0x42'),'subType':_0x5196('0x44')},{'type':'formatBlock','subType':_0x5196('0x9')},{'type':_0x5196('0x42'),'subType':_0x5196('0x9')}];function _0x18dc4a(_0x3a9455,_0x3086c6){const _0x1f1509=_0x2f29c6['findIndex'](({type:_0x2d005f,subType:_0x41d993})=>_0x3a9455[_0x5196('0xb')]==_0x2d005f&&_0x3a9455['subType']==_0x41d993),_0x1996e7=_0x2f29c6['findIndex'](({type:_0x250576,subType:_0x5ae73})=>_0x3086c6[_0x5196('0xb')]==_0x250576&&_0x3086c6['subType']==_0x5ae73);if(_0x1f1509<0x0||_0x1996e7<0x0)return!0x1;const _0x2bf528=_0x3a9455[_0x5196('0x24')](),_0x4a769d=_0x3086c6[_0x5196('0x24')]();if((0x0==_0x1f1509||0x1==_0x1f1509)&&0x2==_0x1996e7&&_0x2bf528['isIntersecting'](_0x4a769d))return!0x0;if(0x2==_0x1f1509&&0x3==_0x1996e7){const _0x4cc2a7=_0x30864e[_0x5196('0xd')](_0x2bf528,_0x5196('0x42'))[_0x5196('0x32')](({suggestion:_0x194ec6,meta:_0x14ae12})=>_0x14ae12['isOwn']&&_0x5196('0x9')==_0x194ec6[_0x5196('0x3f')]);if(_0x4cc2a7[_0x5196('0x45')]>0x1&&_0x4a769d[_0x5196('0x3c')][_0x5196('0x49')](_0x2bf528['start']))return!0x0;if(0x1==_0x4cc2a7[_0x5196('0x45')]&&(_0x2bf528[_0x5196('0x25')][_0x5196('0x49')](_0x4a769d[_0x5196('0x3c')])||_0x2bf528[_0x5196('0x3c')][_0x5196('0x49')](_0x4a769d[_0x5196('0x25')])))return!0x0;}if(0x3==_0x1f1509&&0x3==_0x1996e7&&_0x2bf528[_0x5196('0x25')][_0x5196('0x3b')](_0x4a769d[_0x5196('0x25')])){const _0x5e50dd=_0x2bf528['end'][_0x5196('0x1f')],_0x4348a4=_0x4a769d[_0x5196('0x25')][_0x5196('0x11')];return _0x77534b[_0x5196('0x52')](_0x5e50dd)&&_0x5e50dd===_0x4348a4;}return!0x1;}function _0x46eaa1(_0x27162d,_0xdd97cc){return _0x18dc4a(_0x27162d,_0xdd97cc)?[_0x27162d,_0xdd97cc]:_0x18dc4a(_0xdd97cc,_0x27162d)?[_0xdd97cc,_0x27162d]:null;}_0x5c1eb5[_0x5196('0x38')][_0x5196('0x21')](_0x5196('0x23'))&&(_0x30864e[_0x5196('0x4f')](_0x5196('0x3e'),[],[_0x5196('0x6')]),_0x30864e[_0x5196('0x1d')]['registerAttributeLabel']('resizedWidth',_0x1b7414(_0x5b4e6b,_0x5196('0x28')))),_0x5c1eb5[_0x5196('0x38')][_0x5196('0x21')](_0x5196('0x43'))&&_0x30864e[_0x5196('0x4f')](_0x5196('0x26'),[],[_0x5196('0x14')]),_0x30864e[_0x5196('0x1d')][_0x5196('0xa')](_0x1d8ddd=>{if(!!_0x2f29c6[_0x5196('0x29')](({type:_0x54ada5,subType:_0x3c1144})=>_0x1d8ddd[_0x5196('0xb')]==_0x54ada5&&_0x1d8ddd[_0x5196('0x3f')]==_0x3c1144))return _0x1d8ddd[_0x5196('0x19')]?{}:void 0x0;}),_0x30864e[_0x5196('0x1d')]['registerDescriptionCallback'](_0xf17a5d=>{if(_0x5196('0x42')==_0xf17a5d['type']||_0x5196('0x1e')==_0xf17a5d[_0x5196('0xb')]){const _0x3b5aee=_0xf17a5d[_0x5196('0x2c')]();if(_0x3b5aee&&_0x3b5aee['is'](_0x5196('0x5'),'caption'))return{'type':_0x5196('0x42')==_0xf17a5d[_0x5196('0xb')]?_0x5196('0x50'):_0x5196('0x15'),'element':_0x3b5aee,'quantity':0x1};}}),_0x30864e['_descriptionFactory']['registerDescriptionCallback'](_0x3056cd=>'formatBlock'==_0x3056cd['type']&&_0x5196('0x9')==_0x3056cd['subType']?{'type':_0x5196('0x34'),'content':_0x5196('0x27')}:_0x5196('0x1a')==_0x3056cd[_0x5196('0xb')]&&_0x5196('0x3d')==_0x3056cd[_0x5196('0x3f')]?{'type':_0x5196('0x34'),'content':_0x5196('0x51')}:void 0x0),_0x30864e['_descriptionFactory'][_0x5196('0xa')](_0x36921a=>{if(_0x5196('0x12')!=_0x36921a[_0x5196('0xb')])return;const {data:_0x3d8710}=_0x36921a;if(!_0x3d8710||'alt'!=_0x3d8710[_0x5196('0x41')])return;const _0x295cec=_0x3d8710[_0x5196('0x3')];return _0x295cec?{'type':_0x5196('0x34'),'content':_0x1b7414(_0x5b4e6b,_0x5196('0x4e'),'\x22'+_0x295cec+'\x22')}:{'type':_0x5196('0x34'),'content':_0x1b7414(_0x5b4e6b,_0x5196('0x22'))};}),this[_0x5196('0x5b')]();}['_registerLegacyDescription'](){const _0x27c286=this[_0x5196('0x4')],_0x2fd6d3=_0x27c286['locale'];_0x27c286[_0x5196('0x38')][_0x5196('0x40')](_0x5196('0x4b'))['_descriptionFactory']['registerDescriptionCallback'](_0x34c830=>{if(_0x5196('0x1a')!=_0x34c830[_0x5196('0xb')]&&'formatInline'!=_0x34c830[_0x5196('0xb')])return;const {data:_0x70d4b1}=_0x34c830;if(_0x70d4b1){if(_0x5196('0x26')==_0x70d4b1[_0x5196('0x46')]){const _0x168be5=_0x70d4b1[_0x5196('0x16')][0x0][_0x5196('0x3')];return _0x168be5?{'type':_0x5196('0x34'),'content':_0x1b7414(_0x2fd6d3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x168be5+'\x22')}:{'type':_0x5196('0x34'),'content':_0x1b7414(_0x2fd6d3,_0x5196('0x22'))};}if('resizeImage'==_0x70d4b1[_0x5196('0x46')]){const _0x2a616a=_0x70d4b1[_0x5196('0x16')][0x0]['width'];return _0x2a616a?{'type':_0x5196('0x34'),'content':_0x1b7414(_0x2fd6d3,_0x5196('0x3a'),_0x2a616a)}:{'type':_0x5196('0x34'),'content':_0x1b7414(_0x2fd6d3,_0x5196('0x57'))};}}});}}
|
|
23
|
+
const _0x2b78=['ELEMENT_INLINE_IMAGE','Block\x20image\x20to\x20inline\x20image','_descriptionFactory','enableCommand','change','ImageInlineEditing','_enableDefaultAttributesIntegration','resizedWidth','_registerLegacyDescription','ImageEditing','isEqual','schema','forceDefaultExecution','findIndex','type','chain','key','formatBlock','addObject','deletion','ImageUploadEditing','uploadImage','imageStylePreApply','*Set\x20image\x20width:*\x20%0','ImageBlockEditing','imageCaption','_findSuggestions','detach','end','markInsertion','isBefore','resizeImage','newValue','forward','selection','fromPosition','createRangeOn','isIntersecting','toNext','TrackChangesEditing','length','ELEMENT_CAPTION','element','start','convertBlockImageToInline','discard','join','formatInline','FORMAT_IMAGE_SIZE','plugins','imageBlock','getSuggestionCallback','isOwn','imageTextAlternative','getFirstRange','editor','getContainedElement','*Reset\x20image\x20width*','registerAttributeLabel','accept','format','imageInline','insertion','registerElementLabel','getClosestSelectedImageElement','registerDescriptionCallback','imageTypeInline','ImageCaptionEditing','filter','convertInlineImageToBlock','get','afterInit','markDeletion','ImageResize','getCaptionFromImageModelElement','model','width','toPrevious','*Set\x20image\x20text\x20alternative:*\x20%0','isBlockImage','isCollapsed','_suggestionFactory','registerCustomCallback','caption','alt','createRange','subType','getNearestSelectionRange','locale','imageTypeBlock','backward','nodeAfter','has','find','document','commandParams'];(function(_0x2ba469,_0x2b78e0){const _0x28cdd8=function(_0x24ba61){while(--_0x24ba61){_0x2ba469['push'](_0x2ba469['shift']());}};_0x28cdd8(++_0x2b78e0);}(_0x2b78,0x11b));const _0x28cd=function(_0x2ba469,_0x2b78e0){_0x2ba469=_0x2ba469-0x0;let _0x28cdd8=_0x2b78[_0x2ba469];return _0x28cdd8;};import{Plugin as _0x4c2bd5}from'ckeditor5/src/core.js';import{LivePosition as _0x1e204e}from'ckeditor5/src/engine.js';import{getTranslation as _0x5bd039}from'../utils/common-translations.js';export default class it extends _0x4c2bd5{[_0x28cd('0x4c')](){const _0x25a855=this['editor'];if(!_0x25a855[_0x28cd('0x36')][_0x28cd('0x1')](_0x28cd('0xe')))return;const _0xcf525=_0x25a855['plugins'][_0x28cd('0x4b')]('TrackChangesEditing'),_0x58188f=_0x25a855['plugins'][_0x28cd('0x4b')]('ImageUtils'),_0x133356=_0x25a855[_0x28cd('0x5d')];_0xcf525[_0x28cd('0x8')]('insertImage'),_0xcf525[_0x28cd('0x7')][_0x28cd('0x44')](_0x28cd('0x37'),_0x6db9d3=>_0x5bd039(_0x133356,'ELEMENT_IMAGE',_0x6db9d3)),_0xcf525[_0x28cd('0x7')][_0x28cd('0x44')](_0x28cd('0x42'),_0x4c8be9=>_0x5bd039(_0x133356,_0x28cd('0x5'),_0x4c8be9)),_0xcf525[_0x28cd('0x7')][_0x28cd('0x44')](_0x28cd('0x58'),()=>_0x5bd039(_0x133356,_0x28cd('0x2e'))),_0x25a855[_0x28cd('0x36')][_0x28cd('0x1')](_0x28cd('0x19'))&&_0xcf525[_0x28cd('0x8')](_0x28cd('0x1a')),_0x25a855[_0x28cd('0x36')][_0x28cd('0x1')](_0x28cd('0x1d'))&&_0x25a855[_0x28cd('0x36')]['has'](_0x28cd('0xa'))&&(_0xcf525[_0x28cd('0x8')](_0x28cd('0x47'),(_0x5aa7e1,_0x271eb3)=>{const _0x2fdc18=_0x58188f[_0x28cd('0x45')](_0x25a855[_0x28cd('0x50')][_0x28cd('0x3')][_0x28cd('0x27')]);_0x25a855[_0x28cd('0x50')][_0x28cd('0x9')](()=>{_0xcf525['markBlockFormat'](_0x2fdc18,{'commandName':_0x28cd('0x47'),'commandParams':[_0x271eb3]},[],'convertBlockImageToInline');});}),_0xcf525['enableCommand'](_0x28cd('0x5e'),(_0x227bf1,_0x53ac12)=>{_0x25a855[_0x28cd('0x50')]['change'](_0x240dc1=>{let _0x2833ba=_0x58188f[_0x28cd('0x45')](_0x25a855[_0x28cd('0x50')][_0x28cd('0x3')][_0x28cd('0x27')]),_0x47173d=_0x240dc1[_0x28cd('0x29')](_0x2833ba);const _0x42b28c=_0x1e204e[_0x28cd('0x28')](_0x47173d[_0x28cd('0x30')],_0x28cd('0x52')),_0x2c0bc8=_0x1e204e[_0x28cd('0x28')](_0x47173d['end'],_0x28cd('0x2b'));_0xcf525[_0x28cd('0x11')](()=>_0x227bf1(_0x53ac12)),_0x2833ba=_0x58188f['getClosestSelectedImageElement'](_0x25a855['model'][_0x28cd('0x3')]['selection']),_0x47173d=_0x240dc1[_0x28cd('0x29')](_0x2833ba);const _0x3614a9=_0x240dc1[_0x28cd('0x5a')](_0x42b28c,_0x2c0bc8);_0x42b28c['detach'](),_0x2c0bc8[_0x28cd('0x20')](),_0xcf525['markBlockFormat'](_0x2833ba,{'commandName':_0x28cd('0x47'),'commandParams':[_0x53ac12]},[],_0x28cd('0x4a')),_0x3614a9[_0x28cd('0x30')]['isBefore'](_0x47173d['start'])&&_0xcf525[_0x28cd('0x22')](_0x240dc1[_0x28cd('0x5a')](_0x3614a9[_0x28cd('0x30')],_0x47173d[_0x28cd('0x30')]),_0x28cd('0x4a')),_0x47173d['end'][_0x28cd('0x23')](_0x3614a9[_0x28cd('0x21')])&&_0xcf525[_0x28cd('0x22')](_0x240dc1['createRange'](_0x47173d[_0x28cd('0x21')],_0x3614a9['end']),_0x28cd('0x4a'));});}),_0xcf525[_0x28cd('0x56')][_0x28cd('0x57')](_0x28cd('0x16'),'convertInlineImageToBlock',_0x28cd('0x33'),()=>!0x1),_0xcf525[_0x28cd('0x56')]['registerCustomCallback'](_0x28cd('0x16'),'convertInlineImageToBlock',_0x28cd('0x40'),()=>!0x1),_0xcf525[_0x28cd('0x56')][_0x28cd('0x57')]('formatBlock','convertInlineImageToBlock',_0x28cd('0x32'),_0xcf525['_suggestionFactory'][_0x28cd('0x38')](_0x28cd('0x16'),'',_0x28cd('0x40'))),_0xcf525[_0x28cd('0x56')][_0x28cd('0x57')](_0x28cd('0x43'),_0x28cd('0x4a'),'join',()=>!0x1),_0xcf525[_0x28cd('0x56')]['registerCustomCallback']('insertion',_0x28cd('0x4a'),_0x28cd('0x32'),([_0x151865])=>{const _0x250b9a=_0xcf525[_0x28cd('0x56')][_0x28cd('0x38')](_0x28cd('0x43'),'','discard');let _0x43b736=_0x151865['start'],_0x475ee2=_0x151865[_0x28cd('0x21')];const _0x509748=_0x25a855[_0x28cd('0x50')][_0x28cd('0x10')]['getNearestSelectionRange'](_0x43b736,_0x28cd('0x5f')),_0x7a20ae=_0x25a855['model'][_0x28cd('0x10')][_0x28cd('0x5c')](_0x475ee2,_0x28cd('0x26'));_0x509748[_0x28cd('0x55')]&&(_0x43b736=_0x509748[_0x28cd('0x30')]),_0x7a20ae['isCollapsed']&&(_0x475ee2=_0x7a20ae['end']),_0x250b9a([_0x25a855[_0x28cd('0x50')][_0x28cd('0x5a')](_0x43b736,_0x475ee2)]);}),_0xcf525[_0x28cd('0x56')][_0x28cd('0x57')](_0x28cd('0x16'),_0x28cd('0x4a'),'chain',_0x449fd5),_0xcf525[_0x28cd('0x56')][_0x28cd('0x57')](_0x28cd('0x43'),_0x28cd('0x4a'),_0x28cd('0x14'),_0x449fd5)),_0x25a855[_0x28cd('0x36')]['has'](_0x28cd('0x48'))&&(_0xcf525[_0x28cd('0x8')]('toggleImageCaption',(_0x3f85db,_0x172b0e)=>{const _0x482221=_0x25a855[_0x28cd('0x36')]['get']('ImageCaptionUtils');let _0x3ca160=_0x58188f[_0x28cd('0x45')](_0x25a855[_0x28cd('0x50')][_0x28cd('0x3')][_0x28cd('0x27')]),_0x3b8623=_0x482221[_0x28cd('0x4f')](_0x3ca160);_0x25a855[_0x28cd('0x50')][_0x28cd('0x9')](()=>{if(_0x3b8623)return void _0xcf525[_0x28cd('0x4d')](_0x25a855[_0x28cd('0x50')]['createRangeOn'](_0x3b8623));const _0x4fb87c=_0x58188f[_0x28cd('0x54')](_0x3ca160);_0x3f85db(_0x172b0e),_0x3ca160=_0x58188f[_0x28cd('0x45')](_0x25a855[_0x28cd('0x50')][_0x28cd('0x3')][_0x28cd('0x27')]),_0x3b8623=_0x482221[_0x28cd('0x4f')](_0x3ca160),_0xcf525[_0x28cd('0x22')](_0x25a855[_0x28cd('0x50')]['createRangeOn'](_0x3b8623),_0x4fb87c?null:'imageCaption');});}),_0xcf525['_suggestionFactory'][_0x28cd('0x57')](_0x28cd('0x43'),_0x28cd('0x1e'),_0x28cd('0x14'),_0x449fd5));const _0x290977=[{'type':_0x28cd('0x16'),'subType':_0x28cd('0x1b')},{'type':'insertion','subType':_0x28cd('0x1e')},{'type':_0x28cd('0x16'),'subType':'convertInlineImageToBlock'},{'type':'insertion','subType':_0x28cd('0x4a')}];function _0x2f6550(_0xd1ca4c,_0x333fb9){const _0x27fad3=_0x290977['findIndex'](({type:_0x4ebe07,subType:_0x13d9b7})=>_0xd1ca4c[_0x28cd('0x13')]==_0x4ebe07&&_0xd1ca4c[_0x28cd('0x5b')]==_0x13d9b7),_0x3ecf95=_0x290977[_0x28cd('0x12')](({type:_0x5ea20d,subType:_0x6b866a})=>_0x333fb9[_0x28cd('0x13')]==_0x5ea20d&&_0x333fb9[_0x28cd('0x5b')]==_0x6b866a);if(_0x27fad3<0x0||_0x3ecf95<0x0)return!0x1;const _0x1f5ba8=_0xd1ca4c['getFirstRange'](),_0x5757c2=_0x333fb9[_0x28cd('0x3b')]();if((0x0==_0x27fad3||0x1==_0x27fad3)&&0x2==_0x3ecf95&&_0x1f5ba8[_0x28cd('0x2a')](_0x5757c2))return!0x0;if(0x2==_0x27fad3&&0x3==_0x3ecf95){const _0x27a9f5=_0xcf525[_0x28cd('0x1f')](_0x1f5ba8,'insertion')[_0x28cd('0x49')](({suggestion:_0x3db598,meta:_0x47679f})=>_0x47679f[_0x28cd('0x39')]&&_0x28cd('0x4a')==_0x3db598['subType']);if(_0x27a9f5['length']>0x1&&_0x5757c2[_0x28cd('0x21')][_0x28cd('0xf')](_0x1f5ba8[_0x28cd('0x30')]))return!0x0;if(0x1==_0x27a9f5[_0x28cd('0x2d')]&&(_0x1f5ba8[_0x28cd('0x30')][_0x28cd('0xf')](_0x5757c2[_0x28cd('0x21')])||_0x1f5ba8['end'][_0x28cd('0xf')](_0x5757c2[_0x28cd('0x30')])))return!0x0;}if(0x3==_0x27fad3&&0x3==_0x3ecf95&&_0x1f5ba8[_0x28cd('0x30')][_0x28cd('0x23')](_0x5757c2['start'])){const _0x3bd220=_0x1f5ba8[_0x28cd('0x21')][_0x28cd('0x0')],_0x57aa18=_0x5757c2[_0x28cd('0x30')]['nodeBefore'];return _0x58188f[_0x28cd('0x54')](_0x3bd220)&&_0x3bd220===_0x57aa18;}return!0x1;}function _0x449fd5(_0x172d08,_0x271caa){return _0x2f6550(_0x172d08,_0x271caa)?[_0x172d08,_0x271caa]:_0x2f6550(_0x271caa,_0x172d08)?[_0x271caa,_0x172d08]:null;}_0x25a855[_0x28cd('0x36')][_0x28cd('0x1')](_0x28cd('0x4e'))&&(_0xcf525[_0x28cd('0xb')](_0x28cd('0x24'),[],[_0x28cd('0xc')]),_0xcf525[_0x28cd('0x7')][_0x28cd('0x3f')](_0x28cd('0xc'),_0x5bd039(_0x133356,_0x28cd('0x35')))),_0x25a855[_0x28cd('0x36')][_0x28cd('0x1')]('ImageTextAlternativeEditing')&&_0xcf525[_0x28cd('0xb')](_0x28cd('0x3a'),[],[_0x28cd('0x59')]),_0xcf525['_descriptionFactory']['registerDescriptionCallback'](_0x123432=>{if(!!_0x290977[_0x28cd('0x2')](({type:_0x140436,subType:_0xa12f04})=>_0x123432[_0x28cd('0x13')]==_0x140436&&_0x123432[_0x28cd('0x5b')]==_0xa12f04))return _0x123432['previous']?{}:void 0x0;}),_0xcf525[_0x28cd('0x7')][_0x28cd('0x46')](_0x5e445b=>{if(_0x28cd('0x43')==_0x5e445b[_0x28cd('0x13')]||_0x28cd('0x18')==_0x5e445b['type']){const _0x2e42cf=_0x5e445b[_0x28cd('0x3d')]();if(_0x2e42cf&&_0x2e42cf['is'](_0x28cd('0x2f'),_0x28cd('0x58')))return{'type':_0x28cd('0x43')==_0x5e445b['type']?_0x28cd('0x17'):'removeObject','element':_0x2e42cf,'quantity':0x1};}}),_0xcf525[_0x28cd('0x7')]['registerDescriptionCallback'](_0x43c99e=>_0x28cd('0x16')==_0x43c99e[_0x28cd('0x13')]&&_0x28cd('0x4a')==_0x43c99e[_0x28cd('0x5b')]?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x43c99e[_0x28cd('0x13')]&&_0x28cd('0x31')==_0x43c99e['subType']?{'type':'format','content':_0x28cd('0x6')}:void 0x0),_0xcf525[_0x28cd('0x7')][_0x28cd('0x46')](_0x3b706f=>{if('attribute'!=_0x3b706f[_0x28cd('0x13')])return;const {data:_0x3ca963}=_0x3b706f;if(!_0x3ca963||_0x28cd('0x59')!=_0x3ca963[_0x28cd('0x15')])return;const _0x3be9d3=_0x3ca963[_0x28cd('0x25')];return _0x3be9d3?{'type':'format','content':_0x5bd039(_0x133356,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3be9d3+'\x22')}:{'type':_0x28cd('0x41'),'content':_0x5bd039(_0x133356,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x28cd('0xd')]();}['_registerLegacyDescription'](){const _0x3024a3=this[_0x28cd('0x3c')],_0x57f13b=_0x3024a3['locale'];_0x3024a3[_0x28cd('0x36')][_0x28cd('0x4b')](_0x28cd('0x2c'))[_0x28cd('0x7')][_0x28cd('0x46')](_0x1513ad=>{if(_0x28cd('0x16')!=_0x1513ad[_0x28cd('0x13')]&&_0x28cd('0x34')!=_0x1513ad[_0x28cd('0x13')])return;const {data:_0xe31827}=_0x1513ad;if(_0xe31827){if(_0x28cd('0x3a')==_0xe31827['commandName']){const _0x37c806=_0xe31827['commandParams'][0x0]['newValue'];return _0x37c806?{'type':_0x28cd('0x41'),'content':_0x5bd039(_0x57f13b,_0x28cd('0x53'),'\x22'+_0x37c806+'\x22')}:{'type':_0x28cd('0x41'),'content':_0x5bd039(_0x57f13b,'*Remove\x20image\x20text\x20alternative*')};}if(_0x28cd('0x24')==_0xe31827['commandName']){const _0x881058=_0xe31827[_0x28cd('0x4')][0x0][_0x28cd('0x51')];return _0x881058?{'type':_0x28cd('0x41'),'content':_0x5bd039(_0x57f13b,_0x28cd('0x1c'),_0x881058)}:{'type':_0x28cd('0x41'),'content':_0x5bd039(_0x57f13b,_0x28cd('0x3e'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a1b=['get','src','_enableDefaultAttributesIntegration','_handleLegacySuggestions','ImageEditing','_suggestionFactory','registerDescriptionCallback','registerCustomCallback','locale','attribute','_registerLegacyDescription','discard','replaceImageSource','key','type','accept','editor','*Replace\x20image\x20URL*','TrackChangesEditing','format','*Format:*\x20replace\x20image\x20URL','plugins','formatBlock','afterInit','oldValue','formatInline','newValue'];(function(_0x2115b2,_0x2a1b53){const _0x445229=function(_0x2f4980){while(--_0x2f4980){_0x2115b2['push'](_0x2115b2['shift']());}};_0x445229(++_0x2a1b53);}(_0x2a1b,0xef));const _0x4452=function(_0x2115b2,_0x2a1b53){_0x2115b2=_0x2115b2-0x0;let _0x445229=_0x2a1b[_0x2115b2];return _0x445229;};import{Plugin as _0x5a4610}from'ckeditor5/src/core.js';import{getTranslation as _0x5d4dc6}from'../utils/common-translations.js';export default class st extends _0x5a4610{[_0x4452('0x0')](){if(!this['editor'][_0x4452('0x19')]['has'](_0x4452('0x8')))return;const _0x27e9f5=this['editor'][_0x4452('0xc')],_0x41f3b2=this[_0x4452('0x14')][_0x4452('0x19')][_0x4452('0x4')]('TrackChangesEditing');_0x41f3b2[_0x4452('0x6')](_0x4452('0x10'),[],['src']),_0x41f3b2['_descriptionFactory'][_0x4452('0xa')](_0x4968a1=>{if(_0x4452('0xd')!=_0x4968a1[_0x4452('0x12')])return;const {data:_0x3c6caa}=_0x4968a1;return _0x3c6caa&&_0x4452('0x5')==_0x3c6caa[_0x4452('0x11')]?_0x3c6caa[_0x4452('0x3')]&&_0x3c6caa[_0x4452('0x1')]?{'type':_0x4452('0x17'),'content':_0x5d4dc6(_0x27e9f5,_0x4452('0x15'))}:{'type':_0x4452('0x17'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}[_0x4452('0x7')](){const _0x22c37a=this['editor'][_0x4452('0x19')][_0x4452('0x4')](_0x4452('0x16'));_0x22c37a[_0x4452('0x9')][_0x4452('0xb')](_0x4452('0x1a'),_0x4452('0x10'),_0x4452('0x13'),_0x22c37a[_0x4452('0x9')]['getSuggestionCallback'](_0x4452('0x1a'),null,_0x4452('0xf'))),_0x22c37a[_0x4452('0x9')][_0x4452('0xb')](_0x4452('0x1a'),'replaceImageSource',_0x4452('0xf'),_0x22c37a[_0x4452('0x9')]['getSuggestionCallback'](_0x4452('0x1a'),null,'accept')),this[_0x4452('0xe')]();}['_registerLegacyDescription'](){const _0x448e0b=this['editor'],_0x5bcb32=_0x448e0b[_0x4452('0xc')];_0x448e0b['plugins']['get'](_0x4452('0x16'))['_descriptionFactory'][_0x4452('0xa')](_0x9c832f=>{if(_0x4452('0x1a')!=_0x9c832f['type']&&_0x4452('0x2')!=_0x9c832f[_0x4452('0x12')])return;const {data:_0x4cd960}=_0x9c832f;if(!_0x4cd960||_0x4452('0x10')!=_0x4cd960['commandName'])return;return{'type':_0x4452('0x17'),'content':_0x5d4dc6(_0x5bcb32,_0x4452('0x18'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40bd=['isInContent','value','shouldConvertImageType','markBlockFormat','isIntersecting','imageStylePostApply','selection','imageTypeInline','forEach','document','chain','_registerLegacyDescription','getFirstRange','*Format:*\x20%0','commandName','start','differ','registerPostFixer','getSuggestions','accept','end','type','getSuggestion','ImageStyleEditing','imageTypeBlock','getContainedElement','isEqual','plugins','convertInlineImageToBlock','formatBlock','subType','normalizedStyles','change','_splitMarkerName','title','isBefore','editor','commandReversedParams','join','_descriptionFactory','hasSuggestion','model','isBlockImage','findIndex','getClosestSelectedImageElement','locale','nodeAfter','createRangeOn','name','discardSuggestion','suggestion','imageCaption','afterInit','format','isInlineImage','refresh','get','nodeBefore','commandParams','imageStylePreApply','FORMAT_SIDE_IMAGE','TrackChangesEditing','filter','registerCustomCallback','imageStyle','commands','discard','newRange','author','next','_suggestionFactory','formatInline','insertion','length'];(function(_0x2232dc,_0x40bdd5){const _0xe1281=function(_0x9f9f8a){while(--_0x9f9f8a){_0x2232dc['push'](_0x2232dc['shift']());}};_0xe1281(++_0x40bdd5);}(_0x40bd,0xf3));const _0xe128=function(_0x2232dc,_0x40bdd5){_0x2232dc=_0x2232dc-0x0;let _0xe1281=_0x40bd[_0x2232dc];return _0xe1281;};import{Plugin as _0x24dae7}from'ckeditor5/src/core.js';import{uid as _0xfa9b17}from'ckeditor5/src/utils.js';import{getTranslation as _0x24a8dc}from'../utils/common-translations.js';export default class nt extends _0x24dae7{[_0xe128('0x1f')](){const _0x34c371=this['editor'];if(!_0x34c371[_0xe128('0x6')]['has'](_0xe128('0x2')))return;const _0x19bb9b=_0x34c371[_0xe128('0x6')][_0xe128('0x23')](_0xe128('0x28')),_0x4f8630=_0x34c371['plugins'][_0xe128('0x23')]('ImageUtils'),_0x1a951c={};_0x19bb9b['enableCommand'](_0xe128('0x2b'),(_0x229972,_0x246188)=>{const _0x1dc4ec=_0x34c371['plugins'][_0xe128('0x23')]('Users')['me'],_0xdbdf1e=_0x34c371[_0xe128('0x2c')]['get'](_0xe128('0x2b'));let _0x26e7e1=_0x4f8630[_0xe128('0x17')](_0x34c371[_0xe128('0x14')][_0xe128('0x3e')][_0xe128('0x3b')]),_0x24a7dd=_0x34c371[_0xe128('0x14')][_0xe128('0x1a')](_0x26e7e1),_0x3e1bed=_0xdbdf1e[_0xe128('0x36')];if(_0x3e1bed==_0x246188[_0xe128('0x36')])return;const _0x1b0ef2={'commandName':_0xe128('0x2b'),'commandParams':[_0x246188],'formatGroupId':_0xfa9b17()};_0x34c371[_0xe128('0x14')][_0xe128('0xb')](()=>{if(_0x19bb9b[_0xe128('0x47')]()[_0xe128('0x29')](_0x47c518=>_0x47c518['isInContent']&&_0x1dc4ec==_0x47c518[_0xe128('0x2f')]&&(_0xe128('0x8')==_0x47c518[_0xe128('0x0')]||_0xe128('0x32')==_0x47c518[_0xe128('0x0')])&&(_0xe128('0x26')==_0x47c518[_0xe128('0x9')]||'imageStylePostApply'==_0x47c518['subType'])&&_0x47c518[_0xe128('0x41')]()[_0xe128('0x5')](_0x24a7dd))[_0xe128('0x3d')](_0x4804b4=>_0x19bb9b[_0xe128('0x1c')](_0x4804b4['head'])),_0x26e7e1=_0x4f8630[_0xe128('0x17')](_0x34c371[_0xe128('0x14')]['document'][_0xe128('0x3b')]),_0x24a7dd=_0x34c371[_0xe128('0x14')][_0xe128('0x1a')](_0x26e7e1),_0xdbdf1e[_0xe128('0x22')](),_0x34c371['commands'][_0xe128('0x23')](_0xe128('0x3c'))['refresh'](),_0x34c371['commands'][_0xe128('0x23')](_0xe128('0x3'))[_0xe128('0x22')](),_0x3e1bed=_0xdbdf1e[_0xe128('0x36')],_0x3e1bed!=_0x246188[_0xe128('0x36')])return _0x4f8630[_0xe128('0x21')](_0x26e7e1)&&_0xdbdf1e[_0xe128('0x37')](_0x246188[_0xe128('0x36')],_0x26e7e1)?(_0x229972({..._0x246188,'setImageSizes':!0x1}),_0x26e7e1=_0x4f8630['getClosestSelectedImageElement'](_0x34c371[_0xe128('0x14')]['document'][_0xe128('0x3b')]),void _0x19bb9b['markBlockFormat'](_0x26e7e1,{..._0x1b0ef2,'commandReversedParams':[{'value':_0x3e1bed||null,'setImageSizes':!0x1}]},[],_0xe128('0x26'))):void(_0x4f8630[_0xe128('0x15')](_0x26e7e1)?_0x19bb9b[_0xe128('0x38')](_0x26e7e1,_0x1b0ef2,[],_0xe128('0x3a')):_0x19bb9b['markInlineFormat'](_0x24a7dd,_0x1b0ef2,'imageStylePostApply'));});});for(const _0x38c31a of _0x34c371[_0xe128('0x6')][_0xe128('0x23')](_0xe128('0x2'))[_0xe128('0xa')])_0x1a951c[_0x38c31a[_0xe128('0x1b')]]=_0x38c31a[_0xe128('0xd')]['toLowerCase']();_0x19bb9b['_suggestionFactory'][_0xe128('0x2a')](_0xe128('0x8'),_0xe128('0x26'),_0xe128('0x11'),()=>!0x1),_0x19bb9b[_0xe128('0x31')][_0xe128('0x2a')]('formatBlock',_0xe128('0x3a'),_0xe128('0x11'),()=>!0x1),_0x19bb9b[_0xe128('0x31')][_0xe128('0x2a')](_0xe128('0x32'),_0xe128('0x3a'),_0xe128('0x11'),()=>!0x1),_0x19bb9b[_0xe128('0x31')][_0xe128('0x2a')](_0xe128('0x8'),_0xe128('0x26'),'accept',([_0x51bf30])=>{_0x4f8630['setImageNaturalSizeAttributes'](_0x51bf30[_0xe128('0x4')]());}),_0x19bb9b['_suggestionFactory']['registerCustomCallback'](_0xe128('0x8'),'imageStylePreApply',_0xe128('0x2d'),(_0xb7eb03,_0x30e5e7)=>{_0x19bb9b[_0xe128('0x31')]['getSuggestionCallback'](_0xe128('0x8'),'',_0xe128('0x48'))(_0xb7eb03,{'commandName':_0x30e5e7['commandName'],'commandParams':_0x30e5e7[_0xe128('0x10')]});}),_0x19bb9b[_0xe128('0x31')][_0xe128('0x2a')](_0xe128('0x8'),_0xe128('0x26'),_0xe128('0x3f'),function(_0x2036d2,_0x4b4b7d){if(_0x4cb799(_0x2036d2,_0x4b4b7d))return[_0x2036d2,_0x4b4b7d];if(_0x4cb799(_0x4b4b7d,_0x2036d2))return[_0x4b4b7d,_0x2036d2];return null;});const _0x4c6f31=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':_0xe128('0x33'),'subType':_0xe128('0x1e')},{'type':'formatBlock','subType':_0xe128('0x7')},{'type':'insertion','subType':_0xe128('0x7')}];function _0x4cb799(_0x500929,_0x4ef89a){const _0x854133=_0x4c6f31['findIndex'](({type:_0x34e8b7,subType:_0x5ec7b3})=>_0x500929['type']==_0x34e8b7&&_0x500929[_0xe128('0x9')]==_0x5ec7b3),_0xa13da3=_0x4c6f31[_0xe128('0x16')](({type:_0x1bb67e,subType:_0x21541f})=>_0x4ef89a[_0xe128('0x0')]==_0x1bb67e&&_0x4ef89a[_0xe128('0x9')]==_0x21541f);if(_0x854133<0x0||_0xa13da3<0x0)return!0x1;const _0x426c5d=_0x500929[_0xe128('0x41')](),_0xf9053e=_0x4ef89a[_0xe128('0x41')]();if((0x0==_0x854133||0x1==_0x854133)&&0x2==_0xa13da3&&_0x426c5d[_0xe128('0x39')](_0xf9053e))return!0x0;if(0x2==_0x854133&&0x3==_0xa13da3){const _0xb5cabb=_0x19bb9b['_findSuggestions'](_0x426c5d,'insertion')[_0xe128('0x29')](({suggestion:_0x3b1d4e,meta:_0x566062})=>_0x566062['isOwn']&&'convertInlineImageToBlock'==_0x3b1d4e[_0xe128('0x9')]);if(_0xb5cabb[_0xe128('0x34')]>0x1&&_0xf9053e[_0xe128('0x49')][_0xe128('0x5')](_0x426c5d[_0xe128('0x44')]))return!0x0;if(0x1==_0xb5cabb[_0xe128('0x34')]&&(_0x426c5d[_0xe128('0x44')][_0xe128('0x5')](_0xf9053e[_0xe128('0x49')])||_0x426c5d[_0xe128('0x49')][_0xe128('0x5')](_0xf9053e['start'])))return!0x0;}if(0x3==_0x854133&&0x3==_0xa13da3&&_0x426c5d[_0xe128('0x44')][_0xe128('0xe')](_0xf9053e[_0xe128('0x44')])){const _0x89dec3=_0x426c5d['end'][_0xe128('0x19')],_0x491d6b=_0xf9053e[_0xe128('0x44')][_0xe128('0x24')];return _0x4f8630[_0xe128('0x15')](_0x89dec3)&&_0x89dec3===_0x491d6b;}return!0x1;}_0x34c371[_0xe128('0x14')]['document'][_0xe128('0x46')](()=>{let _0x23cfbb=!0x1;const _0x1a706d=Array['from'](_0x34c371[_0xe128('0x14')]['document'][_0xe128('0x45')]['getChangedMarkers']());for(const {name:_0x4d2ba4,data:_0x1e19f0}of _0x1a706d){const {group:_0x3002a0,type:_0x211590,subType:_0x52cdfd,id:_0xe883e}=_0x19bb9b[_0xe128('0xc')](_0x4d2ba4);if(_0xe128('0x1d')==_0x3002a0&&_0x19bb9b[_0xe128('0x13')](_0xe883e)){if('formatBlock'==_0x211590&&(_0xe128('0x26')==_0x52cdfd||_0xe128('0x3a')==_0x52cdfd)){const _0x44c773=_0x19bb9b[_0xe128('0x1')](_0xe883e);if(_0x1e19f0[_0xe128('0x2e')]){const _0x287bfd=_0x44c773[_0xe128('0x41')]()[_0xe128('0x4')]();if(_0x4f8630[_0xe128('0x15')](_0x287bfd))continue;_0x19bb9b[_0xe128('0x1c')](_0x44c773),_0x23cfbb=!0x0;}}if(_0xe128('0x33')==_0x211590&&'imageCaption'==_0x52cdfd&&!_0x1e19f0['newRange']){const _0x3b3249=_0x19bb9b[_0xe128('0x1')](_0xe883e);_0x3b3249[_0xe128('0x30')]&&_0x3b3249[_0xe128('0x30')][_0xe128('0x35')]&&(_0x19bb9b['discardSuggestion'](_0x3b3249[_0xe128('0x30')]),_0x23cfbb=!0x0);}}}return _0x23cfbb;}),this[_0xe128('0x40')](_0x1a951c);}[_0xe128('0x40')](_0x1f0623){const _0x2ca48b=this[_0xe128('0xf')],_0x18311b=_0x2ca48b[_0xe128('0x18')];_0x2ca48b[_0xe128('0x6')][_0xe128('0x23')](_0xe128('0x28'))[_0xe128('0x12')]['registerDescriptionCallback'](_0x257e8b=>{if(_0xe128('0x8')!=_0x257e8b['type']&&_0xe128('0x32')!=_0x257e8b[_0xe128('0x0')])return;const {data:_0x19d669}=_0x257e8b;if(!_0x19d669||_0xe128('0x2b')!=_0x19d669[_0xe128('0x43')])return;const _0x20a04d=_0x19d669[_0xe128('0x25')][0x0][_0xe128('0x36')];return _0x1fcd0c('side'===_0x20a04d?_0x24a8dc(_0x18311b,_0xe128('0x27')):_0x1f0623[_0x20a04d]||_0x20a04d);function _0x1fcd0c(_0x41b428){return{'type':_0xe128('0x20'),'content':_0x24a8dc(_0x18311b,_0xe128('0x42'),_0x41b428)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37c0=['plugins','listenTo','_handleImportedData','TrackChangesEditing','_setSuggestionData','commands','Users','value','_trackChangesValueDuringImport','get','execute','forEach','trackChanges','importWord','high','_trackChangesExecuted','track_changes','editor','dataInsert','afterInit'];(function(_0x65ed94,_0x37c08c){const _0x6cf3c1=function(_0x101cbe){while(--_0x101cbe){_0x65ed94['push'](_0x65ed94['shift']());}};_0x6cf3c1(++_0x37c08c);}(_0x37c0,0x7e));const _0x6cf3=function(_0x65ed94,_0x37c08c){_0x65ed94=_0x65ed94-0x0;let _0x6cf3c1=_0x37c0[_0x65ed94];return _0x6cf3c1;};import{Plugin as _0x254c70}from'ckeditor5/src/core.js';export default class ot extends _0x254c70{constructor(_0x5977b8){super(_0x5977b8),this[_0x6cf3('0x2')]=!0x1,this[_0x6cf3('0x9')]=!0x1;}[_0x6cf3('0xd')](){const _0x3eac80=this[_0x6cf3('0xb')],_0x2d1ebb=_0x3eac80[_0x6cf3('0x13')][_0x6cf3('0x3')](_0x6cf3('0x7')),_0x168bbb=_0x3eac80[_0x6cf3('0x13')]['get'](_0x6cf3('0x6'));_0x2d1ebb&&(_0x2d1ebb['on'](_0x6cf3('0x4'),(_0x4d76b3,[,_0x14d313])=>{this[_0x6cf3('0x2')]=_0x168bbb[_0x6cf3('0x1')],_0x14d313['collaboration_features'][_0x6cf3('0xa')]=!this[_0x6cf3('0x2')];},{'priority':_0x6cf3('0x8')}),this[_0x6cf3('0xf')](_0x2d1ebb,_0x6cf3('0xc'),this[_0x6cf3('0x10')]['bind'](this)),this[_0x6cf3('0xf')](_0x2d1ebb,'dataInsert',()=>{this[_0x6cf3('0x9')]&&(_0x168bbb[_0x6cf3('0x4')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3eac80[_0x6cf3('0xe')]['get']('TrackChangesEditing')['enableCommand']('importWord'));}[_0x6cf3('0x10')](_0x12e585,_0x540ac1){const {suggestions:_0x504a4a}=_0x540ac1,_0x192f5b=this[_0x6cf3('0xb')][_0x6cf3('0x13')][_0x6cf3('0x3')](_0x6cf3('0x6')),_0x283990=_0x192f5b[_0x6cf3('0x1')];this[_0x6cf3('0x2')]!==_0x283990&&(_0x192f5b[_0x6cf3('0x4')](),this[_0x6cf3('0x9')]=!0x0),_0x504a4a&&_0x504a4a[_0x6cf3('0x5')](({id:_0x4784df,type:_0x3207a1,author:_0x17bb3e,created_at:_0x2d11c1})=>{const _0x19f48a={'id':_0x4784df,'type':_0x3207a1,'authorId':this[_0x6cf3('0xb')]['plugins'][_0x6cf3('0x3')](_0x6cf3('0x0'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x17bb3e,'createdAt':_0x2d11c1?new Date(_0x2d11c1):new Date(),'source':'importWord'}}};this['editor'][_0x6cf3('0xe')][_0x6cf3('0x3')](_0x6cf3('0x11'))[_0x6cf3('0x12')](_0x19f48a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x161a=['registerAttributeLabel','formatBlock','_registerLegacyDescription','_enableDefaultAttributesIntegration','commandName','format','indentBlock','*Indent:*\x20%0','_registerBlockAttribute','indent','_descriptionFactory','afterInit','locale','TrackChangesEditing','editor','IndentEditing','blockIndent','get','IndentBlock','FORMAT_INDENT','enableCommand','outdentBlock','has','plugins'];(function(_0x2ad7cc,_0x161abb){const _0x1ea1dc=function(_0x18a5ce){while(--_0x18a5ce){_0x2ad7cc['push'](_0x2ad7cc['shift']());}};_0x1ea1dc(++_0x161abb);}(_0x161a,0x118));const _0x1ea1=function(_0x2ad7cc,_0x161abb){_0x2ad7cc=_0x2ad7cc-0x0;let _0x1ea1dc=_0x161a[_0x2ad7cc];return _0x1ea1dc;};import{Plugin as _0x3ef6de}from'ckeditor5/src/core.js';import{getTranslation as _0x589d48}from'../utils/common-translations.js';export default class rt extends _0x3ef6de{[_0x1ea1('0x13')](){const _0x263a89=this['editor'],_0x472c4d=_0x263a89[_0x1ea1('0x7')][_0x1ea1('0x1')](_0x1ea1('0x15'));if(_0x263a89['plugins'][_0x1ea1('0x6')](_0x1ea1('0x17'))&&(_0x472c4d[_0x1ea1('0x4')](_0x1ea1('0x11')),_0x472c4d[_0x1ea1('0x4')]('outdent')),_0x263a89[_0x1ea1('0x7')][_0x1ea1('0x6')](_0x1ea1('0x2')))for(const _0x11980a of[_0x1ea1('0xe'),_0x1ea1('0x5')])_0x472c4d[_0x1ea1('0xb')](_0x11980a);const _0x47276c=_0x263a89[_0x1ea1('0x14')];_0x472c4d[_0x1ea1('0x10')](_0x1ea1('0x0')),_0x472c4d[_0x1ea1('0x12')][_0x1ea1('0x8')](_0x1ea1('0x0'),_0x589d48(_0x47276c,_0x1ea1('0x3'))),this[_0x1ea1('0xa')]();}[_0x1ea1('0xa')](){const _0x1f8c56=this[_0x1ea1('0x16')],_0x15c8c9=_0x1f8c56[_0x1ea1('0x14')],_0x4de250=_0x1f8c56['plugins'][_0x1ea1('0x1')]('TrackChangesEditing');_0x4de250['_descriptionFactory']['registerDescriptionCallback'](_0x484317=>{if(_0x1ea1('0x9')!=_0x484317['type'])return;const {data:_0xe5b274}=_0x484317;if(!_0xe5b274)return;if(_0x1ea1('0xe')!=_0xe5b274[_0x1ea1('0xc')]&&_0x1ea1('0x5')!=_0xe5b274[_0x1ea1('0xc')])return;const _0x564efc=_0x484317['getItems']()[0x0],_0x5ae7df=_0x4de250['_descriptionFactory']['getItemLabel'](_0x564efc);return _0x1ea1('0xe')==_0xe5b274[_0x1ea1('0xc')]?{'type':'format','content':_0x589d48(_0x15c8c9,_0x1ea1('0xf'),_0x5ae7df)}:'outdentBlock'==_0xe5b274[_0x1ea1('0xc')]?{'type':_0x1ea1('0xd'),'content':_0x589d48(_0x15c8c9,'*Outdent:*\x20%0',_0x5ae7df)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe843=['get','init','plugins','requires','input','TrackChangesEditing','editor','enableCommand'];(function(_0xb73c01,_0xe843c7){var _0x4e5a1d=function(_0x2ab51a){while(--_0x2ab51a){_0xb73c01['push'](_0xb73c01['shift']());}};_0x4e5a1d(++_0xe843c7);}(_0xe843,0x94));var _0x4e5a=function(_0xb73c01,_0xe843c7){_0xb73c01=_0xb73c01-0x0;var _0x4e5a1d=_0xe843[_0xb73c01];return _0x4e5a1d;};import{Plugin as _0x322b22}from'ckeditor5/src/core.js';import{Input as _0x45f552}from'ckeditor5/src/typing.js';export default class at extends _0x322b22{static get[_0x4e5a('0x7')](){return[_0x45f552];}[_0x4e5a('0x5')](){this[_0x4e5a('0x2')][_0x4e5a('0x6')][_0x4e5a('0x4')](_0x4e5a('0x1'))[_0x4e5a('0x3')](_0x4e5a('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9c61=['locale','formatInline','filter','element','registerDescriptionCallback','ELEMENT_TODO_LIST','getSelectedBlocks','*Uncheck\x20item*','getAttribute','plugins','document','commandParams','LegacyListEditing','createRange','ELEMENT_NUMBERED_LIST','TrackChangesEditing','listItem','get','before','*Change\x20to:*\x20%0','*Check\x20item*','numberedList','nextSibling','previousSibling','schema','checkChild','_descriptionFactory','model','type','length','commands','format','listIndent','markBlockFormat','afterInit','bulletedList','LegacyTodoListEditing','outdentList','isObject','enableCommand','replace','registerElementLabel','forceValue','createPositionAt','end','selection','todoListChecked','value','List','indentList','from','blockName','commandName','paragraph','bulleted','execute','slice','checkTodoList','change','name','editor','add','has','ELEMENT_LIST_ITEM','todoList'];(function(_0x49bfa3,_0x9c614b){const _0x4e5fc2=function(_0x2b85f4){while(--_0x2b85f4){_0x49bfa3['push'](_0x49bfa3['shift']());}};_0x4e5fc2(++_0x9c614b);}(_0x9c61,0x19a));const _0x4e5f=function(_0x49bfa3,_0x9c614b){_0x49bfa3=_0x49bfa3-0x0;let _0x4e5fc2=_0x9c61[_0x49bfa3];return _0x4e5fc2;};import{Plugin as _0x12d3bd}from'ckeditor5/src/core.js';import{getTranslation as _0xc1c2e6}from'../utils/common-translations.js';export default class ut extends _0x12d3bd{[_0x4e5f('0xe')](){const _0x35b4c4=this[_0x4e5f('0x28')],_0x5813ba=_0x35b4c4[_0x4e5f('0x2d')];if(!_0x35b4c4[_0x4e5f('0x36')]['has'](_0x4e5f('0x39')))return;const _0x31b405=_0x35b4c4[_0x4e5f('0x36')]['get'](_0x4e5f('0x3c')),_0x842af2=_0x35b4c4[_0x4e5f('0x36')][_0x4e5f('0x2a')](_0x4e5f('0x10'));function _0x5a3fe3(_0x19aeb2){return()=>{const _0x5532c7=_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x37')][_0x4e5f('0x19')],_0x3e2ba6=_0x35b4c4[_0x4e5f('0xa')][_0x4e5f('0x3e')](_0x19aeb2);if(_0x3e2ba6['value'])return void _0x35b4c4[_0x4e5f('0x23')](_0x4e5f('0x21'),{});const _0x2ecb82=_0x19aeb2[_0x4e5f('0x24')](0x0,-0x4),_0x44d195=function(_0x35dac1,_0xca59df,_0x159d03){let _0x42c5af=Array['from'](_0x35dac1)[_0x4e5f('0x2f')](_0x15fef3=>function(_0x2b00a2,_0x5e8830){return _0x5e8830[_0x4e5f('0x5')](_0x2b00a2['parent'],_0x4e5f('0x3d'))&&!_0x5e8830[_0x4e5f('0x12')](_0x2b00a2);}(_0x15fef3,_0x159d03));_0x42c5af=_0x42c5af[_0x4e5f('0x2f')](_0x25f6e9=>!_0x25f6e9['is']('element','listItem')||_0x25f6e9[_0x4e5f('0x35')]('listType')!=_0xca59df);const _0x51777b=new Set();for(const _0xdb1810 of _0x42c5af)_0xdb1810['is'](_0x4e5f('0x30'),_0x4e5f('0x3d'))?_0x51777b['add'](ne(_0xdb1810)):_0x51777b['add'](_0xdb1810);return Array['from'](_0x51777b);}(_0x5532c7['getSelectedBlocks'](),_0x2ecb82,_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x4')]);_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x26')](()=>{for(const _0x4541c7 of _0x44d195)_0x31b405[_0x4e5f('0xd')](_0x4541c7,{'commandName':_0x19aeb2,'commandParams':[{'forceValue':!_0x3e2ba6[_0x4e5f('0x1b')]}],'formatGroupId':_0x4e5f('0x1f')},oe(_0x4541c7));});};}function _0x4a813e(_0x3726be){return()=>{const _0x11f775=function(_0x349286){let _0x493f85=Array[_0x4e5f('0x1e')](_0x349286);const _0x480258=_0x493f85['findIndex'](_0x4336f1=>_0x4e5f('0x3d')!=_0x4336f1[_0x4e5f('0x27')]);return _0x480258>-0x1&&(_0x493f85=_0x493f85['slice'](0x0,_0x480258)),_0x493f85;}(_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x37')][_0x4e5f('0x19')][_0x4e5f('0x33')]()),_0x1eff68=_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x3a')](_0x35b4c4[_0x4e5f('0x7')]['createPositionAt'](_0x11f775[0x0],_0x4e5f('0x3f')),_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x17')](_0x11f775[_0x11f775[_0x4e5f('0x9')]-0x1],_0x4e5f('0x18')));_0x35b4c4[_0x4e5f('0x7')][_0x4e5f('0x26')](()=>{_0x31b405['markBlockFormat'](_0x1eff68,{'commandName':_0x3726be,'commandParams':[],'formatGroupId':_0x4e5f('0xc')},function(_0x5e6611){const _0x230f33=new Set();for(const _0x234370 of _0x5e6611){let _0x4799cd=_0x234370[_0x4e5f('0x2')];for(;_0x4799cd&&_0x4799cd[_0x4e5f('0x35')](_0x4e5f('0xc'))>_0x234370['getAttribute'](_0x4e5f('0xc'));)_0x230f33[_0x4e5f('0x29')](_0x4799cd),_0x4799cd=_0x4799cd[_0x4e5f('0x2')];}return Array['from'](_0x230f33);}(_0x11f775));});};}_0x31b405['enableCommand'](_0x4e5f('0x1'),_0x5a3fe3(_0x4e5f('0x1'))),_0x31b405['enableCommand']('bulletedList',_0x5a3fe3(_0x4e5f('0xf'))),_0x842af2&&_0x31b405[_0x4e5f('0x13')](_0x4e5f('0x2c'),_0x5a3fe3(_0x4e5f('0x2c'))),_0x31b405[_0x4e5f('0x13')](_0x4e5f('0x1d'),_0x4a813e(_0x4e5f('0x1d'))),_0x31b405['enableCommand'](_0x4e5f('0x11'),_0x4a813e(_0x4e5f('0x11'))),_0x842af2&&_0x31b405['enableCommand'](_0x4e5f('0x25'),()=>{const _0x2276f3=_0x35b4c4[_0x4e5f('0xa')][_0x4e5f('0x3e')](_0x4e5f('0x25')),_0xcdcf9d=Array[_0x4e5f('0x1e')](_0x2276f3['_selectedElements']);_0xcdcf9d[_0x4e5f('0x2f')](_0x2ec431=>_0x2ec431[_0x4e5f('0x35')](_0x4e5f('0x1a'))!=_0x2276f3[_0x4e5f('0x1b')]),_0x35b4c4['model'][_0x4e5f('0x26')](()=>{for(const _0x4d1895 of _0xcdcf9d)_0x31b405[_0x4e5f('0xd')](_0x4d1895,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2276f3[_0x4e5f('0x1b')]}]});});}),_0x31b405[_0x4e5f('0x6')][_0x4e5f('0x15')](_0x4e5f('0x3d'),_0x1a78a0=>_0xc1c2e6(_0x5813ba,_0x4e5f('0x2b'),_0x1a78a0)),_0x31b405[_0x4e5f('0x6')][_0x4e5f('0x31')](_0x3569f7=>{if('formatBlock'!=_0x3569f7[_0x4e5f('0x8')]&&_0x4e5f('0x2e')!=_0x3569f7[_0x4e5f('0x8')])return;const {data:_0x223ea1}=_0x3569f7;if(_0x223ea1){if(_0x4e5f('0x1')==_0x223ea1[_0x4e5f('0x20')]||_0x4e5f('0xf')==_0x223ea1[_0x4e5f('0x20')]||_0x4e5f('0x2c')==_0x223ea1['commandName'])switch(_0x223ea1['commandName'][_0x4e5f('0x14')](_0x4e5f('0x1c'),'')){case _0x4e5f('0x22'):return _0x37b52c(_0xc1c2e6(_0x5813ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37b52c(_0xc1c2e6(_0x5813ba,_0x4e5f('0x3b')));case'todo':return _0x37b52c(_0xc1c2e6(_0x5813ba,_0x4e5f('0x32')));}if(_0x4e5f('0x1d')==_0x223ea1[_0x4e5f('0x20')])return{'type':'format','content':_0xc1c2e6(_0x5813ba,'*Indent:*\x20%0',_0xc1c2e6(_0x5813ba,_0x4e5f('0x2b')))};if(_0x4e5f('0x11')==_0x223ea1[_0x4e5f('0x20')])return{'type':_0x4e5f('0xb'),'content':_0xc1c2e6(_0x5813ba,'*Outdent:*\x20%0',_0xc1c2e6(_0x5813ba,_0x4e5f('0x2b')))};if(_0x4e5f('0x25')==_0x223ea1[_0x4e5f('0x20')])return _0x223ea1[_0x4e5f('0x38')][0x0][_0x4e5f('0x16')]?{'type':_0x4e5f('0xb'),'content':_0xc1c2e6(_0x5813ba,_0x4e5f('0x0'))}:{'type':_0x4e5f('0xb'),'content':_0xc1c2e6(_0x5813ba,_0x4e5f('0x34'))};}function _0x37b52c(_0x2fc64f){return{'type':_0x4e5f('0xb'),'content':_0xc1c2e6(_0x5813ba,_0x4e5f('0x40'),_0x2fc64f)};}});}}function ne(_0x5408f5){const _0xaf012d=_0x5408f5['getAttribute'](_0x4e5f('0xc'));if(0x0==_0xaf012d)return _0x5408f5;let _0x137327=_0x5408f5;for(;_0x5408f5[_0x4e5f('0x3')]&&_0x5408f5['previousSibling']['is'](_0x4e5f('0x30'),'listItem');){const _0x4645df=_0x5408f5[_0x4e5f('0x3')][_0x4e5f('0x35')](_0x4e5f('0xc'));if(_0x4645df==_0xaf012d)_0x137327=_0x5408f5[_0x4e5f('0x3')];else{if(_0x4645df<_0xaf012d)break;}_0x5408f5=_0x5408f5[_0x4e5f('0x3')];}return _0x137327;}function oe(_0x40c64d){const _0x29bcd0=[];if(_0x40c64d['is'](_0x4e5f('0x30'),_0x4e5f('0x3d'))&&_0x40c64d[_0x4e5f('0x35')](_0x4e5f('0xc'))>0x0){let _0x542fb9=_0x40c64d['nextSibling'];for(;_0x542fb9&&_0x4e5f('0x3d')==_0x542fb9[_0x4e5f('0x27')]&&_0x542fb9[_0x4e5f('0x35')]('listIndent')==_0x40c64d['getAttribute'](_0x4e5f('0xc'));)_0x29bcd0['push'](_0x542fb9),_0x542fb9=_0x542fb9[_0x4e5f('0x2')];}return _0x29bcd0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a93=['LegacyListPropertiesEditing','flat','_LIST_','ELEMENT_','commandParams','styles','listStart','plugins','list.properties','handleListStyleCommand','startIndex','map','element','markMultiRangeBlockFormat','document','replace','model','LegacyListUtils','editor','length','getFirstPosition','afterInit','listItem','TrackChangesEditing','backward','get','from','selection','_getSuggestionBlocks','filter','*Format:*\x20set\x20order\x20to\x20reversed','parent','formatBlock','bind','push','before','getAttribute','type','has','_descriptionFactory','listReversed','change','getSelectedBlocks','handleListStartCommand','listStyle','*Change\x20to:*\x20%0','format','forward','handleListReversedCommand','createPositionAt','*Format:*\x20set\x20order\x20to\x20regular','createRange','_getSuggestionBlocksForListStyle','reversed','enableCommand','_getTranslationKeyForListStyle','*Format:*\x20set\x20start\x20index\x20to\x20%0','numbered','unshift','toUpperCase','getSiblingNodes'];(function(_0x1b8af9,_0x5a931d){const _0x5b2e65=function(_0x1051de){while(--_0x1051de){_0x1b8af9['push'](_0x1b8af9['shift']());}};_0x5b2e65(++_0x5a931d);}(_0x5a93,0xd7));const _0x5b2e=function(_0x1b8af9,_0x5a931d){_0x1b8af9=_0x1b8af9-0x0;let _0x5b2e65=_0x5a93[_0x1b8af9];return _0x5b2e65;};import{Plugin as _0xa1e1e2}from'ckeditor5/src/core.js';import{getTranslation as _0x2e6aea}from'../utils/common-translations.js';export default class K extends _0xa1e1e2{[_0x5b2e('0x32')](){if(!this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x6')](_0x5b2e('0x1d')))return;const _0x23ace2=this['editor']['config'][_0x5b2e('0x36')](_0x5b2e('0x25')),_0x122215=this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x36')]('TrackChangesEditing');_0x23ace2[_0x5b2e('0x22')]&&_0x122215[_0x5b2e('0x16')](_0x5b2e('0xc'),this[_0x5b2e('0x26')][_0x5b2e('0x1')](this)),_0x23ace2['reversed']&&_0x122215[_0x5b2e('0x16')](_0x5b2e('0x8'),this[_0x5b2e('0x10')][_0x5b2e('0x1')](this)),_0x23ace2[_0x5b2e('0x27')]&&_0x122215[_0x5b2e('0x16')](_0x5b2e('0x23'),this[_0x5b2e('0xb')][_0x5b2e('0x1')](this)),_0x122215[_0x5b2e('0x7')]['registerDescriptionCallback'](this['handleDescriptions'][_0x5b2e('0x1')](this));}[_0x5b2e('0x26')](_0x346318,_0x32ec8a={}){const _0x20a081=this[_0x5b2e('0x2f')]['plugins'][_0x5b2e('0x36')](_0x5b2e('0x34')),_0x42d9e3=this[_0x5b2e('0x14')]();this[_0x5b2e('0x2f')][_0x5b2e('0x2d')]['change'](()=>{_0x20a081[_0x5b2e('0x2a')](_0x42d9e3,{'commandName':_0x5b2e('0xc'),'commandParams':[{'type':_0x32ec8a['type']}],'formatGroupId':_0x5b2e('0xc')});});}[_0x5b2e('0x10')](_0xe05696,_0x1000d6={}){const _0x895d94=this['editor']['plugins'][_0x5b2e('0x36')](_0x5b2e('0x34')),_0x3dbf5f=this['_getSuggestionBlocks'](_0x3416b2=>_0x3416b2['is']('element',_0x5b2e('0x33'))&&'numbered'===_0x3416b2[_0x5b2e('0x4')]('listType'));if(_0x3dbf5f[_0x5b2e('0x30')]<0x1)return;const _0x40cb00=_0x3dbf5f[_0x5b2e('0x28')](_0x63a4fa=>this['editor'][_0x5b2e('0x2d')]['createRange'](this[_0x5b2e('0x2f')][_0x5b2e('0x2d')][_0x5b2e('0x11')](_0x63a4fa,_0x5b2e('0x3')),this[_0x5b2e('0x2f')][_0x5b2e('0x2d')][_0x5b2e('0x11')](_0x63a4fa,0x0)));this['editor'][_0x5b2e('0x2d')][_0x5b2e('0x9')](()=>{_0x895d94[_0x5b2e('0x2a')](_0x40cb00,{'commandName':_0x5b2e('0x8'),'commandParams':[{'reversed':_0x1000d6[_0x5b2e('0x15')]}],'formatGroupId':_0x5b2e('0x8')});});}['handleListStartCommand'](_0x4f5195,_0x558d9d={}){const _0x3d0070=this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x36')](_0x5b2e('0x34')),_0xe37e11=this['_getSuggestionBlocks'](_0x9f9ac4=>_0x9f9ac4['is'](_0x5b2e('0x29'),_0x5b2e('0x33'))&&_0x5b2e('0x19')===_0x9f9ac4['getAttribute']('listType'));if(_0xe37e11[_0x5b2e('0x30')]<0x1)return;const _0xea2bf5=_0xe37e11['map'](_0x184629=>this['editor']['model'][_0x5b2e('0x13')](this[_0x5b2e('0x2f')][_0x5b2e('0x2d')][_0x5b2e('0x11')](_0x184629,_0x5b2e('0x3')),this['editor']['model'][_0x5b2e('0x11')](_0x184629,0x0)));this[_0x5b2e('0x2f')][_0x5b2e('0x2d')][_0x5b2e('0x9')](()=>{_0x3d0070[_0x5b2e('0x2a')](_0xea2bf5,{'commandName':_0x5b2e('0x23'),'commandParams':[{'startIndex':_0x558d9d[_0x5b2e('0x27')]}],'formatGroupId':_0x5b2e('0x23')});});}['handleDescriptions'](_0x37f260){if(_0x5b2e('0x0')!=_0x37f260['type']&&'formatInline'!=_0x37f260[_0x5b2e('0x5')])return;const _0x5e0550=this['editor']['locale'],{data:_0x4bb0a0}=_0x37f260;if(!_0x4bb0a0)return;let _0x537ad3,_0x280038;switch(_0x4bb0a0['commandName']){case _0x5b2e('0xc'):_0x537ad3=_0x5b2e('0xd'),_0x280038={'type':_0x5b2e('0xe'),'content':_0x2e6aea(_0x5e0550,_0x537ad3,_0x2e6aea(_0x5e0550,this[_0x5b2e('0x17')](_0x4bb0a0[_0x5b2e('0x21')][0x0][_0x5b2e('0x5')])))};break;case _0x5b2e('0x8'):_0x537ad3=_0x4bb0a0[_0x5b2e('0x21')][0x0][_0x5b2e('0x15')]?_0x5b2e('0x3b'):_0x5b2e('0x12'),_0x280038={'type':'format','content':_0x2e6aea(_0x5e0550,_0x537ad3)};break;case'listStart':_0x537ad3=_0x5b2e('0x18'),_0x280038={'type':_0x5b2e('0xe'),'content':_0x2e6aea(_0x5e0550,_0x537ad3,_0x4bb0a0[_0x5b2e('0x21')][0x0]['startIndex'])};}return _0x280038;}[_0x5b2e('0x14')](){var _0x5482a5,_0x244fa5,_0x114cce,_0x1a53cc;const _0x2864b5=this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x36')](_0x5b2e('0x2e'));let _0x34da48=Array[_0x5b2e('0x37')](this['editor'][_0x5b2e('0x2d')][_0x5b2e('0x2b')]['selection'][_0x5b2e('0xa')]());return(null===(_0x5482a5=_0x34da48[0x0])||void 0x0===_0x5482a5?void 0x0:_0x5482a5['is']('element',_0x5b2e('0x33')))&&_0x34da48[_0x5b2e('0x1a')](..._0x2864b5[_0x5b2e('0x1c')](this[_0x5b2e('0x2f')][_0x5b2e('0x2d')]['document']['selection'][_0x5b2e('0x31')](),_0x5b2e('0x35'))),(null===(_0x244fa5=_0x34da48[_0x34da48['length']-0x1])||void 0x0===_0x244fa5?void 0x0:_0x244fa5['is'](_0x5b2e('0x29'),'listItem'))&&_0x34da48[_0x5b2e('0x2')](..._0x2864b5[_0x5b2e('0x1c')](this[_0x5b2e('0x2f')]['model'][_0x5b2e('0x2b')][_0x5b2e('0x38')]['getLastPosition'](),_0x5b2e('0xf'))),_0x34da48=[...new Set(_0x34da48)],(null===(_0x1a53cc=null===(_0x114cce=this[_0x5b2e('0x2f')][_0x5b2e('0x2d')]['document'][_0x5b2e('0x38')][_0x5b2e('0x31')]())||void 0x0===_0x114cce?void 0x0:_0x114cce[_0x5b2e('0x3c')])||void 0x0===_0x1a53cc?void 0x0:_0x1a53cc['is'](_0x5b2e('0x29'),'listItem'))&&(_0x34da48=_0x34da48[_0x5b2e('0x3a')](_0x2a5584=>_0x2a5584['is'](_0x5b2e('0x29'),'listItem'))),_0x34da48;}[_0x5b2e('0x39')](_0x50f7ae){const _0x2953f6=this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x36')](_0x5b2e('0x2e'));let _0x58fa7f=Array[_0x5b2e('0x37')](this[_0x5b2e('0x2f')][_0x5b2e('0x2d')]['document']['selection'][_0x5b2e('0xa')]())[_0x5b2e('0x3a')](_0x50f7ae)[_0x5b2e('0x28')](_0x33edbe=>{const _0x1294d4=this[_0x5b2e('0x2f')][_0x5b2e('0x2d')][_0x5b2e('0x11')](_0x33edbe,0x0);return[..._0x2953f6[_0x5b2e('0x1c')](_0x1294d4,_0x5b2e('0x35')),..._0x2953f6[_0x5b2e('0x1c')](_0x1294d4,_0x5b2e('0xf'))];})[_0x5b2e('0x1e')]();return _0x58fa7f=[...new Set(_0x58fa7f)],_0x58fa7f;}[_0x5b2e('0x17')](_0x148bba){return _0x5b2e('0x20')+this[_0x5b2e('0x2f')][_0x5b2e('0x24')][_0x5b2e('0x36')]('LegacyListUtils')['getListTypeFromListStyleType'](_0x148bba)[_0x5b2e('0x1b')]()+_0x5b2e('0x1f')+_0x148bba[_0x5b2e('0x1b')]()[_0x5b2e('0x2c')](/-/g,'_');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x303e=['key','commandParams','registerAttributeLabel','commandName','_enableDefaultAttributesIntegration','get','link','*Set\x20link:*\x20%0','type','_descriptionFactory','editor','format','link\x20(','registerDescriptionCallback','formatInline','commands','has','*Remove\x20link*','_registerLegacyDescription','label','plugins','locale','TrackChangesEditing','unlink','linkHref','manualDecorators','attribute'];(function(_0x1f37f2,_0x303e61){const _0x317288=function(_0x1f0e3e){while(--_0x1f0e3e){_0x1f37f2['push'](_0x1f37f2['shift']());}};_0x317288(++_0x303e61);}(_0x303e,0xe7));const _0x3172=function(_0x1f37f2,_0x303e61){_0x1f37f2=_0x1f37f2-0x0;let _0x317288=_0x303e[_0x1f37f2];return _0x317288;};import{Plugin as _0x425b9c}from'ckeditor5/src/core.js';import{getTranslation as _0x1afb36}from'../utils/common-translations.js';export default class ct extends _0x425b9c{['afterInit'](){const _0x124640=this[_0x3172('0x16')];if(!_0x124640[_0x3172('0x5')][_0x3172('0x1')]('LinkEditing'))return;const _0x33f658=_0x124640['plugins']['get'](_0x3172('0x7')),_0x16ce7a=_0x124640[_0x3172('0x0')][_0x3172('0x11')](_0x3172('0x12'));_0x33f658[_0x3172('0x10')](_0x3172('0x12'),[_0x3172('0x9'),..._0x16ce7a[_0x3172('0xa')]['map'](_0x3416e8=>_0x3416e8['id'])]),_0x33f658[_0x3172('0x10')](_0x3172('0x8'));for(const _0x193670 of _0x16ce7a[_0x3172('0xa')])_0x33f658[_0x3172('0x15')][_0x3172('0xe')](_0x193670['id'],_0x3172('0x18')+_0x193670[_0x3172('0x4')]['toLowerCase']()+')');_0x33f658[_0x3172('0x15')][_0x3172('0x19')](_0x548c06=>{if(_0x3172('0xb')!=_0x548c06[_0x3172('0x14')])return;const {data:_0x33bc16}=_0x548c06;if(!_0x33bc16||_0x3172('0x9')!=_0x33bc16[_0x3172('0xc')])return;const _0x4dcae6=_0x33bc16['newValue'],_0xf93c4e=_0x124640[_0x3172('0x6')];return{'type':_0x3172('0x17'),'content':null==_0x4dcae6?_0x1afb36(_0xf93c4e,_0x3172('0x2')):_0x1afb36(_0xf93c4e,_0x3172('0x13'),'\x22'+_0x4dcae6+'\x22')};}),this[_0x3172('0x3')]();}[_0x3172('0x3')](){const _0x2946bb=this[_0x3172('0x16')],_0xac094f=_0x2946bb['locale'];_0x2946bb[_0x3172('0x5')][_0x3172('0x11')](_0x3172('0x7'))[_0x3172('0x15')][_0x3172('0x19')](_0x35c8e2=>{if(_0x3172('0x1a')!=_0x35c8e2[_0x3172('0x14')])return;const {data:_0x232251}=_0x35c8e2;if(_0x232251){if(_0x3172('0x12')==_0x232251[_0x3172('0xf')]){const _0x25eee4=_0x232251[_0x3172('0xd')][0x0];return{'type':_0x3172('0x17'),'content':_0x1afb36(_0xac094f,'*Set\x20link:*\x20%0','\x22'+_0x25eee4+'\x22')};}return _0x3172('0x8')==_0x232251[_0x3172('0xf')]?{'type':_0x3172('0x17'),'content':_0x1afb36(_0xac094f,_0x3172('0x2'))}:void 0x0;}});}}
|