how can I disable copy and paste in WKWebView?
I have tried overriding the method canPerformAction which is working well in UIWebView, but it does not work on WKWebView
override func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool {
if action == Selector("copy:") || action == Selector("cut:") || action == Selector("paste:") {
return false
}
return super.canPerformAction(action, withSender: sender)
}Thanks in advance