Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to activate spellchecking for a contentEditable div in a UIWebView?

Tags:

ios

uiwebview

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];

Is it possible to get them?

like image 474
mxcl Avatar asked Oct 28 '11 09:10

mxcl


1 Answers

There are some HTML tag properties available by Apple Safari Guidelines

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.

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.

Hope this might be useful to you.

like image 177
Mrunal Avatar answered Oct 12 '22 23:10

Mrunal