@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.39 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 _0x4e44fb=_0x48a4;(function(_0x35189e,_0x1dfc9e){const _0x22cf9a=_0x48a4,_0x263b4c=_0x35189e();while(!![]){try{const _0xc8320c=parseInt(_0x22cf9a(0x16f))/0x1+parseInt(_0x22cf9a(0x186))/0x2*(-parseInt(_0x22cf9a(0x184))/0x3)+-parseInt(_0x22cf9a(0x177))/0x4+-parseInt(_0x22cf9a(0x18c))/0x5+parseInt(_0x22cf9a(0x183))/0x6*(parseInt(_0x22cf9a(0x187))/0x7)+parseInt(_0x22cf9a(0x180))/0x8*(-parseInt(_0x22cf9a(0x182))/0x9)+parseInt(_0x22cf9a(0x17a))/0xa;if(_0xc8320c===_0x1dfc9e)break;else _0x263b4c['push'](_0x263b4c['shift']());}catch(_0x1c67a5){_0x263b4c['push'](_0x263b4c['shift']());}}}(_0x1e28,0xdb16d));import{Plugin as _0x1651c0}from'ckeditor5/src/core.js';function _0x1e28(){const _0x77e947=['ELEMENT_TITLE','schema','forward','isCollapsed','model','874720gXFgPC','locale','removeMarker','getChangedMarkers','get','getNearestSelectionRange','descriptionFactory','TrackChangesEditing','5688792KbaYoD','newRange','differ','40552930nHeKnm','editor','registerElementLabel','isEqual','createRange','Title','1147912PMcZqO','has','72kBooNS','42CDoBFZ','39utesgY','nodeBefore','253216BGOmus','1497923nAQEvV','registerPostFixer','afterInit','isTouching','suggestion','6572665cMGjTh','end','from','document','plugins','start','_splitMarkerName','element','updateMarker','title-content'];_0x1e28=function(){return _0x77e947;};return _0x1e28();}import{getTranslation as _0x34cd71}from'../utils/common-translations.js';function _0x48a4(_0x4c257b,_0x4c4adb){const _0x1e285f=_0x1e28();return _0x48a4=function(_0x48a4dc,_0x5e1d0d){_0x48a4dc=_0x48a4dc-0x16b;let _0x4320b4=_0x1e285f[_0x48a4dc];return _0x4320b4;},_0x48a4(_0x4c257b,_0x4c4adb);}export class TrackChangesTitle extends _0x1651c0{[_0x4e44fb(0x189)](){const _0x452158=_0x4e44fb,_0x4c9a8c=this[_0x452158(0x17b)];if(!_0x4c9a8c[_0x452158(0x190)][_0x452158(0x181)](_0x452158(0x17f)))return;const _0x113502=_0x4c9a8c[_0x452158(0x190)][_0x452158(0x173)](_0x452158(0x176));_0x113502[_0x452158(0x175)][_0x452158(0x17c)](_0x452158(0x195),()=>_0x34cd71(_0x4c9a8c[_0x452158(0x170)],_0x452158(0x196))),_0x4c9a8c[_0x452158(0x16e)][_0x452158(0x18f)][_0x452158(0x188)](_0x47e1fd=>{const _0x220fa6=_0x452158;let _0x37db5b=!0x1;const _0x2f60ea=Array[_0x220fa6(0x18e)](_0x4c9a8c[_0x220fa6(0x16e)][_0x220fa6(0x18f)][_0x220fa6(0x179)][_0x220fa6(0x172)]());for(const {name:_0x27701b,data:_0x1130f1}of _0x2f60ea){const {group:_0x5411bc}=_0x113502[_0x220fa6(0x192)](_0x27701b);if(_0x220fa6(0x18b)!==_0x5411bc||!_0x1130f1[_0x220fa6(0x178)])continue;const _0x3d8f23=_0x1130f1[_0x220fa6(0x178)],_0x35893b=_0x3d8f23[_0x220fa6(0x18d)][_0x220fa6(0x185)];if(!_0x35893b||!_0x35893b['is'](_0x220fa6(0x193),_0x220fa6(0x195)))continue;if(!_0x3d8f23[_0x220fa6(0x191)][_0x220fa6(0x18a)](_0x3d8f23[_0x220fa6(0x18d)]))continue;const _0x5f5345=_0x4c9a8c[_0x220fa6(0x16e)][_0x220fa6(0x16b)][_0x220fa6(0x174)](_0x3d8f23[_0x220fa6(0x18d)],_0x220fa6(0x16c));if(_0x5f5345&&_0x5f5345[_0x220fa6(0x16d)]){const _0x2ab555=_0x47e1fd[_0x220fa6(0x17e)](_0x3d8f23[_0x220fa6(0x191)],_0x5f5345[_0x220fa6(0x191)]);_0x2ab555[_0x220fa6(0x17d)](_0x3d8f23)||(_0x47e1fd[_0x220fa6(0x194)](_0x27701b,{'range':_0x2ab555}),_0x37db5b=!0x0);}_0x37db5b||(_0x47e1fd[_0x220fa6(0x171)](_0x27701b),_0x37db5b=!0x0);}return _0x37db5b;});}}