VisualEditor: Add selection restriction to command
Depends on I88f3d04 in VE. Change-Id: I33006574d86daa6ed2568b631a62e063c9f98542
This commit is contained in:
parent
9141a9e5ed
commit
575e8407e6
@ -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'] }
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user