webView(_:shouldDelete:)
Returns whether the user should be allowed to delete a range of content.
Declaration
optional func webView(_ webView: WebView!, shouldDelete range: DOMRange!) -> BoolParameters
- webView:
The web view that the user is editing.
- range:
The range of the content to delete.
Return Value
true if the user should be allowed to delete the content specified by range; otherwise, false.
Discussion
This method may perform an alternate action—for example, delete a different range—and return false.