@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.44 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 _0x470be1=_0x1039;(function(_0x121299,_0x1765b9){const _0x2ba0cf=_0x1039,_0x445015=_0x121299();while(!![]){try{const _0x2763cd=-parseInt(_0x2ba0cf(0x14a))/0x1+-parseInt(_0x2ba0cf(0x137))/0x2*(parseInt(_0x2ba0cf(0x14d))/0x3)+parseInt(_0x2ba0cf(0x122))/0x4+parseInt(_0x2ba0cf(0x13d))/0x5*(-parseInt(_0x2ba0cf(0x131))/0x6)+parseInt(_0x2ba0cf(0x120))/0x7*(parseInt(_0x2ba0cf(0x135))/0x8)+parseInt(_0x2ba0cf(0x149))/0x9*(parseInt(_0x2ba0cf(0x142))/0xa)+parseInt(_0x2ba0cf(0x13b))/0xb*(parseInt(_0x2ba0cf(0x13c))/0xc);if(_0x2763cd===_0x1765b9)break;else _0x445015['push'](_0x445015['shift']());}catch(_0x17c19f){_0x445015['push'](_0x445015['shift']());}}}(_0x523b,0xdfacc));function _0x523b(){const _0x3e1d81=['1279107glZlAC','528851OlGFwR','clearForceDisabled','document','18ADfVKK','get','editing','14xfHmUo','isPremiumPlugin','5526292NJdYHS','plugins','config','delete','change:isEnabled','commentsOnlyMode','stopListening','forceDisabled','isEnabled','commentsOnly','isOfficialPlugin','SourceEditing','set','_disableCommentsOnlyMode','DragDrop','4039194oQDXHF','requires','affectsData','CommentsOnly','3107592navBAY','editor','184420LqJMsL','highest','pluginName','addCommentThread','407yhZUIs','120288ocperx','5ZPTopb','commands','cut','has','view','10YCWMFa','stop','listenTo','clipboardInput','_enableCommentsOnlyMode','afterInit','editSource'];_0x523b=function(){return _0x3e1d81;};return _0x523b();}function _0x1039(_0x8ecf46,_0x14e82f){const _0x523bc7=_0x523b();return _0x1039=function(_0x1039a0,_0x5c7124){_0x1039a0=_0x1039a0-0x120;let _0x8fefb2=_0x523bc7[_0x1039a0];return _0x8fefb2;},_0x1039(_0x8ecf46,_0x14e82f);}import{Plugin as _0x3afc62}from'ckeditor5/src/core.js';import _0xf52241 from'./comments/commentsediting.js';export default class s extends _0x3afc62{static get[_0x470be1(0x139)](){const _0x5d55d7=_0x470be1;return _0x5d55d7(0x134);}static get[_0x470be1(0x12c)](){return!0x0;}static get[_0x470be1(0x121)](){return!0x0;}static get[_0x470be1(0x132)](){return[_0xf52241];}constructor(_0x2961fb){const _0x90ebd4=_0x470be1;super(_0x2961fb),this[_0x90ebd4(0x12e)](_0x90ebd4(0x12a),!0x1),this['on'](_0x90ebd4(0x126),(_0x275c5b,_0x12200a,_0x1a4418)=>{const _0x223a91=_0x90ebd4;_0x1a4418?this[_0x223a91(0x146)]():this[_0x223a91(0x12f)]();});}[_0x470be1(0x147)](){const _0x3b7a50=_0x470be1;!this[_0x3b7a50(0x12a)]&&this[_0x3b7a50(0x136)][_0x3b7a50(0x124)][_0x3b7a50(0x14e)](_0x3b7a50(0x12b))&&(this[_0x3b7a50(0x12a)]=!0x0);}[_0x470be1(0x146)](){const _0x360c7f=_0x470be1;for(const [_0x14ddff,_0x560798]of this[_0x360c7f(0x136)][_0x360c7f(0x13e)])_0x560798[_0x360c7f(0x133)]&&_0x360c7f(0x13a)!==_0x14ddff&&_0x560798[_0x360c7f(0x129)](_0x360c7f(0x127));(this[_0x360c7f(0x136)][_0x360c7f(0x123)][_0x360c7f(0x140)](_0x360c7f(0x130))&&this[_0x360c7f(0x136)][_0x360c7f(0x123)][_0x360c7f(0x14e)](_0x360c7f(0x130))[_0x360c7f(0x129)](_0x360c7f(0x127)),this[_0x360c7f(0x136)][_0x360c7f(0x123)][_0x360c7f(0x140)](_0x360c7f(0x12d)))&&this[_0x360c7f(0x136)][_0x360c7f(0x123)][_0x360c7f(0x14e)](_0x360c7f(0x12d))[_0x360c7f(0x129)](_0x360c7f(0x127));this[_0x360c7f(0x136)][_0x360c7f(0x13e)][_0x360c7f(0x14e)](_0x360c7f(0x148))?.[_0x360c7f(0x129)](_0x360c7f(0x127));const _0x1c4485=this[_0x360c7f(0x136)][_0x360c7f(0x14f)][_0x360c7f(0x141)][_0x360c7f(0x14c)];this[_0x360c7f(0x144)](_0x1c4485,_0x360c7f(0x13f),_0x23fad0=>_0x23fad0[_0x360c7f(0x143)](),{'priority':_0x360c7f(0x138)}),this[_0x360c7f(0x144)](_0x1c4485,_0x360c7f(0x145),_0x1159d5=>_0x1159d5[_0x360c7f(0x143)](),{'priority':_0x360c7f(0x138)}),this[_0x360c7f(0x144)](_0x1c4485,_0x360c7f(0x125),_0x31a4b4=>_0x31a4b4[_0x360c7f(0x143)](),{'priority':_0x360c7f(0x138)});}[_0x470be1(0x12f)](){const _0x140556=_0x470be1;for(const [_0x44ffb8,_0x2a00c9]of this[_0x140556(0x136)][_0x140556(0x13e)])_0x2a00c9[_0x140556(0x133)]&&_0x140556(0x13a)!==_0x44ffb8&&_0x2a00c9[_0x140556(0x14b)](_0x140556(0x127));this[_0x140556(0x136)][_0x140556(0x123)][_0x140556(0x140)](_0x140556(0x12d))&&this[_0x140556(0x136)][_0x140556(0x123)][_0x140556(0x14e)](_0x140556(0x12d))[_0x140556(0x14b)](_0x140556(0x127)),this[_0x140556(0x136)][_0x140556(0x13e)][_0x140556(0x14e)](_0x140556(0x148))?.[_0x140556(0x14b)](_0x140556(0x127)),this[_0x140556(0x128)](this[_0x140556(0x136)][_0x140556(0x14f)][_0x140556(0x141)][_0x140556(0x14c)]);}}