Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make soft-hyphen and non-breaking space visible #106

Open
mariusGundersen opened this issue Aug 7, 2024 · 2 comments
Open

Make soft-hyphen and non-breaking space visible #106

mariusGundersen opened this issue Aug 7, 2024 · 2 comments

Comments

@mariusGundersen
Copy link

We want to make it clear to editors where text contains soft-hyphens and non-breaking spaces. In many other editors this is done by rendering a vertical line where the invisible character is. I don't see any way that I can customize the rendering of the text in the editor, to make it visible. It would also be great if there was a way to add a button to the toolbar to insert this character, or else the editor would have to copy it from for example wikipedia.

See https://en.wikipedia.org/wiki/Soft_hyphen and https://en.wikipedia.org/wiki/Non-breaking_space

@christianhg
Copy link
Collaborator

christianhg commented Aug 7, 2024

Hi 👋

I like these ideas.

So basically:

  1. A way to show invisible characters and
  2. First-class support for building a symbol picker

Did I understand correctly?

@mariusGundersen
Copy link
Author

yes, that would cover it. I guess a more generic solution would be a way to customize the way text is rendered, someway to map a string into a react component. That way I could replace &nbsp; with <NBSP /> or something similar. But maybe that is difficult to do and keep the text input?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants