2014-10-27 14:26:47 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWTableNode class.
|
|
|
|
*
|
2016-01-03 22:56:59 +00:00
|
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
2014-10-27 14:26:47 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable MW table node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ce.TableNode
|
2016-01-25 16:35:49 +00:00
|
|
|
* @mixins ve.ce.ClassAttributeNode
|
2014-10-27 14:26:47 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.MWTableNode} model Model to observe
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ce.MWTableNode = function VeCeMWTableNode() {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ce.MWTableNode.super.apply( this, arguments );
|
|
|
|
|
2016-01-25 16:35:49 +00:00
|
|
|
// Mixin constructors
|
|
|
|
ve.ce.ClassAttributeNode.call( this );
|
2014-10-27 14:26:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ce.MWTableNode, ve.ce.TableNode );
|
|
|
|
|
2016-01-25 16:35:49 +00:00
|
|
|
OO.mixinClass( ve.ce.MWTableNode, ve.ce.ClassAttributeNode );
|
|
|
|
|
2014-10-27 14:26:47 +00:00
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWTableNode.static.name = 'mwTable';
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWTableNode );
|