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

Dynamically created editors #754

Closed CrystalShardz closed 5 years ago

CrystalShardz commented 5 years ago

Is there a way to make a dynamically generated textarea a simplemde object? I.E i click a button and it adds a new textarea element that is enabled as a simplemde input and can do this multiple times.

thanks

CrystalShardz commented 5 years ago

I figured this out. I needed to put initialisation into my event handler to effectively create a new object on click.

sudarshaana commented 4 years ago

Can you please share the code snippet?

johnemmatty commented 2 years ago

@CrystalShardz , Can you please share this script?