2012-03-08 12:27:02 +00:00
|
|
|
/**
|
2012-06-20 01:20:28 +00:00
|
|
|
* ContentEditable node for a table row.
|
|
|
|
*
|
2012-03-08 12:27:02 +00:00
|
|
|
* @class
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.ce.BranchNode}
|
2012-06-20 01:20:28 +00:00
|
|
|
* @param model {ve.dm.TableRowNode} Model to observe
|
2012-03-08 12:27:02 +00:00
|
|
|
*/
|
|
|
|
ve.ce.TableRowNode = function( model ) {
|
|
|
|
// Inheritance
|
2012-06-20 01:20:28 +00:00
|
|
|
ve.ce.BranchNode.call( this, 'tableRow', model, $( '<tr></tr>' ) );
|
2012-03-08 12:27:02 +00:00
|
|
|
};
|
|
|
|
|
2012-06-20 01:20:28 +00:00
|
|
|
/* Static Members */
|
2012-03-08 12:27:02 +00:00
|
|
|
|
2012-06-20 01:20:28 +00:00
|
|
|
/**
|
|
|
|
* Node rules.
|
|
|
|
*
|
|
|
|
* @see ve.ce.NodeFactory
|
|
|
|
* @static
|
|
|
|
* @member
|
|
|
|
*/
|
|
|
|
ve.ce.TableRowNode.rules = {
|
|
|
|
'canBeSplit': false
|
2012-03-08 12:27:02 +00:00
|
|
|
};
|
|
|
|
|
2012-06-20 01:20:28 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.nodeFactory.register( 'tableRow', ve.ce.TableRowNode );
|
|
|
|
|
2012-03-08 12:27:02 +00:00
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.extendClass( ve.ce.TableRowNode, ve.ce.BranchNode );
|