You have to write that code yourself, and it's not easy. You can look at how the plugin for NicEdit or TinyMCE does this and reimpliment in cleditor.
Below is an extension I use to the updateTextArea that includes filtering of Microsoft word if / endif garbage and normalizing the tags to a combination of xhtml / html5 friendly ones: [..cut..]
obj){
$(obj).contents().find('body').bind('paste', function () {
setTimeout(function () {
editor[index].updateTextArea(editor[index]);
$(editor[index].doc.body).html(editor[index].$area.val());
}, 200);
});
});
Use this to update the Iframe upon Pasting
On Friday, May 31, 2013 8:58:44 AM UTC-4, Carlos Sanchez wrote:I would also like for a way to update the Iframe.. This solution was gold none the less!