refactory-id / bootstrap-markdown

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

Editor Buttons not working when used with Knockout.js #201

Open dwonisch opened 8 years ago

dwonisch commented 8 years ago

I want to use Bootstrap Markdown on a page filled with data from Knockout.js (v3.3.0).

<textarea rows="5" data-bind="value: Note" data-provide="markdown"></textarea>

Anyway the editor buttons aren't working as expected, still text directly edited within textarea is transformed well.

When using inline editor, the buttons are working. I assume this is caused by the later initialization of the editor. But I don't want to use inline editing in this case.

<textarea rows="5" data-bind="value: Note" data-provide="markdown-editable"></textarea> 

Is there any way to fix this behaviour? Solutions provided in #101 aren't working