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