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

init_instance_callback

This option should contain a function name to be executed each time a editor instance is initialized. The format of this function is: initInstance(inst) where inst is the editor instance object reference.

Example of usage of the init_instance_callback option:

function myCustomInitInstance(inst) {
    alert("Editor: " + inst.editorId + " is now initialized.");
}

tinyMCE.init({
    ...
    init_instance_callback : "myCustomInitInstance"
});

Also see the the setup callback option it enabled you to bind events before the editor instance is initialized.

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.