MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 408: Line 408:
};
};


{{button}}
 


/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
Line 421: Line 421:
} );
} );
}
}
{{button}}
// Add the customizations to LiquidThreads' edit toolbar, if available
// Add the customizations to LiquidThreads' edit toolbar, if available
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );