software-mansion/react-native-enriched

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

開放

#255 建立於 2025年11月17日

 (2 則留言) (3 個反應) (0 位負責人)C (45 個分叉)auto 404
enhancementgood first issue

倉庫指標

星標
 (1,246 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南