# 富文本编辑器破坏了 Apple 平台上的文本替换功能

**URL:** https://meta.discourse.org/t/rich-text-editor-breaks-text-replacement-feature-on-apple-platforms/378316
**Category:** Bug
**Tags:** composer
**Created:** [2025年八月12日 17:59 UTC](https://meta.discourse.org/t/rich-text-editor-breaks-text-replacement-feature-on-apple-platforms/378316 "2025-08-12T17:59:03Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [2025年八月13日 00:24 UTC](https://meta.discourse.org/t/rich-text-editor-breaks-text-replacement-feature-on-apple-platforms/378316/7 "2025-08-13T00:24:50Z")

</div>

> [@sam](#):
>
> `<a>apple</a>`
> 
> 在 RTE 中会导致 `apple`（不是链接）

我觉得这像是一个 bug，可能在我们粘贴到选区上方时创建链接的逻辑中。我会看看。

iOS 文本替换可能与 Android 的 IME 类似，会绕过通常预期的文本插入事件。我不确定，但这似乎是另一个问题。

这些不一致的出现并非不可能由运行时错误引起。我这周会尝试重现它。

---

_[View the full topic](https://meta.discourse.org/t/rich-text-editor-breaks-text-replacement-feature-on-apple-platforms/378316)._
