适用于iPad的解决方案 [英] workaround for contenteditable on iPad

查看:185
本文介绍了适用于iPad的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用TinyMce的Web应用程序,允许进行富文本编辑。我的一些客户急于让它在iPad上工作(它不支持contenteditable,因此TinyMce不起作用)

I have a web application that uses TinyMce to allow rich text editing. Some of my customers are desperate to get it to work on iPad (which doesn't support contenteditable and therefore TinyMce doesn't work)

目前唯一的选择我有:


  • 当我检测到浏览器是iPad时,禁止进行富文本编辑。这不是一个解决方案,因为我的应用程序在很大程度上依赖于富文本编辑

  • 等待iPad支持contentEditable

  • 编写我自己的iPad应用程序。这不是真的可行,因为它是一个带有大量HTML和javascript的大型复杂应用程序,我必须重写所有

  • 使用其他浏览器。据我所知,其他浏览器都没有支持contenteditable。

  • Disallow rich text editing when i detect the browser is iPad. This is not much of a solution because my app relies heavily on rich text editing
  • Wait for iPad to support contentEditable
  • Write my own iPad app. This isn't really workable because it's a big complex app with loads of HTML and javascript and I would have to rewrite it all
  • Use another browser. As far as I know none of the other browsers support contenteditable either.

我真的很想找到一些可行的解决方案。有没有富文本编辑器这样的东西,不需要满足?或者有没有人有一个我没想过的聪明主意?

I'm really keen to find some workable solution. is there such thing as a rich text editor that doesn't require contenteditable? or does anyone have a clever idea I hadn't thought of?

提前致谢

Andy

推荐答案

截至2011年6月,看起来iOS 5中可能会有支持

As of June 2011, it looks like there may be support coming in iOS 5

http://www.tuaw.com/2011/06/08/will-ios-5s-safari-deliver-better-support-for-web-editors/

这个观察结果(它在测试版中工作)也得到了我的一位同事的证实。

this observation (that it's working in the beta) has been confirmed by a colleague of mine too.

这篇关于适用于iPad的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆