@ckeditor/ckeditor5-comments 35.3.2 → 35.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +2 -1
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/ar.po +3 -3
- package/lang/translations/bg.po +3 -3
- package/lang/translations/bn.po +3 -3
- package/lang/translations/ca.po +3 -3
- package/lang/translations/cs.po +3 -3
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/el.po +3 -3
- package/lang/translations/es.po +3 -3
- package/lang/translations/et.po +3 -3
- package/lang/translations/fi.po +3 -3
- package/lang/translations/fr.po +3 -3
- package/lang/translations/he.po +3 -3
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hu.po +3 -3
- package/lang/translations/id.po +3 -3
- package/lang/translations/it.po +3 -3
- package/lang/translations/ja.po +3 -3
- package/lang/translations/ko.po +3 -3
- package/lang/translations/lt.po +3 -3
- package/lang/translations/lv.po +3 -3
- package/lang/translations/ms.po +3 -3
- package/lang/translations/nl.po +3 -3
- package/lang/translations/no.po +3 -3
- package/lang/translations/pl.po +3 -3
- package/lang/translations/pt-br.po +3 -3
- package/lang/translations/pt.po +3 -3
- package/lang/translations/ro.po +3 -3
- package/lang/translations/ru.po +3 -3
- package/lang/translations/sk.po +3 -3
- package/lang/translations/sr.po +3 -3
- package/lang/translations/sv.po +3 -3
- package/lang/translations/th.po +3 -3
- package/lang/translations/tr.po +3 -3
- package/lang/translations/uk.po +3 -3
- package/lang/translations/vi.po +3 -3
- package/lang/translations/zh-cn.po +3 -3
- package/lang/translations/zh.po +3 -3
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation.css +23 -6
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f33=['_config','initialData','switchToDisplayMode','submit','bind','maxCommentCharsWhenCollapsed','visibleView','switchToEditMode','destroy','createCollection','collapse','editorReady','_createCommentInputView','expand','locale','cancel','_createCommentContentView','set','remove','add','focus','_model','isEditMode','fire','content','value','editorConfig','isCollapsed','disabledSubmit'];(function(_0x4cac4a,_0x2f33e2){const _0x15daf1=function(_0x2927b1){while(--_0x2927b1){_0x4cac4a['push'](_0x4cac4a['shift']());}};_0x15daf1(++_0x2f33e2);}(_0x2f33,0x1a6));const _0x15da=function(_0x4cac4a,_0x2f33e2){_0x4cac4a=_0x4cac4a-0x0;let _0x15daf1=_0x2f33[_0x4cac4a];return _0x15daf1;};import{View as _0x1ad143}from'ckeditor5/src/ui';import{trimHtml as _0x3fa452}from'ckeditor5-collaboration/src/collaboration-core';import _0x380949 from'./commentcontentview';import _0x5247c7 from'./commentinputview';export default class St extends _0x1ad143{constructor(_0x5c1871,_0x4d773d,_0x350b6c){super(_0x5c1871),this[_0x15da('0x5')]=_0x4d773d,this[_0x15da('0xd')]=_0x350b6c,this[_0x15da('0x1')](_0x15da('0x6'),!0x1),this[_0x15da('0x1')]('isCollapsed',!0x0),this[_0x15da('0x13')]=this[_0x15da('0x16')](),this[_0x15da('0x13')]['add'](this[_0x15da('0x0')]());}[_0x15da('0x1a')](){this[_0x15da('0xb')]=!0x1;}[_0x15da('0x17')](){this[_0x15da('0x6')]||(this[_0x15da('0xb')]=!0x0);}[_0x15da('0x4')](){this['element'][_0x15da('0x4')]();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super[_0x15da('0x15')]();}[_0x15da('0x14')](){this[_0x15da('0x6')]||(this['isEditMode']=!0x0,this['visibleView'][_0x15da('0x2')](0x0)['destroy'](),this[_0x15da('0x13')][_0x15da('0x3')](this[_0x15da('0x19')]()));}[_0x15da('0xf')](){this[_0x15da('0x6')]&&(this[_0x15da('0x6')]=!0x1,this['visibleView']['remove'](0x0)[_0x15da('0x15')](),this['visibleView'][_0x15da('0x3')](this[_0x15da('0x0')]()));}[_0x15da('0x0')](){const _0x3d5f80=new _0x380949(this[_0x15da('0x1b')]);return _0x3d5f80[_0x15da('0x11')]('content')['to'](this[_0x15da('0x5')],_0x15da('0x8'),this,_0x15da('0xb'),(_0x2db739,_0x5aa2b4)=>_0x5aa2b4?_0x3fa452(_0x2db739,{'limit':this['_config'][_0x15da('0x12')]}):_0x2db739),_0x3d5f80;}[_0x15da('0x19')](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this[_0x15da('0xd')][_0x15da('0xa')][_0x15da('0xe')]=this[_0x15da('0x5')][_0x15da('0x8')];const _0x46b02e=new _0x5247c7(this['locale'],this[_0x15da('0xd')][_0x15da('0xa')]);return _0x46b02e[_0x15da('0x9')]=this[_0x15da('0x5')]['content'],_0x46b02e[_0x15da('0x11')](_0x15da('0xc'))['to'](this[_0x15da('0x5')],'isReadOnly'),_0x46b02e['on'](_0x15da('0x10'),(_0x5b6403,_0x259ac7)=>{this[_0x15da('0x7')]('updateComment',this[_0x15da('0x5')]['id'],_0x259ac7),this[_0x15da('0xf')](),this['focus']();}),_0x46b02e['on'](_0x15da('0x1c'),()=>{this[_0x15da('0xf')](),this[_0x15da('0x4')]();}),_0x46b02e['once'](_0x15da('0x18'),()=>{_0x46b02e['focus']();}),_0x46b02e['createEditor'](),_0x46b02e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ca9=['bindTemplate','set','ck-thread__comment-count','count','NUMBER_OF_COMMENTS'];(function(_0x43da12,_0x2ca9d0){const _0x2ab9cd=function(_0x413c85){while(--_0x413c85){_0x43da12['push'](_0x43da12['shift']());}};_0x2ab9cd(++_0x2ca9d0);}(_0x2ca9,0x181));const _0x2ab9=function(_0x43da12,_0x2ca9d0){_0x43da12=_0x43da12-0x0;let _0x2ab9cd=_0x2ca9[_0x43da12];return _0x2ab9cd;};import{View as _0x40ede0}from'ckeditor5/src/ui';import{getTranslation as _0x67e7c4}from'../../../utils/common-translations';export default class Nt extends _0x40ede0{constructor(_0x421fb8){super(_0x421fb8);const _0x57d1dc=this[_0x2ab9('0x0')];this[_0x2ab9('0x1')]('count'),this['setTemplate']({'tag':'li','attributes':{'class':_0x2ab9('0x2')},'children':[{'text':_0x57d1dc['to'](_0x2ab9('0x3'),_0x210038=>_0x67e7c4(_0x421fb8,_0x2ab9('0x4'),_0x210038))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32cf=['set','element','ck-annotation__content','div','change:content','ck-comment__content','innerHTML'];(function(_0x128341,_0x32cf94){var _0x311496=function(_0x1c2fc){while(--_0x1c2fc){_0x128341['push'](_0x128341['shift']());}};_0x311496(++_0x32cf94);}(_0x32cf,0xb1));var _0x3114=function(_0x128341,_0x32cf94){_0x128341=_0x128341-0x0;var _0x311496=_0x32cf[_0x128341];return _0x311496;};import{View as _0xba6806}from'ckeditor5/src/ui';export default class Et extends _0xba6806{constructor(_0x113511){super(_0x113511),this[_0x3114('0x5')]('content',''),this['setTemplate']({'tag':_0x3114('0x1'),'attributes':{'class':[_0x3114('0x3'),_0x3114('0x0')]}});}['render'](){super['render'](),this['on'](_0x3114('0x2'),(_0x486a86,_0x4e87db,_0x40bbbd)=>{this['element'][_0x3114('0x4')]=_0x40bbbd;}),this[_0x3114('0x6')]['innerHTML']=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3381=['focus','focusTracker','set','document','cancel','then','editor','placeholder','length','cancelButtonView','create','_initializeFocusCycling','render','TOO_LONG_COMMENT_ALERT','fire','low','_createSubmitButton','label','view','extendTemplate','model','check','createEditor','icon','getData','editorReady','_isDestroyed','div','element','_editorCreationPromise','Cancel','tab','listenTo','isEnabled','submitButtonView','_createCancelButton','focusPrevious','Reply...','firstChild','execute','disabledSubmit','initialData','destroy','bindTemplate','showButtons','focusNext','change','Submit','ck-comment__input-actions--submit','add','_editorConfig','keystrokes','value','setData'];(function(_0x19b8be,_0x33812d){const _0x3bec51=function(_0x1bc562){while(--_0x1bc562){_0x19b8be['push'](_0x19b8be['shift']());}};_0x3bec51(++_0x33812d);}(_0x3381,0xd0));const _0x3bec=function(_0x19b8be,_0x33812d){_0x19b8be=_0x19b8be-0x0;let _0x3bec51=_0x3381[_0x19b8be];return _0x3bec51;};import{View as _0x375d5e,ViewCollection as _0x9dcf2e,FocusCycler as _0x2fc0a9,ButtonView as _0x4fd345}from'ckeditor5/src/ui';import{FocusTracker as _0x3d2dd3,KeystrokeHandler as _0x19e5b3}from'ckeditor5/src/utils';import{icons as _0x366d18}from'ckeditor5/src/core';import _0x5bddbc from'../commenteditor/commenteditor';import{getTranslation as _0x53cbcc}from'../../../utils/common-translations';export default class Tt extends _0x375d5e{constructor(_0x263379,_0x3271b8={}){super(_0x263379),this[_0x3bec('0xe')]=null,this[_0x3bec('0x4')]=_0x3271b8,this['keystrokes']=new _0x19e5b3(),this[_0x3bec('0x9')]=new _0x3d2dd3(),this[_0x3bec('0xa')](_0x3bec('0x6'),_0x3271b8[_0x3bec('0x31')]||''),this[_0x3bec('0xa')](_0x3bec('0x30'),!0x1),this['set'](_0x3bec('0x34'),!0x0),this['set']('placeholder',_0x53cbcc(_0x263379,_0x3bec('0x2d'))),this[_0x3bec('0x2a')]=this[_0x3bec('0x18')](),this[_0x3bec('0x11')]=this[_0x3bec('0x2b')](),this['setTemplate']({'tag':_0x3bec('0x23'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this[_0x3bec('0x33')]['if']('showButtons','ck-comment__input-actions--active')]},'children':[this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]}]}),this[_0x3bec('0x5')][_0x3bec('0xa')]('Esc',(_0x5ee841,_0x33a996)=>{this[_0x3bec('0x11')]['fire']('execute'),_0x33a996();}),this['on']('submit',(_0x3dcdca,_0x4d9b9c)=>{_0x4d9b9c[_0x3bec('0x10')]>0xfde8?(alert(_0x53cbcc(_0x263379,_0x3bec('0x15'),[_0x4d9b9c[_0x3bec('0x10')],0xfde8])),_0x3dcdca['stop']()):this[_0x3bec('0xe')][_0x3bec('0x7')]('');},{'priority':'high'});}[_0x3bec('0x14')](){super[_0x3bec('0x14')](),this[_0x3bec('0x5')][_0x3bec('0x28')](this['element']),this[_0x3bec('0x9')][_0x3bec('0x3')](this[_0x3bec('0x24')]);}[_0x3bec('0x1e')](){return this[_0x3bec('0xe')]||(this[_0x3bec('0xe')]=new _0x5bddbc(this[_0x3bec('0x4')]),this[_0x3bec('0x25')]=this[_0x3bec('0xe')][_0x3bec('0x12')]()[_0x3bec('0xd')](()=>{this[_0x3bec('0x22')]||(this[_0x3bec('0x24')]['insertBefore'](this[_0x3bec('0xe')]['ui'][_0x3bec('0x24')],this[_0x3bec('0x24')][_0x3bec('0x2e')]),this[_0x3bec('0xe')][_0x3bec('0x1c')][_0x3bec('0xb')]['on'](_0x3bec('0x0'),()=>this['value']=this[_0x3bec('0xe')][_0x3bec('0x20')]()),this[_0x3bec('0xe')]['bind'](_0x3bec('0xf'))['to'](this),this[_0x3bec('0x13')](this[_0x3bec('0xe')]),this[_0x3bec('0x16')](_0x3bec('0x21')));})),this[_0x3bec('0x25')];}[_0x3bec('0x8')](){this[_0x3bec('0xe')]&&this[_0x3bec('0xe')][_0x3bec('0x8')]();}async[_0x3bec('0x32')](){this[_0x3bec('0x22')]||(this[_0x3bec('0x22')]=!0x0,this[_0x3bec('0xe')]&&(await this[_0x3bec('0x25')],await this['editor']['destroy']()),await super['destroy']());}[_0x3bec('0x18')](){const {locale:_0x6b3532}=this,_0x21b13b=new _0x4fd345(_0x6b3532);return _0x21b13b['extendTemplate']({'attributes':{'class':[_0x3bec('0x2')]}}),_0x21b13b[_0x3bec('0x19')]=_0x53cbcc(_0x6b3532,_0x3bec('0x1')),_0x21b13b[_0x3bec('0x1f')]=_0x366d18[_0x3bec('0x1d')],_0x21b13b['on'](_0x3bec('0x2f'),()=>{this['fire']('submit',this[_0x3bec('0x6')]);}),_0x21b13b['bind'](_0x3bec('0x29'))['to'](this,_0x3bec('0x6'),this,'disabledSubmit',(_0x5dba80,_0x1b4ad3)=>!_0x1b4ad3&&!!_0x5dba80['trim']()),_0x21b13b;}[_0x3bec('0x2b')](){const {locale:_0x317743}=this,_0x5a1e46=new _0x4fd345(_0x317743);return _0x5a1e46[_0x3bec('0x1b')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5a1e46[_0x3bec('0x19')]=_0x53cbcc(_0x317743,_0x3bec('0x26')),_0x5a1e46['icon']=_0x366d18['cancel'],_0x5a1e46['on'](_0x3bec('0x2f'),()=>{this[_0x3bec('0xe')]['setData'](''),this[_0x3bec('0x16')](_0x3bec('0xc'));}),_0x5a1e46;}[_0x3bec('0x13')](_0x39ceae){const _0x46d445=this[_0x3bec('0x9')],_0x33327f=new _0x9dcf2e();[_0x39ceae['ui'][_0x3bec('0x1a')],this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]['forEach'](_0x50b7e5=>{_0x33327f[_0x3bec('0x3')](_0x50b7e5),_0x46d445[_0x3bec('0x3')](_0x50b7e5['element']);});const _0x3c4a47=new _0x2fc0a9({'focusables':_0x33327f,'focusTracker':_0x46d445});this[_0x3bec('0x5')][_0x3bec('0xa')](_0x3bec('0x27'),(_0x4cc14f,_0xb97fc8)=>{_0x3c4a47[_0x3bec('0x35')](),_0xb97fc8();},{'priority':_0x3bec('0x17')}),this[_0x3bec('0x5')][_0x3bec('0xa')]('shift\x20+\x20tab',(_0x5ca99e,_0x192b02)=>{_0x3c4a47[_0x3bec('0x2c')](),_0x192b02();},{'priority':_0x3bec('0x17')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d23=['destroy','remove','weight','_rearrangeCollapse','createCollection','stopListening','formatDateTime','_config','delete','_shouldCollapse','listenTo','editorConfig','ck-thread__comments','count','from','locale','render','set','_collapsedCommentsView','_handleRemoveCommentModel','maxThreadTotalWeight','isEditMode','collapse','_model','_updateHasDirtyComment','focus','hasDirtyComment','maxCommentCharsWhenCollapsed','add','isActive','equal','length','expand','delegate','refreshVisibleViews','CommentView','_rearrangeExpand','visibleViews','commentViews','some','change:isEditMode','maxCommentsWhenCollapsed','_handleNewCommentModel','comments'];(function(_0x1edab2,_0x5d235d){const _0x2062d0=function(_0x28cabb){while(--_0x28cabb){_0x1edab2['push'](_0x1edab2['shift']());}};_0x2062d0(++_0x5d235d);}(_0x5d23,0xe5));const _0x2062=function(_0x1edab2,_0x5d235d){_0x1edab2=_0x1edab2-0x0;let _0x2062d0=_0x5d23[_0x1edab2];return _0x2062d0;};import{View as _0x1179f4}from'ckeditor5/src/ui';import{diff as _0x17e12e,Collection as _0x4cf96c}from'ckeditor5/src/utils';import _0x3a34bf from'./collapsedcommentsview';export default class dt extends _0x1179f4{constructor(_0x4c421a,_0x82e161,_0xaa472){super(_0x4c421a),this[_0x2062('0x8')](_0x2062('0x11'),!0x1),this[_0x2062('0x8')](_0x2062('0x16'),_0x82e161[_0x2062('0x22')][_0x2062('0x16')]),this[_0x2062('0x8')](_0x2062('0x14'),!0x1),this[_0x2062('0xe')]=_0x82e161,this['_config']=_0xaa472,this[_0x2062('0x1d')]=this[_0x2062('0x27')](),this[_0x2062('0x1c')]=this[_0x2062('0x27')](),this['_collapsedCommentsView']=new _0x3a34bf(_0x4c421a),this[_0x2062('0x9')]['bind'](_0x2062('0x4'))['to'](this,_0x2062('0x16'),_0x5cb69c=>_0x5cb69c-this[_0x2062('0x2a')][_0x2062('0x20')]);for(const _0x453d94 of _0x82e161[_0x2062('0x22')])this[_0x2062('0x21')](_0x453d94);this[_0x2062('0x1')](_0x82e161[_0x2062('0x22')],_0x2062('0x13'),(_0x22bd76,_0x506222)=>{this[_0x2062('0x16')]++,this['_handleNewCommentModel'](_0x506222),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161['comments'],_0x2062('0x24'),(_0x35dc19,_0x240e9a)=>{this[_0x2062('0x16')]--,this[_0x2062('0xa')](_0x240e9a),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161,'commentUpdated',()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x2062('0x3')]},'children':this['visibleViews']});}get[_0x2062('0x0')](){return this[_0x2062('0xe')][_0x2062('0x25')]>this[_0x2062('0x2a')][_0x2062('0xb')]&&!this['isActive']&&!this[_0x2062('0x11')];}['render'](){super[_0x2062('0x7')](),this[_0x2062('0x19')]();}['focus'](){this['element'][_0x2062('0x10')]();}['destroy'](){this[_0x2062('0x9')][_0x2062('0x23')]();for(const _0x2ece87 of this[_0x2062('0x1d')])_0x2ece87[_0x2062('0x23')]();super[_0x2062('0x23')]();}['refreshVisibleViews'](){this[_0x2062('0x0')]?this[_0x2062('0x26')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4b6445){const _0x43aa01=new this[(_0x2062('0x2a'))][(_0x2062('0x1a'))](this[_0x2062('0x6')],_0x4b6445,{'maxCommentCharsWhenCollapsed':this[_0x2062('0x2a')][_0x2062('0x12')],'formatDateTime':this[_0x2062('0x2a')][_0x2062('0x29')],'editorConfig':this[_0x2062('0x2a')][_0x2062('0x2')]});_0x43aa01['viewUid']=_0x4b6445['id'],_0x43aa01['delegate']('removeComment')['to'](this),_0x43aa01[_0x2062('0x18')]('updateComment')['to'](this),this['listenTo'](_0x43aa01,_0x2062('0x1f'),()=>this[_0x2062('0xf')]()),this['commentViews']['add'](_0x43aa01);}['_handleRemoveCommentModel'](_0x5b7c46){const _0x44b4ba=this[_0x2062('0x1d')][_0x2062('0x24')](_0x5b7c46['id']);this[_0x2062('0x28')](_0x44b4ba),_0x44b4ba[_0x2062('0xc')]&&this[_0x2062('0xf')](),_0x44b4ba[_0x2062('0x23')]();}['_updateHasDirtyComment'](){this[_0x2062('0x11')]=Array['from'](this[_0x2062('0x1d')])[_0x2062('0x1e')](_0x303650=>_0x303650[_0x2062('0xc')]);}[_0x2062('0x26')](){const _0x3e5a34=function(_0x23fc9c){const _0x34c6b4=new _0x4cf96c();for(const _0x88f287 of _0x23fc9c)_0x34c6b4[_0x2062('0x13')](_0x88f287);return _0x34c6b4;}(this[_0x2062('0x1d')]),_0x12a157=this[_0x2062('0x9')]['count'];for(let _0xe2053a=0x1;_0xe2053a<=_0x12a157;_0xe2053a++)_0x3e5a34[_0x2062('0x24')](0x1);for(const _0x37f9af of _0x3e5a34)_0x37f9af[_0x2062('0xd')]();_0x12a157>0x0&&_0x3e5a34['add'](this[_0x2062('0x9')],0x1),Wt(_0x17e12e(Array['from'](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](_0x3e5a34)),this[_0x2062('0x1c')],_0x3e5a34);}[_0x2062('0x1b')](){Wt(_0x17e12e(Array[_0x2062('0x5')](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](this[_0x2062('0x1d')])),this[_0x2062('0x1c')],this[_0x2062('0x1d')]);for(const _0x1e899a of this[_0x2062('0x1c')])_0x1e899a[_0x2062('0x17')]();}}function Wt(_0xe62e21,_0x2c80c0,_0x2c9cc5){let _0x1d736e=0x0;for(const _0x269fed of _0xe62e21)switch(_0x269fed){case'insert':_0x2c80c0['add'](_0x2c9cc5['get'](_0x1d736e),_0x1d736e),_0x1d736e++;break;case _0x2062('0x2b'):_0x2c80c0[_0x2062('0x24')](_0x1d736e);break;case _0x2062('0x15'):_0x1d736e++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ddf=['bind','value','ck-thread__user','then','ck-comment__input-container--active','set','userView','bindTemplate','editor','showInput','ck-thread__input','div','setTemplate','ck-comment__input-container','extendTemplate','change:showInput','commentInputView','destroy'];(function(_0x2345e6,_0x5ddf69){var _0x32b41a=function(_0x4242e7){while(--_0x4242e7){_0x2345e6['push'](_0x2345e6['shift']());}};_0x32b41a(++_0x5ddf69);}(_0x5ddf,0xf8));var _0x32b4=function(_0x2345e6,_0x5ddf69){_0x2345e6=_0x2345e6-0x0;var _0x32b41a=_0x5ddf[_0x2345e6];return _0x32b41a;};import{View as _0xc02c88}from'ckeditor5/src/ui';import _0x1934c1 from'./commentinputview';import{UserView as _0x7e57b9}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0xc02c88{constructor(_0x504f34,_0x45301e,_0x199702){super(_0x504f34),this['commentInputView']=new _0x1934c1(_0x504f34,_0x199702),this[_0x32b4('0x2')][_0x32b4('0x4')]('showButtons')['to'](this[_0x32b4('0x2')]['focusTracker'],'isFocused',this[_0x32b4('0x2')],_0x32b4('0x5'),(_0x576840,_0x5b99e9)=>_0x576840||!!_0x5b99e9),this[_0x32b4('0x9')](_0x32b4('0xd'),!0x1),this['on'](_0x32b4('0x1'),()=>{this[_0x32b4('0xd')]&&!this[_0x32b4('0x2')][_0x32b4('0xc')]&&this[_0x32b4('0x2')]['createEditor']();}),this['userView']=new _0x7e57b9(_0x504f34,_0x45301e),this[_0x32b4('0xa')][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0x6')}}),this['commentInputView'][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0xe')}}),this[_0x32b4('0x10')]({'tag':_0x32b4('0xf'),'attributes':{'class':[_0x32b4('0x11'),this[_0x32b4('0xb')]['if'](_0x32b4('0xd'),_0x32b4('0x8'))]},'children':[this[_0x32b4('0xa')],this[_0x32b4('0x2')]]});}[_0x32b4('0x3')](){return this['commentInputView']['destroy']()[_0x32b4('0x7')](()=>super[_0x32b4('0x3')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52e1=['commentsListView','isConfirm','ck-thread--','setTemplate','render','locale','querySelector','element','ck-thread__container','then','commentViews','div','Delete\x20comment\x20thread?','removeCommentThread','Write\x20a\x20comment...','high','getTemplate','isActive','.ck-thread__container','stop','set','cancelConfirm','listenTo','length','ck-thread--active','_cancelAllConfirms','execute','ck-thread--remove-confirmation','remove','commentThreadInputView','fire','change:isActive','unbind','containerElement','showConfirm','removeButton','_bindFirstCommentView','placeholder','actionIndicator','add','bindTemplate','_model','_boundFirstCommentView'];(function(_0x33b6a5,_0x52e1a0){const _0x596bf4=function(_0x3ab98f){while(--_0x3ab98f){_0x33b6a5['push'](_0x33b6a5['shift']());}};_0x596bf4(++_0x52e1a0);}(_0x52e1,0x13d));const _0x596b=function(_0x33b6a5,_0x52e1a0){_0x33b6a5=_0x33b6a5-0x0;let _0x596bf4=_0x52e1[_0x33b6a5];return _0x596bf4;};import{mix as _0x208bff}from'ckeditor5/src/utils';import{ConfirmMixin as _0x3f93db}from'ckeditor5-collaboration/src/collaboration-core';import _0x410c91 from'./basecommentthreadview';import{getTranslation as _0x463892}from'../../../utils/common-translations';export default class ot extends _0x410c91{constructor(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5){super(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5),this[_0x596b('0x4')](_0x596b('0x16'),null),this[_0x596b('0x11')]=null,this['_boundFirstCommentView']=null,this[_0x596b('0x20')]=_0x597a2e,this[_0x596b('0x1e')](this['getTemplate']()),this['on'](_0x596b('0xf'),(_0x4dcf2e,_0x33e342,_0x2c241d)=>{_0x2c241d||this['_cancelAllConfirms']();}),this[_0x596b('0x6')](this[_0x596b('0x19')],'change:isReadOnly',(_0x1347a7,_0xd06fd,_0x258acc)=>{_0x258acc&&this['_cancelAllConfirms']();}),this[_0x596b('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x596b('0x6')](this['commentsListView'][_0x596b('0x25')],_0x596b('0x17'),()=>{this['_bindFirstCommentView']();});}[_0x596b('0x0')](){const _0x45ff81=this[_0x596b('0x18')];return{'tag':_0x596b('0x26'),'attributes':{'class':['ck-thread',_0x45ff81['if'](_0x596b('0x1'),_0x596b('0x8')),_0x45ff81['if'](_0x596b('0x1c'),_0x596b('0xb')),_0x45ff81['to'](_0x596b('0x16'),_0x47f26e=>_0x47f26e?_0x596b('0x1d')+_0x47f26e:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x596b('0x23')},'children':[this[_0x596b('0x1b')],this[_0x596b('0xd')]]}]};}[_0x596b('0x1f')](){super[_0x596b('0x1f')](),this['containerElement']=this[_0x596b('0x22')][_0x596b('0x21')](_0x596b('0x2'));}[_0x596b('0x9')](){this[_0x596b('0x5')]();for(const _0x1b9a29 of this[_0x596b('0x1b')][_0x596b('0x25')])_0x1b9a29[_0x596b('0x5')]();}[_0x596b('0x14')](){const {locale:_0x5a7f12}=this,_0x505441=this[_0x596b('0x1b')][_0x596b('0x25')]['get'](0x0);_0x505441!==this[_0x596b('0x1a')]&&(this['_boundFirstCommentView']=_0x505441,this[_0x596b('0x10')](_0x596b('0x16')),this['bind'](_0x596b('0x16'))['to'](_0x505441,_0x596b('0x16'),_0x1aeec7=>'remove'===_0x1aeec7?_0x596b('0xc'):null),_0x505441[_0x596b('0x15')]=_0x463892(_0x5a7f12,_0x596b('0x29')),_0x505441[_0x596b('0x13')]['on'](_0x596b('0xa'),_0x452dcb=>{_0x452dcb[_0x596b('0x3')](),this[_0x596b('0x12')](_0x463892(_0x5a7f12,_0x596b('0x27')),this[_0x596b('0x11')])[_0x596b('0x24')](()=>{this[_0x596b('0xe')](_0x596b('0x28'));});},{'priority':_0x596b('0x2a')}));}}_0x208bff(ot,_0x3f93db);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4567=['edit','isReadOnly','ck-annotation__info','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__info-time','importWord','change:isRemovable','ck-comment--remove-confirmation','listenTo','EXTERNAL_IMPORT_WORD_COMMENT','ck-annotation__info-name','label','Remove','fire','isConfirm','isExternal','removeComment','ck-comment__wrapper','ck-comment__info-name','ck-comment__external','ck-comment__user','extendTemplate','locale','ck-comment--edit','ck-annotation__content-wrapper','remove','source','ck-comment','Reply...','userView','element','removeButton','ck-annotation__main','mouseleave','render','_attachActions','isVisible','isRemovable','ck-comment__info','set','getUserViewNotificationText','Edit','push','editButton','name','placeholder','div','setTemplate','cancelConfirm','mouseenter','attributes','actionIndicator','visibleView','isEditMode','icon','getExternalCommentNote','author','ck-comment__actions','time','_model','authoredAt','@external','isEnabled','ck-annotation__user','creator','switchToEditMode','ck-annotation__info-time','formatDateTime','bind','ck-annotation','EXTERNAL_AVATAR','_createEditButton','execute','_createRemoveButton','_createCommentInputView','ck-annotation__actions--hidden','EXTERNAL_COMMENT','_config','then'];(function(_0x15f12d,_0x4567e7){const _0x12c61c=function(_0xc75229){while(--_0xc75229){_0x15f12d['push'](_0x15f12d['shift']());}};_0x12c61c(++_0x4567e7);}(_0x4567,0xc0));const _0x12c6=function(_0x15f12d,_0x4567e7){_0x15f12d=_0x15f12d-0x0;let _0x12c61c=_0x4567[_0x15f12d];return _0x12c61c;};import{mix as _0x1a4a33}from'ckeditor5/src/utils';import{ButtonView as _0x5265fa}from'ckeditor5/src/ui';import{icons as _0x3b9602}from'ckeditor5/src/core';import{UserView as _0x5e7507,ConfirmMixin as _0x1baa50}from'ckeditor5-collaboration/src/collaboration-core';import _0x306010 from'./basecommentview';import _0x1919c9 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5d5a42}from'../../../utils/common-translations';export default class it extends _0x306010{constructor(_0xed626f,_0x327ae3,_0x938e8){super(_0xed626f,_0x327ae3,_0x938e8),this[_0x12c6('0x5')](_0x12c6('0x11'),null),this['set'](_0x12c6('0xb'),_0x5d5a42(_0xed626f,_0x12c6('0x49'))),this[_0x12c6('0x5')](_0x12c6('0x1a'),null),this['bind'](_0x12c6('0x1a'))['to'](_0x327ae3),this[_0x12c6('0x9')]=this[_0x12c6('0x25')](),this['removeButton']=this[_0x12c6('0x27')](),this[_0x12c6('0x4a')]=new _0x5e7507(_0xed626f,_0x327ae3[_0x12c6('0x16')],this[_0x12c6('0x6')]()),this[_0x12c6('0x4a')][_0x12c6('0x42')]({'attributes':{'class':[_0x12c6('0x41'),_0x12c6('0x1d')]}}),this[_0x12c6('0x35')](_0x327ae3,_0x12c6('0x33'),()=>this[_0x12c6('0xe')]()),this[_0x12c6('0xd')](this['getTemplate']());}['getTemplate'](){const _0x5ee4c2=this['bindTemplate'],_0x237e43=[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x4'),_0x12c6('0x2f')]},'children':[{'tag':'span','children':[{'text':this[_0x12c6('0x4a')][_0x12c6('0xa')]}],'attributes':{'class':[_0x12c6('0x3f'),_0x12c6('0x37')]}},{'tag':_0x12c6('0x18'),'attributes':{'datetime':_0x5ee4c2['to'](_0x12c6('0x1a')),'class':[_0x12c6('0x31'),_0x12c6('0x20')]},'children':[{'text':_0x5ee4c2['to'](_0x12c6('0x1a'),_0xe55b63=>this[_0x12c6('0x2b')][_0x12c6('0x21')](_0xe55b63))}]}]},{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x17'),'ck-annotation__actions',_0x5ee4c2['if'](_0x12c6('0x13'),'ck-comment__actions--hidden'),_0x5ee4c2['if'](_0x12c6('0x13'),_0x12c6('0x29'))]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':[_0x12c6('0x45')]},'children':this[_0x12c6('0x12')]}];return this['_model'][_0x12c6('0x3c')]&&_0x237e43[_0x12c6('0x8')]({'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x40')]},'children':[{'text':this[_0x12c6('0x15')]()}]}),{'tag':'li','attributes':{'class':[_0x12c6('0x3e'),_0x5ee4c2['if'](_0x12c6('0x3b'),_0x12c6('0x34'))],'tabindex':-0x1},'children':[{'tag':_0x12c6('0xc'),'attributes':{'class':[_0x12c6('0x48'),_0x12c6('0x23'),_0x5ee4c2['if']('isEditMode',_0x12c6('0x44')),_0x5ee4c2['to'](_0x12c6('0x11'),_0x1a3a1e=>_0x1a3a1e?'ck-comment--'+_0x1a3a1e:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x12c6('0x4a')],{'tag':'div','attributes':{'class':['ck-comment__main',_0x12c6('0x4d')]},'children':_0x237e43}]}]};}[_0x12c6('0x25')](){const _0x191dfe=new _0x5265fa(this[_0x12c6('0x43')]);return _0x191dfe[_0x12c6('0x38')]=_0x5d5a42(this['locale'],_0x12c6('0x7')),_0x191dfe['icon']=_0x3b9602['pencil'],_0x191dfe[_0x12c6('0x42')]({'attributes':{'class':'ck-comment--edit'}}),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x1c'))['to'](this[_0x12c6('0x19')],_0x12c6('0x2e'),_0x2478f9=>!_0x2478f9),_0x191dfe[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],'isEditable'),_0x191dfe['on'](_0x12c6('0x26'),()=>this[_0x12c6('0x1f')]()),_0x191dfe;}[_0x12c6('0x27')](){const _0x55882b=new _0x5265fa(this[_0x12c6('0x43')]);return _0x55882b[_0x12c6('0x38')]=_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x39')),_0x55882b[_0x12c6('0x14')]=_0x1919c9,_0x55882b['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x55882b['bind']('isEnabled')['to'](this['_model'],_0x12c6('0x2e'),_0x56f362=>!_0x56f362),_0x55882b[_0x12c6('0x22')](_0x12c6('0x2'))['to'](this['_model'],_0x12c6('0x3')),_0x55882b['on']('execute',()=>{this['showConfirm'](_0x5d5a42(this[_0x12c6('0x43')],'Delete\x20comment?'),this[_0x12c6('0x4b')])[_0x12c6('0x2c')](()=>{this[_0x12c6('0x3a')](_0x12c6('0x3d'),this[_0x12c6('0x19')]['id']);});}),_0x55882b;}[_0x12c6('0x1')](_0x4f584b,_0x383a14){this['listenTo'](_0x4f584b,_0x12c6('0xf'),()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,'focus',()=>this[_0x12c6('0x11')]=_0x383a14),this[_0x12c6('0x35')](_0x4f584b,_0x12c6('0x4e'),()=>this[_0x12c6('0x11')]=null),this[_0x12c6('0x35')](_0x4f584b,'blur',()=>this[_0x12c6('0x11')]=null);}[_0x12c6('0x28')](){const _0x1a6ba8=super[_0x12c6('0x28')]();return _0x1a6ba8[_0x12c6('0x22')](_0x12c6('0xb'))['to'](this),_0x1a6ba8;}[_0x12c6('0x15')](){return _0x12c6('0x32')===this['_model']['attributes'][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x36')):_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x2a'));}[_0x12c6('0x6')](){return this[_0x12c6('0x19')][_0x12c6('0x3c')]?'importWord'===this[_0x12c6('0x19')][_0x12c6('0x10')][_0x12c6('0x1b')][_0x12c6('0x47')]?_0x5d5a42(this[_0x12c6('0x43')],_0x12c6('0x30'),this['_model'][_0x12c6('0x1e')][_0x12c6('0xa')]):_0x5d5a42(this['locale'],_0x12c6('0x24'),this[_0x12c6('0x19')]['creator'][_0x12c6('0xa')]):null;}[_0x12c6('0x0')](){super[_0x12c6('0x0')](),this[_0x12c6('0x1')](this[_0x12c6('0x9')][_0x12c6('0x4b')],_0x12c6('0x2d')),this[_0x12c6('0x1')](this[_0x12c6('0x4c')][_0x12c6('0x4b')],_0x12c6('0x46'));}}_0x1a4a33(it,_0x1baa50);
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20fd=['pluginName','requires','Comments'];(function(_0x58faf9,_0x20fdfc){var _0x1da88a=function(_0x3cee21){while(--_0x3cee21){_0x58faf9['push'](_0x58faf9['shift']());}};_0x1da88a(++_0x20fdfc);}(_0x20fd,0x1da));var _0x1da8=function(_0x58faf9,_0x20fdfc){_0x58faf9=_0x58faf9-0x0;var _0x1da88a=_0x20fd[_0x58faf9];return _0x1da88a;};import{Plugin as _0x1ef9b2}from'ckeditor5/src/core';import _0x339680 from'./comments/commentsrepository';import _0x44c23f from'./comments/commentsediting';import _0x9e75af from'./comments/commentsui';import _0x8789c5 from'./commentsonly';import _0x185d6c from'./annotations/widesidebar';import _0x3def7d from'./annotations/narrowsidebar';import _0x257673 from'./annotations/inlineannotations';export default class c extends _0x1ef9b2{static get[_0x1da8('0x1')](){return[_0x339680,_0x44c23f,_0x9e75af,_0x8789c5,_0x185d6c,_0x3def7d,_0x257673];}static get[_0x1da8('0x0')](){return _0x1da8('0x2');}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4400=['listenTo','affectsData','clearForceDisabled','clipboardInput','afterInit','editing','editor','DragDrop','set','config','has','commands','view','forceDisabled','highest','commentsOnlyMode','_disableCommentsOnlyMode','document','cut','delete','plugins','stop','change:isEnabled','pluginName','get','addCommentThread','requires','stopListening','_enableCommentsOnlyMode','isEnabled'];(function(_0x30cf5d,_0x440078){const _0x243286=function(_0xfd809f){while(--_0xfd809f){_0x30cf5d['push'](_0x30cf5d['shift']());}};_0x243286(++_0x440078);}(_0x4400,0x131));const _0x2432=function(_0x30cf5d,_0x440078){_0x30cf5d=_0x30cf5d-0x0;let _0x243286=_0x4400[_0x30cf5d];return _0x243286;};import{Plugin as _0x1b2a2c}from'ckeditor5/src/core';import _0x54d5dc from'./comments/commentsediting';export default class e extends _0x1b2a2c{static get[_0x2432('0x12')](){return'CommentsOnly';}static get[_0x2432('0x15')](){return[_0x54d5dc];}constructor(_0x4a2156){super(_0x4a2156),this[_0x2432('0x3')](_0x2432('0x18'),null),this['on'](_0x2432('0x11'),(_0x20ca7d,_0xdd0d47,_0x43d950)=>{_0x43d950?this[_0x2432('0x17')]():this[_0x2432('0xb')]();});}[_0x2432('0x1d')](){null===this['isEnabled']&&(this[_0x2432('0x18')]=!!this[_0x2432('0x1')][_0x2432('0x4')][_0x2432('0x13')]('commentsOnly'));}[_0x2432('0x17')](){for(const [_0x2625bf,_0x5ee3a0]of this['editor']['commands'])_0x5ee3a0[_0x2432('0x1a')]&&'addCommentThread'!==_0x2625bf&&_0x5ee3a0[_0x2432('0x8')](_0x2432('0xa'));this[_0x2432('0x1')]['plugins'][_0x2432('0x5')](_0x2432('0x2'))&&this[_0x2432('0x1')][_0x2432('0xf')]['get'](_0x2432('0x2'))['forceDisabled'](_0x2432('0xa'));const _0x19b0c5=this['editor'][_0x2432('0x0')][_0x2432('0x7')]['document'];this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xd'),_0x21cbb4=>_0x21cbb4[_0x2432('0x10')](),{'priority':_0x2432('0x9')}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0x1c'),_0x1380ba=>_0x1380ba['stop'](),{'priority':'highest'}),this[_0x2432('0x19')](_0x19b0c5,_0x2432('0xe'),_0x5f109a=>_0x5f109a[_0x2432('0x10')](),{'priority':_0x2432('0x9')});}['_disableCommentsOnlyMode'](){for(const [_0x436158,_0x5f0b31]of this[_0x2432('0x1')][_0x2432('0x6')])_0x5f0b31['affectsData']&&_0x2432('0x14')!==_0x436158&&_0x5f0b31[_0x2432('0x1b')](_0x2432('0xa'));this[_0x2432('0x16')](this['editor'][_0x2432('0x0')]['view'][_0x2432('0xc')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xbf7eda,_0x5336c2,_0x49322a){const t=_0xbf7eda['t'];switch(_0x5336c2){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x49322a);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x49322a);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x49322a);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x49322a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe57b=['attributeName','type','cancel','class','disconnect','observe','childList','attributes'];(function(_0x16f646,_0xe57be2){const _0x5d8aab=function(_0x5a3301){while(--_0x5a3301){_0x16f646['push'](_0x16f646['shift']());}};_0x5d8aab(++_0xe57be2);}(_0xe57b,0xc4));const _0x5d8a=function(_0x16f646,_0xe57be2){_0x16f646=_0x16f646-0x0;let _0x5d8aab=_0xe57b[_0x16f646];return _0x5d8aab;};import{throttle as _0x4be667}from'lodash-es';export default function ht(_0x2accb9){const _0x1bd556=_0x4be667(_0x2accb9,0x1e),_0x13cfec=new MutationObserver(_0xfaaf4d=>{for(const _0x4ee53b of _0xfaaf4d)(_0x5d8a('0x3')==_0x4ee53b[_0x5d8a('0x5')]&&_0x5d8a('0x7')==_0x4ee53b[_0x5d8a('0x4')]||_0x5d8a('0x2')==_0x4ee53b['type'])&&_0x1bd556();});return{'attach'(_0x1d3af4){_0x13cfec[_0x5d8a('0x1')](_0x1d3af4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x13cfec[_0x5d8a('0x0')](),_0x1bd556[_0x5d8a('0x6')]();}};}
|
package/theme/annotation.css
CHANGED
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ck .ck-annotation__main {
|
|
44
|
-
display:
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-areas:
|
|
46
|
+
"info actions"
|
|
47
|
+
"content content";
|
|
48
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
47
49
|
|
|
48
50
|
/* #1829. Firefox is wrongly rendering flex container width 100% with overflowed (non-spaced) text. */
|
|
49
51
|
width: calc( 100% - var(--ck-user-avatar-size) );
|
|
@@ -69,6 +71,8 @@
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.ck .ck-annotation__info {
|
|
74
|
+
grid-area: info;
|
|
75
|
+
|
|
72
76
|
display: flex;
|
|
73
77
|
align-items: center;
|
|
74
78
|
color: var(--ck-color-annotation-info);
|
|
@@ -80,27 +84,40 @@
|
|
|
80
84
|
.ck .ck-annotation__info-name,
|
|
81
85
|
.ck .ck-annotation__info-time {
|
|
82
86
|
font-weight: bold;
|
|
83
|
-
max-width: 150px;
|
|
84
87
|
white-space: nowrap;
|
|
85
88
|
overflow: hidden;
|
|
86
|
-
text-overflow: ellipsis;
|
|
87
89
|
|
|
88
90
|
/* We need it to prevent `.ck.ck-reset` ovverride. */
|
|
89
91
|
color: var(--ck-color-annotation-info);
|
|
90
92
|
font-size: var(--ck-font-size-small);
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
.ck .ck-annotation__info-name {
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
}
|
|
98
|
+
|
|
93
99
|
.ck .ck-annotation__info-time {
|
|
94
|
-
|
|
100
|
+
flex: 0 0 auto;
|
|
101
|
+
|
|
102
|
+
margin: 0 var(--ck-spacing-large);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,
|
|
106
|
+
.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time {
|
|
107
|
+
white-space: nowrap;
|
|
95
108
|
}
|
|
96
109
|
|
|
97
110
|
.ck .ck-annotation__actions {
|
|
111
|
+
grid-area: actions;
|
|
112
|
+
|
|
98
113
|
transition: opacity 200ms ease;
|
|
99
114
|
opacity: 0.5;
|
|
100
115
|
}
|
|
101
116
|
|
|
102
117
|
/* Because of display flex, we need to strech out annotation content to 100%. */
|
|
103
118
|
.ck .ck-annotation__content-wrapper {
|
|
119
|
+
grid-area: content;
|
|
120
|
+
|
|
104
121
|
width: 100%;
|
|
105
122
|
}
|
|
106
123
|
|