software-mansion / software-mansion/react-native-enriched-html
[Feature Request] Delete function that can be triggered by ref
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 66
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 11
Description
Is it possible to have a delete function that can be triggered by ref?
My use case is i have a custom keyboard and let users insert inline images. The custom keyboard is a over keyboard view which covering the entire software keyboard. I would like to add a delete button in the custom keyboard, so that users no need to close the custom keyboard for the delete button on software keyboard.
Delete function:
- can be triggered by ref
- after triggering, delete the character/inline image based on cursor selection (same as what software keyboard does)
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 locating the ref-exposed editor API and the existing selection and deletion handling used by the text input. Determine how a ref-triggered action can use the current cursor selection for both characters and inline images. Done means a custom keyboard can trigger deletion without closing the software keyboard, with behavior matching the software keyboard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100