Update tool to use a command

Bug: 63541
Change-Id: Iaeaf183dc2d906364d1dc69270bcf06c24ba833a
This commit is contained in:
Trevor Parscal 2014-04-09 15:51:10 -07:00 committed by Catrope
parent 3d7582a741
commit 01f3f8ee67

View file

@ -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' )
);