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:
Santhosh Thottingal
2013-05-29 15:23:34 +05:30
parent b9462e709f
commit 66e1fab8a8

View File

@@ -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;
}() )
} );