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’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.
Yes that’s exactly it, many thanks for the help!