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
});
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
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.