I would like to run the following code in a webView, so that the content is editable:
javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0
So far I have got as far as trying this:
- (void)webViewDidFinishLoad:(UIWebView *)webViews
{
NSString *string = @"javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0";
[webView stringByEvaluatingJavaScriptFromString:string];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]];
NSLog(@"finished load");
}
If you could tell me how to get this working that would be great.