diff --git a/resources/ext.CodeMirror.less b/resources/ext.CodeMirror.less index 735dc08a..14d7593f 100644 --- a/resources/ext.CodeMirror.less +++ b/resources/ext.CodeMirror.less @@ -1,5 +1,15 @@ @import 'mediawiki.mixins'; +.mw-editfont-monospace, +.mw-editfont-sans-serif, +.mw-editfont-serif { + .CodeMirror { + // Don't let CodeMirror set the font to monospace if it's set on an ancestor. + // See T245568 + font-family: inherit; + } +} + .wikiEditor-ui .CodeMirror { line-height: 1.5em; padding: 0.1em;