@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.98 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 _0x2eeb(_0x3aa172,_0x3b40df){const _0x40d7bf=_0x40d7();return _0x2eeb=function(_0x2eeb46,_0x4b52c7){_0x2eeb46=_0x2eeb46-0x153;let _0x2468c7=_0x40d7bf[_0x2eeb46];return _0x2468c7;},_0x2eeb(_0x3aa172,_0x3b40df);}const _0x265c38=_0x2eeb;(function(_0x574bb7,_0x1e906f){const _0xdc5fc6=_0x2eeb,_0x486f57=_0x574bb7();while(!![]){try{const _0x25a1ce=-parseInt(_0xdc5fc6(0x163))/0x1+parseInt(_0xdc5fc6(0x17e))/0x2+parseInt(_0xdc5fc6(0x17b))/0x3+parseInt(_0xdc5fc6(0x173))/0x4+parseInt(_0xdc5fc6(0x180))/0x5+-parseInt(_0xdc5fc6(0x188))/0x6*(parseInt(_0xdc5fc6(0x184))/0x7)+parseInt(_0xdc5fc6(0x157))/0x8;if(_0x25a1ce===_0x1e906f)break;else _0x486f57['push'](_0x486f57['shift']());}catch(_0x3bf74a){_0x486f57['push'](_0x486f57['shift']());}}}(_0x40d7,0x499c6));function _0x40d7(){const _0x1a2fbd=['FORMAT_','FORMAT_BOLD','get','format','388568SSGkJC','commandParams','italic','BoldEditing','has','bold','*Remove\x20format:*\x20%0','formatInline','1503003HpVQoh','FORMAT_SUBSCRIPT','superscript','740424ppVIlH','FORMAT_ITALIC','283795kbSPpB','*Format:*\x20%0','SuperscriptEditing','UnderlineEditing','14COJBwx','slice','commandName','FORMAT_UNDERLINE','1649346LUTlkR','StrikethroughEditing','_registerLegacyDescription','ItalicEditing','registerInlineAttribute','3162352ZCHRTv','strikethrough','forceValue','editor','toUpperCase','type','underline','FORMAT_SUPERSCRIPT','code','locale','descriptionFactory','SubscriptEditing','569116zgNHTk','plugins','TrackChangesEditing','FORMAT_STRIKETHROUGH','enableDefaultAttributesIntegration','toLowerCase','registerDescriptionCallback','CodeEditing','registerAttributeLabel','FORMAT_CODE','subscript','afterInit'];_0x40d7=function(){return _0x1a2fbd;};return _0x40d7();}import{Plugin as _0x54ed1c}from'ckeditor5/src/core.js';import{getTranslation as _0x5408dc}from'../utils/common-translations.js';const ti=[_0x265c38(0x176),_0x265c38(0x155),_0x265c38(0x183),_0x265c38(0x16a),_0x265c38(0x153),_0x265c38(0x162),_0x265c38(0x182)];export default class F extends _0x54ed1c{[_0x265c38(0x16e)](){const _0x223179=_0x265c38,_0x3c8396=this[_0x223179(0x15a)],_0x1ca46c=_0x3c8396[_0x223179(0x164)][_0x223179(0x171)](_0x223179(0x165)),_0x1a92c3=_0x3c8396[_0x223179(0x160)];for(const _0x4b48c4 of ti){if(!_0x3c8396[_0x223179(0x164)][_0x223179(0x177)](_0x4b48c4))continue;const _0xe615f3=_0x4b48c4[_0x223179(0x185)](0x0,-0x7)[_0x223179(0x168)](),_0x541887=_0x223179(0x16f)+_0xe615f3[_0x223179(0x15b)]();_0x1ca46c[_0x223179(0x167)](_0xe615f3),_0x1ca46c[_0x223179(0x156)](_0xe615f3),_0x1ca46c[_0x223179(0x161)][_0x223179(0x16b)](_0xe615f3,_0x5408dc(_0x1a92c3,_0x541887));}this[_0x223179(0x154)]();}[_0x265c38(0x154)](){const _0x4a3918=_0x265c38,_0x28b327=this[_0x4a3918(0x15a)],_0x175d5c=_0x28b327[_0x4a3918(0x160)],_0x2dddf9=_0x28b327[_0x4a3918(0x164)][_0x4a3918(0x171)](_0x4a3918(0x165));function _0x562648(_0x5ac8e6,_0x434ed3){const _0x26cace=_0x4a3918;_0x2dddf9[_0x26cace(0x161)][_0x26cace(0x169)](_0x4bdb7c=>{const _0x422901=_0x26cace;if(_0x422901(0x17a)!=_0x4bdb7c[_0x422901(0x15c)])return;const {data:_0x231a96}=_0x4bdb7c;return _0x231a96&&_0x231a96[_0x422901(0x186)]===_0x5ac8e6?_0x231a96[_0x422901(0x174)][0x0][_0x422901(0x159)]?{'type':_0x422901(0x172),'content':_0x5408dc(_0x175d5c,_0x422901(0x181),_0x434ed3)}:{'type':_0x422901(0x172),'content':_0x5408dc(_0x175d5c,_0x422901(0x179),_0x434ed3)}:void 0x0;});}_0x562648(_0x4a3918(0x178),_0x5408dc(_0x175d5c,_0x4a3918(0x170))),_0x562648(_0x4a3918(0x175),_0x5408dc(_0x175d5c,_0x4a3918(0x17f))),_0x562648(_0x4a3918(0x15d),_0x5408dc(_0x175d5c,_0x4a3918(0x187))),_0x562648(_0x4a3918(0x15f),_0x5408dc(_0x175d5c,_0x4a3918(0x16c))),_0x562648(_0x4a3918(0x158),_0x5408dc(_0x175d5c,_0x4a3918(0x166))),_0x562648(_0x4a3918(0x16d),_0x5408dc(_0x175d5c,_0x4a3918(0x17c))),_0x562648(_0x4a3918(0x17d),_0x5408dc(_0x175d5c,_0x4a3918(0x15e)));}}