@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.33 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 _0x4bdd71=_0x3b0d;(function(_0x13facf,_0xfd884b){const _0x4fa1ab=_0x3b0d,_0x4865d5=_0x13facf();while(!![]){try{const _0x600ed=-parseInt(_0x4fa1ab(0x192))/0x1+parseInt(_0x4fa1ab(0x199))/0x2+parseInt(_0x4fa1ab(0x1a4))/0x3*(-parseInt(_0x4fa1ab(0x188))/0x4)+parseInt(_0x4fa1ab(0x187))/0x5+-parseInt(_0x4fa1ab(0x1a6))/0x6*(-parseInt(_0x4fa1ab(0x1ac))/0x7)+-parseInt(_0x4fa1ab(0x190))/0x8+-parseInt(_0x4fa1ab(0x191))/0x9;if(_0x600ed===_0xfd884b)break;else _0x4865d5['push'](_0x4865d5['shift']());}catch(_0x56a56b){_0x4865d5['push'](_0x4865d5['shift']());}}}(_0x3fed,0x49a23));function _0x3fed(){const _0x316853=['view','isPremiumPlugin','1219024gLaEAS','1469484vWwWpp','250139GnQHZB','has','editSource','CommentsOnly','affectsData','requires','_enableCommentsOnlyMode','447506FBjVhA','config','addCommentThread','SourceEditing','_disableCommentsOnlyMode','stopListening','change:isEnabled','clipboardInput','DragDrop','listenTo','editor','201567vQAAjd','forceDisabled','330MoVDMo','pluginName','clearForceDisabled','cut','isEnabled','get','20825NFaLbR','delete','highest','plugins','commentsOnlyMode','afterInit','document','isOfficialPlugin','2736035nmPDMu','4jylMPg','stop','commands','commentsOnly','set','editing'];_0x3fed=function(){return _0x316853;};return _0x3fed();}function _0x3b0d(_0x338da6,_0x2e4cd3){const _0x3fede1=_0x3fed();return _0x3b0d=function(_0x3b0d29,_0x30360b){_0x3b0d29=_0x3b0d29-0x185;let _0x33e661=_0x3fede1[_0x3b0d29];return _0x33e661;},_0x3b0d(_0x338da6,_0x2e4cd3);}import{Plugin as _0x5624f0}from'ckeditor5/src/core.js';import{CommentsEditing as _0x54a1a8}from'./comments/commentsediting.js';export class CommentsOnly extends _0x5624f0{static get[_0x4bdd71(0x1a7)](){const _0x784f1a=_0x4bdd71;return _0x784f1a(0x195);}static get[_0x4bdd71(0x186)](){return!0x0;}static get[_0x4bdd71(0x18f)](){return!0x0;}static get[_0x4bdd71(0x197)](){return[_0x54a1a8];}constructor(_0x554ce9){const _0x415aed=_0x4bdd71;super(_0x554ce9),this[_0x415aed(0x18c)](_0x415aed(0x1aa),!0x1),this['on'](_0x415aed(0x19f),(_0x10c8e3,_0x5bf245,_0x31815c)=>{const _0x4a2b15=_0x415aed;_0x31815c?this[_0x4a2b15(0x198)]():this[_0x4a2b15(0x19d)]();});}[_0x4bdd71(0x1b1)](){const _0x2f4dee=_0x4bdd71;!this[_0x2f4dee(0x1aa)]&&this[_0x2f4dee(0x1a3)][_0x2f4dee(0x19a)][_0x2f4dee(0x1ab)](_0x2f4dee(0x18b))&&(this[_0x2f4dee(0x1aa)]=!0x0);}[_0x4bdd71(0x198)](){const _0x22da0e=_0x4bdd71;for(const [_0x107367,_0xbc1ae7]of this[_0x22da0e(0x1a3)][_0x22da0e(0x18a)])_0xbc1ae7[_0x22da0e(0x196)]&&_0x22da0e(0x19b)!==_0x107367&&_0xbc1ae7[_0x22da0e(0x1a5)](_0x22da0e(0x1b0));(this[_0x22da0e(0x1a3)][_0x22da0e(0x1af)][_0x22da0e(0x193)](_0x22da0e(0x1a1))&&this[_0x22da0e(0x1a3)][_0x22da0e(0x1af)][_0x22da0e(0x1ab)](_0x22da0e(0x1a1))[_0x22da0e(0x1a5)](_0x22da0e(0x1b0)),this[_0x22da0e(0x1a3)][_0x22da0e(0x1af)][_0x22da0e(0x193)](_0x22da0e(0x19c)))&&this[_0x22da0e(0x1a3)][_0x22da0e(0x1af)][_0x22da0e(0x1ab)](_0x22da0e(0x19c))[_0x22da0e(0x1a5)](_0x22da0e(0x1b0));this[_0x22da0e(0x1a3)][_0x22da0e(0x18a)][_0x22da0e(0x1ab)](_0x22da0e(0x194))?.[_0x22da0e(0x1a5)](_0x22da0e(0x1b0));const _0x1997a4=this[_0x22da0e(0x1a3)][_0x22da0e(0x18d)][_0x22da0e(0x18e)][_0x22da0e(0x185)];this[_0x22da0e(0x1a2)](_0x1997a4,_0x22da0e(0x1a9),_0x5159c8=>_0x5159c8[_0x22da0e(0x189)](),{'priority':_0x22da0e(0x1ae)}),this[_0x22da0e(0x1a2)](_0x1997a4,_0x22da0e(0x1a0),_0x10da0e=>_0x10da0e[_0x22da0e(0x189)](),{'priority':_0x22da0e(0x1ae)}),this[_0x22da0e(0x1a2)](_0x1997a4,_0x22da0e(0x1ad),_0x49a212=>_0x49a212[_0x22da0e(0x189)](),{'priority':_0x22da0e(0x1ae)});}[_0x4bdd71(0x19d)](){const _0x2e55c6=_0x4bdd71;for(const [_0x501c4f,_0x4b069d]of this[_0x2e55c6(0x1a3)][_0x2e55c6(0x18a)])_0x4b069d[_0x2e55c6(0x196)]&&_0x2e55c6(0x19b)!==_0x501c4f&&_0x4b069d[_0x2e55c6(0x1a8)](_0x2e55c6(0x1b0));this[_0x2e55c6(0x1a3)][_0x2e55c6(0x1af)][_0x2e55c6(0x193)](_0x2e55c6(0x19c))&&this[_0x2e55c6(0x1a3)][_0x2e55c6(0x1af)][_0x2e55c6(0x1ab)](_0x2e55c6(0x19c))[_0x2e55c6(0x1a8)](_0x2e55c6(0x1b0)),this[_0x2e55c6(0x1a3)][_0x2e55c6(0x18a)][_0x2e55c6(0x1ab)](_0x2e55c6(0x194))?.[_0x2e55c6(0x1a8)](_0x2e55c6(0x1b0)),this[_0x2e55c6(0x19e)](this[_0x2e55c6(0x1a3)][_0x2e55c6(0x18d)][_0x2e55c6(0x18e)][_0x2e55c6(0x185)]);}}