restored fixes and tweaks on blog mod
[elgg.git] / _tinymce / docs / option_handle_event_callback.html
blob8b8a442d5cff6eaf50d08b75d078fafc02b70a6d
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>Option: handle_event_callback</title>
5 <link href="css/screen.css" rel="stylesheet" type="text/css" />
6 </head>
7 <body>
9 <div class="header">
10 <h1>Option: handle_event_callback</h1>
11 </div>
13 <div class="content">
14 <p>
15 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.
16 </p>
18 <div class="separator"></div>
20 <h3>Example of usage of the handle_event_callback option:</h3>
21 <div class="example">
22 <pre>
23 // Remember to enable the possibility to switch status messages in the browser before trying the example below
25 function <strong>myHandleEvent</strong>(e) {
26 window.status = "event:" + e.type;
28 return true; // Continue handling
31 tinyMCE.init({
32 ...
33 <strong>handle_event_callback : &quot;myHandleEvent&quot;</strong>
34 });
35 </pre>
36 </div>
37 </div>
39 <div class="footer">
40 <div class="helpindexlink"><a href="index.html">Index</a></div>
41 <div class="copyright">Copyright &copy; 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div>
42 <br style="clear: both" />
43 </div>
45 </body>
46 </html>