mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-12 09:57:16 +00:00
40bb0c72b5
- Leaked globals - Strict comparison to 0, false and '' - Missing semicolon - Variable name collision - Minor improvements in caching (in a few places "var $that" cached $(this), but wasn't actually used) - Replace calls to deprecated $j with $ - Checking undefined by strictly comparing references instead of a string comparison and typeof (speed) (see bug 29106)
9 lines
180 B
JavaScript
9 lines
180 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Preview module
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Add preview module
|
|
$( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'preview' );
|
|
} );
|