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

[Feature Request] Add insertText(text) API to insert plain text at cursor

Open
#255 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.