Option: handle_event_callback

This option should contain a function name to be executed each time TinyMCE intercepts and handles a event such as keydown, mousedown and so forth. The format of this function is: handleEvent(event), where inst is the editor instance object reference. If the handle event function returns false it will terminate the internal event handling.

Example of usage of the handle_event_callback option:

// Remember to enable the possibility to switch status messages in the browser before trying the example below

function myHandleEvent(e) {
	window.status = "event:" + e.type;

	return true; // Continue handling
}

tinyMCE.init({
	...
	handle_event_callback : "myHandleEvent"
});