VisualEditor: Add selection restriction to command

Depends on I88f3d04 in VE.

Change-Id: I33006574d86daa6ed2568b631a62e063c9f98542
This commit is contained in:
Ed Sanders 2014-11-03 15:22:34 +00:00 committed by Jforrester
parent 9141a9e5ed
commit 575e8407e6

View File

@ -30,5 +30,8 @@ ve.ui.MWMathInspectorTool.static.commandName = 'math';
ve.ui.toolFactory.register( ve.ui.MWMathInspectorTool ); ve.ui.toolFactory.register( ve.ui.MWMathInspectorTool );
ve.ui.commandRegistry.register( ve.ui.commandRegistry.register(
new ve.ui.Command( 'math', 'window', 'open', 'math' ) new ve.ui.Command(
'math', 'window', 'open',
{ args: ['math'], supportedSelections: ['linear'] }
)
); );