mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
27 lines
502 B
JavaScript
27 lines
502 B
JavaScript
/**
|
|
* Creates an ve.es.ParagraphNode object.
|
|
*
|
|
* @class
|
|
* @constructor
|
|
* @extends {ve.es.LeafNode}
|
|
* @param {ve.dm.ParagraphNode} model Paragraph model to view
|
|
*/
|
|
ve.es.ParagraphNode = function( model ) {
|
|
// Inheritance
|
|
ve.es.LeafNode.call( this, model );
|
|
|
|
// DOM Changes
|
|
this.$.addClass( 'es-paragraphView' );
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
ve.es.DocumentNode.splitRules.paragraph = {
|
|
'self': true,
|
|
'children': null
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.extendClass( ve.es.ParagraphNode, ve.es.LeafNode );
|