Skip to content

Adding inline items: No-break-space (+ No-break-hyphen) for correct responsive design #48177

Closed

Description

@burnuser

What problem does this address?

In responsive design we have no control about the position of line breaks in paragraphs. That's OK in most situations, but could be a big problem in situations with related terms like:

Price of 500,- $
=> Price of 500,-
$

WordPress Version 6.2
=> WordPress Version
6.2

Mr. Mullenweg
=> Mr.
Mullenweg

Duration: 20 seconds
=> Duration: 20
seconds

=> lacking information in the first line + starting information in the new line lacks context

What is your proposed solution?

Connecting what should not be separated is no miracle, as it is an HTML standard from start: Using "No-break-space" and (more rarely but also important) "No-break-hyphen"
I know, there are workarounds with some Plugins or inserting Unicode, but such a function is not a "nice to have", but viable to get correct Text-information in every case in responsive design!

If Gutenberg stands for all needed basic editing operations, it needs the possibility of inserting "No-break-space" and "No-break-hyphen" by default.
It can be positioned in block toolbar => "More" => ...

Activity

  1. added
    [Type] Enhancement
    [Type] Feature
    [Block] Paragraph
    on Feb 20, 2023
  2. mrfoxtalbot commented on Feb 20, 2023

    @mrfoxtalbot

    This is a good idea. I think we could easily add this to the "Options" dropdown, alongside inline code, and other inline styles.

    Screen Shot on 2023-02-20 at 11:37:03

  3. youknowriad commented on Oct 12, 2026

    @youknowriad
    Contributor

    Thanks for the detailed examples! Non-breaking spaces can now be inserted with Ctrl+Shift+Space (#43150, Option+Space on macOS), and #74040 makes them visible in the editor so they're easy to spot. A dedicated toolbar button was discussed in #31401 and closed as plugin territory, so I'm closing this one too. If the no-break hyphen comes up as a real need on its own, feel free to open a focused issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Paragraph[Type] Enhancement[Type] Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions