User:ערן/mathjaxdialog.js: Difference between revisions

Content deleted Content added
Maintenance: Replace use of deprecated ext.wikiEditor modules phab:T165112
m Remove legacy globals per phab:T72470 (via WP:JWB)
 
(One intermediate revision by one other user not shown)
Line 2:
 
 
if ($.inArray(mw.config.get('wgAction'),['edit','submit'])!=-1) mw.loader.using(['ext.wikiEditor'],function(){
function mathDialog(){
mw.loader.using(['jquery.ui.dialog','ext.math.mathjax.enabler'],function(){
var mathEditor=$('<div>');
var mathInput=$('<input>',{dir:'ltr'}).appendTo(mathEditor);