Content deleted Content added
No edit summary |
Amorymeltzer (talk | contribs) m Remove legacy globals per phab:T72470 (via WP:JWB) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1:
/* Math editor based on mathJax */
if ($.inArray(wgAction,['edit','submit'])!=-1) $(document).ready(function(){▼
▲if ($.inArray(mw.config.get('wgAction'),['edit','submit'])!=-1)
function mathDialog(){
mw.loader.using(['jquery.ui
var mathEditor=$('<div>');
var mathInput=$('<input>',{dir:'ltr'}).appendTo(mathEditor);
Line 11 ⟶ 13:
$(this).dialog('close');
},
'Help':function(){window.open(mw.util.
'Cancel': function(){ $(this).dialog('close');}
} });
Line 27 ⟶ 29:
});
}
$(function(){
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
Line 40 ⟶ 42:
}
} );
})
})
|