UIWebView Paste action add font tag to my html

In my application, I have a contentEditable UIWebView. When I use copy: and then paste: functions and examine the generated html, I see that the paste code is displayed in the "font" tag, which changes the look of the page.

For example: I copy the h1 tag with some text, when I paste it and look through the html, I see that this h1 tag is pasted into the "font" tag that uses "Times", and it changes to "3" ,.

I looked at the UIP archive, but the code inside it is correct.

How can I solve my problem? Please, this is very important.

Greetings

+4
source share
1 answer

This is a bug in the UIWebView . If your contenteditable element does not have the specified font-size style, the content is inserted correctly.

+3
source

All Articles