<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebEditingDelegate/webViewDidBeginEditing(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebEditingDelegate(im)webViewDidBeginEditing:"
  },
  "title" : "webViewDidBeginEditing(_:)"
}
-->

# webViewDidBeginEditing(_:)

Sent by the default notification center when the user begins editing the web view.

```
optional func webViewDidBeginEditing(_ notification: Notification!)
```

## Parameters

`notification`

Always set to [`WebViewDidBeginEditingNotification`](/documentation/WebKit/WebViewDidBeginEditingNotification). You can retrieve the `WebView` object by sending `object` to `notification`.

## See Also

[`webView(_:shouldBeginEditingIn:)`](/documentation/WebKit/WebEditingDelegate/webView(_:shouldBeginEditingIn:))

Returns whether the user is allowed to edit a range of content in a web view.

[`webViewDidEndEditing(_:)`](/documentation/WebKit/WebEditingDelegate/webViewDidEndEditing(_:))

Sent by the default notification center when the user stops editing the web view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)