• The site has now migrated to Xenforo 2. If you see any issues with the forum operation, please post them in the feedback thread.
  • Due to issues with external spam filters, QQ is currently unable to send any mail to Microsoft E-mail addresses. This includes any account at live.com, hotmail.com or msn.com. Signing up to the forum with one of these addresses will result in your verification E-mail never arriving. For best results, please use a different E-mail provider for your QQ address.
  • For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
  • Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
  • Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
  • The rules regarding NSFW links have been updated. See here for details.

'Default' size and font options in editor

macdjord

Well worn.
Joined
Feb 20, 2013
Messages
9,051
Likes received
38,956
In the Javascript editor, if a section of text is formatted with a custom font size or font family, there's no easy way to restore it to the default. None of the size options actually corresponds to the default text size*, nor do any of the font family options exactly match the default behaviour†. The only way to remove such formatting is to either select the affect text and hit the 'Remove formatting' button - which will also strip things like italics and text colour, which one might not want to remove - or to switch to BBCode mode and manually delete the offending [size] and [font] tags.

Contrast this with the text colour and background colour selections, both of which offer a 'no color' option which strips colour tags from the selected text.

I propose that an option named 'default' be added to the font size or font family dropdown lists which does the same thing: strip out any tags of the given type which affect the selected text.


* [size=3] sets the font size to 12 pixels, while [size=4] sets it to 15 pixels; meanwhile, the default font size, at least under the Blackend-Green site style, is 11 points, which is equal to 14.663 pixels.

† The default font family - again, under Blackend-Green - is 'Georgia, "Times New Roman", Times, serif', which means 'Use font "Georgia" if available, otherwise "Times New Roman", otherwise any "Times" font, otherwise any serif font'. None of the [font=] tags do this; they each only specify a single font with no backup.
 

Users who are viewing this thread

Back
Top