Custom keyboard with editable UIWebView?

Can I use a custom keyboard with an editable UIWebView to edit rich text (by setting the inputView property, for example, in a UITextView)?

He tried to subclass UIWebView and set the inputView property for readwrite, but that doesn't seem to make any difference.

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

+4
source share
1 answer

it's a little too late, but since I spent 3 hours looking for a job, I thought I should share it with you.

You can use on the on-screen keyboard implemented using HTML5 and CSS, at this link: JS Based on the on-screen keyboard for the browser, for example, on mobile phones and tablets

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

I hope this helps you

0
source

Source: https://habr.com/ru/post/1393085/


All Articles