I\'m in a curious situation where I previously had no problem achieving what I\'m looking for. The following code is a part of an HTML page which is to host a TinyMCE rich t
If you don't call tinyMCE's JavaScript function, you may have to deal with browser compatibility issues.
If you only have one tinymce box on the page, you can just do this:
tinyMCE.activeEditor.setContent('some');
You can also set a format such as BBCode. Check out the setContent documentation.
I would have your PHP code echo out the HTML into a JavaScript function and have it called with onload:
function loadTinyMCE($html) {
echo "
";
}
then
If you don't want to use the page onload event, tinymce has an init option called oninit that functions similarly.
Alternatively, setupcontent_callback gives you direct access to the iframe.