webView(_:shouldBeginEditingIn:)
Returns whether the user is allowed to edit a range of content in a web view.
Declaration
optional func webView(_ webView: WebView!, shouldBeginEditingIn range: DOMRange!) -> BoolParameters
- webView:
The web view that the user is editing.
- range:
The section of the begin-editing request; used to determine if editing is allowed. Typically,
rangeis not the current selection but may becomes the current selection if this method returns True.
Return Value
true if the user is allowed to edit webView; otherwise, false.
Discussion
This method is invoked when a web view attempts to become the first responder or when the user drops an object on it.