UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.1 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 _0x2237(){const _0x4d3279=['get','handleDescriptions','has','407922uZZyNS','17577692Ugahqj','newValue','40rcEafv','enableDefaultAttributesIntegration','oldValue','editor','8uktuVt','key','174183BhTlmO','registerDescriptionCallback','data','MultiLevelList','TrackChangesEditing','ELEMENT_MULTI_LEVEL_LIST','next','format','afterInit','4113984tdUKQC','multiLevelList','registerBlockAttribute','locale','head','3916206otCZnF','*Remove\x20format:*\x20%0','plugins','81894PtfUrS','10ypansT','listType','*Set\x20format:*\x20%0','916414HJPqRv','115qCxFXi','descriptionFactory','listMarkerStyle'];_0x2237=function(){return _0x4d3279;};return _0x2237();}function _0x3f66(_0x503a5b,_0x1a3c68){const _0x223713=_0x2237();return _0x3f66=function(_0x3f663f,_0x55d955){_0x3f663f=_0x3f663f-0xce;let _0x297040=_0x223713[_0x3f663f];return _0x297040;},_0x3f66(_0x503a5b,_0x1a3c68);}const _0x420fc3=_0x3f66;(function(_0x31acf8,_0x3c4b90){const _0x37cb22=_0x3f66,_0x325360=_0x31acf8();while(!![]){try{const _0x5cf822=-parseInt(_0x37cb22(0xd3))/0x1+parseInt(_0x37cb22(0xda))/0x2+-parseInt(_0x37cb22(0xe3))/0x3*(parseInt(_0x37cb22(0xdd))/0x4)+-parseInt(_0x37cb22(0xd4))/0x5*(-parseInt(_0x37cb22(0xcf))/0x6)+parseInt(_0x37cb22(0xec))/0x7+-parseInt(_0x37cb22(0xe1))/0x8*(parseInt(_0x37cb22(0xf1))/0x9)+parseInt(_0x37cb22(0xd0))/0xa*(parseInt(_0x37cb22(0xdb))/0xb);if(_0x5cf822===_0x3c4b90)break;else _0x325360['push'](_0x325360['shift']());}catch(_0x3a6a4e){_0x325360['push'](_0x325360['shift']());}}}(_0x2237,0xbc556));import{Plugin as _0x342473}from'ckeditor5/src/core.js';import{getTranslation as _0x5a7d38}from'../utils/common-translations.js';export default class wt extends _0x342473{[_0x420fc3(0xeb)](){const _0x5cb4a4=_0x420fc3,_0x5d4467=this[_0x5cb4a4(0xe0)],_0x44377e=_0x5d4467[_0x5cb4a4(0xce)][_0x5cb4a4(0xd7)](_0x5cb4a4(0xe7));_0x5d4467[_0x5cb4a4(0xce)][_0x5cb4a4(0xd9)](_0x5cb4a4(0xe6))&&(_0x44377e[_0x5cb4a4(0xde)](_0x5cb4a4(0xed)),_0x44377e[_0x5cb4a4(0xee)](_0x5cb4a4(0xd6)),_0x44377e[_0x5cb4a4(0xd5)][_0x5cb4a4(0xe4)](_0xac81ab=>this[_0x5cb4a4(0xd8)](_0xac81ab)));}[_0x420fc3(0xd8)](_0xa999ac){const _0x227baa=_0x420fc3,_0x597ed3=this[_0x227baa(0xe0)][_0x227baa(0xef)],{data:_0x269d4}=_0xa999ac,_0x5634a2={'type':_0x227baa(0xea),'content':''};if(_0x269d4&&_0x227baa(0xd6)==_0x269d4[_0x227baa(0xe2)]){if(!_0x269d4[_0x227baa(0xdf)])return{'type':_0x227baa(0xea),'content':_0x5a7d38(_0x597ed3,_0x227baa(0xd2),_0x5a7d38(_0x597ed3,_0x227baa(0xe8)))+'\x20('+_0x269d4[_0x227baa(0xdc)]+')'};if(!_0x269d4[_0x227baa(0xdc)]){let _0x10bf1a=_0xa999ac[_0x227baa(0xf0)];for(;_0x10bf1a;){if(_0x10bf1a[_0x227baa(0xe5)]&&_0x227baa(0xd1)==_0x10bf1a[_0x227baa(0xe5)][_0x227baa(0xe2)]&&_0x10bf1a[_0x227baa(0xe5)][_0x227baa(0xdc)])return _0x5634a2;_0x10bf1a=_0x10bf1a[_0x227baa(0xe9)];}return{'type':_0x227baa(0xea),'content':_0x5a7d38(_0x597ed3,_0x227baa(0xf2),_0x5a7d38(_0x597ed3,_0x227baa(0xe8)))+'\x20('+_0x269d4[_0x227baa(0xdf)]+')'};}}}}