Apply user preference 'editfont' to NWE

Expects I5f0433e9 in core

Bug: T145016
Change-Id: I3b57d566d2846ea284e620d7335c4a3f62df518a
This commit is contained in:
Ed Sanders 2016-09-07 14:45:59 -07:00 committed by Alex Monk
parent 4fbe06a15c
commit 2ce9979d36
2 changed files with 6 additions and 2 deletions

View file

@ -6,7 +6,6 @@
*/
.ve-ui-mwDesktopWikitextSurface .ve-ce-documentNode {
font-family: monospace;
font-size: 13.3333px;
}

View file

@ -20,7 +20,12 @@ ve.ui.MWDesktopWikitextSurface = function VeUiMWDesktopWikitextSurface() {
ve.ui.MWDesktopWikitextSurface.super.apply( this, arguments );
// Initialization
this.$element.addClass( 've-ui-mwDesktopWikitextSurface' );
// The following classes can be used here:
// * mw-editfont-default
// * mw-editfont-monospace
// * mw-editfont-sans-serif
// * mw-editfont-serif
this.$element.addClass( 've-ui-mwDesktopWikitextSurface mw-editfont-' + mw.user.options.get( 'editfont' ) );
};
/* Inheritance */