15 lines
381 B
JavaScript
15 lines
381 B
JavaScript
( function ( mw ) {
|
|
var iconPath;
|
|
if ( mw.toolbar ) {
|
|
iconPath = mw.config.get( 'wgExtensionAssetsPath' ) + '/Math/images/';
|
|
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 ) );
|