Manually triggering the iPhone/iPad/iPod keyboard from JavaScript

后端 未结 7 1163
[愿得一人]
[愿得一人] 2020-11-28 12:34

I am developing an HTML code editor using simple DIV\'s and capturing events. When I use this on the iPad the keyboard never pops up since i\'m not technically in an editab

7条回答
  •  借酒劲吻你
    2020-11-28 13:08

    The answers to this questions suggest that it's not possible: Why doesn't @contenteditable work on the iPhone?

    A colleague of mine who was working on a similar project ended up using a textarea for the iPad version of his editor, and contenteditable divs/spans for browsers that support contenteditable. Perhaps something similar would work for you.

提交回复
热议问题