@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.15 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x24f9a5=_0x59ab;(function(_0x433227,_0x40ffa2){const _0x5efad9=_0x59ab,_0x4d9246=_0x433227();while(!![]){try{const _0x12436a=parseInt(_0x5efad9(0x186))/0x1+-parseInt(_0x5efad9(0x187))/0x2*(-parseInt(_0x5efad9(0x172))/0x3)+-parseInt(_0x5efad9(0x17f))/0x4+parseInt(_0x5efad9(0x17b))/0x5*(parseInt(_0x5efad9(0x18d))/0x6)+-parseInt(_0x5efad9(0x168))/0x7*(-parseInt(_0x5efad9(0x16f))/0x8)+-parseInt(_0x5efad9(0x165))/0x9*(parseInt(_0x5efad9(0x18c))/0xa)+-parseInt(_0x5efad9(0x178))/0xb;if(_0x12436a===_0x40ffa2)break;else _0x4d9246['push'](_0x4d9246['shift']());}catch(_0x5e590a){_0x4d9246['push'](_0x4d9246['shift']());}}}(_0x5493,0x805ed));function _0x59ab(_0x5cf9ea,_0x34603f){const _0x5493c4=_0x5493();return _0x59ab=function(_0x59ab6e,_0x354199){_0x59ab6e=_0x59ab6e-0x160;let _0x392ee9=_0x5493c4[_0x59ab6e];return _0x392ee9;},_0x59ab(_0x5cf9ea,_0x34603f);}import{View as _0x158de0}from'ckeditor5/src/ui.js';import{FocusTracker as _0x25a96f,KeystrokeHandler as _0x2a32fc,uid as _0x5b9afb}from'ckeditor5/src/utils.js';function _0x5493(){const _0x30627b=['50LaANtA','createCollection','add','div','613080IAqaev','arrowdown','detach','_updateHeight','type','ck-annotation-wrapper','ck-rounded-corners','989523XonXLX','1721594tjxOxO','destroy','focus','length','keystrokes','10xjugLc','571338QSPAyE','ck-annotation-wrapper--active','bindTemplate','attach','clear','clientHeight','delegate','render','6566634VDIVsV','setTemplate','Esc','24430LTzuLo','set','first','element','targetRect','presentation','fire','832tVnTQs','isDirty','_mutationObserver','3haWwiX','isActive','focusTracker','mainView','height','content','19324899SpiEPb','arrowup','listenTo'];_0x5493=function(){return _0x30627b;};return _0x5493();}import{createMutationObserver as _0x2f6ad6}from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export class AnnotationView extends _0x158de0{[_0x24f9a5(0x174)];['id'];[_0x24f9a5(0x18b)];[_0x24f9a5(0x177)];[_0x24f9a5(0x175)];[_0x24f9a5(0x171)];constructor(_0x595272,_0x496438){const _0x86111f=_0x24f9a5;super(_0x595272),this['id']=_0x5b9afb(),this[_0x86111f(0x174)]=new _0x25a96f(),this[_0x86111f(0x18b)]=new _0x2a32fc(),this[_0x86111f(0x18b)][_0x86111f(0x169)](_0x86111f(0x167),(_0xd3ae79,_0x355686)=>this[_0x86111f(0x16e)](_0x86111f(0x167),_0x355686)),this[_0x86111f(0x169)](_0x86111f(0x16c),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x86111f(0x169)](_0x86111f(0x176),0x0),this[_0x86111f(0x169)](_0x86111f(0x173),!0x1),this[_0x86111f(0x169)](_0x86111f(0x170),!0x1),this[_0x86111f(0x169)](_0x86111f(0x18a),0x0),this[_0x86111f(0x169)](_0x86111f(0x183),''),this[_0x86111f(0x171)]=_0x2f6ad6(()=>this[_0x86111f(0x182)]()),this[_0x86111f(0x177)]=this[_0x86111f(0x17c)](),this[_0x86111f(0x177)][_0x86111f(0x163)](_0x86111f(0x179),_0x86111f(0x180))['to'](this),this[_0x86111f(0x177)][_0x86111f(0x17d)](_0x496438),this[_0x86111f(0x175)]=_0x496438;const _0x4de034=this[_0x86111f(0x18f)];this[_0x86111f(0x166)]({'tag':_0x86111f(0x17e),'attributes':{'class':['ck',_0x86111f(0x184),_0x86111f(0x185),_0x4de034['if'](_0x86111f(0x173),_0x86111f(0x18e))],'role':_0x86111f(0x16d)},'children':this[_0x86111f(0x177)]});}[_0x24f9a5(0x164)](){const _0x183d76=_0x24f9a5;super[_0x183d76(0x164)](),this[_0x183d76(0x174)][_0x183d76(0x17d)](this[_0x183d76(0x16b)]),this[_0x183d76(0x18b)][_0x183d76(0x17a)](this[_0x183d76(0x16b)]),this[_0x183d76(0x171)][_0x183d76(0x160)](this[_0x183d76(0x16b)]);}[_0x24f9a5(0x188)](){const _0x2e6488=_0x24f9a5;this[_0x2e6488(0x177)][_0x2e6488(0x161)](),this[_0x2e6488(0x18b)][_0x2e6488(0x188)](),this[_0x2e6488(0x174)][_0x2e6488(0x188)](),this[_0x2e6488(0x171)][_0x2e6488(0x181)](),super[_0x2e6488(0x188)]();}[_0x24f9a5(0x189)](){const _0x257084=_0x24f9a5;this[_0x257084(0x177)][_0x257084(0x16a)]&&this[_0x257084(0x177)][_0x257084(0x16a)][_0x257084(0x189)]();}[_0x24f9a5(0x182)](){const _0xf9766a=_0x24f9a5,_0x32815a=this[_0xf9766a(0x16b)][_0xf9766a(0x162)];_0x32815a&&(this[_0xf9766a(0x176)]=_0x32815a);}}