@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.4 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 _0x53b82a=_0x1c8b;(function(_0x6eee8e,_0x5494e5){const _0x3add88=_0x1c8b,_0x3621d=_0x6eee8e();while(!![]){try{const _0x3c0489=parseInt(_0x3add88(0xf7))/0x1+parseInt(_0x3add88(0xdd))/0x2*(-parseInt(_0x3add88(0xf3))/0x3)+parseInt(_0x3add88(0xe9))/0x4+-parseInt(_0x3add88(0xfb))/0x5+-parseInt(_0x3add88(0xde))/0x6*(-parseInt(_0x3add88(0xf1))/0x7)+-parseInt(_0x3add88(0xd8))/0x8*(-parseInt(_0x3add88(0xe0))/0x9)+parseInt(_0x3add88(0xe5))/0xa*(-parseInt(_0x3add88(0xe6))/0xb);if(_0x3c0489===_0x5494e5)break;else _0x3621d['push'](_0x3621d['shift']());}catch(_0x5d31aa){_0x3621d['push'](_0x3621d['shift']());}}}(_0x568c,0xf339b));import{Plugin as _0x29211d}from'ckeditor5/src/core.js';function _0x1c8b(_0x2f535c,_0x254d17){const _0x568c91=_0x568c();return _0x1c8b=function(_0x1c8ba3,_0x1c4b8b){_0x1c8ba3=_0x1c8ba3-0xd8;let _0x58c96c=_0x568c91[_0x1c8ba3];return _0x58c96c;},_0x1c8b(_0x2f535c,_0x254d17);}function _0x568c(){const _0x99c944=['3NjBUnF','key','locale','TrackChangesEditing','1366428veePCK','getFirstRange','get','registerBlockAttribute','7912810xyXdOG','editor','format','afterInit','registerDescriptionCallback','8KGCsyU','enableDefaultAttributesIntegration','ELEMENT_HTML_EMBED','nodeAfter','start','3032710DiAVLe','5785014kAdtHL','has','3344427zWvfTa','formatBlock','attribute','rawHtml','type','70pDoMcX','513491rvTrAc','element','*Change\x20%0\x20content*','6878940tobupf','HtmlEmbed','registerElementLabel','commandName','value','descriptionFactory','_registerLegacyDescription','plugins','7McZsYA','htmlEmbed'];_0x568c=function(){return _0x99c944;};return _0x568c();}import{getTranslation as _0x1e8e9c}from'../utils/common-translations.js';export class TrackChangesHtmlEmbed extends _0x29211d{[_0x53b82a(0xfe)](){const _0x3051ff=_0x53b82a,_0x11ab63=this[_0x3051ff(0xfc)];if(!_0x11ab63[_0x3051ff(0xf0)][_0x3051ff(0xdf)](_0x3051ff(0xea)))return;const _0x15b207=_0x11ab63[_0x3051ff(0xf0)][_0x3051ff(0xf9)](_0x3051ff(0xf6)),_0x23b936=_0x11ab63[_0x3051ff(0xf5)];_0x15b207[_0x3051ff(0xee)][_0x3051ff(0xeb)](_0x3051ff(0xe3),_0xd4ffa2=>_0x1e8e9c(_0x23b936,_0x3051ff(0xda),_0xd4ffa2)),_0x15b207[_0x3051ff(0xd9)](_0x3051ff(0xf2)),_0x15b207[_0x3051ff(0xfa)](_0x3051ff(0xed)),_0x15b207[_0x3051ff(0xee)][_0x3051ff(0xff)](_0x4069e7=>{const _0x5e55b2=_0x3051ff;if(_0x5e55b2(0xe2)!=_0x4069e7[_0x5e55b2(0xe4)])return;const {data:_0x3c57f6}=_0x4069e7;if(_0x3c57f6&&_0x5e55b2(0xed)==_0x3c57f6[_0x5e55b2(0xf4)]&&_0x4069e7[_0x5e55b2(0xf8)]()[_0x5e55b2(0xdc)][_0x5e55b2(0xdb)]['is'](_0x5e55b2(0xe7),_0x5e55b2(0xe3))){const _0x4b4a5a=_0x1e8e9c(_0x23b936,_0x5e55b2(0xda));return{'type':_0x5e55b2(0xfd),'content':_0x1e8e9c(_0x23b936,_0x5e55b2(0xe8),_0x4b4a5a)};}}),this[_0x3051ff(0xef)]();}[_0x53b82a(0xef)](){const _0x1c18a4=_0x53b82a,_0x410713=this[_0x1c18a4(0xfc)],_0x463f39=_0x410713[_0x1c18a4(0xf5)];_0x410713[_0x1c18a4(0xf0)][_0x1c18a4(0xf9)](_0x1c18a4(0xf6))[_0x1c18a4(0xee)][_0x1c18a4(0xff)](_0x558b9b=>{const _0x4f1825=_0x1c18a4;if(_0x4f1825(0xe1)!=_0x558b9b[_0x4f1825(0xe4)])return;const {data:_0x2a6ec0}=_0x558b9b;if(_0x2a6ec0&&_0x4f1825(0xf2)==_0x2a6ec0[_0x4f1825(0xec)]){const _0x27aad6=_0x1e8e9c(_0x463f39,_0x4f1825(0xda));return{'type':_0x4f1825(0xfd),'content':_0x1e8e9c(_0x463f39,_0x4f1825(0xe8),_0x27aad6)};}});}}