@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.74 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 _0x5e45ae=_0x135c;function _0x135c(_0x8fe9f5,_0x4a8fb2){const _0x1e9b80=_0x1e9b();return _0x135c=function(_0x135cc2,_0x73233c){_0x135cc2=_0x135cc2-0xb7;let _0x52ec50=_0x1e9b80[_0x135cc2];return _0x52ec50;},_0x135c(_0x8fe9f5,_0x4a8fb2);}(function(_0x31e82b,_0x1562d7){const _0x5c7e4a=_0x135c,_0x16b6a2=_0x31e82b();while(!![]){try{const _0x4e349e=parseInt(_0x5c7e4a(0xcd))/0x1+-parseInt(_0x5c7e4a(0xbf))/0x2+-parseInt(_0x5c7e4a(0xcc))/0x3*(parseInt(_0x5c7e4a(0xd0))/0x4)+parseInt(_0x5c7e4a(0xc3))/0x5*(parseInt(_0x5c7e4a(0xe3))/0x6)+parseInt(_0x5c7e4a(0xbb))/0x7*(-parseInt(_0x5c7e4a(0xd4))/0x8)+-parseInt(_0x5c7e4a(0xcf))/0x9*(-parseInt(_0x5c7e4a(0xbd))/0xa)+-parseInt(_0x5c7e4a(0xc2))/0xb*(parseInt(_0x5c7e4a(0xe7))/0xc);if(_0x4e349e===_0x1562d7)break;else _0x16b6a2['push'](_0x16b6a2['shift']());}catch(_0x40f01c){_0x16b6a2['push'](_0x16b6a2['shift']());}}}(_0x1e9b,0xb1222));import{Plugin as _0x5a2694}from'ckeditor5/src/core.js';import{CommentsEditing as _0x18e2f4}from'./comments/commentsediting.js';export class CommentsOnly extends _0x5a2694{static get[_0x5e45ae(0xce)](){const _0x528d43=_0x5e45ae;return _0x528d43(0xe6);}static get[_0x5e45ae(0xd2)](){return!0x0;}static get[_0x5e45ae(0xbe)](){return!0x0;}static get[_0x5e45ae(0xb9)](){return[_0x18e2f4];}constructor(_0xd567f0){const _0xfd99bf=_0x5e45ae;super(_0xd567f0),this[_0xfd99bf(0xdc)](_0xfd99bf(0xdf),!0x1),this['on'](_0xfd99bf(0xdd),(_0xcb6b0d,_0x130890,_0x45c1f6)=>{const _0x29a741=_0xfd99bf;_0x45c1f6?this[_0x29a741(0xe1)]():this[_0x29a741(0xc0)]();});}[_0x5e45ae(0xc6)](){const _0x1783eb=_0x5e45ae;!this[_0x1783eb(0xdf)]&&this[_0x1783eb(0xd7)][_0x1783eb(0xc9)][_0x1783eb(0xda)](_0x1783eb(0xd6))&&(this[_0x1783eb(0xdf)]=!0x0);}[_0x5e45ae(0xe1)](){const _0x91e350=_0x5e45ae;for(const [_0x37ba2e,_0x55da6f]of this[_0x91e350(0xd7)][_0x91e350(0xb7)])_0x55da6f[_0x91e350(0xe0)]&&_0x91e350(0xc5)!==_0x37ba2e&&_0x55da6f[_0x91e350(0xd3)](_0x91e350(0xcb));(this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xd5)](_0x91e350(0xca))&&this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xda)](_0x91e350(0xca))[_0x91e350(0xd3)](_0x91e350(0xcb)),this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xd5)](_0x91e350(0xe5)))&&this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xda)](_0x91e350(0xe5))[_0x91e350(0xd3)](_0x91e350(0xcb));this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xd5)](_0x91e350(0xc7))&&this[_0x91e350(0xd7)][_0x91e350(0xd1)][_0x91e350(0xda)](_0x91e350(0xc7))[_0x91e350(0xd3)](_0x91e350(0xcb));this[_0x91e350(0xd7)][_0x91e350(0xb7)][_0x91e350(0xda)](_0x91e350(0xd9))?.[_0x91e350(0xd3)](_0x91e350(0xcb));const _0x428409=this[_0x91e350(0xd7)][_0x91e350(0xb8)][_0x91e350(0xe4)][_0x91e350(0xba)];this[_0x91e350(0xd8)](_0x428409,_0x91e350(0xc8),_0x3de599=>_0x3de599[_0x91e350(0xdb)](),{'priority':_0x91e350(0xc1)}),this[_0x91e350(0xd8)](_0x428409,_0x91e350(0xbc),_0x1b1832=>_0x1b1832[_0x91e350(0xdb)](),{'priority':_0x91e350(0xc1)}),this[_0x91e350(0xd8)](_0x428409,_0x91e350(0xc4),_0x4f373d=>_0x4f373d[_0x91e350(0xdb)](),{'priority':_0x91e350(0xc1)});}[_0x5e45ae(0xc0)](){const _0x28c44c=_0x5e45ae;for(const [_0x2bad50,_0x283ca6]of this[_0x28c44c(0xd7)][_0x28c44c(0xb7)])_0x283ca6[_0x28c44c(0xe0)]&&_0x28c44c(0xc5)!==_0x2bad50&&_0x283ca6[_0x28c44c(0xe2)](_0x28c44c(0xcb));this[_0x28c44c(0xd7)][_0x28c44c(0xd1)][_0x28c44c(0xd5)](_0x28c44c(0xe5))&&this[_0x28c44c(0xd7)][_0x28c44c(0xd1)][_0x28c44c(0xda)](_0x28c44c(0xe5))[_0x28c44c(0xe2)](_0x28c44c(0xcb)),this[_0x28c44c(0xd7)][_0x28c44c(0xd1)][_0x28c44c(0xd5)](_0x28c44c(0xc7))&&this[_0x28c44c(0xd7)][_0x28c44c(0xd1)][_0x28c44c(0xda)](_0x28c44c(0xc7))[_0x28c44c(0xe2)](_0x28c44c(0xcb)),this[_0x28c44c(0xd7)][_0x28c44c(0xb7)][_0x28c44c(0xda)](_0x28c44c(0xd9))?.[_0x28c44c(0xe2)](_0x28c44c(0xcb)),this[_0x28c44c(0xde)](this[_0x28c44c(0xd7)][_0x28c44c(0xb8)][_0x28c44c(0xe4)][_0x28c44c(0xba)]);}}function _0x1e9b(){const _0x4b01d5=['1259219rEziCO','pluginName','948357rWgmMG','28ecwYYS','plugins','isOfficialPlugin','forceDisabled','232eeAHnM','has','commentsOnly','editor','listenTo','editSource','get','stop','set','change:isEnabled','stopListening','isEnabled','affectsData','_enableCommentsOnlyMode','clearForceDisabled','6jEXLlx','view','RevisionTracker','CommentsOnly','4164xCDAjo','commands','editing','requires','document','195293nywLfW','clipboardInput','120UNEhTf','isPremiumPlugin','1258246rRCsuU','_disableCommentsOnlyMode','highest','4037EpjmRG','4940755gFpVgY','delete','addCommentThread','afterInit','SourceEditing','cut','config','DragDrop','commentsOnlyMode','523185TPstgf'];_0x1e9b=function(){return _0x4b01d5;};return _0x1e9b();}