WKWebView:如何禁用MACOS上的数据检测和自动链接检测?
这里的关键是 macos ,而不是iOS。
数据检测可以通过
背景:
我有一个wkwebview
嵌入在MacOS应用中,该应用显示可满足的Div。我想防止自动检测到链接为用户类型,并变成超链接。
The key here is macOS, not iOS.
Data detection can easily be disabled on iOS via WKWebViewConfiguration.dataDetectorTypes, but this property is not available on macOS.
Background:
I have a WKWebView
embedded in a macOS app that shows a contenteditable DIV. I would like to prevent that links are automatically detected as the user types and turned into hyperlinks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论