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

Using knockout mapping. When updating with new data the editor can't be typed on #25

Open ephraimdulay opened 7 years ago

ephraimdulay commented 7 years ago

I have an issue when the DOM gets updated.

On first load of the page every editor works and typed on. As soon as I do an action and causes the page to get new data and apply the new data to the mapping. This will trigger the dom to update which then causes ALL editors to not function.

<html><head></head><body></body></html>

That's the content of the iframe after update. But this is how it looks like initially:

<body id="tinymce" class="mce-content-body " data-id="1-1039-RT-comment" contenteditable="true" spellcheck="false"><p>test</p></body>

Left out the since it may contain confidential information.