Page MenuHomeWickedGov Phorge

ve.ui.MergeCellsCommand.js
No OneTemporary

Size
865 B
Referenced Files
None
Subscribers
None

ve.ui.MergeCellsCommand.js

/*!
* VisualEditor UserInterface MergeCellsCommand class.
*
* @copyright See AUTHORS.txt
*/
/**
* UserInterface merge cells command.
*
* @class
* @extends ve.ui.Command
*
* @constructor
*/
ve.ui.MergeCellsCommand = function VeUiMergeCellsCommand() {
// Parent constructor
ve.ui.MergeCellsCommand.super.call(
this, 'mergeCells', 'table', 'mergeCells',
{ supportedSelections: [ 'table' ] }
);
};
/* Inheritance */
OO.inheritClass( ve.ui.MergeCellsCommand, ve.ui.Command );
/* Methods */
/**
* @inheritdoc
*/
ve.ui.MergeCellsCommand.prototype.isExecutable = function ( fragment ) {
// Parent method
return ve.ui.MergeCellsCommand.super.prototype.isExecutable.apply( this, arguments ) &&
fragment.getSelection().isMergeable( fragment.getDocument() );
};
/* Registration */
ve.ui.commandRegistry.register( new ve.ui.MergeCellsCommand() );

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 14:29 (7 h, 18 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0f/4f/169bea6d85f3de0fbd5ee6594fc5
Default Alt Text
ve.ui.MergeCellsCommand.js (865 B)

Event Timeline