Implement mw.toolbar.addButtons
Example:
```
var skinPath;
if ( mw.toolbar ) {
skinPath = mw.config.get( 'stylepath' );
mw.toolbar.addButtons( [ {
imageFile: skinPath + '/common/images/button_bold.png',
speedTip: 'add foo tag',
tagOpen: '<foo>',
tagClose: '</foo>',
sampleText: 'foo here',
imageId: 'foo-id'
}, {
// ..
} ] );
mw.toolbar.addButtons( {
imageFile: skinPath + '/common/images/button_bold.png',
speedTip: 'add foo tag',
tagOpen: '<foo>',
tagClose: '</foo>',
sampleText: 'foo here',
imageId: 'foo-id'
}, {
// ..
} );
mw.toolbar.addButton( {
imageFile: skinPath + '/common/images/button_link.png',
speedTip: 'add baz tag',
tagOpen: '<baz>',
tagClose: '</baz>',
sampleText: 'baz here',
imageId: 'baz-id'
} );
mw.toolbar.addButton(
skinPath + '/common/images/button_link.png',
'add baz2 tag',
'<baz2>',
'</baz2>',
'baz2 here',
'baz2-id'
);
}
```
Clean up:
* Rename currentFocused to $currentFocused (we are using jQuery);
* Add missing dependency 'mediawiki.legacy.wikibits', since this
module uses the array window.mwCustomEditButtons.
Bug: 40518
Change-Id: I76d1f753cb9e1c119d9b5e7f565acd684f5516d1