UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

24 lines 3.78 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 _0x108900=_0x25c8;(function(_0x11637c,_0x1c6a7a){const _0x3b55b6=_0x25c8,_0x3e9f9e=_0x11637c();while(!![]){try{const _0x44b855=-parseInt(_0x3b55b6(0x204))/0x1+parseInt(_0x3b55b6(0x1f2))/0x2*(-parseInt(_0x3b55b6(0x1f6))/0x3)+parseInt(_0x3b55b6(0x205))/0x4+-parseInt(_0x3b55b6(0x1fb))/0x5+-parseInt(_0x3b55b6(0x1f5))/0x6*(parseInt(_0x3b55b6(0x1fc))/0x7)+parseInt(_0x3b55b6(0x201))/0x8*(-parseInt(_0x3b55b6(0x1f4))/0x9)+parseInt(_0x3b55b6(0x20b))/0xa*(parseInt(_0x3b55b6(0x200))/0xb);if(_0x44b855===_0x1c6a7a)break;else _0x3e9f9e['push'](_0x3e9f9e['shift']());}catch(_0x2a17bd){_0x3e9f9e['push'](_0x3e9f9e['shift']());}}}(_0x4adc,0xf422d));import{Editor as _0x469472,ElementApiMixin as _0x1f2f82}from'ckeditor5/src/core.js';function _0x4adc(){const _0x2131ff=['4HROQSg','config','308853OZxvQS','10372338XibwPS','169179IUKhqy','initialData','editing','locale','sourceElement','3488085WLQwmo','7Hbomkw','ready','_ui','model','1133gZhrIG','376kBsxnV','createRoot','create','8102HlMuXz','7943828bKUrrc','view','get','initPlugins','updateSourceElement','data','308170OjeOYs','document','fire','destroy','init'];_0x4adc=function(){return _0x2131ff;};return _0x4adc();}import{RevisionViewerEditorUI as _0x354c57}from'./revisionviewereditorui.js';function _0x25c8(_0x58538e,_0x493115){const _0x4adc81=_0x4adc();return _0x25c8=function(_0x25c852,_0x2ea765){_0x25c852=_0x25c852-0x1f0;let _0x47c83b=_0x4adc81[_0x25c852];return _0x47c83b;},_0x25c8(_0x58538e,_0x493115);}import{RevisionViewerEditorUIView as _0x3abcb4}from'./revisionviewereditoruiview.js';export class RevisionViewerEditor extends/* #__PURE__ -- @preserve */ _0x1f2f82(_0x469472){[_0x108900(0x1fe)];get['ui'](){const _0x1adf5b=_0x108900;return this[_0x1adf5b(0x1fe)];}constructor(_0x1c6f02,_0x2f5ab6){const _0x3f856b=_0x108900;super(_0x2f5ab6),this[_0x3f856b(0x1fa)]=_0x1c6f02,this[_0x3f856b(0x1ff)][_0x3f856b(0x20c)][_0x3f856b(0x202)]();const _0x36aeb2=new _0x3abcb4(this[_0x3f856b(0x1f9)],this[_0x3f856b(0x1f8)][_0x3f856b(0x206)],{'shouldToolbarGroupWhenFull':!0x0});this[_0x3f856b(0x1fe)]=new _0x354c57(this,_0x36aeb2);}[_0x108900(0x1f0)](){const _0x5470f1=_0x108900;return this[_0x5470f1(0x209)](),this['ui'][_0x5470f1(0x1f0)](),super[_0x5470f1(0x1f0)]();}static async[_0x108900(0x203)](_0x2326f1,_0x4ba058){const _0x34e315=_0x108900,_0x1ad5d5=new this(_0x2326f1,_0x4ba058);return await _0x1ad5d5[_0x34e315(0x208)](),await _0x1ad5d5['ui'][_0x34e315(0x1f1)](_0x2326f1),await _0x1ad5d5[_0x34e315(0x20a)][_0x34e315(0x1f1)](_0x1ad5d5[_0x34e315(0x1f3)][_0x34e315(0x207)](_0x34e315(0x1f7))||''),_0x1ad5d5[_0x34e315(0x20d)](_0x34e315(0x1fd)),_0x1ad5d5;}}