UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.75 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 _0x4e99c8=_0x16ca;function _0x1e13(){const _0x284eb6=['label','registerInlineAttribute','TrackChangesEditing','unlink','37799900kXLFZX','formatInline','120FYpSHy','*Remove\x20link*','_registerLegacyDescription','LinkEditing','attribute','locale','12sHJRzv','link','editor','newValue','894386Ttpfwj','plugins','manualDecorators','265616lypURz','link\x20(','2492553HSvmwr','*Set\x20link:*\x20%0','commandName','linkHref','type','enableDefaultAttributesIntegration','get','117DDREbd','registerAttributeLabel','key','11ZFzXvs','81438QhGyUL','3725456YAJyOj','format','afterInit','commands','toLowerCase','has','registerDescriptionCallback','442096cxipIk','commandParams','descriptionFactory'];_0x1e13=function(){return _0x284eb6;};return _0x1e13();}function _0x16ca(_0x1ca6e0,_0x2c2f0){const _0x1e13c6=_0x1e13();return _0x16ca=function(_0x16caa7,_0x4d9feb){_0x16caa7=_0x16caa7-0xd1;let _0x3be018=_0x1e13c6[_0x16caa7];return _0x3be018;},_0x16ca(_0x1ca6e0,_0x2c2f0);}(function(_0x231ed2,_0x424613){const _0x2742a3=_0x16ca,_0x3b6b3f=_0x231ed2();while(!![]){try{const _0x45dcd8=parseInt(_0x2742a3(0xe2))/0x1+parseInt(_0x2742a3(0xd2))/0x2+parseInt(_0x2742a3(0xd7))/0x3+parseInt(_0x2742a3(0xd5))/0x4*(parseInt(_0x2742a3(0xf3))/0x5)+parseInt(_0x2742a3(0xf9))/0x6*(parseInt(_0x2742a3(0xe3))/0x7)+-parseInt(_0x2742a3(0xea))/0x8*(-parseInt(_0x2742a3(0xde))/0x9)+parseInt(_0x2742a3(0xf1))/0xa*(-parseInt(_0x2742a3(0xe1))/0xb);if(_0x45dcd8===_0x424613)break;else _0x3b6b3f['push'](_0x3b6b3f['shift']());}catch(_0x2c3ae8){_0x3b6b3f['push'](_0x3b6b3f['shift']());}}}(_0x1e13,0xe966a));import{Plugin as _0x62010f}from'ckeditor5/src/core.js';import{getTranslation as _0x4f2d76}from'../utils/common-translations.js';export default class lt extends _0x62010f{[_0x4e99c8(0xe5)](){const _0x4016ae=_0x4e99c8,_0x1204e1=this[_0x4016ae(0xfb)];if(!_0x1204e1[_0x4016ae(0xd3)][_0x4016ae(0xe8)](_0x4016ae(0xf6)))return;const _0x56fb9a=_0x1204e1[_0x4016ae(0xd3)][_0x4016ae(0xdd)](_0x4016ae(0xef)),_0x55e3e0=_0x1204e1[_0x4016ae(0xe6)][_0x4016ae(0xdd)](_0x4016ae(0xfa));_0x56fb9a[_0x4016ae(0xdc)](_0x4016ae(0xfa)),_0x56fb9a[_0x4016ae(0xdc)](_0x4016ae(0xf0)),_0x56fb9a[_0x4016ae(0xee)](_0x4016ae(0xda));for(const _0x5d9e07 of _0x55e3e0[_0x4016ae(0xd4)])_0x56fb9a[_0x4016ae(0xee)](_0x5d9e07['id']),_0x56fb9a[_0x4016ae(0xec)][_0x4016ae(0xdf)](_0x5d9e07['id'],_0x4016ae(0xd6)+_0x5d9e07[_0x4016ae(0xed)][_0x4016ae(0xe7)]()+')');_0x56fb9a[_0x4016ae(0xec)][_0x4016ae(0xe9)](_0x230137=>{const _0xcc6712=_0x4016ae;if(_0xcc6712(0xf7)!=_0x230137[_0xcc6712(0xdb)])return;const {data:_0x4bb06d}=_0x230137;if(!_0x4bb06d||_0xcc6712(0xda)!=_0x4bb06d[_0xcc6712(0xe0)])return;const _0x2e4109=_0x4bb06d[_0xcc6712(0xd1)],_0x5f0967=_0x1204e1[_0xcc6712(0xf8)];return{'type':_0xcc6712(0xe4),'content':null==_0x2e4109?_0x4f2d76(_0x5f0967,_0xcc6712(0xf4)):_0x4f2d76(_0x5f0967,_0xcc6712(0xd8),'\x22'+_0x2e4109+'\x22')};}),this[_0x4016ae(0xf5)]();}[_0x4e99c8(0xf5)](){const _0x5a981f=_0x4e99c8,_0x3418d2=this[_0x5a981f(0xfb)],_0x9627ed=_0x3418d2[_0x5a981f(0xf8)];_0x3418d2[_0x5a981f(0xd3)][_0x5a981f(0xdd)](_0x5a981f(0xef))[_0x5a981f(0xec)][_0x5a981f(0xe9)](_0x333960=>{const _0x96b1cf=_0x5a981f;if(_0x96b1cf(0xf2)!=_0x333960[_0x96b1cf(0xdb)])return;const {data:_0x24ea9c}=_0x333960;if(_0x24ea9c){if(_0x96b1cf(0xfa)==_0x24ea9c[_0x96b1cf(0xd9)]){const _0x16d952=_0x24ea9c[_0x96b1cf(0xeb)][0x0];return{'type':_0x96b1cf(0xe4),'content':_0x4f2d76(_0x9627ed,_0x96b1cf(0xd8),'\x22'+_0x16d952+'\x22')};}return _0x96b1cf(0xf0)==_0x24ea9c[_0x96b1cf(0xd9)]?{'type':_0x96b1cf(0xe4),'content':_0x4f2d76(_0x9627ed,_0x96b1cf(0xf4))}:void 0x0;}});}}