Jump to content

Topic on Talk:JQuery

jQuery doesn't show in preview wikitext

1
Summary by Krinkle

jQuery is loaded by default now. This enabling is no longer needed.

AmazingTrans (talkcontribs)

I have MW 1.25.1 with Vector skins.

I have added the following in the bottom of localsettings.php. then i ran one of the jquery.makeCollapsible to test it out, but it doesn't seems to run anything in preview. Is this normal?

Also, how do i add jquery functions in visualeditor? is that possible?

// Include jQuery

function wfIncludeJQuery() {

       

global $wgOut;

       

$wgOut->includeJQuery();

}

$wgExtensionFunctions[] = 'wfIncludeJQuery';