software-mansion / software-mansion/react-native-enriched-html
[Feature Request] Add insertText(text) API to insert plain text at cursor
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 66
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 11
Description
EnrichedTextInput currently provides formatting commands (bold, image, mention, link, etc.), but there is no API to insert plain text at the current cursor position.
A simple method like:
insertText(text: string): void
would allow developers to implement common features such as inserting emoji (😄), autocomplete suggestions, custom keyboard input, and snippet insertion.
Using setValue() is not a solution because it breaks formatting, history, and cursor state.
This feature requires only minimal native changes and would greatly improve integration with custom input components.
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 EnrichedTextInput implementation and its native bridge or command entry points. Add the insertText(text: string): void API without using setValue(), then verify that plain text is inserted at the cursor while formatting, history, and cursor state remain intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100