Keeping autocorrect on in mobile Safari


#1

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!


#2

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.