restored fixes and tweaks on blog mod
[elgg.git] / _tinymce / docs / plugin_save.html
blob79b44834173316e929c44cb598d7dbc082d2c60b
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>Plugin: save</title>
5 <link href="css/screen.css" rel="stylesheet" type="text/css" />
6 </head>
7 <body>
9 <div class="header">
10 <h1>Plugin: save</h1>
11 </div>
13 <div class="content">
14 <p>This plugin adds a save button to TinyMCE this save button will submit the form that the editor is within.</p>
16 <h3>Installation Instructions</h3>
17 <p>
18 <ul>
19 <li>Add plugin to TinyMCE plugin option list example: plugins : &quot;save&quot;.</li>
20 <li>Add the ltr, rtl button names to button list, example: theme_advanced_buttons3_add : &quot;save&quot;.</li>
21 </ul>
22 </p>
24 <p>
25 <h3>Options</h3>
26 </p>
27 <p>
28 <table border="1" cellspacing="0" cellpadding="4">
29 <tr>
30 <td>[save_enablewhendirty]</td>
31 <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>
32 </tr>
33 <tr>
34 <td>[onchange_callback]</td>
35 <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>
36 </tr>
37 </table>
38 </p>
40 <p>
41 <h3>Initialization Example</h3>
42 </p>
43 <p>
44 <div class="example">
45 <pre>
46 tinyMCE.init({
47 theme : &quot;advanced&quot;,
48 mode : &quot;textareas&quot;,
49 plugins : &quot;<strong>save</strong>&quot;,
50 theme_advanced_buttons3_add : &quot;<strong>save</strong>&quot;,
51 save_enablewhendirty : true,
52 onchange_callback : "mysave"
53 });</pre>
54 </div>
55 </p>
56 </div>
58 <div class="footer">
59 <div class="helpindexlink"><a href="index.html">Index</a></div>
60 <div class="copyright">Copyright &copy; 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div>
61 <br style="clear: both" />
62 </div>
64 </body>
65 </html>