I have a web page that has several textareas, each of which use bootstrap-markdown. This all works fine. I also have an "Add" button on the page that dynamically generates another textarea. After the new text area is generated it needs to have bootstrap-markdown too so I call the markdown function:
This does attach the markdown toolbar, etc. So I know it's sorta working.
Unfortunately, most of the functions don't work. Bold, Heading and Preview (for example) don't work (they do nothing and generate no javascript errors in the console). Interestingly, some things partly work. For example, if I click the "link" item int he toolbar it prompts for the URL -- but then doesn't modify the content.
I'm pretty stumped. Any ideas what might be wrong?
I have a web page that has several textareas, each of which use bootstrap-markdown. This all works fine. I also have an "Add" button on the page that dynamically generates another textarea. After the new text area is generated it needs to have bootstrap-markdown too so I call the markdown function:
This does attach the markdown toolbar, etc. So I know it's sorta working.
Unfortunately, most of the functions don't work. Bold, Heading and Preview (for example) don't work (they do nothing and generate no javascript errors in the console). Interestingly, some things partly work. For example, if I click the "link" item int he toolbar it prompts for the URL -- but then doesn't modify the content.
I'm pretty stumped. Any ideas what might be wrong?