refactory-id / bootstrap-markdown

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

Enable preview button while the editor is disabled #127

Closed minderrd closed 9 years ago

minderrd commented 9 years ago

Hi,

I want to disable the editor as default, so that the user have to enable the editor before he change the content. But I found no way to enable the editor while it's disabled. I think the preview button just changes the content format, therefore, it should be always enabled. on the other hand, if hidePreview function doesn't check disabled and readonly, the other buttons can still work even if the textarea has been disabled which I think is a little bit weird.

Please confirm.

Thanks!

toopay commented 9 years ago

There are hooks for almost any state, so you could modify preview button behaviour without changing the sensible default.