I\'ve a textarea that uses TinyMCE as a WYSIWYG. Once that this textarea is loaded I want that, clicking a button \"Edit\" some html code that I bring with AJAX jquery is l
You could try with the setContent function:
$.get("hello.html", function(content) {
// if you have one tinyMCE box on the page:
tinyMCE.activeEditor.setContent(content);
});
or even shorter:
$.get("hello.html", tinyMCE.activeEditor.setContent);
Using the jQuery version of tinyMCE with jQuery plugin you could use this
$.get("hello.html", function(content) {
$('#input-corpo').html(content);
});