Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7418694
ve.ce.CodeSampleAnnotation.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
962 B
Referenced Files
None
Subscribers
None
ve.ce.CodeSampleAnnotation.js
View Options
/*!
* VisualEditor ContentEditable CodeSampleAnnotation class.
*
* @copyright See AUTHORS.txt
*/
/**
* ContentEditable code sample annotation.
*
* @class
* @extends ve.ce.TextStyleAnnotation
* @constructor
* @param {ve.dm.CodeSampleAnnotation} model Model to observe
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
ve
.
ce
.
CodeSampleAnnotation
=
function
VeCeCodeSampleAnnotation
()
{
// Parent constructor
ve
.
ce
.
CodeSampleAnnotation
.
super
.
apply
(
this
,
arguments
);
// DOM changes
this
.
$element
.
addClass
(
've-ce-codeSampleAnnotation'
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ce
.
CodeSampleAnnotation
,
ve
.
ce
.
TextStyleAnnotation
);
/* Static Properties */
ve
.
ce
.
CodeSampleAnnotation
.
static
.
name
=
'textStyle/codeSample'
;
ve
.
ce
.
CodeSampleAnnotation
.
static
.
tagName
=
'samp'
;
/* Registration */
ve
.
ce
.
annotationFactory
.
register
(
ve
.
ce
.
CodeSampleAnnotation
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 04:04 (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/74/b74f1c2b2cc2b96caec30a13f760
Default Alt Text
ve.ce.CodeSampleAnnotation.js (962 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment