portabletext / portabletext/editor
Make soft-hyphen and non-breaking space visible
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 21
- Avg merge
- 14h 23m
- Merged PRs (30d)
- 133
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the editor's text-rendering and toolbar entry points to determine how invisible characters are represented and inserted. Confirm the expected behavior for soft hyphens and non-breaking spaces, including visible markers and a toolbar action, then verify both behaviors in the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100