Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A whitespace is automatically added if caret is at leftmost and I press a key, browser is Android Webview #7098

Open
reemrizzk opened this issue May 20, 2024 · 0 comments

Comments

@reemrizzk
Copy link

reemrizzk commented May 20, 2024

Hello
I am using codemirror version 5.56.16
Inside Android webView I am running a HTML file with CodeMirror for syntax highlighting.
There is a bug,
when the caret is at leftmost of a new line, and I press a key (for example letter A), the letter I pressed is added to the textarea but then a whitespace is also automatically added at the line, and if I press a backspace when the caret is at leftmost of a new line, a whitespace is also automatically added and I cant erase the line.
This issue only happened inside Android webView, didn't happen inside chrome and other browsers.
I tried setting smartIndent to false but the issue wasn't resolved.
here is my initialization code:

editor = CodeMirror.fromTextArea(document.getElementById("code"), {
				  mode : language,
				  autoRefresh: true,
				  lineWrapping: true,
				  lineNumbers: true,
				  theme: theme
				});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant