TinyMCE:Configuration/oninit

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: oninit

This option enables you to specify a function name to be executed when all editor instances have finished their initialization. This is much like the onload event of an HTML page.

Example of usage of the oninit option:

function myCustomOnInit() {
	alert("We are ready to rumble!!");
}

tinyMCE.init({
	...
	oninit : "myCustomOnInit"
});
Personal tools