@ckeditor/ckeditor5-track-changes 38.1.1 → 38.2.0-alpha.1
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 +2 -2
- package/package.json +4 -3
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -13
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -12
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -12
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -12
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -18
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -18
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -18
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -18
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -37
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -435
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- 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 _0x3c58=['format','FontBackgroundColorEditing','editor','title','label','plugins','*Set\x20font\x20color:*\x20%0','value','*Reset\x20font\x20color*','getRanges','document','fontSize.options','change','enableCommand','find','TrackChangesEditing','*Reset\x20font\x20family*','commandParams','*Set\x20font\x20background\x20color:*\x20%0','fontBackgroundColor','config','markInlineFormat','fontColor','model','fontFamily','fontColor.colors','*Reset\x20font\x20background\x20color*','fontBackgroundColor.colors','toLowerCase','normalizeSizeOptions','*Set\x20font\x20family:*\x20%0','FontColorEditing','commandName','selection','get','_descriptionFactory','fontSize','*Set\x20font\x20size:*\x20%0','trim','FontSize','*Reset\x20font\x20size*','_enableCommand','locale','FontSizeEditing'];(function(_0x3e9620,_0x3c58de){const _0x25ca29=function(_0x164b77){while(--_0x164b77){_0x3e9620['push'](_0x3e9620['shift']());}};_0x25ca29(++_0x3c58de);}(_0x3c58,0x16b));const _0x25ca=function(_0x3e9620,_0x3c58de){_0x3e9620=_0x3e9620-0x0;let _0x25ca29=_0x3c58[_0x3e9620];return _0x25ca29;};import{Plugin as _0x3e2873}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x4457d9}from'ckeditor5/src/ui.js';import{getRangesWithAttribute as _0x17cd1e}from'./utils.js';import{getTranslation as _0x4265fd}from'../utils/common-translations.js';const Zt=[{'pluginName':_0x25ca('0x20'),'commandName':_0x25ca('0x19')},{'pluginName':'FontFamilyEditing','commandName':_0x25ca('0xd')},{'pluginName':_0x25ca('0x14'),'commandName':_0x25ca('0xb')},{'pluginName':_0x25ca('0x22'),'commandName':_0x25ca('0x8')}];export default class H extends _0x3e2873{['afterInit'](){const _0x1cc0da=this[_0x25ca('0x23')][_0x25ca('0x1f')];for(const {pluginName:_0x4da413,commandName:_0x38b00b}of Zt)this[_0x25ca('0x23')]['plugins']['has'](_0x4da413)&&this[_0x25ca('0x1e')](_0x38b00b);this[_0x25ca('0x23')][_0x25ca('0x26')][_0x25ca('0x17')](_0x25ca('0x4'))[_0x25ca('0x18')]['registerDescriptionCallback'](_0x199060=>{const _0x56debf=_0x1cc0da['t'],{data:_0x3fa91b}=_0x199060;if(null!=_0x3fa91b){if('fontSize'==_0x3fa91b[_0x25ca('0x15')]){const _0x151add=_0x3fa91b[_0x25ca('0x6')][0x0]['value'];if(_0x151add){const _0x41a876=_0x56debf(this[_0x25ca('0x23')][_0x25ca('0x26')][_0x25ca('0x17')](_0x25ca('0x1c'))[_0x25ca('0x12')](this[_0x25ca('0x23')][_0x25ca('0x9')][_0x25ca('0x17')](_0x25ca('0x0')))['find'](_0x1c2765=>_0x1c2765[_0x25ca('0xc')]==_0x151add)[_0x25ca('0x24')])[_0x25ca('0x11')]();return{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x1a'),_0x41a876)};}return{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x1d'))};}if(_0x25ca('0xd')==_0x3fa91b[_0x25ca('0x15')]){const _0x141d0c=_0x3fa91b[_0x25ca('0x6')][0x0]['value'];return _0x141d0c?{'type':'format','content':_0x4265fd(_0x1cc0da,_0x25ca('0x13'),_0x141d0c)}:{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x5'))};}if(_0x25ca('0xb')==_0x3fa91b['commandName']){const _0x3526fa=_0x3fa91b[_0x25ca('0x6')][0x0][_0x25ca('0x28')];if(_0x3526fa){const _0x575f4a=_0x4457d9(this[_0x25ca('0x23')][_0x25ca('0x9')][_0x25ca('0x17')](_0x25ca('0xe')))[_0x25ca('0x3')](_0x286476=>_0x286476[_0x25ca('0xc')]==_0x3526fa);let _0x2b920a=_0x3526fa,_0xd8a9f7='';return _0x575f4a&&(_0x2b920a=_0x575f4a[_0x25ca('0x25')],_0xd8a9f7=_0x56debf(_0x2b920a)[_0x25ca('0x11')]()),{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x27'),_0xd8a9f7)['trim'](),'color':{'value':_0x3526fa,'title':_0xd8a9f7||_0x2b920a}};}return{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x29'))};}if(_0x25ca('0x8')==_0x3fa91b['commandName']){const _0x24b05a=_0x3fa91b['commandParams'][0x0][_0x25ca('0x28')];if(_0x24b05a){const _0x569452=_0x4457d9(this[_0x25ca('0x23')][_0x25ca('0x9')]['get'](_0x25ca('0x10')))[_0x25ca('0x3')](_0x30a3d0=>_0x30a3d0[_0x25ca('0xc')]==_0x24b05a);let _0x352487=_0x24b05a,_0x456903='';return _0x569452&&(_0x352487=_0x569452[_0x25ca('0x25')],_0x456903=_0x56debf(_0x352487)[_0x25ca('0x11')]()),{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0x7'),_0x456903)[_0x25ca('0x1b')](),'color':{'value':_0x24b05a,'title':_0x456903||_0x352487}};}return{'type':_0x25ca('0x21'),'content':_0x4265fd(_0x1cc0da,_0x25ca('0xf'))};}}});}[_0x25ca('0x1e')](_0x1eb8f7){const _0x131736=this[_0x25ca('0x23')];_0x131736[_0x25ca('0x26')][_0x25ca('0x17')](_0x25ca('0x4'))[_0x25ca('0x2')](_0x1eb8f7,(_0x56a02b,_0x2b1d4c={})=>{const _0x34b8cd=_0x131736[_0x25ca('0xc')][_0x25ca('0x2b')][_0x25ca('0x16')],_0x41da19=_0x2b1d4c[_0x25ca('0x28')];_0x34b8cd['isCollapsed']?_0x56a02b(_0x2b1d4c):_0x131736['model'][_0x25ca('0x1')](()=>{const _0x1b57cb=Array['from'](_0x34b8cd[_0x25ca('0x2a')]());for(const _0x50b766 of _0x1b57cb){const _0x1edc40=_0x41da19?[_0x50b766]:_0x17cd1e(_0x1eb8f7,_0x50b766,_0x131736[_0x25ca('0xc')]);for(const _0x1a7621 of _0x1edc40)_0x131736[_0x25ca('0x26')][_0x25ca('0x17')]('TrackChangesEditing')[_0x25ca('0xa')](_0x1a7621,{'commandName':_0x1eb8f7,'commandParams':[{'value':_0x41da19}]});}});});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/formatpainter
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for the Format Painter feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesFormatPainter extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/formatpainter
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the Format Painter feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFormatPainter extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fa6=['schema','pasteFormat','label','locale','slice','enableCommand','_descriptionFactory','word','copyFormat','push','getFirstPosition','fontBackgroundColor','getRanges','*Remove\x20all\x20formatting*','registerDescriptionCallback','model','length','split','keys','document','entries','toUpperCase','TrackChangesEditing','toLowerCase','backward','config','createRange','isFormatting','modifySelection','fontColor','find','isCollapsed','get','fontSize','commandParams','fontColor.colors','getLastPosition','getAttributes','getAttributeProperties','markInlineFormat','getSelectedBlocks','charAt','plugins','join','selection','fontSize.options','commands','FontSize','forward','format','change'];(function(_0x1e47da,_0x2fa6d5){const _0x38e44d=function(_0x1b4ca2){while(--_0x1b4ca2){_0x1e47da['push'](_0x1e47da['shift']());}};_0x38e44d(++_0x2fa6d5);}(_0x2fa6,0xe3));const _0x38e4=function(_0x1e47da,_0x2fa6d5){_0x1e47da=_0x1e47da-0x0;let _0x38e44d=_0x2fa6[_0x1e47da];return _0x38e44d;};import{Plugin as _0x245fd4}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x3910d7}from'ckeditor5/src/ui.js';import{first as _0x40dc4f}from'ckeditor5/src/utils.js';import{getTranslation as _0x531d10}from'../utils/common-translations.js';export default class W extends _0x245fd4{['afterInit'](){const _0x35f043=this['editor'],_0x59b842=_0x35f043['model'],_0x48f05c=_0x59b842[_0x38e4('0x2f')][_0x38e4('0x15')],_0x91cc82=_0x35f043[_0x38e4('0x13')][_0x38e4('0x9')](_0x38e4('0x32')),_0x1fb970=_0x35f043[_0x38e4('0x1f')],_0x250bd0=_0x35f043[_0x38e4('0x17')]['get']('copyFormat'),_0x2a6cda=_0x35f043[_0x38e4('0x17')][_0x38e4('0x9')](_0x38e4('0x1d'));_0x250bd0&&_0x2a6cda&&(_0x91cc82[_0x38e4('0x21')](_0x38e4('0x1d'),(_0x43442b,_0x3ab583={})=>{const _0x555f6d=_0x3ab583;_0x59b842[_0x38e4('0x1b')](()=>{const _0x46a1b0=Array['from'](_0x48f05c[_0x38e4('0x28')]()),_0x59be63=_0x48f05c[_0x38e4('0x8')]?[ro(_0x59b842,_0x48f05c)]:_0x46a1b0,_0x5a4a40=!!_0x40dc4f(function*(_0x1ad89e,_0xbbbeaa){const _0x3afded=_0x1c54fe=>!!_0x40dc4f(function*(_0x1f78bd,_0x23b1ce){for(const [_0x4df5e0]of _0x1f78bd[_0x38e4('0xe')]()){const _0x45f5cd=_0x23b1ce[_0x38e4('0xf')](_0x4df5e0);_0x45f5cd&&_0x45f5cd[_0x38e4('0x4')]&&(yield _0x4df5e0);}}(_0x1c54fe,_0xbbbeaa));for(const _0x16bdea of _0x1ad89e[_0x38e4('0x28')]())for(const _0x3d723c of _0x16bdea['getItems']())!_0xbbbeaa['isBlock'](_0x3d723c)&&_0x3afded(_0x3d723c)&&(yield _0x3d723c);for(const _0x298868 of _0x1ad89e[_0x38e4('0x11')]())_0x3afded(_0x298868)&&(yield _0x298868);_0x3afded(_0x1ad89e)&&(yield _0x1ad89e);}(_0x48f05c,_0x59b842[_0x38e4('0x1c')]));if(_0x5a4a40||0x0!==Object[_0x38e4('0x2e')](_0x555f6d)[_0x38e4('0x2c')])for(const _0x1e84d7 of _0x59be63)_0x91cc82[_0x38e4('0x10')](_0x1e84d7,{'commandName':_0x38e4('0x1d'),'commandParams':[_0x555f6d]});});}),_0x91cc82[_0x38e4('0x22')][_0x38e4('0x2a')](_0xb67461=>{const {data:_0x5118fb}=_0xb67461;if(_0x5118fb&&_0x38e4('0x1d')===_0x5118fb['commandName']){const _0x4e05ae=[],_0x10dcc8=_0x5118fb[_0x38e4('0xb')][0x0];for(const [_0x3eafc9,_0x5bf838]of Object[_0x38e4('0x30')](_0x10dcc8))_0x4e05ae[_0x38e4('0x25')](no(_0x35f043,_0x3eafc9,_0x5bf838));return _0x4e05ae[_0x38e4('0x2c')]?{'type':_0x38e4('0x1a'),'content':_0x531d10(_0x1fb970,'*Set\x20format\x20to:*\x20%0',_0x4e05ae['join'](',\x20'))}:{'type':_0x38e4('0x1a'),'content':_0x531d10(_0x1fb970,_0x38e4('0x29'))};}}),_0x35f043['plugins'][_0x38e4('0x9')](_0x38e4('0x32'))['enableCommand'](_0x38e4('0x24')));}}function ro(_0x164f0a,_0x360e42){const _0x45dd52=_0x164f0a['createSelection'](_0x360e42);_0x164f0a[_0x38e4('0x5')](_0x45dd52,{'unit':_0x38e4('0x23'),'direction':_0x38e4('0x1')});const _0x46e6f3=_0x45dd52[_0x38e4('0x26')]();_0x164f0a[_0x38e4('0x5')](_0x45dd52,{'unit':_0x38e4('0x23'),'direction':_0x38e4('0x19')});const _0x386daa=_0x45dd52[_0x38e4('0xd')]();return _0x164f0a[_0x38e4('0x3')](_0x46e6f3,_0x386daa);}function no(_0x39edd0,_0x56f160,_0x5e0f23){const _0x5a40ee=_0x39edd0[_0x38e4('0x1f')]['t'],_0x76bed8=_0x56f160[_0x38e4('0x2d')](/(?=[A-Z])/)[_0x38e4('0x14')]('\x20'),_0x36a96a=_0x5a40ee(_0x76bed8[_0x38e4('0x12')](0x0)[_0x38e4('0x31')]()+_0x76bed8[_0x38e4('0x20')](0x1))['toLowerCase']();if('boolean'==typeof _0x5e0f23)return _0x36a96a;if(_0x38e4('0x6')===_0x56f160||_0x38e4('0x27')===_0x56f160){const _0x2cbaba=_0x3910d7(_0x39edd0[_0x38e4('0x2')][_0x38e4('0x9')](_0x38e4('0xc')))[_0x38e4('0x7')](_0x4c6694=>_0x4c6694[_0x38e4('0x2b')]==_0x5e0f23);return _0x36a96a+'\x20('+(_0x2cbaba?_0x5a40ee(_0x2cbaba[_0x38e4('0x1e')])['toLowerCase']():_0x5e0f23)+')';}if(_0x38e4('0xa')===_0x56f160&&isNaN(parseFloat(_0x5e0f23))){const _0x42b1c7=_0x39edd0[_0x38e4('0x13')][_0x38e4('0x9')](_0x38e4('0x18'))['normalizeSizeOptions'](_0x39edd0['config'][_0x38e4('0x9')](_0x38e4('0x16')))[_0x38e4('0x7')](_0x1c41fd=>_0x1c41fd[_0x38e4('0x2b')]==_0x5e0f23);return _0x36a96a+'\x20('+(_0x42b1c7?_0x5a40ee(_0x42b1c7['title'])[_0x38e4('0x0')]():_0x5e0f23)+')';}return _0x36a96a+'\x20('+_0x5e0f23+')';}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/heading
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for heading feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesHeading extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/heading
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for heading feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHeading extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f8a=['get','heading','title','ELEMENT_HEADING','name','config','markBlockFormat','isObject','_descriptionFactory','plugins','TrackChangesEditing','blockName','ELEMENT_HEADING_CUSTOM','enableCommand','filter','has','document','model','checkChild','editor','paragraph','selection','heading.options','registerElementLabel','commandParams','formatBlock','format','parent','registerDescriptionCallback','find','HeadingEditing','*Change\x20to:*\x20%0'];(function(_0x1fc248,_0x2f8a1b){const _0x1ad3b9=function(_0xc6261a){while(--_0xc6261a){_0x1fc248['push'](_0x1fc248['shift']());}};_0x1ad3b9(++_0x2f8a1b);}(_0x2f8a,0xe9));const _0x1ad3=function(_0x1fc248,_0x2f8a1b){_0x1fc248=_0x1fc248-0x0;let _0x1ad3b9=_0x2f8a[_0x1fc248];return _0x1ad3b9;};import{Plugin as _0x217874}from'ckeditor5/src/core.js';import{getElementsAffectedByListItemRename as _0x14e76b}from'./utils.js';import{getTranslation as _0x197cb7}from'../utils/common-translations.js';export default class J extends _0x217874{['afterInit'](){const _0x3a9815=this[_0x1ad3('0xa')],_0x2e28f2=_0x3a9815['locale'],_0x5f11ac=_0x3a9815[_0x1ad3('0x1c')][_0x1ad3('0x17')](_0x1ad3('0xd'));if(!_0x3a9815['plugins'][_0x1ad3('0x6')](_0x1ad3('0x15')))return;const _0x188563=_0x3a9815[_0x1ad3('0x0')][_0x1ad3('0x17')](_0x1ad3('0x1'));_0x188563[_0x1ad3('0x4')]('heading',(_0x451d28,_0x2aef72)=>{const _0x1c7ba5=_0x2aef72['value'],_0x4390f5=Array['from'](this[_0x1ad3('0xa')]['model'][_0x1ad3('0x7')][_0x1ad3('0xc')]['getSelectedBlocks']())[_0x1ad3('0x5')](_0x1887e5=>function(_0x20ddf1,_0x4771ba,_0x2609a2){return _0x2609a2[_0x1ad3('0x9')](_0x20ddf1[_0x1ad3('0x12')],_0x4771ba)&&!_0x2609a2[_0x1ad3('0x1e')](_0x20ddf1)&&_0x20ddf1[_0x1ad3('0x1b')]!=_0x4771ba;}(_0x1887e5,_0x1c7ba5,this[_0x1ad3('0xa')][_0x1ad3('0x8')]['schema']));_0x3a9815['model']['change'](()=>{for(const _0xba0575 of _0x4390f5)_0x188563[_0x1ad3('0x1d')](_0xba0575,{'commandName':_0x1ad3('0x18'),'commandParams':[_0x2aef72],'formatGroupId':_0x1ad3('0x2')},_0x14e76b(_0xba0575));});});for(const _0x5d019d of _0x5f11ac)_0x1ad3('0xb')!=_0x5d019d['model']&&_0x188563[_0x1ad3('0x1f')][_0x1ad3('0xe')](_0x5d019d[_0x1ad3('0x8')],_0x5926e8=>{const _0x1ce7ef=nn(_0x5d019d['model']);return null!==_0x1ce7ef?_0x576796(_0x5926e8,_0x1ce7ef):_0x25a5dd(_0x5926e8,_0x5d019d['title']);});function _0x576796(_0x3a675c,_0x5b90dc){return _0x197cb7(_0x2e28f2,_0x1ad3('0x1a'),[_0x3a675c,_0x5b90dc]);}function _0x25a5dd(_0x3df41b,_0xc7f393){return _0x197cb7(_0x2e28f2,_0x1ad3('0x3'),[_0x3df41b,_0xc7f393]);}_0x188563['_descriptionFactory'][_0x1ad3('0x13')](_0x154319=>{const {type:_0xe14be6,data:_0x320d8b}=_0x154319;if(_0x1ad3('0x10')==_0xe14be6&&_0x320d8b&&_0x1ad3('0x18')==_0x320d8b['commandName']){const _0x5b8c3a=_0x320d8b[_0x1ad3('0xf')][0x0]['value'],_0x2b346b=nn(_0x5b8c3a);if(null!==_0x2b346b)return{'type':'format','content':_0x197cb7(_0x2e28f2,_0x1ad3('0x16'),_0x576796(0x1,_0x2b346b))};const _0x1a7228=_0x5f11ac[_0x1ad3('0x14')](_0x19ed48=>_0x19ed48[_0x1ad3('0x8')]===_0x5b8c3a)[_0x1ad3('0x19')];return{'type':_0x1ad3('0x11'),'content':_0x197cb7(_0x2e28f2,'*Change\x20to:*\x20%0',_0x25a5dd(0x1,_0x1a7228))};}});}}function nn(_0x43f1b6){const _0x53ae02=_0x43f1b6['match'](/^heading(\d+)$/);return _0x53ae02?_0x53ae02[0x1]:null;}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/highlight
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for highlight feature.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesHighlight extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/highlight
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for highlight feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHighlight extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50d4=['selection','item','config','format','getLastMatchingPosition','TrackChangesEditing','createRange','isCollapsed','formatInline','highlight','title','change','registerDescriptionCallback','_descriptionFactory','getRanges','afterInit','has','plugins','document','hasAttribute','color','highlight.options','push','HighlightEditing','get','FORMAT_HIGHLIGHT','find','model','enableCommand','toLowerCase','*Set\x20highlight:*\x20%0','getAttribute','value'];(function(_0x3b4311,_0x50d4bf){const _0x5e1d99=function(_0x1314a5){while(--_0x1314a5){_0x3b4311['push'](_0x3b4311['shift']());}};_0x5e1d99(++_0x50d4bf);}(_0x50d4,0x15d));const _0x5e1d=function(_0x3b4311,_0x50d4bf){_0x3b4311=_0x3b4311-0x0;let _0x5e1d99=_0x50d4[_0x3b4311];return _0x5e1d99;};import{Plugin as _0x32d71e}from'ckeditor5/src/core.js';import{getTranslation as _0x520ef9}from'../utils/common-translations.js';import{getRangesWithAttribute as _0x44f3e6}from'./utils.js';export default class K extends _0x32d71e{[_0x5e1d('0x1d')](){const _0x5e8cb5=this['editor'];if(!_0x5e8cb5['plugins'][_0x5e1d('0x1e')](_0x5e1d('0x4')))return;const _0x7a9a5d=_0x5e8cb5[_0x5e1d('0x1f')][_0x5e1d('0x5')](_0x5e1d('0x13'));_0x7a9a5d[_0x5e1d('0x9')](_0x5e1d('0x17'),(_0x3ad363,_0x1ea95b={})=>{const _0x5c3209=_0x5e8cb5['model'][_0x5e1d('0x20')][_0x5e1d('0xe')],_0x50c8e4=_0x5c3209[_0x5e1d('0xc')]('highlight');let _0x20020a=_0x1ea95b[_0x5e1d('0xd')],_0x8249d1=[];if(_0x5c3209[_0x5e1d('0x15')]){const _0x533ae5=_0x5c3209['getFirstPosition']();if(!_0x5c3209[_0x5e1d('0x0')](_0x5e1d('0x17')))return void _0x3ad363(_0x1ea95b);{const _0x2512a4=_0x2e0db4=>_0x2e0db4[_0x5e1d('0xf')]['getAttribute'](_0x5e1d('0x17'))===_0x50c8e4,_0x1ee076=_0x533ae5[_0x5e1d('0x12')](_0x2512a4,{'direction':'backward'}),_0x27d652=_0x533ae5[_0x5e1d('0x12')](_0x2512a4);_0x8249d1=[_0x5e8cb5[_0x5e1d('0x8')][_0x5e1d('0x14')](_0x1ee076,_0x27d652)],_0x20020a==_0x50c8e4&&(_0x20020a=null);}}else for(const _0x5033bb of _0x5c3209[_0x5e1d('0x1c')]())_0x20020a?_0x8249d1['push'](_0x5033bb):_0x8249d1[_0x5e1d('0x3')](..._0x44f3e6('highlight',_0x5033bb,_0x5e8cb5[_0x5e1d('0x8')]));_0x5e8cb5['model'][_0x5e1d('0x19')](()=>{for(const _0x42b221 of _0x8249d1)_0x7a9a5d['markInlineFormat'](_0x42b221,{'commandName':_0x5e1d('0x17'),'commandParams':[{'value':_0x20020a}]});});});const _0x711bb8=_0x5e8cb5['locale'];_0x7a9a5d[_0x5e1d('0x1b')][_0x5e1d('0x1a')](_0x1bea55=>{const {type:_0x3649ac,data:_0x1a4671}=_0x1bea55;if(_0x5e1d('0x16')==_0x3649ac&&_0x1a4671&&'highlight'==_0x1a4671['commandName']){const _0x26c908=_0x711bb8['t'],_0x64c750=_0x1a4671['commandParams'][0x0][_0x5e1d('0xd')];if(_0x64c750){const _0x5707df=_0x5e8cb5[_0x5e1d('0x10')][_0x5e1d('0x5')](_0x5e1d('0x2'))[_0x5e1d('0x7')](_0x1a2ee4=>_0x1a2ee4[_0x5e1d('0x8')]==_0x64c750),_0xcbc4fb=_0x26c908(_0x5707df[_0x5e1d('0x18')])[_0x5e1d('0xa')]();return{'type':'format','content':_0x520ef9(_0x711bb8,_0x5e1d('0xb'),_0xcbc4fb),'color':{'value':_0x5707df[_0x5e1d('0x1')],'title':_0x5707df[_0x5e1d('0x18')]}};}return{'type':_0x5e1d('0x11'),'content':_0x520ef9(_0x711bb8,'*Remove\x20highlight*',_0x520ef9(_0x711bb8,_0x5e1d('0x6')))};}});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/horizontalline
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesHorizontalLine extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/horizontalline
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHorizontalLine extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1519=['afterInit','insert','conversion','TrackChangesEditing','dataDowncast','high','createPositionAt','ELEMENT_HORIZONTAL_LINE','createContainerElement','get','editor','plugins','addClass','showSuggestionHighlights','has','ck-horizontal-line','locale','enableCommand','elementToStructure','horizontalLine'];(function(_0x5e88b1,_0x151948){const _0x493290=function(_0x5d5c9f){while(--_0x5d5c9f){_0x5e88b1['push'](_0x5e88b1['shift']());}};_0x493290(++_0x151948);}(_0x1519,0x1f1));const _0x4932=function(_0x5e88b1,_0x151948){_0x5e88b1=_0x5e88b1-0x0;let _0x493290=_0x1519[_0x5e88b1];return _0x493290;};import{Plugin as _0xcbc146}from'ckeditor5/src/core.js';import{getTranslation as _0x287c18}from'../utils/common-translations.js';export default class Q extends _0xcbc146{[_0x4932('0x3')](){const _0x4b200c=this[_0x4932('0xd')];if(!_0x4b200c[_0x4932('0xe')][_0x4932('0x11')]('HorizontalLineEditing'))return;_0x4b200c['plugins']['get'](_0x4932('0x6'))[_0x4932('0x0')]('horizontalLine');const _0x15a713=_0x4b200c['plugins'][_0x4932('0xc')]('TrackChangesEditing'),_0x4e09e2=_0x4b200c[_0x4932('0x13')];_0x15a713['_descriptionFactory']['registerElementLabel'](_0x4932('0x2'),_0x2efc66=>_0x287c18(_0x4e09e2,_0x4932('0xa'),_0x2efc66)),_0x4b200c[_0x4932('0x5')]['for'](_0x4932('0x7'))[_0x4932('0x1')]({'model':_0x4932('0x2'),'view':(_0x152020,{writer:_0x2d4d6d,options:_0x12294a})=>{if(!_0x12294a[_0x4932('0x10')])return null;const _0x467b41=_0x2d4d6d[_0x4932('0xb')]('div'),_0x529b3c=_0x2d4d6d['createEmptyElement']('hr');return _0x2d4d6d[_0x4932('0xf')](_0x4932('0x12'),_0x467b41),_0x2d4d6d[_0x4932('0x4')](_0x2d4d6d[_0x4932('0x9')](_0x467b41,0x0),_0x529b3c),_0x467b41;},'converterPriority':_0x4932('0x8')});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/htmlembed
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/htmlembed
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2862=['get','getCustomProperty','plugins','rawHtml','value','TrackChangesEditing','cancel','ELEMENT_HTML_EMBED','registerElementLabel','selection','_descriptionFactory','view','commandName','afterInit','getSelectedElement','registerDescriptionCallback','change','htmlEmbed','getAttribute','locale','markBlockFormat','has','rawHtmlApi','editing','editor','*Change\x20%0\x20content*'];(function(_0x19cde8,_0x286234){const _0x281830=function(_0x59698c){while(--_0x59698c){_0x19cde8['push'](_0x19cde8['shift']());}};_0x281830(++_0x286234);}(_0x2862,0xd0));const _0x2818=function(_0x19cde8,_0x286234){_0x19cde8=_0x19cde8-0x0;let _0x281830=_0x2862[_0x19cde8];return _0x281830;};import{Plugin as _0x2b9600}from'ckeditor5/src/core.js';import{getTranslation as _0x86f87d}from'../utils/common-translations.js';export default class V extends _0x2b9600{[_0x2818('0xd')](){const _0x3e7cb5=this[_0x2818('0x18')];if(!_0x3e7cb5[_0x2818('0x2')][_0x2818('0x15')]('HtmlEmbed'))return;const _0x331e57=_0x3e7cb5['plugins'][_0x2818('0x0')](_0x2818('0x5')),_0x5e0f6d=_0x3e7cb5[_0x2818('0x13')],_0x310113=_0x3e7cb5[_0x2818('0x17')][_0x2818('0xb')]['document'][_0x2818('0x9')];_0x331e57[_0x2818('0xa')][_0x2818('0x8')](_0x2818('0x3'),_0x460355=>_0x86f87d(_0x5e0f6d,_0x2818('0x7'),_0x460355)),_0x3e7cb5[_0x2818('0x2')]['get']('TrackChangesEditing')['enableCommand'](_0x2818('0x11'),(_0x41b2ac,_0x1cd1b9)=>{const _0x12477e=_0x3e7cb5['model'],_0x20e43a=_0x12477e['document'][_0x2818('0x9')];_0x12477e[_0x2818('0x10')](()=>{const _0x432e42=function(_0x331919){const _0x23fd5b=_0x331919[_0x2818('0xe')]();if(_0x23fd5b&&_0x23fd5b['is']('element',_0x2818('0x3')))return _0x331919[_0x2818('0xe')]();return null;}(_0x20e43a);if(!_0x432e42)return void _0x41b2ac(null);const _0x265353=_0x432e42[_0x2818('0x12')](_0x2818('0x4'))||'';if(void 0x0===_0x1cd1b9)return;if(_0x1cd1b9===_0x265353)return;_0x331e57[_0x2818('0x14')](_0x432e42,{'commandName':'htmlEmbed','commandParams':[_0x1cd1b9]}),_0x310113[_0x2818('0xe')]()[_0x2818('0x1')](_0x2818('0x16'))[_0x2818('0x6')]();});}),_0x331e57[_0x2818('0xa')][_0x2818('0xf')](_0x3c09f1=>{const {data:_0x29814d}=_0x3c09f1;if(_0x29814d&&'htmlEmbed'==_0x29814d[_0x2818('0xc')]){const _0x171c58=_0x86f87d(_0x5e0f6d,_0x2818('0x7'));return{'type':'format','content':_0x86f87d(_0x5e0f6d,_0x2818('0x19'),_0x171c58)};}});}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/image
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
/**
|
|
6
|
-
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
7
|
-
*/
|
|
8
|
-
export default class TrackChangesImage extends Plugin {
|
|
9
|
-
/**
|
|
10
|
-
* @inheritDoc
|
|
11
|
-
*/
|
|
12
|
-
afterInit(): void;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/image
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesImage extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4832=['ImageResize','discardSuggestion','accept','commands','*Set\x20image\x20text\x20alternative:*\x20%0','commandName','afterInit','end','title','ImageTextAlternativeEditing','_findSuggestions','_splitMarkerName','_descriptionFactory','newValue','isInlineImage','getAttribute','previous','isCollapsed','has','plugins','ImageUtils','normalizedStyles','getSuggestion','getCaptionFromImageModelElement','markBlockFormat','format','find','imageInline','chain','isEqual','imageTypeInline','forceDefaultExecution','isBlockImage','start','length','TrackChangesEditing','type','forEach','editor','markInlineFormat','ImageInlineEditing','alt','ImageEditing','enableCommand','createRange','next','ImageStyleEditing','hasSuggestion','selection','isInContent','document','imageBlock','uploadImage','isIntersecting','model','*Format:*\x20%0','ELEMENT_CAPTION','insertion','subType','getChangedMarkers','imageTextAlternative','refresh','join','head','width','addObject','ELEMENT_IMAGE','Users','resizeImage','caption','insertImage','getContainedElement','schema','shouldConvertImageType','toLowerCase','markInsertion','formatInline','isOwn','createRangeOn','discard','*Remove\x20image\x20text\x20alternative*','imageStyle','getFirstRange','toPrevious','detach','getSuggestions','commandParams','formatBlock','imageTypeBlock','ImageUploadEditing','isBefore','value','commandReversedParams','name','convertInlineImageToBlock','getNearestSelectionRange','removeObject','forward','differ','change','convertBlockImageToInline','get','filter','registerElementLabel','imageCaption','author','registerDescriptionCallback','fromPosition','markDeletion','getSuggestionCallback','*Set\x20image\x20width:*\x20%0','toNext','imageStylePostApply','ImageCaptionEditing','imageStylePreApply','ImageBlockEditing','Inline\x20image\x20to\x20block\x20image','toggleImageCaption','FORMAT_SIDE_IMAGE','element','findIndex','registerCustomCallback','_suggestionFactory','getClosestSelectedImageElement'];(function(_0x473927,_0x483250){const _0x55109b=function(_0x2d6daa){while(--_0x2d6daa){_0x473927['push'](_0x473927['shift']());}};_0x55109b(++_0x483250);}(_0x4832,0x18f));const _0x5510=function(_0x473927,_0x483250){_0x473927=_0x473927-0x0;let _0x55109b=_0x4832[_0x473927];return _0x55109b;};import{Plugin as _0x5217e2}from'ckeditor5/src/core';import{LivePosition as _0x45527a}from'ckeditor5/src/engine';import{uid as _0x3ba11d}from'ckeditor5/src/utils';import{getTranslation as _0x270c08}from'../utils/common-translations';export default class X extends _0x5217e2{[_0x5510('0x67')](){const _0xe041be=this[_0x5510('0xb')];if(!_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0xf')))return;const _0x47e903=_0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x8')),_0xdc81f7=_0xe041be[_0x5510('0x74')]['get'](_0x5510('0x75')),_0x14c256={},_0x1b9fc4=_0xe041be['locale'];if(_0x47e903['enableCommand'](_0x5510('0x2b')),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')](_0x5510('0x18'),_0x510ede=>_0x270c08(_0x1b9fc4,_0x5510('0x27'),_0x510ede)),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')](_0x5510('0x0'),_0x121de7=>_0x270c08(_0x1b9fc4,'ELEMENT_INLINE_IMAGE',_0x121de7)),_0x47e903[_0x5510('0x6d')][_0x5510('0x4c')]('caption',()=>_0x270c08(_0x1b9fc4,_0x5510('0x1d'))),_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0x3e'))&&_0x47e903['enableCommand'](_0x5510('0x19')),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x58'))&&_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0xd'))&&(_0x47e903[_0x5510('0x10')](_0x5510('0x3'),(_0x5e9fac,_0x11e370)=>{const _0xac53db=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')]['document']['selection']);_0xe041be['model'][_0x5510('0x48')](()=>{_0x47e903['markBlockFormat'](_0xac53db,{'commandName':'imageTypeInline','commandParams':[_0x11e370]},[],_0x5510('0x49'));});}),_0x47e903[_0x5510('0x10')](_0x5510('0x3d'),(_0x22838b,_0x415065)=>{_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](_0x294b13=>{let _0x3c8a29=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]),_0x198d3f=_0x294b13[_0x5510('0x33')](_0x3c8a29);const _0x479c61=_0x45527a[_0x5510('0x50')](_0x198d3f[_0x5510('0x6')],_0x5510('0x38')),_0x13023d=_0x45527a[_0x5510('0x50')](_0x198d3f[_0x5510('0x68')],_0x5510('0x54'));_0x47e903[_0x5510('0x4')](()=>_0x22838b(_0x415065)),_0x3c8a29=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']),_0x198d3f=_0x294b13[_0x5510('0x33')](_0x3c8a29);const _0xf1e589=_0x294b13[_0x5510('0x11')](_0x479c61,_0x13023d);_0x479c61[_0x5510('0x39')](),_0x13023d['detach'](),_0x47e903[_0x5510('0x79')](_0x3c8a29,{'commandName':_0x5510('0x3'),'commandParams':[]},[],_0x5510('0x43')),_0xf1e589[_0x5510('0x6')]['isBefore'](_0x198d3f[_0x5510('0x6')])&&_0x47e903[_0x5510('0x30')](_0x294b13[_0x5510('0x11')](_0xf1e589[_0x5510('0x6')],_0x198d3f[_0x5510('0x6')]),_0x5510('0x43')),_0x198d3f[_0x5510('0x68')][_0x5510('0x3f')](_0xf1e589[_0x5510('0x68')])&&_0x47e903[_0x5510('0x30')](_0x294b13[_0x5510('0x11')](_0x198d3f[_0x5510('0x68')],_0xf1e589[_0x5510('0x68')]),_0x5510('0x43'));});}),_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x43'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')]('formatBlock',_0x5510('0x43'),_0x5510('0x63'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),'convertInlineImageToBlock',_0x5510('0x34'),_0x47e903[_0x5510('0x5f')]['getSuggestionCallback'](_0x5510('0x3c'),'',_0x5510('0x63'))),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),_0x5510('0x43'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),'convertInlineImageToBlock',_0x5510('0x34'),([_0x1b44d5])=>{const _0x20ffbb=_0x47e903[_0x5510('0x5f')][_0x5510('0x52')](_0x5510('0x1e'),'',_0x5510('0x34'));let _0x1b257b=_0x1b44d5[_0x5510('0x6')],_0x13e20c=_0x1b44d5[_0x5510('0x68')];const _0x4e4d60=_0xe041be[_0x5510('0x1b')][_0x5510('0x2d')][_0x5510('0x44')](_0x1b257b,'backward'),_0x467de7=_0xe041be[_0x5510('0x1b')][_0x5510('0x2d')][_0x5510('0x44')](_0x13e20c,_0x5510('0x46'));_0x4e4d60['isCollapsed']&&(_0x1b257b=_0x4e4d60['start']),_0x467de7[_0x5510('0x72')]&&(_0x13e20c=_0x467de7['end']),_0x20ffbb([_0xe041be['model']['createRange'](_0x1b257b,_0x13e20c)]);}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x43'),'chain',_0x75c130),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x1e'),'convertInlineImageToBlock',_0x5510('0x1'),_0x75c130)),_0xe041be['plugins'][_0x5510('0x73')](_0x5510('0x56'))&&(_0x47e903[_0x5510('0x10')](_0x5510('0x5a'),(_0x330e6c,_0x22a17f)=>{const _0x130696=_0xe041be[_0x5510('0x74')]['get']('ImageCaptionUtils');let _0x491103=_0xdc81f7[_0x5510('0x60')](_0xe041be['model'][_0x5510('0x17')][_0x5510('0x15')]),_0x464ca5=_0x130696['getCaptionFromImageModelElement'](_0x491103);_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{if(_0x464ca5)return void _0x47e903[_0x5510('0x51')](_0xe041be['model'][_0x5510('0x33')](_0x464ca5));const _0x1745bc=_0xdc81f7['isBlockImage'](_0x491103);_0x330e6c(_0x22a17f),_0x491103=_0xdc81f7['getClosestSelectedImageElement'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']),_0x464ca5=_0x130696[_0x5510('0x78')](_0x491103),_0x47e903[_0x5510('0x30')](_0xe041be[_0x5510('0x1b')]['createRangeOn'](_0x464ca5),_0x1745bc?null:_0x5510('0x4d'));});}),_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x1e'),_0x5510('0x4d'),_0x5510('0x1'),_0x75c130)),_0xe041be[_0x5510('0x74')]['has']('ImageStyleEditing')){_0x47e903[_0x5510('0x10')](_0x5510('0x36'),(_0x19b011,_0x4778cf)=>{const _0x5676f1=_0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x28'))['me'],_0x4f5217=_0xe041be[_0x5510('0x64')][_0x5510('0x4a')](_0x5510('0x36'));let _0x3b0625=_0xdc81f7['getClosestSelectedImageElement'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]),_0x23bf9f=_0xe041be['model'][_0x5510('0x33')](_0x3b0625),_0x1146bf=_0x4f5217[_0x5510('0x40')];if(_0x1146bf==_0x4778cf[_0x5510('0x40')])return;const _0x23a48d={'commandName':_0x5510('0x36'),'commandParams':[_0x4778cf],'formatGroupId':_0x3ba11d()};_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{if(_0x47e903[_0x5510('0x3a')]()[_0x5510('0x4b')](_0xd3b99f=>_0xd3b99f[_0x5510('0x16')]&&_0x5676f1==_0xd3b99f[_0x5510('0x4e')]&&(_0x5510('0x3c')==_0xd3b99f[_0x5510('0x9')]||_0x5510('0x31')==_0xd3b99f[_0x5510('0x9')])&&(_0x5510('0x57')==_0xd3b99f[_0x5510('0x1f')]||'imageStylePostApply'==_0xd3b99f['subType'])&&_0xd3b99f[_0x5510('0x37')]()[_0x5510('0x2')](_0x23bf9f))[_0x5510('0xa')](_0x42cd03=>_0x47e903[_0x5510('0x62')](_0x42cd03[_0x5510('0x24')])),_0x3b0625=_0xdc81f7[_0x5510('0x60')](_0xe041be['model']['document'][_0x5510('0x15')]),_0x23bf9f=_0xe041be[_0x5510('0x1b')][_0x5510('0x33')](_0x3b0625),_0x4f5217['refresh'](),_0xe041be[_0x5510('0x64')]['get'](_0x5510('0x3'))[_0x5510('0x22')](),_0xe041be['commands'][_0x5510('0x4a')]('imageTypeBlock')[_0x5510('0x22')](),_0x1146bf=_0x4f5217[_0x5510('0x40')],_0x1146bf!=_0x4778cf[_0x5510('0x40')])return _0xdc81f7[_0x5510('0x6f')](_0x3b0625)&&_0x4f5217[_0x5510('0x2e')](_0x4778cf[_0x5510('0x40')],_0x3b0625)?(_0x19b011(_0x4778cf),_0x3b0625=_0xdc81f7[_0x5510('0x60')](_0xe041be['model']['document'][_0x5510('0x15')]),void _0x47e903['markBlockFormat'](_0x3b0625,{..._0x23a48d,'commandReversedParams':[{'value':_0x1146bf||null}]},[],_0x5510('0x57'))):void(_0xdc81f7['isBlockImage'](_0x3b0625)?_0x47e903['markBlockFormat'](_0x3b0625,_0x23a48d,[],_0x5510('0x55')):_0x47e903[_0x5510('0xc')](_0x23bf9f,_0x23a48d,'imageStylePostApply'));});});for(const _0x376cca of _0xe041be[_0x5510('0x74')][_0x5510('0x4a')](_0x5510('0x13'))[_0x5510('0x76')])_0x14c256[_0x376cca[_0x5510('0x42')]]=_0x376cca[_0x5510('0x69')][_0x5510('0x2f')]();_0x47e903['_suggestionFactory'][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x57'),'join',()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x55'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x31'),_0x5510('0x55'),_0x5510('0x23'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),'imageStylePreApply',_0x5510('0x63'),()=>{}),_0x47e903[_0x5510('0x5f')][_0x5510('0x5e')](_0x5510('0x3c'),_0x5510('0x57'),'discard',(_0x688b56,_0x1d9d4d)=>{_0x47e903['_suggestionFactory'][_0x5510('0x52')](_0x5510('0x3c'),'','accept')(_0x688b56,{'commandName':_0x1d9d4d[_0x5510('0x66')],'commandParams':_0x1d9d4d[_0x5510('0x41')]});}),_0x47e903[_0x5510('0x5f')]['registerCustomCallback'](_0x5510('0x3c'),'imageStylePreApply','chain',_0x75c130);}const _0x104f70=[{'type':'formatBlock','subType':_0x5510('0x57')},{'type':_0x5510('0x1e'),'subType':_0x5510('0x4d')},{'type':_0x5510('0x3c'),'subType':_0x5510('0x43')},{'type':_0x5510('0x1e'),'subType':_0x5510('0x43')}];function _0x367b90(_0x4963a7,_0x2ea033){const _0x28ea9d=_0x104f70[_0x5510('0x5d')](({type:_0xbec763,subType:_0x9479c2})=>_0x4963a7[_0x5510('0x9')]==_0xbec763&&_0x4963a7[_0x5510('0x1f')]==_0x9479c2),_0x44ed96=_0x104f70[_0x5510('0x5d')](({type:_0x88eaec,subType:_0x51ec35})=>_0x2ea033[_0x5510('0x9')]==_0x88eaec&&_0x2ea033['subType']==_0x51ec35);if(_0x28ea9d<0x0||_0x44ed96<0x0)return!0x1;const _0x81d3e9=_0x4963a7[_0x5510('0x37')](),_0x394819=_0x2ea033['getFirstRange']();if((0x0==_0x28ea9d||0x1==_0x28ea9d)&&0x2==_0x44ed96&&_0x81d3e9[_0x5510('0x1a')](_0x394819))return!0x0;if(0x2==_0x28ea9d&&0x3==_0x44ed96){const _0x27dc6d=_0x47e903[_0x5510('0x6b')](_0x81d3e9,'insertion')[_0x5510('0x4b')](({suggestion:_0x1567b0,meta:_0x52308f})=>_0x52308f[_0x5510('0x32')]&&_0x5510('0x43')==_0x1567b0['subType']);if(_0x27dc6d[_0x5510('0x7')]>0x1&&_0x394819[_0x5510('0x68')]['isEqual'](_0x81d3e9['start']))return!0x0;if(0x1==_0x27dc6d['length']&&(_0x81d3e9[_0x5510('0x6')]['isEqual'](_0x394819[_0x5510('0x68')])||_0x81d3e9[_0x5510('0x68')][_0x5510('0x2')](_0x394819[_0x5510('0x6')])))return!0x0;}if(0x3==_0x28ea9d&&0x3==_0x44ed96&&_0x81d3e9[_0x5510('0x6')][_0x5510('0x3f')](_0x394819[_0x5510('0x6')])){const _0x4863e3=_0x81d3e9[_0x5510('0x68')]['nodeAfter'],_0x27a637=_0x394819[_0x5510('0x6')]['nodeBefore'];return _0xdc81f7[_0x5510('0x5')](_0x4863e3)&&_0x4863e3===_0x27a637;}return!0x1;}function _0x75c130(_0x414ee7,_0x4d64d5){return _0x367b90(_0x414ee7,_0x4d64d5)?[_0x414ee7,_0x4d64d5]:_0x367b90(_0x4d64d5,_0x414ee7)?[_0x4d64d5,_0x414ee7]:null;}_0xe041be['model'][_0x5510('0x17')]['registerPostFixer'](()=>{let _0x474da9=!0x1;const _0x1b97be=Array['from'](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x47')][_0x5510('0x20')]());for(const {name:_0x21656a,data:_0x405c0c}of _0x1b97be){const {group:_0x222363,type:_0x198909,subType:_0x7e6320,id:_0x42cc06}=_0x47e903[_0x5510('0x6c')](_0x21656a);if('suggestion'==_0x222363&&_0x47e903[_0x5510('0x14')](_0x42cc06)){if(_0x5510('0x3c')==_0x198909&&(_0x5510('0x57')==_0x7e6320||_0x5510('0x55')==_0x7e6320)){const _0x28287c=_0x47e903[_0x5510('0x77')](_0x42cc06);if(_0x405c0c['newRange']){const _0x5aabfc=_0x28287c[_0x5510('0x37')]()['getContainedElement']();if(_0xdc81f7[_0x5510('0x5')](_0x5aabfc))continue;_0x47e903[_0x5510('0x62')](_0x28287c),_0x474da9=!0x0;}}if(_0x5510('0x1e')==_0x198909&&_0x5510('0x4d')==_0x7e6320&&!_0x405c0c['newRange']){const _0x29be45=_0x47e903[_0x5510('0x77')](_0x42cc06);_0x29be45[_0x5510('0x12')]&&_0x29be45[_0x5510('0x12')][_0x5510('0x16')]&&(_0x47e903[_0x5510('0x62')](_0x29be45[_0x5510('0x12')]),_0x474da9=!0x0);}}}return _0x474da9;}),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x61'))&&_0x47e903['enableCommand'](_0x5510('0x29'),(_0x569600,_0x10ac1d)=>{const _0x9aeb26=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')][_0x5510('0x15')]);_0x9aeb26[_0x5510('0x70')](_0x5510('0x25'))!=_0x10ac1d[_0x5510('0x25')]&&_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{_0x47e903[_0x5510('0x79')](_0x9aeb26,{'commandName':_0x5510('0x29'),'commandParams':[_0x10ac1d]});});}),_0xe041be[_0x5510('0x74')][_0x5510('0x73')](_0x5510('0x6a'))&&_0x47e903[_0x5510('0x10')](_0x5510('0x21'),(_0x3f1f3d,_0x5c5158)=>{const _0x1f54a2=_0xdc81f7[_0x5510('0x60')](_0xe041be[_0x5510('0x1b')][_0x5510('0x17')]['selection']);(_0x1f54a2['hasAttribute'](_0x5510('0xe'))?_0x1f54a2[_0x5510('0x70')]('alt'):'')!=_0x5c5158[_0x5510('0x6e')]&&_0xe041be[_0x5510('0x1b')][_0x5510('0x48')](()=>{_0x47e903[_0x5510('0x79')](_0x1f54a2,{'commandName':'imageTextAlternative','commandParams':[_0x5c5158]});});}),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x468178=>{if(!!_0x104f70[_0x5510('0x7b')](({type:_0x13482c,subType:_0x3f0536})=>_0x468178[_0x5510('0x9')]==_0x13482c&&_0x468178['subType']==_0x3f0536))return _0x468178[_0x5510('0x71')]?{}:void 0x0;}),_0x47e903[_0x5510('0x6d')][_0x5510('0x4f')](_0x1725d7=>{if(_0x5510('0x1e')==_0x1725d7[_0x5510('0x9')]||'deletion'==_0x1725d7[_0x5510('0x9')]){const _0x16c1d8=_0x1725d7[_0x5510('0x2c')]();if(_0x16c1d8&&_0x16c1d8['is'](_0x5510('0x5c'),_0x5510('0x2a')))return{'type':_0x5510('0x1e')==_0x1725d7[_0x5510('0x9')]?_0x5510('0x26'):_0x5510('0x45'),'element':_0x16c1d8,'quantity':0x1};}}),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x579d08=>'formatBlock'==_0x579d08[_0x5510('0x9')]&&_0x5510('0x43')==_0x579d08['subType']?{'type':_0x5510('0x7a'),'content':_0x5510('0x59')}:_0x5510('0x3c')==_0x579d08['type']&&_0x5510('0x49')==_0x579d08['subType']?{'type':_0x5510('0x7a'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x47e903['_descriptionFactory'][_0x5510('0x4f')](_0x2d0867=>{const {data:_0x390c25}=_0x2d0867;if(_0x390c25){if(_0x5510('0x36')==_0x390c25[_0x5510('0x66')]){const _0x4922f0=_0x390c25[_0x5510('0x3b')][0x0]['value'];return _0x6d7eca('side'===_0x4922f0?_0x270c08(_0x1b9fc4,_0x5510('0x5b')):_0x14c256[_0x4922f0]||_0x4922f0);}if('imageTextAlternative'==_0x390c25[_0x5510('0x66')]){const _0x320e69=_0x390c25[_0x5510('0x3b')][0x0][_0x5510('0x6e')];return _0x320e69?{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x65'),'\x22'+_0x320e69+'\x22')}:{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x35'))};}if('resizeImage'==_0x390c25[_0x5510('0x66')]){const _0x4c960f=_0x390c25['commandParams'][0x0][_0x5510('0x25')];return _0x4c960f?{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x53'),_0x4c960f)}:{'type':'format','content':_0x270c08(_0x1b9fc4,'*Reset\x20image\x20width*')};}}function _0x6d7eca(_0x2b60b4){return{'type':_0x5510('0x7a'),'content':_0x270c08(_0x1b9fc4,_0x5510('0x1c'),_0x2b60b4)};}});}}
|
|
23
|
+
const _0xa296=['commandParams','toLowerCase','commandReversedParams','filter','get','newValue','ImageUploadEditing','length','side','next','ImageStyleEditing','formatInline','commandName','refresh','ImageTextAlternativeEditing','nodeBefore','toNext','getSuggestionCallback','getSuggestions','imageStyle','head','imageCaption','ImageUtils','type','getFirstRange','imageTypeInline','find','_findSuggestions','format','ELEMENT_INLINE_IMAGE','Users','caption','accept','registerElementLabel','nodeAfter','shouldConvertImageType','selection','resizeImage','isEqual','_descriptionFactory','getNearestSelectionRange','ImageBlockEditing','imageInline','Inline\x20image\x20to\x20block\x20image','*Format:*\x20%0','ELEMENT_IMAGE','uploadImage','getCaptionFromImageModelElement','addObject','isOwn','editor','join','markInlineFormat','insertImage','hasSuggestion','insertion','forceDefaultExecution','discardSuggestion','isCollapsed','getSuggestion','formatBlock','isIntersecting','chain','*Reset\x20image\x20width*','width','fromPosition','ImageEditing','toggleImageCaption','hasAttribute','previous','ELEMENT_CAPTION','imageStylePreApply','imageStylePostApply','isInlineImage','createRange','*Set\x20image\x20text\x20alternative:*\x20%0','isBefore','*Remove\x20image\x20text\x20alternative*','getChangedMarkers','enableCommand','registerCustomCallback','model','markBlockFormat','_suggestionFactory','suggestion','registerPostFixer','imageTextAlternative','element','document','has','registerDescriptionCallback','value','start','toPrevious','getClosestSelectedImageElement','deletion','*Set\x20image\x20width:*\x20%0','findIndex','isInContent','convertBlockImageToInline','createRangeOn','end','forEach','newRange','ImageCaptionEditing','_splitMarkerName','TrackChangesEditing','plugins','getContainedElement','getAttribute','schema','subType','change','imageTypeBlock','convertInlineImageToBlock','isBlockImage','title','discard','afterInit','backward','markDeletion','commands','from'];(function(_0x4cb2e5,_0xa29622){const _0x1a5364=function(_0x527550){while(--_0x527550){_0x4cb2e5['push'](_0x4cb2e5['shift']());}};_0x1a5364(++_0xa29622);}(_0xa296,0x1a6));const _0x1a53=function(_0x4cb2e5,_0xa29622){_0x4cb2e5=_0x4cb2e5-0x0;let _0x1a5364=_0xa296[_0x4cb2e5];return _0x1a5364;};import{Plugin as _0x4f4f0d}from'ckeditor5/src/core.js';import{LivePosition as _0x5127af}from'ckeditor5/src/engine.js';import{uid as _0x3c11d0}from'ckeditor5/src/utils.js';import{getTranslation as _0x458bee}from'../utils/common-translations.js';export default class X extends _0x4f4f0d{[_0x1a53('0x41')](){const _0x1ca000=this[_0x1a53('0x78')];if(!_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0xd')))return;const _0x286dab=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x35')),_0x7b4b65=_0x1ca000['plugins']['get'](_0x1a53('0x5c')),_0x4b20a4={},_0xcb0ca0=_0x1ca000['locale'];if(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x0')),_0x286dab['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2fddc2=>_0x458bee(_0xcb0ca0,_0x1a53('0x73'),_0x2fddc2)),_0x286dab[_0x1a53('0x6d')]['registerElementLabel'](_0x1a53('0x70'),_0xb62bd=>_0x458bee(_0xcb0ca0,_0x1a53('0x63'),_0xb62bd)),_0x286dab['_descriptionFactory'][_0x1a53('0x67')](_0x1a53('0x65'),()=>_0x458bee(_0xcb0ca0,_0x1a53('0x11'))),_0x1ca000['plugins'][_0x1a53('0x24')](_0x1a53('0x4c'))&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x74')),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x6f'))&&_0x1ca000['plugins'][_0x1a53('0x24')]('ImageInlineEditing')&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x5f'),(_0x5d4b7e,_0x120fcc)=>{const _0x3739f5=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x3739f5,{'commandName':_0x1a53('0x5f'),'commandParams':[_0x120fcc]},[],_0x1a53('0x2e'));});}),_0x286dab[_0x1a53('0x1a')]('imageTypeBlock',(_0x1cb0d4,_0x9fadf9)=>{_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](_0x569fcd=>{let _0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x5146aa=_0x5127af['fromPosition'](_0x436bd3[_0x1a53('0x27')],_0x1a53('0x28')),_0x1015d3=_0x5127af[_0x1a53('0xc')](_0x436bd3['end'],_0x1a53('0x56'));_0x286dab[_0x1a53('0x3')](()=>_0x1cb0d4(_0x9fadf9)),_0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x141c73=_0x569fcd[_0x1a53('0x15')](_0x5146aa,_0x1015d3);_0x5146aa['detach'](),_0x1015d3['detach'](),_0x286dab['markBlockFormat'](_0xdd7f2d,{'commandName':_0x1a53('0x5f'),'commandParams':[]},[],_0x1a53('0x3d')),_0x141c73[_0x1a53('0x27')][_0x1a53('0x17')](_0x436bd3['start'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x141c73[_0x1a53('0x27')],_0x436bd3['start']),_0x1a53('0x3d')),_0x436bd3[_0x1a53('0x30')]['isBefore'](_0x141c73['end'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x436bd3['end'],_0x141c73[_0x1a53('0x30')]),_0x1a53('0x3d'));});}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),'join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),'accept',()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),_0x1a53('0x40'),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x57')]('formatBlock','','accept')),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x40'),([_0x4effd3])=>{const _0x2ac357=_0x286dab['_suggestionFactory']['getSuggestionCallback']('insertion','',_0x1a53('0x40'));let _0x3602db=_0x4effd3[_0x1a53('0x27')],_0x2b4037=_0x4effd3[_0x1a53('0x30')];const _0x548e4d=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x39')][_0x1a53('0x6e')](_0x3602db,_0x1a53('0x42')),_0x4d678f=_0x1ca000[_0x1a53('0x1c')]['schema']['getNearestSelectionRange'](_0x2b4037,'forward');_0x548e4d['isCollapsed']&&(_0x3602db=_0x548e4d[_0x1a53('0x27')]),_0x4d678f[_0x1a53('0x5')]&&(_0x2b4037=_0x4d678f['end']),_0x2ac357([_0x1ca000[_0x1a53('0x1c')]['createRange'](_0x3602db,_0x2b4037)]);}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),_0x1a53('0x9'),_0x27156a),_0x286dab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x1a53('0x9'),_0x27156a)),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x33'))&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0xe'),(_0x36c2cf,_0x2570c2)=>{const _0x18f404=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')]('ImageCaptionUtils');let _0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']),_0x237b9e=_0x18f404['getCaptionFromImageModelElement'](_0x413301);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x237b9e)return void _0x286dab[_0x1a53('0x43')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e));const _0x5c2164=_0x7b4b65['isBlockImage'](_0x413301);_0x36c2cf(_0x2570c2),_0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x237b9e=_0x18f404[_0x1a53('0x75')](_0x413301),_0x286dab['markInsertion'](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e),_0x5c2164?null:_0x1a53('0x5b'));});}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x5b'),'chain',_0x27156a)),_0x1ca000['plugins'][_0x1a53('0x24')]('ImageStyleEditing')){_0x286dab[_0x1a53('0x1a')](_0x1a53('0x59'),(_0xf82ac2,_0x3c7fcc)=>{const _0x5d4785=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x64'))['me'],_0x4289f3=_0x1ca000['commands'][_0x1a53('0x4a')]('imageStyle');let _0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x327c4f=_0x4289f3['value'];if(_0x327c4f==_0x3c7fcc[_0x1a53('0x26')])return;const _0x37af84={'commandName':_0x1a53('0x59'),'commandParams':[_0x3c7fcc],'formatGroupId':_0x3c11d0()};_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x286dab[_0x1a53('0x58')]()[_0x1a53('0x49')](_0x112324=>_0x112324[_0x1a53('0x2d')]&&_0x5d4785==_0x112324['author']&&(_0x1a53('0x7')==_0x112324['type']||_0x1a53('0x51')==_0x112324[_0x1a53('0x5d')])&&('imageStylePreApply'==_0x112324[_0x1a53('0x3a')]||_0x1a53('0x13')==_0x112324['subType'])&&_0x112324[_0x1a53('0x5e')]()[_0x1a53('0x6c')](_0x18e12e))[_0x1a53('0x31')](_0x65eece=>_0x286dab[_0x1a53('0x4')](_0x65eece[_0x1a53('0x5a')])),_0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x4289f3[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x5f'))[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x3c'))[_0x1a53('0x53')](),_0x327c4f=_0x4289f3[_0x1a53('0x26')],_0x327c4f!=_0x3c7fcc[_0x1a53('0x26')])return _0x7b4b65[_0x1a53('0x14')](_0x1ad3d2)&&_0x4289f3[_0x1a53('0x69')](_0x3c7fcc[_0x1a53('0x26')],_0x1ad3d2)?(_0xf82ac2(_0x3c7fcc),_0x1ad3d2=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),void _0x286dab[_0x1a53('0x1d')](_0x1ad3d2,{..._0x37af84,'commandReversedParams':[{'value':_0x327c4f||null}]},[],_0x1a53('0x12'))):void(_0x7b4b65[_0x1a53('0x3e')](_0x1ad3d2)?_0x286dab[_0x1a53('0x1d')](_0x1ad3d2,_0x37af84,[],_0x1a53('0x13')):_0x286dab[_0x1a53('0x7a')](_0x18e12e,_0x37af84,'imageStylePostApply'));});});for(const _0xc362c5 of _0x1ca000[_0x1a53('0x36')]['get'](_0x1a53('0x50'))['normalizedStyles'])_0x4b20a4[_0xc362c5['name']]=_0xc362c5[_0x1a53('0x3f')][_0x1a53('0x47')]();_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),'imageStylePreApply','join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x13'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatInline','imageStylePostApply',_0x1a53('0x79'),()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x66'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x12'),_0x1a53('0x40'),(_0x44334b,_0x2447ee)=>{_0x286dab['_suggestionFactory'][_0x1a53('0x57')](_0x1a53('0x7'),'',_0x1a53('0x66'))(_0x44334b,{'commandName':_0x2447ee[_0x1a53('0x52')],'commandParams':_0x2447ee[_0x1a53('0x48')]});}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x9'),_0x27156a);}const _0xd46376=[{'type':_0x1a53('0x7'),'subType':_0x1a53('0x12')},{'type':_0x1a53('0x2'),'subType':_0x1a53('0x5b')},{'type':_0x1a53('0x7'),'subType':_0x1a53('0x3d')},{'type':_0x1a53('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1951b9(_0x330b16,_0x4a8ecc){const _0x5a27fe=_0xd46376[_0x1a53('0x2c')](({type:_0x4ef716,subType:_0x28bd31})=>_0x330b16['type']==_0x4ef716&&_0x330b16['subType']==_0x28bd31),_0x1577ab=_0xd46376[_0x1a53('0x2c')](({type:_0x1132f3,subType:_0x1931e4})=>_0x4a8ecc[_0x1a53('0x5d')]==_0x1132f3&&_0x4a8ecc[_0x1a53('0x3a')]==_0x1931e4);if(_0x5a27fe<0x0||_0x1577ab<0x0)return!0x1;const _0x2b8eb2=_0x330b16[_0x1a53('0x5e')](),_0x1c38a0=_0x4a8ecc[_0x1a53('0x5e')]();if((0x0==_0x5a27fe||0x1==_0x5a27fe)&&0x2==_0x1577ab&&_0x2b8eb2[_0x1a53('0x8')](_0x1c38a0))return!0x0;if(0x2==_0x5a27fe&&0x3==_0x1577ab){const _0x502909=_0x286dab[_0x1a53('0x61')](_0x2b8eb2,'insertion')[_0x1a53('0x49')](({suggestion:_0x1149f9,meta:_0x5c50f7})=>_0x5c50f7[_0x1a53('0x77')]&&_0x1a53('0x3d')==_0x1149f9[_0x1a53('0x3a')]);if(_0x502909[_0x1a53('0x4d')]>0x1&&_0x1c38a0['end'][_0x1a53('0x6c')](_0x2b8eb2['start']))return!0x0;if(0x1==_0x502909['length']&&(_0x2b8eb2[_0x1a53('0x27')][_0x1a53('0x6c')](_0x1c38a0['end'])||_0x2b8eb2['end'][_0x1a53('0x6c')](_0x1c38a0[_0x1a53('0x27')])))return!0x0;}if(0x3==_0x5a27fe&&0x3==_0x1577ab&&_0x2b8eb2['start'][_0x1a53('0x17')](_0x1c38a0[_0x1a53('0x27')])){const _0x56be5b=_0x2b8eb2[_0x1a53('0x30')][_0x1a53('0x68')],_0x4800fd=_0x1c38a0['start'][_0x1a53('0x55')];return _0x7b4b65['isBlockImage'](_0x56be5b)&&_0x56be5b===_0x4800fd;}return!0x1;}function _0x27156a(_0x53ff48,_0xcd035f){return _0x1951b9(_0x53ff48,_0xcd035f)?[_0x53ff48,_0xcd035f]:_0x1951b9(_0xcd035f,_0x53ff48)?[_0xcd035f,_0x53ff48]:null;}_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x20')](()=>{let _0xf8ebeb=!0x1;const _0x26811b=Array[_0x1a53('0x45')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['differ'][_0x1a53('0x19')]());for(const {name:_0x377172,data:_0xc09163}of _0x26811b){const {group:_0x1cfaaa,type:_0x25271e,subType:_0x10f11b,id:_0x129b10}=_0x286dab[_0x1a53('0x34')](_0x377172);if(_0x1a53('0x1f')==_0x1cfaaa&&_0x286dab[_0x1a53('0x1')](_0x129b10)){if(_0x1a53('0x7')==_0x25271e&&('imageStylePreApply'==_0x10f11b||_0x1a53('0x13')==_0x10f11b)){const _0x24a0b4=_0x286dab[_0x1a53('0x6')](_0x129b10);if(_0xc09163[_0x1a53('0x32')]){const _0x45f646=_0x24a0b4[_0x1a53('0x5e')]()[_0x1a53('0x37')]();if(_0x7b4b65['isBlockImage'](_0x45f646))continue;_0x286dab[_0x1a53('0x4')](_0x24a0b4),_0xf8ebeb=!0x0;}}if('insertion'==_0x25271e&&_0x1a53('0x5b')==_0x10f11b&&!_0xc09163[_0x1a53('0x32')]){const _0x288bfe=_0x286dab[_0x1a53('0x6')](_0x129b10);_0x288bfe[_0x1a53('0x4f')]&&_0x288bfe[_0x1a53('0x4f')]['isInContent']&&(_0x286dab[_0x1a53('0x4')](_0x288bfe[_0x1a53('0x4f')]),_0xf8ebeb=!0x0);}}}return _0xf8ebeb;}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')]('ImageResize')&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x6b'),(_0x3db10c,_0x56883e)=>{const _0x22663b=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']);_0x22663b[_0x1a53('0x38')](_0x1a53('0xb'))!=_0x56883e[_0x1a53('0xb')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x22663b,{'commandName':_0x1a53('0x6b'),'commandParams':[_0x56883e]});});}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x54'))&&_0x286dab['enableCommand'](_0x1a53('0x21'),(_0xe73460,_0xb43342)=>{const _0x120548=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]);(_0x120548[_0x1a53('0xf')]('alt')?_0x120548[_0x1a53('0x38')]('alt'):'')!=_0xb43342[_0x1a53('0x4b')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x120548,{'commandName':_0x1a53('0x21'),'commandParams':[_0xb43342]});});}),_0x286dab[_0x1a53('0x6d')]['registerDescriptionCallback'](_0x4e8338=>{if(!!_0xd46376[_0x1a53('0x60')](({type:_0x1d9d64,subType:_0x53d8e1})=>_0x4e8338[_0x1a53('0x5d')]==_0x1d9d64&&_0x4e8338[_0x1a53('0x3a')]==_0x53d8e1))return _0x4e8338[_0x1a53('0x10')]?{}:void 0x0;}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x58b6e9=>{if('insertion'==_0x58b6e9[_0x1a53('0x5d')]||_0x1a53('0x2a')==_0x58b6e9[_0x1a53('0x5d')]){const _0x3b225c=_0x58b6e9[_0x1a53('0x37')]();if(_0x3b225c&&_0x3b225c['is'](_0x1a53('0x22'),'caption'))return{'type':'insertion'==_0x58b6e9[_0x1a53('0x5d')]?_0x1a53('0x76'):'removeObject','element':_0x3b225c,'quantity':0x1};}}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0xc5c129=>_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&'convertInlineImageToBlock'==_0xc5c129[_0x1a53('0x3a')]?{'type':_0x1a53('0x62'),'content':_0x1a53('0x71')}:_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&_0x1a53('0x2e')==_0xc5c129[_0x1a53('0x3a')]?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x23b635=>{const {data:_0x3269c5}=_0x23b635;if(_0x3269c5){if(_0x1a53('0x59')==_0x3269c5[_0x1a53('0x52')]){const _0x4bcbd6=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x26')];return _0xc18489(_0x1a53('0x4e')===_0x4bcbd6?_0x458bee(_0xcb0ca0,'FORMAT_SIDE_IMAGE'):_0x4b20a4[_0x4bcbd6]||_0x4bcbd6);}if(_0x1a53('0x21')==_0x3269c5[_0x1a53('0x52')]){const _0x30f829=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x4b')];return _0x30f829?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x16'),'\x22'+_0x30f829+'\x22')}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0x18'))};}if(_0x1a53('0x6b')==_0x3269c5['commandName']){const _0x1b8dce=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0xb')];return _0x1b8dce?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x2b'),_0x1b8dce)}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0xa'))};}}function _0xc18489(_0x2b4fec){return{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x72'),_0x2b4fec)};}});}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module track-changes/integrations/imagereplace
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import type Suggestion from '../suggestion';
|
|
6
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
7
|
-
/**
|
|
8
|
-
* Provides track changes plugin integration for image replace feature.
|
|
9
|
-
*/
|
|
10
|
-
export default class TrackChangesImageReplace extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
afterInit(): void;
|
|
15
|
-
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
16
|
-
source: string;
|
|
17
|
-
}): void;
|
|
18
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
19
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/imagereplace
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import type Suggestion from '../suggestion.js';
|
|
6
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
7
|
+
/**
|
|
8
|
+
* Provides track changes plugin integration for image replace feature.
|
|
9
|
+
*/
|
|
10
|
+
export default class TrackChangesImageReplace extends Plugin {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
afterInit(): void;
|
|
15
|
+
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
16
|
+
source: string;
|
|
17
|
+
}): void;
|
|
18
|
+
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
19
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2619=['has','TrackChangesEditing','Users','registerCustomCallback','handleReplaceImageCommand','replaceImageSource','model','getAttribute','getSuggestions','discard','*Format:*\x20replace\x20image\x20URL','_descriptionFactory','afterInit','accept','document','commandParams','formatBlock','locale','getSelectedElement','enableCommand','markBlockFormat','get','getSuggestionCallback','getContainedElement','data','author','_suggestionFactory','source','selection','editor','plugins','ImageEditing','change','handleSuggestionDescription','registerDescriptionCallback'];(function(_0x18b733,_0x261907){const _0x2a9860=function(_0x3b8852){while(--_0x3b8852){_0x18b733['push'](_0x18b733['shift']());}};_0x2a9860(++_0x261907);}(_0x2619,0xcb));const _0x2a98=function(_0x18b733,_0x261907){_0x18b733=_0x18b733-0x0;let _0x2a9860=_0x2619[_0x18b733];return _0x2a9860;};import{Plugin as _0x2be2fd}from'ckeditor5/src/core.js';import{getTranslation as _0x260194}from'../utils/common-translations.js';export default class Y extends _0x2be2fd{[_0x2a98('0x13')](){if(!this[_0x2a98('0x1')][_0x2a98('0x2')][_0x2a98('0x7')](_0x2a98('0x3')))return;const _0x42d27c=this[_0x2a98('0x1')]['plugins'][_0x2a98('0x1c')]('TrackChangesEditing');_0x42d27c[_0x2a98('0x1a')](_0x2a98('0xc'),(_0x2e7613,_0x8330f2)=>this[_0x2a98('0xb')](_0x2e7613,_0x8330f2)),_0x42d27c[_0x2a98('0x21')][_0x2a98('0xa')](_0x2a98('0x17'),_0x2a98('0xc'),'accept',_0x42d27c[_0x2a98('0x21')][_0x2a98('0x1d')](_0x2a98('0x17'),null,_0x2a98('0x10'))),_0x42d27c[_0x2a98('0x21')][_0x2a98('0xa')](_0x2a98('0x17'),_0x2a98('0xc'),_0x2a98('0x10'),_0x42d27c['_suggestionFactory'][_0x2a98('0x1d')](_0x2a98('0x17'),null,_0x2a98('0x14'))),_0x42d27c[_0x2a98('0x12')][_0x2a98('0x6')](_0x1d29d1=>this['handleSuggestionDescription'](_0x1d29d1));}[_0x2a98('0xb')](_0x35fad4,_0x483571){const _0x425230=this['editor'][_0x2a98('0x2')][_0x2a98('0x1c')](_0x2a98('0x8')),_0x132c5c=this[_0x2a98('0x1')]['model'][_0x2a98('0x15')][_0x2a98('0x0')][_0x2a98('0x19')]();this[_0x2a98('0x1')][_0x2a98('0xd')][_0x2a98('0x4')](()=>{let _0x376a66=_0x132c5c[_0x2a98('0xe')]('src');const _0x453e0e=this[_0x2a98('0x1')][_0x2a98('0x2')][_0x2a98('0x1c')](_0x2a98('0x9'))['me'];for(const _0x3c7e95 of _0x425230[_0x2a98('0xf')]({'skipNotAttached':!0x0})){const _0x6e5971=_0x3c7e95[_0x2a98('0x1e')]();if(_0x2a98('0xc')===_0x3c7e95['subType']&&_0x6e5971===_0x132c5c){_0x3c7e95[_0x2a98('0x20')]!==_0x453e0e&&_0x3c7e95['discard'](),_0x376a66=_0x3c7e95[_0x2a98('0x1f')][_0x2a98('0x16')][0x0][_0x2a98('0x22')];break;}}_0x35fad4(_0x483571),_0x425230[_0x2a98('0x1b')](_0x132c5c,{'commandName':_0x2a98('0xc'),'commandParams':[{'source':_0x376a66}]},[],'replaceImageSource');});}[_0x2a98('0x5')](_0x4d3768){const {data:_0x52fb86}=_0x4d3768;if(_0x52fb86&&'replaceImageSource'===_0x52fb86['commandName']){const _0x1dd7f9=_0x2a98('0x11');return{'type':'format','content':_0x260194(this[_0x2a98('0x1')][_0x2a98('0x18')],_0x1dd7f9)};}}}
|