mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Follow-up I9547dfd: Only enable VE tabs if VE is available
Otherwise VE is launched on namespaces where it is disabled (but NWE is enabled). Bug: T147890 Change-Id: I62f4ff96b991553a4eb0be9efb2e84bc80ca2bb4
This commit is contained in:
parent
00af103293
commit
4fc2904a87
|
@ -970,7 +970,7 @@
|
|||
if ( !conf.singleEditTab || tabPreference === 'multi-tab' ) {
|
||||
// … set the skin up with both tabs and both section edit links.
|
||||
init.setupSkin();
|
||||
} else if ( pageCanLoadVE && onlyTabIsVE ) {
|
||||
} else if ( init.isVisualAvailable && pageCanLoadVE && onlyTabIsVE ) {
|
||||
// … on single-edit-tab wikis, where VE is the user's preferred editor
|
||||
// Handle section edit link clicks
|
||||
$( '.mw-editsection a' ).on( 'click', function ( e ) {
|
||||
|
|
Loading…
Reference in a new issue