2013-03-01 01:17:02 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWPreformattedNode class.
|
|
|
|
*
|
2017-01-03 16:58:33 +00:00
|
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
2013-03-01 01:17:02 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable MW preformatted node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ce.PreformattedNode
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.MWPreformattedNode} model Model to observe
|
2013-09-25 10:21:09 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
2013-03-01 01:17:02 +00:00
|
|
|
*/
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.ce.MWPreformattedNode = function VeCeMWPreformattedNode() {
|
2013-03-01 01:17:02 +00:00
|
|
|
// Parent constructor
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.ce.MWPreformattedNode.super.apply( this, arguments );
|
2013-03-01 01:17:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-11 21:44:09 +00:00
|
|
|
OO.inheritClass( ve.ce.MWPreformattedNode, ve.ce.PreformattedNode );
|
2013-03-01 01:17:02 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
2013-05-28 11:31:41 +00:00
|
|
|
ve.ce.MWPreformattedNode.static.name = 'mwPreformatted';
|
2013-03-01 01:17:02 +00:00
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWPreformattedNode );
|