mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
27 lines
488 B
JavaScript
27 lines
488 B
JavaScript
/**
|
|
* Creates an ve.es.PreNode object.
|
|
*
|
|
* @class
|
|
* @constructor
|
|
* @extends {ve.es.LeafNode}
|
|
* @param {ve.dm.PreNode} model Pre model to view
|
|
*/
|
|
ve.es.PreNode = function( model ) {
|
|
// Inheritance
|
|
ve.es.LeafNode.call( this, model, undefined, { 'pre': true } );
|
|
|
|
// DOM Changes
|
|
this.$.addClass( 'es-preView' );
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
ve.es.DocumentNode.splitRules.pre = {
|
|
'self': true,
|
|
'children': null
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.extendClass( ve.es.PreNode, ve.es.LeafNode );
|