Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.45k stars 319 forks source link

Keyboard word suggestion not working on iphone xs (Safari and Firefox) #113

Open Oliv95 opened 5 years ago

Oliv95 commented 5 years ago

Describe the bug When clicking on the word suggested by the keyboard in does not enter the word into the editor. I have tested it on both firefox and safari on my iPhone and it fails on both but on my Samsung it works perfectly.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codepen.io/oliv95/pen/qBWqRdv
  2. Type some text
  3. Click on one of the suggested words
  4. Word is not entered into the editor

Expected behavior Keyboard suggested word feature should enter the clicked word into the editor

Screenshots In the screenshots I selected 'the' on iOS and 'again' on Android

android1 android2 iOS1 iOS2

Version information

Additional context I have tested in on a Samsung 8A with firefox and it works as is shown in the screenshots

Ionaru commented 5 years ago

Unfortunately I don't own any iOS devices so won't be able to debug this. If anyone with an iPhone would be able to help that would be very much appreciated.

Oliv95 commented 5 years ago

If I get time left hover I might take a look but hopefully some kind soul with an iOS device can save me :)

Oliv95 commented 5 years ago

This might be the cause of it and would be solved when codemirror 6 is released https://github.com/codemirror/CodeMirror/issues/3690

slykar commented 3 years ago

I did a comparisons between CodeMirror 5 and 6 on my iPhone and the keyboard suggestions work fine with v6. With v5 it's just a mess.