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.
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.