mediawiki-extensions-Visual.../modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
Krenair 96cdfe28ce Fix name of advanced settings page in open command
Bug: 63984
Change-Id: I924520be81a183a1de3f8f81c60d9ed26fb3a80e
2014-04-16 02:08:30 +01:00

70 lines
2.4 KiB
JavaScript

/*!
* VisualEditor CommandRegistry class.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* MW Command Registrations */
ve.ui.commandRegistry.register(
new ve.ui.Command( 'gallery', 'inspector', 'open', 'gallery' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'mediaEdit', 'dialog', 'open', 'mediaEdit' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'mediaInsert', 'dialog', 'open', 'mediaInsert' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'referenceList', 'dialog', 'open', 'referenceList' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'reference', 'dialog', 'open', 'reference' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'transclusion', 'dialog', 'open', 'transclusion' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'alienExtension', 'inspector', 'open', 'alienExtension' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'hiero', 'inspector', 'open', 'hiero' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'meta', 'dialog', 'open', 'meta' )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'meta/settings', 'dialog', 'open', 'meta', { 'page': 'settings' } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'meta/advanced', 'dialog', 'open', 'meta', { 'page': 'advancedSettings' } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'meta/categories', 'dialog', 'open', 'meta', { 'page': 'categories' } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'meta/languages', 'dialog', 'open', 'meta', { 'page': 'languages' } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading1', 'format', 'convert', 'mwHeading', { 'level': 1 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading2', 'format', 'convert', 'mwHeading', { 'level': 2 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading3', 'format', 'convert', 'mwHeading', { 'level': 3 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading4', 'format', 'convert', 'mwHeading', { 'level': 4 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading5', 'format', 'convert', 'mwHeading', { 'level': 5 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'heading6', 'format', 'convert', 'mwHeading', { 'level': 6 } )
);
ve.ui.commandRegistry.register(
new ve.ui.Command( 'preformatted', 'format', 'convert', 'mwPreformatted' )
);