2018-09-23 15:45:44 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWTransclusionTableCellNode class.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2018-09-23 15:45:44 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ContentEditable MediaWiki transclusion table cell node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ce.MWTransclusionNode
|
|
|
|
* @constructor
|
2024-04-29 17:51:41 +00:00
|
|
|
* @mixes ve.ce.TableCellableNode
|
2018-09-23 15:45:44 +00:00
|
|
|
* @param {ve.dm.MWTransclusionTableCellNode} model Model to observe
|
|
|
|
*/
|
|
|
|
ve.ce.MWTransclusionTableCellNode = function VeCeMWTransclusionTableCellNode( model ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ce.MWTransclusionTableCellNode.super.call( this, model );
|
|
|
|
|
|
|
|
// Mixin constructors
|
|
|
|
ve.ce.TableCellableNode.call( this );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ce.MWTransclusionTableCellNode, ve.ce.MWTransclusionNode );
|
|
|
|
|
|
|
|
OO.mixinClass( ve.ce.MWTransclusionTableCellNode, ve.ce.TableCellableNode );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWTransclusionTableCellNode.static.name = 'mwTransclusionTableCell';
|
|
|
|
|
2024-06-17 18:02:45 +00:00
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
ve.ce.MWTransclusionTableCellNode.prototype.getTagName = function () {
|
|
|
|
// mwTransclusionTableCells have no style attribute. Give them a table
|
|
|
|
// cell to start with, although it will get overwritten with
|
|
|
|
// originalDomElements.
|
|
|
|
return 'td';
|
|
|
|
};
|
|
|
|
|
2018-09-23 15:45:44 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWTransclusionTableCellNode );
|