2014-01-25 23:09:06 +00:00
|
|
|
( function ( mw ) {
|
2015-09-14 18:46:13 +00:00
|
|
|
var iconPath;
|
2015-01-10 15:26:53 +00:00
|
|
|
if ( mw.toolbar ) {
|
2015-09-14 18:46:13 +00:00
|
|
|
iconPath = mw.config.get( 'wgExtensionAssetsPath' ) + '/Math/images/';
|
2015-01-10 15:26:53 +00:00
|
|
|
mw.toolbar.addButton( {
|
|
|
|
imageFile: iconPath + 'button_math.png',
|
|
|
|
speedTip: mw.msg( 'math_tip' ),
|
|
|
|
tagOpen: '<math>',
|
|
|
|
tagClose: '</math>',
|
|
|
|
sampleText: mw.msg( 'math_sample' ),
|
|
|
|
imageId: 'mw-editbutton-math'
|
|
|
|
} );
|
|
|
|
}
|
|
|
|
}( mediaWiki ) );
|