@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230723.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/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.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/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/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
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24ee=['isCollapsed','afterInit','fontColor','find','*Reset\x20font\x20size*','*Reset\x20font\x20color*','FontFamilyEditing','get','fontBackgroundColor','trim','getRanges','config','registerDescriptionCallback','commandName','editor','from','format','*Set\x20font\x20background\x20color:*\x20%0','locale','*Reset\x20font\x20background\x20color*','fontFamily','*Set\x20font\x20color:*\x20%0','model','document','label','fontBackgroundColor.colors','*Set\x20font\x20family:*\x20%0','fontSize','fontColor.colors','selection','FontBackgroundColorEditing','value','plugins','fontSize.options','change','has','commandParams','normalizeSizeOptions','TrackChangesEditing','_enableCommand','toLowerCase','*Reset\x20font\x20family*'];(function(_0x261f29,_0x24ee80){const _0xb50035=function(_0xa4e969){while(--_0xa4e969){_0x261f29['push'](_0x261f29['shift']());}};_0xb50035(++_0x24ee80);}(_0x24ee,0x104));const _0xb500=function(_0x261f29,_0x24ee80){_0x261f29=_0x261f29-0x0;let _0xb50035=_0x24ee[_0x261f29];return _0xb50035;};import{Plugin as _0x4f5e05}from'ckeditor5/src/core';import{normalizeColorOptions as _0x660d2c}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0xa26b35}from'./utils';import{getTranslation as _0x5c02cd}from'../utils/common-translations';const Zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':_0xb500('0x28'),'commandName':_0xb500('0xc')},{'pluginName':'FontColorEditing','commandName':_0xb500('0x24')},{'pluginName':_0xb500('0x16'),'commandName':_0xb500('0x0')}];export default class H extends _0x4f5e05{[_0xb500('0x23')](){const _0x190517=this[_0xb500('0x6')][_0xb500('0xa')];for(const {pluginName:_0x24cb69,commandName:_0xf3069d}of Zt)this[_0xb500('0x6')][_0xb500('0x18')][_0xb500('0x1b')](_0x24cb69)&&this[_0xb500('0x1f')](_0xf3069d);this['editor'][_0xb500('0x18')][_0xb500('0x29')](_0xb500('0x1e'))['_descriptionFactory'][_0xb500('0x4')](_0x29e0e3=>{const _0x1586e7=_0x190517['t'],{data:_0x38522}=_0x29e0e3;if(null!=_0x38522){if(_0xb500('0x13')==_0x38522[_0xb500('0x5')]){const _0x1eeba1=_0x38522['commandParams'][0x0][_0xb500('0x17')];if(_0x1eeba1){const _0x5b60d7=_0x1586e7(this[_0xb500('0x6')][_0xb500('0x18')][_0xb500('0x29')]('FontSize')[_0xb500('0x1d')](this[_0xb500('0x6')][_0xb500('0x3')]['get'](_0xb500('0x19')))[_0xb500('0x25')](_0x188dfa=>_0x188dfa[_0xb500('0xe')]==_0x1eeba1)['title'])[_0xb500('0x20')]();return{'type':'format','content':_0x5c02cd(_0x190517,'*Set\x20font\x20size:*\x20%0',_0x5b60d7)};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x26'))};}if('fontFamily'==_0x38522['commandName']){const _0x32fed3=_0x38522[_0xb500('0x1c')][0x0][_0xb500('0x17')];return _0x32fed3?{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x12'),_0x32fed3)}:{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x21'))};}if(_0xb500('0x24')==_0x38522['commandName']){const _0x3c15d5=_0x38522['commandParams'][0x0][_0xb500('0x17')];if(_0x3c15d5){const _0x5bbcd3=_0x660d2c(this[_0xb500('0x6')][_0xb500('0x3')]['get'](_0xb500('0x14')))[_0xb500('0x25')](_0x3b012a=>_0x3b012a[_0xb500('0xe')]==_0x3c15d5);let _0x1a575f=_0x3c15d5,_0x213d66='';return _0x5bbcd3&&(_0x1a575f=_0x5bbcd3[_0xb500('0x10')],_0x213d66=_0x1586e7(_0x1a575f)[_0xb500('0x20')]()),{'type':'format','content':_0x5c02cd(_0x190517,_0xb500('0xd'),_0x213d66)[_0xb500('0x1')](),'color':{'value':_0x3c15d5,'title':_0x213d66||_0x1a575f}};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x27'))};}if(_0xb500('0x0')==_0x38522['commandName']){const _0x1a41be=_0x38522[_0xb500('0x1c')][0x0][_0xb500('0x17')];if(_0x1a41be){const _0x33d8a4=_0x660d2c(this[_0xb500('0x6')][_0xb500('0x3')][_0xb500('0x29')](_0xb500('0x11')))[_0xb500('0x25')](_0x1d44cd=>_0x1d44cd[_0xb500('0xe')]==_0x1a41be);let _0x32b392=_0x1a41be,_0x2a1e78='';return _0x33d8a4&&(_0x32b392=_0x33d8a4['label'],_0x2a1e78=_0x1586e7(_0x32b392)[_0xb500('0x20')]()),{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x9'),_0x2a1e78)[_0xb500('0x1')](),'color':{'value':_0x1a41be,'title':_0x2a1e78||_0x32b392}};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0xb'))};}}});}[_0xb500('0x1f')](_0x361408){const _0x5b77cd=this[_0xb500('0x6')];_0x5b77cd[_0xb500('0x18')]['get'](_0xb500('0x1e'))['enableCommand'](_0x361408,(_0x20e47e,_0x41d0d3={})=>{const _0x56fc07=_0x5b77cd['model'][_0xb500('0xf')][_0xb500('0x15')],_0x2c821d=_0x41d0d3['value'];_0x56fc07[_0xb500('0x22')]?_0x20e47e(_0x41d0d3):_0x5b77cd[_0xb500('0xe')][_0xb500('0x1a')](()=>{const _0x9fc80c=Array[_0xb500('0x7')](_0x56fc07[_0xb500('0x2')]());for(const _0x4c4b1a of _0x9fc80c){const _0x3cdca6=_0x2c821d?[_0x4c4b1a]:_0xa26b35(_0x361408,_0x4c4b1a,_0x5b77cd[_0xb500('0xe')]);for(const _0x2f5901 of _0x3cdca6)_0x5b77cd[_0xb500('0x18')]['get'](_0xb500('0x1e'))['markInlineFormat'](_0x2f5901,{'commandName':_0x361408,'commandParams':[{'value':_0x2c821d}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16a7=['join','fontBackgroundColor','label','modifySelection','commandName','fontColor.colors','getAttributes','title','boolean','commandParams','backward','createSelection','push','config','createRange','slice','fontSize.options','toLowerCase','getSelectedBlocks','*Set\x20format\x20to:*\x20%0','locale','editor','length','document','isCollapsed','TrackChangesEditing','enableCommand','copyFormat','toUpperCase','markInlineFormat','forward','get','from','model','change','afterInit','registerDescriptionCallback','pasteFormat','*Remove\x20all\x20formatting*','plugins','getFirstPosition','_descriptionFactory','getRanges','commands','FontSize','format','schema','isBlock','entries','word','fontColor','getLastPosition','getAttributeProperties','charAt','isFormatting','getItems','split'];(function(_0x3e2748,_0x16a782){const _0x2ed651=function(_0x239f23){while(--_0x239f23){_0x3e2748['push'](_0x3e2748['shift']());}};_0x2ed651(++_0x16a782);}(_0x16a7,0x169));const _0x2ed6=function(_0x3e2748,_0x16a782){_0x3e2748=_0x3e2748-0x0;let _0x2ed651=_0x16a7[_0x3e2748];return _0x2ed651;};import{Plugin as _0x5af67a}from'ckeditor5/src/core';import{normalizeColorOptions as _0xb3ccec}from'ckeditor5/src/ui';import{first as _0x395689}from'ckeditor5/src/utils';import{getTranslation as _0x8aaed2}from'../utils/common-translations';export default class W extends _0x5af67a{[_0x2ed6('0x10')](){const _0x50a24d=this[_0x2ed6('0x2')],_0xdaf6ac=_0x50a24d[_0x2ed6('0xe')],_0x21c36d=_0xdaf6ac[_0x2ed6('0x4')]['selection'],_0x391b5d=_0x50a24d[_0x2ed6('0x14')][_0x2ed6('0xc')](_0x2ed6('0x6')),_0x1a604d=_0x50a24d[_0x2ed6('0x1')],_0x31c8f7=_0x50a24d[_0x2ed6('0x18')][_0x2ed6('0xc')]('copyFormat'),_0x5416ba=_0x50a24d[_0x2ed6('0x18')][_0x2ed6('0xc')](_0x2ed6('0x12'));_0x31c8f7&&_0x5416ba&&(_0x391b5d[_0x2ed6('0x7')](_0x2ed6('0x12'),(_0x9a85d8,_0x5e963b={})=>{const _0x40ab4b=_0x5e963b;_0xdaf6ac[_0x2ed6('0xf')](()=>{const _0x1a4bcb=Array[_0x2ed6('0xd')](_0x21c36d[_0x2ed6('0x17')]()),_0x423e62=_0x21c36d[_0x2ed6('0x5')]?[ro(_0xdaf6ac,_0x21c36d)]:_0x1a4bcb,_0x392e9d=!!_0x395689(function*(_0x1c263d,_0x93e499){const _0x10b0e9=_0x5c1c41=>!!_0x395689(function*(_0x4fe6a6,_0x34f6ec){for(const [_0xa8b57f]of _0x4fe6a6[_0x2ed6('0x2c')]()){const _0x9c35f=_0x34f6ec[_0x2ed6('0x21')](_0xa8b57f);_0x9c35f&&_0x9c35f[_0x2ed6('0x23')]&&(yield _0xa8b57f);}}(_0x5c1c41,_0x93e499));for(const _0x76199c of _0x1c263d['getRanges']())for(const _0x4158e8 of _0x76199c[_0x2ed6('0x24')]())!_0x93e499[_0x2ed6('0x1c')](_0x4158e8)&&_0x10b0e9(_0x4158e8)&&(yield _0x4158e8);for(const _0x46abbb of _0x1c263d[_0x2ed6('0x38')]())_0x10b0e9(_0x46abbb)&&(yield _0x46abbb);_0x10b0e9(_0x1c263d)&&(yield _0x1c263d);}(_0x21c36d,_0xdaf6ac[_0x2ed6('0x1b')]));if(_0x392e9d||0x0!==Object['keys'](_0x40ab4b)['length'])for(const _0x410a4a of _0x423e62)_0x391b5d[_0x2ed6('0xa')](_0x410a4a,{'commandName':'pasteFormat','commandParams':[_0x40ab4b]});});}),_0x391b5d[_0x2ed6('0x16')][_0x2ed6('0x11')](_0x429e0e=>{const {data:_0x514f7d}=_0x429e0e;if(_0x514f7d&&_0x2ed6('0x12')===_0x514f7d[_0x2ed6('0x2a')]){const _0x87b011=[],_0x158735=_0x514f7d[_0x2ed6('0x2f')][0x0];for(const [_0x25f141,_0xd4c867]of Object[_0x2ed6('0x1d')](_0x158735))_0x87b011[_0x2ed6('0x32')](no(_0x50a24d,_0x25f141,_0xd4c867));return _0x87b011[_0x2ed6('0x3')]?{'type':_0x2ed6('0x1a'),'content':_0x8aaed2(_0x1a604d,_0x2ed6('0x0'),_0x87b011['join'](',\x20'))}:{'type':_0x2ed6('0x1a'),'content':_0x8aaed2(_0x1a604d,_0x2ed6('0x13'))};}}),_0x50a24d['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x2ed6('0x8')));}}function ro(_0x2cf3c6,_0x8ad49){const _0x1724ac=_0x2cf3c6[_0x2ed6('0x31')](_0x8ad49);_0x2cf3c6[_0x2ed6('0x29')](_0x1724ac,{'unit':_0x2ed6('0x1e'),'direction':_0x2ed6('0x30')});const _0x1def26=_0x1724ac[_0x2ed6('0x15')]();_0x2cf3c6[_0x2ed6('0x29')](_0x1724ac,{'unit':_0x2ed6('0x1e'),'direction':_0x2ed6('0xb')});const _0x5c1c1f=_0x1724ac[_0x2ed6('0x20')]();return _0x2cf3c6[_0x2ed6('0x34')](_0x1def26,_0x5c1c1f);}function no(_0xcb14ce,_0x97d8d4,_0x3b66d2){const _0x54a1e7=_0xcb14ce[_0x2ed6('0x1')]['t'],_0x1ebd21=_0x97d8d4[_0x2ed6('0x25')](/(?=[A-Z])/)[_0x2ed6('0x26')]('\x20'),_0x3e8659=_0x54a1e7(_0x1ebd21[_0x2ed6('0x22')](0x0)[_0x2ed6('0x9')]()+_0x1ebd21[_0x2ed6('0x35')](0x1))[_0x2ed6('0x37')]();if(_0x2ed6('0x2e')==typeof _0x3b66d2)return _0x3e8659;if(_0x2ed6('0x1f')===_0x97d8d4||_0x2ed6('0x27')===_0x97d8d4){const _0x73b6ce=_0xb3ccec(_0xcb14ce[_0x2ed6('0x33')][_0x2ed6('0xc')](_0x2ed6('0x2b')))['find'](_0x5e7dda=>_0x5e7dda['model']==_0x3b66d2);return _0x3e8659+'\x20('+(_0x73b6ce?_0x54a1e7(_0x73b6ce[_0x2ed6('0x28')])[_0x2ed6('0x37')]():_0x3b66d2)+')';}if('fontSize'===_0x97d8d4&&isNaN(parseFloat(_0x3b66d2))){const _0x2e13a6=_0xcb14ce[_0x2ed6('0x14')][_0x2ed6('0xc')](_0x2ed6('0x19'))['normalizeSizeOptions'](_0xcb14ce[_0x2ed6('0x33')]['get'](_0x2ed6('0x36')))['find'](_0x271574=>_0x271574['model']==_0x3b66d2);return _0x3e8659+'\x20('+(_0x2e13a6?_0x54a1e7(_0x2e13a6[_0x2ed6('0x2d')])['toLowerCase']():_0x3b66d2)+')';}return _0x3e8659+'\x20('+_0x3b66d2+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2edc=['registerElementLabel','title','value','editor','markBlockFormat','formatBlock','heading','change','registerDescriptionCallback','locale','has','heading.options','schema','config','plugins','afterInit','*Change\x20to:*\x20%0','TrackChangesEditing','find','getSelectedBlocks','name','model','HeadingEditing','_descriptionFactory','ELEMENT_HEADING','format','filter','get','blockName','from','commandParams','paragraph','isObject','commandName'];(function(_0x85dd6e,_0x2edc94){const _0x322bfc=function(_0x1a7317){while(--_0x1a7317){_0x85dd6e['push'](_0x85dd6e['shift']());}};_0x322bfc(++_0x2edc94);}(_0x2edc,0x87));const _0x322b=function(_0x85dd6e,_0x2edc94){_0x85dd6e=_0x85dd6e-0x0;let _0x322bfc=_0x2edc[_0x85dd6e];return _0x322bfc;};import{Plugin as _0x537f14}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x4075a8}from'./utils';import{getTranslation as _0xeaf9d2}from'../utils/common-translations';export default class J extends _0x537f14{[_0x322b('0x10')](){const _0x11d269=this[_0x322b('0x4')],_0x385eea=_0x11d269[_0x322b('0xa')],_0x19ce82=_0x11d269[_0x322b('0xe')][_0x322b('0x1c')](_0x322b('0xc'));if(!_0x11d269[_0x322b('0xf')][_0x322b('0xb')](_0x322b('0x17')))return;const _0x281b2b=_0x11d269['plugins'][_0x322b('0x1c')](_0x322b('0x12'));_0x281b2b['enableCommand'](_0x322b('0x7'),(_0x1ae829,_0x36d6d0)=>{const _0x2a43fc=_0x36d6d0['value'],_0x4deba2=Array[_0x322b('0x1e')](this['editor'][_0x322b('0x16')]['document']['selection'][_0x322b('0x14')]())[_0x322b('0x1b')](_0x13045b=>function(_0xfdac9d,_0x3ba5ef,_0x310f9c){return _0x310f9c['checkChild'](_0xfdac9d['parent'],_0x3ba5ef)&&!_0x310f9c[_0x322b('0x21')](_0xfdac9d)&&_0xfdac9d[_0x322b('0x15')]!=_0x3ba5ef;}(_0x13045b,_0x2a43fc,this[_0x322b('0x4')]['model'][_0x322b('0xd')]));_0x11d269['model'][_0x322b('0x8')](()=>{for(const _0x5854e0 of _0x4deba2)_0x281b2b[_0x322b('0x5')](_0x5854e0,{'commandName':_0x322b('0x7'),'commandParams':[_0x36d6d0],'formatGroupId':_0x322b('0x1d')},_0x4075a8(_0x5854e0));});});for(const _0x2912ab of _0x19ce82)_0x322b('0x20')!=_0x2912ab[_0x322b('0x16')]&&_0x281b2b['_descriptionFactory'][_0x322b('0x1')](_0x2912ab[_0x322b('0x16')],_0x390b5f=>{const _0x383d60=nn(_0x2912ab[_0x322b('0x16')]);return null!==_0x383d60?_0x58aaac(_0x390b5f,_0x383d60):_0x1ef98c(_0x390b5f,_0x2912ab[_0x322b('0x2')]);});function _0x58aaac(_0x573de4,_0x45bff4){return _0xeaf9d2(_0x385eea,_0x322b('0x19'),[_0x573de4,_0x45bff4]);}function _0x1ef98c(_0x163b3a,_0x51ff29){return _0xeaf9d2(_0x385eea,'ELEMENT_HEADING_CUSTOM',[_0x163b3a,_0x51ff29]);}_0x281b2b[_0x322b('0x18')][_0x322b('0x9')](_0x207404=>{const {type:_0x5d2aac,data:_0x28ab62}=_0x207404;if(_0x322b('0x6')==_0x5d2aac&&_0x28ab62&&'heading'==_0x28ab62[_0x322b('0x0')]){const _0x1357f1=_0x28ab62[_0x322b('0x1f')][0x0][_0x322b('0x3')],_0x487d64=nn(_0x1357f1);if(null!==_0x487d64)return{'type':_0x322b('0x1a'),'content':_0xeaf9d2(_0x385eea,_0x322b('0x11'),_0x58aaac(0x1,_0x487d64))};const _0x341c87=_0x19ce82[_0x322b('0x13')](_0x47483f=>_0x47483f[_0x322b('0x16')]===_0x1357f1)[_0x322b('0x2')];return{'type':_0x322b('0x1a'),'content':_0xeaf9d2(_0x385eea,_0x322b('0x11'),_0x1ef98c(0x1,_0x341c87))};}});}}function nn(_0x4a0269){const _0x28ef33=_0x4a0269['match'](/^heading(\d+)$/);return _0x28ef33?_0x28ef33[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc4bb=['toLowerCase','item','highlight.options','has','config','commandName','afterInit','createRange','color','push','title','registerDescriptionCallback','value','_descriptionFactory','FORMAT_HIGHLIGHT','getRanges','change','highlight','formatInline','TrackChangesEditing','HighlightEditing','plugins','isCollapsed','getFirstPosition','markInlineFormat','enableCommand','commandParams','get','document','editor','model','format','getLastMatchingPosition','backward'];(function(_0x416b15,_0xc4bbd0){const _0x44f06d=function(_0x3f4fc1){while(--_0x3f4fc1){_0x416b15['push'](_0x416b15['shift']());}};_0x44f06d(++_0xc4bbd0);}(_0xc4bb,0x177));const _0x44f0=function(_0x416b15,_0xc4bbd0){_0x416b15=_0x416b15-0x0;let _0x44f06d=_0xc4bb[_0x416b15];return _0x44f06d;};import{Plugin as _0x456073}from'ckeditor5/src/core';import{getTranslation as _0x16f04c}from'../utils/common-translations';import{getRangesWithAttribute as _0x27b28d}from'./utils';export default class K extends _0x456073{[_0x44f0('0x5')](){const _0x184402=this[_0x44f0('0x1c')];if(!_0x184402[_0x44f0('0x14')][_0x44f0('0x2')](_0x44f0('0x13')))return;const _0x355d2d=_0x184402[_0x44f0('0x14')][_0x44f0('0x1a')](_0x44f0('0x12'));_0x355d2d[_0x44f0('0x18')](_0x44f0('0x10'),(_0x151461,_0x57c864={})=>{const _0x1d1bfe=_0x184402['model'][_0x44f0('0x1b')]['selection'],_0x21ce99=_0x1d1bfe['getAttribute']('highlight');let _0x266e45=_0x57c864[_0x44f0('0xb')],_0x187ccb=[];if(_0x1d1bfe[_0x44f0('0x15')]){const _0xdb3562=_0x1d1bfe[_0x44f0('0x16')]();if(!_0x1d1bfe['hasAttribute'](_0x44f0('0x10')))return void _0x151461(_0x57c864);{const _0x152d89=_0x4d39e6=>_0x4d39e6[_0x44f0('0x0')]['getAttribute'](_0x44f0('0x10'))===_0x21ce99,_0x5491fa=_0xdb3562[_0x44f0('0x1f')](_0x152d89,{'direction':_0x44f0('0x20')}),_0x31daa6=_0xdb3562[_0x44f0('0x1f')](_0x152d89);_0x187ccb=[_0x184402[_0x44f0('0x1d')][_0x44f0('0x6')](_0x5491fa,_0x31daa6)],_0x266e45==_0x21ce99&&(_0x266e45=null);}}else for(const _0xa1d364 of _0x1d1bfe[_0x44f0('0xe')]())_0x266e45?_0x187ccb[_0x44f0('0x8')](_0xa1d364):_0x187ccb['push'](..._0x27b28d(_0x44f0('0x10'),_0xa1d364,_0x184402[_0x44f0('0x1d')]));_0x184402['model'][_0x44f0('0xf')](()=>{for(const _0x51fec4 of _0x187ccb)_0x355d2d[_0x44f0('0x17')](_0x51fec4,{'commandName':'highlight','commandParams':[{'value':_0x266e45}]});});});const _0x3c0016=_0x184402['locale'];_0x355d2d[_0x44f0('0xc')][_0x44f0('0xa')](_0x28f73c=>{const {type:_0x4fef17,data:_0x5a03af}=_0x28f73c;if(_0x44f0('0x11')==_0x4fef17&&_0x5a03af&&_0x44f0('0x10')==_0x5a03af[_0x44f0('0x4')]){const _0x131bd4=_0x3c0016['t'],_0x40b4ed=_0x5a03af[_0x44f0('0x19')][0x0]['value'];if(_0x40b4ed){const _0x53c9e5=_0x184402[_0x44f0('0x3')][_0x44f0('0x1a')](_0x44f0('0x1'))['find'](_0x5bd9da=>_0x5bd9da[_0x44f0('0x1d')]==_0x40b4ed),_0x3b1b14=_0x131bd4(_0x53c9e5['title'])[_0x44f0('0x21')]();return{'type':_0x44f0('0x1e'),'content':_0x16f04c(_0x3c0016,'*Set\x20highlight:*\x20%0',_0x3b1b14),'color':{'value':_0x53c9e5[_0x44f0('0x7')],'title':_0x53c9e5[_0x44f0('0x9')]}};}return{'type':_0x44f0('0x1e'),'content':_0x16f04c(_0x3c0016,'*Remove\x20highlight*',_0x16f04c(_0x3c0016,_0x44f0('0xd')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44b5=['ck-horizontal-line','insert','afterInit','for','get','HorizontalLineEditing','editor','registerElementLabel','ELEMENT_HORIZONTAL_LINE','conversion','has','plugins','createContainerElement','createPositionAt','horizontalLine','locale','createEmptyElement','high','dataDowncast','elementToStructure','addClass'];(function(_0x5a1272,_0x44b587){const _0x1af119=function(_0x2e078d){while(--_0x2e078d){_0x5a1272['push'](_0x5a1272['shift']());}};_0x1af119(++_0x44b587);}(_0x44b5,0x1de));const _0x1af1=function(_0x5a1272,_0x44b587){_0x5a1272=_0x5a1272-0x0;let _0x1af119=_0x44b5[_0x5a1272];return _0x1af119;};import{Plugin as _0xe559e4}from'ckeditor5/src/core';import{getTranslation as _0x3b4897}from'../utils/common-translations';export default class Q extends _0xe559e4{[_0x1af1('0x7')](){const _0x1ec5a3=this[_0x1af1('0xb')];if(!_0x1ec5a3[_0x1af1('0x10')][_0x1af1('0xf')](_0x1af1('0xa')))return;_0x1ec5a3[_0x1af1('0x10')][_0x1af1('0x9')]('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d9fb3=_0x1ec5a3[_0x1af1('0x10')]['get']('TrackChangesEditing'),_0x3ad37d=_0x1ec5a3[_0x1af1('0x14')];_0x4d9fb3['_descriptionFactory'][_0x1af1('0xc')]('horizontalLine',_0x3728f3=>_0x3b4897(_0x3ad37d,_0x1af1('0xd'),_0x3728f3)),_0x1ec5a3[_0x1af1('0xe')][_0x1af1('0x8')](_0x1af1('0x2'))[_0x1af1('0x3')]({'model':_0x1af1('0x13'),'view':(_0x574bd0,{writer:_0x428513,options:_0x68f449})=>{if(!_0x68f449['showSuggestionHighlights'])return null;const _0x3fb7bb=_0x428513[_0x1af1('0x11')]('div'),_0x294637=_0x428513[_0x1af1('0x0')]('hr');return _0x428513[_0x1af1('0x4')](_0x1af1('0x5'),_0x3fb7bb),_0x428513[_0x1af1('0x6')](_0x428513[_0x1af1('0x12')](_0x3fb7bb,0x0),_0x294637),_0x3fb7bb;},'converterPriority':_0x1af1('0x1')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17a3=['rawHtml','afterInit','document','getCustomProperty','cancel','registerElementLabel','plugins','has','get','htmlEmbed','registerDescriptionCallback','TrackChangesEditing','locale','view','rawHtmlApi','getSelectedElement','enableCommand','editing','value','selection','model','ELEMENT_HTML_EMBED','HtmlEmbed','_descriptionFactory','change','*Change\x20%0\x20content*'];(function(_0x2d90b6,_0x17a394){const _0xbf4f8e=function(_0x44ba79){while(--_0x44ba79){_0x2d90b6['push'](_0x2d90b6['shift']());}};_0xbf4f8e(++_0x17a394);}(_0x17a3,0x123));const _0xbf4f=function(_0x2d90b6,_0x17a394){_0x2d90b6=_0x2d90b6-0x0;let _0xbf4f8e=_0x17a3[_0x2d90b6];return _0xbf4f8e;};import{Plugin as _0x5cb8de}from'ckeditor5/src/core';import{getTranslation as _0xab1aba}from'../utils/common-translations';export default class V extends _0x5cb8de{[_0xbf4f('0x16')](){const _0x24dad4=this['editor'];if(!_0x24dad4[_0xbf4f('0x1')][_0xbf4f('0x2')](_0xbf4f('0x11')))return;const _0x429573=_0x24dad4['plugins'][_0xbf4f('0x3')](_0xbf4f('0x6')),_0xf75e62=_0x24dad4[_0xbf4f('0x7')],_0x2e3f06=_0x24dad4[_0xbf4f('0xc')][_0xbf4f('0x8')][_0xbf4f('0x17')][_0xbf4f('0xe')];_0x429573[_0xbf4f('0x12')][_0xbf4f('0x0')](_0xbf4f('0x15'),_0x209313=>_0xab1aba(_0xf75e62,_0xbf4f('0x10'),_0x209313)),_0x24dad4[_0xbf4f('0x1')][_0xbf4f('0x3')](_0xbf4f('0x6'))[_0xbf4f('0xb')]('htmlEmbed',(_0x226068,_0x18663a)=>{const _0x3eeba6=_0x24dad4[_0xbf4f('0xf')],_0x49e488=_0x3eeba6[_0xbf4f('0x17')][_0xbf4f('0xe')];_0x3eeba6[_0xbf4f('0x13')](()=>{const _0x1972b6=function(_0x495507){const _0x2e058e=_0x495507[_0xbf4f('0xa')]();if(_0x2e058e&&_0x2e058e['is']('element',_0xbf4f('0x15')))return _0x495507[_0xbf4f('0xa')]();return null;}(_0x49e488);if(!_0x1972b6)return void _0x226068(null);const _0x31460c=_0x1972b6['getAttribute'](_0xbf4f('0xd'))||'';if(void 0x0===_0x18663a)return;if(_0x18663a===_0x31460c)return;_0x429573['markBlockFormat'](_0x1972b6,{'commandName':_0xbf4f('0x4'),'commandParams':[_0x18663a]}),_0x2e3f06[_0xbf4f('0xa')]()[_0xbf4f('0x18')](_0xbf4f('0x9'))[_0xbf4f('0x19')]();});}),_0x429573[_0xbf4f('0x12')][_0xbf4f('0x5')](_0x16ab18=>{const {data:_0x5a119e}=_0x16ab18;if(_0x5a119e&&_0xbf4f('0x4')==_0x5a119e['commandName']){const _0x333af8=_0xab1aba(_0xf75e62,_0xbf4f('0x10'));return{'type':'format','content':_0xab1aba(_0xf75e62,_0xbf4f('0x14'),_0x333af8)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1a3f=['getSuggestion','_suggestionFactory','markInsertion','alt','ImageTextAlternativeEditing','formatBlock','*Set\x20image\x20text\x20alternative:*\x20%0','ImageResize','end','width','has','findIndex','name','_descriptionFactory','getAttribute','registerDescriptionCallback','getSuggestionCallback','editor','chain','subType','backward','head','markBlockFormat','_findSuggestions','differ','ImageBlockEditing','caption','deletion','isBefore','plugins','schema','imageStylePostApply','fromPosition','commandName','ImageUtils','isInContent','ImageStyleEditing','forward','addObject','enableCommand','hasAttribute','format','*Reset\x20image\x20width*','join','insertImage','author','isEqual','side','insertion','locale','document','nodeBefore','getContainedElement','markInlineFormat','find','formatInline','getFirstRange','imageTextAlternative','normalizedStyles','getClosestSelectedImageElement','ImageCaptionUtils','value','imageTypeInline','getNearestSelectionRange','start','getSuggestions','afterInit','ELEMENT_IMAGE','_splitMarkerName','imageStyle','forceDefaultExecution','ImageInlineEditing','suggestion','getCaptionFromImageModelElement','accept','element','nodeAfter','next','commandParams','newValue','registerCustomCallback','discard','ELEMENT_CAPTION','hasSuggestion','*Set\x20image\x20width:*\x20%0','detach','toNext','imageBlock','change','resizeImage','selection','createRangeOn','TrackChangesEditing','isCollapsed','*Format:*\x20%0','registerElementLabel','title','commands','isInlineImage','convertBlockImageToInline','get','newRange','refresh','markDeletion','imageInline','model','toggleImageCaption','imageCaption','createRange','commandReversedParams','imageStylePreApply','previous','length','uploadImage','from','type','discardSuggestion','isBlockImage','convertInlineImageToBlock','imageTypeBlock'];(function(_0x511003,_0x1a3f4d){const _0x534387=function(_0x3d5c21){while(--_0x3d5c21){_0x511003['push'](_0x511003['shift']());}};_0x534387(++_0x1a3f4d);}(_0x1a3f,0x1b8));const _0x5343=function(_0x511003,_0x1a3f4d){_0x511003=_0x511003-0x0;let _0x534387=_0x1a3f[_0x511003];return _0x534387;};import{Plugin as _0x32fc61}from'ckeditor5/src/core';import{LivePosition as _0x25b9eb}from'ckeditor5/src/engine';import{uid as _0x37d083}from'ckeditor5/src/utils';import{getTranslation as _0x3e00a0}from'../utils/common-translations';export default class X extends _0x32fc61{[_0x5343('0x6a')](){const _0x3602db=this[_0x5343('0x39')];if(!_0x3602db[_0x5343('0x45')][_0x5343('0x32')]('ImageEditing'))return;const _0x364679=_0x3602db[_0x5343('0x45')][_0x5343('0x14')](_0x5343('0xc')),_0x50c3bb=_0x3602db['plugins'][_0x5343('0x14')](_0x5343('0x4a')),_0x21e204={},_0x432d9a=_0x3602db[_0x5343('0x59')];if(_0x364679[_0x5343('0x4f')](_0x5343('0x54')),_0x364679[_0x5343('0x35')][_0x5343('0xf')](_0x5343('0x7'),_0x1e41af=>_0x3e00a0(_0x432d9a,_0x5343('0x6b'),_0x1e41af)),_0x364679['_descriptionFactory']['registerElementLabel'](_0x5343('0x18'),_0x3da968=>_0x3e00a0(_0x432d9a,'ELEMENT_INLINE_IMAGE',_0x3da968)),_0x364679[_0x5343('0x35')]['registerElementLabel'](_0x5343('0x42'),()=>_0x3e00a0(_0x432d9a,_0x5343('0x2'))),_0x3602db[_0x5343('0x45')]['has']('ImageUploadEditing')&&_0x364679[_0x5343('0x4f')](_0x5343('0x21')),_0x3602db['plugins'][_0x5343('0x32')](_0x5343('0x41'))&&_0x3602db[_0x5343('0x45')][_0x5343('0x32')](_0x5343('0x6f'))&&(_0x364679[_0x5343('0x4f')](_0x5343('0x66'),(_0x47e637,_0x26a403)=>{const _0x33a953=_0x50c3bb[_0x5343('0x63')](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0xa')]);_0x3602db[_0x5343('0x19')][_0x5343('0x8')](()=>{_0x364679[_0x5343('0x3e')](_0x33a953,{'commandName':_0x5343('0x66'),'commandParams':[_0x26a403]},[],'convertBlockImageToInline');});}),_0x364679[_0x5343('0x4f')](_0x5343('0x27'),(_0x198c35,_0x435e0e)=>{_0x3602db[_0x5343('0x19')]['change'](_0x4202f3=>{let _0x2e8f6e=_0x50c3bb['getClosestSelectedImageElement'](_0x3602db['model'][_0x5343('0x5a')][_0x5343('0xa')]),_0x44fd45=_0x4202f3[_0x5343('0xb')](_0x2e8f6e);const _0x253693=_0x25b9eb[_0x5343('0x48')](_0x44fd45[_0x5343('0x68')],'toPrevious'),_0x1f7c74=_0x25b9eb[_0x5343('0x48')](_0x44fd45[_0x5343('0x30')],_0x5343('0x6'));_0x364679[_0x5343('0x6e')](()=>_0x198c35(_0x435e0e)),_0x2e8f6e=_0x50c3bb[_0x5343('0x63')](_0x3602db[_0x5343('0x19')]['document'][_0x5343('0xa')]),_0x44fd45=_0x4202f3[_0x5343('0xb')](_0x2e8f6e);const _0x2b837a=_0x4202f3[_0x5343('0x1c')](_0x253693,_0x1f7c74);_0x253693[_0x5343('0x5')](),_0x1f7c74[_0x5343('0x5')](),_0x364679['markBlockFormat'](_0x2e8f6e,{'commandName':_0x5343('0x66'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x2b837a['start'][_0x5343('0x44')](_0x44fd45[_0x5343('0x68')])&&_0x364679[_0x5343('0x2a')](_0x4202f3[_0x5343('0x1c')](_0x2b837a[_0x5343('0x68')],_0x44fd45[_0x5343('0x68')]),'convertInlineImageToBlock'),_0x44fd45[_0x5343('0x30')]['isBefore'](_0x2b837a[_0x5343('0x30')])&&_0x364679[_0x5343('0x2a')](_0x4202f3[_0x5343('0x1c')](_0x44fd45[_0x5343('0x30')],_0x2b837a[_0x5343('0x30')]),'convertInlineImageToBlock');});}),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x2d'),_0x5343('0x26'),_0x5343('0x53'),()=>{}),_0x364679[_0x5343('0x29')]['registerCustomCallback']('formatBlock',_0x5343('0x26'),_0x5343('0x72'),()=>{}),_0x364679[_0x5343('0x29')][_0x5343('0x0')]('formatBlock',_0x5343('0x26'),_0x5343('0x1'),_0x364679['_suggestionFactory']['getSuggestionCallback'](_0x5343('0x2d'),'',_0x5343('0x72'))),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x58'),'convertInlineImageToBlock',_0x5343('0x53'),()=>{}),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x58'),_0x5343('0x26'),_0x5343('0x1'),([_0x55ba27])=>{const _0x5d2615=_0x364679[_0x5343('0x29')][_0x5343('0x38')]('insertion','',_0x5343('0x1'));let _0x4c8f27=_0x55ba27[_0x5343('0x68')],_0x3278f1=_0x55ba27[_0x5343('0x30')];const _0x34d835=_0x3602db['model'][_0x5343('0x46')][_0x5343('0x67')](_0x4c8f27,_0x5343('0x3c')),_0x252d1f=_0x3602db[_0x5343('0x19')][_0x5343('0x46')]['getNearestSelectionRange'](_0x3278f1,_0x5343('0x4d'));_0x34d835['isCollapsed']&&(_0x4c8f27=_0x34d835['start']),_0x252d1f[_0x5343('0xd')]&&(_0x3278f1=_0x252d1f[_0x5343('0x30')]),_0x5d2615([_0x3602db[_0x5343('0x19')]['createRange'](_0x4c8f27,_0x3278f1)]);}),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x2d'),_0x5343('0x26'),_0x5343('0x3a'),_0x3f85e0),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x58'),_0x5343('0x26'),'chain',_0x3f85e0)),_0x3602db[_0x5343('0x45')][_0x5343('0x32')]('ImageCaptionEditing')&&(_0x364679[_0x5343('0x4f')](_0x5343('0x1a'),(_0x23999e,_0x2aff9d)=>{const _0x3fab24=_0x3602db[_0x5343('0x45')][_0x5343('0x14')](_0x5343('0x64'));let _0x27d31f=_0x50c3bb[_0x5343('0x63')](_0x3602db['model'][_0x5343('0x5a')][_0x5343('0xa')]),_0x48f4ca=_0x3fab24['getCaptionFromImageModelElement'](_0x27d31f);_0x3602db[_0x5343('0x19')][_0x5343('0x8')](()=>{if(_0x48f4ca)return void _0x364679[_0x5343('0x17')](_0x3602db[_0x5343('0x19')][_0x5343('0xb')](_0x48f4ca));const _0x1d18f1=_0x50c3bb['isBlockImage'](_0x27d31f);_0x23999e(_0x2aff9d),_0x27d31f=_0x50c3bb[_0x5343('0x63')](_0x3602db['model']['document'][_0x5343('0xa')]),_0x48f4ca=_0x3fab24[_0x5343('0x71')](_0x27d31f),_0x364679[_0x5343('0x2a')](_0x3602db['model'][_0x5343('0xb')](_0x48f4ca),_0x1d18f1?null:_0x5343('0x1b'));});}),_0x364679['_suggestionFactory'][_0x5343('0x0')](_0x5343('0x58'),'imageCaption','chain',_0x3f85e0)),_0x3602db[_0x5343('0x45')][_0x5343('0x32')]('ImageStyleEditing')){_0x364679['enableCommand'](_0x5343('0x6d'),(_0x2d0456,_0xa44c31)=>{const _0x374efa=_0x3602db[_0x5343('0x45')]['get']('Users')['me'],_0x2816ec=_0x3602db[_0x5343('0x11')]['get'](_0x5343('0x6d'));let _0xe3fb62=_0x50c3bb[_0x5343('0x63')](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')]['selection']),_0xfd8173=_0x3602db[_0x5343('0x19')][_0x5343('0xb')](_0xe3fb62),_0x361a83=_0x2816ec[_0x5343('0x65')];if(_0x361a83==_0xa44c31[_0x5343('0x65')])return;const _0x430369={'commandName':'imageStyle','commandParams':[_0xa44c31],'formatGroupId':_0x37d083()};_0x3602db['model'][_0x5343('0x8')](()=>{if(_0x364679[_0x5343('0x69')]()['filter'](_0x4350a5=>_0x4350a5[_0x5343('0x4b')]&&_0x374efa==_0x4350a5[_0x5343('0x55')]&&(_0x5343('0x2d')==_0x4350a5['type']||_0x5343('0x5f')==_0x4350a5[_0x5343('0x23')])&&(_0x5343('0x1e')==_0x4350a5[_0x5343('0x3b')]||'imageStylePostApply'==_0x4350a5['subType'])&&_0x4350a5[_0x5343('0x60')]()['isEqual'](_0xfd8173))['forEach'](_0x11aa80=>_0x364679[_0x5343('0x24')](_0x11aa80[_0x5343('0x3d')])),_0xe3fb62=_0x50c3bb[_0x5343('0x63')](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0xa')]),_0xfd8173=_0x3602db[_0x5343('0x19')]['createRangeOn'](_0xe3fb62),_0x2816ec[_0x5343('0x16')](),_0x3602db[_0x5343('0x11')][_0x5343('0x14')]('imageTypeInline')[_0x5343('0x16')](),_0x3602db[_0x5343('0x11')]['get'](_0x5343('0x27'))['refresh'](),_0x361a83=_0x2816ec['value'],_0x361a83!=_0xa44c31[_0x5343('0x65')])return _0x50c3bb[_0x5343('0x12')](_0xe3fb62)&&_0x2816ec['shouldConvertImageType'](_0xa44c31[_0x5343('0x65')],_0xe3fb62)?(_0x2d0456(_0xa44c31),_0xe3fb62=_0x50c3bb['getClosestSelectedImageElement'](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0xa')]),void _0x364679[_0x5343('0x3e')](_0xe3fb62,{..._0x430369,'commandReversedParams':[{'value':_0x361a83||null}]},[],_0x5343('0x1e'))):void(_0x50c3bb[_0x5343('0x25')](_0xe3fb62)?_0x364679[_0x5343('0x3e')](_0xe3fb62,_0x430369,[],'imageStylePostApply'):_0x364679[_0x5343('0x5d')](_0xfd8173,_0x430369,_0x5343('0x47')));});});for(const _0x12fff5 of _0x3602db[_0x5343('0x45')][_0x5343('0x14')](_0x5343('0x4c'))[_0x5343('0x62')])_0x21e204[_0x12fff5[_0x5343('0x34')]]=_0x12fff5[_0x5343('0x10')]['toLowerCase']();_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x2d'),'imageStylePreApply',_0x5343('0x53'),()=>{}),_0x364679['_suggestionFactory']['registerCustomCallback'](_0x5343('0x2d'),'imageStylePostApply','join',()=>{}),_0x364679['_suggestionFactory'][_0x5343('0x0')](_0x5343('0x5f'),_0x5343('0x47'),_0x5343('0x53'),()=>{}),_0x364679[_0x5343('0x29')]['registerCustomCallback'](_0x5343('0x2d'),_0x5343('0x1e'),_0x5343('0x72'),()=>{}),_0x364679[_0x5343('0x29')][_0x5343('0x0')](_0x5343('0x2d'),_0x5343('0x1e'),_0x5343('0x1'),(_0x19dc22,_0x596c7a)=>{_0x364679[_0x5343('0x29')][_0x5343('0x38')]('formatBlock','',_0x5343('0x72'))(_0x19dc22,{'commandName':_0x596c7a[_0x5343('0x49')],'commandParams':_0x596c7a[_0x5343('0x1d')]});}),_0x364679[_0x5343('0x29')]['registerCustomCallback']('formatBlock',_0x5343('0x1e'),_0x5343('0x3a'),_0x3f85e0);}const _0x37edee=[{'type':'formatBlock','subType':_0x5343('0x1e')},{'type':'insertion','subType':_0x5343('0x1b')},{'type':'formatBlock','subType':_0x5343('0x26')},{'type':_0x5343('0x58'),'subType':_0x5343('0x26')}];function _0x64f43b(_0x4fd86d,_0x16f9d9){const _0x4aeb1a=_0x37edee[_0x5343('0x33')](({type:_0x3c646c,subType:_0x4cf983})=>_0x4fd86d['type']==_0x3c646c&&_0x4fd86d[_0x5343('0x3b')]==_0x4cf983),_0x2f19fd=_0x37edee[_0x5343('0x33')](({type:_0x2a7430,subType:_0x313241})=>_0x16f9d9[_0x5343('0x23')]==_0x2a7430&&_0x16f9d9[_0x5343('0x3b')]==_0x313241);if(_0x4aeb1a<0x0||_0x2f19fd<0x0)return!0x1;const _0x4d5190=_0x4fd86d['getFirstRange'](),_0x34d8a5=_0x16f9d9[_0x5343('0x60')]();if((0x0==_0x4aeb1a||0x1==_0x4aeb1a)&&0x2==_0x2f19fd&&_0x4d5190['isIntersecting'](_0x34d8a5))return!0x0;if(0x2==_0x4aeb1a&&0x3==_0x2f19fd){const _0x176648=_0x364679[_0x5343('0x3f')](_0x4d5190,_0x5343('0x58'))['filter'](({suggestion:_0x10fb41,meta:_0x1893d8})=>_0x1893d8['isOwn']&&'convertInlineImageToBlock'==_0x10fb41['subType']);if(_0x176648[_0x5343('0x20')]>0x1&&_0x34d8a5[_0x5343('0x30')]['isEqual'](_0x4d5190['start']))return!0x0;if(0x1==_0x176648[_0x5343('0x20')]&&(_0x4d5190[_0x5343('0x68')]['isEqual'](_0x34d8a5[_0x5343('0x30')])||_0x4d5190[_0x5343('0x30')][_0x5343('0x56')](_0x34d8a5['start'])))return!0x0;}if(0x3==_0x4aeb1a&&0x3==_0x2f19fd&&_0x4d5190['start'][_0x5343('0x44')](_0x34d8a5[_0x5343('0x68')])){const _0x8190ed=_0x4d5190['end'][_0x5343('0x74')],_0x1a0dfa=_0x34d8a5[_0x5343('0x68')][_0x5343('0x5b')];return _0x50c3bb['isBlockImage'](_0x8190ed)&&_0x8190ed===_0x1a0dfa;}return!0x1;}function _0x3f85e0(_0x93816a,_0x13d375){return _0x64f43b(_0x93816a,_0x13d375)?[_0x93816a,_0x13d375]:_0x64f43b(_0x13d375,_0x93816a)?[_0x13d375,_0x93816a]:null;}_0x3602db['model'][_0x5343('0x5a')]['registerPostFixer'](()=>{let _0x1979b2=!0x1;const _0x24d127=Array[_0x5343('0x22')](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0x40')]['getChangedMarkers']());for(const {name:_0x8634ba,data:_0x4f87ef}of _0x24d127){const {group:_0x12f93b,type:_0x321de1,subType:_0x3f2efa,id:_0x893b90}=_0x364679[_0x5343('0x6c')](_0x8634ba);if(_0x5343('0x70')==_0x12f93b&&_0x364679[_0x5343('0x3')](_0x893b90)){if('formatBlock'==_0x321de1&&(_0x5343('0x1e')==_0x3f2efa||_0x5343('0x47')==_0x3f2efa)){const _0x6ef95=_0x364679[_0x5343('0x28')](_0x893b90);if(_0x4f87ef[_0x5343('0x15')]){const _0xc3cd81=_0x6ef95[_0x5343('0x60')]()[_0x5343('0x5c')]();if(_0x50c3bb['isBlockImage'](_0xc3cd81))continue;_0x364679[_0x5343('0x24')](_0x6ef95),_0x1979b2=!0x0;}}if(_0x5343('0x58')==_0x321de1&&_0x5343('0x1b')==_0x3f2efa&&!_0x4f87ef[_0x5343('0x15')]){const _0x33a574=_0x364679[_0x5343('0x28')](_0x893b90);_0x33a574[_0x5343('0x75')]&&_0x33a574[_0x5343('0x75')][_0x5343('0x4b')]&&(_0x364679[_0x5343('0x24')](_0x33a574[_0x5343('0x75')]),_0x1979b2=!0x0);}}}return _0x1979b2;}),_0x3602db[_0x5343('0x45')][_0x5343('0x32')](_0x5343('0x2f'))&&_0x364679[_0x5343('0x4f')]('resizeImage',(_0x5baf18,_0x36fc4a)=>{const _0x1d8a2e=_0x50c3bb['getClosestSelectedImageElement'](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0xa')]);_0x1d8a2e[_0x5343('0x36')]('width')!=_0x36fc4a['width']&&_0x3602db['model'][_0x5343('0x8')](()=>{_0x364679[_0x5343('0x3e')](_0x1d8a2e,{'commandName':'resizeImage','commandParams':[_0x36fc4a]});});}),_0x3602db['plugins']['has'](_0x5343('0x2c'))&&_0x364679['enableCommand'](_0x5343('0x61'),(_0x21aeee,_0x1abd62)=>{const _0x83f099=_0x50c3bb[_0x5343('0x63')](_0x3602db[_0x5343('0x19')][_0x5343('0x5a')][_0x5343('0xa')]);(_0x83f099[_0x5343('0x50')]('alt')?_0x83f099['getAttribute'](_0x5343('0x2b')):'')!=_0x1abd62[_0x5343('0x77')]&&_0x3602db[_0x5343('0x19')]['change'](()=>{_0x364679[_0x5343('0x3e')](_0x83f099,{'commandName':_0x5343('0x61'),'commandParams':[_0x1abd62]});});}),_0x364679['_descriptionFactory'][_0x5343('0x37')](_0x5e4b9a=>{if(!!_0x37edee[_0x5343('0x5e')](({type:_0x325fb2,subType:_0x23b49c})=>_0x5e4b9a[_0x5343('0x23')]==_0x325fb2&&_0x5e4b9a[_0x5343('0x3b')]==_0x23b49c))return _0x5e4b9a[_0x5343('0x1f')]?{}:void 0x0;}),_0x364679[_0x5343('0x35')]['registerDescriptionCallback'](_0x50bb80=>{if(_0x5343('0x58')==_0x50bb80[_0x5343('0x23')]||_0x5343('0x43')==_0x50bb80['type']){const _0x3e8070=_0x50bb80[_0x5343('0x5c')]();if(_0x3e8070&&_0x3e8070['is'](_0x5343('0x73'),_0x5343('0x42')))return{'type':'insertion'==_0x50bb80[_0x5343('0x23')]?_0x5343('0x4e'):'removeObject','element':_0x3e8070,'quantity':0x1};}}),_0x364679['_descriptionFactory'][_0x5343('0x37')](_0x5a39a9=>_0x5343('0x2d')==_0x5a39a9[_0x5343('0x23')]&&_0x5343('0x26')==_0x5a39a9[_0x5343('0x3b')]?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:_0x5343('0x2d')==_0x5a39a9[_0x5343('0x23')]&&_0x5343('0x13')==_0x5a39a9['subType']?{'type':_0x5343('0x51'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x364679['_descriptionFactory']['registerDescriptionCallback'](_0x5890d6=>{const {data:_0x57d7ad}=_0x5890d6;if(_0x57d7ad){if(_0x5343('0x6d')==_0x57d7ad['commandName']){const _0xf21dd6=_0x57d7ad['commandParams'][0x0]['value'];return _0x1be3f7(_0x5343('0x57')===_0xf21dd6?_0x3e00a0(_0x432d9a,'FORMAT_SIDE_IMAGE'):_0x21e204[_0xf21dd6]||_0xf21dd6);}if(_0x5343('0x61')==_0x57d7ad['commandName']){const _0x55699e=_0x57d7ad[_0x5343('0x76')][0x0][_0x5343('0x77')];return _0x55699e?{'type':'format','content':_0x3e00a0(_0x432d9a,_0x5343('0x2e'),'\x22'+_0x55699e+'\x22')}:{'type':'format','content':_0x3e00a0(_0x432d9a,'*Remove\x20image\x20text\x20alternative*')};}if(_0x5343('0x9')==_0x57d7ad['commandName']){const _0x585365=_0x57d7ad[_0x5343('0x76')][0x0][_0x5343('0x31')];return _0x585365?{'type':'format','content':_0x3e00a0(_0x432d9a,_0x5343('0x4'),_0x585365)}:{'type':_0x5343('0x51'),'content':_0x3e00a0(_0x432d9a,_0x5343('0x52'))};}}function _0x1be3f7(_0x579100){return{'type':'format','content':_0x3e00a0(_0x432d9a,_0x5343('0xe'),_0x579100)};}});}}
|
|
23
|
+
const _0x5406=['Inline\x20image\x20to\x20block\x20image','afterInit','ImageResize','chain','imageStylePostApply','imageCaption','markInsertion','caption','_descriptionFactory','toggleImageCaption','uploadImage','getCaptionFromImageModelElement','isInlineImage','ImageUtils','toNext','nodeAfter','end','FORMAT_SIDE_IMAGE','change','schema','imageTypeInline','*Remove\x20image\x20text\x20alternative*','registerPostFixer','subType','imageInline','getFirstRange','next','formatBlock','ELEMENT_INLINE_IMAGE','getNearestSelectionRange','ImageStyleEditing','backward','hasSuggestion','fromPosition','markBlockFormat','document','element','formatInline','getChangedMarkers','head','ImageCaptionEditing','commandParams','enableCommand','imageTypeBlock','forceDefaultExecution','registerElementLabel','refresh','join','format','getSuggestions','alt','insertion','value','ELEMENT_CAPTION','isBefore','toPrevious','type','getClosestSelectedImageElement','differ','imageStylePreApply','getSuggestion','findIndex','ImageTextAlternativeEditing','previous','*Set\x20image\x20width:*\x20%0','isOwn','imageBlock','selection','getAttribute','getSuggestionCallback','hasAttribute','nodeBefore','normalizedStyles','isCollapsed','insertImage','accept','model','ELEMENT_IMAGE','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','_suggestionFactory','author','Block\x20image\x20to\x20inline\x20image','name','suggestion','resizeImage','ImageEditing','isBlockImage','isInContent','createRange','locale','commandReversedParams','has','registerDescriptionCallback','side','plugins','commands','*Reset\x20image\x20width*','_findSuggestions','convertInlineImageToBlock','newValue','createRangeOn','removeObject','editor','get','registerCustomCallback','discard','forEach','getContainedElement','commandName','title','ImageCaptionUtils','newRange','width','discardSuggestion','imageTextAlternative','isEqual','markInlineFormat','find','addObject','ImageBlockEditing','start','from','imageStyle','toLowerCase'];(function(_0x599768,_0x540662){const _0x424e98=function(_0x9d8fe6){while(--_0x9d8fe6){_0x599768['push'](_0x599768['shift']());}};_0x424e98(++_0x540662);}(_0x5406,0x1dc));const _0x424e=function(_0x599768,_0x540662){_0x599768=_0x599768-0x0;let _0x424e98=_0x5406[_0x599768];return _0x424e98;};import{Plugin as _0x4672c0}from'ckeditor5/src/core';import{LivePosition as _0x271b27}from'ckeditor5/src/engine';import{uid as _0x5a9b95}from'ckeditor5/src/utils';import{getTranslation as _0x5b41f0}from'../utils/common-translations';export default class X extends _0x4672c0{[_0x424e('0x19')](){const _0x387459=this[_0x424e('0x2')];if(!_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x6e')))return;const _0xf1d786=_0x387459[_0x424e('0x77')][_0x424e('0x3')]('TrackChangesEditing'),_0x3c59f3=_0x387459['plugins']['get'](_0x424e('0x25')),_0xbe39f3={},_0x4a8a97=_0x387459[_0x424e('0x72')];if(_0xf1d786[_0x424e('0x42')](_0x424e('0x62')),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x5a'),_0x1cecdd=>_0x5b41f0(_0x4a8a97,_0x424e('0x65'),_0x1cecdd)),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x30'),_0x6516b8=>_0x5b41f0(_0x4a8a97,_0x424e('0x34'),_0x6516b8)),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x1f'),()=>_0x5b41f0(_0x4a8a97,_0x424e('0x4d'))),_0x387459[_0x424e('0x77')][_0x424e('0x74')]('ImageUploadEditing')&&_0xf1d786[_0x424e('0x42')](_0x424e('0x22')),_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x13'))&&_0x387459[_0x424e('0x77')]['has']('ImageInlineEditing')&&(_0xf1d786[_0x424e('0x42')](_0x424e('0x2c'),(_0x231230,_0x35c3e5)=>{const _0x2112a8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]);_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786[_0x424e('0x3a')](_0x2112a8,{'commandName':_0x424e('0x2c'),'commandParams':[_0x35c3e5]},[],'convertBlockImageToInline');});}),_0xf1d786[_0x424e('0x42')](_0x424e('0x43'),(_0x3366b1,_0x1595e0)=>{_0x387459[_0x424e('0x64')][_0x424e('0x2a')](_0x191157=>{let _0x5f1dc8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]),_0x4373a1=_0x191157[_0x424e('0x0')](_0x5f1dc8);const _0x41c250=_0x271b27[_0x424e('0x39')](_0x4373a1['start'],_0x424e('0x4f')),_0x4712b7=_0x271b27[_0x424e('0x39')](_0x4373a1[_0x424e('0x28')],_0x424e('0x26'));_0xf1d786[_0x424e('0x44')](()=>_0x3366b1(_0x1595e0)),_0x5f1dc8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x4373a1=_0x191157[_0x424e('0x0')](_0x5f1dc8);const _0x2f9adb=_0x191157[_0x424e('0x71')](_0x41c250,_0x4712b7);_0x41c250['detach'](),_0x4712b7['detach'](),_0xf1d786[_0x424e('0x3a')](_0x5f1dc8,{'commandName':_0x424e('0x2c'),'commandParams':[]},[],_0x424e('0x7b')),_0x2f9adb['start'][_0x424e('0x4e')](_0x4373a1['start'])&&_0xf1d786[_0x424e('0x1e')](_0x191157['createRange'](_0x2f9adb[_0x424e('0x14')],_0x4373a1[_0x424e('0x14')]),_0x424e('0x7b')),_0x4373a1[_0x424e('0x28')][_0x424e('0x4e')](_0x2f9adb[_0x424e('0x28')])&&_0xf1d786[_0x424e('0x1e')](_0x191157[_0x424e('0x71')](_0x4373a1[_0x424e('0x28')],_0x2f9adb[_0x424e('0x28')]),_0x424e('0x7b'));});}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')]('formatBlock',_0x424e('0x7b'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),'accept',()=>{}),_0xf1d786['_suggestionFactory'][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),_0x424e('0x5'),_0xf1d786[_0x424e('0x68')]['getSuggestionCallback'](_0x424e('0x33'),'',_0x424e('0x63'))),_0xf1d786['_suggestionFactory'][_0x424e('0x4')]('insertion','convertInlineImageToBlock',_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')]['registerCustomCallback'](_0x424e('0x4b'),_0x424e('0x7b'),_0x424e('0x5'),([_0x3d0ddb])=>{const _0x2c23c9=_0xf1d786[_0x424e('0x68')][_0x424e('0x5d')](_0x424e('0x4b'),'',_0x424e('0x5'));let _0x3d4162=_0x3d0ddb[_0x424e('0x14')],_0x45a5f0=_0x3d0ddb[_0x424e('0x28')];const _0x1f0644=_0x387459['model'][_0x424e('0x2b')][_0x424e('0x35')](_0x3d4162,_0x424e('0x37')),_0x4459eb=_0x387459[_0x424e('0x64')][_0x424e('0x2b')][_0x424e('0x35')](_0x45a5f0,'forward');_0x1f0644['isCollapsed']&&(_0x3d4162=_0x1f0644[_0x424e('0x14')]),_0x4459eb[_0x424e('0x61')]&&(_0x45a5f0=_0x4459eb['end']),_0x2c23c9([_0x387459['model']['createRange'](_0x3d4162,_0x45a5f0)]);}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),_0x424e('0x1b'),_0x367d43),_0xf1d786['_suggestionFactory'][_0x424e('0x4')](_0x424e('0x4b'),_0x424e('0x7b'),_0x424e('0x1b'),_0x367d43)),_0x387459['plugins'][_0x424e('0x74')](_0x424e('0x40'))&&(_0xf1d786[_0x424e('0x42')](_0x424e('0x21'),(_0x521ca4,_0x30600b)=>{const _0x197319=_0x387459[_0x424e('0x77')][_0x424e('0x3')](_0x424e('0xa'));let _0xf43398=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x26205b=_0x197319['getCaptionFromImageModelElement'](_0xf43398);_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{if(_0x26205b)return void _0xf1d786[_0x424e('0x67')](_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x26205b));const _0xf30032=_0x3c59f3[_0x424e('0x6f')](_0xf43398);_0x521ca4(_0x30600b),_0xf43398=_0x3c59f3['getClosestSelectedImageElement'](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x26205b=_0x197319[_0x424e('0x23')](_0xf43398),_0xf1d786['markInsertion'](_0x387459['model'][_0x424e('0x0')](_0x26205b),_0xf30032?null:_0x424e('0x1d'));});}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')]('insertion','imageCaption',_0x424e('0x1b'),_0x367d43)),_0x387459[_0x424e('0x77')][_0x424e('0x74')]('ImageStyleEditing')){_0xf1d786['enableCommand']('imageStyle',(_0x725fcc,_0x5eba01)=>{const _0x1d0c07=_0x387459['plugins'][_0x424e('0x3')]('Users')['me'],_0x3f41b9=_0x387459[_0x424e('0x78')]['get']('imageStyle');let _0x19123f=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]),_0x59661d=_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x19123f),_0x3acbcd=_0x3f41b9[_0x424e('0x4c')];if(_0x3acbcd==_0x5eba01[_0x424e('0x4c')])return;const _0x55adf0={'commandName':_0x424e('0x16'),'commandParams':[_0x5eba01],'formatGroupId':_0x5a9b95()};_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{if(_0xf1d786[_0x424e('0x49')]()['filter'](_0xb2637a=>_0xb2637a[_0x424e('0x70')]&&_0x1d0c07==_0xb2637a[_0x424e('0x69')]&&('formatBlock'==_0xb2637a[_0x424e('0x50')]||_0x424e('0x3d')==_0xb2637a[_0x424e('0x50')])&&(_0x424e('0x53')==_0xb2637a[_0x424e('0x2f')]||_0x424e('0x1c')==_0xb2637a['subType'])&&_0xb2637a[_0x424e('0x31')]()[_0x424e('0xf')](_0x59661d))[_0x424e('0x6')](_0x534617=>_0xf1d786[_0x424e('0xd')](_0x534617[_0x424e('0x3f')])),_0x19123f=_0x3c59f3['getClosestSelectedImageElement'](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x59661d=_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x19123f),_0x3f41b9[_0x424e('0x46')](),_0x387459[_0x424e('0x78')][_0x424e('0x3')](_0x424e('0x2c'))[_0x424e('0x46')](),_0x387459['commands']['get'](_0x424e('0x43'))[_0x424e('0x46')](),_0x3acbcd=_0x3f41b9['value'],_0x3acbcd!=_0x5eba01[_0x424e('0x4c')])return _0x3c59f3[_0x424e('0x24')](_0x19123f)&&_0x3f41b9['shouldConvertImageType'](_0x5eba01[_0x424e('0x4c')],_0x19123f)?(_0x725fcc(_0x5eba01),_0x19123f=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),void _0xf1d786[_0x424e('0x3a')](_0x19123f,{..._0x55adf0,'commandReversedParams':[{'value':_0x3acbcd||null}]},[],_0x424e('0x53'))):void(_0x3c59f3['isBlockImage'](_0x19123f)?_0xf1d786[_0x424e('0x3a')](_0x19123f,_0x55adf0,[],_0x424e('0x1c')):_0xf1d786[_0x424e('0x10')](_0x59661d,_0x55adf0,'imageStylePostApply'));});});for(const _0x8548b3 of _0x387459[_0x424e('0x77')][_0x424e('0x3')](_0x424e('0x36'))[_0x424e('0x60')])_0xbe39f3[_0x8548b3[_0x424e('0x6b')]]=_0x8548b3[_0x424e('0x9')][_0x424e('0x17')]();_0xf1d786['_suggestionFactory'][_0x424e('0x4')]('formatBlock',_0x424e('0x53'),'join',()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x1c'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x3d'),_0x424e('0x1c'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),'imageStylePreApply',_0x424e('0x63'),()=>{}),_0xf1d786['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x424e('0x53'),_0x424e('0x5'),(_0x3d1dda,_0x4be3cb)=>{_0xf1d786[_0x424e('0x68')]['getSuggestionCallback'](_0x424e('0x33'),'',_0x424e('0x63'))(_0x3d1dda,{'commandName':_0x4be3cb[_0x424e('0x8')],'commandParams':_0x4be3cb[_0x424e('0x73')]});}),_0xf1d786[_0x424e('0x68')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x424e('0x1b'),_0x367d43);}const _0x4f5b31=[{'type':_0x424e('0x33'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0x424e('0x1d')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x424e('0x4b'),'subType':_0x424e('0x7b')}];function _0x4f6b5a(_0x591610,_0x43bd2f){const _0x467407=_0x4f5b31[_0x424e('0x55')](({type:_0x29e45c,subType:_0x2853ee})=>_0x591610[_0x424e('0x50')]==_0x29e45c&&_0x591610[_0x424e('0x2f')]==_0x2853ee),_0x3e8731=_0x4f5b31[_0x424e('0x55')](({type:_0x545d76,subType:_0x2fdfb3})=>_0x43bd2f[_0x424e('0x50')]==_0x545d76&&_0x43bd2f[_0x424e('0x2f')]==_0x2fdfb3);if(_0x467407<0x0||_0x3e8731<0x0)return!0x1;const _0x3c3c06=_0x591610[_0x424e('0x31')](),_0x544556=_0x43bd2f[_0x424e('0x31')]();if((0x0==_0x467407||0x1==_0x467407)&&0x2==_0x3e8731&&_0x3c3c06['isIntersecting'](_0x544556))return!0x0;if(0x2==_0x467407&&0x3==_0x3e8731){const _0x14012c=_0xf1d786[_0x424e('0x7a')](_0x3c3c06,'insertion')['filter'](({suggestion:_0x194332,meta:_0x4ed900})=>_0x4ed900[_0x424e('0x59')]&&_0x424e('0x7b')==_0x194332[_0x424e('0x2f')]);if(_0x14012c['length']>0x1&&_0x544556[_0x424e('0x28')][_0x424e('0xf')](_0x3c3c06[_0x424e('0x14')]))return!0x0;if(0x1==_0x14012c['length']&&(_0x3c3c06[_0x424e('0x14')]['isEqual'](_0x544556[_0x424e('0x28')])||_0x3c3c06[_0x424e('0x28')]['isEqual'](_0x544556[_0x424e('0x14')])))return!0x0;}if(0x3==_0x467407&&0x3==_0x3e8731&&_0x3c3c06[_0x424e('0x14')][_0x424e('0x4e')](_0x544556[_0x424e('0x14')])){const _0x2af4db=_0x3c3c06[_0x424e('0x28')][_0x424e('0x27')],_0x2f8339=_0x544556[_0x424e('0x14')][_0x424e('0x5f')];return _0x3c59f3[_0x424e('0x6f')](_0x2af4db)&&_0x2af4db===_0x2f8339;}return!0x1;}function _0x367d43(_0x18e699,_0x2aefb0){return _0x4f6b5a(_0x18e699,_0x2aefb0)?[_0x18e699,_0x2aefb0]:_0x4f6b5a(_0x2aefb0,_0x18e699)?[_0x2aefb0,_0x18e699]:null;}_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x2e')](()=>{let _0x1e90e4=!0x1;const _0x5a03cf=Array[_0x424e('0x15')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x52')][_0x424e('0x3e')]());for(const {name:_0x5a3dbb,data:_0x42f9b5}of _0x5a03cf){const {group:_0x1ead18,type:_0x114ee0,subType:_0x4d2462,id:_0x3e91de}=_0xf1d786['_splitMarkerName'](_0x5a3dbb);if(_0x424e('0x6c')==_0x1ead18&&_0xf1d786[_0x424e('0x38')](_0x3e91de)){if(_0x424e('0x33')==_0x114ee0&&('imageStylePreApply'==_0x4d2462||'imageStylePostApply'==_0x4d2462)){const _0x5d30df=_0xf1d786[_0x424e('0x54')](_0x3e91de);if(_0x42f9b5[_0x424e('0xb')]){const _0x1514c8=_0x5d30df[_0x424e('0x31')]()[_0x424e('0x7')]();if(_0x3c59f3[_0x424e('0x6f')](_0x1514c8))continue;_0xf1d786[_0x424e('0xd')](_0x5d30df),_0x1e90e4=!0x0;}}if(_0x424e('0x4b')==_0x114ee0&&'imageCaption'==_0x4d2462&&!_0x42f9b5[_0x424e('0xb')]){const _0x50e33f=_0xf1d786[_0x424e('0x54')](_0x3e91de);_0x50e33f['next']&&_0x50e33f[_0x424e('0x32')][_0x424e('0x70')]&&(_0xf1d786['discardSuggestion'](_0x50e33f[_0x424e('0x32')]),_0x1e90e4=!0x0);}}}return _0x1e90e4;}),_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x1a'))&&_0xf1d786['enableCommand'](_0x424e('0x6d'),(_0x52c26f,_0x4ae756)=>{const _0x5cd063=_0x3c59f3[_0x424e('0x51')](_0x387459['model'][_0x424e('0x3b')][_0x424e('0x5b')]);_0x5cd063[_0x424e('0x5c')](_0x424e('0xc'))!=_0x4ae756[_0x424e('0xc')]&&_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786['markBlockFormat'](_0x5cd063,{'commandName':'resizeImage','commandParams':[_0x4ae756]});});}),_0x387459['plugins']['has'](_0x424e('0x56'))&&_0xf1d786[_0x424e('0x42')](_0x424e('0xe'),(_0x5dc51e,_0x160859)=>{const _0x5b645c=_0x3c59f3[_0x424e('0x51')](_0x387459['model'][_0x424e('0x3b')][_0x424e('0x5b')]);(_0x5b645c[_0x424e('0x5e')](_0x424e('0x4a'))?_0x5b645c[_0x424e('0x5c')](_0x424e('0x4a')):'')!=_0x160859[_0x424e('0x7c')]&&_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786['markBlockFormat'](_0x5b645c,{'commandName':_0x424e('0xe'),'commandParams':[_0x160859]});});}),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x4e489e=>{if(!!_0x4f5b31[_0x424e('0x11')](({type:_0x1d495e,subType:_0x22caf1})=>_0x4e489e[_0x424e('0x50')]==_0x1d495e&&_0x4e489e[_0x424e('0x2f')]==_0x22caf1))return _0x4e489e[_0x424e('0x57')]?{}:void 0x0;}),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x6b6fd5=>{if('insertion'==_0x6b6fd5['type']||'deletion'==_0x6b6fd5[_0x424e('0x50')]){const _0x351015=_0x6b6fd5[_0x424e('0x7')]();if(_0x351015&&_0x351015['is'](_0x424e('0x3c'),_0x424e('0x1f')))return{'type':_0x424e('0x4b')==_0x6b6fd5[_0x424e('0x50')]?_0x424e('0x12'):_0x424e('0x1'),'element':_0x351015,'quantity':0x1};}}),_0xf1d786[_0x424e('0x20')]['registerDescriptionCallback'](_0x597cfa=>_0x424e('0x33')==_0x597cfa[_0x424e('0x50')]&&'convertInlineImageToBlock'==_0x597cfa[_0x424e('0x2f')]?{'type':_0x424e('0x48'),'content':_0x424e('0x18')}:_0x424e('0x33')==_0x597cfa['type']&&'convertBlockImageToInline'==_0x597cfa[_0x424e('0x2f')]?{'type':_0x424e('0x48'),'content':_0x424e('0x6a')}:void 0x0),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x4324be=>{const {data:_0x15a214}=_0x4324be;if(_0x15a214){if('imageStyle'==_0x15a214[_0x424e('0x8')]){const _0x414999=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0x4c')];return _0x345e70(_0x424e('0x76')===_0x414999?_0x5b41f0(_0x4a8a97,_0x424e('0x29')):_0xbe39f3[_0x414999]||_0x414999);}if('imageTextAlternative'==_0x15a214['commandName']){const _0x56b276=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0x7c')];return _0x56b276?{'type':'format','content':_0x5b41f0(_0x4a8a97,_0x424e('0x66'),'\x22'+_0x56b276+'\x22')}:{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x2d'))};}if('resizeImage'==_0x15a214['commandName']){const _0x3d8bd6=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0xc')];return _0x3d8bd6?{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x58'),_0x3d8bd6)}:{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x79'))};}}function _0x345e70(_0x403631){return{'type':'format','content':_0x5b41f0(_0x4a8a97,'*Format:*\x20%0',_0x403631)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37c1=['getSelectedElement','format','enableCommand','getSuggestions','replaceImageSource','discard','plugins','subType','handleSuggestionDescription','source','selection','markBlockFormat','commandParams','TrackChangesEditing','author','model','get','src','locale','data','getAttribute','registerDescriptionCallback','*Format:*\x20replace\x20image\x20URL','afterInit','document','editor','ImageEditing','handleReplaceImageCommand','formatBlock','commandName','accept','registerCustomCallback','Users','_descriptionFactory','_suggestionFactory','has','getSuggestionCallback'];(function(_0x1bbf35,_0x37c195){const _0x2b00c0=function(_0x54d57c){while(--_0x54d57c){_0x1bbf35['push'](_0x1bbf35['shift']());}};_0x2b00c0(++_0x37c195);}(_0x37c1,0xd8));const _0x2b00=function(_0x1bbf35,_0x37c195){_0x1bbf35=_0x1bbf35-0x0;let _0x2b00c0=_0x37c1[_0x1bbf35];return _0x2b00c0;};import{Plugin as _0x2a11d5}from'ckeditor5/src/core';import{getTranslation as _0x4552d5}from'../utils/common-translations';export default class Y extends _0x2a11d5{[_0x2b00('0x1d')](){if(!this[_0x2b00('0x1f')][_0x2b00('0xc')][_0x2b00('0x4')](_0x2b00('0x20')))return;const _0x1290b9=this[_0x2b00('0x1f')][_0x2b00('0xc')]['get'](_0x2b00('0x13'));_0x1290b9[_0x2b00('0x8')](_0x2b00('0xa'),(_0x11f2bb,_0x46b31a)=>this[_0x2b00('0x21')](_0x11f2bb,_0x46b31a)),_0x1290b9[_0x2b00('0x3')][_0x2b00('0x0')](_0x2b00('0x22'),_0x2b00('0xa'),_0x2b00('0x24'),_0x1290b9[_0x2b00('0x3')][_0x2b00('0x5')](_0x2b00('0x22'),null,_0x2b00('0xb'))),_0x1290b9[_0x2b00('0x3')][_0x2b00('0x0')](_0x2b00('0x22'),'replaceImageSource',_0x2b00('0xb'),_0x1290b9['_suggestionFactory'][_0x2b00('0x5')](_0x2b00('0x22'),null,_0x2b00('0x24'))),_0x1290b9[_0x2b00('0x2')][_0x2b00('0x1b')](_0x2423c8=>this[_0x2b00('0xe')](_0x2423c8));}[_0x2b00('0x21')](_0x23db3e,_0x526eeb){const _0x203dc7=this[_0x2b00('0x1f')][_0x2b00('0xc')][_0x2b00('0x16')](_0x2b00('0x13')),_0x4e02ef=this[_0x2b00('0x1f')][_0x2b00('0x15')][_0x2b00('0x1e')][_0x2b00('0x10')][_0x2b00('0x6')]();this[_0x2b00('0x1f')]['model']['change'](()=>{let _0x413bfc=_0x4e02ef[_0x2b00('0x1a')](_0x2b00('0x17'));const _0x41d5d0=this[_0x2b00('0x1f')][_0x2b00('0xc')][_0x2b00('0x16')](_0x2b00('0x1'))['me'];for(const _0x438fc6 of _0x203dc7[_0x2b00('0x9')]({'skipNotAttached':!0x0})){const _0x31beb4=_0x438fc6['getContainedElement']();if(_0x2b00('0xa')===_0x438fc6[_0x2b00('0xd')]&&_0x31beb4===_0x4e02ef){_0x438fc6[_0x2b00('0x14')]!==_0x41d5d0&&_0x438fc6[_0x2b00('0xb')](),_0x413bfc=_0x438fc6[_0x2b00('0x19')][_0x2b00('0x12')][0x0][_0x2b00('0xf')];break;}}_0x23db3e(_0x526eeb),_0x203dc7[_0x2b00('0x11')](_0x4e02ef,{'commandName':'replaceImageSource','commandParams':[{'source':_0x413bfc}]},[],_0x2b00('0xa'));});}[_0x2b00('0xe')](_0x5be117){const {data:_0x427439}=_0x5be117;if(_0x427439&&'replaceImageSource'===_0x427439[_0x2b00('0x23')]){const _0x1fa89c=_0x2b00('0x1c');return{'type':_0x2b00('0x7'),'content':_0x4552d5(this['editor'][_0x2b00('0x18')],_0x1fa89c)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3197=['afterInit','editor','Users','_trackChangesExecuted','bind','trackChanges','collaboration_features','_trackChangesValueDuringImport','forEach','value','track_changes','importWord','commands','listenTo','high','plugins','_setSuggestionData','_handleImportedData','dataInsert','get','execute'];(function(_0x392d80,_0x319753){const _0x5b8e3b=function(_0x2c973a){while(--_0x2c973a){_0x392d80['push'](_0x392d80['shift']());}};_0x5b8e3b(++_0x319753);}(_0x3197,0x154));const _0x5b8e=function(_0x392d80,_0x319753){_0x392d80=_0x392d80-0x0;let _0x5b8e3b=_0x3197[_0x392d80];return _0x5b8e3b;};import{Plugin as _0x2c571c}from'ckeditor5/src/core';export default class Z extends _0x2c571c{constructor(_0x1d0657){super(_0x1d0657),this[_0x5b8e('0x3')]=!0x1,this[_0x5b8e('0x14')]=!0x1;}[_0x5b8e('0x11')](){const _0x478247=this[_0x5b8e('0x12')],_0x5346f6=_0x478247[_0x5b8e('0x8')][_0x5b8e('0xf')]('importWord'),_0x4d325f=_0x478247[_0x5b8e('0x8')]['get']('trackChanges');_0x5346f6&&(_0x5346f6['on']('execute',(_0x33d9ee,[,_0x28f8a4])=>{this['_trackChangesValueDuringImport']=_0x4d325f[_0x5b8e('0x5')],_0x28f8a4[_0x5b8e('0x2')][_0x5b8e('0x6')]=!this[_0x5b8e('0x3')];},{'priority':_0x5b8e('0xa')}),this['listenTo'](_0x5346f6,_0x5b8e('0xe'),this[_0x5b8e('0xd')][_0x5b8e('0x0')](this)),this[_0x5b8e('0x9')](_0x5346f6,_0x5b8e('0xe'),()=>{this['_trackChangesExecuted']&&(_0x4d325f[_0x5b8e('0x10')](),this[_0x5b8e('0x14')]=!0x1);},{'priority':'lowest'}),_0x478247[_0x5b8e('0xb')][_0x5b8e('0xf')]('TrackChangesEditing')['enableCommand'](_0x5b8e('0x7')));}[_0x5b8e('0xd')](_0x1373d9,_0x35a1f7){const {suggestions:_0x526c36}=_0x35a1f7,_0xa4ec2f=this['editor'][_0x5b8e('0x8')][_0x5b8e('0xf')](_0x5b8e('0x1')),_0x77f033=_0xa4ec2f['value'];this[_0x5b8e('0x3')]!==_0x77f033&&(_0xa4ec2f['execute'](),this[_0x5b8e('0x14')]=!0x0),_0x526c36&&_0x526c36[_0x5b8e('0x4')](({id:_0x2a235d,type:_0x567e9f,author:_0x38003d,created_at:_0x52a2bd})=>{const _0x24376c={'id':_0x2a235d,'type':_0x567e9f,'authorId':this[_0x5b8e('0x12')][_0x5b8e('0xb')][_0x5b8e('0xf')](_0x5b8e('0x13'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38003d,'createdAt':_0x52a2bd?new Date(_0x52a2bd):new Date(),'source':_0x5b8e('0x7')}}};this[_0x5b8e('0x12')][_0x5b8e('0xb')]['get']('TrackChangesEditing')[_0x5b8e('0xc')](_0x24376c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c44=['*Indent:*\x20%0','model','filter','selection','editor','document','has','commandName','indentBlock','plugins','enableCommand','from','get','change','getItems','*Outdent:*\x20%0','outdent','markBlockFormat','getItemLabel','indent','format','getSelectedBlocks','blockIndent','afterInit','outdentBlock','locale','registerDescriptionCallback','TrackChangesEditing','IndentEditing'];(function(_0x291443,_0x2c4463){const _0x58d866=function(_0x552c6f){while(--_0x552c6f){_0x291443['push'](_0x291443['shift']());}};_0x58d866(++_0x2c4463);}(_0x2c44,0x110));const _0x58d8=function(_0x291443,_0x2c4463){_0x291443=_0x291443-0x0;let _0x58d866=_0x2c44[_0x291443];return _0x58d866;};import{Plugin as _0x4a48ac}from'ckeditor5/src/core';import{getTranslation as _0x535095}from'../utils/common-translations';export default class tt extends _0x4a48ac{[_0x58d8('0xc')](){const _0xee1deb=this[_0x58d8('0x16')],_0x5033b9=_0xee1deb[_0x58d8('0x1b')][_0x58d8('0x1')](_0x58d8('0x10'));_0xee1deb['plugins'][_0x58d8('0x18')](_0x58d8('0x11'))&&(_0x5033b9[_0x58d8('0x1c')](_0x58d8('0x8')),_0x5033b9['enableCommand'](_0x58d8('0x5')));const _0xc2ac18=_0xee1deb[_0x58d8('0xe')];if(_0xee1deb[_0x58d8('0x1b')]['has']('IndentBlock')){for(const _0x9ce79f of[_0x58d8('0x1a'),_0x58d8('0xd')])_0x5033b9[_0x58d8('0x1c')](_0x9ce79f,()=>{const _0xd09c7f=Array[_0x58d8('0x0')](this[_0x58d8('0x16')][_0x58d8('0x13')][_0x58d8('0x17')][_0x58d8('0x15')][_0x58d8('0xa')]())[_0x58d8('0x14')](_0x391924=>this['editor'][_0x58d8('0x13')]['schema']['checkAttribute'](_0x391924,_0x58d8('0xb')));_0xee1deb[_0x58d8('0x13')][_0x58d8('0x2')](()=>{for(const _0x554fa6 of _0xd09c7f)_0x5033b9[_0x58d8('0x6')](_0x554fa6,{'commandName':_0x9ce79f,'commandParams':[{'value':''}],'formatGroupId':_0x58d8('0x1a')});});});_0x5033b9['_descriptionFactory'][_0x58d8('0xf')](_0x58d2c8=>{const {data:_0x2dbb43}=_0x58d2c8;if(!_0x2dbb43)return;if(_0x58d8('0x1a')!=_0x2dbb43[_0x58d8('0x19')]&&_0x58d8('0xd')!=_0x2dbb43['commandName'])return;const _0x5059e0=_0x58d2c8[_0x58d8('0x3')]()[0x0],_0x3ff3fc=_0x5033b9['_descriptionFactory'][_0x58d8('0x7')](_0x5059e0);return _0x58d8('0x1a')==_0x2dbb43[_0x58d8('0x19')]?{'type':_0x58d8('0x9'),'content':_0x535095(_0xc2ac18,_0x58d8('0x12'),_0x3ff3fc)}:_0x58d8('0xd')==_0x2dbb43[_0x58d8('0x19')]?{'type':_0x58d8('0x9'),'content':_0x535095(_0xc2ac18,_0x58d8('0x4'),_0x3ff3fc)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x26d1=['init','TrackChangesEditing','editor','enableCommand'];(function(_0x463270,_0x26d1b6){var _0x1fe994=function(_0x710246){while(--_0x710246){_0x463270['push'](_0x463270['shift']());}};_0x1fe994(++_0x26d1b6);}(_0x26d1,0x18b));var _0x1fe9=function(_0x463270,_0x26d1b6){_0x463270=_0x463270-0x0;var _0x1fe994=_0x26d1[_0x463270];return _0x1fe994;};import{Plugin as _0x3220bb}from'ckeditor5/src/core';import{Input as _0x302f37}from'ckeditor5/src/typing';export default class it extends _0x3220bb{static get['requires'](){return[_0x302f37];}[_0x1fe9('0x1')](){this[_0x1fe9('0x3')]['plugins']['get'](_0x1fe9('0x2'))[_0x1fe9('0x0')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24f4=['format','selection','_descriptionFactory','commandParams','editor','isCollapsed','getFirstRange','document','LinkEditing','enableCommand','getAttribute','linkHref','unlink','markInlineFormat','from','get','plugins','getRanges','TrackChangesEditing','getFirstPosition','link','commandName','afterInit','*Set\x20link:*\x20%0','model','change'];(function(_0x52ea9e,_0x24f48e){const _0x470c50=function(_0x6c6e4a){while(--_0x6c6e4a){_0x52ea9e['push'](_0x52ea9e['shift']());}};_0x470c50(++_0x24f48e);}(_0x24f4,0x1c0));const _0x470c=function(_0x52ea9e,_0x24f48e){_0x52ea9e=_0x52ea9e-0x0;let _0x470c50=_0x24f4[_0x52ea9e];return _0x470c50;};import{Plugin as _0x2e66be}from'ckeditor5/src/core';import{findAttributeRange as _0xde9850}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x757a66}from'./utils';import{getTranslation as _0x2aaa63}from'../utils/common-translations';export default class et extends _0x2e66be{[_0x470c('0x10')](){const _0x27b347=this[_0x470c('0x18')];if(!_0x27b347[_0x470c('0xa')]['has'](_0x470c('0x2')))return;const _0x1d3855=_0x27b347[_0x470c('0xa')][_0x470c('0x9')](_0x470c('0xc'));_0x1d3855[_0x470c('0x3')](_0x470c('0xe'),(_0x5f4333,_0x56f6e9)=>{const _0x72d92=_0x27b347['model'][_0x470c('0x1')][_0x470c('0x15')];let _0x1360bb=[];if(_0x72d92[_0x470c('0x19')]){if(!_0x72d92['hasAttribute'](_0x470c('0x5')))return void _0x5f4333(_0x56f6e9);{const _0xda3051=_0xde9850(_0x72d92['getFirstPosition'](),_0x470c('0x5'),_0x72d92[_0x470c('0x4')](_0x470c('0x5')),_0x27b347[_0x470c('0x12')]);_0x1360bb=[_0xda3051];}}else _0x1360bb=Array[_0x470c('0x8')](_0x72d92[_0x470c('0xb')]());_0x27b347['model'][_0x470c('0x13')](()=>{for(const _0x31d215 of _0x1360bb)_0x1d3855[_0x470c('0x7')](_0x31d215,{'commandName':'link','commandParams':[_0x56f6e9]});});}),_0x1d3855[_0x470c('0x3')](_0x470c('0x6'),()=>{const _0x167e42=this[_0x470c('0x18')][_0x470c('0x12')],_0x1b42a9=_0x167e42[_0x470c('0x1')][_0x470c('0x15')];_0x167e42[_0x470c('0x13')](()=>{let _0x272178=[];if(_0x1b42a9[_0x470c('0x19')])_0x272178=[_0xde9850(_0x1b42a9[_0x470c('0xd')](),'linkHref',_0x1b42a9[_0x470c('0x4')](_0x470c('0x5')),_0x27b347[_0x470c('0x12')])];else _0x272178=_0x757a66(_0x470c('0x5'),_0x1b42a9[_0x470c('0x0')](),_0x27b347[_0x470c('0x12')]);for(const _0x58269b of _0x272178)_0x1d3855[_0x470c('0x7')](_0x58269b,{'commandName':_0x470c('0x6'),'commandParams':[]});});}),_0x1d3855[_0x470c('0x16')]['registerDescriptionCallback'](_0x519254=>{const {data:_0x5533ce}=_0x519254,_0x3c5d0f=_0x27b347['locale'];if(_0x5533ce){if(_0x470c('0xe')==_0x5533ce['commandName']){const _0xe249da=_0x5533ce[_0x470c('0x17')][0x0];return{'type':'format','content':_0x2aaa63(_0x3c5d0f,_0x470c('0x11'),'\x22'+_0xe249da+'\x22')};}return _0x470c('0x6')==_0x5533ce[_0x470c('0xf')]?{'type':_0x470c('0x14'),'content':_0x2aaa63(_0x3c5d0f,'*Remove\x20link*')}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2058=['ELEMENT_LIST_ITEM','nextSibling','TrackChangesEditing','getSelectedBlocks','document','*Indent:*\x20%0','commandParams','getAttribute','todoListChecked','change','format','TodoListEditing','ELEMENT_BULLETED_LIST','isObject','before','slice','value','ELEMENT_TODO_LIST','length','listType','commandName','name','listIndent','plugins','_descriptionFactory','selection','_selectedElements','checkTodoList','registerDescriptionCallback','findIndex','filter','locale','add','from','createRange','bulletedList','List','forceValue','has','numbered','get','ListEditing','previousSibling','commands','model','element','todo','indentList','execute','listItem','paragraph','enableCommand','schema','editor','outdentList','numberedList','markBlockFormat','todoList','registerElementLabel','afterInit'];(function(_0x12cf49,_0x205854){const _0x2d3614=function(_0x5dd20f){while(--_0x5dd20f){_0x12cf49['push'](_0x12cf49['shift']());}};_0x2d3614(++_0x205854);}(_0x2058,0xb3));const _0x2d36=function(_0x12cf49,_0x205854){_0x12cf49=_0x12cf49-0x0;let _0x2d3614=_0x2058[_0x12cf49];return _0x2d3614;};import{Plugin as _0x4572e6}from'ckeditor5/src/core';import{getTranslation as _0x206458}from'../utils/common-translations';export default class st extends _0x4572e6{[_0x2d36('0x0')](){const _0x4d27d2=this[_0x2d36('0x36')],_0x535a20=_0x4d27d2[_0x2d36('0x20')];if(!_0x4d27d2[_0x2d36('0x18')][_0x2d36('0x27')](_0x2d36('0x2a')))return;const _0x54174c=_0x4d27d2[_0x2d36('0x18')]['get'](_0x2d36('0x3')),_0x1ec75d=_0x4d27d2[_0x2d36('0x18')][_0x2d36('0x27')](_0x2d36('0xc'));function _0x4fea8e(_0x59f022){return()=>{const _0x26d239=_0x4d27d2[_0x2d36('0x2d')][_0x2d36('0x5')][_0x2d36('0x1a')],_0x35be4c=_0x4d27d2[_0x2d36('0x2c')]['get'](_0x59f022);if(_0x35be4c[_0x2d36('0x11')])return void _0x4d27d2[_0x2d36('0x31')](_0x2d36('0x33'),{});const _0x59a8ff=_0x59f022[_0x2d36('0x10')](0x0,-0x4),_0x31aecd=function(_0x37b770,_0x15cc97,_0x40f41c){let _0x128a3c=Array[_0x2d36('0x22')](_0x37b770)[_0x2d36('0x1f')](_0x3dc866=>function(_0x3d0bc1,_0x2d27ab){return _0x2d27ab['checkChild'](_0x3d0bc1['parent'],_0x2d36('0x32'))&&!_0x2d27ab[_0x2d36('0xe')](_0x3d0bc1);}(_0x3dc866,_0x40f41c));_0x128a3c=_0x128a3c[_0x2d36('0x1f')](_0x35264a=>!_0x35264a['is'](_0x2d36('0x2e'),_0x2d36('0x32'))||_0x35264a[_0x2d36('0x8')](_0x2d36('0x14'))!=_0x15cc97);const _0xea04ad=new Set();for(const _0x444d6a of _0x128a3c)_0x444d6a['is'](_0x2d36('0x2e'),_0x2d36('0x32'))?_0xea04ad['add'](ne(_0x444d6a)):_0xea04ad[_0x2d36('0x21')](_0x444d6a);return Array[_0x2d36('0x22')](_0xea04ad);}(_0x26d239[_0x2d36('0x4')](),_0x59a8ff,_0x4d27d2[_0x2d36('0x2d')][_0x2d36('0x35')]);_0x4d27d2[_0x2d36('0x2d')][_0x2d36('0xa')](()=>{for(const _0x43e9a3 of _0x31aecd)_0x54174c[_0x2d36('0x39')](_0x43e9a3,{'commandName':_0x59f022,'commandParams':[{'forceValue':!_0x35be4c[_0x2d36('0x11')]}],'formatGroupId':'blockName'},oe(_0x43e9a3));});};}function _0x1d641c(_0x343e2a){return()=>{const _0xe040ab=function(_0x53c658){let _0x4305b5=Array['from'](_0x53c658);const _0x17ae24=_0x4305b5[_0x2d36('0x1e')](_0x33ffa5=>_0x2d36('0x32')!=_0x33ffa5[_0x2d36('0x16')]);return _0x17ae24>-0x1&&(_0x4305b5=_0x4305b5[_0x2d36('0x10')](0x0,_0x17ae24)),_0x4305b5;}(_0x4d27d2[_0x2d36('0x2d')]['document'][_0x2d36('0x1a')][_0x2d36('0x4')]()),_0x1e32ca=_0x4d27d2[_0x2d36('0x2d')][_0x2d36('0x23')](_0x4d27d2[_0x2d36('0x2d')]['createPositionAt'](_0xe040ab[0x0],_0x2d36('0xf')),_0x4d27d2[_0x2d36('0x2d')]['createPositionAt'](_0xe040ab[_0xe040ab[_0x2d36('0x13')]-0x1],'end'));_0x4d27d2['model'][_0x2d36('0xa')](()=>{_0x54174c['markBlockFormat'](_0x1e32ca,{'commandName':_0x343e2a,'commandParams':[],'formatGroupId':_0x2d36('0x17')},function(_0x1a36dc){const _0xa89189=new Set();for(const _0x15db2a of _0x1a36dc){let _0x4cd823=_0x15db2a[_0x2d36('0x2')];for(;_0x4cd823&&_0x4cd823[_0x2d36('0x8')](_0x2d36('0x17'))>_0x15db2a[_0x2d36('0x8')](_0x2d36('0x17'));)_0xa89189['add'](_0x4cd823),_0x4cd823=_0x4cd823[_0x2d36('0x2')];}return Array[_0x2d36('0x22')](_0xa89189);}(_0xe040ab));});};}_0x54174c[_0x2d36('0x34')](_0x2d36('0x38'),_0x4fea8e('numberedList')),_0x54174c[_0x2d36('0x34')](_0x2d36('0x24'),_0x4fea8e(_0x2d36('0x24'))),_0x1ec75d&&_0x54174c[_0x2d36('0x34')](_0x2d36('0x3a'),_0x4fea8e(_0x2d36('0x3a'))),_0x54174c[_0x2d36('0x34')](_0x2d36('0x30'),_0x1d641c('indentList')),_0x54174c[_0x2d36('0x34')](_0x2d36('0x37'),_0x1d641c(_0x2d36('0x37'))),_0x1ec75d&&_0x54174c[_0x2d36('0x34')]('checkTodoList',()=>{const _0x26855a=_0x4d27d2[_0x2d36('0x2c')][_0x2d36('0x29')]('checkTodoList'),_0xba0e87=Array[_0x2d36('0x22')](_0x26855a[_0x2d36('0x1b')]);_0xba0e87[_0x2d36('0x1f')](_0x176e51=>_0x176e51[_0x2d36('0x8')](_0x2d36('0x9'))!=_0x26855a[_0x2d36('0x11')]),_0x4d27d2['model']['change'](()=>{for(const _0x362c03 of _0xba0e87)_0x54174c[_0x2d36('0x39')](_0x362c03,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26855a[_0x2d36('0x11')]}]});});}),_0x54174c[_0x2d36('0x19')][_0x2d36('0x3b')](_0x2d36('0x32'),_0x46f0bf=>_0x206458(_0x535a20,'ELEMENT_LIST_ITEM',_0x46f0bf)),_0x54174c[_0x2d36('0x19')][_0x2d36('0x1d')](_0x25c49c=>{const {data:_0x23f669}=_0x25c49c;if(_0x23f669){if(_0x2d36('0x38')==_0x23f669[_0x2d36('0x15')]||_0x2d36('0x24')==_0x23f669[_0x2d36('0x15')]||_0x2d36('0x3a')==_0x23f669[_0x2d36('0x15')])switch(_0x23f669[_0x2d36('0x15')]['replace'](_0x2d36('0x25'),'')){case'bulleted':return _0x173e8a(_0x206458(_0x535a20,_0x2d36('0xd')));case _0x2d36('0x28'):return _0x173e8a(_0x206458(_0x535a20,'ELEMENT_NUMBERED_LIST'));case _0x2d36('0x2f'):return _0x173e8a(_0x206458(_0x535a20,_0x2d36('0x12')));}if(_0x2d36('0x30')==_0x23f669['commandName'])return{'type':_0x2d36('0xb'),'content':_0x206458(_0x535a20,_0x2d36('0x6'),_0x206458(_0x535a20,_0x2d36('0x1')))};if(_0x2d36('0x37')==_0x23f669[_0x2d36('0x15')])return{'type':_0x2d36('0xb'),'content':_0x206458(_0x535a20,'*Outdent:*\x20%0',_0x206458(_0x535a20,_0x2d36('0x1')))};if(_0x2d36('0x1c')==_0x23f669[_0x2d36('0x15')])return _0x23f669[_0x2d36('0x7')][0x0][_0x2d36('0x26')]?{'type':_0x2d36('0xb'),'content':_0x206458(_0x535a20,'*Check\x20item*')}:{'type':_0x2d36('0xb'),'content':_0x206458(_0x535a20,'*Uncheck\x20item*')};}function _0x173e8a(_0x884489){return{'type':'format','content':_0x206458(_0x535a20,'*Change\x20to:*\x20%0',_0x884489)};}});}}function ne(_0x4f9498){const _0x37ac08=_0x4f9498['getAttribute'](_0x2d36('0x17'));if(0x0==_0x37ac08)return _0x4f9498;let _0x14447e=_0x4f9498;for(;_0x4f9498['previousSibling']&&_0x4f9498[_0x2d36('0x2b')]['is']('element',_0x2d36('0x32'));){const _0x428de7=_0x4f9498[_0x2d36('0x2b')][_0x2d36('0x8')](_0x2d36('0x17'));if(_0x428de7==_0x37ac08)_0x14447e=_0x4f9498[_0x2d36('0x2b')];else{if(_0x428de7<_0x37ac08)break;}_0x4f9498=_0x4f9498[_0x2d36('0x2b')];}return _0x14447e;}function oe(_0x18f1e2){const _0x1dbc98=[];if(_0x18f1e2['is'](_0x2d36('0x2e'),_0x2d36('0x32'))&&_0x18f1e2[_0x2d36('0x8')]('listIndent')>0x0){let _0x1e69a5=_0x18f1e2['nextSibling'];for(;_0x1e69a5&&_0x2d36('0x32')==_0x1e69a5['name']&&_0x1e69a5[_0x2d36('0x8')](_0x2d36('0x17'))==_0x18f1e2[_0x2d36('0x8')](_0x2d36('0x17'));)_0x1dbc98['push'](_0x1e69a5),_0x1e69a5=_0x1e69a5[_0x2d36('0x2')];}return _0x1dbc98;}
|