MediaWiki:Gadget-oldeditor.js: Difference between revisions
Content deleted Content added
m Clean up |
only fix it, if your browser supports VE to begin with |
||
Line 14:
mw.loader.using('ext.visualEditor.viewPageTarget.init', function () {
// Kill the tab
var caEdit = $('#ca-
.text(caEdit.text())
.attr('title', caEdit.attr('title')); $('#ca-edit').remove();
$('#ca-editsource').attr('id', 'ca-edit');
// Kill the section edit links
$('.mw-editsection-link-secondary')
.text( $('.mw-editsection-link-primary').eq(0).text() )
.off('focus blur');
$('.mw-editsection-divider, .mw-editsection-link-primary').remove();
$('.mw-editsection-bracket:not(:first-of-type):not(:last-of-type)').remove();
$('.mw-editsection-bracket, .mw-editsection-link-secondary').css('visibility', '');
$('h1, h2, h3, h4, h5, h6').off('mouseenter mouseleave');
}
});
}
|