UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.92 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 _0x553d35=_0x6ad9;function _0x2ce9(){const _0x3f4d0a=['setTemplate','focus','render','2082200jFLBAN','className','content','height','ck-track-changes-preview','setAttribute','innerHTML','ck-reset','39woUJCU','\x20ck-track-changes-preview__root-container','data-ck-root-name','1735846eqyOYm','previewDataReady','5048199kMOIYf','setPreviewData','element','width','style','2569704xSivaN','div','3535630pZTqnk','push','650035gMmdTM','fire','27356GpTmlo','16KJImDp','classes','3EwqHzJ','createElement','options','dialogRects'];_0x2ce9=function(){return _0x3f4d0a;};return _0x2ce9();}(function(_0x4638c2,_0x22ee7e){const _0x2348d9=_0x6ad9,_0x163ea1=_0x4638c2();while(!![]){try{const _0x198db1=parseInt(_0x2348d9(0x159))/0x1*(parseInt(_0x2348d9(0x169))/0x2)+parseInt(_0x2348d9(0x16c))/0x3*(-parseInt(_0x2348d9(0x151))/0x4)+parseInt(_0x2348d9(0x167))/0x5+parseInt(_0x2348d9(0x163))/0x6+parseInt(_0x2348d9(0x15c))/0x7*(-parseInt(_0x2348d9(0x16a))/0x8)+parseInt(_0x2348d9(0x15e))/0x9+-parseInt(_0x2348d9(0x165))/0xa;if(_0x198db1===_0x22ee7e)break;else _0x163ea1['push'](_0x163ea1['shift']());}catch(_0x142064){_0x163ea1['push'](_0x163ea1['shift']());}}}(_0x2ce9,0x44fcf));function _0x6ad9(_0x1649b1,_0x4340bf){const _0x2ce9de=_0x2ce9();return _0x6ad9=function(_0x6ad9b3,_0x25781d){_0x6ad9b3=_0x6ad9b3-0x14f;let _0x28137f=_0x2ce9de[_0x6ad9b3];return _0x28137f;},_0x6ad9(_0x1649b1,_0x4340bf);}import{View as _0x3b94b5}from'ckeditor5/src/ui.js';export default class Me extends _0x3b94b5{[_0x553d35(0x16e)];constructor(_0x376583,_0x4fd4a0){const _0x39ad17=_0x553d35;super(_0x376583),this[_0x39ad17(0x16e)]=_0x4fd4a0,this[_0x39ad17(0x170)]({'tag':_0x39ad17(0x164),'attributes':{'class':['ck',_0x39ad17(0x158),_0x39ad17(0x155)],'tabindex':-0x1}});}[_0x553d35(0x150)](){const _0x137f79=_0x553d35;super[_0x137f79(0x150)](),this[_0x137f79(0x160)][_0x137f79(0x162)][_0x137f79(0x161)]=this[_0x137f79(0x16e)][_0x137f79(0x16f)][_0x137f79(0x161)]+'px',this[_0x137f79(0x160)][_0x137f79(0x162)][_0x137f79(0x154)]=this[_0x137f79(0x16e)][_0x137f79(0x16f)][_0x137f79(0x154)]+'px';}[_0x553d35(0x15f)](_0x17955b,_0x19a832){const _0x1b185e=_0x553d35;if(!this[_0x1b185e(0x160)])return;const _0x101714=[];for(const [_0x2dcaca,_0xfbd119]of _0x17955b){const _0x30574c=document[_0x1b185e(0x16d)](_0x1b185e(0x164));_0x30574c[_0x1b185e(0x156)](_0x1b185e(0x15b),_0x2dcaca),_0x30574c[_0x1b185e(0x152)]=_0xfbd119[_0x1b185e(0x16b)]+_0x1b185e(0x15a),_0x30574c[_0x1b185e(0x157)]=_0xfbd119[_0x1b185e(0x153)],_0x101714[_0x1b185e(0x166)](_0x30574c);}_0x19a832(this[_0x1b185e(0x160)],_0x101714),this[_0x1b185e(0x160)][_0x1b185e(0x162)][_0x1b185e(0x154)]='',this[_0x1b185e(0x168)](_0x1b185e(0x15d));}[_0x553d35(0x14f)](){const _0x455f67=_0x553d35;this[_0x455f67(0x160)][_0x455f67(0x14f)]();}}