UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.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 _0x235eab=_0x546c;function _0x54bc(){const _0x316da3=['registerDescriptionCallback','_headingOptions','_registerLegacyDescription','editor','config','1422515vdtYnk','enableDefaultAttributesIntegration','name','24812ENMPra','type','match','view','ELEMENT_HEADING_CUSTOM','value','paragraph','HeadingEditing','commandParams','heading.options','heading','1qjJcgY','find','120980DZAohP','model','title','afterInit','*Change\x20to:*\x20%0','6UgDhfi','747728tRSfXs','commandName','registerElementLabel','plugins','3617117IwvEjz','1582260vZUerZ','format','descriptionFactory','TrackChangesEditing','_getHeadingLevel','has','locale','get','ELEMENT_HEADING','formatBlock','2133moGiFN','3536004IyjCxq'];_0x54bc=function(){return _0x316da3;};return _0x54bc();}(function(_0x2cd197,_0x3056e4){const _0x3846b9=_0x546c,_0x4b5ef0=_0x2cd197();while(!![]){try{const _0x2e1dc8=parseInt(_0x3846b9(0xf8))/0x1*(parseInt(_0x3846b9(0xed))/0x2)+-parseInt(_0x3846b9(0x110))/0x3+-parseInt(_0x3846b9(0x105))/0x4+-parseInt(_0x3846b9(0x116))/0x5+parseInt(_0x3846b9(0xff))/0x6*(-parseInt(_0x3846b9(0x104))/0x7)+parseInt(_0x3846b9(0x100))/0x8+-parseInt(_0x3846b9(0x10f))/0x9*(-parseInt(_0x3846b9(0xfa))/0xa);if(_0x2e1dc8===_0x3056e4)break;else _0x4b5ef0['push'](_0x4b5ef0['shift']());}catch(_0x3558cc){_0x4b5ef0['push'](_0x4b5ef0['shift']());}}}(_0x54bc,0x91e7f));import{Plugin as _0x1d7fa3}from'ckeditor5/src/core.js';import{getTranslation as _0x48fc33}from'../utils/common-translations.js';function _0x546c(_0x4bf8dd,_0x232bbd){const _0x54bcd8=_0x54bc();return _0x546c=function(_0x546c15,_0x4c0d58){_0x546c15=_0x546c15-0xed;let _0x574d5c=_0x54bcd8[_0x546c15];return _0x574d5c;},_0x546c(_0x4bf8dd,_0x232bbd);}export default class et extends _0x1d7fa3{[_0x235eab(0x112)];[_0x235eab(0xfd)](){const _0x344dda=_0x235eab,_0x39b187=this[_0x344dda(0x114)];if(!_0x39b187[_0x344dda(0x103)][_0x344dda(0x10a)](_0x344dda(0xf4)))return;this[_0x344dda(0x112)]=_0x39b187[_0x344dda(0x115)][_0x344dda(0x10c)](_0x344dda(0xf6));const _0x37bd70=_0x39b187[_0x344dda(0x10b)],_0x43997b=_0x39b187[_0x344dda(0x103)][_0x344dda(0x10c)](_0x344dda(0x108));_0x43997b[_0x344dda(0x117)](_0x344dda(0xf7));for(const _0x52ce86 of this[_0x344dda(0x112)])_0x344dda(0xf3)!=_0x52ce86[_0x344dda(0xfb)]&&_0x43997b[_0x344dda(0x107)][_0x344dda(0x102)](_0x52ce86[_0x344dda(0xfb)],_0x58d00c=>{const _0x33823d=_0x344dda,_0x4ca0bf=this[_0x33823d(0x109)](_0x52ce86[_0x33823d(0xfb)]);return null!==_0x4ca0bf?_0x4ac7f2(_0x58d00c,_0x4ca0bf):_0x189821(_0x58d00c,_0x52ce86[_0x33823d(0xfc)]);});function _0x4ac7f2(_0x1ecd4a,_0x196f87){const _0x97f6bb=_0x344dda;return _0x48fc33(_0x37bd70,_0x97f6bb(0x10d),[_0x1ecd4a,_0x196f87]);}function _0x189821(_0x16befd,_0x22d17c){const _0x50933b=_0x344dda;return _0x48fc33(_0x37bd70,_0x50933b(0xf1),[_0x16befd,_0x22d17c]);}this[_0x344dda(0x113)]();}[_0x235eab(0x113)](){const _0x1517f3=_0x235eab,_0x5abcf7=this[_0x1517f3(0x114)],_0x2ee770=_0x5abcf7[_0x1517f3(0x10b)];function _0x30e2e9(_0x520c6,_0x38c086){const _0x2d29ab=_0x1517f3;return _0x48fc33(_0x2ee770,_0x2d29ab(0xf1),[_0x520c6,_0x38c086]);}_0x5abcf7[_0x1517f3(0x103)][_0x1517f3(0x10c)](_0x1517f3(0x108))[_0x1517f3(0x107)][_0x1517f3(0x111)](_0x2728a2=>{const _0x19c161=_0x1517f3;if(_0x19c161(0x10e)!=_0x2728a2[_0x19c161(0xee)])return;const {data:_0x12ba2c}=_0x2728a2;if(_0x12ba2c&&_0x19c161(0xf7)==_0x12ba2c[_0x19c161(0x101)]){const _0x26f630=_0x12ba2c[_0x19c161(0xf5)][0x0][_0x19c161(0xf2)],_0x2a1457=this[_0x19c161(0x109)](_0x26f630);if(null!==_0x2a1457)return{'type':_0x19c161(0x106),'content':_0x48fc33(_0x2ee770,_0x19c161(0xfe),(_0x1e1a33=0x1,_0x24c61f=_0x2a1457,_0x48fc33(_0x2ee770,_0x19c161(0x10d),[_0x1e1a33,_0x24c61f])))};const _0x36a88c=this[_0x19c161(0x112)][_0x19c161(0xf9)](_0x1feec5=>_0x1feec5[_0x19c161(0xfb)]===_0x26f630)[_0x19c161(0xfc)];return{'type':_0x19c161(0x106),'content':_0x48fc33(_0x2ee770,_0x19c161(0xfe),_0x30e2e9(0x1,_0x36a88c))};}var _0x1e1a33,_0x24c61f;});}[_0x235eab(0x109)](_0x1e9de7){const _0x53af9d=_0x235eab,_0x36f3c8=_0x1e9de7[_0x53af9d(0xef)](/^heading(\d+)/);if(_0x36f3c8)return _0x36f3c8[0x1];const _0x33872c=this[_0x53af9d(0x112)]?.[_0x53af9d(0xf9)](_0xb4551a=>_0xb4551a[_0x53af9d(0xfb)]==_0x1e9de7);if(_0x33872c&&_0x33872c[_0x53af9d(0xf0)]){const _0x40e947=_0x33872c[_0x53af9d(0xf0)],_0x556e0b=(_0x40e947[_0x53af9d(0x118)]??_0x40e947)[_0x53af9d(0xef)](/^h(\d+)/);if(_0x556e0b)return _0x556e0b[0x1];}return null;}}