nextcloud-libraries / nextcloud-libraries/nextcloud-vue
[NcRichContentEditable] Browser formatting shortcuts format the input field content but not the value
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
Web-browsers (at least chromium-based) have formatting shortcuts like Ctrl+B (for unknown reasons).
This formatting changes HTML content but doesn't change the actual NcRickContenteditable value.
Proposals:
- Simple - block these shortcuts to not confuse users
- Simple + MD support — handle shortcuts to add markdown formatting (like in GitHub)
- Complex - parse HTML formatting. This would allow pasting more complex formatted text but probably has a huge list of edge cases
Originally from https://github.com/nextcloud/talk-desktop/issues/907
Contributor guide
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 at the NcRichContentEditable component and reproduce the Ctrl+B behavior in a Chromium-based browser. Compare the rendered HTML with the component value, then determine which of the three proposed behaviors the project wants; the issue is done when formatting shortcuts no longer leave the displayed content and value inconsistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100