Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4101700
ve.dm.MWLatexNode.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.dm.MWLatexNode.js
View Options
/*!
* VisualEditor DataModel MWLatexNode class.
*
* An abstract class that has most of the common functionality
* for the different tags in the Math extension.
*
* @copyright See AUTHORS.txt
* @license MIT
*/
/**
* DataModel MediaWiki abstract LaTeX node: <math>, <chem>, etc.
*
* @abstract
* @class
* @extends ve.dm.MWInlineExtensionNode
*
* @constructor
* @param {Object} [element]
*/
ve
.
dm
.
MWLatexNode
=
function
VeDmMWLatexNode
()
{
// Parent constructor
ve
.
dm
.
MWLatexNode
.
super
.
apply
(
this
,
arguments
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
MWLatexNode
,
ve
.
dm
.
MWInlineExtensionNode
);
/* Static members */
ve
.
dm
.
MWLatexNode
.
static
.
tagName
=
'img'
;
/* Static Methods */
/**
* @inheritdoc ve.dm.GeneratedContentNode
*/
ve
.
dm
.
MWLatexNode
.
static
.
getHashObjectForRendering
=
function
(
dataElement
)
{
// Parent method
const
hashObject
=
ve
.
dm
.
MWLatexNode
.
super
.
static
.
getHashObjectForRendering
.
call
(
this
,
dataElement
);
// The id does not affect the rendering.
if
(
hashObject
.
mw
.
attrs
)
{
delete
hashObject
.
mw
.
attrs
.
id
;
}
return
hashObject
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 17:05 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
68/3f/3599fc3c94638a2dbefa79fde3c8
Default Alt Text
ve.dm.MWLatexNode.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment