TinyMCE:Configuration/remove instance callback

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: remove_instance_callback

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

Example of usage of the remove_instance_callback option:

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

tinyMCE.init({
	...
	remove_instance_callback : "myCustomRemoveInstance"
});
Personal tools