refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 371 forks source link

HTML code showing in textarea #175

Closed DanielGJohnsen closed 9 years ago

DanielGJohnsen commented 9 years ago

When i give an id="body" to a textarea, or using $("textarea").parent().markdown({}), the textareas are showing alot of html markup, starting with

. This is my textarea: textarea class="form-control" data-provide="markdown" id="body" name="body" placeholder="body"></textarea This is my js: $("#body").parent().markdown({ savable:false, onShow : function(e){ e.hideButtons("all"); } onFocus: function(e){ e.showButtons("all"); }, onBlur: function(e){ e.hideButtons("all"); } });

Does anyone have an idea as to how the textareas are being filled with markup from markdown?