Option: setupcontent_callback

This option enables you to execute custom setup content logic when the editor initializes. The format of this callback is: setupContent(editor_id, body, doc). Where editor_id is the TinyMCE editor instance id the editor instance object reference can be retrived by using tinyMCE.getInstanceById(editor_id). The body parameter is a reference to the iframes body element and doc is the iframes document element. This option is not used if it's not specified.

Example of usage of the setupcontent_callback option:

function myCustomSetupContent(editor_id, body, doc) {
	body.innerHTML = "my new content" + body.innerHTML;

	setupcontent_callback : "myCustomSetupContent"