mediawiki-extensions-Visual.../modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
James D. Forrester ada58df361 build: Bump file copyright notices for 2016
Change-Id: I3c618c196e504a80ca297a4132a17f1977a24fb7
2016-01-03 14:57:25 -08:00

24 lines
509 B
JavaScript

/*!
* VisualEditor MediaWiki CommandRegistry registrations.
*
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* MW-specific over-rides of core command registrations */
ve.ui.commandRegistry.register(
new ve.ui.Command( 'insertTable', 'table', 'create',
{
args: [ {
header: true,
rows: 3,
cols: 4,
type: 'mwTable',
attributes: { wikitable: true }
} ],
supportedSelections: [ 'linear' ]
}
)
);