UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.55 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 _0x1958ea=_0x5069;function _0x1381(){const _0x55a97d=['formatInline','539940BlOJkz','editor','1389455JqldjL','4084461pySXxz','2jFJMFY','21829160nMLpkk','1415763wCbMkz','get','_registerLegacyDescription','2049425sqSOST','RemoveFormatEditing','8SxrLWz','plugins','descriptionFactory','formatBlock','afterInit','format','12zBWwRU','registerDescriptionCallback','commandName','*Remove\x20all\x20formatting*','locale','type','has','1421920UjSakG','removeFormat','enableDefaultAttributesIntegration','TrackChangesEditing'];_0x1381=function(){return _0x55a97d;};return _0x1381();}function _0x5069(_0x4c07ae,_0xeb00ea){const _0x1381aa=_0x1381();return _0x5069=function(_0x506901,_0x323c36){_0x506901=_0x506901-0x1c8;let _0x5a2f08=_0x1381aa[_0x506901];return _0x5a2f08;},_0x5069(_0x4c07ae,_0xeb00ea);}(function(_0x437422,_0x26bc53){const _0x2d5505=_0x5069,_0x4f1dfd=_0x437422();while(!![]){try{const _0x395754=-parseInt(_0x2d5505(0x1d0))/0x1+-parseInt(_0x2d5505(0x1d4))/0x2*(parseInt(_0x2d5505(0x1d6))/0x3)+-parseInt(_0x2d5505(0x1cb))/0x4+-parseInt(_0x2d5505(0x1d2))/0x5+-parseInt(_0x2d5505(0x1e1))/0x6*(parseInt(_0x2d5505(0x1d9))/0x7)+parseInt(_0x2d5505(0x1db))/0x8*(parseInt(_0x2d5505(0x1d3))/0x9)+parseInt(_0x2d5505(0x1d5))/0xa;if(_0x395754===_0x26bc53)break;else _0x4f1dfd['push'](_0x4f1dfd['shift']());}catch(_0xded625){_0x4f1dfd['push'](_0x4f1dfd['shift']());}}}(_0x1381,0x631cb));import{Plugin as _0x313f31}from'ckeditor5/src/core.js';import{getTranslation as _0x139869}from'../utils/common-translations.js';export class TrackChangesRemoveFormat extends _0x313f31{[_0x1958ea(0x1df)](){const _0x149c8d=_0x1958ea,_0x5a3ea5=this[_0x149c8d(0x1d1)];if(!_0x5a3ea5[_0x149c8d(0x1dc)][_0x149c8d(0x1ca)](_0x149c8d(0x1da)))return;_0x5a3ea5[_0x149c8d(0x1dc)][_0x149c8d(0x1d7)](_0x149c8d(0x1ce))[_0x149c8d(0x1cd)](_0x149c8d(0x1cc)),this[_0x149c8d(0x1d8)]();}[_0x1958ea(0x1d8)](){const _0x56f8ed=_0x1958ea,_0x27a8fa=this[_0x56f8ed(0x1d1)];_0x27a8fa[_0x56f8ed(0x1dc)][_0x56f8ed(0x1d7)](_0x56f8ed(0x1ce))[_0x56f8ed(0x1dd)][_0x56f8ed(0x1e2)](_0x1f6428=>{const _0x26f597=_0x56f8ed;if(_0x26f597(0x1de)!=_0x1f6428[_0x26f597(0x1c9)]&&_0x26f597(0x1cf)!=_0x1f6428[_0x26f597(0x1c9)])return;const {data:_0x2d1e31}=_0x1f6428;return _0x2d1e31&&_0x26f597(0x1cc)==_0x2d1e31[_0x26f597(0x1e3)]?{'type':_0x26f597(0x1e0),'content':_0x139869(_0x27a8fa[_0x26f597(0x1c8)],_0x26f597(0x1e4))}:void 0x0;});}}