Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7415513
ve.ce.ParagraphNode.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.ParagraphNode.js
View Options
/*!
* VisualEditor ContentEditable ParagraphNode class.
*
* @copyright See AUTHORS.txt
*/
/**
* ContentEditable paragraph node.
*
* @class
* @extends ve.ce.ContentBranchNode
* @constructor
* @param {ve.dm.ParagraphNode} model Model to observe
* @param {Object} [config] Configuration options
*/
ve
.
ce
.
ParagraphNode
=
function
VeCeParagraphNode
()
{
// Parent constructor
ve
.
ce
.
ParagraphNode
.
super
.
apply
(
this
,
arguments
);
// DOM changes
if
(
this
.
model
.
getElement
().
internal
&&
this
.
model
.
getElement
().
internal
.
generated
===
'wrapper'
)
{
this
.
$element
.
addClass
(
've-ce-generated-wrapper'
);
}
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ce
.
ParagraphNode
,
ve
.
ce
.
ContentBranchNode
);
/* Static Properties */
ve
.
ce
.
ParagraphNode
.
static
.
name
=
'paragraph'
;
ve
.
ce
.
ParagraphNode
.
static
.
tagName
=
'p'
;
/* Methods */
/**
* @inheritdoc
*/
ve
.
ce
.
ParagraphNode
.
prototype
.
initialize
=
function
()
{
ve
.
ce
.
ParagraphNode
.
super
.
prototype
.
initialize
.
call
(
this
);
this
.
$element
.
addClass
(
've-ce-paragraphNode'
);
};
/* Registration */
ve
.
ce
.
nodeFactory
.
register
(
ve
.
ce
.
ParagraphNode
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 02:13 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
72/c4/68186510d7dfaa39e81c1f082969
Default Alt Text
ve.ce.ParagraphNode.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment