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.79k stars 1.12k forks source link

Expose utility functions #254

Open jbanety opened 8 years ago

jbanety commented 8 years ago

Hi,

Would be nice to expose private utility functions (e.g. _replaceSelection or _toggleLine) to create custom buttons easily.

These functions could be binded as static like SimpleMDE.toggleBold.

Thanks, JB.

WesCossick commented 8 years ago

If this happens, it'll occur in version 2.