@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 _0x4750d7=_0x1241;(function(_0x4ac1b8,_0xd99190){const _0xb3a8ce=_0x1241,_0x47e004=_0x4ac1b8();while(!![]){try{const _0x58020e=-parseInt(_0xb3a8ce(0x14d))/0x1*(-parseInt(_0xb3a8ce(0x143))/0x2)+parseInt(_0xb3a8ce(0x163))/0x3*(parseInt(_0xb3a8ce(0x15b))/0x4)+-parseInt(_0xb3a8ce(0x152))/0x5+-parseInt(_0xb3a8ce(0x160))/0x6*(-parseInt(_0xb3a8ce(0x15d))/0x7)+parseInt(_0xb3a8ce(0x137))/0x8*(-parseInt(_0xb3a8ce(0x162))/0x9)+-parseInt(_0xb3a8ce(0x13c))/0xa+parseInt(_0xb3a8ce(0x132))/0xb;if(_0x58020e===_0xd99190)break;else _0x47e004['push'](_0x47e004['shift']());}catch(_0x5b57a0){_0x47e004['push'](_0x47e004['shift']());}}}(_0x415b,0x910eb));import{Plugin as _0x50af41}from'ckeditor5/src/core.js';function _0x415b(){const _0x56e621=['afterInit','*Set\x20font\x20color:*\x20%0','FORMAT_FONT_FAMILY','toLowerCase','model','9263661LhLnRX','TrackChangesEditing','*Set\x20font\x20background\x20color:*\x20%0','get','label','8488008vTJKqQ','fontColor.colors','*Reset\x20font\x20color*','descriptionFactory','fontBackgroundColor','380130gJoAjo','*Reset\x20font\x20size*','type','_registerLegacyDescription','FORMAT_FONT_BACKGROUND','FontFamilyEditing','plugins','21506SQOyTa','locale','FontSizeEditing','*Set\x20font\x20family:*\x20%0','value','*Reset\x20font\x20family*','title','has','find','*Set\x20font\x20size:*\x20%0','57RxaLBv','registerDescriptionCallback','fontBackgroundColor.colors','FontColorEditing','enableDefaultAttributesIntegration','1047085ycOrWC','commandName','registerAttributeLabel','config','FontBackgroundColorEditing','formatInline','normalizeSizeOptions','commandParams','fontColor','1770884bQsEdf','fontSize.options','33551TLdSCE','fontSize','FORMAT_FONT_SIZE','6cfPagh','FORMAT_FONT_COLOR','9PRUmHT','3QPJlUc','editor','*Reset\x20font\x20background\x20color*','fontFamily','registerInlineAttribute','format','FontSize','trim'];_0x415b=function(){return _0x56e621;};return _0x415b();}function _0x1241(_0x397046,_0x2830fc){const _0x415b3a=_0x415b();return _0x1241=function(_0x12413c,_0x16248f){_0x12413c=_0x12413c-0x128;let _0x1f8e6e=_0x415b3a[_0x12413c];return _0x1f8e6e;},_0x1241(_0x397046,_0x2830fc);}import{normalizeColorOptions as _0x42ec41}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e7dc9}from'../utils/common-translations.js';const ro=[{'pluginName':_0x4750d7(0x145),'commandName':_0x4750d7(0x15e)},{'pluginName':_0x4750d7(0x141),'commandName':_0x4750d7(0x128)},{'pluginName':_0x4750d7(0x150),'commandName':_0x4750d7(0x15a)},{'pluginName':_0x4750d7(0x156),'commandName':_0x4750d7(0x13b)}];export default class tt extends _0x50af41{[_0x4750d7(0x12d)](){const _0x125104=_0x4750d7,_0x807d00=this[_0x125104(0x164)][_0x125104(0x144)],_0x3f51f3=this[_0x125104(0x164)][_0x125104(0x142)][_0x125104(0x135)](_0x125104(0x133));for(const {pluginName:_0x5ea1d8,commandName:_0x354529}of ro)this[_0x125104(0x164)][_0x125104(0x142)][_0x125104(0x14a)](_0x5ea1d8)&&(_0x3f51f3[_0x125104(0x151)](_0x354529),_0x3f51f3[_0x125104(0x129)](_0x354529));_0x3f51f3[_0x125104(0x13a)][_0x125104(0x154)](_0x125104(0x15e),_0x3e7dc9(_0x807d00,_0x125104(0x15f))),_0x3f51f3[_0x125104(0x13a)][_0x125104(0x154)](_0x125104(0x128),_0x3e7dc9(_0x807d00,_0x125104(0x12f))),_0x3f51f3[_0x125104(0x13a)][_0x125104(0x154)](_0x125104(0x15a),_0x3e7dc9(_0x807d00,_0x125104(0x161))),_0x3f51f3[_0x125104(0x13a)][_0x125104(0x154)](_0x125104(0x13b),_0x3e7dc9(_0x807d00,_0x125104(0x140))),this[_0x125104(0x13f)]();}[_0x4750d7(0x13f)](){const _0x583f16=_0x4750d7,_0x51b7fd=this[_0x583f16(0x164)],_0x1319d7=_0x51b7fd[_0x583f16(0x144)];_0x51b7fd[_0x583f16(0x142)][_0x583f16(0x135)](_0x583f16(0x133))[_0x583f16(0x13a)][_0x583f16(0x14e)](_0x31984e=>{const _0x14a2f2=_0x583f16,_0x2b9cee=_0x1319d7['t'];if(_0x14a2f2(0x157)!=_0x31984e[_0x14a2f2(0x13e)])return;const {data:_0x30b5b3}=_0x31984e;if(null!=_0x30b5b3){if(_0x14a2f2(0x15e)==_0x30b5b3[_0x14a2f2(0x153)]){const _0x324ef0=_0x30b5b3[_0x14a2f2(0x159)][0x0][_0x14a2f2(0x147)];if(_0x324ef0){const _0x2a0ecf=_0x2b9cee(this[_0x14a2f2(0x164)][_0x14a2f2(0x142)][_0x14a2f2(0x135)](_0x14a2f2(0x12b))[_0x14a2f2(0x158)](this[_0x14a2f2(0x164)][_0x14a2f2(0x155)][_0x14a2f2(0x135)](_0x14a2f2(0x15c)))[_0x14a2f2(0x14b)](_0x292e51=>_0x292e51[_0x14a2f2(0x131)]==_0x324ef0)[_0x14a2f2(0x149)])[_0x14a2f2(0x130)]();return{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x14c),_0x2a0ecf)};}return{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x13d))};}if(_0x14a2f2(0x128)==_0x30b5b3[_0x14a2f2(0x153)]){const _0x4da3db=_0x30b5b3[_0x14a2f2(0x159)][0x0][_0x14a2f2(0x147)];return _0x4da3db?{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x146),_0x4da3db)}:{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x148))};}if(_0x14a2f2(0x15a)==_0x30b5b3[_0x14a2f2(0x153)]){const _0x1e53c2=_0x30b5b3[_0x14a2f2(0x159)][0x0][_0x14a2f2(0x147)];if(_0x1e53c2){const _0x50d280=_0x42ec41(this[_0x14a2f2(0x164)][_0x14a2f2(0x155)][_0x14a2f2(0x135)](_0x14a2f2(0x138)))[_0x14a2f2(0x14b)](_0x6bd028=>_0x6bd028[_0x14a2f2(0x131)]==_0x1e53c2);let _0x1766c3=_0x1e53c2,_0xcb76cf='';return _0x50d280&&(_0x1766c3=_0x50d280[_0x14a2f2(0x136)],_0xcb76cf=_0x2b9cee(_0x1766c3)[_0x14a2f2(0x130)]()),{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x12e),_0xcb76cf)[_0x14a2f2(0x12c)](),'color':{'value':_0x1e53c2,'title':_0xcb76cf||_0x1766c3}};}return{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x139))};}if(_0x14a2f2(0x13b)==_0x30b5b3[_0x14a2f2(0x153)]){const _0x5ec3c0=_0x30b5b3[_0x14a2f2(0x159)][0x0][_0x14a2f2(0x147)];if(_0x5ec3c0){const _0x1d4823=_0x42ec41(this[_0x14a2f2(0x164)][_0x14a2f2(0x155)][_0x14a2f2(0x135)](_0x14a2f2(0x14f)))[_0x14a2f2(0x14b)](_0x232f30=>_0x232f30[_0x14a2f2(0x131)]==_0x5ec3c0);let _0x4b6c89=_0x5ec3c0,_0x203bfc='';return _0x1d4823&&(_0x4b6c89=_0x1d4823[_0x14a2f2(0x136)],_0x203bfc=_0x2b9cee(_0x4b6c89)[_0x14a2f2(0x130)]()),{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x134),_0x203bfc)[_0x14a2f2(0x12c)](),'color':{'value':_0x5ec3c0,'title':_0x203bfc||_0x4b6c89}};}return{'type':_0x14a2f2(0x12a),'content':_0x3e7dc9(_0x1319d7,_0x14a2f2(0x165))};}}});}}