upgrading tinymce to 2.0.5.1
This commit is contained in:
parent
cb2a8d025e
commit
00d46f6148
342 changed files with 13043 additions and 11487 deletions
|
|
@ -39,8 +39,25 @@ tinyMCE.init({
|
|||
paste_auto_cleanup_on_paste : true,
|
||||
paste_convert_middot_lists : false,
|
||||
paste_unindented_list_class : "unindentedList",
|
||||
paste_convert_headers_to_strong : true
|
||||
paste_convert_headers_to_strong : true,
|
||||
paste_insert_word_content_callback : "convertWord"
|
||||
});
|
||||
|
||||
function convertWord(type, content) {
|
||||
switch (type) {
|
||||
// Gets executed before the built in logic performes it's cleanups
|
||||
case "before":
|
||||
content = content.toLowerCase(); // Some dummy logic
|
||||
break;
|
||||
|
||||
// Gets executed after the built in logic performes it's cleanups
|
||||
case "after":
|
||||
content = content.toLowerCase(); // Some dummy logic
|
||||
break;
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</p>
|
||||
|
|
@ -59,7 +76,7 @@ tinyMCE.init({
|
|||
</tr>
|
||||
<tr>
|
||||
<td>[paste_use_dialog]</td>
|
||||
<td>MSIE specific option, if you set this to false both Mozilla and MSIE will present a paste dialog. If you set it to true pasting in MSIE will be done directly. This option is set to false by default.</td>
|
||||
<td>MSIE specific option, if you set this to true both Mozilla and MSIE will present a paste dialog. If you set it to false pasting in MSIE will be done directly. This option is set to false by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[paste_auto_cleanup_on_paste]</td>
|
||||
|
|
@ -77,6 +94,14 @@ tinyMCE.init({
|
|||
<td>[paste_convert_headers_to_strong]</td>
|
||||
<td>This feature converts H1-6 elements to strong elements on paste, this is feature is disabled by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[paste_remove_spans]</td>
|
||||
<td>This enables you to control if the word parse operation should remove or keep span elements, they will be removed by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[paste_remove_styles]</td>
|
||||
<td>This enables you to control if the word parse operation should remove or keep style attributes, they will be removed by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[paste_replace_list]</td>
|
||||
<td>Comma separated list of search/replace chunks. Where even items is the regexp that is to be used for the search and odd values are the contents that are to be replaced.
|
||||
|
|
@ -94,6 +119,11 @@ tinyMCE.init({
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[paste_insert_word_content_callback]</td>
|
||||
<td>This option enables you to specify a callback function. This callback is executed when the user pastes word content, the return value of this function will be the new content string. Check the example above for more details.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
|
|
@ -101,7 +131,7 @@ tinyMCE.init({
|
|||
|
||||
<div class="footer">
|
||||
<div class="helpindexlink"><a href="index.html">Index</a></div>
|
||||
<div class="copyright">Copyright © 2005 Moxiecode Systems AB</div>
|
||||
<div class="copyright">Copyright © 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div>
|
||||
<br style="clear: both" />
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue