mediawiki-extensions-Math/modules/ext.math.editbutton.js

15 lines
381 B
JavaScript
Raw Normal View History

( 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 ) );