mediawiki-extensions-Visual.../modules/ve/ce/nodes/ve.ce.TableRowNode.js

41 lines
788 B
JavaScript
Raw Normal View History

/**
* VisualEditor content editable TableRowNodw class.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
2012-03-08 12:27:02 +00:00
/**
* ContentEditable node for a table row.
*
2012-03-08 12:27:02 +00:00
* @class
* @constructor
* @extends {ve.ce.BranchNode}
* @param model {ve.dm.TableRowNode} Model to observe
2012-03-08 12:27:02 +00:00
*/
ve.ce.TableRowNode = function ( model ) {
2012-03-08 12:27:02 +00:00
// Inheritance
ve.ce.BranchNode.call( this, 'tableRow', model, $( '<tr></tr>' ) );
2012-03-08 12:27:02 +00:00
};
/* Static Members */
2012-03-08 12:27:02 +00:00
/**
* Node rules.
*
* @see ve.ce.NodeFactory
* @static
* @member
*/
ve.ce.TableRowNode.rules = {
'canBeSplit': false
2012-03-08 12:27:02 +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 );