UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.67 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 _0x4cfe0f=_0x2944;(function(_0x46a378,_0x21eced){const _0x59f474=_0x2944,_0x5a6741=_0x46a378();while(!![]){try{const _0x27edf9=-parseInt(_0x59f474(0x186))/0x1*(parseInt(_0x59f474(0x189))/0x2)+-parseInt(_0x59f474(0x179))/0x3*(parseInt(_0x59f474(0x193))/0x4)+-parseInt(_0x59f474(0x18b))/0x5*(parseInt(_0x59f474(0x177))/0x6)+parseInt(_0x59f474(0x173))/0x7+parseInt(_0x59f474(0x195))/0x8+parseInt(_0x59f474(0x199))/0x9*(parseInt(_0x59f474(0x176))/0xa)+parseInt(_0x59f474(0x197))/0xb;if(_0x27edf9===_0x21eced)break;else _0x5a6741['push'](_0x5a6741['shift']());}catch(_0x2e17e4){_0x5a6741['push'](_0x5a6741['shift']());}}}(_0x36df,0xcc659));function _0x2944(_0x1227a7,_0x176a79){const _0x36dfb5=_0x36df();return _0x2944=function(_0x2944bf,_0x2db2c1){_0x2944bf=_0x2944bf-0x170;let _0x2ab7cc=_0x36dfb5[_0x2944bf];return _0x2ab7cc;},_0x2944(_0x1227a7,_0x176a79);}function _0x36df(){const _0x1f31ac=['dragstart','all','content','4FsFqVz','contentInsertion','1352024uCkLJb','ClipboardPipeline','12799556khdFwK','ClipboardMarkersUtils','27GbbvZK','_registerMarkerInClipboardPipeline','always','editor','config','11559275GfXTNC','_registerMarkerToCopy','plugins','2589790eBFMLn','48XQSmBi','requires','821901LIfThp','define','cut','comment','keys','never','default','comments.copyMarkers','_removeMarkersWithoutThreads','split','CommentsRepository','has','listenTo','9OPTNzE','highest','afterInit','344042qlIpun','_mapCommentsCopyConfigToRegisterConfiguration','688435qQECMW','delete','hasCommentThread','markers','get'];_0x36df=function(){return _0x1f31ac;};return _0x36df();}import{Plugin as _0x372ce8}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x49dd79,ClipboardMarkersUtils as _0x5ab90b}from'ckeditor5/src/clipboard.js';export default class at extends _0x372ce8{constructor(_0x15007c){const _0x1bda8b=_0x2944;super(_0x15007c),this[_0x1bda8b(0x171)][_0x1bda8b(0x172)][_0x1bda8b(0x17a)](_0x1bda8b(0x180),_0x1bda8b(0x17f));}static get[_0x4cfe0f(0x178)](){return[_0x5ab90b,_0x49dd79];}[_0x4cfe0f(0x188)](){const _0x98d1ff=_0x4cfe0f,_0x19346c=this[_0x98d1ff(0x171)][_0x98d1ff(0x175)][_0x98d1ff(0x18f)](_0x98d1ff(0x196));this[_0x98d1ff(0x19a)](),this[_0x98d1ff(0x185)](_0x19346c,_0x98d1ff(0x194),(_0x3e60b6,_0x1c7104)=>this[_0x98d1ff(0x181)](_0x1c7104[_0x98d1ff(0x192)][_0x98d1ff(0x18e)]),{'priority':_0x98d1ff(0x187)});}[_0x4cfe0f(0x181)](_0xe4e043){const _0x3063c=_0x4cfe0f;if(!this[_0x3063c(0x171)][_0x3063c(0x175)][_0x3063c(0x184)](_0x3063c(0x183)))return _0xe4e043;const _0x5e8866=this[_0x3063c(0x171)][_0x3063c(0x175)][_0x3063c(0x18f)](_0x3063c(0x183));for(const _0x43f241 of _0xe4e043[_0x3063c(0x17d)]()){const [_0x1d8973,_0x12f38b]=_0x43f241[_0x3063c(0x182)](':');_0x3063c(0x17c)!=_0x1d8973||_0x5e8866[_0x3063c(0x18d)](_0x12f38b)||_0xe4e043[_0x3063c(0x18c)](_0x43f241);}return _0xe4e043;}[_0x4cfe0f(0x19a)](){const _0x1b7cdd=_0x4cfe0f,_0x3805c7=this[_0x1b7cdd(0x171)][_0x1b7cdd(0x175)][_0x1b7cdd(0x18f)](_0x1b7cdd(0x198)),_0x2f3460=this[_0x1b7cdd(0x18a)](this[_0x1b7cdd(0x171)][_0x1b7cdd(0x172)][_0x1b7cdd(0x18f)](_0x1b7cdd(0x180)));_0x2f3460&&_0x3805c7[_0x1b7cdd(0x174)](_0x1b7cdd(0x17c),_0x2f3460);}[_0x4cfe0f(0x18a)](_0x526bbf){const _0x3ba003=_0x4cfe0f;switch(_0x526bbf){case _0x3ba003(0x170):return{'allowedActions':_0x3ba003(0x191),'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case _0x3ba003(0x17f):return{'allowedActions':[_0x3ba003(0x17b),_0x3ba003(0x190)],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};case _0x3ba003(0x17e):return null;default:return null;}}}