完全双向(RTL)支持
作者: Nirlah创建于 2022年7月7日更新于 2026年9月2日
标签enhancementcoretext direction
以下是双向编辑面板的简要概述,以及我对改进 Lexical 实现的建议。 (续自 Discord 讨论)
概述
现代编辑面板的默认行为是根据第一个字母的语言设置方向,以支持双向内容。这可以在当前的 Lexical 实现、Apple Notes、Gmail 和 Google Docs 中看到:
https://user-images.githubusercontent.com/1909713/177728347-054678d1-cf3e-47d5-817e-c5041ff144ef.mp4
内容来源: facebook/lexical