mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
Merge "Don't assume action=edit/submit is the old wikitext editor"
This commit is contained in:
commit
1e1a55600e
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue