Using CordeMirror in Android WebView, at the beginning of each line, press any character and automatically add a space after the character.

Using CordeMirror in Android WebView, at the beginning of each line, press any character and automatically add a space after the character. How to solve this problem?