I am using bootstrap wysiwyg editor to replace the textarea that is being databinded to a observable value from viewModel.
<textarea data-bind="html:data, valueUpdate:'afterkeydown'"></textarea>
The above textarea updates the corresponding viewModel value everytime a key is pressed from inside the textarea.
Now the text area is replaced by wysiwyg bootstrap editor
<div class="editor" data-bind="html:data, valueUpdate:'afterkeydown'"></div>
Now the the observable is not updated on keydown.
any idea how to make this work?
Creating a custom bindinghandler "htmlUpdate" to div tags, similar to valueUpdate that is working with input elements?
also that should support inline HTML, Any ideas about how to reuse the "valueUpdate" to work with div elements?
Here is the fiddle http://jsfiddle.net/cHTCq/