UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 6.17 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 _0x449b7a=_0x38d1;(function(_0x317030,_0x88168a){const _0x3db86a=_0x38d1,_0x7e55e6=_0x317030();while(!![]){try{const _0x349bc2=-parseInt(_0x3db86a(0xa5))/0x1+-parseInt(_0x3db86a(0xbd))/0x2+parseInt(_0x3db86a(0xa6))/0x3*(parseInt(_0x3db86a(0xb5))/0x4)+parseInt(_0x3db86a(0xae))/0x5*(-parseInt(_0x3db86a(0xa2))/0x6)+parseInt(_0x3db86a(0xb6))/0x7*(-parseInt(_0x3db86a(0xb9))/0x8)+-parseInt(_0x3db86a(0xa7))/0x9*(-parseInt(_0x3db86a(0xb4))/0xa)+-parseInt(_0x3db86a(0xbc))/0xb*(-parseInt(_0x3db86a(0x9c))/0xc);if(_0x349bc2===_0x88168a)break;else _0x7e55e6['push'](_0x7e55e6['shift']());}catch(_0x39b336){_0x7e55e6['push'](_0x7e55e6['shift']());}}}(_0x455c,0xb9532));import{Editor as _0x1d3f80}from'ckeditor5/src/core.js';import{CommentEditorUI as _0x578861}from'./commenteditorui.js';import{ObservableMixin as _0x4009bb}from'ckeditor5/src/utils.js';import{enableViewPlaceholder as _0x5122e6,disableViewPlaceholder as _0x59ddff}from'ckeditor5/src/engine.js';import{Clipboard as _0x5c312c}from'ckeditor5/src/clipboard.js';import{Enter as _0x2caa09,ShiftEnter as _0x30342f}from'ckeditor5/src/enter.js';function _0x455c(){const _0x1dcee3=['9fYavPq','placeholder','defaultPlugins','data','getChild','destroy','config','993950qtkTiz','ready','initPlugins','model','setSelection','name','13691390oEUbcE','4fkDuOt','2534mkXbzE','change','fire','12240bknGBZ','childCount','placeholderElement','11emIohF','1418754VxzxyB','document','create','getRoot','plugins','low','view','end','initialData','fromCharCode','get','init','assign','set','join','19541064qIsWeZ','then','_updatePlaceholder','focus','map','editing','30hnditm','createRoot','change:placeholder','1031318OxJcGQ','3150102gomuDZ'];_0x455c=function(){return _0x1dcee3;};return _0x455c();}import{SelectAll as _0x17c53a}from'ckeditor5/src/select-all.js';import{Typing as _0x3da44c}from'ckeditor5/src/typing.js';import{Undo as _0x5b553b}from'ckeditor5/src/undo.js';import{Paragraph as _0x440101}from'ckeditor5/src/paragraph.js';const Nt=[_0x5c312c,_0x2caa09,_0x30342f,_0x17c53a,_0x3da44c,_0x5b553b,_0x440101];function _0x38d1(_0x1877c1,_0x63f0b3){const _0x455c10=_0x455c();return _0x38d1=function(_0x38d1a1,_0x36b673){_0x38d1a1=_0x38d1a1-0x8e;let _0x85e213=_0x455c10[_0x38d1a1];return _0x85e213;},_0x38d1(_0x1877c1,_0x63f0b3);}class Qt extends/* #__PURE__ -- @preserve */ _0x4009bb(_0x1d3f80){static [_0x449b7a(0xa9)]=((()=>Nt)());constructor(_0x453ddb={}){const _0x4e4167=_0x449b7a;function _0x1dab9b(_0x1ec2d6){const _0x6b2a3f=_0x38d1;return _0x1ec2d6[_0x6b2a3f(0xa0)](_0x16a47a=>String[_0x6b2a3f(0x96)](_0x16a47a))[_0x6b2a3f(0x9b)]('');}(_0x453ddb=Object[_0x4e4167(0x99)]({},_0x453ddb))[_0x4e4167(0x91)]||(_0x453ddb[_0x4e4167(0x91)]=Qt[_0x4e4167(0xa9)]),super(_0x453ddb),this['ui']=new _0x578861(this),this[_0x4e4167(0x9a)](_0x4e4167(0xa8),''),this[_0x4e4167(0xb1)][_0x4e4167(0x8e)]['on'](_0x4e4167(0xb7),()=>this[_0x4e4167(0x9e)](),{'priority':_0x4e4167(0x92)}),this['on'](_0x4e4167(0xa4),()=>this[_0x4e4167(0x9e)]()),this[_0x4e4167(0xb1)][_0x4e4167(0x8e)][_0x4e4167(0xa3)](),this[_0x1dab9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dab9b([0x76,0x69,0x65,0x77])][_0x1dab9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dab9b([0x61,0x75,0x74,0x6f]),this[_0x1dab9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1dab9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dab9b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1dab9b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1dab9b([0x6f,0x6b])});}[_0x449b7a(0x8f)](){const _0x5164dc=_0x449b7a,_0x4b38f8=this[_0x5164dc(0xad)][_0x5164dc(0x97)](_0x5164dc(0x95))||'';return this[_0x5164dc(0xb0)]()[_0x5164dc(0x9d)](()=>this['ui'][_0x5164dc(0x98)]())[_0x5164dc(0x9d)](()=>this[_0x5164dc(0xaa)][_0x5164dc(0x98)](_0x4b38f8))[_0x5164dc(0x9d)](()=>this[_0x5164dc(0xb8)](_0x5164dc(0xaf)));}[_0x449b7a(0xac)](){const _0x1f2c02=_0x449b7a;return super[_0x1f2c02(0xac)]()[_0x1f2c02(0x9d)](()=>this['ui'][_0x1f2c02(0xac)]());}[_0x449b7a(0x9f)](){const _0x18dcb5=_0x449b7a;this[_0x18dcb5(0xb1)][_0x18dcb5(0xb7)](_0x32157b=>{const _0x1992f2=_0x18dcb5,_0x45fdd3=this[_0x1992f2(0xb1)][_0x1992f2(0x8e)][_0x1992f2(0x90)](),_0x39005c=_0x45fdd3&&_0x45fdd3[_0x1992f2(0xab)](_0x45fdd3[_0x1992f2(0xba)]-0x1);_0x32157b[_0x1992f2(0xb2)](_0x39005c,_0x1992f2(0x94)),this[_0x1992f2(0xa1)][_0x1992f2(0x93)][_0x1992f2(0x9f)]();});}[_0x449b7a(0x9e)](){const _0x3b7440=_0x449b7a,_0x5ebfb4=this[_0x3b7440(0xa1)][_0x3b7440(0x93)],_0x172964=_0x5ebfb4[_0x3b7440(0x8e)][_0x3b7440(0x90)](),_0x4d4efb=_0x172964[_0x3b7440(0xab)](0x0);_0x172964[_0x3b7440(0xba)]>0x1||!_0x4d4efb||'p'!=_0x4d4efb[_0x3b7440(0xb3)]?this[_0x3b7440(0xbb)]&&this[_0x3b7440(0xbb)][_0x3b7440(0xa8)]&&(_0x59ddff(_0x5ebfb4,this[_0x3b7440(0xbb)]),this[_0x3b7440(0xbb)]=void 0x0):(this[_0x3b7440(0xa8)]&&(_0x4d4efb[_0x3b7440(0xa8)]=this[_0x3b7440(0xa8)]),_0x5122e6({'view':_0x5ebfb4,'element':_0x4d4efb,'keepOnFocus':!0x0}),this[_0x3b7440(0xbb)]=_0x4d4efb);}}export{Qt as CommentEditor};