Custom keyboard with editable UIWebView?

1.8k views Asked by At

Is is possible to use a custom keyboard with editable UIWebView for rich text editing (by setting inputView property, like on UITextView)?

It tried subclassing UIWebView and setting the inputView property to readwrite, but this doesn't seem to make any difference.

Note that this applies to editable WebView content (having HTML attribute contentEditable="true"), not HTML input fields.

1

There are 1 answers

0
Mahmoud Fayez On

it is a little bit too late but as I spent 3 hours looking for a work around I thought that I should share it with you.

You can use on screen keyboard implemented using HTML5 and CSS follow this link: JS Based on-screen keyboard for browser, like on cellphones and tablets

you can inject the code into the page using stringByEvaluatingJavaScriptFromString when the UIWebViewDelegate calls the webViewDidFinishLoad

I hope that helps you