upgrading tinymce to 2.0.5.1
This commit is contained in:
parent
00d46f6148
commit
c012e8913d
35 changed files with 1224 additions and 0 deletions
46
www/extras/tinymce2/docs/option_handle_event_callback.html
Normal file
46
www/extras/tinymce2/docs/option_handle_event_callback.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Option: handle_event_callback</title>
|
||||
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="header">
|
||||
<h1>Option: handle_event_callback</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<div class="separator"></div>
|
||||
|
||||
<h3>Example of usage of the handle_event_callback option:</h3>
|
||||
<div class="example">
|
||||
<pre>
|
||||
// Remember to enable the possibility to switch status messages in the browser before trying the example below
|
||||
|
||||
function <strong>myHandleEvent</strong>(e) {
|
||||
window.status = "event:" + e.type;
|
||||
|
||||
return true; // Continue handling
|
||||
}
|
||||
|
||||
tinyMCE.init({
|
||||
...
|
||||
<strong>handle_event_callback : "myHandleEvent"</strong>
|
||||
});
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<div class="helpindexlink"><a href="index.html">Index</a></div>
|
||||
<div class="copyright">Copyright © 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div>
|
||||
<br style="clear: both" />
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue