mediawiki-extensions-Visual.../modules/ve2/ce/nodes/ve.ce.TableCellNode.js
Trevor Parscal 35af704173 Added initial ce nodes
Change-Id: Ibdcb4502a8fdc5b1a6c22ae0e9c42c86b3a7d4dc
2012-04-30 17:36:22 -07:00

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 );