1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
<!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>Plugin: save</title>
<link href="css/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
<h1>Plugin: save</h1>
</div>
<div class="content">
<p>This plugin adds a save button to TinyMCE this save button will submit the form that the editor is within.</p>
<h3>Installation Instructions</h3>
<p>
<ul>
<li>Add plugin to TinyMCE plugin option list example: plugins : "save".</li>
<li>Add the ltr, rtl button names to button list, example: theme_advanced_buttons3_add : "save".</li>
</ul>
</p>
<p>
<h3>Options</h3>
</p>
<p>
<table border="1" cellspacing="0" cellpadding="4">
<tr>
<td>[save_enablewhendirty]</td>
<td>If you set this option to true, the edit button will be disabled/dimmed until modifications are made. This is disabled by default.</td>
</tr>
<tr>
<td>[onchange_callback]</td>
<td>This option enables you to add a custom function to be called when the save button/command is invoked. This is not used by default.</td>
</tr>
</table>
</p>
<p>
<h3>Initialization Example</h3>
</p>
<p>
<div class="example">
<pre>
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "<strong>save</strong>",
theme_advanced_buttons3_add : "<strong>save</strong>",
save_enablewhendirty : true,
onchange_callback : "mysave"
});</pre>
</div>
</p>
</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>
|