Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor as jquery plugin #42

Closed
mr-dxdy opened this issue Aug 11, 2015 · 1 comment
Closed

Editor as jquery plugin #42

mr-dxdy opened this issue Aug 11, 2015 · 1 comment

Comments

@mr-dxdy
Copy link

mr-dxdy commented Aug 11, 2015

Hi! You can create editor as jquery plugin?

Example:

$('#editor').simpleMDE({
  toolbar: false
});

$('#editor').simpleMDE('value', '# text');
$('#editor').simpleMDE('value');
# => '# text'

$('#editor').on('simple_mde:change', function(e) { console.log(e) })
@WesCossick
Copy link
Member

I don't have plans of doing that now. It's pretty easy to use SimpleMDE without jQuery, and you can even instantiate it using jQuery's APIs:

<script>
var simplemde = new SimpleMDE({
    element: $("#MyID")[0] // Get the element using jQuery
});
simplemde.render();
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants