mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Apply user preference 'editfont' to NWE
Expects I5f0433e9 in core Bug: T145016 Change-Id: I3b57d566d2846ea284e620d7335c4a3f62df518a
This commit is contained in:
parent
4fbe06a15c
commit
2ce9979d36
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
.ve-ui-mwDesktopWikitextSurface .ve-ce-documentNode {
|
||||
font-family: monospace;
|
||||
font-size: 13.3333px;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue