UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 6.04 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 _0xf1c4cc=_0x5d88;(function(_0xd79c82,_0x2223ec){const _0x4e06a8=_0x5d88,_0x488eff=_0xd79c82();while(!![]){try{const _0x3e5c1b=parseInt(_0x4e06a8(0x8e))/0x1+-parseInt(_0x4e06a8(0x93))/0x2*(parseInt(_0x4e06a8(0xa6))/0x3)+parseInt(_0x4e06a8(0x9b))/0x4+-parseInt(_0x4e06a8(0x85))/0x5+-parseInt(_0x4e06a8(0xaa))/0x6+-parseInt(_0x4e06a8(0x86))/0x7*(-parseInt(_0x4e06a8(0x97))/0x8)+parseInt(_0x4e06a8(0xa0))/0x9*(parseInt(_0x4e06a8(0x95))/0xa);if(_0x3e5c1b===_0x2223ec)break;else _0x488eff['push'](_0x488eff['shift']());}catch(_0x3bbd3e){_0x488eff['push'](_0x488eff['shift']());}}}(_0x56c0,0xaebbc));import{Editor as _0x497d13}from'ckeditor5/src/core.js';function _0x5d88(_0x1e051f,_0x3837a2){const _0x56c021=_0x56c0();return _0x5d88=function(_0x5d887b,_0x4119a1){_0x5d887b=_0x5d887b-0x83;let _0x4196c7=_0x56c021[_0x5d887b];return _0x4196c7;},_0x5d88(_0x1e051f,_0x3837a2);}import _0x4ecc84 from'./commenteditorui.js';import{ObservableMixin as _0x1710e1}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x19b888,disablePlaceholder as _0x121740}from'ckeditor5/src/engine.js';import{Clipboard as _0x28e035}from'ckeditor5/src/clipboard.js';import{Enter as _0x4c9441,ShiftEnter as _0x2a35e8}from'ckeditor5/src/enter.js';function _0x56c0(){const _0x56af15=['destroy','name','2WlDPNe','set','10VTerSj','end','3488vmrKsY','getRoot','initialData','get','3036856QfKrZk','placeholder','data','fromCharCode','assign','7316739FUMUCr','editing','createRoot','init','initPlugins','create','1702821PvhpuM','then','childCount','_updatePlaceholder','5690076tqLoNB','join','setSelection','focus','config','defaultPlugins','change:placeholder','getChild','view','1986525bNUbkc','3864iQNCgd','low','placeholderElement','model','change','map','plugins','document','816109uGCbOf','fire','ready'];_0x56c0=function(){return _0x56af15;};return _0x56c0();}import{SelectAll as _0x19d26a}from'ckeditor5/src/select-all.js';import{Typing as _0x1b81e3}from'ckeditor5/src/typing.js';import{Undo as _0x1ca239}from'ckeditor5/src/undo.js';import{Paragraph as _0x115f41}from'ckeditor5/src/paragraph.js';const Nt=[_0x28e035,_0x4c9441,_0x2a35e8,_0x19d26a,_0x1b81e3,_0x1ca239,_0x115f41];class Qt extends/* #__PURE__ -- @preserve */ _0x1710e1(_0x497d13){static [_0xf1c4cc(0xaf)]=((()=>Nt)());constructor(_0x2fcb2f={}){const _0xfcf5f4=_0xf1c4cc;function _0x13eaf4(_0x4c7a6c){const _0x3b9f30=_0x5d88;return _0x4c7a6c[_0x3b9f30(0x8b)](_0x165bd9=>String[_0x3b9f30(0x9e)](_0x165bd9))[_0x3b9f30(0xab)]('');}(_0x2fcb2f=Object[_0xfcf5f4(0x9f)]({},_0x2fcb2f))[_0xfcf5f4(0x8c)]||(_0x2fcb2f[_0xfcf5f4(0x8c)]=Qt[_0xfcf5f4(0xaf)]),super(_0x2fcb2f),this['ui']=new _0x4ecc84(this),this[_0xfcf5f4(0x94)](_0xfcf5f4(0x9c),''),this[_0xfcf5f4(0x89)][_0xfcf5f4(0x8d)]['on'](_0xfcf5f4(0x8a),()=>this[_0xfcf5f4(0xa9)](),{'priority':_0xfcf5f4(0x87)}),this['on'](_0xfcf5f4(0xb0),()=>this[_0xfcf5f4(0xa9)]()),this[_0xfcf5f4(0x89)][_0xfcf5f4(0x8d)][_0xfcf5f4(0xa2)](),this[_0x13eaf4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13eaf4([0x76,0x69,0x65,0x77])][_0x13eaf4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13eaf4([0x61,0x75,0x74,0x6f]),this[_0x13eaf4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x13eaf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13eaf4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x13eaf4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x13eaf4([0x6f,0x6b])});}[_0xf1c4cc(0xa5)](){const _0x2e18a8=_0xf1c4cc,_0x362c7a=this[_0x2e18a8(0xae)][_0x2e18a8(0x9a)](_0x2e18a8(0x99))||'';return this[_0x2e18a8(0xa4)]()[_0x2e18a8(0xa7)](()=>this['ui'][_0x2e18a8(0xa3)]())[_0x2e18a8(0xa7)](()=>this[_0x2e18a8(0x9d)][_0x2e18a8(0xa3)](_0x362c7a))[_0x2e18a8(0xa7)](()=>this[_0x2e18a8(0x8f)](_0x2e18a8(0x90)));}[_0xf1c4cc(0x91)](){const _0x4deeab=_0xf1c4cc;return super[_0x4deeab(0x91)]()[_0x4deeab(0xa7)](()=>this['ui'][_0x4deeab(0x91)]());}[_0xf1c4cc(0xad)](){const _0x777ac6=_0xf1c4cc;this[_0x777ac6(0x89)][_0x777ac6(0x8a)](_0x57021f=>{const _0x359990=_0x777ac6,_0x51640b=this[_0x359990(0x89)][_0x359990(0x8d)][_0x359990(0x98)](),_0x1e9d56=_0x51640b&&_0x51640b[_0x359990(0x83)](_0x51640b[_0x359990(0xa8)]-0x1);_0x57021f[_0x359990(0xac)](_0x1e9d56,_0x359990(0x96)),this[_0x359990(0xa1)][_0x359990(0x84)][_0x359990(0xad)]();});}[_0xf1c4cc(0xa9)](){const _0x276f56=_0xf1c4cc,_0xa0f103=this[_0x276f56(0xa1)][_0x276f56(0x84)],_0x25df62=_0xa0f103[_0x276f56(0x8d)][_0x276f56(0x98)](),_0x5c7b2c=_0x25df62[_0x276f56(0x83)](0x0);_0x25df62[_0x276f56(0xa8)]>0x1||!_0x5c7b2c||'p'!=_0x5c7b2c[_0x276f56(0x92)]?this[_0x276f56(0x88)]&&this[_0x276f56(0x88)][_0x276f56(0x9c)]&&(_0x121740(_0xa0f103,this[_0x276f56(0x88)]),this[_0x276f56(0x88)]=void 0x0):(this[_0x276f56(0x9c)]&&(_0x5c7b2c[_0x276f56(0x9c)]=this[_0x276f56(0x9c)]),_0x19b888({'view':_0xa0f103,'element':_0x5c7b2c,'keepOnFocus':!0x0}),this[_0x276f56(0x88)]=_0x5c7b2c);}}export default Qt;