Closed dungphanxuan closed 8 years ago
I dont get it. You should just use textarea?
I want to do the same thing. The idea is to allow the use of markdown syntax with the preview feature, and default to rendering the formatted version, but not add the UI for the toolbar itself. Basically what gihub does right here in this issue editor.
@dungphanxuan and @jasonpolites As far as I've read the source code from bootstrap-markdown.js, this can be achieved by passing "all" as parameter, like this:
$("#your-editor").markdown({
onShow: function (e) {
e.hideButtons("all");
}
})
If you want the whole toolbar to be hidden, you could also remove it:
$("#your-editor").markdown({
onShow: function (e) {
$(".btn-toolbar").remove();
}
})
_Beware if no other elements are using this class, for example if you have two editors._
@AlissonRS I'm not interested at all in this feature
@jacoborus Oh, I just marked the wrong person, I'm sorry, I'm gonna edit my post.
:+1:
Hello, i want to hide all button, and only show textarea. so what option to config! thank