javascript - Why does CodeMirror not work on Ipad? - Stack Overflow

Greetings,.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it f

Greetings,

.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it for an app. My question is not only why does it not work, but how should I go about analyzing things that break on Ipad Safari ?

T.

Greetings,

http://marijn.haverbeke.nl/codemirror/jstest.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it for an app. My question is not only why does it not work, but how should I go about analyzing things that break on Ipad Safari ?

T.

Share Improve this question asked May 18, 2010 at 17:13 tomdemuyttomdemuyt 4,5922 gold badges34 silver badges62 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 6

CodeMirror2 works mostly fine on an iPad;

You can add text, remove text and move the cursor around. You can however not hilite words and cut / copy / paste (as of today 2012-06-27).

The editor in CodeMirror is actually an iframe, and not a native text input form element. The problem here I suspect is that the browser on the iPad does not know if the keyboard should be activated because some DOM element has key events bound to it.

To do that, Safari would have to analyze the source code to deduce key bindings and when should the keyboard be activated - which sound hugely problematic to me.

perhaps it used an iframe in the past, but I have codemirror on my website now and I see no iframes at all contained inside it.

this is almost one year later though, so perhaps now the situation has changed.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745066512a4609285.html

相关推荐

  • javascript - Why does CodeMirror not work on Ipad? - Stack Overflow

    Greetings,.html works on Safari on PC, but not on an Ipad. Which is a shame, since I wanted to use it f

    17小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信