Constructor examples with extensions

Several examples show EditorView as taking extensions in its top-level config, such as this one:
And the front page example:

However, the reference shows extensions in the state:
And the EditorView reference doesn’t mention extensions, I believe.

Are those first two examples just outdated, or are both options?
I can send PRs to update if that’s helpful.

Both styles work—the one where state options are passed directly to EditorView was only recently added (in release 6.0), so not all code uses it. I’ll update the reference guide example.