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

Accented "A" appearing at the end of cursor #91

Closed dististik closed 5 years ago

dististik commented 5 years ago

Describe the bug An accented A is appended to the end of the cursor in the text area and on blank lines when using EasyMDE in Chrome and NW.js.

To Reproduce Steps to reproduce the behavior:

  1. Download EasyMDE's CSS and JavaScript files from UNPKG CDN.
  2. Link the stylesheet and script to an HTML file from a local directory.
  3. Load EasyMDE onto a textarea with all of the default settings.
  4. Open the HTML file in Chrome.
  5. Click in the text area.

Expected behavior The cursor should just be a blinking line.

Screenshots The cursor has an accented A appended to it.

Example:

Version information

Additional context I also have the multilingual IME for Japanese installed on this machine, although I'm not sure if that would effect anything in this problem when typing in English.

Ionaru commented 5 years ago

This is caused by a wrong charset on your webpage. Try adding this in the <head>:

<meta charset="UTF-8">
dististik commented 5 years ago

Oh goodness, this is a silly mistake on my behalf. Thank you!