如何在UIWebView中为contentEditable div激活拼写检查? [英] How to activate spellchecking for a contentEditable div in a UIWebView?

查看:234
本文介绍了如何在UIWebView中为contentEditable div激活拼写检查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIWebView(iOS 5.0)不会为此显示红色波浪状的拼写更正下划线:

UIWebView (iOS 5.0) does not show the red-squiggly spelling correction underlines for this:

id html= @"<div spellcheck=\"true\" contenteditable=\"true\"></div>"
[webView loadHTMLString:html baseURL:nil];

有可能得到它们吗?

推荐答案

自动完成: 如果禁用,则禁用输入元素的自动完成;如果选中,则激活元素的自动完成. 相关标签 输入" 可用性 在Safari 1.0及更高版本中可用.在iOS 1.1.1和更高版本中可用.

autocomplete: If off, deactivates automatic completion for an input element; If on, activates automatic completion for the element. Related Tags "input" Availability Available in Safari 1.0 and later. Available in iOS 1.1.1 and later.

自动更正:如果未选中,则停用表单或输入元素的自动更正;如果选中,则激活该元素的自动校正. 可用性在iOS 1.1.1和更高版本中可用.

autocorrect: If off, deactivates automatic correction for a form or input element; If on, activates automatic correction for the element. Availability Available in iOS 1.1.1 and later.

希望这对您可能有用.

这篇关于如何在UIWebView中为contentEditable div激活拼写检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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