@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 _0x2d7968=_0x2163;(function(_0x14dc53,_0x76c889){const _0x2927cc=_0x2163,_0x561973=_0x14dc53();while(!![]){try{const _0x1d4ffd=-parseInt(_0x2927cc(0x17c))/0x1*(parseInt(_0x2927cc(0x180))/0x2)+-parseInt(_0x2927cc(0x172))/0x3+parseInt(_0x2927cc(0x191))/0x4+parseInt(_0x2927cc(0x188))/0x5+-parseInt(_0x2927cc(0x194))/0x6*(parseInt(_0x2927cc(0x176))/0x7)+parseInt(_0x2927cc(0x182))/0x8+parseInt(_0x2927cc(0x171))/0x9;if(_0x1d4ffd===_0x76c889)break;else _0x561973['push'](_0x561973['shift']());}catch(_0x1691c2){_0x561973['push'](_0x561973['shift']());}}}(_0x4d71,0x9cbff));import{Plugin as _0x2bbf53}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x5c82ec}from'ckeditor5/src/ui.js';function _0x2163(_0x38384a,_0x689c0a){const _0x4d71b9=_0x4d71();return _0x2163=function(_0x216313,_0x3946c5){_0x216313=_0x216313-0x161;let _0x33f448=_0x4d71b9[_0x216313];return _0x33f448;},_0x2163(_0x38384a,_0x689c0a);}import{getTranslation as _0x5d1088}from'../utils/common-translations.js';export default class et extends _0x2bbf53{[_0x2d7968(0x16a)](){const _0x38e426=_0x2d7968,_0x1022ec=this[_0x38e426(0x17e)],_0xf9ad69=_0x1022ec[_0x38e426(0x17d)][_0x38e426(0x175)](_0x38e426(0x162)),_0xa2cb53=_0x1022ec[_0x38e426(0x18e)][_0x38e426(0x175)](_0x38e426(0x16d)),_0x39771f=_0x1022ec[_0x38e426(0x18e)][_0x38e426(0x175)](_0x38e426(0x174));_0xa2cb53&&_0x39771f&&(_0xf9ad69[_0x38e426(0x170)](_0x38e426(0x174)),_0xf9ad69[_0x38e426(0x17a)](_0x38e426(0x16d)),this[_0x38e426(0x187)]());}[_0x2d7968(0x187)](){const _0x39b996=_0x2d7968,_0x296648=this[_0x39b996(0x17e)],_0x3cde68=_0x296648[_0x39b996(0x167)];_0x296648[_0x39b996(0x17d)][_0x39b996(0x175)](_0x39b996(0x162))[_0x39b996(0x177)][_0x39b996(0x18b)](_0x1263ef=>{const _0x54610c=_0x39b996;if(_0x54610c(0x16b)!=_0x1263ef[_0x54610c(0x16c)]&&_0x54610c(0x16e)!=_0x1263ef[_0x54610c(0x16c)])return;const {data:_0x3f8a0c}=_0x1263ef;if(_0x3f8a0c&&_0x54610c(0x174)===_0x3f8a0c[_0x54610c(0x193)]){const _0x12c728=[],_0x197787=_0x3f8a0c[_0x54610c(0x163)][0x0];for(const [_0x5472a1,_0x44b7ec]of Object[_0x54610c(0x165)](_0x197787))_0x12c728[_0x54610c(0x183)](so(_0x296648,_0x5472a1,_0x44b7ec));return _0x12c728[_0x54610c(0x184)]?{'type':_0x54610c(0x195),'content':_0x5d1088(_0x3cde68,_0x54610c(0x179),_0x12c728[_0x54610c(0x168)](',\x20'))}:{'type':_0x54610c(0x195),'content':_0x5d1088(_0x3cde68,_0x54610c(0x181))};}});}}function _0x4d71(){const _0x2a738d=['3569484OnvJTn','split','pasteFormat','get','28aWMYtR','descriptionFactory','slice','*Set\x20format\x20to:*\x20%0','enableCommand','fontColor','980721iEaMbs','plugins','editor','find','2jxGwMO','*Remove\x20all\x20formatting*','9609568FqrsBZ','push','length','charAt','model','_registerLegacyDescription','877535NulifC','fontBackgroundColor','toUpperCase','registerDescriptionCallback','FontSize','fontSize.options','commands','fontColor.colors','fontSize','4325516jjxUSk','config','commandName','532074sEFqNz','format','boolean','TrackChangesEditing','commandParams','normalizeSizeOptions','entries','toLowerCase','locale','join','label','afterInit','formatBlock','type','copyFormat','formatInline','title','enableDefaultAttributesIntegration','6383070Cyypab'];_0x4d71=function(){return _0x2a738d;};return _0x4d71();}function so(_0x1766cb,_0x3b2ecd,_0x176bf1){const _0x1b19e6=_0x2d7968,_0x535538=_0x1766cb[_0x1b19e6(0x167)]['t'],_0x5161b1=_0x3b2ecd[_0x1b19e6(0x173)](/(?=[A-Z])/)[_0x1b19e6(0x168)]('\x20'),_0x34209c=_0x535538(_0x5161b1[_0x1b19e6(0x185)](0x0)[_0x1b19e6(0x18a)]()+_0x5161b1[_0x1b19e6(0x178)](0x1))[_0x1b19e6(0x166)]();if(_0x1b19e6(0x161)==typeof _0x176bf1)return _0x34209c;if(_0x1b19e6(0x17b)===_0x3b2ecd||_0x1b19e6(0x189)===_0x3b2ecd){const _0x544c15=_0x5c82ec(_0x1766cb[_0x1b19e6(0x192)][_0x1b19e6(0x175)](_0x1b19e6(0x18f)))[_0x1b19e6(0x17f)](_0x5aa724=>_0x5aa724[_0x1b19e6(0x186)]==_0x176bf1);return _0x34209c+'\x20('+(_0x544c15?_0x535538(_0x544c15[_0x1b19e6(0x169)])[_0x1b19e6(0x166)]():_0x176bf1)+')';}if(_0x1b19e6(0x190)===_0x3b2ecd&&isNaN(parseFloat(_0x176bf1))){const _0x279aca=_0x1766cb[_0x1b19e6(0x17d)][_0x1b19e6(0x175)](_0x1b19e6(0x18c))[_0x1b19e6(0x164)](_0x1766cb[_0x1b19e6(0x192)][_0x1b19e6(0x175)](_0x1b19e6(0x18d)))[_0x1b19e6(0x17f)](_0x4183e7=>_0x4183e7[_0x1b19e6(0x186)]==_0x176bf1);return _0x34209c+'\x20('+(_0x279aca?_0x535538(_0x279aca[_0x1b19e6(0x16f)])[_0x1b19e6(0x166)]():_0x176bf1)+')';}return _0x34209c+'\x20('+_0x176bf1+')';}