WGEditor-mobile icon indicating copy to clipboard operation
WGEditor-mobile copied to clipboard

首次进入webview自动唤醒键盘方法

Open teaold opened this issue 6 years ago • 0 comments

刚好有需求,看到你的项目,这个问题可以这样设置: 1设置属性: _webView.keyboardDisplayRequiresUserAction = NO; 2,在webViewDidFinishLoad方法设置自动获取光标: [self.webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('article_content').focus()"];

teaold avatar May 04 '18 09:05 teaold