UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.54 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 _0x1b46fe=_0x294a;function _0x294a(_0x40efef,_0x1aecd9){const _0x9b7edf=_0x9b7e();return _0x294a=function(_0x294a15,_0x27cc9e){_0x294a15=_0x294a15-0xae;let _0x204e85=_0x9b7edf[_0x294a15];return _0x204e85;},_0x294a(_0x40efef,_0x1aecd9);}(function(_0x2a92ce,_0xa0bb6f){const _0x3ab607=_0x294a,_0x5b24bf=_0x2a92ce();while(!![]){try{const _0xfce96a=-parseInt(_0x3ab607(0xce))/0x1+parseInt(_0x3ab607(0xbb))/0x2+-parseInt(_0x3ab607(0xc2))/0x3+-parseInt(_0x3ab607(0xd2))/0x4+parseInt(_0x3ab607(0xc6))/0x5*(parseInt(_0x3ab607(0xd0))/0x6)+-parseInt(_0x3ab607(0xb9))/0x7+-parseInt(_0x3ab607(0xc0))/0x8*(-parseInt(_0x3ab607(0xba))/0x9);if(_0xfce96a===_0xa0bb6f)break;else _0x5b24bf['push'](_0x5b24bf['shift']());}catch(_0x55dd4b){_0x5b24bf['push'](_0x5b24bf['shift']());}}}(_0x9b7e,0x23038));function _0x9b7e(){const _0x541e38=['content','afterInit','_removeMarkersWithoutThreads','ClipboardPipeline','always','_registerMarkerInClipboardPipeline','plugins','229508oFGfFD','contentInsertion','12306oJGRzM','requires','486704NRENBV','comment','CommentsRepository','comments.copyMarkers','markers','keys','editor','dragstart','has','all','get','ClipboardMarkersUtils','config','_mapCommentsCopyConfigToRegisterConfiguration','default','listenTo','1696205FbjbZI','64143mQjNjw','423602HTEhIf','highest','_registerMarkerToCopy','split','cut','472ntzLkG','hasCommentThread','529098SRmdaw','define','delete','never','685qErjHu'];_0x9b7e=function(){return _0x541e38;};return _0x9b7e();}import{Plugin as _0x2257fa}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x4c8c02,ClipboardMarkersUtils as _0x5a2c66}from'ckeditor5/src/clipboard.js';export default class at extends _0x2257fa{constructor(_0xdb9b72){const _0x1d1d49=_0x294a;super(_0xdb9b72),this[_0x1d1d49(0xaf)][_0x1d1d49(0xb5)][_0x1d1d49(0xc3)](_0x1d1d49(0xd5),_0x1d1d49(0xb7));}static get[_0x1b46fe(0xd1)](){return[_0x5a2c66,_0x4c8c02];}[_0x1b46fe(0xc8)](){const _0x95f707=_0x1b46fe,_0x1f7eac=this[_0x95f707(0xaf)][_0x95f707(0xcd)][_0x95f707(0xb3)](_0x95f707(0xca));this[_0x95f707(0xcc)](),this[_0x95f707(0xb8)](_0x1f7eac,_0x95f707(0xcf),(_0x35a9e6,_0x1e7079)=>this[_0x95f707(0xc9)](_0x1e7079[_0x95f707(0xc7)][_0x95f707(0xd6)]),{'priority':_0x95f707(0xbc)});}[_0x1b46fe(0xc9)](_0x368d47){const _0x56e680=_0x1b46fe;if(!this[_0x56e680(0xaf)][_0x56e680(0xcd)][_0x56e680(0xb1)](_0x56e680(0xd4)))return _0x368d47;const _0x3dda6b=this[_0x56e680(0xaf)][_0x56e680(0xcd)][_0x56e680(0xb3)](_0x56e680(0xd4));for(const _0x1f3387 of _0x368d47[_0x56e680(0xae)]()){const [_0x645f0f,_0x1266f4]=_0x1f3387[_0x56e680(0xbe)](':');_0x56e680(0xd3)!=_0x645f0f||_0x3dda6b[_0x56e680(0xc1)](_0x1266f4)||_0x368d47[_0x56e680(0xc4)](_0x1f3387);}return _0x368d47;}[_0x1b46fe(0xcc)](){const _0x197d99=_0x1b46fe,_0x571b68=this[_0x197d99(0xaf)][_0x197d99(0xcd)][_0x197d99(0xb3)](_0x197d99(0xb4)),_0x1ac1ef=this[_0x197d99(0xb6)](this[_0x197d99(0xaf)][_0x197d99(0xb5)][_0x197d99(0xb3)](_0x197d99(0xd5)));_0x1ac1ef&&_0x571b68[_0x197d99(0xbd)](_0x197d99(0xd3),_0x1ac1ef);}[_0x1b46fe(0xb6)](_0xc6608){const _0x4e29fd=_0x1b46fe;switch(_0xc6608){case _0x4e29fd(0xcb):return{'allowedActions':_0x4e29fd(0xb2),'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case _0x4e29fd(0xb7):return{'allowedActions':[_0x4e29fd(0xbf),_0x4e29fd(0xb0)],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};case _0x4e29fd(0xc5):return null;default:return null;}}}