mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-25 16:05:50 +00:00
23f94d5b6a
Declare that ext.math.editbutton.enabler depends on mediawiki.action.edit. Follow up to: I3d126c1c252c27fa65ab8fb42ffab66a2d99cfa8 Bug: 60471 Change-Id: Ibcda91bbb164b0b896d4c3f5f7c2c6ea6658468e
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
( function ( mw ) {
|
|
var 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 ) );
|