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

Binding shows html code instead of the formatted text #28

Open TOuhrouche opened 7 years ago

TOuhrouche commented 7 years ago

Hi, Thanks for the awesome binding. Just found an issue where the text control initializes to the HTML source code instead of showing the formatted text. The issue is in the binding line 26. Should use $(element).html(valueAccessor()()); instead of $(element).text(valueAccessor()());