2012-05-01 00:36:22 +00:00
|
|
|
/**
|
|
|
|
* 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
|
2012-05-01 02:38:42 +00:00
|
|
|
ve.ce.BranchNode.call( this, model, $( '<td></td>' ) );
|
2012-05-01 00:36:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* 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 );
|