mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-25 00:37:23 +00:00
bddd21b300
* Added closures for jQuery where missing. * Added closures for mediaWiki where missing. * Using ready( $ ) where possible. * Removed empty CSS block. Change-Id: Ifdd4b10063221a4967d812eafd43858623ec5d28
8 lines
188 B
JavaScript
8 lines
188 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Preview module
|
|
*/
|
|
jQuery( document ).ready( function ( $ ) {
|
|
// Add preview module
|
|
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'preview' );
|
|
} );
|