@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5.59 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 _0x8fab37=_0x33c4;(function(_0x1cb2da,_0x4c9da7){const _0x5f45ed=_0x33c4,_0x8c7433=_0x1cb2da();while(!![]){try{const _0x588406=parseInt(_0x5f45ed(0x189))/0x1*(-parseInt(_0x5f45ed(0x199))/0x2)+-parseInt(_0x5f45ed(0x18e))/0x3+parseInt(_0x5f45ed(0x181))/0x4+-parseInt(_0x5f45ed(0x1a3))/0x5+-parseInt(_0x5f45ed(0x197))/0x6*(parseInt(_0x5f45ed(0x195))/0x7)+-parseInt(_0x5f45ed(0x19d))/0x8*(parseInt(_0x5f45ed(0x180))/0x9)+parseInt(_0x5f45ed(0x1a1))/0xa;if(_0x588406===_0x4c9da7)break;else _0x8c7433['push'](_0x8c7433['shift']());}catch(_0x22ceef){_0x8c7433['push'](_0x8c7433['shift']());}}}(_0x1ee5,0x9993e));import{Plugin as _0x164138}from'ckeditor5/src/core.js';import{getTranslation as _0x4d21dd}from'../utils/common-translations.js';function _0x1ee5(){const _0x307b37=['formatBlock','find','HeadingEditing','ELEMENT_HEADING','registerElementLabel','title','205905HyNLto','get','72NPKLKD','afterInit','8hESuYr','_headingOptions','*Change\x20to:*\x20%0','_registerLegacyDescription','16oAXazw','heading.options','descriptionFactory','TrackChangesEditing','26216500GyUUrP','name','809860QiTgoi','_getHeadingLevel','commandParams','match','format','paragraph','locale','type','has','580491gthuZw','3139764UMhSGZ','heading','view','value','ELEMENT_HEADING_CUSTOM','config','registerDescriptionCallback','commandName','230518eNqQgN','model','editor','enableDefaultAttributesIntegration','plugins','3634545aFMKbY'];_0x1ee5=function(){return _0x307b37;};return _0x1ee5();}function _0x33c4(_0x2a2351,_0x4e7868){const _0x1ee541=_0x1ee5();return _0x33c4=function(_0x33c4d8,_0x2921ad){_0x33c4d8=_0x33c4d8-0x17c;let _0x340842=_0x1ee541[_0x33c4d8];return _0x340842;},_0x33c4(_0x2a2351,_0x4e7868);}export class TrackChangesHeading extends _0x164138{[_0x8fab37(0x19a)];[_0x8fab37(0x198)](){const _0x8ace86=_0x8fab37,_0x3bf04e=this[_0x8ace86(0x18b)];if(!_0x3bf04e[_0x8ace86(0x18d)][_0x8ace86(0x17f)](_0x8ace86(0x191)))return;this[_0x8ace86(0x19a)]=_0x3bf04e[_0x8ace86(0x186)][_0x8ace86(0x196)](_0x8ace86(0x19e));const _0xb5cbac=_0x3bf04e[_0x8ace86(0x17d)],_0x1e920e=_0x3bf04e[_0x8ace86(0x18d)][_0x8ace86(0x196)](_0x8ace86(0x1a0));_0x1e920e[_0x8ace86(0x18c)](_0x8ace86(0x182));for(const _0x178122 of this[_0x8ace86(0x19a)])_0x8ace86(0x17c)!=_0x178122[_0x8ace86(0x18a)]&&_0x1e920e[_0x8ace86(0x19f)][_0x8ace86(0x193)](_0x178122[_0x8ace86(0x18a)],_0x18e118=>{const _0xd0b3d7=_0x8ace86,_0x3f1f87=this[_0xd0b3d7(0x1a4)](_0x178122[_0xd0b3d7(0x18a)]);return null!==_0x3f1f87?_0x5cf75f(_0x18e118,_0x3f1f87):_0x16cdae(_0x18e118,_0x178122[_0xd0b3d7(0x194)]);});function _0x5cf75f(_0x272678,_0x323b2b){const _0x211c0d=_0x8ace86;return _0x4d21dd(_0xb5cbac,_0x211c0d(0x192),[_0x272678,_0x323b2b]);}function _0x16cdae(_0x5a3a8e,_0x46d4c6){const _0x38824c=_0x8ace86;return _0x4d21dd(_0xb5cbac,_0x38824c(0x185),[_0x5a3a8e,_0x46d4c6]);}this[_0x8ace86(0x19c)]();}[_0x8fab37(0x19c)](){const _0x2da122=_0x8fab37,_0x1314d5=this[_0x2da122(0x18b)],_0x51d2a4=_0x1314d5[_0x2da122(0x17d)];function _0x2404a8(_0x1cdca2,_0x343835){const _0x213d3a=_0x2da122;return _0x4d21dd(_0x51d2a4,_0x213d3a(0x185),[_0x1cdca2,_0x343835]);}_0x1314d5[_0x2da122(0x18d)][_0x2da122(0x196)](_0x2da122(0x1a0))[_0x2da122(0x19f)][_0x2da122(0x187)](_0x2aa8cd=>{const _0x1e96c2=_0x2da122;if(_0x1e96c2(0x18f)!=_0x2aa8cd[_0x1e96c2(0x17e)])return;const {data:_0xaebd47}=_0x2aa8cd;if(_0xaebd47&&_0x1e96c2(0x182)==_0xaebd47[_0x1e96c2(0x188)]){const _0x131c5c=_0xaebd47[_0x1e96c2(0x1a5)][0x0][_0x1e96c2(0x184)],_0x3e714d=this[_0x1e96c2(0x1a4)](_0x131c5c);if(null!==_0x3e714d)return{'type':_0x1e96c2(0x1a7),'content':_0x4d21dd(_0x51d2a4,_0x1e96c2(0x19b),(_0x3386ce=0x1,_0x4599f3=_0x3e714d,_0x4d21dd(_0x51d2a4,_0x1e96c2(0x192),[_0x3386ce,_0x4599f3])))};const _0x4fbac1=this[_0x1e96c2(0x19a)][_0x1e96c2(0x190)](_0x5d2fa2=>_0x5d2fa2[_0x1e96c2(0x18a)]===_0x131c5c)[_0x1e96c2(0x194)];return{'type':_0x1e96c2(0x1a7),'content':_0x4d21dd(_0x51d2a4,_0x1e96c2(0x19b),_0x2404a8(0x1,_0x4fbac1))};}var _0x3386ce,_0x4599f3;});}[_0x8fab37(0x1a4)](_0x43812c){const _0x305f05=_0x8fab37,_0xaacd07=_0x43812c[_0x305f05(0x1a6)](/^heading(\d+)/);if(_0xaacd07)return _0xaacd07[0x1];const _0x5a6a87=this[_0x305f05(0x19a)]?.[_0x305f05(0x190)](_0x17fb03=>_0x17fb03[_0x305f05(0x18a)]==_0x43812c);if(_0x5a6a87&&_0x5a6a87[_0x305f05(0x183)]){const _0x39b7ea=_0x5a6a87[_0x305f05(0x183)],_0x21bdab=(_0x39b7ea[_0x305f05(0x1a2)]??_0x39b7ea)[_0x305f05(0x1a6)](/^h(\d+)/);if(_0x21bdab)return _0x21bdab[0x1];}return null;}}