michaelpapworth / tinymce-knockout-binding

A KnockoutJS custom binding that applies a TinyMCE Editor to the bound HTML element
MIT License
39 stars 19 forks source link

Fixed a race condition problem #20

Open sateffen opened 8 years ago

sateffen commented 8 years ago

Fixed a problem where Code looking like

var vm = {
    text = ko.observable('');
}
ko.applyBindings(vm, element);
vm.text('hello world');

Would result in resetting the observable in vm.text, so the text 'hello world' never gets shown.

luisfernandobarrera commented 8 years ago

I had the same problem and I fixed it with the proposed patch +1