software-mansion / software-mansion/react-native-enriched-html

[Feature Request] Delete function that can be triggered by ref

Open
#699 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.