mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
35af704173
Change-Id: Ibdcb4502a8fdc5b1a6c22ae0e9c42c86b3a7d4dc
32 lines
592 B
JavaScript
32 lines
592 B
JavaScript
/**
|
|
* ContentEditable node for a table cell.
|
|
*
|
|
* @class
|
|
* @constructor
|
|
* @extends {ve.ce.BranchNode}
|
|
* @param model {ve.dm.TableCellNode} Model to observe
|
|
*/
|
|
ve.ce.TableCellNode = function( model ) {
|
|
// Inheritance
|
|
ve.ce.BranchNode.call( this, model );
|
|
};
|
|
|
|
/* Static Members */
|
|
|
|
/**
|
|
* @see ve.ce.NodeFactory
|
|
*/
|
|
ve.ce.TableCellNode.rules = {
|
|
'canHaveChildren': true,
|
|
'canHaveGrandchildren': true,
|
|
'canBeSplit': false
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
ve.ce.factory.register( 'tableCell', ve.ce.TableCellNode );
|
|
|
|
/* Inheritance */
|
|
|
|
ve.extendClass( ve.ce.TableCellNode, ve.ce.BranchNode );
|