Exclude does not apply if the editfont preference is default
'editfont' == 'default' means 'Browser default' font setting. We can apply webfonts there. Change-Id: Iff522e0016d8284dc785580e6eb3dd2967c58289
This commit is contained in:
@@ -70,12 +70,11 @@
|
||||
return font;
|
||||
},
|
||||
exclude: ( function () {
|
||||
if ( mw.user.options.get( 'editfont' ) ) {
|
||||
if ( mw.user.options.get( 'editfont' ) !== 'default' ) {
|
||||
// Exclude textboxes from webfonts if user has edit area font option
|
||||
// set using 'Preferences' page
|
||||
return 'textarea';
|
||||
}
|
||||
|
||||
return $.fn.webfonts.defaults.exclude;
|
||||
}() )
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user