[Feature Request] Add insertText(text) API to insert plain text at cursor
维护者通常 2 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react-native
- 领域
- mobile
调研方向
首先定位 EnrichedTextInput 的实现及其原生桥接或命令入口点。在不使用 setValue() 的情况下添加 insertText(text: string): void API,然后验证纯文本会插入光标位置,同时保持格式、历史记录和光标状态不变。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C
- 星标
- 1.4k
- 派生
- 68
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
software-mansion/react-native-enriched-html 的其他 Issue
-
HIGH level tiptap package advisory可能已有人在做 @hejsztynx 于 17 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
software-mansion/react-native-enriched-html#802 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
software-mansion/react-native-enriched-html#803 ·
维护者通常 2 天内回复
-
Text immediately before an `<img>` sometimes fails to repaint on iOS after a screen revisit (`EnrichedText`)可能已有人在做 @hejsztynx 于 17 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 38/100
software-mansion/react-native-enriched-html#798 · 4 条评论 ·
维护者通常 2 天内回复
-
<img> wider than its rendering column fails to paint on Android — silently in isolation, with an "invalid measurement" error alongside any other text (not a decode-timing race)可能已有人在做 @hejsztynx 于 15 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 55/100
software-mansion/react-native-enriched-html#797 · 2 条评论 ·
维护者通常 2 天内回复
-
[Android] Native undo restores text but silently strips inline styles, links, and list structure未关闭
难度 5/5 一周以上 新手友好度 35/100
software-mansion/react-native-enriched-html#749 ·
维护者通常 2 天内回复
查看 software-mansion/react-native-enriched-html 的全部 Issue
相似的 Issue
-
IO.get_env on Node truncates names at embedded NUL可能已有人在做 @Yi-111-a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
HigherOrderCO/Bend#1449 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
FujiNetWIFI/fujinet-firmware#1872 ·
维护者通常 1 天内回复
-
bug C/C++ code
难度 2/5 1-3 小时 新手友好度 70/100
webarkit/WebARKitLib#84 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
OpenPrinting/cups#1751 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
obsproject/obs-studio#14013 ·
维护者通常 1 天内回复