UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 5.51 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 _0x46fc1f=_0x4134;(function(_0xd4aa55,_0x2a3b92){const _0x2c8085=_0x4134,_0x2cf57a=_0xd4aa55();while(!![]){try{const _0x37c82e=-parseInt(_0x2c8085(0x181))/0x1*(-parseInt(_0x2c8085(0x19c))/0x2)+parseInt(_0x2c8085(0x1a3))/0x3*(-parseInt(_0x2c8085(0x185))/0x4)+parseInt(_0x2c8085(0x17c))/0x5*(-parseInt(_0x2c8085(0x187))/0x6)+-parseInt(_0x2c8085(0x18b))/0x7*(parseInt(_0x2c8085(0x196))/0x8)+-parseInt(_0x2c8085(0x17d))/0x9*(-parseInt(_0x2c8085(0x19f))/0xa)+parseInt(_0x2c8085(0x19a))/0xb*(parseInt(_0x2c8085(0x19b))/0xc)+-parseInt(_0x2c8085(0x194))/0xd;if(_0x37c82e===_0x2a3b92)break;else _0x2cf57a['push'](_0x2cf57a['shift']());}catch(_0x19807e){_0x2cf57a['push'](_0x2cf57a['shift']());}}}(_0x13ce,0xa7602));import{Plugin as _0x545d01}from'ckeditor5/src/core.js';function _0x4134(_0x3b8f5c,_0x3b4133){const _0x13ce56=_0x13ce();return _0x4134=function(_0x413463,_0x154e7d){_0x413463=_0x413463-0x176;let _0x50e68f=_0x13ce56[_0x413463];return _0x50e68f;},_0x4134(_0x3b8f5c,_0x3b4133);}import{CommentsEditing as _0x5aff6d}from'./comments/commentsediting.js';function _0x13ce(){const _0x3759ce=['editing','change:isEnabled','set','SourceEditing','forceDisabled','_disableCommentsOnlyMode','25iTQQOo','2997wEpMFT','DragDrop','pluginName','CommentsOnly','99WFFMQj','listenTo','stop','commands','4sAKVKO','isPremiumPlugin','922764QaWsTH','cut','editSource','requires','574oWpMzC','affectsData','commentsOnly','clipboardInput','editor','view','has','clearForceDisabled','commentsOnlyMode','1911910olfSTF','afterInit','102088ssDNAh','delete','addCommentThread','plugins','10109YKrVHj','14220lGCnqp','8690VKCIny','isEnabled','isOfficialPlugin','35180uabpsg','get','config','stopListening','127956loGmJn','highest','_enableCommentsOnlyMode','document'];_0x13ce=function(){return _0x3759ce;};return _0x13ce();}export class CommentsOnly extends _0x545d01{static get[_0x46fc1f(0x17f)](){const _0x3ef169=_0x46fc1f;return _0x3ef169(0x180);}static get[_0x46fc1f(0x19e)](){return!0x0;}static get[_0x46fc1f(0x186)](){return!0x0;}static get[_0x46fc1f(0x18a)](){return[_0x5aff6d];}constructor(_0x2eedbb){const _0x5576d2=_0x46fc1f;super(_0x2eedbb),this[_0x5576d2(0x178)](_0x5576d2(0x19d),!0x1),this['on'](_0x5576d2(0x177),(_0x50e0e0,_0x39997e,_0xde701f)=>{const _0x4007db=_0x5576d2;_0xde701f?this[_0x4007db(0x1a5)]():this[_0x4007db(0x17b)]();});}[_0x46fc1f(0x195)](){const _0x1e5fb0=_0x46fc1f;!this[_0x1e5fb0(0x19d)]&&this[_0x1e5fb0(0x18f)][_0x1e5fb0(0x1a1)][_0x1e5fb0(0x1a0)](_0x1e5fb0(0x18d))&&(this[_0x1e5fb0(0x19d)]=!0x0);}[_0x46fc1f(0x1a5)](){const _0x4b434e=_0x46fc1f;for(const [_0x49ae30,_0x387995]of this[_0x4b434e(0x18f)][_0x4b434e(0x184)])_0x387995[_0x4b434e(0x18c)]&&_0x4b434e(0x198)!==_0x49ae30&&_0x387995[_0x4b434e(0x17a)](_0x4b434e(0x193));(this[_0x4b434e(0x18f)][_0x4b434e(0x199)][_0x4b434e(0x191)](_0x4b434e(0x17e))&&this[_0x4b434e(0x18f)][_0x4b434e(0x199)][_0x4b434e(0x1a0)](_0x4b434e(0x17e))[_0x4b434e(0x17a)](_0x4b434e(0x193)),this[_0x4b434e(0x18f)][_0x4b434e(0x199)][_0x4b434e(0x191)](_0x4b434e(0x179)))&&this[_0x4b434e(0x18f)][_0x4b434e(0x199)][_0x4b434e(0x1a0)](_0x4b434e(0x179))[_0x4b434e(0x17a)](_0x4b434e(0x193));this[_0x4b434e(0x18f)][_0x4b434e(0x184)][_0x4b434e(0x1a0)](_0x4b434e(0x189))?.[_0x4b434e(0x17a)](_0x4b434e(0x193));const _0x383e22=this[_0x4b434e(0x18f)][_0x4b434e(0x176)][_0x4b434e(0x190)][_0x4b434e(0x1a6)];this[_0x4b434e(0x182)](_0x383e22,_0x4b434e(0x188),_0x4fec47=>_0x4fec47[_0x4b434e(0x183)](),{'priority':_0x4b434e(0x1a4)}),this[_0x4b434e(0x182)](_0x383e22,_0x4b434e(0x18e),_0x43132c=>_0x43132c[_0x4b434e(0x183)](),{'priority':_0x4b434e(0x1a4)}),this[_0x4b434e(0x182)](_0x383e22,_0x4b434e(0x197),_0x173993=>_0x173993[_0x4b434e(0x183)](),{'priority':_0x4b434e(0x1a4)});}[_0x46fc1f(0x17b)](){const _0x1dec91=_0x46fc1f;for(const [_0x4b94e4,_0x4e0cfe]of this[_0x1dec91(0x18f)][_0x1dec91(0x184)])_0x4e0cfe[_0x1dec91(0x18c)]&&_0x1dec91(0x198)!==_0x4b94e4&&_0x4e0cfe[_0x1dec91(0x192)](_0x1dec91(0x193));this[_0x1dec91(0x18f)][_0x1dec91(0x199)][_0x1dec91(0x191)](_0x1dec91(0x179))&&this[_0x1dec91(0x18f)][_0x1dec91(0x199)][_0x1dec91(0x1a0)](_0x1dec91(0x179))[_0x1dec91(0x192)](_0x1dec91(0x193)),this[_0x1dec91(0x18f)][_0x1dec91(0x184)][_0x1dec91(0x1a0)](_0x1dec91(0x189))?.[_0x1dec91(0x192)](_0x1dec91(0x193)),this[_0x1dec91(0x1a2)](this[_0x1dec91(0x18f)][_0x1dec91(0x176)][_0x1dec91(0x190)][_0x1dec91(0x1a6)]);}}