Autocapitalization with CodeMirror 6?

I’m using CodeMirror 6 for a Markdown editor and I’ve been looking how to enable autocapitalization for it. The CM5 option doesn’t seem to be available and setting autocapitalize=on on the div doesn’t work either.

Any idea if that can be done?

I think EditorView.contentAttributes.of({autocapitalize: "on"}) (as an extension when creating your initial state) should work.

1 Like

Yes that’s exactly it, many thanks for the help!