inacho / bootstrap-markdown-editor

Markdown editor for Bootstrap with preview, image upload support, shortcuts and other features.
MIT License
295 stars 73 forks source link

Fix content/setContent; add access to editor #37

Open JordanReiter opened 7 years ago

JordanReiter commented 7 years ago

Currently this.find('.md-editor') will not work since this refers to the textarea which does not contain .md-editor (it comes before).

This change makes access to editor more explicit by putting it in the data for this object. It also adds the method 'editor' which provides direct access to the ace editor object.