nextcloud-libraries / nextcloud-libraries/nextcloud-vue
[Bug] NcRichContenteditable moves cursor through the innerHTML incorrectly
Open
Nobody has claimed this yet.
1. to develop
browser: Firefox
browser: Safari
bug
feature: rich-contenteditable
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
if input is started or ended with embedded HTML (mention) "@Test01 anyword @Test01":
- 🐞 in FF cursor isn't moving to the very start or end with ⬅️ ➡️ keys (⬆️ ⬇️ are working)
- 🐞 in Safari cursor jumps to the very beginning
- ✅ in Chrome everything is fine
Originally posted by @Antreesy in https://github.com/nextcloud-libraries/nextcloud-vue/pull/6241#discussion_r1849897383
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 cursor behavior with content beginning or ending in an embedded mention. Compare left and right arrow movement in Firefox and Safari with Chrome as the reference, then verify that the cursor reaches the expected start and end positions without regressing vertical movement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100