@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.53 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 _0x351288=_0x5b31;(function(_0x239e5c,_0xae98c9){const _0x2500c5=_0x5b31,_0x2a6676=_0x239e5c();while(!![]){try{const _0x2f3cea=-parseInt(_0x2500c5(0x147))/0x1*(parseInt(_0x2500c5(0x142))/0x2)+-parseInt(_0x2500c5(0x156))/0x3+-parseInt(_0x2500c5(0x144))/0x4*(-parseInt(_0x2500c5(0x161))/0x5)+-parseInt(_0x2500c5(0x169))/0x6*(parseInt(_0x2500c5(0x141))/0x7)+-parseInt(_0x2500c5(0x14a))/0x8*(-parseInt(_0x2500c5(0x153))/0x9)+-parseInt(_0x2500c5(0x15f))/0xa*(-parseInt(_0x2500c5(0x158))/0xb)+-parseInt(_0x2500c5(0x16a))/0xc*(-parseInt(_0x2500c5(0x157))/0xd);if(_0x2f3cea===_0xae98c9)break;else _0x2a6676['push'](_0x2a6676['shift']());}catch(_0x193a31){_0x2a6676['push'](_0x2a6676['shift']());}}}(_0x4a5f,0x28eba));function _0x5b31(_0x4b1e19,_0x7ff61a){const _0x4a5f70=_0x4a5f();return _0x5b31=function(_0x5b311f,_0x619f3b){_0x5b311f=_0x5b311f-0x140;let _0x265d11=_0x4a5f70[_0x5b311f];return _0x265d11;},_0x5b31(_0x4b1e19,_0x7ff61a);}import{Plugin as _0x2c28e8}from'ckeditor5/src/core.js';import{getTranslation as _0x38ce7e}from'../utils/common-translations.js';function _0x4a5f(){const _0x1e8b2e=['39586TqiNRO','*Remove\x20format:*\x20%0','8CCrrOB','inline','GeneralHtmlSupport','8ATfpYR','registerAttributeLabel','config','1168nMUcHe','style','enableDefaultAttributesIntegration','plugins','afterInit','add','FORMAT_STYLE','styleName','registerBlockAttribute','14445uCPksi','getGhsAttributeNameForElement','type','726678mWDuSA','492206iLcgRL','138303WFpIOt','has','definitions','forceValue','commandParams','descriptionFactory','DataSchema','40fGAwrt','TrackChangesEditing','549935FlbImk','editor','*Set\x20format:*\x20%0','formatBlock','format','locale','normalizeConfig','_registerLegacyDescription','48PYlrzw','96chFstf','Style','ghsAttributes','registerDescriptionCallback','commandName','registerInlineAttribute','get','element','toLowerCase','formatInline','block','StyleUtils','209398NFQWYr'];_0x4a5f=function(){return _0x1e8b2e;};return _0x4a5f();}export default class vt extends _0x2c28e8{[_0x351288(0x14e)](){const _0x37d8de=_0x351288,_0x1ca130=this[_0x37d8de(0x162)];if(!_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x159)](_0x37d8de(0x16b))||!_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x159)](_0x37d8de(0x15e)))return;const _0x4638c=_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x170)](_0x37d8de(0x160)),_0xe6d149=_0x1ca130[_0x37d8de(0x166)],_0x5eac33=_0x1ca130[_0x37d8de(0x149)][_0x37d8de(0x170)](_0x37d8de(0x14b))||{},_0x16f3ef=_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x170)](_0x37d8de(0x146)),_0x34ee9f=_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x170)](_0x37d8de(0x140))[_0x37d8de(0x167)](_0x1ca130[_0x37d8de(0x14d)][_0x37d8de(0x170)](_0x37d8de(0x15e)),_0x5eac33[_0x37d8de(0x15a)]);_0x4638c[_0x37d8de(0x14c)](_0x37d8de(0x14b));const _0x485037=new Set();for(const _0x4794a8 of _0x34ee9f[_0x37d8de(0x174)]){const _0x26c9d8=_0x16f3ef[_0x37d8de(0x154)](_0x4794a8[_0x37d8de(0x171)]);_0x485037[_0x37d8de(0x14f)](_0x26c9d8);}const _0x3a9774=new Set();for(const _0x3808c7 of _0x34ee9f[_0x37d8de(0x145)]){const _0xdc2c=_0x16f3ef[_0x37d8de(0x154)](_0x3808c7[_0x37d8de(0x171)]);_0x3a9774[_0x37d8de(0x14f)](_0xdc2c);for(const _0x51fd71 of _0x3808c7[_0x37d8de(0x16c)])_0x3a9774[_0x37d8de(0x14f)](_0x51fd71);}for(const _0x2a9200 of _0x485037)_0x4638c[_0x37d8de(0x152)](_0x2a9200),_0x4638c[_0x37d8de(0x15d)][_0x37d8de(0x148)](_0x2a9200,_0x38ce7e(_0xe6d149,_0x37d8de(0x150)));for(const _0x305020 of _0x3a9774)_0x4638c[_0x37d8de(0x16f)](_0x305020),_0x4638c[_0x37d8de(0x15d)][_0x37d8de(0x148)](_0x305020,_0x38ce7e(_0xe6d149,_0x37d8de(0x150)));this[_0x37d8de(0x168)]();}[_0x351288(0x168)](){const _0x255c9f=_0x351288,_0x2b1d20=this[_0x255c9f(0x162)],_0x5caaf2=_0x2b1d20[_0x255c9f(0x166)];_0x2b1d20[_0x255c9f(0x14d)][_0x255c9f(0x170)](_0x255c9f(0x160))[_0x255c9f(0x15d)][_0x255c9f(0x16d)](_0x1a4e5f=>{const _0x28a08a=_0x255c9f;if(_0x28a08a(0x164)!=_0x1a4e5f[_0x28a08a(0x155)]&&_0x28a08a(0x173)!=_0x1a4e5f[_0x28a08a(0x155)])return;const {data:_0x599559}=_0x1a4e5f;return _0x599559&&_0x28a08a(0x14b)===_0x599559[_0x28a08a(0x16e)]?_0x599559[_0x28a08a(0x15c)][0x0][_0x28a08a(0x15b)]?{'type':_0x28a08a(0x165),'content':_0x38ce7e(_0x5caaf2,_0x28a08a(0x163),_0x599559[_0x28a08a(0x15c)][0x0][_0x28a08a(0x151)][_0x28a08a(0x172)]())}:{'type':_0x28a08a(0x165),'content':_0x38ce7e(_0x5caaf2,_0x28a08a(0x143),_0x599559[_0x28a08a(0x15c)][0x0][_0x28a08a(0x151)][_0x28a08a(0x172)]())}:void 0x0;});}}