Merge "Don't assume action=edit/submit is the old wikitext editor"

This commit is contained in:
jenkins-bot 2017-08-28 10:44:40 +00:00 committed by Gerrit Code Review
commit 1e1a55600e

View file

@ -465,7 +465,7 @@
}
// If view is in edit mode, add the button to the toolbar.
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
if ( $( '#wpTextbox1' ).length ) {
// Check if the user is using the enhanced editing toolbar (supplied by the
// WikiEditor extension) or the default editing toolbar (supplied by core).
if ( wikiEditorToolbarEnabled ) {