mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Update tool to use a command
Bug: 63541 Change-Id: Iaeaf183dc2d906364d1dc69270bcf06c24ba833a
This commit is contained in:
parent
3d7582a741
commit
01f3f8ee67
|
@ -25,6 +25,10 @@ ve.ui.MWMathInspectorTool.static.group = 'object';
|
|||
ve.ui.MWMathInspectorTool.static.icon = 'math';
|
||||
ve.ui.MWMathInspectorTool.static.title = OO.ui.deferMsg(
|
||||
'math-visualeditor-mwmathinspector-title' );
|
||||
ve.ui.MWMathInspectorTool.static.inspector = 'math';
|
||||
ve.ui.MWMathInspectorTool.static.modelClasses = [ ve.dm.MWMathNode ];
|
||||
ve.ui.MWMathInspectorTool.static.commandName = 'math';
|
||||
ve.ui.toolFactory.register( ve.ui.MWMathInspectorTool );
|
||||
|
||||
ve.ui.commandRegistry.register(
|
||||
new ve.ui.Command( 'math', 'inspector', 'open', 'math' )
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue