2013-12-20 23:25:24 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor CommandRegistry class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* MW Command Registrations */
|
|
|
|
|
2014-05-31 04:47:08 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
|
|
|
new ve.ui.Command( 'linkNode', 'window', 'open', 'linkNode' )
|
|
|
|
);
|
2013-12-20 23:25:24 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
2014-04-21 22:31:21 +00:00
|
|
|
new ve.ui.Command( 'gallery', 'window', 'open', 'gallery' )
|
2013-12-20 23:25:24 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-06-19 15:44:05 +00:00
|
|
|
new ve.ui.Command( 'media', 'window', 'open', 'media' )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
2013-12-20 23:25:24 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-19 18:32:46 +00:00
|
|
|
new ve.ui.Command( 'referencesList', 'window', 'open', 'referencesList' )
|
2013-12-20 23:25:24 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-04-21 22:31:21 +00:00
|
|
|
new ve.ui.Command( 'reference', 'window', 'open', 'reference' )
|
2013-12-20 23:25:24 +00:00
|
|
|
);
|
2014-05-30 21:28:41 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'reference/existing', 'window', 'open', 'reference', { useExisting: true } )
|
2014-05-30 21:28:41 +00:00
|
|
|
);
|
2013-12-20 23:25:24 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
2014-04-21 22:31:21 +00:00
|
|
|
new ve.ui.Command( 'transclusion', 'window', 'open', 'transclusion' )
|
2013-12-20 23:25:24 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-04-21 22:31:21 +00:00
|
|
|
new ve.ui.Command( 'alienExtension', 'window', 'open', 'alienExtension' )
|
2013-12-20 23:25:24 +00:00
|
|
|
);
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.commandRegistry.register(
|
2014-04-21 22:31:21 +00:00
|
|
|
new ve.ui.Command( 'meta', 'window', 'open', 'meta' )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'meta/settings', 'window', 'open', 'meta', { page: 'settings' } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'meta/advanced', 'window', 'open', 'meta', { page: 'advancedSettings' } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'meta/categories', 'window', 'open', 'meta', { page: 'categories' } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'meta/languages', 'window', 'open', 'meta', { page: 'languages' } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading1', 'format', 'convert', 'mwHeading', { level: 1 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading2', 'format', 'convert', 'mwHeading', { level: 2 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading3', 'format', 'convert', 'mwHeading', { level: 3 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading4', 'format', 'convert', 'mwHeading', { level: 4 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading5', 'format', 'convert', 'mwHeading', { level: 5 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
2014-08-22 20:50:48 +00:00
|
|
|
new ve.ui.Command( 'heading6', 'format', 'convert', 'mwHeading', { level: 6 } )
|
2014-04-02 23:29:04 +00:00
|
|
|
);
|
|
|
|
ve.ui.commandRegistry.register(
|
|
|
|
new ve.ui.Command( 'preformatted', 'format', 'convert', 'mwPreformatted' )
|
|
|
|
);
|