Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7417772
ve.ce.CommentAnnotation.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.ce.CommentAnnotation.js
View Options
/*!
* VisualEditor ContentEditable CommentAnnotation class.
*
* @copyright See AUTHORS.txt
*/
/**
* ContentEditable comment annotation.
*
* @class
* @extends ve.ce.Annotation
* @constructor
* @param {ve.dm.CommentAnnotation} model Model to observe
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
ve
.
ce
.
CommentAnnotation
=
function
VeCeCommentAnnotation
()
{
// Parent constructor
ve
.
ce
.
CommentAnnotation
.
super
.
apply
(
this
,
arguments
);
// DOM changes
this
.
$element
.
addClass
(
've-ce-commentAnnotation'
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ce
.
CommentAnnotation
,
ve
.
ce
.
Annotation
);
/* Static Properties */
ve
.
ce
.
CommentAnnotation
.
static
.
name
=
'commentAnnotation'
;
ve
.
ce
.
CommentAnnotation
.
static
.
tagName
=
'span'
;
ve
.
ce
.
CommentAnnotation
.
static
.
canBeActive
=
true
;
/* Static Methods */
/**
* @inheritdoc
*/
ve
.
ce
.
CommentAnnotation
.
static
.
getDescription
=
function
(
model
)
{
const
comments
=
model
.
getAttribute
(
'comments'
);
return
comments
[
0
].
author
+
': '
+
comments
[
0
].
text
;
};
/* Registration */
ve
.
ce
.
annotationFactory
.
register
(
ve
.
ce
.
CommentAnnotation
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 03:33 (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fb/ac/9c7f56a11d0e400ca10626c0a418
Default Alt Text
ve.ce.CommentAnnotation.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment