TINY BLOG > Important changes to Tiny Cloud pricing > Find out more
Return to Website

oninit

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

Note : You can also pass the function name as a string. But in this case, the function has to be declared in the global scope of the page.

Example of usage of the oninit option:

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

tinyMCE.init({
    ...
    oninit : myCustomOnInit
});

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.