jakiestfu / jakiestfu/Medium.js
What methods are available to control the Cursor / Caret?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
Could you clarify for me what methods are actually available to control the caret or cursor position?
For instance, I thought i could use medium.cursor.moveCursorToEnd() but that throws errors.
My personal needs are to be able to place the caret at the very beginning or at the very end of the editable zone, after an ajax update of the html content.
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 with the public cursor API, especially medium.cursor.moveCursorToEnd(), and compare it with caret behavior after an AJAX HTML update. Done when the available methods and a supported way to place the caret at the beginning or end of the editable zone are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100