UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.6 kB
/* * 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 _0x237581=_0x11b9;(function(_0x397721,_0x58ace5){const _0x78d342=_0x11b9,_0x352905=_0x397721();while(!![]){try{const _0x11e3e2=parseInt(_0x78d342(0x1f9))/0x1*(-parseInt(_0x78d342(0x204))/0x2)+-parseInt(_0x78d342(0x1f5))/0x3+-parseInt(_0x78d342(0x206))/0x4+-parseInt(_0x78d342(0x1f4))/0x5*(parseInt(_0x78d342(0x201))/0x6)+parseInt(_0x78d342(0x1ff))/0x7+-parseInt(_0x78d342(0x1f8))/0x8*(parseInt(_0x78d342(0x20b))/0x9)+parseInt(_0x78d342(0x1fb))/0xa*(parseInt(_0x78d342(0x20d))/0xb);if(_0x11e3e2===_0x58ace5)break;else _0x352905['push'](_0x352905['shift']());}catch(_0x4ab9db){_0x352905['push'](_0x352905['shift']());}}}(_0x2bbf,0x4d4d7));import{Command as _0x2221ba}from'ckeditor5/src/core.js';function _0x11b9(_0x494f82,_0x35db1f){const _0x2bbfce=_0x2bbf();return _0x11b9=function(_0x11b9a3,_0x3bd362){_0x11b9a3=_0x11b9a3-0x1f4;let _0x1c33d0=_0x2bbfce[_0x11b9a3];return _0x1c33d0;},_0x11b9(_0x494f82,_0x35db1f);}export class TrackChangesCommand extends _0x2221ba{[_0x237581(0x20a)];constructor(_0x594f36,_0x281c5f){const _0x56fd7e=_0x237581;super(_0x594f36),this[_0x56fd7e(0x20a)]=_0x281c5f,this[_0x56fd7e(0x200)]=!0x1,this[_0x56fd7e(0x203)](),this[_0x56fd7e(0x1fa)]=!0x1;}[_0x237581(0x203)](){const _0x564d5c=_0x237581;this[_0x564d5c(0x209)]=!0x0;}[_0x237581(0x1f7)](){const _0x4560fc=_0x237581;this[_0x4560fc(0x200)]=!this[_0x4560fc(0x200)],this[_0x4560fc(0x200)]?this[_0x4560fc(0x1fd)]():this[_0x4560fc(0x20c)]();}[_0x237581(0x1fd)](){const _0x1ea709=_0x237581;for(const _0x592553 of this[_0x1ea709(0x1fe)][_0x1ea709(0x208)][_0x1ea709(0x208)]())_0x592553[_0x1ea709(0x205)]&&!this[_0x1ea709(0x20a)][_0x1ea709(0x1fc)](_0x592553)&&_0x592553[_0x1ea709(0x202)](_0x1ea709(0x207));}[_0x237581(0x20c)](){const _0x3c3e1c=_0x237581;for(const _0x317d1a of this[_0x3c3e1c(0x1fe)][_0x3c3e1c(0x208)][_0x3c3e1c(0x208)]())_0x317d1a[_0x3c3e1c(0x205)]&&!this[_0x3c3e1c(0x20a)][_0x3c3e1c(0x1fc)](_0x317d1a)&&_0x317d1a[_0x3c3e1c(0x1f6)](_0x3c3e1c(0x207));}}function _0x2bbf(){const _0x489b63=['247149cDNyFR','clearForceDisabled','execute','216CvHtsw','203445WwbJdg','_isEnabledBasedOnSelection','1550gYWEBx','has','_disableUnsupportedCommands','editor','1869434NhhGDo','value','252486cOyXha','forceDisabled','refresh','2uRitgF','affectsData','199688xzgWhg','TrackChangesCommand','commands','isEnabled','_enabledCommands','145269UVGTKK','_enableCommands','85151qJYCjc','45GLXwmr'];_0x2bbf=function(){return _0x489b63;};return _0x2bbf();}