I cannot set content of my tinymce instance. It seems like this method is poorly implemented, since it does not work at all. I've seen all these threads ([1],[2],[3]) and I tried this code:
//1. results in error message
tinymce.get("myid").setContent('<span>some</span> html');
//2. results in error message
tinymce.get("myid").setContent('<span>some</span> html', {format : 'raw'});
//3. simply has no effect
tinymce.init({
...
init_instance_callback: "insert_contents",
});
function insert_contents(inst){
inst.setContent('<strong>Some contents</strong>');
}
I'm using the very last version of tinymce. Hope someone knows, why it may not work.