Keeping autocorrect on in mobile Safari

Hi there,

I’m using SimpleMDE, which is based on CodeMirror. For mobile use, I’d like to have autocorrect and autocapitalization remain on. I was wondering what should be modified in the source to enable this?

I have tried setting autocorrect=“on” on line 117 of src/input/input.js, but to no avail.

Thank you!

This isn’t possible with CodeMirror’s current architecture. These iOS features only work if the browser is given full control over typing, whereas CodeMirror handles events and updates the DOM itself.

For clarity, what then does the autocorrect (boolean) option do in the editor configuration (https://codemirror.net/doc/manual.html)?

That only has effect with inputStyle: "contenteditable"