Remove unnecessary $() callback

The hook 'wikiEditor.toolbarReady' gets fired after DOM ready.

Change-Id: Ic503c3dffcaa4301b3a3b2ab95fd3a5b4f8e7e88
This commit is contained in:
Fomafix 2023-10-10 05:25:31 +00:00
parent 5d0eaf7430
commit 87beb87ea5

View file

@ -8,7 +8,7 @@
* @author Jon Harald Søby
*/
$( function () {
( function () {
mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) {
/* Add the <ref></ref> button to the toolbar */
$textarea.wikiEditor( 'addToToolbar', {