mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 23:46:39 +00:00
fe3165faff
Also adds the corrections made to various js files when jscs was run, and removes an old version of .jshintrc. Only VisualEditor files are checked by csshint due to clashes with an upstream bug in the csslint parser. This could be looked into in the future. Bug: T112576 Change-Id: I611901040d3b38ae3ef707deb8d25771f043b1d8
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 ) );
|