@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.48 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 _0x1970(_0x26b1e,_0x2bb949){const _0x408d8f=_0x408d();return _0x1970=function(_0x197057,_0x120bd2){_0x197057=_0x197057-0xba;let _0x44ec6d=_0x408d8f[_0x197057];return _0x44ec6d;},_0x1970(_0x26b1e,_0x2bb949);}function _0x408d(){const _0x32dfbe=['1675509KIeLCE','registerDescriptionCallback','60360igEGFi','has','_registerLegacyDescription','registerElementLabel','registerBlockAttribute','6713390DCGMPt','40110lGDmpG','1988753TjwTBY','descriptionFactory','HtmlEmbed','get','editor','plugins','11nxJVCo','formatBlock','ELEMENT_HTML_EMBED','174NNJNCa','attribute','50lmihEU','start','1124kYHMvF','type','210051VNdmaY','TrackChangesEditing','enableDefaultAttributesIntegration','htmlEmbed','416hLMcdY','element','value','164qGfDxn','key','rawHtml','*Change\x20%0\x20content*','nodeAfter','locale','afterInit','commandName','300gRNIrE','getFirstRange','format'];_0x408d=function(){return _0x32dfbe;};return _0x408d();}const _0x16e54f=_0x1970;(function(_0x5b28c5,_0x218a41){const _0x3872bc=_0x1970,_0x53e3ba=_0x5b28c5();while(!![]){try{const _0x246a6e=-parseInt(_0x3872bc(0xc2))/0x1+-parseInt(_0x3872bc(0xe1))/0x2*(parseInt(_0x3872bc(0xc4))/0x3)+-parseInt(_0x3872bc(0xd8))/0x4*(-parseInt(_0x3872bc(0xd6))/0x5)+parseInt(_0x3872bc(0xd4))/0x6*(-parseInt(_0x3872bc(0xca))/0x7)+parseInt(_0x3872bc(0xde))/0x8*(parseInt(_0x3872bc(0xda))/0x9)+parseInt(_0x3872bc(0xc9))/0xa*(-parseInt(_0x3872bc(0xd1))/0xb)+-parseInt(_0x3872bc(0xbf))/0xc*(-parseInt(_0x3872bc(0xcb))/0xd);if(_0x246a6e===_0x218a41)break;else _0x53e3ba['push'](_0x53e3ba['shift']());}catch(_0x490fd2){_0x53e3ba['push'](_0x53e3ba['shift']());}}}(_0x408d,0xd6619));import{Plugin as _0x4f8e26}from'ckeditor5/src/core.js';import{getTranslation as _0x5c796f}from'../utils/common-translations.js';export default class ot extends _0x4f8e26{[_0x16e54f(0xbd)](){const _0x3f7d56=_0x16e54f,_0x2a01d1=this[_0x3f7d56(0xcf)];if(!_0x2a01d1[_0x3f7d56(0xd0)][_0x3f7d56(0xc5)](_0x3f7d56(0xcd)))return;const _0x139a31=_0x2a01d1[_0x3f7d56(0xd0)][_0x3f7d56(0xce)](_0x3f7d56(0xdb)),_0x8ee83b=_0x2a01d1[_0x3f7d56(0xbc)];_0x139a31[_0x3f7d56(0xcc)][_0x3f7d56(0xc7)](_0x3f7d56(0xe3),_0x397b22=>_0x5c796f(_0x8ee83b,_0x3f7d56(0xd3),_0x397b22)),_0x139a31[_0x3f7d56(0xdc)](_0x3f7d56(0xdd)),_0x139a31[_0x3f7d56(0xc8)](_0x3f7d56(0xe0)),_0x139a31[_0x3f7d56(0xcc)][_0x3f7d56(0xc3)](_0x4afe11=>{const _0x3157f9=_0x3f7d56;if(_0x3157f9(0xd5)!=_0x4afe11[_0x3157f9(0xd9)])return;const {data:_0x3a80fa}=_0x4afe11;if(_0x3a80fa&&_0x3157f9(0xe0)==_0x3a80fa[_0x3157f9(0xe2)]&&_0x4afe11[_0x3157f9(0xc0)]()[_0x3157f9(0xd7)][_0x3157f9(0xbb)]['is'](_0x3157f9(0xdf),_0x3157f9(0xe3))){const _0x2e0022=_0x5c796f(_0x8ee83b,_0x3157f9(0xd3));return{'type':_0x3157f9(0xc1),'content':_0x5c796f(_0x8ee83b,_0x3157f9(0xba),_0x2e0022)};}}),this[_0x3f7d56(0xc6)]();}[_0x16e54f(0xc6)](){const _0x45e9e2=_0x16e54f,_0x1440e1=this[_0x45e9e2(0xcf)],_0x2c5c5d=_0x1440e1[_0x45e9e2(0xbc)];_0x1440e1[_0x45e9e2(0xd0)][_0x45e9e2(0xce)](_0x45e9e2(0xdb))[_0x45e9e2(0xcc)][_0x45e9e2(0xc3)](_0xcf3983=>{const _0xbbda4e=_0x45e9e2;if(_0xbbda4e(0xd2)!=_0xcf3983[_0xbbda4e(0xd9)])return;const {data:_0x578d2d}=_0xcf3983;if(_0x578d2d&&_0xbbda4e(0xdd)==_0x578d2d[_0xbbda4e(0xbe)]){const _0x157fa=_0x5c796f(_0x2c5c5d,_0xbbda4e(0xd3));return{'type':_0xbbda4e(0xc1),'content':_0x5c796f(_0x2c5c5d,_0xbbda4e(0xba),_0x157fa)};}});}}