immense / knockout-tinymce

TinyMCE binding for Knockout.js
http://rawgit.com/immense/knockout-tinymce/master/demo.html
MIT License
6 stars 4 forks source link

Editor focuses when observable is changed #3

Closed marius7383 closed 8 years ago

marius7383 commented 8 years ago

Thanks for sharing your knockout binding handler for TineMCE. It's really helping a lot!

I noticed a minor issue while using it. When the editor's observable is changed programmatically and the binding's update method is called a keyup command is send. This causes the editor to be focused, which I think is mostly undesired. Especially in cases where the editor is not the only input control and not in the upper parts of the page, browsers like Chrome and Firefox keep changing the scroll position to the focused TineMCE editor.

I am going to send a pull request, maybe you would like to merge it.

cmbankester commented 8 years ago

Fixed via #4