editablejs / editable

🌱 A collaborative rich-text editor framework that focuses on stability, controllability, extensibility, and performance. 一款强到离谱的富文本编辑器框架,专注于稳定性、可控性、扩展性和性能。
https://docs.editablejs.com
Apache License 2.0
1.8k stars 121 forks source link

Incorrect caret height in iOS when focus at the start of a middle line in a paragraph #81

Closed YaoKaiLun closed 1 year ago

YaoKaiLun commented 1 year ago

Description in iOS, when focus at the start of a middle line in a paragraph, the caret height was incorrect it acrossing two lines.

Recording

image image

Sandbox https://docs.editablejs.com/playground

Steps To reproduce the behavior:

  1. Go to https://docs.editablejs.com/playground
  2. Input a long paragraph to make multiple lines
  3. Focus at the start of a middle line in a paragraph
  4. See the incorrect caret

Expectation The caret height equal to height of one line.

Environment