【问题标题】:How to disable spell check for a contenteditable div in a UIWebView?如何在 UIWebView 中禁用 contenteditable div 的拼写检查?
【发布时间】:2012-04-03 17:49:13
【问题描述】:

我在 UIWebView 中有一个 contentEditable div。我想禁用拼写检查功能。

UIWebView 中有 API 吗?

谢谢。

【问题讨论】:

    标签: iphone ios ipad uiwebview contenteditable


    【解决方案1】:

    对我来说这是可行的:

    <div autocomplete="off" autocorrect="off" contenteditable="true" />
    

    【讨论】:

      【解决方案2】:

      【讨论】:

      • 实际上是否有人成功禁用了 contentEditable div 的检查器?我看到这种方法适用于文本输入,但我不同意这个答案。我认为这是 Safari 移动版(从 iOS 6 开始)的一个错误(或尚未实现的功能)。
      • 这不适用于 safari mobile。有人用 jQuery 或 javascript 解决了这个问题吗??
      • 我对这个答案投了反对票,因为这个问题专门针对 contenteditable 元素,而这个答案是关于输入和文本区域的。
      【解决方案3】:

      你试过了吗?

      <div autocorrect="false" contenteditable="true"></div>
      

      【讨论】:

        猜你喜欢
        • 2011-12-17
        • 1970-01-01
        • 2014-02-03
        • 2023-01-08
        • 2016-06-30
        • 2016-09-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多