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

Readme is missing the [0] on the Jquery example. #8

Closed jarrodbell closed 6 years ago

jarrodbell commented 6 years ago
var easyMDE = new EasyMDE({element: $('#my-text-area')});

Should be:

var easyMDE = new EasyMDE({element: $('#my-text-area')[0]});
Ionaru commented 6 years ago

You're right, I used the Chrome Devtools console to test and mistook the built-in $ queryselector for jQuery.