Content deleted Content added
←Created page with '→Math editor based on mathJax: function mathDialog(){ mw.loader.using(['jquery.ui.dialog','ext.math.mathjax.enabler'],function(){ var mathEditor=$('<div>'...' |
Amorymeltzer (talk | contribs) m Remove legacy globals per phab:T72470 (via WP:JWB) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1:
/* Math editor based on mathJax */
if ($.inArray(mw.config.get('wgAction'),['edit','submit'])!=-1) mw.loader.using(['ext.wikiEditor'],function(){
function mathDialog(){
mw.loader.using(['jquery.ui
var mathEditor=$('<div>');
var mathInput=$('<input>',{dir:'ltr'}).appendTo(mathEditor);
Line 10 ⟶ 13:
$(this).dialog('close');
},
'Help':function(){window.open(mw.util.
'Cancel': function(){ $(this).dialog('close');}
} });
Line 26 ⟶ 29:
});
}
$(function(){
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'insert',
Line 38 ⟶ 42:
}
} );
})
})
|