UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.56 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x2ea9(_0x9adb04,_0x40ca29){const _0x33bb61=_0x33bb();return _0x2ea9=function(_0x2ea9bf,_0x4abe37){_0x2ea9bf=_0x2ea9bf-0x119;let _0x5ce0e2=_0x33bb61[_0x2ea9bf];return _0x5ce0e2;},_0x2ea9(_0x9adb04,_0x40ca29);}const _0x783aa4=_0x2ea9;function _0x33bb(){const _0x4d4dec=['plugins','*Outdent:*\x20%0','140bOrNzJ','1183305XVnjYK','9zdMbZK','19901981kPejUO','format','12KSjSHE','indent','blockIndent','_registerLegacyDescription','indentBlock','afterInit','type','1113480zsYuzs','locale','IndentBlock','registerDescriptionCallback','editor','registerAttributeLabel','outdent','1179412KDlKET','formatBlock','has','get','1lFwiMi','3746030sAbtXz','getItemLabel','enableCommand','enableDefaultAttributesIntegration','8799JyffzT','TrackChangesEditing','1220lCFtof','commandName','outdentBlock','*Indent:*\x20%0','44034aYFsrx','IndentEditing','FORMAT_INDENT','getItems','registerBlockAttribute','descriptionFactory'];_0x33bb=function(){return _0x4d4dec;};return _0x33bb();}(function(_0x538c3a,_0x4d877f){const _0x4630d3=_0x2ea9,_0x8e2943=_0x538c3a();while(!![]){try{const _0x4504a5=-parseInt(_0x4630d3(0x136))/0x1*(parseInt(_0x4630d3(0x132))/0x2)+-parseInt(_0x4630d3(0x13b))/0x3*(parseInt(_0x4630d3(0x13d))/0x4)+-parseInt(_0x4630d3(0x120))/0x5+-parseInt(_0x4630d3(0x141))/0x6*(parseInt(_0x4630d3(0x11f))/0x7)+parseInt(_0x4630d3(0x12b))/0x8+-parseInt(_0x4630d3(0x121))/0x9*(-parseInt(_0x4630d3(0x137))/0xa)+-parseInt(_0x4630d3(0x122))/0xb*(-parseInt(_0x4630d3(0x124))/0xc);if(_0x4504a5===_0x4d877f)break;else _0x8e2943['push'](_0x8e2943['shift']());}catch(_0x24c410){_0x8e2943['push'](_0x8e2943['shift']());}}}(_0x33bb,0x6f2b3));import{Plugin as _0x16008e}from'ckeditor5/src/core.js';import{getTranslation as _0x594006}from'../utils/common-translations.js';export default class ft extends _0x16008e{[_0x783aa4(0x129)](){const _0x376ac9=_0x783aa4,_0x506498=this[_0x376ac9(0x12f)],_0x554fd4=_0x506498[_0x376ac9(0x11d)][_0x376ac9(0x135)](_0x376ac9(0x13c));if(_0x506498[_0x376ac9(0x11d)][_0x376ac9(0x134)](_0x376ac9(0x142))&&(_0x554fd4[_0x376ac9(0x139)](_0x376ac9(0x125)),_0x554fd4[_0x376ac9(0x139)](_0x376ac9(0x131))),_0x506498[_0x376ac9(0x11d)][_0x376ac9(0x134)](_0x376ac9(0x12d))){for(const _0x1de1c5 of[_0x376ac9(0x128),_0x376ac9(0x13f)])_0x554fd4[_0x376ac9(0x13a)](_0x1de1c5);}const _0x52f4f8=_0x506498[_0x376ac9(0x12c)];_0x554fd4[_0x376ac9(0x11b)](_0x376ac9(0x126)),_0x554fd4[_0x376ac9(0x11c)][_0x376ac9(0x130)](_0x376ac9(0x126),_0x594006(_0x52f4f8,_0x376ac9(0x119))),this[_0x376ac9(0x127)]();}[_0x783aa4(0x127)](){const _0x178170=_0x783aa4,_0x216b65=this[_0x178170(0x12f)],_0x308f64=_0x216b65[_0x178170(0x12c)],_0x4296d0=_0x216b65[_0x178170(0x11d)][_0x178170(0x135)](_0x178170(0x13c));_0x4296d0[_0x178170(0x11c)][_0x178170(0x12e)](_0x2689da=>{const _0x36cb18=_0x178170;if(_0x36cb18(0x133)!=_0x2689da[_0x36cb18(0x12a)])return;const {data:_0x5932be}=_0x2689da;if(!_0x5932be)return;if(_0x36cb18(0x128)!=_0x5932be[_0x36cb18(0x13e)]&&_0x36cb18(0x13f)!=_0x5932be[_0x36cb18(0x13e)])return;const _0x409e95=_0x2689da[_0x36cb18(0x11a)]()[0x0],_0xd69162=_0x4296d0[_0x36cb18(0x11c)][_0x36cb18(0x138)](_0x409e95);return _0x36cb18(0x128)==_0x5932be[_0x36cb18(0x13e)]?{'type':_0x36cb18(0x123),'content':_0x594006(_0x308f64,_0x36cb18(0x140),_0xd69162)}:_0x36cb18(0x13f)==_0x5932be[_0x36cb18(0x13e)]?{'type':_0x36cb18(0x123),'content':_0x594006(_0x308f64,_0x36cb18(0x11e),_0xd69162)}:void 0x0;});}}