@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240104.0 → 0.0.0-nightly-20240105.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/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/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/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 _0x2524=['_enableDefaultAttributesIntegration','TrackChangesEditing','label','fontSize','FontColorEditing','*Set\x20font\x20color:*\x20%0','plugins','fontColor','format','*Set\x20font\x20background\x20color:*\x20%0','normalizeSizeOptions','trim','_descriptionFactory','FORMAT_FONT_BACKGROUND','FORMAT_FONT_SIZE','value','fontFamily','model','editor','*Set\x20font\x20family:*\x20%0','type','find','FontSize','*Reset\x20font\x20family*','registerAttributeLabel','FontBackgroundColorEditing','commandParams','registerDescriptionCallback','commandName','has','afterInit','*Set\x20font\x20size:*\x20%0','config','_registerLegacyDescription','FontFamilyEditing','FontSizeEditing','get','toLowerCase','fontBackgroundColor'];(function(_0x51c732,_0x25244e){const _0x193fb1=function(_0xf84b18){while(--_0xf84b18){_0x51c732['push'](_0x51c732['shift']());}};_0x193fb1(++_0x25244e);}(_0x2524,0x1bb));const _0x193f=function(_0x51c732,_0x25244e){_0x51c732=_0x51c732-0x0;let _0x193fb1=_0x2524[_0x51c732];return _0x193fb1;};import{Plugin as _0x347e41}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x14a049}from'ckeditor5/src/ui.js';import{getTranslation as _0xaf6b12}from'../utils/common-translations.js';const ro=[{'pluginName':_0x193f('0x15'),'commandName':_0x193f('0x1c')},{'pluginName':_0x193f('0x14'),'commandName':_0x193f('0x2')},{'pluginName':_0x193f('0x1d'),'commandName':_0x193f('0x20')},{'pluginName':_0x193f('0xb'),'commandName':_0x193f('0x18')}];export default class Q extends _0x347e41{[_0x193f('0x10')](){const _0x340d88=this['editor']['locale'],_0x59cfd8=this[_0x193f('0x4')]['plugins'][_0x193f('0x16')](_0x193f('0x1a'));for(const {pluginName:_0x4bff72,commandName:_0x57ae6b}of ro)this[_0x193f('0x4')]['plugins'][_0x193f('0xf')](_0x4bff72)&&_0x59cfd8[_0x193f('0x19')](_0x57ae6b,[_0x57ae6b]);_0x340d88['t'],(_0x59cfd8['_descriptionFactory'][_0x193f('0xa')](_0x193f('0x1c'),_0xaf6b12(_0x340d88,_0x193f('0x0'))),_0x59cfd8[_0x193f('0x25')]['registerAttributeLabel'](_0x193f('0x2'),_0xaf6b12(_0x340d88,'FORMAT_FONT_FAMILY')),_0x59cfd8['_descriptionFactory'][_0x193f('0xa')]('fontColor',_0xaf6b12(_0x340d88,'FORMAT_FONT_COLOR')),_0x59cfd8[_0x193f('0x25')]['registerAttributeLabel'](_0x193f('0x18'),_0xaf6b12(_0x340d88,_0x193f('0x26'))),this[_0x193f('0x13')]());}[_0x193f('0x13')](){const _0x1d393d=this['editor'],_0x31991b=_0x1d393d['locale'];_0x1d393d[_0x193f('0x1f')][_0x193f('0x16')]('TrackChangesEditing')['_descriptionFactory'][_0x193f('0xd')](_0x571bda=>{const _0x169a77=_0x31991b['t'];if('formatInline'!=_0x571bda[_0x193f('0x6')])return;const {data:_0x458a56}=_0x571bda;if(null!=_0x458a56){if(_0x193f('0x1c')==_0x458a56['commandName']){const _0xa5c7dd=_0x458a56[_0x193f('0xc')][0x0]['value'];if(_0xa5c7dd){const _0x5eaf15=_0x169a77(this[_0x193f('0x4')]['plugins'][_0x193f('0x16')](_0x193f('0x8'))[_0x193f('0x23')](this[_0x193f('0x4')][_0x193f('0x12')][_0x193f('0x16')]('fontSize.options'))[_0x193f('0x7')](_0x298a35=>_0x298a35[_0x193f('0x3')]==_0xa5c7dd)['title'])[_0x193f('0x17')]();return{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,_0x193f('0x11'),_0x5eaf15)};}return{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x458a56[_0x193f('0xe')]){const _0x396458=_0x458a56[_0x193f('0xc')][0x0][_0x193f('0x1')];return _0x396458?{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,_0x193f('0x5'),_0x396458)}:{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,_0x193f('0x9'))};}if(_0x193f('0x20')==_0x458a56[_0x193f('0xe')]){const _0x3d6e18=_0x458a56[_0x193f('0xc')][0x0][_0x193f('0x1')];if(_0x3d6e18){const _0x257085=_0x14a049(this[_0x193f('0x4')][_0x193f('0x12')][_0x193f('0x16')]('fontColor.colors'))[_0x193f('0x7')](_0x5e8d1b=>_0x5e8d1b[_0x193f('0x3')]==_0x3d6e18);let _0x4c4ad8=_0x3d6e18,_0x117d05='';return _0x257085&&(_0x4c4ad8=_0x257085[_0x193f('0x1b')],_0x117d05=_0x169a77(_0x4c4ad8)['toLowerCase']()),{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,_0x193f('0x1e'),_0x117d05)['trim'](),'color':{'value':_0x3d6e18,'title':_0x117d05||_0x4c4ad8}};}return{'type':'format','content':_0xaf6b12(_0x31991b,'*Reset\x20font\x20color*')};}if(_0x193f('0x18')==_0x458a56[_0x193f('0xe')]){const _0x4170e3=_0x458a56[_0x193f('0xc')][0x0][_0x193f('0x1')];if(_0x4170e3){const _0x10fdfe=_0x14a049(this[_0x193f('0x4')][_0x193f('0x12')][_0x193f('0x16')]('fontBackgroundColor.colors'))[_0x193f('0x7')](_0x5e06ac=>_0x5e06ac['model']==_0x4170e3);let _0x99fe8b=_0x4170e3,_0x281b6a='';return _0x10fdfe&&(_0x99fe8b=_0x10fdfe[_0x193f('0x1b')],_0x281b6a=_0x169a77(_0x99fe8b)[_0x193f('0x17')]()),{'type':_0x193f('0x21'),'content':_0xaf6b12(_0x31991b,_0x193f('0x22'),_0x281b6a)[_0x193f('0x24')](),'color':{'value':_0x4170e3,'title':_0x281b6a||_0x99fe8b}};}return{'type':'format','content':_0xaf6b12(_0x31991b,'*Reset\x20font\x20background\x20color*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3878=['get','slice','join','boolean','*Set\x20format\x20to:*\x20%0','*Remove\x20all\x20formatting*','commandParams','registerDescriptionCallback','editor','locale','type','fontColor.colors','toUpperCase','fontColor','pasteFormat','charAt','label','_registerLegacyDescription','model','length','fontSize','format','commands','entries','TrackChangesEditing','plugins','afterInit','commandName','find','push','formatInline','normalizeSizeOptions','toLowerCase','fontBackgroundColor','split','FontSize','copyFormat','formatBlock','config'];(function(_0xbf09bc,_0x3878b9){const _0x10555f=function(_0x24d394){while(--_0x24d394){_0xbf09bc['push'](_0xbf09bc['shift']());}};_0x10555f(++_0x3878b9);}(_0x3878,0x96));const _0x1055=function(_0xbf09bc,_0x3878b9){_0xbf09bc=_0xbf09bc-0x0;let _0x10555f=_0x3878[_0xbf09bc];return _0x10555f;};import{Plugin as _0x3ae81b}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x12627f}from'ckeditor5/src/ui.js';import{getTranslation as _0x1ccafe}from'../utils/common-translations.js';export default class X extends _0x3ae81b{[_0x1055('0x20')](){const _0x13b02e=this[_0x1055('0xe')],_0x52cc2a=_0x13b02e[_0x1055('0x1f')][_0x1055('0x6')](_0x1055('0x1e')),_0xdb1ffc=_0x13b02e[_0x1055('0x1c')]['get'](_0x1055('0x3')),_0xf71d89=_0x13b02e['commands'][_0x1055('0x6')](_0x1055('0x14'));_0xdb1ffc&&_0xf71d89&&(_0x52cc2a['_enableDefaultAttributesIntegration'](_0x1055('0x14')),_0x52cc2a['enableCommand'](_0x1055('0x3')),this[_0x1055('0x17')]());}[_0x1055('0x17')](){const _0x3c7ead=this[_0x1055('0xe')],_0xd93a91=_0x3c7ead[_0x1055('0xf')];_0x3c7ead[_0x1055('0x1f')][_0x1055('0x6')](_0x1055('0x1e'))['_descriptionFactory'][_0x1055('0xd')](_0x388c86=>{if(_0x1055('0x4')!=_0x388c86['type']&&_0x1055('0x24')!=_0x388c86[_0x1055('0x10')])return;const {data:_0x38d784}=_0x388c86;if(_0x38d784&&_0x1055('0x14')===_0x38d784[_0x1055('0x21')]){const _0x25cd5f=[],_0x4ed344=_0x38d784[_0x1055('0xc')][0x0];for(const [_0x547989,_0x5466bc]of Object[_0x1055('0x1d')](_0x4ed344))_0x25cd5f[_0x1055('0x23')](so(_0x3c7ead,_0x547989,_0x5466bc));return _0x25cd5f[_0x1055('0x19')]?{'type':_0x1055('0x1b'),'content':_0x1ccafe(_0xd93a91,_0x1055('0xa'),_0x25cd5f[_0x1055('0x8')](',\x20'))}:{'type':_0x1055('0x1b'),'content':_0x1ccafe(_0xd93a91,_0x1055('0xb'))};}});}}function so(_0x1a86a5,_0xb7c937,_0x9d7bf1){const _0x51c203=_0x1a86a5['locale']['t'],_0x714e94=_0xb7c937[_0x1055('0x1')](/(?=[A-Z])/)[_0x1055('0x8')]('\x20'),_0x550ff6=_0x51c203(_0x714e94[_0x1055('0x15')](0x0)[_0x1055('0x12')]()+_0x714e94[_0x1055('0x7')](0x1))[_0x1055('0x26')]();if(_0x1055('0x9')==typeof _0x9d7bf1)return _0x550ff6;if(_0x1055('0x13')===_0xb7c937||_0x1055('0x0')===_0xb7c937){const _0x31a48f=_0x12627f(_0x1a86a5['config']['get'](_0x1055('0x11')))[_0x1055('0x22')](_0x4a36b9=>_0x4a36b9[_0x1055('0x18')]==_0x9d7bf1);return _0x550ff6+'\x20('+(_0x31a48f?_0x51c203(_0x31a48f[_0x1055('0x16')])[_0x1055('0x26')]():_0x9d7bf1)+')';}if(_0x1055('0x1a')===_0xb7c937&&isNaN(parseFloat(_0x9d7bf1))){const _0x3e3acc=_0x1a86a5[_0x1055('0x1f')][_0x1055('0x6')](_0x1055('0x2'))[_0x1055('0x25')](_0x1a86a5[_0x1055('0x5')]['get']('fontSize.options'))[_0x1055('0x22')](_0xe14c91=>_0xe14c91[_0x1055('0x18')]==_0x9d7bf1);return _0x550ff6+'\x20('+(_0x3e3acc?_0x51c203(_0x3e3acc['title'])['toLowerCase']():_0x9d7bf1)+')';}return _0x550ff6+'\x20('+_0x9d7bf1+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44a4=['format','heading','get','find','editor','*Change\x20to:*\x20%0','model','plugins','match','_descriptionFactory','commandName','TrackChangesEditing','heading.options','ELEMENT_HEADING_CUSTOM','commandParams','_headingOptions','view','formatBlock','afterInit','config','_registerLegacyDescription','paragraph','name','registerDescriptionCallback','ELEMENT_HEADING','has','title'];(function(_0x4b7b5a,_0x44a4ce){const _0x211fcc=function(_0x41f8d3){while(--_0x41f8d3){_0x4b7b5a['push'](_0x4b7b5a['shift']());}};_0x211fcc(++_0x44a4ce);}(_0x44a4,0x1a1));const _0x211f=function(_0x4b7b5a,_0x44a4ce){_0x4b7b5a=_0x4b7b5a-0x0;let _0x211fcc=_0x44a4[_0x4b7b5a];return _0x211fcc;};import{Plugin as _0x142753}from'ckeditor5/src/core.js';import{getTranslation as _0x389a00}from'../utils/common-translations.js';export default class Y extends _0x142753{[_0x211f('0x6')](){const _0xc51d1c=this['editor'];if(!_0xc51d1c[_0x211f('0x16')][_0x211f('0xd')]('HeadingEditing'))return;this[_0x211f('0x3')]=_0xc51d1c[_0x211f('0x7')]['get'](_0x211f('0x0'));const _0x5bfde9=_0xc51d1c['locale'],_0x1d4772=_0xc51d1c[_0x211f('0x16')][_0x211f('0x11')](_0x211f('0x1a'));_0x1d4772['_enableDefaultAttributesIntegration'](_0x211f('0x10'));for(const _0x539c5b of this[_0x211f('0x3')])_0x211f('0x9')!=_0x539c5b['model']&&_0x1d4772[_0x211f('0x18')]['registerElementLabel'](_0x539c5b['model'],_0x2ec748=>{const _0x3ee362=this['_getHeadingLevel'](_0x539c5b[_0x211f('0x15')]);return null!==_0x3ee362?_0x1df74e(_0x2ec748,_0x3ee362):_0x5931f7(_0x2ec748,_0x539c5b[_0x211f('0xe')]);});function _0x1df74e(_0x2a866b,_0x3b5d38){return _0x389a00(_0x5bfde9,_0x211f('0xc'),[_0x2a866b,_0x3b5d38]);}function _0x5931f7(_0x430eb0,_0x3242cc){return _0x389a00(_0x5bfde9,_0x211f('0x1'),[_0x430eb0,_0x3242cc]);}this[_0x211f('0x8')]();}[_0x211f('0x8')](){const _0x1bd79f=this[_0x211f('0x13')],_0x2f5304=_0x1bd79f['locale'];function _0x27096b(_0x387bbd,_0x4db679){return _0x389a00(_0x2f5304,_0x211f('0x1'),[_0x387bbd,_0x4db679]);}_0x1bd79f['plugins']['get'](_0x211f('0x1a'))['_descriptionFactory'][_0x211f('0xb')](_0x53b16e=>{if(_0x211f('0x5')!=_0x53b16e['type'])return;const {data:_0x6bf3fc}=_0x53b16e;if(_0x6bf3fc&&'heading'==_0x6bf3fc[_0x211f('0x19')]){const _0x471fbe=_0x6bf3fc[_0x211f('0x2')][0x0]['value'],_0xac2326=this['_getHeadingLevel'](_0x471fbe);if(null!==_0xac2326)return{'type':_0x211f('0xf'),'content':_0x389a00(_0x2f5304,_0x211f('0x14'),(_0x3a08cc=0x1,_0x232f76=_0xac2326,_0x389a00(_0x2f5304,_0x211f('0xc'),[_0x3a08cc,_0x232f76])))};const _0x10980c=this['_headingOptions'][_0x211f('0x12')](_0x5bd5bb=>_0x5bd5bb[_0x211f('0x15')]===_0x471fbe)[_0x211f('0xe')];return{'type':'format','content':_0x389a00(_0x2f5304,_0x211f('0x14'),_0x27096b(0x1,_0x10980c))};}var _0x3a08cc,_0x232f76;});}['_getHeadingLevel'](_0x4e3c01){var _0x1285b2,_0xaa846c;const _0x2bd749=_0x4e3c01[_0x211f('0x17')](/^heading(\d+)/);if(_0x2bd749)return _0x2bd749[0x1];const _0x981a2=null===(_0x1285b2=this[_0x211f('0x3')])||void 0x0===_0x1285b2?void 0x0:_0x1285b2[_0x211f('0x12')](_0x4f4c5e=>_0x4f4c5e[_0x211f('0x15')]==_0x4e3c01);if(_0x981a2&&_0x981a2['view']){const _0x1f2914=_0x981a2[_0x211f('0x4')],_0xf05150=(null!==(_0xaa846c=_0x1f2914[_0x211f('0xa')])&&void 0x0!==_0xaa846c?_0xaa846c:_0x1f2914)[_0x211f('0x17')](/^h(\d+)/);if(_0xf05150)return _0xf05150[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x407a=['get','registerDescriptionCallback','editor','color','title','config','_enableDefaultAttributesIntegration','afterInit','has','TrackChangesEditing','format','find','FORMAT_HIGHLIGHT','locale','model','highlight','_descriptionFactory','toLowerCase','formatInline','_registerLegacyDescription','plugins','commandParams','registerAttributeLabel','highlight.options'];(function(_0x2d062a,_0x407abf){const _0x518529=function(_0x45571d){while(--_0x45571d){_0x2d062a['push'](_0x2d062a['shift']());}};_0x518529(++_0x407abf);}(_0x407a,0x121));const _0x5185=function(_0x2d062a,_0x407abf){_0x2d062a=_0x2d062a-0x0;let _0x518529=_0x407a[_0x2d062a];return _0x518529;};import{Plugin as _0x4f3b1f}from'ckeditor5/src/core.js';import{getTranslation as _0x16e655}from'../utils/common-translations.js';export default class Z extends _0x4f3b1f{[_0x5185('0x6')](){const _0x44a76b=this[_0x5185('0x1')];if(!_0x44a76b[_0x5185('0x13')][_0x5185('0x7')]('HighlightEditing'))return;const _0x45a127=_0x44a76b[_0x5185('0x13')]['get'](_0x5185('0x8')),_0x4d573e=_0x44a76b[_0x5185('0xc')];_0x45a127[_0x5185('0x5')](_0x5185('0xe'),[_0x5185('0xe')]),_0x45a127[_0x5185('0xf')][_0x5185('0x15')](_0x5185('0xe'),_0x16e655(_0x4d573e,'FORMAT_HIGHLIGHT')),this[_0x5185('0x12')]();}['_registerLegacyDescription'](){const _0x4e74bb=this[_0x5185('0x1')],_0x1b5ff5=_0x4e74bb[_0x5185('0xc')];_0x4e74bb[_0x5185('0x13')][_0x5185('0x17')](_0x5185('0x8'))[_0x5185('0xf')][_0x5185('0x0')](_0x306245=>{if(_0x5185('0x11')!=_0x306245['type'])return;const {data:_0x2695dc}=_0x306245;if(_0x2695dc&&_0x5185('0xe')==_0x2695dc['commandName']){const _0x4f91d1=_0x1b5ff5['t'],_0x20d421=_0x2695dc[_0x5185('0x14')][0x0]['value'];if(_0x20d421){const _0x3955f8=_0x4e74bb[_0x5185('0x4')]['get'](_0x5185('0x16'))[_0x5185('0xa')](_0x15e750=>_0x15e750[_0x5185('0xd')]==_0x20d421),_0x1edc75=_0x4f91d1(_0x3955f8[_0x5185('0x3')])[_0x5185('0x10')]();return{'type':_0x5185('0x9'),'content':_0x16e655(_0x1b5ff5,'*Set\x20highlight:*\x20%0',_0x1edc75),'color':{'value':_0x3955f8[_0x5185('0x2')],'title':_0x3955f8[_0x5185('0x3')]}};}return{'type':'format','content':_0x16e655(_0x1b5ff5,'*Remove\x20highlight*',_0x16e655(_0x1b5ff5,_0x5185('0xb')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cbf=['get','insert','dataDowncast','plugins','locale','for','enableCommand','has','addClass','editor','createEmptyElement','ck-horizontal-line','createContainerElement','HorizontalLineEditing','_descriptionFactory','div','afterInit','horizontalLine'];(function(_0x2cd735,_0x2cbfc0){const _0x23a537=function(_0x25f213){while(--_0x25f213){_0x2cd735['push'](_0x2cd735['shift']());}};_0x23a537(++_0x2cbfc0);}(_0x2cbf,0x120));const _0x23a5=function(_0x2cd735,_0x2cbfc0){_0x2cd735=_0x2cd735-0x0;let _0x23a537=_0x2cbf[_0x2cd735];return _0x23a537;};import{Plugin as _0x77e82a}from'ckeditor5/src/core.js';import{getTranslation as _0x420b70}from'../utils/common-translations.js';export default class tt extends _0x77e82a{[_0x23a5('0x10')](){const _0x1d581c=this[_0x23a5('0x9')];if(!_0x1d581c[_0x23a5('0x3')][_0x23a5('0x7')](_0x23a5('0xd')))return;_0x1d581c[_0x23a5('0x3')]['get']('TrackChangesEditing')[_0x23a5('0x6')](_0x23a5('0x11'));const _0x2ef294=_0x1d581c[_0x23a5('0x3')][_0x23a5('0x0')]('TrackChangesEditing'),_0x334ea4=_0x1d581c[_0x23a5('0x4')];_0x2ef294[_0x23a5('0xe')]['registerElementLabel']('horizontalLine',_0x3b9aa9=>_0x420b70(_0x334ea4,'ELEMENT_HORIZONTAL_LINE',_0x3b9aa9)),_0x1d581c['conversion'][_0x23a5('0x5')](_0x23a5('0x2'))['elementToStructure']({'model':_0x23a5('0x11'),'view':(_0x1f8a23,{writer:_0x3874b8,options:_0x5953db})=>{if(!_0x5953db['showSuggestionHighlights'])return null;const _0x245ad3=_0x3874b8[_0x23a5('0xc')](_0x23a5('0xf')),_0x2500fa=_0x3874b8[_0x23a5('0xa')]('hr');return _0x3874b8[_0x23a5('0x8')](_0x23a5('0xb'),_0x245ad3),_0x3874b8[_0x23a5('0x1')](_0x3874b8['createPositionAt'](_0x245ad3,0x0),_0x2500fa),_0x245ad3;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5e=['rawHtml','htmlEmbed','_enableDefaultAttributesIntegration','nodeAfter','_registerLegacyDescription','registerElementLabel','plugins','value','formatBlock','commandName','ELEMENT_HTML_EMBED','start','locale','_descriptionFactory','key','afterInit','attribute','TrackChangesEditing','get','*Change\x20%0\x20content*','getFirstRange','type'];(function(_0x32d389,_0x2b5ea4){const _0x572c1e=function(_0x1775e4){while(--_0x1775e4){_0x32d389['push'](_0x32d389['shift']());}};_0x572c1e(++_0x2b5ea4);}(_0x2b5e,0x139));const _0x572c=function(_0x32d389,_0x2b5ea4){_0x32d389=_0x32d389-0x0;let _0x572c1e=_0x2b5e[_0x32d389];return _0x572c1e;};import{Plugin as _0x91364}from'ckeditor5/src/core.js';import{getTranslation as _0x2f2e0f}from'../utils/common-translations.js';export default class it extends _0x91364{[_0x572c('0xa')](){const _0x1d018e=this['editor'];if(!_0x1d018e[_0x572c('0x1')]['has']('HtmlEmbed'))return;const _0x5b7988=_0x1d018e['plugins'][_0x572c('0xd')]('TrackChangesEditing'),_0x1a5bbb=_0x1d018e[_0x572c('0x7')];_0x5b7988[_0x572c('0x8')][_0x572c('0x0')](_0x572c('0x11'),_0x5b00ee=>_0x2f2e0f(_0x1a5bbb,_0x572c('0x5'),_0x5b00ee)),_0x5b7988[_0x572c('0x13')](_0x572c('0x12'),[],[_0x572c('0x2')]),_0x5b7988[_0x572c('0x8')]['registerDescriptionCallback'](_0x3a3a67=>{if(_0x572c('0xb')!=_0x3a3a67[_0x572c('0x10')])return;const {data:_0x2a83bf}=_0x3a3a67;if(_0x2a83bf&&_0x572c('0x2')==_0x2a83bf[_0x572c('0x9')]&&_0x3a3a67[_0x572c('0xf')]()[_0x572c('0x6')][_0x572c('0x14')]['is']('element','rawHtml')){const _0x13499c=_0x2f2e0f(_0x1a5bbb,_0x572c('0x5'));return{'type':'format','content':_0x2f2e0f(_0x1a5bbb,_0x572c('0xe'),_0x13499c)};}}),this[_0x572c('0x15')]();}[_0x572c('0x15')](){const _0x55ad76=this['editor'],_0x19667a=_0x55ad76[_0x572c('0x7')];_0x55ad76['plugins'][_0x572c('0xd')](_0x572c('0xc'))['_descriptionFactory']['registerDescriptionCallback'](_0x9c9b86=>{if(_0x572c('0x3')!=_0x9c9b86['type'])return;const {data:_0x3564a9}=_0x9c9b86;if(_0x3564a9&&_0x572c('0x12')==_0x3564a9[_0x572c('0x4')]){const _0x435f43=_0x2f2e0f(_0x19667a,_0x572c('0x5'));return{'type':'format','content':_0x2f2e0f(_0x19667a,_0x572c('0xe'),_0x435f43)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e4a=['get','getClosestSelectedImageElement','resizeImage','resizedWidth','imageTypeBlock','filter','createRangeOn','convertInlineImageToBlock','selection','editor','commandParams','discard','detach','markInsertion','fromPosition','toNext','width','forceDefaultExecution','deletion','_enableDefaultAttributesIntegration','*Remove\x20image\x20text\x20alternative*','formatInline','addObject','plugins','isIntersecting','formatBlock','convertBlockImageToInline','schema','document','registerCustomCallback','registerElementLabel','toPrevious','uploadImage','FORMAT_IMAGE_SIZE','registerDescriptionCallback','Inline\x20image\x20to\x20block\x20image','isCollapsed','_descriptionFactory','isEqual','type','backward','ImageCaptionEditing','ELEMENT_INLINE_IMAGE','ImageEditing','locale','start','accept','getNearestSelectionRange','caption','findIndex','imageCaption','change','ImageUtils','subType','length','find','isOwn','ImageResize','TrackChangesEditing','markDeletion','has','newValue','getCaptionFromImageModelElement','imageInline','registerAttributeLabel','getSuggestionCallback','format','ImageBlockEditing','end','imageTypeInline','attribute','ELEMENT_CAPTION','_findSuggestions','isBefore','ImageInlineEditing','alt','insertion','*Set\x20image\x20width:*\x20%0','chain','createRange','markBlockFormat','enableCommand','element','afterInit','join','imageTextAlternative','model','key','_registerLegacyDescription','*Set\x20image\x20text\x20alternative:*\x20%0','imageStylePreApply','ImageTextAlternativeEditing','_suggestionFactory'];(function(_0x12c15a,_0x4e4a14){const _0x10537f=function(_0xe8dc91){while(--_0xe8dc91){_0x12c15a['push'](_0x12c15a['shift']());}};_0x10537f(++_0x4e4a14);}(_0x4e4a,0xb2));const _0x1053=function(_0x12c15a,_0x4e4a14){_0x12c15a=_0x12c15a-0x0;let _0x10537f=_0x4e4a[_0x12c15a];return _0x10537f;};import{Plugin as _0x208319}from'ckeditor5/src/core.js';import{LivePosition as _0x455b6e}from'ckeditor5/src/engine.js';import{getTranslation as _0x2c464d}from'../utils/common-translations.js';export default class et extends _0x208319{[_0x1053('0x5b')](){const _0x46d95f=this[_0x1053('0x11')];if(!_0x46d95f[_0x1053('0x1f')][_0x1053('0x44')](_0x1053('0x33')))return;const _0x520360=_0x46d95f[_0x1053('0x1f')][_0x1053('0x8')](_0x1053('0x42')),_0x18661a=_0x46d95f['plugins']['get'](_0x1053('0x3c')),_0x20f5b6=_0x46d95f[_0x1053('0x34')];_0x520360[_0x1053('0x59')]('insertImage'),_0x520360[_0x1053('0x2d')][_0x1053('0x26')]('imageBlock',_0x4ca3b1=>_0x2c464d(_0x20f5b6,'ELEMENT_IMAGE',_0x4ca3b1)),_0x520360[_0x1053('0x2d')]['registerElementLabel'](_0x1053('0x47'),_0x3d8276=>_0x2c464d(_0x20f5b6,_0x1053('0x32'),_0x3d8276)),_0x520360[_0x1053('0x2d')][_0x1053('0x26')](_0x1053('0x38'),()=>_0x2c464d(_0x20f5b6,_0x1053('0x4f'))),_0x46d95f[_0x1053('0x1f')][_0x1053('0x44')]('ImageUploadEditing')&&_0x520360['enableCommand'](_0x1053('0x28')),_0x46d95f['plugins']['has'](_0x1053('0x4b'))&&_0x46d95f[_0x1053('0x1f')][_0x1053('0x44')](_0x1053('0x52'))&&(_0x520360[_0x1053('0x59')](_0x1053('0x4d'),(_0x645665,_0x4cd537)=>{const _0xcd71b2=_0x18661a['getClosestSelectedImageElement'](_0x46d95f[_0x1053('0x1')][_0x1053('0x24')][_0x1053('0x10')]);_0x46d95f[_0x1053('0x1')]['change'](()=>{_0x520360[_0x1053('0x58')](_0xcd71b2,{'commandName':_0x1053('0x4d'),'commandParams':[_0x4cd537]},[],_0x1053('0x22'));});}),_0x520360['enableCommand'](_0x1053('0xc'),(_0x32d0f3,_0x1fd394)=>{_0x46d95f[_0x1053('0x1')][_0x1053('0x3b')](_0xab95a0=>{let _0x47c308=_0x18661a[_0x1053('0x9')](_0x46d95f[_0x1053('0x1')]['document'][_0x1053('0x10')]),_0x58a306=_0xab95a0[_0x1053('0xe')](_0x47c308);const _0xb8c9e8=_0x455b6e['fromPosition'](_0x58a306[_0x1053('0x35')],_0x1053('0x27')),_0x12fde=_0x455b6e[_0x1053('0x16')](_0x58a306[_0x1053('0x4c')],_0x1053('0x17'));_0x520360[_0x1053('0x19')](()=>_0x32d0f3(_0x1fd394)),_0x47c308=_0x18661a[_0x1053('0x9')](_0x46d95f[_0x1053('0x1')]['document'][_0x1053('0x10')]),_0x58a306=_0xab95a0[_0x1053('0xe')](_0x47c308);const _0x1a16eb=_0xab95a0['createRange'](_0xb8c9e8,_0x12fde);_0xb8c9e8[_0x1053('0x14')](),_0x12fde[_0x1053('0x14')](),_0x520360[_0x1053('0x58')](_0x47c308,{'commandName':_0x1053('0x4d'),'commandParams':[_0x1fd394]},[],_0x1053('0xf')),_0x1a16eb[_0x1053('0x35')][_0x1053('0x51')](_0x58a306['start'])&&_0x520360[_0x1053('0x15')](_0xab95a0['createRange'](_0x1a16eb['start'],_0x58a306[_0x1053('0x35')]),_0x1053('0xf')),_0x58a306[_0x1053('0x4c')][_0x1053('0x51')](_0x1a16eb[_0x1053('0x4c')])&&_0x520360[_0x1053('0x15')](_0xab95a0[_0x1053('0x57')](_0x58a306[_0x1053('0x4c')],_0x1a16eb[_0x1053('0x4c')]),_0x1053('0xf'));});}),_0x520360[_0x1053('0x7')][_0x1053('0x25')](_0x1053('0x21'),_0x1053('0xf'),_0x1053('0x5c'),()=>!0x1),_0x520360[_0x1053('0x7')]['registerCustomCallback'](_0x1053('0x21'),_0x1053('0xf'),_0x1053('0x36'),()=>!0x1),_0x520360[_0x1053('0x7')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x1053('0x13'),_0x520360[_0x1053('0x7')][_0x1053('0x49')](_0x1053('0x21'),'',_0x1053('0x36'))),_0x520360[_0x1053('0x7')][_0x1053('0x25')](_0x1053('0x54'),'convertInlineImageToBlock',_0x1053('0x5c'),()=>!0x1),_0x520360[_0x1053('0x7')][_0x1053('0x25')](_0x1053('0x54'),_0x1053('0xf'),_0x1053('0x13'),([_0x1e4b6d])=>{const _0x4f7af0=_0x520360[_0x1053('0x7')][_0x1053('0x49')](_0x1053('0x54'),'',_0x1053('0x13'));let _0x461f8f=_0x1e4b6d[_0x1053('0x35')],_0x56eabb=_0x1e4b6d[_0x1053('0x4c')];const _0x16377=_0x46d95f['model'][_0x1053('0x23')][_0x1053('0x37')](_0x461f8f,_0x1053('0x30')),_0xe9e493=_0x46d95f[_0x1053('0x1')][_0x1053('0x23')][_0x1053('0x37')](_0x56eabb,'forward');_0x16377[_0x1053('0x2c')]&&(_0x461f8f=_0x16377['start']),_0xe9e493[_0x1053('0x2c')]&&(_0x56eabb=_0xe9e493[_0x1053('0x4c')]),_0x4f7af0([_0x46d95f[_0x1053('0x1')][_0x1053('0x57')](_0x461f8f,_0x56eabb)]);}),_0x520360['_suggestionFactory'][_0x1053('0x25')](_0x1053('0x21'),_0x1053('0xf'),'chain',_0xeb8496),_0x520360['_suggestionFactory'][_0x1053('0x25')](_0x1053('0x54'),_0x1053('0xf'),_0x1053('0x56'),_0xeb8496)),_0x46d95f[_0x1053('0x1f')]['has'](_0x1053('0x31'))&&(_0x520360[_0x1053('0x59')]('toggleImageCaption',(_0x3bace6,_0x1cd8ad)=>{const _0x4e641c=_0x46d95f[_0x1053('0x1f')]['get']('ImageCaptionUtils');let _0x11b4f1=_0x18661a[_0x1053('0x9')](_0x46d95f[_0x1053('0x1')][_0x1053('0x24')][_0x1053('0x10')]),_0x48a0d9=_0x4e641c['getCaptionFromImageModelElement'](_0x11b4f1);_0x46d95f[_0x1053('0x1')]['change'](()=>{if(_0x48a0d9)return void _0x520360[_0x1053('0x43')](_0x46d95f[_0x1053('0x1')][_0x1053('0xe')](_0x48a0d9));const _0x3ebde3=_0x18661a['isBlockImage'](_0x11b4f1);_0x3bace6(_0x1cd8ad),_0x11b4f1=_0x18661a[_0x1053('0x9')](_0x46d95f[_0x1053('0x1')][_0x1053('0x24')]['selection']),_0x48a0d9=_0x4e641c[_0x1053('0x46')](_0x11b4f1),_0x520360[_0x1053('0x15')](_0x46d95f['model']['createRangeOn'](_0x48a0d9),_0x3ebde3?null:_0x1053('0x3a'));});}),_0x520360['_suggestionFactory']['registerCustomCallback'](_0x1053('0x54'),_0x1053('0x3a'),'chain',_0xeb8496));const _0x2e2c4d=[{'type':_0x1053('0x21'),'subType':_0x1053('0x5')},{'type':_0x1053('0x54'),'subType':'imageCaption'},{'type':'formatBlock','subType':_0x1053('0xf')},{'type':'insertion','subType':_0x1053('0xf')}];function _0xe2a4a5(_0x5b93c4,_0x5f55be){const _0x17f7d2=_0x2e2c4d[_0x1053('0x39')](({type:_0x5ee042,subType:_0x1f5eb8})=>_0x5b93c4['type']==_0x5ee042&&_0x5b93c4['subType']==_0x1f5eb8),_0x5f015e=_0x2e2c4d[_0x1053('0x39')](({type:_0x5d1b38,subType:_0x2a79c9})=>_0x5f55be[_0x1053('0x2f')]==_0x5d1b38&&_0x5f55be[_0x1053('0x3d')]==_0x2a79c9);if(_0x17f7d2<0x0||_0x5f015e<0x0)return!0x1;const _0x3446aa=_0x5b93c4['getFirstRange'](),_0x143189=_0x5f55be['getFirstRange']();if((0x0==_0x17f7d2||0x1==_0x17f7d2)&&0x2==_0x5f015e&&_0x3446aa[_0x1053('0x20')](_0x143189))return!0x0;if(0x2==_0x17f7d2&&0x3==_0x5f015e){const _0x412a7a=_0x520360[_0x1053('0x50')](_0x3446aa,'insertion')[_0x1053('0xd')](({suggestion:_0x33d25a,meta:_0x473a93})=>_0x473a93[_0x1053('0x40')]&&'convertInlineImageToBlock'==_0x33d25a[_0x1053('0x3d')]);if(_0x412a7a[_0x1053('0x3e')]>0x1&&_0x143189['end'][_0x1053('0x2e')](_0x3446aa[_0x1053('0x35')]))return!0x0;if(0x1==_0x412a7a['length']&&(_0x3446aa[_0x1053('0x35')][_0x1053('0x2e')](_0x143189[_0x1053('0x4c')])||_0x3446aa[_0x1053('0x4c')][_0x1053('0x2e')](_0x143189[_0x1053('0x35')])))return!0x0;}if(0x3==_0x17f7d2&&0x3==_0x5f015e&&_0x3446aa[_0x1053('0x35')][_0x1053('0x51')](_0x143189[_0x1053('0x35')])){const _0x37b02e=_0x3446aa[_0x1053('0x4c')]['nodeAfter'],_0x3295ba=_0x143189[_0x1053('0x35')]['nodeBefore'];return _0x18661a['isBlockImage'](_0x37b02e)&&_0x37b02e===_0x3295ba;}return!0x1;}function _0xeb8496(_0x1b9dc3,_0x229f39){return _0xe2a4a5(_0x1b9dc3,_0x229f39)?[_0x1b9dc3,_0x229f39]:_0xe2a4a5(_0x229f39,_0x1b9dc3)?[_0x229f39,_0x1b9dc3]:null;}_0x46d95f[_0x1053('0x1f')][_0x1053('0x44')](_0x1053('0x41'))&&(_0x520360[_0x1053('0x1b')](_0x1053('0xa'),[],[_0x1053('0xb')]),_0x520360['_descriptionFactory'][_0x1053('0x48')](_0x1053('0xb'),_0x2c464d(_0x20f5b6,_0x1053('0x29')))),_0x46d95f['plugins'][_0x1053('0x44')](_0x1053('0x6'))&&_0x520360[_0x1053('0x1b')](_0x1053('0x0'),[],[_0x1053('0x53')]),_0x520360[_0x1053('0x2d')][_0x1053('0x2a')](_0x5e11b0=>{if(!!_0x2e2c4d[_0x1053('0x3f')](({type:_0x2289cc,subType:_0x5c7065})=>_0x5e11b0[_0x1053('0x2f')]==_0x2289cc&&_0x5e11b0[_0x1053('0x3d')]==_0x5c7065))return _0x5e11b0['previous']?{}:void 0x0;}),_0x520360[_0x1053('0x2d')][_0x1053('0x2a')](_0x15d4ea=>{if(_0x1053('0x54')==_0x15d4ea[_0x1053('0x2f')]||_0x1053('0x1a')==_0x15d4ea[_0x1053('0x2f')]){const _0x27722c=_0x15d4ea['getContainedElement']();if(_0x27722c&&_0x27722c['is'](_0x1053('0x5a'),_0x1053('0x38')))return{'type':'insertion'==_0x15d4ea[_0x1053('0x2f')]?_0x1053('0x1e'):'removeObject','element':_0x27722c,'quantity':0x1};}}),_0x520360['_descriptionFactory']['registerDescriptionCallback'](_0x3a9579=>_0x1053('0x21')==_0x3a9579[_0x1053('0x2f')]&&_0x1053('0xf')==_0x3a9579[_0x1053('0x3d')]?{'type':_0x1053('0x4a'),'content':_0x1053('0x2b')}:_0x1053('0x21')==_0x3a9579['type']&&_0x1053('0x22')==_0x3a9579[_0x1053('0x3d')]?{'type':_0x1053('0x4a'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x520360[_0x1053('0x2d')]['registerDescriptionCallback'](_0x76b2ea=>{if(_0x1053('0x4e')!=_0x76b2ea[_0x1053('0x2f')])return;const {data:_0x1de60a}=_0x76b2ea;if(!_0x1de60a||'alt'!=_0x1de60a[_0x1053('0x2')])return;const _0x1c3f52=_0x1de60a[_0x1053('0x45')];return _0x1c3f52?{'type':_0x1053('0x4a'),'content':_0x2c464d(_0x20f5b6,_0x1053('0x4'),'\x22'+_0x1c3f52+'\x22')}:{'type':'format','content':_0x2c464d(_0x20f5b6,_0x1053('0x1c'))};}),this[_0x1053('0x3')]();}[_0x1053('0x3')](){const _0x574dea=this['editor'],_0x139237=_0x574dea[_0x1053('0x34')];_0x574dea[_0x1053('0x1f')][_0x1053('0x8')]('TrackChangesEditing')['_descriptionFactory'][_0x1053('0x2a')](_0x552bfd=>{if('formatBlock'!=_0x552bfd[_0x1053('0x2f')]&&_0x1053('0x1d')!=_0x552bfd[_0x1053('0x2f')])return;const {data:_0x34aa07}=_0x552bfd;if(_0x34aa07){if(_0x1053('0x0')==_0x34aa07['commandName']){const _0x2cc1e2=_0x34aa07[_0x1053('0x12')][0x0][_0x1053('0x45')];return _0x2cc1e2?{'type':_0x1053('0x4a'),'content':_0x2c464d(_0x139237,_0x1053('0x4'),'\x22'+_0x2cc1e2+'\x22')}:{'type':_0x1053('0x4a'),'content':_0x2c464d(_0x139237,'*Remove\x20image\x20text\x20alternative*')};}if(_0x1053('0xa')==_0x34aa07['commandName']){const _0x266191=_0x34aa07[_0x1053('0x12')][0x0][_0x1053('0x18')];return _0x266191?{'type':_0x1053('0x4a'),'content':_0x2c464d(_0x139237,_0x1053('0x55'),_0x266191)}:{'type':_0x1053('0x4a'),'content':_0x2c464d(_0x139237,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x3b13=['fromPosition','find','previous','chain','ImageEditing','registerCustomCallback','insertImage','formatInline','length','_descriptionFactory','imageCaption','createRange','change','selection','markBlockFormat','discard','getNearestSelectionRange','nodeAfter','accept','getSuggestionCallback','isIntersecting','schema','ELEMENT_IMAGE','isEqual','getContainedElement','alt','removeObject','ImageInlineEditing','getFirstRange','format','toPrevious','imageTypeInline','element','getClosestSelectedImageElement','model','convertBlockImageToInline','get','plugins','convertInlineImageToBlock','_findSuggestions','backward','markInsertion','imageTextAlternative','isOwn','createRangeOn','imageStylePreApply','*Set\x20image\x20text\x20alternative:*\x20%0','has','registerDescriptionCallback','ImageUtils','markDeletion','join','ImageBlockEditing','detach','insertion','ImageCaptionEditing','Block\x20image\x20to\x20inline\x20image','imageBlock','document','commandParams','*Remove\x20image\x20text\x20alternative*','_registerLegacyDescription','type','enableCommand','formatBlock','afterInit','addObject','newValue','isBlockImage','getCaptionFromImageModelElement','isBefore','forward','forceDefaultExecution','start','filter','end','ImageCaptionUtils','caption','resizedWidth','toggleImageCaption','*Reset\x20image\x20width*','editor','registerElementLabel','deletion','_enableDefaultAttributesIntegration','locale','findIndex','ELEMENT_INLINE_IMAGE','imageInline','subType','_suggestionFactory','registerAttributeLabel','FORMAT_IMAGE_SIZE','TrackChangesEditing'];(function(_0x1ef80e,_0x3b1320){const _0x51384c=function(_0x5c82b7){while(--_0x5c82b7){_0x1ef80e['push'](_0x1ef80e['shift']());}};_0x51384c(++_0x3b1320);}(_0x3b13,0xe6));const _0x5138=function(_0x1ef80e,_0x3b1320){_0x1ef80e=_0x1ef80e-0x0;let _0x51384c=_0x3b13[_0x1ef80e];return _0x51384c;};import{Plugin as _0x46db78}from'ckeditor5/src/core.js';import{LivePosition as _0x479bd8}from'ckeditor5/src/engine.js';import{getTranslation as _0x5cce2b}from'../utils/common-translations.js';export default class et extends _0x46db78{[_0x5138('0x17')](){const _0x512197=this[_0x5138('0x27')];if(!_0x512197[_0x5138('0x59')]['has'](_0x5138('0x38')))return;const _0x50b379=_0x512197[_0x5138('0x59')][_0x5138('0x58')](_0x5138('0x33')),_0x16bc2c=_0x512197['plugins'][_0x5138('0x58')](_0x5138('0x7')),_0x504278=_0x512197[_0x5138('0x2b')];_0x50b379[_0x5138('0x15')](_0x5138('0x3a')),_0x50b379[_0x5138('0x3d')]['registerElementLabel'](_0x5138('0xf'),_0x33dfb6=>_0x5cce2b(_0x504278,_0x5138('0x4a'),_0x33dfb6)),_0x50b379[_0x5138('0x3d')]['registerElementLabel'](_0x5138('0x2e'),_0x50bb0c=>_0x5cce2b(_0x504278,_0x5138('0x2d'),_0x50bb0c)),_0x50b379[_0x5138('0x3d')][_0x5138('0x28')](_0x5138('0x23'),()=>_0x5cce2b(_0x504278,'ELEMENT_CAPTION')),_0x512197[_0x5138('0x59')]['has']('ImageUploadEditing')&&_0x50b379[_0x5138('0x15')]('uploadImage'),_0x512197[_0x5138('0x59')][_0x5138('0x5')](_0x5138('0xa'))&&_0x512197[_0x5138('0x59')][_0x5138('0x5')](_0x5138('0x4f'))&&(_0x50b379[_0x5138('0x15')](_0x5138('0x53'),(_0x490d30,_0x5526e9)=>{const _0x2ace97=_0x16bc2c[_0x5138('0x55')](_0x512197[_0x5138('0x56')][_0x5138('0x10')][_0x5138('0x41')]);_0x512197[_0x5138('0x56')][_0x5138('0x40')](()=>{_0x50b379[_0x5138('0x42')](_0x2ace97,{'commandName':_0x5138('0x53'),'commandParams':[_0x5526e9]},[],_0x5138('0x57'));});}),_0x50b379['enableCommand']('imageTypeBlock',(_0x1d2da4,_0xb02360)=>{_0x512197['model'][_0x5138('0x40')](_0x58e747=>{let _0x249961=_0x16bc2c[_0x5138('0x55')](_0x512197[_0x5138('0x56')][_0x5138('0x10')][_0x5138('0x41')]),_0x51e6ab=_0x58e747[_0x5138('0x2')](_0x249961);const _0xc75f59=_0x479bd8[_0x5138('0x34')](_0x51e6ab[_0x5138('0x1f')],_0x5138('0x52')),_0x3b7116=_0x479bd8[_0x5138('0x34')](_0x51e6ab[_0x5138('0x21')],'toNext');_0x50b379[_0x5138('0x1e')](()=>_0x1d2da4(_0xb02360)),_0x249961=_0x16bc2c[_0x5138('0x55')](_0x512197[_0x5138('0x56')][_0x5138('0x10')][_0x5138('0x41')]),_0x51e6ab=_0x58e747[_0x5138('0x2')](_0x249961);const _0x49fe3c=_0x58e747[_0x5138('0x3f')](_0xc75f59,_0x3b7116);_0xc75f59[_0x5138('0xb')](),_0x3b7116[_0x5138('0xb')](),_0x50b379[_0x5138('0x42')](_0x249961,{'commandName':_0x5138('0x53'),'commandParams':[_0xb02360]},[],_0x5138('0x5a')),_0x49fe3c[_0x5138('0x1f')][_0x5138('0x1c')](_0x51e6ab['start'])&&_0x50b379['markInsertion'](_0x58e747[_0x5138('0x3f')](_0x49fe3c['start'],_0x51e6ab[_0x5138('0x1f')]),_0x5138('0x5a')),_0x51e6ab['end'][_0x5138('0x1c')](_0x49fe3c[_0x5138('0x21')])&&_0x50b379[_0x5138('0x5d')](_0x58e747[_0x5138('0x3f')](_0x51e6ab[_0x5138('0x21')],_0x49fe3c[_0x5138('0x21')]),_0x5138('0x5a'));});}),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0x16'),_0x5138('0x5a'),_0x5138('0x9'),()=>!0x1),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0x16'),_0x5138('0x5a'),'accept',()=>!0x1),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0x16'),_0x5138('0x5a'),_0x5138('0x43'),_0x50b379[_0x5138('0x30')][_0x5138('0x47')]('formatBlock','',_0x5138('0x46'))),_0x50b379[_0x5138('0x30')]['registerCustomCallback'](_0x5138('0xc'),_0x5138('0x5a'),_0x5138('0x9'),()=>!0x1),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0xc'),'convertInlineImageToBlock',_0x5138('0x43'),([_0x4b8792])=>{const _0x2b1da4=_0x50b379[_0x5138('0x30')][_0x5138('0x47')](_0x5138('0xc'),'',_0x5138('0x43'));let _0x368413=_0x4b8792[_0x5138('0x1f')],_0xac0aa2=_0x4b8792[_0x5138('0x21')];const _0x302277=_0x512197['model']['schema'][_0x5138('0x44')](_0x368413,_0x5138('0x5c')),_0x587a29=_0x512197[_0x5138('0x56')][_0x5138('0x49')][_0x5138('0x44')](_0xac0aa2,_0x5138('0x1d'));_0x302277['isCollapsed']&&(_0x368413=_0x302277[_0x5138('0x1f')]),_0x587a29['isCollapsed']&&(_0xac0aa2=_0x587a29[_0x5138('0x21')]),_0x2b1da4([_0x512197[_0x5138('0x56')][_0x5138('0x3f')](_0x368413,_0xac0aa2)]);}),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0x16'),_0x5138('0x5a'),_0x5138('0x37'),_0x354da5),_0x50b379['_suggestionFactory'][_0x5138('0x39')](_0x5138('0xc'),'convertInlineImageToBlock','chain',_0x354da5)),_0x512197['plugins'][_0x5138('0x5')](_0x5138('0xd'))&&(_0x50b379[_0x5138('0x15')](_0x5138('0x25'),(_0x5316b7,_0x16dce8)=>{const _0x4d4b78=_0x512197['plugins']['get'](_0x5138('0x22'));let _0x35df8c=_0x16bc2c['getClosestSelectedImageElement'](_0x512197[_0x5138('0x56')][_0x5138('0x10')]['selection']),_0x141f8c=_0x4d4b78[_0x5138('0x1b')](_0x35df8c);_0x512197[_0x5138('0x56')][_0x5138('0x40')](()=>{if(_0x141f8c)return void _0x50b379[_0x5138('0x8')](_0x512197[_0x5138('0x56')][_0x5138('0x2')](_0x141f8c));const _0x13d226=_0x16bc2c[_0x5138('0x1a')](_0x35df8c);_0x5316b7(_0x16dce8),_0x35df8c=_0x16bc2c['getClosestSelectedImageElement'](_0x512197[_0x5138('0x56')]['document'][_0x5138('0x41')]),_0x141f8c=_0x4d4b78[_0x5138('0x1b')](_0x35df8c),_0x50b379[_0x5138('0x5d')](_0x512197['model'][_0x5138('0x2')](_0x141f8c),_0x13d226?null:'imageCaption');});}),_0x50b379[_0x5138('0x30')][_0x5138('0x39')](_0x5138('0xc'),_0x5138('0x3e'),'chain',_0x354da5));const _0x287be3=[{'type':_0x5138('0x16'),'subType':_0x5138('0x3')},{'type':_0x5138('0xc'),'subType':_0x5138('0x3e')},{'type':_0x5138('0x16'),'subType':'convertInlineImageToBlock'},{'type':_0x5138('0xc'),'subType':_0x5138('0x5a')}];function _0x206fec(_0x1ea04a,_0x1589ab){const _0x34748=_0x287be3[_0x5138('0x2c')](({type:_0x2325c7,subType:_0x4a5ec3})=>_0x1ea04a[_0x5138('0x14')]==_0x2325c7&&_0x1ea04a['subType']==_0x4a5ec3),_0x2ad6a2=_0x287be3[_0x5138('0x2c')](({type:_0x116db4,subType:_0x3ff767})=>_0x1589ab['type']==_0x116db4&&_0x1589ab['subType']==_0x3ff767);if(_0x34748<0x0||_0x2ad6a2<0x0)return!0x1;const _0xc5fcd9=_0x1ea04a[_0x5138('0x50')](),_0x232240=_0x1589ab[_0x5138('0x50')]();if((0x0==_0x34748||0x1==_0x34748)&&0x2==_0x2ad6a2&&_0xc5fcd9[_0x5138('0x48')](_0x232240))return!0x0;if(0x2==_0x34748&&0x3==_0x2ad6a2){const _0x4d90f3=_0x50b379[_0x5138('0x5b')](_0xc5fcd9,_0x5138('0xc'))[_0x5138('0x20')](({suggestion:_0x4be02e,meta:_0x361801})=>_0x361801[_0x5138('0x1')]&&_0x5138('0x5a')==_0x4be02e[_0x5138('0x2f')]);if(_0x4d90f3[_0x5138('0x3c')]>0x1&&_0x232240[_0x5138('0x21')]['isEqual'](_0xc5fcd9[_0x5138('0x1f')]))return!0x0;if(0x1==_0x4d90f3[_0x5138('0x3c')]&&(_0xc5fcd9[_0x5138('0x1f')][_0x5138('0x4b')](_0x232240[_0x5138('0x21')])||_0xc5fcd9[_0x5138('0x21')][_0x5138('0x4b')](_0x232240[_0x5138('0x1f')])))return!0x0;}if(0x3==_0x34748&&0x3==_0x2ad6a2&&_0xc5fcd9[_0x5138('0x1f')][_0x5138('0x1c')](_0x232240[_0x5138('0x1f')])){const _0x517d67=_0xc5fcd9['end'][_0x5138('0x45')],_0x344b99=_0x232240['start']['nodeBefore'];return _0x16bc2c[_0x5138('0x1a')](_0x517d67)&&_0x517d67===_0x344b99;}return!0x1;}function _0x354da5(_0xa682cd,_0x571553){return _0x206fec(_0xa682cd,_0x571553)?[_0xa682cd,_0x571553]:_0x206fec(_0x571553,_0xa682cd)?[_0x571553,_0xa682cd]:null;}_0x512197[_0x5138('0x59')][_0x5138('0x5')]('ImageResize')&&(_0x50b379[_0x5138('0x2a')]('resizeImage',[],[_0x5138('0x24')]),_0x50b379[_0x5138('0x3d')][_0x5138('0x31')](_0x5138('0x24'),_0x5cce2b(_0x504278,_0x5138('0x32')))),_0x512197[_0x5138('0x59')][_0x5138('0x5')]('ImageTextAlternativeEditing')&&_0x50b379[_0x5138('0x2a')]('imageTextAlternative',[],[_0x5138('0x4d')]),_0x50b379[_0x5138('0x3d')][_0x5138('0x6')](_0x46f8cc=>{if(!!_0x287be3[_0x5138('0x35')](({type:_0x552a62,subType:_0x3e6d68})=>_0x46f8cc['type']==_0x552a62&&_0x46f8cc['subType']==_0x3e6d68))return _0x46f8cc[_0x5138('0x36')]?{}:void 0x0;}),_0x50b379['_descriptionFactory'][_0x5138('0x6')](_0x5107d0=>{if('insertion'==_0x5107d0[_0x5138('0x14')]||_0x5138('0x29')==_0x5107d0[_0x5138('0x14')]){const _0x2adb66=_0x5107d0[_0x5138('0x4c')]();if(_0x2adb66&&_0x2adb66['is'](_0x5138('0x54'),'caption'))return{'type':_0x5138('0xc')==_0x5107d0[_0x5138('0x14')]?_0x5138('0x18'):_0x5138('0x4e'),'element':_0x2adb66,'quantity':0x1};}}),_0x50b379[_0x5138('0x3d')][_0x5138('0x6')](_0x3f0001=>'formatBlock'==_0x3f0001[_0x5138('0x14')]&&_0x5138('0x5a')==_0x3f0001['subType']?{'type':_0x5138('0x51'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x5138('0x16')==_0x3f0001[_0x5138('0x14')]&&_0x5138('0x57')==_0x3f0001[_0x5138('0x2f')]?{'type':_0x5138('0x51'),'content':_0x5138('0xe')}:void 0x0),_0x50b379[_0x5138('0x3d')][_0x5138('0x6')](_0xf0947=>{if('attribute'!=_0xf0947[_0x5138('0x14')])return;const {data:_0x50c3f6}=_0xf0947;if(!_0x50c3f6||'alt'!=_0x50c3f6['key'])return;const _0x436568=_0x50c3f6[_0x5138('0x19')];return _0x436568?{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x504278,_0x5138('0x4'),'\x22'+_0x436568+'\x22')}:{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x504278,_0x5138('0x12'))};}),this[_0x5138('0x13')]();}[_0x5138('0x13')](){const _0xb3b482=this[_0x5138('0x27')],_0x2d3a46=_0xb3b482[_0x5138('0x2b')];_0xb3b482[_0x5138('0x59')][_0x5138('0x58')](_0x5138('0x33'))[_0x5138('0x3d')][_0x5138('0x6')](_0x5d14b6=>{if(_0x5138('0x16')!=_0x5d14b6[_0x5138('0x14')]&&_0x5138('0x3b')!=_0x5d14b6['type'])return;const {data:_0x2c0abb}=_0x5d14b6;if(_0x2c0abb){if(_0x5138('0x0')==_0x2c0abb['commandName']){const _0x22922a=_0x2c0abb['commandParams'][0x0][_0x5138('0x19')];return _0x22922a?{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x2d3a46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22922a+'\x22')}:{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x2d3a46,_0x5138('0x12'))};}if('resizeImage'==_0x2c0abb['commandName']){const _0x2ac5f2=_0x2c0abb[_0x5138('0x11')][0x0]['width'];return _0x2ac5f2?{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x2d3a46,'*Set\x20image\x20width:*\x20%0',_0x2ac5f2)}:{'type':_0x5138('0x51'),'content':_0x5cce2b(_0x2d3a46,_0x5138('0x26'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc3dc=['ImageEditing','*Replace\x20image\x20URL*','locale','formatBlock','commandName','format','getSuggestionCallback','_suggestionFactory','get','type','formatInline','src','key','newValue','accept','plugins','replaceImageSource','_handleLegacySuggestions','attribute','_registerLegacyDescription','_enableDefaultAttributesIntegration','registerCustomCallback','registerDescriptionCallback','*Format:*\x20replace\x20image\x20URL','TrackChangesEditing','editor','discard'];(function(_0x2921eb,_0xc3dcf3){const _0x40877c=function(_0x253009){while(--_0x253009){_0x2921eb['push'](_0x2921eb['shift']());}};_0x40877c(++_0xc3dcf3);}(_0xc3dc,0x110));const _0x4087=function(_0x2921eb,_0xc3dcf3){_0x2921eb=_0x2921eb-0x0;let _0x40877c=_0xc3dc[_0x2921eb];return _0x40877c;};import{Plugin as _0x133d47}from'ckeditor5/src/core.js';import{getTranslation as _0x28aeb2}from'../utils/common-translations.js';export default class st extends _0x133d47{['afterInit'](){if(!this[_0x4087('0x17')][_0x4087('0xd')]['has'](_0x4087('0x19')))return;const _0x2a7191=this[_0x4087('0x17')][_0x4087('0x0')],_0x241b7e=this[_0x4087('0x17')]['plugins']['get'](_0x4087('0x16'));_0x241b7e[_0x4087('0x12')](_0x4087('0xe'),[],['src']),_0x241b7e['_descriptionFactory']['registerDescriptionCallback'](_0x550e0d=>{if(_0x4087('0x10')!=_0x550e0d[_0x4087('0x7')])return;const {data:_0x2b1168}=_0x550e0d;return _0x2b1168&&_0x4087('0x9')==_0x2b1168[_0x4087('0xa')]?_0x2b1168[_0x4087('0xb')]&&_0x2b1168['oldValue']?{'type':'format','content':_0x28aeb2(_0x2a7191,_0x4087('0x1a'))}:{'type':_0x4087('0x3'),'content':''}:void 0x0;}),this[_0x4087('0xf')]();}[_0x4087('0xf')](){const _0x37135d=this[_0x4087('0x17')]['plugins']['get'](_0x4087('0x16'));_0x37135d[_0x4087('0x5')][_0x4087('0x13')]('formatBlock','replaceImageSource',_0x4087('0xc'),_0x37135d[_0x4087('0x5')]['getSuggestionCallback'](_0x4087('0x1'),null,_0x4087('0x18'))),_0x37135d[_0x4087('0x5')]['registerCustomCallback'](_0x4087('0x1'),'replaceImageSource',_0x4087('0x18'),_0x37135d['_suggestionFactory'][_0x4087('0x4')](_0x4087('0x1'),null,_0x4087('0xc'))),this[_0x4087('0x11')]();}[_0x4087('0x11')](){const _0xb74114=this[_0x4087('0x17')],_0x56b20c=_0xb74114[_0x4087('0x0')];_0xb74114[_0x4087('0xd')][_0x4087('0x6')](_0x4087('0x16'))['_descriptionFactory'][_0x4087('0x14')](_0x285b38=>{if('formatBlock'!=_0x285b38[_0x4087('0x7')]&&_0x4087('0x8')!=_0x285b38[_0x4087('0x7')])return;const {data:_0xf7e1d3}=_0x285b38;if(!_0xf7e1d3||'replaceImageSource'!=_0xf7e1d3[_0x4087('0x2')])return;return{'type':_0x4087('0x3'),'content':_0x28aeb2(_0x56b20c,_0x4087('0x15'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ec7=['enableCommand','setImageNaturalSizeAttributes','isOwn','locale','getClosestSelectedImageElement','subType','getSuggestion','end','imageStyle','ImageUtils','commandReversedParams','commands','_descriptionFactory','commandName','imageTypeBlock','getChangedMarkers','TrackChangesEditing','accept','discard','formatBlock','filter','toLowerCase','shouldConvertImageType','change','discardSuggestion','getContainedElement','_suggestionFactory','isInlineImage','isEqual','convertInlineImageToBlock','model','commandParams','format','document','refresh','selection','imageStylePreApply','has','getSuggestionCallback','imageCaption','formatInline','side','isInContent','next','createRangeOn','isIntersecting','imageStylePostApply','isBlockImage','get','markInlineFormat','imageTypeInline','registerDescriptionCallback','join','getSuggestions','nodeAfter','registerPostFixer','from','ImageStyleEditing','value','getFirstRange','type','chain','title','markBlockFormat','start','nodeBefore','insertion','afterInit','findIndex','*Format:*\x20%0','plugins','name','FORMAT_SIDE_IMAGE','_registerLegacyDescription','length','isBefore','newRange','forEach','registerCustomCallback','author','editor'];(function(_0x23e5e7,_0x3ec77c){const _0x31e3db=function(_0x4f0735){while(--_0x4f0735){_0x23e5e7['push'](_0x23e5e7['shift']());}};_0x31e3db(++_0x3ec77c);}(_0x3ec7,0xfa));const _0x31e3=function(_0x23e5e7,_0x3ec77c){_0x23e5e7=_0x23e5e7-0x0;let _0x31e3db=_0x3ec7[_0x23e5e7];return _0x31e3db;};import{Plugin as _0x14012e}from'ckeditor5/src/core.js';import{uid as _0x36458b}from'ckeditor5/src/utils.js';import{getTranslation as _0x191cbb}from'../utils/common-translations.js';export default class nt extends _0x14012e{[_0x31e3('0x3c')](){const _0x4ad2a1=this[_0x31e3('0x49')];if(!_0x4ad2a1[_0x31e3('0x3f')][_0x31e3('0x1e')]('ImageStyleEditing'))return;const _0x426e95=_0x4ad2a1[_0x31e3('0x3f')][_0x31e3('0x29')](_0x31e3('0x9')),_0x44f7c2=_0x4ad2a1['plugins'][_0x31e3('0x29')](_0x31e3('0x2')),_0x3c8d6a={};_0x426e95[_0x31e3('0x4a')](_0x31e3('0x1'),(_0x13767f,_0x146293)=>{const _0x3e3b73=_0x4ad2a1[_0x31e3('0x3f')][_0x31e3('0x29')]('Users')['me'],_0x25b1d3=_0x4ad2a1[_0x31e3('0x4')]['get'](_0x31e3('0x1'));let _0x52351e=_0x44f7c2[_0x31e3('0x4e')](_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x1a')][_0x31e3('0x1c')]),_0x718a4f=_0x4ad2a1['model'][_0x31e3('0x25')](_0x52351e),_0x3836b2=_0x25b1d3['value'];if(_0x3836b2==_0x146293[_0x31e3('0x33')])return;const _0x310454={'commandName':_0x31e3('0x1'),'commandParams':[_0x146293],'formatGroupId':_0x36458b()};_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x10')](()=>{if(_0x426e95[_0x31e3('0x2e')]()[_0x31e3('0xd')](_0x10dfa7=>_0x10dfa7[_0x31e3('0x23')]&&_0x3e3b73==_0x10dfa7[_0x31e3('0x48')]&&('formatBlock'==_0x10dfa7[_0x31e3('0x35')]||_0x31e3('0x21')==_0x10dfa7['type'])&&('imageStylePreApply'==_0x10dfa7[_0x31e3('0x4f')]||_0x31e3('0x27')==_0x10dfa7[_0x31e3('0x4f')])&&_0x10dfa7['getFirstRange']()['isEqual'](_0x718a4f))[_0x31e3('0x46')](_0x31da32=>_0x426e95[_0x31e3('0x11')](_0x31da32['head'])),_0x52351e=_0x44f7c2[_0x31e3('0x4e')](_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x1a')][_0x31e3('0x1c')]),_0x718a4f=_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x25')](_0x52351e),_0x25b1d3[_0x31e3('0x1b')](),_0x4ad2a1[_0x31e3('0x4')][_0x31e3('0x29')](_0x31e3('0x2b'))[_0x31e3('0x1b')](),_0x4ad2a1[_0x31e3('0x4')][_0x31e3('0x29')](_0x31e3('0x7'))[_0x31e3('0x1b')](),_0x3836b2=_0x25b1d3[_0x31e3('0x33')],_0x3836b2!=_0x146293['value'])return _0x44f7c2[_0x31e3('0x14')](_0x52351e)&&_0x25b1d3[_0x31e3('0xf')](_0x146293[_0x31e3('0x33')],_0x52351e)?(_0x13767f({..._0x146293,'setImageSizes':!0x1}),_0x52351e=_0x44f7c2['getClosestSelectedImageElement'](_0x4ad2a1['model'][_0x31e3('0x1a')][_0x31e3('0x1c')]),void _0x426e95[_0x31e3('0x38')](_0x52351e,{..._0x310454,'commandReversedParams':[{'value':_0x3836b2||null,'setImageSizes':!0x1}]},[],_0x31e3('0x1d'))):void(_0x44f7c2[_0x31e3('0x28')](_0x52351e)?_0x426e95[_0x31e3('0x38')](_0x52351e,_0x310454,[],_0x31e3('0x27')):_0x426e95[_0x31e3('0x2a')](_0x718a4f,_0x310454,_0x31e3('0x27')));});});for(const _0x51735b of _0x4ad2a1[_0x31e3('0x3f')][_0x31e3('0x29')](_0x31e3('0x32'))['normalizedStyles'])_0x3c8d6a[_0x51735b[_0x31e3('0x40')]]=_0x51735b[_0x31e3('0x37')][_0x31e3('0xe')]();_0x426e95['_suggestionFactory'][_0x31e3('0x47')](_0x31e3('0xc'),_0x31e3('0x1d'),_0x31e3('0x2d'),()=>!0x1),_0x426e95[_0x31e3('0x13')][_0x31e3('0x47')](_0x31e3('0xc'),'imageStylePostApply',_0x31e3('0x2d'),()=>!0x1),_0x426e95[_0x31e3('0x13')]['registerCustomCallback'](_0x31e3('0x21'),_0x31e3('0x27'),_0x31e3('0x2d'),()=>!0x1),_0x426e95[_0x31e3('0x13')][_0x31e3('0x47')]('formatBlock',_0x31e3('0x1d'),_0x31e3('0xa'),([_0x36ec01])=>{_0x44f7c2[_0x31e3('0x4b')](_0x36ec01[_0x31e3('0x12')]());}),_0x426e95['_suggestionFactory'][_0x31e3('0x47')](_0x31e3('0xc'),_0x31e3('0x1d'),_0x31e3('0xb'),(_0x2e43d1,_0x3d75ef)=>{_0x426e95['_suggestionFactory'][_0x31e3('0x1f')]('formatBlock','',_0x31e3('0xa'))(_0x2e43d1,{'commandName':_0x3d75ef[_0x31e3('0x6')],'commandParams':_0x3d75ef[_0x31e3('0x3')]});}),_0x426e95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31e3('0x1d'),_0x31e3('0x36'),function(_0x382a17,_0x9f8a2a){if(_0x13ede4(_0x382a17,_0x9f8a2a))return[_0x382a17,_0x9f8a2a];if(_0x13ede4(_0x9f8a2a,_0x382a17))return[_0x9f8a2a,_0x382a17];return null;});const _0x221307=[{'type':_0x31e3('0xc'),'subType':'imageStylePreApply'},{'type':_0x31e3('0x3b'),'subType':_0x31e3('0x20')},{'type':_0x31e3('0xc'),'subType':_0x31e3('0x16')},{'type':'insertion','subType':_0x31e3('0x16')}];function _0x13ede4(_0x450a49,_0x8e0b09){const _0x45f96a=_0x221307[_0x31e3('0x3d')](({type:_0x326850,subType:_0x1685a4})=>_0x450a49['type']==_0x326850&&_0x450a49['subType']==_0x1685a4),_0x1e4d70=_0x221307[_0x31e3('0x3d')](({type:_0x493f17,subType:_0x2f137e})=>_0x8e0b09[_0x31e3('0x35')]==_0x493f17&&_0x8e0b09['subType']==_0x2f137e);if(_0x45f96a<0x0||_0x1e4d70<0x0)return!0x1;const _0x3500a5=_0x450a49[_0x31e3('0x34')](),_0x47896f=_0x8e0b09[_0x31e3('0x34')]();if((0x0==_0x45f96a||0x1==_0x45f96a)&&0x2==_0x1e4d70&&_0x3500a5[_0x31e3('0x26')](_0x47896f))return!0x0;if(0x2==_0x45f96a&&0x3==_0x1e4d70){const _0x5791ca=_0x426e95['_findSuggestions'](_0x3500a5,_0x31e3('0x3b'))['filter'](({suggestion:_0x2ee4b8,meta:_0x231c1a})=>_0x231c1a[_0x31e3('0x4c')]&&_0x31e3('0x16')==_0x2ee4b8[_0x31e3('0x4f')]);if(_0x5791ca[_0x31e3('0x43')]>0x1&&_0x47896f[_0x31e3('0x0')]['isEqual'](_0x3500a5[_0x31e3('0x39')]))return!0x0;if(0x1==_0x5791ca[_0x31e3('0x43')]&&(_0x3500a5[_0x31e3('0x39')]['isEqual'](_0x47896f[_0x31e3('0x0')])||_0x3500a5[_0x31e3('0x0')][_0x31e3('0x15')](_0x47896f[_0x31e3('0x39')])))return!0x0;}if(0x3==_0x45f96a&&0x3==_0x1e4d70&&_0x3500a5[_0x31e3('0x39')][_0x31e3('0x44')](_0x47896f[_0x31e3('0x39')])){const _0xf06d53=_0x3500a5[_0x31e3('0x0')][_0x31e3('0x2f')],_0x1ca737=_0x47896f[_0x31e3('0x39')][_0x31e3('0x3a')];return _0x44f7c2[_0x31e3('0x28')](_0xf06d53)&&_0xf06d53===_0x1ca737;}return!0x1;}_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x1a')][_0x31e3('0x30')](()=>{let _0x22fc76=!0x1;const _0x5f2741=Array[_0x31e3('0x31')](_0x4ad2a1[_0x31e3('0x17')][_0x31e3('0x1a')]['differ'][_0x31e3('0x8')]());for(const {name:_0x249762,data:_0x7f5e0a}of _0x5f2741){const {group:_0x12734e,type:_0x2f6bd8,subType:_0x87e1d1,id:_0x9eff68}=_0x426e95['_splitMarkerName'](_0x249762);if('suggestion'==_0x12734e&&_0x426e95['hasSuggestion'](_0x9eff68)){if(_0x31e3('0xc')==_0x2f6bd8&&(_0x31e3('0x1d')==_0x87e1d1||_0x31e3('0x27')==_0x87e1d1)){const _0x2297d0=_0x426e95[_0x31e3('0x50')](_0x9eff68);if(_0x7f5e0a[_0x31e3('0x45')]){const _0xbd6fd4=_0x2297d0['getFirstRange']()[_0x31e3('0x12')]();if(_0x44f7c2['isBlockImage'](_0xbd6fd4))continue;_0x426e95[_0x31e3('0x11')](_0x2297d0),_0x22fc76=!0x0;}}if('insertion'==_0x2f6bd8&&_0x31e3('0x20')==_0x87e1d1&&!_0x7f5e0a[_0x31e3('0x45')]){const _0x4f74e5=_0x426e95[_0x31e3('0x50')](_0x9eff68);_0x4f74e5['next']&&_0x4f74e5['next'][_0x31e3('0x23')]&&(_0x426e95[_0x31e3('0x11')](_0x4f74e5[_0x31e3('0x24')]),_0x22fc76=!0x0);}}}return _0x22fc76;}),this['_registerLegacyDescription'](_0x3c8d6a);}[_0x31e3('0x42')](_0x117f2f){const _0x182bd0=this[_0x31e3('0x49')],_0x1270e4=_0x182bd0[_0x31e3('0x4d')];_0x182bd0['plugins'][_0x31e3('0x29')](_0x31e3('0x9'))[_0x31e3('0x5')][_0x31e3('0x2c')](_0x59eda8=>{if(_0x31e3('0xc')!=_0x59eda8[_0x31e3('0x35')]&&_0x31e3('0x21')!=_0x59eda8['type'])return;const {data:_0x11537a}=_0x59eda8;if(!_0x11537a||_0x31e3('0x1')!=_0x11537a['commandName'])return;const _0x1372c8=_0x11537a[_0x31e3('0x18')][0x0][_0x31e3('0x33')];return _0x30404d(_0x31e3('0x22')===_0x1372c8?_0x191cbb(_0x1270e4,_0x31e3('0x41')):_0x117f2f[_0x1372c8]||_0x1372c8);function _0x30404d(_0x1f4fa9){return{'type':_0x31e3('0x19'),'content':_0x191cbb(_0x1270e4,_0x31e3('0x3e'),_0x1f4fa9)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332a=['_trackChangesValueDuringImport','_trackChangesExecuted','dataInsert','TrackChangesEditing','commands','listenTo','collaboration_features','execute','value','lowest','_setSuggestionData','afterInit','plugins','get','bind','editor','Users','high','enableCommand','importWord'];(function(_0x18a9c,_0x332a05){const _0x247e08=function(_0x572e1c){while(--_0x572e1c){_0x18a9c['push'](_0x18a9c['shift']());}};_0x247e08(++_0x332a05);}(_0x332a,0x64));const _0x247e=function(_0x18a9c,_0x332a05){_0x18a9c=_0x18a9c-0x0;let _0x247e08=_0x332a[_0x18a9c];return _0x247e08;};import{Plugin as _0x22b91}from'ckeditor5/src/core.js';export default class ot extends _0x22b91{constructor(_0x42d543){super(_0x42d543),this['_trackChangesValueDuringImport']=!0x1,this[_0x247e('0x1')]=!0x1;}[_0x247e('0xb')](){const _0x3292c0=this['editor'],_0x4ab928=_0x3292c0['commands'][_0x247e('0xd')](_0x247e('0x13')),_0xde7fe5=_0x3292c0[_0x247e('0x4')]['get']('trackChanges');_0x4ab928&&(_0x4ab928['on'](_0x247e('0x7'),(_0xc5a96d,[,_0x540dfe])=>{this[_0x247e('0x0')]=_0xde7fe5[_0x247e('0x8')],_0x540dfe[_0x247e('0x6')]['track_changes']=!this[_0x247e('0x0')];},{'priority':_0x247e('0x11')}),this[_0x247e('0x5')](_0x4ab928,'dataInsert',this['_handleImportedData'][_0x247e('0xe')](this)),this['listenTo'](_0x4ab928,_0x247e('0x2'),()=>{this['_trackChangesExecuted']&&(_0xde7fe5[_0x247e('0x7')](),this[_0x247e('0x1')]=!0x1);},{'priority':_0x247e('0x9')}),_0x3292c0[_0x247e('0xc')][_0x247e('0xd')]('TrackChangesEditing')[_0x247e('0x12')](_0x247e('0x13')));}['_handleImportedData'](_0x2e8349,_0x30bb8b){const {suggestions:_0x3620e6}=_0x30bb8b,_0x24abe8=this[_0x247e('0xf')][_0x247e('0x4')]['get']('trackChanges'),_0x40e4db=_0x24abe8[_0x247e('0x8')];this[_0x247e('0x0')]!==_0x40e4db&&(_0x24abe8[_0x247e('0x7')](),this['_trackChangesExecuted']=!0x0),_0x3620e6&&_0x3620e6['forEach'](({id:_0x4d8508,type:_0x4bca61,author:_0x7085b8,created_at:_0xeac9a6})=>{const _0x3a6272={'id':_0x4d8508,'type':_0x4bca61,'authorId':this[_0x247e('0xf')][_0x247e('0xc')][_0x247e('0xd')](_0x247e('0x10'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7085b8,'createdAt':_0xeac9a6?new Date(_0xeac9a6):new Date(),'source':_0x247e('0x13')}}};this['editor'][_0x247e('0xc')]['get'](_0x247e('0x3'))[_0x247e('0xa')](_0x3a6272);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58b5=['getItems','indentBlock','type','TrackChangesEditing','registerDescriptionCallback','getItemLabel','outdent','*Outdent:*\x20%0','afterInit','blockIndent','IndentEditing','commandName','editor','locale','FORMAT_INDENT','*Indent:*\x20%0','plugins','outdentBlock','get','_descriptionFactory','format','_enableDefaultAttributesIntegration','_registerBlockAttribute','indent','has','_registerLegacyDescription','formatBlock','registerAttributeLabel'];(function(_0x59653e,_0x58b505){const _0xcfb2f5=function(_0x505e0d){while(--_0x505e0d){_0x59653e['push'](_0x59653e['shift']());}};_0xcfb2f5(++_0x58b505);}(_0x58b5,0x1db));const _0xcfb2=function(_0x59653e,_0x58b505){_0x59653e=_0x59653e-0x0;let _0xcfb2f5=_0x58b5[_0x59653e];return _0xcfb2f5;};import{Plugin as _0x57b74e}from'ckeditor5/src/core.js';import{getTranslation as _0x1dde18}from'../utils/common-translations.js';export default class rt extends _0x57b74e{[_0xcfb2('0x9')](){const _0x2fd841=this[_0xcfb2('0xd')],_0x5e38e2=_0x2fd841['plugins']['get'](_0xcfb2('0x4'));if(_0x2fd841['plugins'][_0xcfb2('0x19')](_0xcfb2('0xb'))&&(_0x5e38e2['enableCommand'](_0xcfb2('0x18')),_0x5e38e2['enableCommand'](_0xcfb2('0x7'))),_0x2fd841[_0xcfb2('0x11')][_0xcfb2('0x19')]('IndentBlock'))for(const _0xf9ab94 of['indentBlock','outdentBlock'])_0x5e38e2[_0xcfb2('0x16')](_0xf9ab94);const _0xe0eb1d=_0x2fd841['locale'];_0x5e38e2[_0xcfb2('0x17')]('blockIndent'),_0x5e38e2[_0xcfb2('0x14')][_0xcfb2('0x0')](_0xcfb2('0xa'),_0x1dde18(_0xe0eb1d,_0xcfb2('0xf'))),this[_0xcfb2('0x1a')]();}[_0xcfb2('0x1a')](){const _0x4481ae=this[_0xcfb2('0xd')],_0x3545b1=_0x4481ae[_0xcfb2('0xe')],_0x208fcb=_0x4481ae[_0xcfb2('0x11')][_0xcfb2('0x13')]('TrackChangesEditing');_0x208fcb[_0xcfb2('0x14')][_0xcfb2('0x5')](_0x5419db=>{if(_0xcfb2('0x1b')!=_0x5419db[_0xcfb2('0x3')])return;const {data:_0x3a7104}=_0x5419db;if(!_0x3a7104)return;if(_0xcfb2('0x2')!=_0x3a7104[_0xcfb2('0xc')]&&_0xcfb2('0x12')!=_0x3a7104[_0xcfb2('0xc')])return;const _0x7c02a=_0x5419db[_0xcfb2('0x1')]()[0x0],_0x2b7f9c=_0x208fcb[_0xcfb2('0x14')][_0xcfb2('0x6')](_0x7c02a);return'indentBlock'==_0x3a7104[_0xcfb2('0xc')]?{'type':_0xcfb2('0x15'),'content':_0x1dde18(_0x3545b1,_0xcfb2('0x10'),_0x2b7f9c)}:_0xcfb2('0x12')==_0x3a7104['commandName']?{'type':_0xcfb2('0x15'),'content':_0x1dde18(_0x3545b1,_0xcfb2('0x8'),_0x2b7f9c)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe0eb=['requires','editor','init','input','enableCommand','get','plugins'];(function(_0x10e4df,_0xe0eb36){var _0x532019=function(_0x4f9ad4){while(--_0x4f9ad4){_0x10e4df['push'](_0x10e4df['shift']());}};_0x532019(++_0xe0eb36);}(_0xe0eb,0x68));var _0x5320=function(_0x10e4df,_0xe0eb36){_0x10e4df=_0x10e4df-0x0;var _0x532019=_0xe0eb[_0x10e4df];return _0x532019;};import{Plugin as _0x1ff57e}from'ckeditor5/src/core.js';import{Input as _0x1468f4}from'ckeditor5/src/typing.js';export default class at extends _0x1ff57e{static get[_0x5320('0x1')](){return[_0x1468f4];}[_0x5320('0x3')](){this[_0x5320('0x2')][_0x5320('0x0')][_0x5320('0x6')]('TrackChangesEditing')[_0x5320('0x5')](_0x5320('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54d8=['registerDescriptionCallback','linkHref','locale','format','link','commands','formatInline','newValue','LinkEditing','TrackChangesEditing','get','has','editor','toLowerCase','link\x20(','commandName','key','map','manualDecorators','unlink','_registerLegacyDescription','_enableDefaultAttributesIntegration','type','*Set\x20link:*\x20%0','_descriptionFactory','label','plugins'];(function(_0x3212ec,_0x54d8cc){const _0x1c7680=function(_0x59ff2f){while(--_0x59ff2f){_0x3212ec['push'](_0x3212ec['shift']());}};_0x1c7680(++_0x54d8cc);}(_0x54d8,0x136));const _0x1c76=function(_0x3212ec,_0x54d8cc){_0x3212ec=_0x3212ec-0x0;let _0x1c7680=_0x54d8[_0x3212ec];return _0x1c7680;};import{Plugin as _0x4b67a6}from'ckeditor5/src/core.js';import{getTranslation as _0x396d89}from'../utils/common-translations.js';export default class ct extends _0x4b67a6{['afterInit'](){const _0x477265=this[_0x1c76('0x1a')];if(!_0x477265['plugins'][_0x1c76('0x19')](_0x1c76('0x16')))return;const _0x41c2f5=_0x477265['plugins'][_0x1c76('0x18')]('TrackChangesEditing'),_0x5e5e0f=_0x477265[_0x1c76('0x13')][_0x1c76('0x18')](_0x1c76('0x12'));_0x41c2f5['_enableDefaultAttributesIntegration'](_0x1c76('0x12'),['linkHref',..._0x5e5e0f['manualDecorators'][_0x1c76('0x4')](_0x18c7bb=>_0x18c7bb['id'])]),_0x41c2f5[_0x1c76('0x8')]('unlink');for(const _0x1e779e of _0x5e5e0f[_0x1c76('0x5')])_0x41c2f5[_0x1c76('0xb')]['registerAttributeLabel'](_0x1e779e['id'],_0x1c76('0x1')+_0x1e779e[_0x1c76('0xc')][_0x1c76('0x0')]()+')');_0x41c2f5[_0x1c76('0xb')][_0x1c76('0xe')](_0x3de9a9=>{if('attribute'!=_0x3de9a9[_0x1c76('0x9')])return;const {data:_0x337a88}=_0x3de9a9;if(!_0x337a88||_0x1c76('0xf')!=_0x337a88[_0x1c76('0x3')])return;const _0x10d2fc=_0x337a88[_0x1c76('0x15')],_0x5ac019=_0x477265[_0x1c76('0x10')];return{'type':_0x1c76('0x11'),'content':null==_0x10d2fc?_0x396d89(_0x5ac019,'*Remove\x20link*'):_0x396d89(_0x5ac019,_0x1c76('0xa'),'\x22'+_0x10d2fc+'\x22')};}),this[_0x1c76('0x7')]();}[_0x1c76('0x7')](){const _0x306596=this[_0x1c76('0x1a')],_0x427688=_0x306596[_0x1c76('0x10')];_0x306596[_0x1c76('0xd')]['get'](_0x1c76('0x17'))[_0x1c76('0xb')][_0x1c76('0xe')](_0x510f4b=>{if(_0x1c76('0x14')!=_0x510f4b[_0x1c76('0x9')])return;const {data:_0x5c6d7c}=_0x510f4b;if(_0x5c6d7c){if(_0x1c76('0x12')==_0x5c6d7c[_0x1c76('0x2')]){const _0x175282=_0x5c6d7c['commandParams'][0x0];return{'type':_0x1c76('0x11'),'content':_0x396d89(_0x427688,'*Set\x20link:*\x20%0','\x22'+_0x175282+'\x22')};}return _0x1c76('0x6')==_0x5c6d7c['commandName']?{'type':'format','content':_0x396d89(_0x427688,'*Remove\x20link*')}:void 0x0;}});}}
|