I'm trying to load a local editable html
file onto a WKWebview
. WKWebview
successfully loads the html
file. However, when I start typing into the editable html
file, a dark border like view appears around the typed text. This issue is not reproducible on iOS12.
(void)viewDidLoad
{
[super viewDidLoad];
NSBundle *bundle = [NSBundle mainBundle];
NSURL *indexFileURL = [bundle URLForResource:@"index" withExtension:@"html"];
[self.wkWebView loadRequest:[NSURLRequest requestWithURL:indexFileURL]];
}
index.html:
<html>
<body>
<div id="content" contenteditable="true" style="font-family: Helvetica"> Type here </div>
</body>
<html>