iPad 上可编辑内容的解决方法

发布于 2024-09-24 15:42:20 字数 446 浏览 9 评论 0原文

我有一个使用 TinyMce 来允许富文本编辑的 Web 应用程序。我的一些客户迫切希望让它在 iPad 上运行(iPad 不支持内容编辑,因此 TinyMce 不起作用)

目前我唯一的选择是:

  • 当我检测到浏览器是 iPad 时,禁止富文本编辑。这不是一个解决方案,因为我的应用程序严重依赖富文本编辑
  • 等待iPad支持contentEditable
  • 编写我自己的iPad应用程序。这实际上并不可行,因为它是一个大型复杂的应用程序,带有大量 HTML 和 javascript,我必须
  • 使用另一个浏览器重写它。据我所知,其他浏览器也不支持 contenteditable。

我真的很想找到一些可行的解决方案。有没有不需要 contenteditable 的富文本编辑器?或者有人有我没有想到的聪明主意吗?

预先感谢

安迪

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)

At the moment the only choices I have are:

  • 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?

Thanks in advance

Andy

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

小梨窩很甜 2024-10-01 15:42:20

截至 2011 年 6 月,iOS 5 可能会提供支持

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

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

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.

彼岸花ソ最美的依靠 2024-10-01 15:42:20

编写我自己的 iPad 应用程序。这不是
确实可行,因为它很大
包含大量 HTML 和
javascript,我必须重写
这一切

都不一定是真的。您可以将 Web 应用程序的工作部分嵌入到 UIWebView 组件中,该组件基本上是嵌入到您的应用程序中的 Safari,并处理应用程序中的不工作部分(提供内容)。这肯定需要做一些工作,但可能比为 iPad 重写整个应用程序要少得多。

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

Not necessarily true. You can embed the working part of your web app in a UIWebView component, which is basically Safari embedded in your app, and handle the not working part in the app (providing content). It would require work for sure, but maybe a lot less than rewriting the whole app for iPad.

一曲琵琶半遮面シ 2024-10-01 15:42:20

目前 ipad 上还没有支持 RTE 的浏览器。实际上,只有一款手机为 RTE 提供完整的浏览器支持(抱歉,我忘记了手机的名称)。
因此,我认为您几乎自己展示了所有可能的解决方案(jv42的建议除外)。

At to this point there are no browsers on the ipad that will allow RTE. Actually there is only one phone giving full browser support for RTE (sry, i forgot the name of the phone).
Therefor, i think you almost showed all possible solutions (jv42's suggestion excluded) yourselve.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文