1. 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.
    Dismiss Notice
  2. 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.
    Dismiss Notice
  3. 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.
    Dismiss Notice
  4. If you wish to change your username, please ask via conversation to tehelgee instead of asking via my profile. I'd like to not clutter it up with such requests.
    Dismiss Notice
  5. Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
    Dismiss Notice
  6. A note about the current Ukraine situation: Discussion of it is still prohibited as per Rule 8
    Dismiss Notice
  7. The rules regarding NSFW links have been updated. See here for details.
    Dismiss Notice
  8. The testbed for the QQ XF2 transition is now publicly available. Please see more information here.
    Dismiss Notice

'Default' size and font options in editor

Discussion in 'Suggestions & Bugs' started by macdjord, Jun 19, 2021.

  1. macdjord

    macdjord Well worn.

    Joined:
    Feb 20, 2013
    Messages:
    8,809
    Likes Received:
    36,519
    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.
     
    MissileTeatime likes this.