Find traditional instrumental music
|
|
(25 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| var customizeToolbar = function() {
| |
|
| |
|
| $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
| |
| 'sections': {
| |
| 'emoticons': {
| |
| 'type': 'toolbar', // Can also be 'booklet'
| |
| 'label': 'Emoticons'
| |
| // or 'labelMsg': 'section-emoticons-label' for a localized label
| |
| }
| |
| }
| |
| } );
| |
| /* Your code goes here */
| |
|
| |
| };
| |
|
| |
| /* Check if we are in edit mode and the required modules are available and then customize the toolbar */
| |
| if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {
| |
| mw.loader.using( 'user.options', function () {
| |
| if ( mw.user.options.get('usebetatoolbar') ) {
| |
| mw.loader.using( 'ext.wikiEditor.toolbar', function () {
| |
| $(document).ready( customizeToolbar );
| |
| } );
| |
| }
| |
| } );
| |
| }
| |
Latest revision as of 13:25, 21 July 2022