iOS: Turn off autocorrect

Is it possible to turn off the default autocorrect behavior for iOS?

I don’t believe so, but if someone knows more about this feel free to chime in.

Is CodeMirror 6 not based on an underlying textarea or input tag?

It’s a contenteditable element.

Hm, it seems like setting autocorrect to “off” for contentDOM did the trick.

Ah, cool. Seems like the autocorrect attribute was never standardized but works at least in mobile Safari. You can use an extension like EditorView.contentAttributes({autocorrect: "off"}) to enable this in CM6.