sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.9k stars 1.12k forks source link

Single click on spacebar not working in mobile device #408

Open merbin2012 opened 8 years ago

merbin2012 commented 8 years ago

Codemirror editor not working properly while pressing the spacebar and when I start to type it will type in horizontal, Please download the following application you can find the option(Please don't miss understand me, i am not trying to spread spam) https://play.google.com/store/apps/details?id=com.HTML.AngularJS.Codeplay

WesCossick commented 8 years ago

You'll need to set up a JSFiddle to demonstrate any bugs you're experiencing.

merbin2012 commented 8 years ago

Please download the above app, and found out the error. The app was run over 5months but now only I found this error. Plzzzzzzzzzzzzz

WesCossick commented 8 years ago

Downloading an app does not help. For the community to be able to help, we'll need to be able to see the complete source code and run debug tools. That's why you must set up a JSFiddle.

If you're not willing to put forth effort yourself, others will not be either.

minlare commented 8 years ago

Using the default editors on https://simplemde.com/ with an android device running chrome, the bugs can be replicated. There is also another problem related to backspace deleting (held down).

It seems like the bugs (double spacebar, backspace deleting) can be fixed by disabling "predictive text on Android" http://www.pcadvisor.co.uk/how-to/google-android/how-turn-off-predictive-text-change-keyboard-settings-in-android-3601052/

This is a major breaking bug for Android rendering the editor unusable until this is fixed.

WesCossick commented 8 years ago

@minlare this sounds like a bug with CodeMirror, the project that powers much of SimpleMDE's editing capabilities.

ndw commented 7 years ago

This bug still seems to exist. Any progress or workarounds?

jeremyphilemon commented 7 years ago

Any update?

ndw commented 7 years ago

It sure would be nice to have this fixed. Is there a bounty program?

adamb70 commented 7 years ago

Downloading the latest development branch from this repo and building with the latest version of CodeMirror on npm (5.26.0) seems to have fixed this bug for me (Android 7.1.1), along with some other issues such as backspace not working as expected.

ncovercash commented 7 years ago

any update?

ndw commented 6 years ago

I can confirm that if you clone the repo and build it locally (I got codemirror@5.31.0), the spacebar problem is fixed and predictive text works fine. I'd never encountered the "backspace" problem that @minlare refers to, but I can confirm that if you lean on the backspace key, what appears to be deleted in the editing buffer is in fact persisted when you save the changes.

So a 1/2 fix, I guess. I can probably live with the backspace problem much more easily than the space problem.

Still, it'd be nice if these fixes would turn up on the CDN.

ndw commented 6 years ago

Oh. And on the iPad, there's still an awful issue with the capslock getting "stuck". It doesn't revert to lowercase after a letter is pressed. Ugh. But that looks like an iOS bug: https://github.com/codemirror/CodeMirror/issues/3403

Hawkers commented 6 years ago

What is the process to rebuild this repo locally with npm?

Edit: I ended up using a different fork which seems to have solved this issue: https://github.com/Ionaru/simplemde-markdown-editor