@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231127.0 → 0.0.0-nightly-20231128.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/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 _0x173c=['has','locale','fontColor.colors','registerDescriptionCallback','model','_enableDefaultAttributesIntegration','*Set\x20font\x20background\x20color:*\x20%0','FORMAT_FONT_SIZE','plugins','FORMAT_FONT_BACKGROUND','fontSize','_descriptionFactory','fontBackgroundColor','commandName','fontFamily','*Set\x20font\x20family:*\x20%0','*Reset\x20font\x20color*','*Set\x20font\x20size:*\x20%0','label','value','FORMAT_FONT_FAMILY','registerAttributeLabel','commandParams','find','afterInit','FontBackgroundColorEditing','editor','FontSizeEditing','normalizeSizeOptions','get','TrackChangesEditing','format','FontFamilyEditing','FORMAT_FONT_COLOR','FontSize','formatInline','type','toLowerCase','fontColor','fontBackgroundColor.colors','trim','FontColorEditing','config'];(function(_0x371775,_0x173c75){const _0x525267=function(_0x494cb2){while(--_0x494cb2){_0x371775['push'](_0x371775['shift']());}};_0x525267(++_0x173c75);}(_0x173c,0x14b));const _0x5252=function(_0x371775,_0x173c75){_0x371775=_0x371775-0x0;let _0x525267=_0x173c[_0x371775];return _0x525267;};import{Plugin as _0x47fd12}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5dc91d}from'ckeditor5/src/ui';import{getTranslation as _0x31a835}from'../utils/common-translations';const ro=[{'pluginName':_0x5252('0x28'),'commandName':'fontSize'},{'pluginName':_0x5252('0x2'),'commandName':_0x5252('0x1b')},{'pluginName':_0x5252('0xb'),'commandName':'fontColor'},{'pluginName':_0x5252('0x26'),'commandName':_0x5252('0x19')}];export default class J extends _0x47fd12{[_0x5252('0x25')](){const _0x24baa4=this[_0x5252('0x27')][_0x5252('0xe')],_0x9bcdaa=this[_0x5252('0x27')]['plugins'][_0x5252('0x2a')](_0x5252('0x0'));for(const {pluginName:_0x130bbe,commandName:_0x3c6619}of ro)this['editor'][_0x5252('0x15')][_0x5252('0xd')](_0x130bbe)&&_0x9bcdaa[_0x5252('0x12')](_0x3c6619,[_0x3c6619]);_0x24baa4['t'],(_0x9bcdaa[_0x5252('0x18')][_0x5252('0x22')](_0x5252('0x17'),_0x31a835(_0x24baa4,_0x5252('0x14'))),_0x9bcdaa[_0x5252('0x18')][_0x5252('0x22')](_0x5252('0x1b'),_0x31a835(_0x24baa4,_0x5252('0x21'))),_0x9bcdaa[_0x5252('0x18')][_0x5252('0x22')](_0x5252('0x8'),_0x31a835(_0x24baa4,_0x5252('0x3'))),_0x9bcdaa[_0x5252('0x18')][_0x5252('0x22')]('fontBackgroundColor',_0x31a835(_0x24baa4,_0x5252('0x16'))),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4c6e32=this[_0x5252('0x27')],_0x512e95=_0x4c6e32[_0x5252('0xe')];_0x4c6e32[_0x5252('0x15')][_0x5252('0x2a')](_0x5252('0x0'))[_0x5252('0x18')][_0x5252('0x10')](_0x1cf852=>{const _0x151146=_0x512e95['t'];if(_0x5252('0x5')!=_0x1cf852[_0x5252('0x6')])return;const {data:_0x5d8e85}=_0x1cf852;if(null!=_0x5d8e85){if('fontSize'==_0x5d8e85['commandName']){const _0xe2fcc5=_0x5d8e85[_0x5252('0x23')][0x0][_0x5252('0x20')];if(_0xe2fcc5){const _0xa9c931=_0x151146(this[_0x5252('0x27')]['plugins'][_0x5252('0x2a')](_0x5252('0x4'))[_0x5252('0x29')](this[_0x5252('0x27')]['config'][_0x5252('0x2a')]('fontSize.options'))[_0x5252('0x24')](_0x1b28eb=>_0x1b28eb['model']==_0xe2fcc5)['title'])[_0x5252('0x7')]();return{'type':'format','content':_0x31a835(_0x512e95,_0x5252('0x1e'),_0xa9c931)};}return{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,'*Reset\x20font\x20size*')};}if(_0x5252('0x1b')==_0x5d8e85['commandName']){const _0x1d6ae1=_0x5d8e85[_0x5252('0x23')][0x0][_0x5252('0x20')];return _0x1d6ae1?{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,_0x5252('0x1c'),_0x1d6ae1)}:{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d8e85[_0x5252('0x1a')]){const _0x5e5ddb=_0x5d8e85['commandParams'][0x0][_0x5252('0x20')];if(_0x5e5ddb){const _0x1f2aea=_0x5dc91d(this[_0x5252('0x27')][_0x5252('0xc')]['get'](_0x5252('0xf')))[_0x5252('0x24')](_0x152da7=>_0x152da7[_0x5252('0x11')]==_0x5e5ddb);let _0x1615f6=_0x5e5ddb,_0x297849='';return _0x1f2aea&&(_0x1615f6=_0x1f2aea[_0x5252('0x1f')],_0x297849=_0x151146(_0x1615f6)['toLowerCase']()),{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,'*Set\x20font\x20color:*\x20%0',_0x297849)[_0x5252('0xa')](),'color':{'value':_0x5e5ddb,'title':_0x297849||_0x1615f6}};}return{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,_0x5252('0x1d'))};}if(_0x5252('0x19')==_0x5d8e85[_0x5252('0x1a')]){const _0x9f9c4e=_0x5d8e85[_0x5252('0x23')][0x0]['value'];if(_0x9f9c4e){const _0x35966f=_0x5dc91d(this[_0x5252('0x27')][_0x5252('0xc')][_0x5252('0x2a')](_0x5252('0x9')))[_0x5252('0x24')](_0x232eb2=>_0x232eb2[_0x5252('0x11')]==_0x9f9c4e);let _0x185595=_0x9f9c4e,_0x39c8e0='';return _0x35966f&&(_0x185595=_0x35966f[_0x5252('0x1f')],_0x39c8e0=_0x151146(_0x185595)['toLowerCase']()),{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,_0x5252('0x13'),_0x39c8e0)[_0x5252('0xa')](),'color':{'value':_0x9f9c4e,'title':_0x39c8e0||_0x185595}};}return{'type':_0x5252('0x1'),'content':_0x31a835(_0x512e95,'*Reset\x20font\x20background\x20color*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43c7=['toUpperCase','config','fontColor.colors','copyFormat','_descriptionFactory','pasteFormat','join','enableCommand','model','plugins','boolean','length','commandParams','get','push','entries','fontColor','TrackChangesEditing','find','fontBackgroundColor','formatInline','toLowerCase','*Remove\x20all\x20formatting*','formatBlock','fontSize','registerDescriptionCallback','type','normalizeSizeOptions','format','_enableDefaultAttributesIntegration','editor','title','_registerLegacyDescription','locale','afterInit','slice','commandName','fontSize.options'];(function(_0x6cece7,_0x43c737){const _0x4609b0=function(_0xbef000){while(--_0xbef000){_0x6cece7['push'](_0x6cece7['shift']());}};_0x4609b0(++_0x43c737);}(_0x43c7,0x80));const _0x4609=function(_0x6cece7,_0x43c737){_0x6cece7=_0x6cece7-0x0;let _0x4609b0=_0x43c7[_0x6cece7];return _0x4609b0;};import{Plugin as _0x5865b5}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5030e7}from'ckeditor5/src/ui';import{getTranslation as _0x3dc28d}from'../utils/common-translations';export default class Q extends _0x5865b5{[_0x4609('0x14')](){const _0x5760e5=this[_0x4609('0x10')],_0x9a9d95=_0x5760e5[_0x4609('0x21')]['get'](_0x4609('0x3')),_0x5ccc4c=_0x5760e5['commands'][_0x4609('0x25')](_0x4609('0x1b')),_0xb15f93=_0x5760e5['commands'][_0x4609('0x25')](_0x4609('0x1d'));_0x5ccc4c&&_0xb15f93&&(_0x9a9d95[_0x4609('0xf')](_0x4609('0x1d')),_0x9a9d95[_0x4609('0x1f')](_0x4609('0x1b')),this[_0x4609('0x12')]());}[_0x4609('0x12')](){const _0xa613ec=this['editor'],_0x43e0d5=_0xa613ec[_0x4609('0x13')];_0xa613ec['plugins'][_0x4609('0x25')](_0x4609('0x3'))[_0x4609('0x1c')][_0x4609('0xb')](_0x499155=>{if(_0x4609('0x9')!=_0x499155[_0x4609('0xc')]&&_0x4609('0x6')!=_0x499155[_0x4609('0xc')])return;const {data:_0x4466c4}=_0x499155;if(_0x4466c4&&_0x4609('0x1d')===_0x4466c4[_0x4609('0x16')]){const _0x3a5af3=[],_0x5348fd=_0x4466c4[_0x4609('0x24')][0x0];for(const [_0x7cd425,_0x143dc]of Object[_0x4609('0x1')](_0x5348fd))_0x3a5af3[_0x4609('0x0')](ao(_0xa613ec,_0x7cd425,_0x143dc));return _0x3a5af3[_0x4609('0x23')]?{'type':_0x4609('0xe'),'content':_0x3dc28d(_0x43e0d5,'*Set\x20format\x20to:*\x20%0',_0x3a5af3[_0x4609('0x1e')](',\x20'))}:{'type':'format','content':_0x3dc28d(_0x43e0d5,_0x4609('0x8'))};}});}}function ao(_0x5e74d2,_0x5cac74,_0xb0ba4c){const _0x4d7040=_0x5e74d2[_0x4609('0x13')]['t'],_0x2115e8=_0x5cac74['split'](/(?=[A-Z])/)[_0x4609('0x1e')]('\x20'),_0x5f05e5=_0x4d7040(_0x2115e8['charAt'](0x0)[_0x4609('0x18')]()+_0x2115e8[_0x4609('0x15')](0x1))['toLowerCase']();if(_0x4609('0x22')==typeof _0xb0ba4c)return _0x5f05e5;if(_0x4609('0x2')===_0x5cac74||_0x4609('0x5')===_0x5cac74){const _0x16d074=_0x5030e7(_0x5e74d2[_0x4609('0x19')][_0x4609('0x25')](_0x4609('0x1a')))[_0x4609('0x4')](_0x4bf9c0=>_0x4bf9c0[_0x4609('0x20')]==_0xb0ba4c);return _0x5f05e5+'\x20('+(_0x16d074?_0x4d7040(_0x16d074['label'])[_0x4609('0x7')]():_0xb0ba4c)+')';}if(_0x4609('0xa')===_0x5cac74&&isNaN(parseFloat(_0xb0ba4c))){const _0x5ea9cd=_0x5e74d2['plugins'][_0x4609('0x25')]('FontSize')[_0x4609('0xd')](_0x5e74d2[_0x4609('0x19')][_0x4609('0x25')](_0x4609('0x17')))[_0x4609('0x4')](_0x3beef3=>_0x3beef3[_0x4609('0x20')]==_0xb0ba4c);return _0x5f05e5+'\x20('+(_0x5ea9cd?_0x4d7040(_0x5ea9cd[_0x4609('0x11')])[_0x4609('0x7')]():_0xb0ba4c)+')';}return _0x5f05e5+'\x20('+_0xb0ba4c+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d32=['ELEMENT_HEADING','format','commandName','registerDescriptionCallback','afterInit','HeadingEditing','heading.options','*Change\x20to:*\x20%0','find','plugins','editor','type','_descriptionFactory','_getHeadingLevel','config','_headingOptions','model','paragraph','value','name','_enableDefaultAttributesIntegration','has','get','formatBlock','heading','_registerLegacyDescription','commandParams'];(function(_0x4affec,_0x1d32bb){const _0x3c38a0=function(_0x560c1a){while(--_0x560c1a){_0x4affec['push'](_0x4affec['shift']());}};_0x3c38a0(++_0x1d32bb);}(_0x1d32,0x77));const _0x3c38=function(_0x4affec,_0x1d32bb){_0x4affec=_0x4affec-0x0;let _0x3c38a0=_0x1d32[_0x4affec];return _0x3c38a0;};import{Plugin as _0x3408fd}from'ckeditor5/src/core';import{getTranslation as _0x32add3}from'../utils/common-translations';export default class X extends _0x3408fd{[_0x3c38('0x14')](){const _0x3df7e3=this[_0x3c38('0x1a')];if(!_0x3df7e3[_0x3c38('0x19')][_0x3c38('0xa')](_0x3c38('0x15')))return;this[_0x3c38('0x4')]=_0x3df7e3[_0x3c38('0x3')][_0x3c38('0xb')](_0x3c38('0x16'));const _0x188265=_0x3df7e3['locale'],_0x300f07=_0x3df7e3[_0x3c38('0x19')]['get']('TrackChangesEditing');_0x300f07[_0x3c38('0x9')](_0x3c38('0xd'));for(const _0x22b04f of this[_0x3c38('0x4')])_0x3c38('0x6')!=_0x22b04f[_0x3c38('0x5')]&&_0x300f07[_0x3c38('0x1')]['registerElementLabel'](_0x22b04f[_0x3c38('0x5')],_0x206595=>{const _0x5a6e0e=this[_0x3c38('0x2')](_0x22b04f[_0x3c38('0x5')]);return null!==_0x5a6e0e?_0x4306a6(_0x206595,_0x5a6e0e):_0x5c7622(_0x206595,_0x22b04f['title']);});function _0x4306a6(_0x39374d,_0x4eac3c){return _0x32add3(_0x188265,_0x3c38('0x10'),[_0x39374d,_0x4eac3c]);}function _0x5c7622(_0x3c5101,_0x479ede){return _0x32add3(_0x188265,'ELEMENT_HEADING_CUSTOM',[_0x3c5101,_0x479ede]);}this[_0x3c38('0xe')]();}[_0x3c38('0xe')](){const _0x47ae3e=this[_0x3c38('0x1a')],_0x9d2c02=_0x47ae3e['locale'];function _0x2f349c(_0x478909,_0x302230){return _0x32add3(_0x9d2c02,'ELEMENT_HEADING_CUSTOM',[_0x478909,_0x302230]);}_0x47ae3e['plugins'][_0x3c38('0xb')]('TrackChangesEditing')[_0x3c38('0x1')][_0x3c38('0x13')](_0x1b60c2=>{if(_0x3c38('0xc')!=_0x1b60c2[_0x3c38('0x0')])return;const {data:_0x37453c}=_0x1b60c2;if(_0x37453c&&_0x3c38('0xd')==_0x37453c[_0x3c38('0x12')]){const _0x11ef00=_0x37453c[_0x3c38('0xf')][0x0][_0x3c38('0x7')],_0xfac05a=this['_getHeadingLevel'](_0x11ef00);if(null!==_0xfac05a)return{'type':_0x3c38('0x11'),'content':_0x32add3(_0x9d2c02,_0x3c38('0x17'),(_0xa6a36e=0x1,_0x1489bb=_0xfac05a,_0x32add3(_0x9d2c02,'ELEMENT_HEADING',[_0xa6a36e,_0x1489bb])))};const _0x9d0791=this[_0x3c38('0x4')][_0x3c38('0x18')](_0x2b9689=>_0x2b9689[_0x3c38('0x5')]===_0x11ef00)['title'];return{'type':_0x3c38('0x11'),'content':_0x32add3(_0x9d2c02,'*Change\x20to:*\x20%0',_0x2f349c(0x1,_0x9d0791))};}var _0xa6a36e,_0x1489bb;});}[_0x3c38('0x2')](_0x1085f0){var _0x47e62e,_0x41a983;const _0xfa4feb=_0x1085f0['match'](/^heading(\d+)/);if(_0xfa4feb)return _0xfa4feb[0x1];const _0x5a7d74=null===(_0x47e62e=this['_headingOptions'])||void 0x0===_0x47e62e?void 0x0:_0x47e62e[_0x3c38('0x18')](_0x10223e=>_0x10223e[_0x3c38('0x5')]==_0x1085f0);if(_0x5a7d74&&_0x5a7d74['view']){const _0x5b9ae7=_0x5a7d74['view'],_0x441d02=(null!==(_0x41a983=_0x5b9ae7[_0x3c38('0x8')])&&void 0x0!==_0x41a983?_0x41a983:_0x5b9ae7)['match'](/^h(\d+)/);if(_0x441d02)return _0x441d02[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21da=['config','formatInline','*Remove\x20highlight*','locale','highlight','plugins','editor','registerDescriptionCallback','commandParams','commandName','title','get','_descriptionFactory','highlight.options','find','*Set\x20highlight:*\x20%0','_registerLegacyDescription','type','HighlightEditing','value','format','_enableDefaultAttributesIntegration','FORMAT_HIGHLIGHT','model','afterInit'];(function(_0x4cc7ad,_0x21daa0){const _0x2d66b2=function(_0x1322a0){while(--_0x1322a0){_0x4cc7ad['push'](_0x4cc7ad['shift']());}};_0x2d66b2(++_0x21daa0);}(_0x21da,0x1a6));const _0x2d66=function(_0x4cc7ad,_0x21daa0){_0x4cc7ad=_0x4cc7ad-0x0;let _0x2d66b2=_0x21da[_0x4cc7ad];return _0x2d66b2;};import{Plugin as _0x188d48}from'ckeditor5/src/core';import{getTranslation as _0x92d00e}from'../utils/common-translations';export default class Y extends _0x188d48{[_0x2d66('0x2')](){const _0x1286e0=this[_0x2d66('0x9')];if(!_0x1286e0[_0x2d66('0x8')]['has'](_0x2d66('0x15')))return;const _0x4de267=_0x1286e0[_0x2d66('0x8')][_0x2d66('0xe')]('TrackChangesEditing'),_0xae8950=_0x1286e0[_0x2d66('0x6')];_0x4de267[_0x2d66('0x18')](_0x2d66('0x7'),[_0x2d66('0x7')]),_0x4de267[_0x2d66('0xf')]['registerAttributeLabel'](_0x2d66('0x7'),_0x92d00e(_0xae8950,_0x2d66('0x0'))),this[_0x2d66('0x13')]();}['_registerLegacyDescription'](){const _0x156fde=this['editor'],_0x47d78c=_0x156fde['locale'];_0x156fde[_0x2d66('0x8')][_0x2d66('0xe')]('TrackChangesEditing')[_0x2d66('0xf')][_0x2d66('0xa')](_0x43f669=>{if(_0x2d66('0x4')!=_0x43f669[_0x2d66('0x14')])return;const {data:_0x32be84}=_0x43f669;if(_0x32be84&&_0x2d66('0x7')==_0x32be84[_0x2d66('0xc')]){const _0x8b3065=_0x47d78c['t'],_0x2abc41=_0x32be84[_0x2d66('0xb')][0x0][_0x2d66('0x16')];if(_0x2abc41){const _0x11d924=_0x156fde[_0x2d66('0x3')][_0x2d66('0xe')](_0x2d66('0x10'))[_0x2d66('0x11')](_0x22b299=>_0x22b299[_0x2d66('0x1')]==_0x2abc41),_0x2d8cb=_0x8b3065(_0x11d924[_0x2d66('0xd')])['toLowerCase']();return{'type':_0x2d66('0x17'),'content':_0x92d00e(_0x47d78c,_0x2d66('0x12'),_0x2d8cb),'color':{'value':_0x11d924['color'],'title':_0x11d924['title']}};}return{'type':'format','content':_0x92d00e(_0x47d78c,_0x2d66('0x5'),_0x92d00e(_0x47d78c,_0x2d66('0x0')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ae1=['TrackChangesEditing','div','afterInit','ELEMENT_HORIZONTAL_LINE','HorizontalLineEditing','elementToStructure','createEmptyElement','ck-horizontal-line','addClass','get','registerElementLabel','createContainerElement','editor','for','plugins','has','enableCommand','showSuggestionHighlights','insert','horizontalLine'];(function(_0x404743,_0x4ae11a){const _0x59012e=function(_0x3cfb7d){while(--_0x3cfb7d){_0x404743['push'](_0x404743['shift']());}};_0x59012e(++_0x4ae11a);}(_0x4ae1,0x172));const _0x5901=function(_0x404743,_0x4ae11a){_0x404743=_0x404743-0x0;let _0x59012e=_0x4ae1[_0x404743];return _0x59012e;};import{Plugin as _0x534bfa}from'ckeditor5/src/core';import{getTranslation as _0xfd5b0b}from'../utils/common-translations';export default class Z extends _0x534bfa{[_0x5901('0xc')](){const _0x5da37a=this[_0x5901('0x2')];if(!_0x5da37a[_0x5901('0x4')][_0x5901('0x5')](_0x5901('0xe')))return;_0x5da37a[_0x5901('0x4')][_0x5901('0x13')](_0x5901('0xa'))[_0x5901('0x6')](_0x5901('0x9'));const _0x335aed=_0x5da37a['plugins'][_0x5901('0x13')](_0x5901('0xa')),_0x1de350=_0x5da37a['locale'];_0x335aed['_descriptionFactory'][_0x5901('0x0')](_0x5901('0x9'),_0x19fdf3=>_0xfd5b0b(_0x1de350,_0x5901('0xd'),_0x19fdf3)),_0x5da37a['conversion'][_0x5901('0x3')]('dataDowncast')[_0x5901('0xf')]({'model':_0x5901('0x9'),'view':(_0x144cf3,{writer:_0x5257df,options:_0x5aceb0})=>{if(!_0x5aceb0[_0x5901('0x7')])return null;const _0x263f8f=_0x5257df[_0x5901('0x1')](_0x5901('0xb')),_0x4c9d35=_0x5257df[_0x5901('0x10')]('hr');return _0x5257df[_0x5901('0x12')](_0x5901('0x11'),_0x263f8f),_0x5257df[_0x5901('0x8')](_0x5257df['createPositionAt'](_0x263f8f,0x0),_0x4c9d35),_0x263f8f;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x529a=['getFirstRange','type','get','locale','value','_enableDefaultAttributesIntegration','registerElementLabel','htmlEmbed','TrackChangesEditing','editor','start','registerDescriptionCallback','element','afterInit','_descriptionFactory','has','ELEMENT_HTML_EMBED','attribute','key','HtmlEmbed','rawHtml','format','_registerLegacyDescription','plugins','*Change\x20%0\x20content*'];(function(_0x87d960,_0x529a33){const _0x58efc2=function(_0x3a0d8a){while(--_0x3a0d8a){_0x87d960['push'](_0x87d960['shift']());}};_0x58efc2(++_0x529a33);}(_0x529a,0x87));const _0x58ef=function(_0x87d960,_0x529a33){_0x87d960=_0x87d960-0x0;let _0x58efc2=_0x529a[_0x87d960];return _0x58efc2;};import{Plugin as _0x230512}from'ckeditor5/src/core';import{getTranslation as _0x200826}from'../utils/common-translations';export default class tt extends _0x230512{[_0x58ef('0x3')](){const _0x5e5d15=this[_0x58ef('0x18')];if(!_0x5e5d15[_0x58ef('0xd')][_0x58ef('0x5')](_0x58ef('0x9')))return;const _0x5eb21f=_0x5e5d15[_0x58ef('0xd')][_0x58ef('0x11')](_0x58ef('0x17')),_0x25ac63=_0x5e5d15['locale'];_0x5eb21f[_0x58ef('0x4')][_0x58ef('0x15')](_0x58ef('0xa'),_0x1e69a1=>_0x200826(_0x25ac63,_0x58ef('0x6'),_0x1e69a1)),_0x5eb21f[_0x58ef('0x14')]('htmlEmbed',[],[_0x58ef('0x13')]),_0x5eb21f[_0x58ef('0x4')][_0x58ef('0x1')](_0x3f83f6=>{if(_0x58ef('0x7')!=_0x3f83f6['type'])return;const {data:_0x3d9580}=_0x3f83f6;if(_0x3d9580&&_0x58ef('0x13')==_0x3d9580[_0x58ef('0x8')]&&_0x3f83f6[_0x58ef('0xf')]()[_0x58ef('0x0')]['nodeAfter']['is'](_0x58ef('0x2'),_0x58ef('0xa'))){const _0x154c18=_0x200826(_0x25ac63,_0x58ef('0x6'));return{'type':'format','content':_0x200826(_0x25ac63,'*Change\x20%0\x20content*',_0x154c18)};}}),this[_0x58ef('0xc')]();}[_0x58ef('0xc')](){const _0xb790f3=this[_0x58ef('0x18')],_0x11954d=_0xb790f3[_0x58ef('0x12')];_0xb790f3[_0x58ef('0xd')][_0x58ef('0x11')]('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1975a3=>{if('formatBlock'!=_0x1975a3[_0x58ef('0x10')])return;const {data:_0x266329}=_0x1975a3;if(_0x266329&&_0x58ef('0x16')==_0x266329['commandName']){const _0x5521cf=_0x200826(_0x11954d,_0x58ef('0x6'));return{'type':_0x58ef('0xb'),'content':_0x200826(_0x11954d,_0x58ef('0xe'),_0x5521cf)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4979=['document','element','registerDescriptionCallback','Inline\x20image\x20to\x20block\x20image','find','_descriptionFactory','toNext','_enableDefaultAttributesIntegration','editor','resizeImage','imageInline','model','TrackChangesEditing','detach','commandName','has','alt','discard','addObject','ImageResize','fromPosition','ImageCaptionEditing','key','start','accept','registerAttributeLabel','toPrevious','isEqual','registerElementLabel','type','markDeletion','findIndex','attribute','schema','markBlockFormat','nodeBefore','get','convertInlineImageToBlock','change','ImageUtils','format','getCaptionFromImageModelElement','uploadImage','FORMAT_IMAGE_SIZE','createRange','locale','width','registerCustomCallback','isCollapsed','previous','ImageEditing','filter','getFirstRange','*Set\x20image\x20width:*\x20%0','imageTypeInline','imageTextAlternative','newValue','*Reset\x20image\x20width*','insertion','_suggestionFactory','_registerLegacyDescription','insertImage','toggleImageCaption','getClosestSelectedImageElement','enableCommand','Block\x20image\x20to\x20inline\x20image','isIntersecting','markInsertion','ImageInlineEditing','isOwn','resizedWidth','createRangeOn','imageCaption','getContainedElement','getSuggestionCallback','end','chain','forceDefaultExecution','deletion','isBefore','commandParams','imageTypeBlock','getNearestSelectionRange','afterInit','selection','ELEMENT_CAPTION','plugins','subType','forward','ImageBlockEditing','formatBlock','ELEMENT_INLINE_IMAGE','isBlockImage','convertBlockImageToInline','ELEMENT_IMAGE'];(function(_0x22f587,_0x4979c1){const _0x26f6d2=function(_0x3edcfd){while(--_0x3edcfd){_0x22f587['push'](_0x22f587['shift']());}};_0x26f6d2(++_0x4979c1);}(_0x4979,0xf6));const _0x26f6=function(_0x22f587,_0x4979c1){_0x22f587=_0x22f587-0x0;let _0x26f6d2=_0x4979[_0x22f587];return _0x26f6d2;};import{Plugin as _0x562589}from'ckeditor5/src/core';import{LivePosition as _0x3651de}from'ckeditor5/src/engine';import{getTranslation as _0x135b77}from'../utils/common-translations';export default class it extends _0x562589{[_0x26f6('0x1b')](){const _0x3f77e9=this['editor'];if(!_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x59')))return;const _0x539555=_0x3f77e9['plugins']['get'](_0x26f6('0x33')),_0x5e96b0=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x4e')),_0x47de15=_0x3f77e9['locale'];_0x539555[_0x26f6('0x8')](_0x26f6('0x5')),_0x539555[_0x26f6('0x2c')][_0x26f6('0x43')]('imageBlock',_0x6594d0=>_0x135b77(_0x47de15,_0x26f6('0x26'),_0x6594d0)),_0x539555[_0x26f6('0x2c')]['registerElementLabel'](_0x26f6('0x31'),_0x1cd6df=>_0x135b77(_0x47de15,_0x26f6('0x23'),_0x1cd6df)),_0x539555['_descriptionFactory'][_0x26f6('0x43')]('caption',()=>_0x135b77(_0x47de15,_0x26f6('0x1d'))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageUploadEditing')&&_0x539555[_0x26f6('0x8')](_0x26f6('0x51')),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x21'))&&_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0xc'))&&(_0x539555[_0x26f6('0x8')]('imageTypeInline',(_0x50ca87,_0x5dedbe)=>{const _0x8047d4=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9['model'][_0x26f6('0x27')]['selection']);_0x3f77e9['model'][_0x26f6('0x4d')](()=>{_0x539555[_0x26f6('0x49')](_0x8047d4,{'commandName':_0x26f6('0x5d'),'commandParams':[_0x5dedbe]},[],'convertBlockImageToInline');});}),_0x539555['enableCommand'](_0x26f6('0x19'),(_0x455e5a,_0x255010)=>{_0x3f77e9['model'][_0x26f6('0x4d')](_0xc9215b=>{let _0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')]['document'][_0x26f6('0x1c')]),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x1ef236=_0x3651de['fromPosition'](_0x248460[_0x26f6('0x3e')],_0x26f6('0x41')),_0x4f0229=_0x3651de[_0x26f6('0x3b')](_0x248460[_0x26f6('0x13')],_0x26f6('0x2d'));_0x539555[_0x26f6('0x15')](()=>_0x455e5a(_0x255010)),_0x51a647=_0x5e96b0['getClosestSelectedImageElement'](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x248460=_0xc9215b[_0x26f6('0xf')](_0x51a647);const _0x50da98=_0xc9215b[_0x26f6('0x53')](_0x1ef236,_0x4f0229);_0x1ef236[_0x26f6('0x34')](),_0x4f0229['detach'](),_0x539555[_0x26f6('0x49')](_0x51a647,{'commandName':'imageTypeInline','commandParams':[_0x255010]},[],_0x26f6('0x4c')),_0x50da98[_0x26f6('0x3e')][_0x26f6('0x17')](_0x248460['start'])&&_0x539555[_0x26f6('0xb')](_0xc9215b[_0x26f6('0x53')](_0x50da98[_0x26f6('0x3e')],_0x248460[_0x26f6('0x3e')]),'convertInlineImageToBlock'),_0x248460[_0x26f6('0x13')][_0x26f6('0x17')](_0x50da98[_0x26f6('0x13')])&&_0x539555[_0x26f6('0xb')](_0xc9215b['createRange'](_0x248460[_0x26f6('0x13')],_0x50da98['end']),_0x26f6('0x4c'));});}),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')](_0x26f6('0x22'),_0x26f6('0x4c'),_0x26f6('0x3f'),()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('formatBlock',_0x26f6('0x4c'),_0x26f6('0x38'),_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x22'),'',_0x26f6('0x3f'))),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x2'),_0x26f6('0x4c'),'join',()=>!0x1),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),'discard',([_0x449daf])=>{const _0x2efafd=_0x539555[_0x26f6('0x3')][_0x26f6('0x12')](_0x26f6('0x2'),'',_0x26f6('0x38'));let _0x5a2bac=_0x449daf['start'],_0x2b87a9=_0x449daf[_0x26f6('0x13')];const _0x4fb2fc=_0x3f77e9[_0x26f6('0x32')]['schema'][_0x26f6('0x1a')](_0x5a2bac,'backward'),_0x315462=_0x3f77e9['model'][_0x26f6('0x48')][_0x26f6('0x1a')](_0x2b87a9,_0x26f6('0x20'));_0x4fb2fc[_0x26f6('0x57')]&&(_0x5a2bac=_0x4fb2fc[_0x26f6('0x3e')]),_0x315462['isCollapsed']&&(_0x2b87a9=_0x315462[_0x26f6('0x13')]),_0x2efafd([_0x3f77e9[_0x26f6('0x32')]['createRange'](_0x5a2bac,_0x2b87a9)]);}),_0x539555['_suggestionFactory'][_0x26f6('0x56')](_0x26f6('0x22'),'convertInlineImageToBlock',_0x26f6('0x14'),_0xddebe),_0x539555[_0x26f6('0x3')][_0x26f6('0x56')]('insertion',_0x26f6('0x4c'),_0x26f6('0x14'),_0xddebe)),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')](_0x26f6('0x3c'))&&(_0x539555['enableCommand'](_0x26f6('0x6'),(_0x5154d2,_0x661516)=>{const _0x1299b6=_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x4b')]('ImageCaptionUtils');let _0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9['model'][_0x26f6('0x27')][_0x26f6('0x1c')]),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66);_0x3f77e9[_0x26f6('0x32')]['change'](()=>{if(_0x475bf4)return void _0x539555[_0x26f6('0x45')](_0x3f77e9[_0x26f6('0x32')]['createRangeOn'](_0x475bf4));const _0x4af9af=_0x5e96b0[_0x26f6('0x24')](_0x1e2c66);_0x5154d2(_0x661516),_0x1e2c66=_0x5e96b0[_0x26f6('0x7')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0x27')]['selection']),_0x475bf4=_0x1299b6[_0x26f6('0x50')](_0x1e2c66),_0x539555[_0x26f6('0xb')](_0x3f77e9[_0x26f6('0x32')][_0x26f6('0xf')](_0x475bf4),_0x4af9af?null:_0x26f6('0x10'));});}),_0x539555[_0x26f6('0x3')]['registerCustomCallback'](_0x26f6('0x2'),_0x26f6('0x10'),'chain',_0xddebe));const _0x53ab6f=[{'type':_0x26f6('0x22'),'subType':'imageStylePreApply'},{'type':_0x26f6('0x2'),'subType':'imageCaption'},{'type':_0x26f6('0x22'),'subType':_0x26f6('0x4c')},{'type':_0x26f6('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1eb605(_0x2fec63,_0x2bdc19){const _0x34cd19=_0x53ab6f[_0x26f6('0x46')](({type:_0x11c3c9,subType:_0x54c68f})=>_0x2fec63[_0x26f6('0x44')]==_0x11c3c9&&_0x2fec63['subType']==_0x54c68f),_0x347e60=_0x53ab6f[_0x26f6('0x46')](({type:_0x23a390,subType:_0x1fbc72})=>_0x2bdc19[_0x26f6('0x44')]==_0x23a390&&_0x2bdc19[_0x26f6('0x1f')]==_0x1fbc72);if(_0x34cd19<0x0||_0x347e60<0x0)return!0x1;const _0x4ed09b=_0x2fec63[_0x26f6('0x5b')](),_0x8bd15f=_0x2bdc19[_0x26f6('0x5b')]();if((0x0==_0x34cd19||0x1==_0x34cd19)&&0x2==_0x347e60&&_0x4ed09b[_0x26f6('0xa')](_0x8bd15f))return!0x0;if(0x2==_0x34cd19&&0x3==_0x347e60){const _0xda7e29=_0x539555['_findSuggestions'](_0x4ed09b,_0x26f6('0x2'))[_0x26f6('0x5a')](({suggestion:_0x4fc7af,meta:_0x18c157})=>_0x18c157[_0x26f6('0xd')]&&_0x26f6('0x4c')==_0x4fc7af[_0x26f6('0x1f')]);if(_0xda7e29['length']>0x1&&_0x8bd15f['end'][_0x26f6('0x42')](_0x4ed09b[_0x26f6('0x3e')]))return!0x0;if(0x1==_0xda7e29['length']&&(_0x4ed09b[_0x26f6('0x3e')][_0x26f6('0x42')](_0x8bd15f[_0x26f6('0x13')])||_0x4ed09b[_0x26f6('0x13')][_0x26f6('0x42')](_0x8bd15f['start'])))return!0x0;}if(0x3==_0x34cd19&&0x3==_0x347e60&&_0x4ed09b['start'][_0x26f6('0x17')](_0x8bd15f[_0x26f6('0x3e')])){const _0xae6e51=_0x4ed09b['end']['nodeAfter'],_0x529acf=_0x8bd15f[_0x26f6('0x3e')][_0x26f6('0x4a')];return _0x5e96b0[_0x26f6('0x24')](_0xae6e51)&&_0xae6e51===_0x529acf;}return!0x1;}function _0xddebe(_0x343935,_0x47850f){return _0x1eb605(_0x343935,_0x47850f)?[_0x343935,_0x47850f]:_0x1eb605(_0x47850f,_0x343935)?[_0x47850f,_0x343935]:null;}_0x3f77e9['plugins'][_0x26f6('0x36')](_0x26f6('0x3a'))&&(_0x539555['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x26f6('0xe')]),_0x539555[_0x26f6('0x2c')][_0x26f6('0x40')](_0x26f6('0xe'),_0x135b77(_0x47de15,_0x26f6('0x52')))),_0x3f77e9[_0x26f6('0x1e')][_0x26f6('0x36')]('ImageTextAlternativeEditing')&&_0x539555[_0x26f6('0x2e')](_0x26f6('0x5e'),[],[_0x26f6('0x37')]),_0x539555['_descriptionFactory'][_0x26f6('0x29')](_0x4cf4e2=>{if(!!_0x53ab6f[_0x26f6('0x2b')](({type:_0x5e187c,subType:_0x2faece})=>_0x4cf4e2['type']==_0x5e187c&&_0x4cf4e2[_0x26f6('0x1f')]==_0x2faece))return _0x4cf4e2[_0x26f6('0x58')]?{}:void 0x0;}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x41059b=>{if(_0x26f6('0x2')==_0x41059b[_0x26f6('0x44')]||_0x26f6('0x16')==_0x41059b[_0x26f6('0x44')]){const _0x531e29=_0x41059b[_0x26f6('0x11')]();if(_0x531e29&&_0x531e29['is'](_0x26f6('0x28'),'caption'))return{'type':_0x26f6('0x2')==_0x41059b['type']?_0x26f6('0x39'):'removeObject','element':_0x531e29,'quantity':0x1};}}),_0x539555[_0x26f6('0x2c')][_0x26f6('0x29')](_0x49644b=>_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x4c')==_0x49644b['subType']?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x2a')}:_0x26f6('0x22')==_0x49644b[_0x26f6('0x44')]&&_0x26f6('0x25')==_0x49644b[_0x26f6('0x1f')]?{'type':_0x26f6('0x4f'),'content':_0x26f6('0x9')}:void 0x0),_0x539555[_0x26f6('0x2c')]['registerDescriptionCallback'](_0x16bb43=>{if(_0x26f6('0x47')!=_0x16bb43['type'])return;const {data:_0x531b99}=_0x16bb43;if(!_0x531b99||_0x26f6('0x37')!=_0x531b99[_0x26f6('0x3d')])return;const _0x4b9277=_0x531b99[_0x26f6('0x0')];return _0x4b9277?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x47de15,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b9277+'\x22')}:{'type':'format','content':_0x135b77(_0x47de15,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x26f6('0x4')]();}[_0x26f6('0x4')](){const _0x204311=this[_0x26f6('0x2f')],_0x18dfdd=_0x204311[_0x26f6('0x54')];_0x204311[_0x26f6('0x1e')][_0x26f6('0x4b')](_0x26f6('0x33'))[_0x26f6('0x2c')][_0x26f6('0x29')](_0x3c3402=>{if(_0x26f6('0x22')!=_0x3c3402[_0x26f6('0x44')]&&'formatInline'!=_0x3c3402['type'])return;const {data:_0xac90b6}=_0x3c3402;if(_0xac90b6){if('imageTextAlternative'==_0xac90b6[_0x26f6('0x35')]){const _0xda9578=_0xac90b6['commandParams'][0x0][_0x26f6('0x0')];return _0xda9578?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xda9578+'\x22')}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,'*Remove\x20image\x20text\x20alternative*')};}if(_0x26f6('0x30')==_0xac90b6['commandName']){const _0x32ce1f=_0xac90b6[_0x26f6('0x18')][0x0][_0x26f6('0x55')];return _0x32ce1f?{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x5c'),_0x32ce1f)}:{'type':_0x26f6('0x4f'),'content':_0x135b77(_0x18dfdd,_0x26f6('0x1'))};}}});}}
|
|
23
|
+
const _0x3128=['getClosestSelectedImageElement','ImageUploadEditing','commandParams','afterInit','locale','selection','insertion','convertBlockImageToInline','chain','addObject','fromPosition','document','markInsertion','createRange','subType','alt','imageStylePreApply','commandName','key','isCollapsed','formatBlock','_descriptionFactory','ImageInlineEditing','ImageTextAlternativeEditing','TrackChangesEditing','newValue','filter','*Set\x20image\x20text\x20alternative:*\x20%0','FORMAT_IMAGE_SIZE','previous','markBlockFormat','model','*Set\x20image\x20width:*\x20%0','has','ImageBlockEditing','caption','toPrevious','change','ImageCaptionEditing','ELEMENT_IMAGE','discard','enableCommand','find','imageTextAlternative','isBlockImage','ImageUtils','imageTypeInline','_findSuggestions','isEqual','_enableDefaultAttributesIntegration','ImageCaptionUtils','resizeImage','registerCustomCallback','length','markDeletion','getCaptionFromImageModelElement','accept','ImageResize','ELEMENT_INLINE_IMAGE','getFirstRange','attribute','uploadImage','editor','imageCaption','getSuggestionCallback','getContainedElement','*Remove\x20image\x20text\x20alternative*','_registerLegacyDescription','imageTypeBlock','resizedWidth','Block\x20image\x20to\x20inline\x20image','imageInline','get','createRangeOn','convertInlineImageToBlock','element','toNext','registerElementLabel','_suggestionFactory','nodeBefore','isBefore','detach','end','join','deletion','ELEMENT_CAPTION','forceDefaultExecution','isOwn','plugins','registerDescriptionCallback','findIndex','getNearestSelectionRange','type','insertImage','start','schema','format'];(function(_0xae0df0,_0x3128d8){const _0x1d34dd=function(_0x37ead7){while(--_0x37ead7){_0xae0df0['push'](_0xae0df0['shift']());}};_0x1d34dd(++_0x3128d8);}(_0x3128,0x91));const _0x1d34=function(_0xae0df0,_0x3128d8){_0xae0df0=_0xae0df0-0x0;let _0x1d34dd=_0x3128[_0xae0df0];return _0x1d34dd;};import{Plugin as _0x297a88}from'ckeditor5/src/core';import{LivePosition as _0xcf34e}from'ckeditor5/src/engine';import{getTranslation as _0x1297aa}from'../utils/common-translations';export default class it extends _0x297a88{[_0x1d34('0x34')](){const _0x7761ac=this[_0x1d34('0xe')];if(!_0x7761ac['plugins'][_0x1d34('0x52')]('ImageEditing'))return;const _0x28c148=_0x7761ac['plugins'][_0x1d34('0x18')](_0x1d34('0x49')),_0x2395c3=_0x7761ac[_0x1d34('0x28')]['get'](_0x1d34('0x5e')),_0x534197=_0x7761ac[_0x1d34('0x35')];_0x28c148[_0x1d34('0x5a')](_0x1d34('0x2d')),_0x28c148['_descriptionFactory'][_0x1d34('0x1d')]('imageBlock',_0x5ebc48=>_0x1297aa(_0x534197,_0x1d34('0x58'),_0x5ebc48)),_0x28c148[_0x1d34('0x46')][_0x1d34('0x1d')](_0x1d34('0x17'),_0x3ae680=>_0x1297aa(_0x534197,_0x1d34('0xa'),_0x3ae680)),_0x28c148[_0x1d34('0x46')][_0x1d34('0x1d')]('caption',()=>_0x1297aa(_0x534197,_0x1d34('0x25'))),_0x7761ac[_0x1d34('0x28')][_0x1d34('0x52')](_0x1d34('0x32'))&&_0x28c148[_0x1d34('0x5a')](_0x1d34('0xd')),_0x7761ac[_0x1d34('0x28')]['has'](_0x1d34('0x53'))&&_0x7761ac[_0x1d34('0x28')][_0x1d34('0x52')](_0x1d34('0x47'))&&(_0x28c148[_0x1d34('0x5a')](_0x1d34('0x5f'),(_0x515f28,_0x134499)=>{const _0x5b28ee=_0x2395c3['getClosestSelectedImageElement'](_0x7761ac['model'][_0x1d34('0x3c')]['selection']);_0x7761ac['model'][_0x1d34('0x56')](()=>{_0x28c148[_0x1d34('0x4f')](_0x5b28ee,{'commandName':_0x1d34('0x5f'),'commandParams':[_0x134499]},[],'convertBlockImageToInline');});}),_0x28c148['enableCommand'](_0x1d34('0x14'),(_0x48fe26,_0x115cdc)=>{_0x7761ac[_0x1d34('0x50')]['change'](_0x482f09=>{let _0x5b44a6=_0x2395c3[_0x1d34('0x31')](_0x7761ac[_0x1d34('0x50')][_0x1d34('0x3c')][_0x1d34('0x36')]),_0x42dace=_0x482f09['createRangeOn'](_0x5b44a6);const _0x45a18c=_0xcf34e[_0x1d34('0x3b')](_0x42dace['start'],_0x1d34('0x55')),_0x2de9e7=_0xcf34e[_0x1d34('0x3b')](_0x42dace['end'],_0x1d34('0x1c'));_0x28c148[_0x1d34('0x26')](()=>_0x48fe26(_0x115cdc)),_0x5b44a6=_0x2395c3[_0x1d34('0x31')](_0x7761ac['model']['document'][_0x1d34('0x36')]),_0x42dace=_0x482f09[_0x1d34('0x19')](_0x5b44a6);const _0x31b6f2=_0x482f09[_0x1d34('0x3e')](_0x45a18c,_0x2de9e7);_0x45a18c[_0x1d34('0x21')](),_0x2de9e7['detach'](),_0x28c148['markBlockFormat'](_0x5b44a6,{'commandName':_0x1d34('0x5f'),'commandParams':[_0x115cdc]},[],_0x1d34('0x1a')),_0x31b6f2[_0x1d34('0x2e')][_0x1d34('0x20')](_0x42dace[_0x1d34('0x2e')])&&_0x28c148['markInsertion'](_0x482f09['createRange'](_0x31b6f2[_0x1d34('0x2e')],_0x42dace['start']),_0x1d34('0x1a')),_0x42dace[_0x1d34('0x22')][_0x1d34('0x20')](_0x31b6f2['end'])&&_0x28c148[_0x1d34('0x3d')](_0x482f09['createRange'](_0x42dace[_0x1d34('0x22')],_0x31b6f2[_0x1d34('0x22')]),'convertInlineImageToBlock');});}),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x4')](_0x1d34('0x45'),_0x1d34('0x1a'),_0x1d34('0x23'),()=>!0x1),_0x28c148['_suggestionFactory'][_0x1d34('0x4')](_0x1d34('0x45'),_0x1d34('0x1a'),_0x1d34('0x8'),()=>!0x1),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x4')](_0x1d34('0x45'),_0x1d34('0x1a'),_0x1d34('0x59'),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x10')](_0x1d34('0x45'),'','accept')),_0x28c148['_suggestionFactory']['registerCustomCallback'](_0x1d34('0x37'),_0x1d34('0x1a'),_0x1d34('0x23'),()=>!0x1),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x4')]('insertion',_0x1d34('0x1a'),_0x1d34('0x59'),([_0x344f1d])=>{const _0xb84b93=_0x28c148['_suggestionFactory'][_0x1d34('0x10')]('insertion','','discard');let _0xe88686=_0x344f1d[_0x1d34('0x2e')],_0x2715e8=_0x344f1d['end'];const _0x4af99d=_0x7761ac[_0x1d34('0x50')][_0x1d34('0x2f')]['getNearestSelectionRange'](_0xe88686,'backward'),_0x27d166=_0x7761ac[_0x1d34('0x50')][_0x1d34('0x2f')][_0x1d34('0x2b')](_0x2715e8,'forward');_0x4af99d[_0x1d34('0x44')]&&(_0xe88686=_0x4af99d[_0x1d34('0x2e')]),_0x27d166[_0x1d34('0x44')]&&(_0x2715e8=_0x27d166[_0x1d34('0x22')]),_0xb84b93([_0x7761ac[_0x1d34('0x50')]['createRange'](_0xe88686,_0x2715e8)]);}),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x4')](_0x1d34('0x45'),'convertInlineImageToBlock',_0x1d34('0x39'),_0x2addcf),_0x28c148[_0x1d34('0x1e')]['registerCustomCallback'](_0x1d34('0x37'),_0x1d34('0x1a'),_0x1d34('0x39'),_0x2addcf)),_0x7761ac[_0x1d34('0x28')]['has'](_0x1d34('0x57'))&&(_0x28c148[_0x1d34('0x5a')]('toggleImageCaption',(_0x38d13c,_0xbfef20)=>{const _0x45a8c9=_0x7761ac[_0x1d34('0x28')][_0x1d34('0x18')](_0x1d34('0x2'));let _0xb9f455=_0x2395c3[_0x1d34('0x31')](_0x7761ac['model'][_0x1d34('0x3c')][_0x1d34('0x36')]),_0x24dd4d=_0x45a8c9[_0x1d34('0x7')](_0xb9f455);_0x7761ac[_0x1d34('0x50')][_0x1d34('0x56')](()=>{if(_0x24dd4d)return void _0x28c148[_0x1d34('0x6')](_0x7761ac[_0x1d34('0x50')]['createRangeOn'](_0x24dd4d));const _0x3b5c0e=_0x2395c3[_0x1d34('0x5d')](_0xb9f455);_0x38d13c(_0xbfef20),_0xb9f455=_0x2395c3['getClosestSelectedImageElement'](_0x7761ac[_0x1d34('0x50')]['document'][_0x1d34('0x36')]),_0x24dd4d=_0x45a8c9[_0x1d34('0x7')](_0xb9f455),_0x28c148[_0x1d34('0x3d')](_0x7761ac[_0x1d34('0x50')][_0x1d34('0x19')](_0x24dd4d),_0x3b5c0e?null:'imageCaption');});}),_0x28c148[_0x1d34('0x1e')][_0x1d34('0x4')]('insertion','imageCaption','chain',_0x2addcf));const _0x1e29da=[{'type':_0x1d34('0x45'),'subType':_0x1d34('0x41')},{'type':_0x1d34('0x37'),'subType':_0x1d34('0xf')},{'type':_0x1d34('0x45'),'subType':_0x1d34('0x1a')},{'type':_0x1d34('0x37'),'subType':_0x1d34('0x1a')}];function _0x369a23(_0x2c77bf,_0x2ea7c0){const _0x1081fe=_0x1e29da[_0x1d34('0x2a')](({type:_0x36e8f1,subType:_0x44f0be})=>_0x2c77bf[_0x1d34('0x2c')]==_0x36e8f1&&_0x2c77bf[_0x1d34('0x3f')]==_0x44f0be),_0x21416c=_0x1e29da[_0x1d34('0x2a')](({type:_0x5ac293,subType:_0x99ec5c})=>_0x2ea7c0['type']==_0x5ac293&&_0x2ea7c0['subType']==_0x99ec5c);if(_0x1081fe<0x0||_0x21416c<0x0)return!0x1;const _0x241ada=_0x2c77bf[_0x1d34('0xb')](),_0x347771=_0x2ea7c0[_0x1d34('0xb')]();if((0x0==_0x1081fe||0x1==_0x1081fe)&&0x2==_0x21416c&&_0x241ada['isIntersecting'](_0x347771))return!0x0;if(0x2==_0x1081fe&&0x3==_0x21416c){const _0x2048d2=_0x28c148[_0x1d34('0x60')](_0x241ada,_0x1d34('0x37'))[_0x1d34('0x4b')](({suggestion:_0x5c657b,meta:_0x3a1ca9})=>_0x3a1ca9[_0x1d34('0x27')]&&_0x1d34('0x1a')==_0x5c657b[_0x1d34('0x3f')]);if(_0x2048d2[_0x1d34('0x5')]>0x1&&_0x347771[_0x1d34('0x22')][_0x1d34('0x0')](_0x241ada['start']))return!0x0;if(0x1==_0x2048d2['length']&&(_0x241ada[_0x1d34('0x2e')]['isEqual'](_0x347771['end'])||_0x241ada['end'][_0x1d34('0x0')](_0x347771[_0x1d34('0x2e')])))return!0x0;}if(0x3==_0x1081fe&&0x3==_0x21416c&&_0x241ada['start'][_0x1d34('0x20')](_0x347771[_0x1d34('0x2e')])){const _0xc401a0=_0x241ada['end']['nodeAfter'],_0x475057=_0x347771['start'][_0x1d34('0x1f')];return _0x2395c3[_0x1d34('0x5d')](_0xc401a0)&&_0xc401a0===_0x475057;}return!0x1;}function _0x2addcf(_0x2abb09,_0x318423){return _0x369a23(_0x2abb09,_0x318423)?[_0x2abb09,_0x318423]:_0x369a23(_0x318423,_0x2abb09)?[_0x318423,_0x2abb09]:null;}_0x7761ac[_0x1d34('0x28')]['has'](_0x1d34('0x9'))&&(_0x28c148[_0x1d34('0x1')](_0x1d34('0x3'),[],[_0x1d34('0x15')]),_0x28c148[_0x1d34('0x46')]['registerAttributeLabel'](_0x1d34('0x15'),_0x1297aa(_0x534197,_0x1d34('0x4d')))),_0x7761ac[_0x1d34('0x28')]['has'](_0x1d34('0x48'))&&_0x28c148[_0x1d34('0x1')](_0x1d34('0x5c'),[],[_0x1d34('0x40')]),_0x28c148[_0x1d34('0x46')][_0x1d34('0x29')](_0x5e5e23=>{if(!!_0x1e29da[_0x1d34('0x5b')](({type:_0x9874af,subType:_0x233abd})=>_0x5e5e23['type']==_0x9874af&&_0x5e5e23['subType']==_0x233abd))return _0x5e5e23[_0x1d34('0x4e')]?{}:void 0x0;}),_0x28c148['_descriptionFactory'][_0x1d34('0x29')](_0x244144=>{if(_0x1d34('0x37')==_0x244144[_0x1d34('0x2c')]||_0x1d34('0x24')==_0x244144[_0x1d34('0x2c')]){const _0xb5aba5=_0x244144[_0x1d34('0x11')]();if(_0xb5aba5&&_0xb5aba5['is'](_0x1d34('0x1b'),_0x1d34('0x54')))return{'type':_0x1d34('0x37')==_0x244144['type']?_0x1d34('0x3a'):'removeObject','element':_0xb5aba5,'quantity':0x1};}}),_0x28c148[_0x1d34('0x46')][_0x1d34('0x29')](_0x359828=>'formatBlock'==_0x359828['type']&&_0x1d34('0x1a')==_0x359828['subType']?{'type':_0x1d34('0x30'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x1d34('0x45')==_0x359828[_0x1d34('0x2c')]&&_0x1d34('0x38')==_0x359828['subType']?{'type':_0x1d34('0x30'),'content':_0x1d34('0x16')}:void 0x0),_0x28c148[_0x1d34('0x46')]['registerDescriptionCallback'](_0x1ee4a3=>{if(_0x1d34('0xc')!=_0x1ee4a3[_0x1d34('0x2c')])return;const {data:_0x128541}=_0x1ee4a3;if(!_0x128541||_0x1d34('0x40')!=_0x128541[_0x1d34('0x43')])return;const _0x806f86=_0x128541['newValue'];return _0x806f86?{'type':_0x1d34('0x30'),'content':_0x1297aa(_0x534197,_0x1d34('0x4c'),'\x22'+_0x806f86+'\x22')}:{'type':_0x1d34('0x30'),'content':_0x1297aa(_0x534197,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}[_0x1d34('0x13')](){const _0x139f58=this['editor'],_0x48094b=_0x139f58[_0x1d34('0x35')];_0x139f58[_0x1d34('0x28')][_0x1d34('0x18')](_0x1d34('0x49'))[_0x1d34('0x46')][_0x1d34('0x29')](_0x16a74f=>{if(_0x1d34('0x45')!=_0x16a74f[_0x1d34('0x2c')]&&'formatInline'!=_0x16a74f['type'])return;const {data:_0x4f15e8}=_0x16a74f;if(_0x4f15e8){if(_0x1d34('0x5c')==_0x4f15e8[_0x1d34('0x42')]){const _0x2b6d3c=_0x4f15e8[_0x1d34('0x33')][0x0][_0x1d34('0x4a')];return _0x2b6d3c?{'type':_0x1d34('0x30'),'content':_0x1297aa(_0x48094b,_0x1d34('0x4c'),'\x22'+_0x2b6d3c+'\x22')}:{'type':_0x1d34('0x30'),'content':_0x1297aa(_0x48094b,_0x1d34('0x12'))};}if(_0x1d34('0x3')==_0x4f15e8['commandName']){const _0x45ed6a=_0x4f15e8[_0x1d34('0x33')][0x0]['width'];return _0x45ed6a?{'type':'format','content':_0x1297aa(_0x48094b,_0x1d34('0x51'),_0x45ed6a)}:{'type':_0x1d34('0x30'),'content':_0x1297aa(_0x48094b,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ee4=['newValue','_registerLegacyDescription','locale','_handleLegacySuggestions','commandName','format','plugins','editor','type','afterInit','ImageEditing','has','getSuggestionCallback','src','_enableDefaultAttributesIntegration','replaceImageSource','registerDescriptionCallback','_suggestionFactory','discard','registerCustomCallback','get','accept','formatBlock','TrackChangesEditing','*Replace\x20image\x20URL*','_descriptionFactory'];(function(_0x8e747a,_0x5ee446){const _0x343f88=function(_0x4110f9){while(--_0x4110f9){_0x8e747a['push'](_0x8e747a['shift']());}};_0x343f88(++_0x5ee446);}(_0x5ee4,0x89));const _0x343f=function(_0x8e747a,_0x5ee446){_0x8e747a=_0x8e747a-0x0;let _0x343f88=_0x5ee4[_0x8e747a];return _0x343f88;};import{Plugin as _0x299a23}from'ckeditor5/src/core';import{getTranslation as _0xaa0e4c}from'../utils/common-translations';export default class et extends _0x299a23{[_0x343f('0x2')](){if(!this['editor'][_0x343f('0x19')][_0x343f('0x4')](_0x343f('0x3')))return;const _0x221832=this['editor'][_0x343f('0x15')],_0x73d083=this[_0x343f('0x0')][_0x343f('0x19')]['get']('TrackChangesEditing');_0x73d083[_0x343f('0x7')](_0x343f('0x8'),[],[_0x343f('0x6')]),_0x73d083['_descriptionFactory']['registerDescriptionCallback'](_0x30a9e8=>{if('attribute'!=_0x30a9e8['type'])return;const {data:_0x5ba8a5}=_0x30a9e8;return _0x5ba8a5&&_0x343f('0x6')==_0x5ba8a5['key']?_0x5ba8a5[_0x343f('0x13')]&&_0x5ba8a5['oldValue']?{'type':'format','content':_0xaa0e4c(_0x221832,'*Replace\x20image\x20URL*')}:{'type':_0x343f('0x18'),'content':''}:void 0x0;}),this[_0x343f('0x16')]();}['_handleLegacySuggestions'](){const _0x5042cd=this[_0x343f('0x0')][_0x343f('0x19')][_0x343f('0xd')](_0x343f('0x10'));_0x5042cd[_0x343f('0xa')][_0x343f('0xc')]('formatBlock','replaceImageSource',_0x343f('0xe'),_0x5042cd[_0x343f('0xa')][_0x343f('0x5')](_0x343f('0xf'),null,'discard')),_0x5042cd[_0x343f('0xa')]['registerCustomCallback'](_0x343f('0xf'),_0x343f('0x8'),_0x343f('0xb'),_0x5042cd['_suggestionFactory']['getSuggestionCallback'](_0x343f('0xf'),null,_0x343f('0xe'))),this['_registerLegacyDescription']();}[_0x343f('0x14')](){const _0x2f177e=this[_0x343f('0x0')],_0x892881=_0x2f177e[_0x343f('0x15')];_0x2f177e[_0x343f('0x19')]['get'](_0x343f('0x10'))[_0x343f('0x12')][_0x343f('0x9')](_0x3ce40e=>{if(_0x343f('0xf')!=_0x3ce40e[_0x343f('0x1')]&&'formatInline'!=_0x3ce40e[_0x343f('0x1')])return;const {data:_0x17dffc}=_0x3ce40e;return _0x17dffc&&'replaceImageSource'===_0x17dffc[_0x343f('0x17')]?{'type':_0x343f('0x18'),'content':_0xaa0e4c(_0x892881,_0x343f('0x11'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5852=['change','discardSuggestion','_findSuggestions','shouldConvertImageType','imageStyle','ImageUtils','isBlockImage','title','model','normalizedStyles','createRangeOn','commands','side','editor','imageStylePreApply','filter','getSuggestionCallback','suggestion','setImageNaturalSizeAttributes','_suggestionFactory','start','ImageStyleEditing','commandName','*Format:*\x20%0','refresh','findIndex','isIntersecting','newRange','locale','isBefore','from','getFirstRange','differ','getSuggestions','document','_registerLegacyDescription','nodeAfter','Users','TrackChangesEditing','hasSuggestion','convertInlineImageToBlock','markInlineFormat','end','plugins','insertion','imageTypeBlock','formatBlock','imageStylePostApply','format','commandParams','length','getSuggestion','markBlockFormat','commandReversedParams','next','selection','type','getContainedElement','subType','registerPostFixer','registerDescriptionCallback','enableCommand','value','imageTypeInline','accept','head','toLowerCase','isOwn','nodeBefore','formatInline','FORMAT_SIDE_IMAGE','isEqual','registerCustomCallback','chain','isInContent','_descriptionFactory','author','imageCaption','name','isInlineImage','getClosestSelectedImageElement','has','get','join'];(function(_0x9597d8,_0x5852fd){const _0xed2ca9=function(_0x1cf9df){while(--_0x1cf9df){_0x9597d8['push'](_0x9597d8['shift']());}};_0xed2ca9(++_0x5852fd);}(_0x5852,0x8b));const _0xed2c=function(_0x9597d8,_0x5852fd){_0x9597d8=_0x9597d8-0x0;let _0xed2ca9=_0x5852[_0x9597d8];return _0xed2ca9;};import{Plugin as _0x206b59}from'ckeditor5/src/core';import{uid as _0x1289a7}from'ckeditor5/src/utils';import{getTranslation as _0x2a4fb3}from'../utils/common-translations';export default class nt extends _0x206b59{['afterInit'](){const _0x5a0901=this[_0xed2c('0x2a')];if(!_0x5a0901[_0xed2c('0x48')][_0xed2c('0x1a')](_0xed2c('0x32')))return;const _0x43b581=_0x5a0901[_0xed2c('0x48')][_0xed2c('0x1b')](_0xed2c('0x43')),_0x265b4=_0x5a0901[_0xed2c('0x48')][_0xed2c('0x1b')](_0xed2c('0x22')),_0x51604f={};_0x43b581[_0xed2c('0x6')]('imageStyle',(_0x24c885,_0x880ac9)=>{const _0x15a06b=_0x5a0901[_0xed2c('0x48')][_0xed2c('0x1b')](_0xed2c('0x42'))['me'],_0x2da4b7=_0x5a0901[_0xed2c('0x28')][_0xed2c('0x1b')]('imageStyle');let _0x42f905=_0x265b4[_0xed2c('0x19')](_0x5a0901[_0xed2c('0x25')][_0xed2c('0x3f')]['selection']),_0x4283df=_0x5a0901[_0xed2c('0x25')][_0xed2c('0x27')](_0x42f905),_0x22ead1=_0x2da4b7['value'];if(_0x22ead1==_0x880ac9['value'])return;const _0x3a9d37={'commandName':_0xed2c('0x21'),'commandParams':[_0x880ac9],'formatGroupId':_0x1289a7()};_0x5a0901[_0xed2c('0x25')][_0xed2c('0x1d')](()=>{if(_0x43b581[_0xed2c('0x3e')]()['filter'](_0x531b69=>_0x531b69['isInContent']&&_0x15a06b==_0x531b69[_0xed2c('0x15')]&&('formatBlock'==_0x531b69[_0xed2c('0x1')]||_0xed2c('0xe')==_0x531b69['type'])&&(_0xed2c('0x2b')==_0x531b69['subType']||'imageStylePostApply'==_0x531b69['subType'])&&_0x531b69[_0xed2c('0x3c')]()['isEqual'](_0x4283df))['forEach'](_0x486f1d=>_0x43b581[_0xed2c('0x1e')](_0x486f1d[_0xed2c('0xa')])),_0x42f905=_0x265b4[_0xed2c('0x19')](_0x5a0901[_0xed2c('0x25')][_0xed2c('0x3f')]['selection']),_0x4283df=_0x5a0901['model']['createRangeOn'](_0x42f905),_0x2da4b7[_0xed2c('0x35')](),_0x5a0901['commands'][_0xed2c('0x1b')](_0xed2c('0x8'))[_0xed2c('0x35')](),_0x5a0901[_0xed2c('0x28')][_0xed2c('0x1b')](_0xed2c('0x4a'))[_0xed2c('0x35')](),_0x22ead1=_0x2da4b7[_0xed2c('0x7')],_0x22ead1!=_0x880ac9[_0xed2c('0x7')])return _0x265b4[_0xed2c('0x18')](_0x42f905)&&_0x2da4b7[_0xed2c('0x20')](_0x880ac9['value'],_0x42f905)?(_0x24c885({..._0x880ac9,'setImageSizes':!0x1}),_0x42f905=_0x265b4[_0xed2c('0x19')](_0x5a0901[_0xed2c('0x25')][_0xed2c('0x3f')][_0xed2c('0x0')]),void _0x43b581[_0xed2c('0x51')](_0x42f905,{..._0x3a9d37,'commandReversedParams':[{'value':_0x22ead1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x265b4[_0xed2c('0x23')](_0x42f905)?_0x43b581[_0xed2c('0x51')](_0x42f905,_0x3a9d37,[],_0xed2c('0x4c')):_0x43b581[_0xed2c('0x46')](_0x4283df,_0x3a9d37,'imageStylePostApply'));});});for(const _0x266fd8 of _0x5a0901[_0xed2c('0x48')]['get'](_0xed2c('0x32'))[_0xed2c('0x26')])_0x51604f[_0x266fd8[_0xed2c('0x17')]]=_0x266fd8[_0xed2c('0x24')][_0xed2c('0xb')]();_0x43b581[_0xed2c('0x30')]['registerCustomCallback'](_0xed2c('0x4b'),_0xed2c('0x2b'),_0xed2c('0x1c'),()=>!0x1),_0x43b581[_0xed2c('0x30')][_0xed2c('0x11')](_0xed2c('0x4b'),'imageStylePostApply','join',()=>!0x1),_0x43b581[_0xed2c('0x30')][_0xed2c('0x11')](_0xed2c('0xe'),_0xed2c('0x4c'),_0xed2c('0x1c'),()=>!0x1),_0x43b581[_0xed2c('0x30')][_0xed2c('0x11')](_0xed2c('0x4b'),'imageStylePreApply','accept',([_0x2bc0a3])=>{_0x265b4[_0xed2c('0x2f')](_0x2bc0a3[_0xed2c('0x2')]());}),_0x43b581[_0xed2c('0x30')][_0xed2c('0x11')](_0xed2c('0x4b'),_0xed2c('0x2b'),'discard',(_0x3f0f50,_0x37b0d1)=>{_0x43b581[_0xed2c('0x30')][_0xed2c('0x2d')](_0xed2c('0x4b'),'',_0xed2c('0x9'))(_0x3f0f50,{'commandName':_0x37b0d1[_0xed2c('0x33')],'commandParams':_0x37b0d1[_0xed2c('0x52')]});}),_0x43b581['_suggestionFactory']['registerCustomCallback'](_0xed2c('0x4b'),_0xed2c('0x2b'),_0xed2c('0x12'),function(_0x131e4c,_0x2f76a3){if(_0x1a25a2(_0x131e4c,_0x2f76a3))return[_0x131e4c,_0x2f76a3];if(_0x1a25a2(_0x2f76a3,_0x131e4c))return[_0x2f76a3,_0x131e4c];return null;});const _0x444429=[{'type':_0xed2c('0x4b'),'subType':'imageStylePreApply'},{'type':_0xed2c('0x49'),'subType':_0xed2c('0x16')},{'type':_0xed2c('0x4b'),'subType':_0xed2c('0x45')},{'type':_0xed2c('0x49'),'subType':'convertInlineImageToBlock'}];function _0x1a25a2(_0x139390,_0x291b8e){const _0x36be71=_0x444429[_0xed2c('0x36')](({type:_0xec0846,subType:_0x4aac9a})=>_0x139390[_0xed2c('0x1')]==_0xec0846&&_0x139390[_0xed2c('0x3')]==_0x4aac9a),_0x5501ef=_0x444429[_0xed2c('0x36')](({type:_0x389ade,subType:_0xd34456})=>_0x291b8e[_0xed2c('0x1')]==_0x389ade&&_0x291b8e['subType']==_0xd34456);if(_0x36be71<0x0||_0x5501ef<0x0)return!0x1;const _0x336f73=_0x139390[_0xed2c('0x3c')](),_0x1506df=_0x291b8e['getFirstRange']();if((0x0==_0x36be71||0x1==_0x36be71)&&0x2==_0x5501ef&&_0x336f73[_0xed2c('0x37')](_0x1506df))return!0x0;if(0x2==_0x36be71&&0x3==_0x5501ef){const _0x1aa404=_0x43b581[_0xed2c('0x1f')](_0x336f73,_0xed2c('0x49'))[_0xed2c('0x2c')](({suggestion:_0x38fe8a,meta:_0x51078a})=>_0x51078a[_0xed2c('0xc')]&&_0xed2c('0x45')==_0x38fe8a[_0xed2c('0x3')]);if(_0x1aa404[_0xed2c('0x4f')]>0x1&&_0x1506df[_0xed2c('0x47')][_0xed2c('0x10')](_0x336f73[_0xed2c('0x31')]))return!0x0;if(0x1==_0x1aa404['length']&&(_0x336f73[_0xed2c('0x31')]['isEqual'](_0x1506df[_0xed2c('0x47')])||_0x336f73[_0xed2c('0x47')][_0xed2c('0x10')](_0x1506df['start'])))return!0x0;}if(0x3==_0x36be71&&0x3==_0x5501ef&&_0x336f73['start'][_0xed2c('0x3a')](_0x1506df[_0xed2c('0x31')])){const _0x123a7d=_0x336f73[_0xed2c('0x47')][_0xed2c('0x41')],_0x22e80b=_0x1506df[_0xed2c('0x31')][_0xed2c('0xd')];return _0x265b4[_0xed2c('0x23')](_0x123a7d)&&_0x123a7d===_0x22e80b;}return!0x1;}_0x5a0901['model'][_0xed2c('0x3f')][_0xed2c('0x4')](()=>{let _0x4864b6=!0x1;const _0x1eeb0f=Array[_0xed2c('0x3b')](_0x5a0901['model'][_0xed2c('0x3f')][_0xed2c('0x3d')]['getChangedMarkers']());for(const {name:_0x5411a3,data:_0x143480}of _0x1eeb0f){const {group:_0x36b212,type:_0x18dcb0,subType:_0x552a53,id:_0x390e82}=_0x43b581['_splitMarkerName'](_0x5411a3);if(_0xed2c('0x2e')==_0x36b212&&_0x43b581[_0xed2c('0x44')](_0x390e82)){if(_0xed2c('0x4b')==_0x18dcb0&&(_0xed2c('0x2b')==_0x552a53||_0xed2c('0x4c')==_0x552a53)){const _0x248239=_0x43b581['getSuggestion'](_0x390e82);if(_0x143480[_0xed2c('0x38')]){const _0x3d7612=_0x248239[_0xed2c('0x3c')]()[_0xed2c('0x2')]();if(_0x265b4[_0xed2c('0x23')](_0x3d7612))continue;_0x43b581[_0xed2c('0x1e')](_0x248239),_0x4864b6=!0x0;}}if(_0xed2c('0x49')==_0x18dcb0&&_0xed2c('0x16')==_0x552a53&&!_0x143480[_0xed2c('0x38')]){const _0x239871=_0x43b581[_0xed2c('0x50')](_0x390e82);_0x239871[_0xed2c('0x53')]&&_0x239871['next'][_0xed2c('0x13')]&&(_0x43b581[_0xed2c('0x1e')](_0x239871[_0xed2c('0x53')]),_0x4864b6=!0x0);}}}return _0x4864b6;}),this[_0xed2c('0x40')](_0x51604f);}[_0xed2c('0x40')](_0x432c7c){const _0x3c36ab=this[_0xed2c('0x2a')],_0x1e8cf8=_0x3c36ab[_0xed2c('0x39')];_0x3c36ab['plugins'][_0xed2c('0x1b')](_0xed2c('0x43'))[_0xed2c('0x14')][_0xed2c('0x5')](_0x53cdd8=>{if('formatBlock'!=_0x53cdd8['type']&&'formatInline'!=_0x53cdd8[_0xed2c('0x1')])return;const {data:_0x4a10bb}=_0x53cdd8;if(!_0x4a10bb||_0xed2c('0x21')!=_0x4a10bb['commandName'])return;const _0x3038d2=_0x4a10bb[_0xed2c('0x4e')][0x0]['value'];return _0x5de6bd(_0xed2c('0x29')===_0x3038d2?_0x2a4fb3(_0x1e8cf8,_0xed2c('0xf')):_0x432c7c[_0x3038d2]||_0x3038d2);function _0x5de6bd(_0x137eaa){return{'type':_0xed2c('0x4d'),'content':_0x2a4fb3(_0x1e8cf8,_0xed2c('0x34'),_0x137eaa)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3741=['Users','dataInsert','afterInit','editor','bind','_setSuggestionData','listenTo','execute','_trackChangesValueDuringImport','value','get','collaboration_features','trackChanges','importWord','_trackChangesExecuted','forEach','commands','track_changes','plugins'];(function(_0x53ac90,_0x3741ff){const _0x54dfc0=function(_0x2d85c0){while(--_0x2d85c0){_0x53ac90['push'](_0x53ac90['shift']());}};_0x54dfc0(++_0x3741ff);}(_0x3741,0x1c3));const _0x54df=function(_0x53ac90,_0x3741ff){_0x53ac90=_0x53ac90-0x0;let _0x54dfc0=_0x3741[_0x53ac90];return _0x54dfc0;};import{Plugin as _0x1dd0c7}from'ckeditor5/src/core';export default class st extends _0x1dd0c7{constructor(_0x50a811){super(_0x50a811),this[_0x54df('0xd')]=!0x1,this[_0x54df('0x0')]=!0x1;}[_0x54df('0x7')](){const _0x443683=this[_0x54df('0x8')],_0x4bee33=_0x443683[_0x54df('0x2')][_0x54df('0xf')]('importWord'),_0x49b8e6=_0x443683[_0x54df('0x2')][_0x54df('0xf')]('trackChanges');_0x4bee33&&(_0x4bee33['on'](_0x54df('0xc'),(_0x2d8531,[,_0x4f5089])=>{this[_0x54df('0xd')]=_0x49b8e6['value'],_0x4f5089[_0x54df('0x10')][_0x54df('0x3')]=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this[_0x54df('0xb')](_0x4bee33,_0x54df('0x6'),this['_handleImportedData'][_0x54df('0x9')](this)),this[_0x54df('0xb')](_0x4bee33,_0x54df('0x6'),()=>{this[_0x54df('0x0')]&&(_0x49b8e6[_0x54df('0xc')](),this[_0x54df('0x0')]=!0x1);},{'priority':'lowest'}),_0x443683[_0x54df('0x4')][_0x54df('0xf')]('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2edea8,_0x1c4d66){const {suggestions:_0x573d54}=_0x1c4d66,_0x3d9666=this[_0x54df('0x8')]['commands'][_0x54df('0xf')](_0x54df('0x11')),_0x4c481=_0x3d9666[_0x54df('0xe')];this[_0x54df('0xd')]!==_0x4c481&&(_0x3d9666[_0x54df('0xc')](),this['_trackChangesExecuted']=!0x0),_0x573d54&&_0x573d54[_0x54df('0x1')](({id:_0x34d0a9,type:_0x59e203,author:_0x112c8e,created_at:_0x2b3ca8})=>{const _0x370b28={'id':_0x34d0a9,'type':_0x59e203,'authorId':this[_0x54df('0x8')][_0x54df('0x4')][_0x54df('0xf')](_0x54df('0x5'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x112c8e,'createdAt':_0x2b3ca8?new Date(_0x2b3ca8):new Date(),'source':_0x54df('0x12')}}};this['editor'][_0x54df('0x4')]['get']('TrackChangesEditing')[_0x54df('0xa')](_0x370b28);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25f3=['FORMAT_INDENT','locale','outdent','*Indent:*\x20%0','IndentBlock','editor','_descriptionFactory','format','indent','outdentBlock','_registerLegacyDescription','registerDescriptionCallback','has','_registerBlockAttribute','get','plugins','IndentEditing','type','commandName','indentBlock','blockIndent','TrackChangesEditing','enableCommand'];(function(_0x5026e5,_0x25f3fa){const _0x2cbc65=function(_0x568fd){while(--_0x568fd){_0x5026e5['push'](_0x5026e5['shift']());}};_0x2cbc65(++_0x25f3fa);}(_0x25f3,0x1b5));const _0x2cbc=function(_0x5026e5,_0x25f3fa){_0x5026e5=_0x5026e5-0x0;let _0x2cbc65=_0x25f3[_0x5026e5];return _0x2cbc65;};import{Plugin as _0x20d324}from'ckeditor5/src/core';import{getTranslation as _0x5498dc}from'../utils/common-translations';export default class ot extends _0x20d324{['afterInit'](){const _0x1f7024=this[_0x2cbc('0x5')],_0x1ff2c3=_0x1f7024[_0x2cbc('0xf')]['get'](_0x2cbc('0x15'));if(_0x1f7024[_0x2cbc('0xf')][_0x2cbc('0xc')](_0x2cbc('0x10'))&&(_0x1ff2c3[_0x2cbc('0x16')](_0x2cbc('0x8')),_0x1ff2c3['enableCommand'](_0x2cbc('0x2'))),_0x1f7024[_0x2cbc('0xf')][_0x2cbc('0xc')](_0x2cbc('0x4')))for(const _0x131bde of[_0x2cbc('0x13'),_0x2cbc('0x9')])_0x1ff2c3['_enableDefaultAttributesIntegration'](_0x131bde);const _0x39b3e2=_0x1f7024['locale'];_0x1ff2c3[_0x2cbc('0xd')](_0x2cbc('0x14')),_0x1ff2c3[_0x2cbc('0x6')]['registerAttributeLabel'](_0x2cbc('0x14'),_0x5498dc(_0x39b3e2,_0x2cbc('0x0'))),this[_0x2cbc('0xa')]();}[_0x2cbc('0xa')](){const _0x1b752d=this[_0x2cbc('0x5')],_0x531425=_0x1b752d[_0x2cbc('0x1')],_0x229a7f=_0x1b752d[_0x2cbc('0xf')][_0x2cbc('0xe')]('TrackChangesEditing');_0x229a7f[_0x2cbc('0x6')][_0x2cbc('0xb')](_0x1bbbf5=>{if('formatBlock'!=_0x1bbbf5[_0x2cbc('0x11')])return;const {data:_0x5bf4cb}=_0x1bbbf5;if(!_0x5bf4cb)return;if('indentBlock'!=_0x5bf4cb[_0x2cbc('0x12')]&&_0x2cbc('0x9')!=_0x5bf4cb[_0x2cbc('0x12')])return;const _0x39e857=_0x1bbbf5['getItems']()[0x0],_0x49846c=_0x229a7f[_0x2cbc('0x6')]['getItemLabel'](_0x39e857);return _0x2cbc('0x13')==_0x5bf4cb[_0x2cbc('0x12')]?{'type':'format','content':_0x5498dc(_0x531425,_0x2cbc('0x3'),_0x49846c)}:'outdentBlock'==_0x5bf4cb[_0x2cbc('0x12')]?{'type':_0x2cbc('0x7'),'content':_0x5498dc(_0x531425,'*Outdent:*\x20%0',_0x49846c)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1035=['requires','enableCommand','init','input','get','plugins'];(function(_0x11c3e4,_0x1035a8){var _0x3ef668=function(_0x4a3fda){while(--_0x4a3fda){_0x11c3e4['push'](_0x11c3e4['shift']());}};_0x3ef668(++_0x1035a8);}(_0x1035,0xae));var _0x3ef6=function(_0x11c3e4,_0x1035a8){_0x11c3e4=_0x11c3e4-0x0;var _0x3ef668=_0x1035[_0x11c3e4];return _0x3ef668;};import{Plugin as _0x32869e}from'ckeditor5/src/core';import{Input as _0x4268be}from'ckeditor5/src/typing';export default class rt extends _0x32869e{static get[_0x3ef6('0x0')](){return[_0x4268be];}[_0x3ef6('0x2')](){this['editor'][_0x3ef6('0x5')][_0x3ef6('0x4')]('TrackChangesEditing')[_0x3ef6('0x1')](_0x3ef6('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x194d=['afterInit','attribute','locale','TrackChangesEditing','commandName','LinkEditing','plugins','_registerLegacyDescription','manualDecorators','editor','link','*Remove\x20link*','_enableDefaultAttributesIntegration','format','commandParams','registerDescriptionCallback','has','get','link\x20(','unlink','type','*Set\x20link:*\x20%0','commands','formatInline','_descriptionFactory'];(function(_0x1bf35b,_0x194de7){const _0x4d935c=function(_0x3fdc2b){while(--_0x3fdc2b){_0x1bf35b['push'](_0x1bf35b['shift']());}};_0x4d935c(++_0x194de7);}(_0x194d,0xd9));const _0x4d93=function(_0x1bf35b,_0x194de7){_0x1bf35b=_0x1bf35b-0x0;let _0x4d935c=_0x194d[_0x1bf35b];return _0x4d935c;};import{Plugin as _0x520dae}from'ckeditor5/src/core';import{getTranslation as _0x347789}from'../utils/common-translations';export default class at extends _0x520dae{[_0x4d93('0x8')](){const _0x1c9324=this[_0x4d93('0x11')];if(!_0x1c9324['plugins'][_0x4d93('0x18')](_0x4d93('0xd')))return;const _0x1db330=_0x1c9324[_0x4d93('0xe')][_0x4d93('0x0')](_0x4d93('0xb')),_0x4379f0=_0x1c9324[_0x4d93('0x5')][_0x4d93('0x0')]('link');_0x1db330[_0x4d93('0x14')]('link',['linkHref',..._0x4379f0[_0x4d93('0x10')]['map'](_0x490f43=>_0x490f43['id'])]),_0x1db330['_enableDefaultAttributesIntegration'](_0x4d93('0x2'));for(const _0x49b5dd of _0x4379f0['manualDecorators'])_0x1db330[_0x4d93('0x7')]['registerAttributeLabel'](_0x49b5dd['id'],_0x4d93('0x1')+_0x49b5dd['label']['toLowerCase']()+')');_0x1db330[_0x4d93('0x7')][_0x4d93('0x17')](_0x4790db=>{if(_0x4d93('0x9')!=_0x4790db[_0x4d93('0x3')])return;const {data:_0x3ffafc}=_0x4790db;if(!_0x3ffafc||'linkHref'!=_0x3ffafc['key'])return;const _0x3baa87=_0x3ffafc['newValue'],_0x5ad12c=_0x1c9324[_0x4d93('0xa')];return{'type':_0x4d93('0x15'),'content':_0x3baa87?_0x347789(_0x5ad12c,'*Set\x20link:*\x20%0','\x22'+_0x3baa87+'\x22'):_0x347789(_0x5ad12c,_0x4d93('0x13'))};}),this['_registerLegacyDescription']();}[_0x4d93('0xf')](){const _0x44fb94=this[_0x4d93('0x11')],_0x406edc=_0x44fb94[_0x4d93('0xa')];_0x44fb94[_0x4d93('0xe')][_0x4d93('0x0')](_0x4d93('0xb'))[_0x4d93('0x7')][_0x4d93('0x17')](_0x4cc852=>{if(_0x4d93('0x6')!=_0x4cc852[_0x4d93('0x3')])return;const {data:_0x1d36f9}=_0x4cc852;if(_0x1d36f9){if(_0x4d93('0x12')==_0x1d36f9[_0x4d93('0xc')]){const _0x1790ab=_0x1d36f9[_0x4d93('0x16')][0x0];return{'type':_0x4d93('0x15'),'content':_0x347789(_0x406edc,_0x4d93('0x4'),'\x22'+_0x1790ab+'\x22')};}return _0x4d93('0x2')==_0x1d36f9[_0x4d93('0xc')]?{'type':_0x4d93('0x15'),'content':_0x347789(_0x406edc,'*Remove\x20link*')}:void 0x0;}});}}
|