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


This option should contain a function name to be executed each time TinyMCE intercepts and handles an event such as keydown, mousedown and so forth. The format of this function is: handleEvent(event). 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 ability to switch status messages in the browser before trying the example below

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

    return true; // Continue handling

    handle_event_callback : "myHandleEvent"

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.