upgraded to tinymce 2.0.1
This commit is contained in:
parent
586e1a00fa
commit
75acc465b0
891 changed files with 16251 additions and 18835 deletions
50
www/extras/tinymce2/docs/option_insertlink_callback.html
Normal file
50
www/extras/tinymce2/docs/option_insertlink_callback.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<!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: insertlink_callback</title>
|
||||
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="header">
|
||||
<h1>Option: insertlink_callback</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
This option enables you to override the build in functionality for inserting links. This option should contain a function name to be executed when a new link is inserted into TinyMCE. The format of this callback function is: insertLink(href, target, title, onclick, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.
|
||||
</p>
|
||||
|
||||
<div class="separator"></div>
|
||||
|
||||
<h3>Example of usage of the insertlink_callback option:</h3>
|
||||
<div class="example">
|
||||
<pre>
|
||||
function <strong>myCustomInsertLink</strong>(href, target, title, onclick, action) {
|
||||
var result = new Array();
|
||||
|
||||
// Do some custom logic
|
||||
result['href'] = "some_page.htm";
|
||||
result['target'] = "_self";
|
||||
result['title'] = "Some link title";
|
||||
result['onclick'] = "";
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
tinyMCE.init({
|
||||
...
|
||||
<strong>insertlink_callback : "myCustomInsertLink"</strong>
|
||||
});
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<div class="helpindexlink"><a href="index.html">Index</a></div>
|
||||
<div class="copyright">Copyright © 2005 Moxiecode Systems AB</div>
|
||||
<br style="clear: both" />
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue