@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.06 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 _0x1a0bb4=_0x5205;function _0x2e71(){const _0xfd1b1e=['create','assign','createRoot','8bCPkYX','document','2614395VMrmZt','170972zIDBJd','name','join','ready','8094XhFEtB','initPlugins','getChild','childCount','1078947kNTXMl','view','destroy','init','change:placeholder','config','196794zNGRaD','end','defaultPlugins','setSelection','get','21208beJfDq','map','model','plugins','focus','set','then','getRoot','795pKSWnT','_updatePlaceholder','1192730YJzSHW','initialData','20yvoOfq','data','fire','placeholder','low','change','fromCharCode','48KGPZmv','placeholderElement','editing'];_0x2e71=function(){return _0xfd1b1e;};return _0x2e71();}(function(_0x50400d,_0x4aa281){const _0x5446e3=_0x5205,_0x5ef8be=_0x50400d();while(!![]){try{const _0x2017ca=-parseInt(_0x5446e3(0x79))/0x1+parseInt(_0x5446e3(0x87))/0x2+-parseInt(_0x5446e3(0x9f))/0x3*(parseInt(_0x5446e3(0x8c))/0x4)+-parseInt(_0x5446e3(0x94))/0x5*(-parseInt(_0x5446e3(0x7d))/0x6)+parseInt(_0x5446e3(0x78))/0x7*(parseInt(_0x5446e3(0xa5))/0x8)+-parseInt(_0x5446e3(0x81))/0x9*(parseInt(_0x5446e3(0x98))/0xa)+parseInt(_0x5446e3(0x96))/0xb;if(_0x2017ca===_0x4aa281)break;else _0x5ef8be['push'](_0x5ef8be['shift']());}catch(_0x213738){_0x5ef8be['push'](_0x5ef8be['shift']());}}}(_0x2e71,0x490e1));import{Editor as _0x4dc824}from'ckeditor5/src/core.js';import _0x36f8c0 from'./commenteditorui.js';import{ObservableMixin as _0x39c018}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x2461d5,disablePlaceholder as _0x210c27}from'ckeditor5/src/engine.js';import{Clipboard as _0x1655dc}from'ckeditor5/src/clipboard.js';import{Enter as _0x2fe7ed,ShiftEnter as _0x58b036}from'ckeditor5/src/enter.js';import{SelectAll as _0x2e03a2}from'ckeditor5/src/select-all.js';function _0x5205(_0xbfc2ae,_0x3ab25c){const _0x2e7101=_0x2e71();return _0x5205=function(_0x520563,_0x4a2500){_0x520563=_0x520563-0x78;let _0xc213c6=_0x2e7101[_0x520563];return _0xc213c6;},_0x5205(_0xbfc2ae,_0x3ab25c);}import{Typing as _0x4084ef}from'ckeditor5/src/typing.js';import{Undo as _0x2d450a}from'ckeditor5/src/undo.js';import{Paragraph as _0x5e9a23}from'ckeditor5/src/paragraph.js';const Rt=[_0x1655dc,_0x2fe7ed,_0x58b036,_0x2e03a2,_0x4084ef,_0x2d450a,_0x5e9a23];class Ut extends/* #__PURE__ -- */
_0x39c018(_0x4dc824){constructor(_0x2efaab={}){const _0x324b6a=_0x5205;function _0x341615(_0x40cf7d){const _0x2e5420=_0x5205;return _0x40cf7d[_0x2e5420(0x8d)](_0x238dca=>String[_0x2e5420(0x9e)](_0x238dca))[_0x2e5420(0x7b)]('');}(_0x2efaab=Object[_0x324b6a(0xa3)]({},_0x2efaab))[_0x324b6a(0x8f)]||(_0x2efaab[_0x324b6a(0x8f)]=Ut[_0x324b6a(0x89)]),super(_0x2efaab),this['ui']=new _0x36f8c0(this),this[_0x324b6a(0x91)](_0x324b6a(0x9b),''),this[_0x324b6a(0x8e)][_0x324b6a(0xa6)]['on'](_0x324b6a(0x9d),()=>this[_0x324b6a(0x95)](),{'priority':_0x324b6a(0x9c)}),this['on'](_0x324b6a(0x85),()=>this[_0x324b6a(0x95)]()),this[_0x324b6a(0x8e)][_0x324b6a(0xa6)][_0x324b6a(0xa4)](),this[_0x341615([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341615([0x76,0x69,0x65,0x77])][_0x341615([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341615([0x61,0x75,0x74,0x6f]),this[_0x341615([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x341615([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341615([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x341615([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x341615([0x6f,0x6b])});}[_0x1a0bb4(0xa2)](){const _0x5fa54c=_0x1a0bb4,_0x3ce312=this[_0x5fa54c(0x86)][_0x5fa54c(0x8b)](_0x5fa54c(0x97))||'';return this[_0x5fa54c(0x7e)]()[_0x5fa54c(0x92)](()=>this['ui'][_0x5fa54c(0x84)]())[_0x5fa54c(0x92)](()=>this[_0x5fa54c(0x99)][_0x5fa54c(0x84)](_0x3ce312))[_0x5fa54c(0x92)](()=>this[_0x5fa54c(0x9a)](_0x5fa54c(0x7c)));}[_0x1a0bb4(0x83)](){const _0x57d526=_0x1a0bb4;return super[_0x57d526(0x83)]()[_0x57d526(0x92)](()=>this['ui'][_0x57d526(0x83)]());}[_0x1a0bb4(0x90)](){const _0x1c84e4=_0x1a0bb4;this[_0x1c84e4(0x8e)][_0x1c84e4(0x9d)](_0x393613=>{const _0x515185=_0x1c84e4,_0x5596d1=this[_0x515185(0x8e)][_0x515185(0xa6)][_0x515185(0x93)](),_0x3ea141=_0x5596d1&&_0x5596d1[_0x515185(0x7f)](_0x5596d1[_0x515185(0x80)]-0x1);_0x393613[_0x515185(0x8a)](_0x3ea141,_0x515185(0x88)),this[_0x515185(0xa1)][_0x515185(0x82)][_0x515185(0x90)]();});}[_0x1a0bb4(0x95)](){const _0x39018a=_0x1a0bb4,_0xfa80e7=this[_0x39018a(0xa1)][_0x39018a(0x82)],_0x377c4d=_0xfa80e7[_0x39018a(0xa6)][_0x39018a(0x93)](),_0x48cf52=_0x377c4d[_0x39018a(0x7f)](0x0);_0x377c4d[_0x39018a(0x80)]>0x1||!_0x48cf52||'p'!=_0x48cf52[_0x39018a(0x7a)]?this[_0x39018a(0xa0)]&&this[_0x39018a(0xa0)][_0x39018a(0x9b)]&&(_0x210c27(_0xfa80e7,this[_0x39018a(0xa0)]),this[_0x39018a(0xa0)]=void 0x0):(this[_0x39018a(0x9b)]&&(_0x48cf52[_0x39018a(0x9b)]=this[_0x39018a(0x9b)]),_0x2461d5({'view':_0xfa80e7,'element':_0x48cf52,'keepOnFocus':!0x0}),this[_0x39018a(0xa0)]=_0x48cf52);}}Ut[_0x1a0bb4(0x89)]=Rt;export default Ut;