mediawiki-extensions-Visual.../contentEditable/views/es.ParagraphView.js

27 lines
515 B
JavaScript
Raw Normal View History

2012-01-26 18:41:42 +00:00
/**
* Creates an es.ParagraphView object.
*
* @class
* @constructor
* @extends {es.DocumentViewLeafNode}
* @param {es.ParagraphModel} model Paragraph model to view
*/
es.ParagraphView = function( model ) {
// Inheritance
es.DocumentViewLeafNode.call( this, model );
// DOM Changes
this.$.addClass( 'es-paragraphView' );
};
/* Registration */
es.DocumentView.splitRules.paragraph = {
'self': true,
'children': null
};
/* Inheritance */
es.extendClass( es.ParagraphView, es.DocumentViewLeafNode );