@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 7.26 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x3dc52e=_0x165f;(function(_0x4ecf51,_0xa172c3){const _0x436bcc=_0x165f,_0x213914=_0x4ecf51();while(!![]){try{const _0x1b4fe3=-parseInt(_0x436bcc(0x130))/0x1+-parseInt(_0x436bcc(0x12a))/0x2*(-parseInt(_0x436bcc(0x153))/0x3)+parseInt(_0x436bcc(0x15d))/0x4*(-parseInt(_0x436bcc(0x12d))/0x5)+parseInt(_0x436bcc(0x157))/0x6+-parseInt(_0x436bcc(0x12f))/0x7+parseInt(_0x436bcc(0x143))/0x8*(-parseInt(_0x436bcc(0x121))/0x9)+-parseInt(_0x436bcc(0x122))/0xa*(parseInt(_0x436bcc(0x158))/0xb);if(_0x1b4fe3===_0xa172c3)break;else _0x213914['push'](_0x213914['shift']());}catch(_0x460640){_0x213914['push'](_0x213914['shift']());}}}(_0x2e2b,0x80210));function _0x2e2b(){const _0x5bb20a=['normalizeSizeOptions','*Reset\x20font\x20family*','afterInit','locale','FORMAT_FONT_BACKGROUND','title','16PXkeyI','config','fontColor.colors','FORMAT_FONT_FAMILY','has','find','fontBackgroundColor.colors','editor','*Reset\x20font\x20color*','*Set\x20font\x20color:*\x20%0','trim','fontFamily','format','get','FontBackgroundColorEditing','*Reset\x20font\x20background\x20color*','3CJDlTm','type','toLowerCase','descriptionFactory','5415834vdGaCI','6573127jQQDwC','commandParams','formatInline','*Set\x20font\x20family:*\x20%0','fontBackgroundColor','4HIWZNN','model','222039OPtodB','10PsikId','label','TrackChangesEditing','*Set\x20font\x20background\x20color:*\x20%0','commandName','fontSize.options','value','FontFamilyEditing','1383322AEIgth','*Set\x20font\x20size:*\x20%0','_registerLegacyDescription','1022260cnzHTy','registerDescriptionCallback','419622hVWPaO','158187NbstDs','FontSize','FontColorEditing','FORMAT_FONT_SIZE','FORMAT_FONT_COLOR','registerInlineAttribute','*Reset\x20font\x20size*','plugins','FontSizeEditing','registerAttributeLabel','enableDefaultAttributesIntegration','fontColor','fontSize'];_0x2e2b=function(){return _0x5bb20a;};return _0x2e2b();}import{Plugin as _0x2a0d65}from'ckeditor5/src/core.js';function _0x165f(_0x32471a,_0x1f0854){const _0x2e2be8=_0x2e2b();return _0x165f=function(_0x165fd8,_0x574495){_0x165fd8=_0x165fd8-0x120;let _0x32b61b=_0x2e2be8[_0x165fd8];return _0x32b61b;},_0x165f(_0x32471a,_0x1f0854);}import{normalizeColorOptions as _0x572ab9}from'ckeditor5/src/ui.js';import{getTranslation as _0x53d031}from'../utils/common-translations.js';const ro=[{'pluginName':_0x3dc52e(0x138),'commandName':_0x3dc52e(0x13c)},{'pluginName':_0x3dc52e(0x129),'commandName':_0x3dc52e(0x14e)},{'pluginName':_0x3dc52e(0x132),'commandName':_0x3dc52e(0x13b)},{'pluginName':_0x3dc52e(0x151),'commandName':_0x3dc52e(0x15c)}];export default class tt extends _0x2a0d65{[_0x3dc52e(0x13f)](){const _0x1ccfe1=_0x3dc52e,_0x2c1aaf=this[_0x1ccfe1(0x14a)][_0x1ccfe1(0x140)],_0xc9e8f3=this[_0x1ccfe1(0x14a)][_0x1ccfe1(0x137)][_0x1ccfe1(0x150)](_0x1ccfe1(0x124));for(const {pluginName:_0x4c7f32,commandName:_0xde3c62}of ro)this[_0x1ccfe1(0x14a)][_0x1ccfe1(0x137)][_0x1ccfe1(0x147)](_0x4c7f32)&&(_0xc9e8f3[_0x1ccfe1(0x13a)](_0xde3c62),_0xc9e8f3[_0x1ccfe1(0x135)](_0xde3c62));_0xc9e8f3[_0x1ccfe1(0x156)][_0x1ccfe1(0x139)](_0x1ccfe1(0x13c),_0x53d031(_0x2c1aaf,_0x1ccfe1(0x133))),_0xc9e8f3[_0x1ccfe1(0x156)][_0x1ccfe1(0x139)](_0x1ccfe1(0x14e),_0x53d031(_0x2c1aaf,_0x1ccfe1(0x146))),_0xc9e8f3[_0x1ccfe1(0x156)][_0x1ccfe1(0x139)](_0x1ccfe1(0x13b),_0x53d031(_0x2c1aaf,_0x1ccfe1(0x134))),_0xc9e8f3[_0x1ccfe1(0x156)][_0x1ccfe1(0x139)](_0x1ccfe1(0x15c),_0x53d031(_0x2c1aaf,_0x1ccfe1(0x141))),this[_0x1ccfe1(0x12c)]();}[_0x3dc52e(0x12c)](){const _0x28d1f=_0x3dc52e,_0x1a1137=this[_0x28d1f(0x14a)],_0x517619=_0x1a1137[_0x28d1f(0x140)];_0x1a1137[_0x28d1f(0x137)][_0x28d1f(0x150)](_0x28d1f(0x124))[_0x28d1f(0x156)][_0x28d1f(0x12e)](_0x2d9b0a=>{const _0x18befa=_0x28d1f,_0x34df1e=_0x517619['t'];if(_0x18befa(0x15a)!=_0x2d9b0a[_0x18befa(0x154)])return;const {data:_0x386413}=_0x2d9b0a;if(null!=_0x386413){if(_0x18befa(0x13c)==_0x386413[_0x18befa(0x126)]){const _0x1b277f=_0x386413[_0x18befa(0x159)][0x0][_0x18befa(0x128)];if(_0x1b277f){const _0x5da190=_0x34df1e(this[_0x18befa(0x14a)][_0x18befa(0x137)][_0x18befa(0x150)](_0x18befa(0x131))[_0x18befa(0x13d)](this[_0x18befa(0x14a)][_0x18befa(0x144)][_0x18befa(0x150)](_0x18befa(0x127)))[_0x18befa(0x148)](_0x5885a5=>_0x5885a5[_0x18befa(0x120)]==_0x1b277f)[_0x18befa(0x142)])[_0x18befa(0x155)]();return{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x12b),_0x5da190)};}return{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x136))};}if(_0x18befa(0x14e)==_0x386413[_0x18befa(0x126)]){const _0x14a0eb=_0x386413[_0x18befa(0x159)][0x0][_0x18befa(0x128)];return _0x14a0eb?{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x15b),_0x14a0eb)}:{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x13e))};}if(_0x18befa(0x13b)==_0x386413[_0x18befa(0x126)]){const _0x4bd921=_0x386413[_0x18befa(0x159)][0x0][_0x18befa(0x128)];if(_0x4bd921){const _0x395227=_0x572ab9(this[_0x18befa(0x14a)][_0x18befa(0x144)][_0x18befa(0x150)](_0x18befa(0x145)))[_0x18befa(0x148)](_0x52c722=>_0x52c722[_0x18befa(0x120)]==_0x4bd921);let _0x4a7297=_0x4bd921,_0x4c5bab='';return _0x395227&&(_0x4a7297=_0x395227[_0x18befa(0x123)],_0x4c5bab=_0x34df1e(_0x4a7297)[_0x18befa(0x155)]()),{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x14c),_0x4c5bab)[_0x18befa(0x14d)](),'color':{'value':_0x4bd921,'title':_0x4c5bab||_0x4a7297}};}return{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x14b))};}if(_0x18befa(0x15c)==_0x386413[_0x18befa(0x126)]){const _0x4dfaf2=_0x386413[_0x18befa(0x159)][0x0][_0x18befa(0x128)];if(_0x4dfaf2){const _0xca0cc0=_0x572ab9(this[_0x18befa(0x14a)][_0x18befa(0x144)][_0x18befa(0x150)](_0x18befa(0x149)))[_0x18befa(0x148)](_0x3fe6d3=>_0x3fe6d3[_0x18befa(0x120)]==_0x4dfaf2);let _0x1d4c4c=_0x4dfaf2,_0x20a464='';return _0xca0cc0&&(_0x1d4c4c=_0xca0cc0[_0x18befa(0x123)],_0x20a464=_0x34df1e(_0x1d4c4c)[_0x18befa(0x155)]()),{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x125),_0x20a464)[_0x18befa(0x14d)](),'color':{'value':_0x4dfaf2,'title':_0x20a464||_0x1d4c4c}};}return{'type':_0x18befa(0x14f),'content':_0x53d031(_0x517619,_0x18befa(0x152))};}}});}}