mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Minor fixes for VE Math code
* Update MWMathInspectorTool for deferMsg refactor * Update ce.MWMathNode to add primaryCommandName Change-Id: I344e3ef498c504d07b1f42954ab44b82ed3c0a50
This commit is contained in:
parent
fcf045f832
commit
e7be4f5ba7
|
@ -29,10 +29,13 @@ ve.ce.MWMathNode = function VeCeMWMathNode( model, config ) {
|
|||
|
||||
OO.inheritClass( ve.ce.MWMathNode, ve.ce.MWExtensionNode );
|
||||
|
||||
|
||||
/* Static Properties */
|
||||
|
||||
ve.ce.MWMathNode.static.name = 'mwMath';
|
||||
|
||||
ve.ce.MWMathNode.static.primaryCommandName = 'math';
|
||||
|
||||
/* Methods */
|
||||
|
||||
/** */
|
||||
|
|
|
@ -23,7 +23,8 @@ OO.inheritClass( ve.ui.MWMathInspectorTool, ve.ui.InspectorTool );
|
|||
ve.ui.MWMathInspectorTool.static.name = 'math';
|
||||
ve.ui.MWMathInspectorTool.static.group = 'object';
|
||||
ve.ui.MWMathInspectorTool.static.icon = 'math';
|
||||
ve.ui.MWMathInspectorTool.static.titleMessage = 'math-visualeditor-mwmathinspector-title';
|
||||
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.toolFactory.register( ve.ui.MWMathInspectorTool );
|
||||
|
|
Loading…
Reference in a new issue