@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.52 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x2f6e(_0x567bf3,_0x2e5ab4){const _0x4f01f3=_0x4f01();return _0x2f6e=function(_0x2f6e38,_0x3ddbd8){_0x2f6e38=_0x2f6e38-0xdf;let _0x53780f=_0x4f01f3[_0x2f6e38];return _0x53780f;},_0x2f6e(_0x567bf3,_0x2e5ab4);}const _0x37c184=_0x2f6e;(function(_0x40c766,_0x3440c0){const _0x3d5afd=_0x2f6e,_0x149261=_0x40c766();while(!![]){try{const _0x3e474c=parseInt(_0x3d5afd(0xe9))/0x1+parseInt(_0x3d5afd(0xf2))/0x2*(-parseInt(_0x3d5afd(0xfb))/0x3)+parseInt(_0x3d5afd(0xe1))/0x4*(parseInt(_0x3d5afd(0x10a))/0x5)+parseInt(_0x3d5afd(0xe5))/0x6+parseInt(_0x3d5afd(0xe3))/0x7*(parseInt(_0x3d5afd(0xf5))/0x8)+-parseInt(_0x3d5afd(0x10f))/0x9+-parseInt(_0x3d5afd(0x110))/0xa;if(_0x3e474c===_0x3440c0)break;else _0x149261['push'](_0x149261['shift']());}catch(_0x2999ef){_0x149261['push'](_0x149261['shift']());}}}(_0x4f01,0x20435));import{Plugin as _0x224ce2}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x2f39ae}from'ckeditor5/src/ui.js';import{getTranslation as _0x477b0b}from'../utils/common-translations.js';export default class it extends _0x224ce2{[_0x37c184(0x107)](){const _0x36deb3=_0x37c184,_0x23b30d=this[_0x36deb3(0xe4)],_0x39d2f8=_0x23b30d[_0x36deb3(0xfd)][_0x36deb3(0xf1)](_0x36deb3(0xea)),_0x17c6fb=_0x23b30d[_0x36deb3(0x10d)][_0x36deb3(0xf1)](_0x36deb3(0x106)),_0x9b297a=_0x23b30d[_0x36deb3(0x10d)][_0x36deb3(0xf1)](_0x36deb3(0x103));_0x17c6fb&&_0x9b297a&&(_0x39d2f8[_0x36deb3(0x10c)](_0x36deb3(0x103)),_0x39d2f8[_0x36deb3(0xeb)](_0x36deb3(0x106)),this[_0x36deb3(0xdf)]());}[_0x37c184(0xdf)](){const _0x4e7f3b=_0x37c184,_0x3587aa=this[_0x4e7f3b(0xe4)],_0x4dc31d=_0x3587aa[_0x4e7f3b(0x105)];_0x3587aa[_0x4e7f3b(0xfd)][_0x4e7f3b(0xf1)](_0x4e7f3b(0xea))[_0x4e7f3b(0xef)][_0x4e7f3b(0x100)](_0x4cd1f2=>{const _0x1f8ae2=_0x4e7f3b;if(_0x1f8ae2(0x113)!=_0x4cd1f2[_0x1f8ae2(0xe2)]&&_0x1f8ae2(0xec)!=_0x4cd1f2[_0x1f8ae2(0xe2)])return;const {data:_0x3902f7}=_0x4cd1f2;if(_0x3902f7&&_0x1f8ae2(0x103)===_0x3902f7[_0x1f8ae2(0xf8)]){const _0x350c22=[],_0x4cd551=_0x3902f7[_0x1f8ae2(0xf9)][0x0];for(const [_0x49e36e,_0x287408]of Object[_0x1f8ae2(0xfe)](_0x4cd551))_0x350c22[_0x1f8ae2(0xf7)](so(_0x3587aa,_0x49e36e,_0x287408));return _0x350c22[_0x1f8ae2(0xfa)]?{'type':_0x1f8ae2(0x108),'content':_0x477b0b(_0x4dc31d,_0x1f8ae2(0xff),_0x350c22[_0x1f8ae2(0xf6)](',\x20'))}:{'type':_0x1f8ae2(0x108),'content':_0x477b0b(_0x4dc31d,_0x1f8ae2(0x104))};}});}}function _0x4f01(){const _0x117343=['pasteFormat','*Remove\x20all\x20formatting*','locale','copyFormat','afterInit','format','toUpperCase','55LPcRan','fontSize','enableDefaultAttributesIntegration','commands','split','1451781LCXIsW','2537640zKJezn','fontBackgroundColor','boolean','formatBlock','fontColor','_registerLegacyDescription','fontSize.options','21268qodVrv','type','354746FdLpUq','editor','941976uFyZZm','FontSize','title','toLowerCase','204988DuFVCZ','TrackChangesEditing','enableCommand','formatInline','slice','fontColor.colors','descriptionFactory','normalizeSizeOptions','get','18cFPvOZ','config','label','40ppJPYX','join','push','commandName','commandParams','length','42213mLQlMJ','charAt','plugins','entries','*Set\x20format\x20to:*\x20%0','registerDescriptionCallback','find','model'];_0x4f01=function(){return _0x117343;};return _0x4f01();}function so(_0x448ec7,_0x431637,_0x506ab0){const _0x3bb0a3=_0x37c184,_0x2e46a2=_0x448ec7[_0x3bb0a3(0x105)]['t'],_0x595778=_0x431637[_0x3bb0a3(0x10e)](/(?=[A-Z])/)[_0x3bb0a3(0xf6)]('\x20'),_0xf59a61=_0x2e46a2(_0x595778[_0x3bb0a3(0xfc)](0x0)[_0x3bb0a3(0x109)]()+_0x595778[_0x3bb0a3(0xed)](0x1))[_0x3bb0a3(0xe8)]();if(_0x3bb0a3(0x112)==typeof _0x506ab0)return _0xf59a61;if(_0x3bb0a3(0x114)===_0x431637||_0x3bb0a3(0x111)===_0x431637){const _0xecb5a4=_0x2f39ae(_0x448ec7[_0x3bb0a3(0xf3)][_0x3bb0a3(0xf1)](_0x3bb0a3(0xee)))[_0x3bb0a3(0x101)](_0x2811ad=>_0x2811ad[_0x3bb0a3(0x102)]==_0x506ab0);return _0xf59a61+'\x20('+(_0xecb5a4?_0x2e46a2(_0xecb5a4[_0x3bb0a3(0xf4)])[_0x3bb0a3(0xe8)]():_0x506ab0)+')';}if(_0x3bb0a3(0x10b)===_0x431637&&isNaN(parseFloat(_0x506ab0))){const _0x2ab97c=_0x448ec7[_0x3bb0a3(0xfd)][_0x3bb0a3(0xf1)](_0x3bb0a3(0xe6))[_0x3bb0a3(0xf0)](_0x448ec7[_0x3bb0a3(0xf3)][_0x3bb0a3(0xf1)](_0x3bb0a3(0xe0)))[_0x3bb0a3(0x101)](_0x1c909f=>_0x1c909f[_0x3bb0a3(0x102)]==_0x506ab0);return _0xf59a61+'\x20('+(_0x2ab97c?_0x2e46a2(_0x2ab97c[_0x3bb0a3(0xe7)])[_0x3bb0a3(0xe8)]():_0x506ab0)+')';}return _0xf59a61+'\x20('+_0x506ab0+')';}