Fixed editor selector labels, added TinyMCE spellchecker to editor configuration
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2006/09/26 (estadtherr) |
| | | ---------- |
| | | - Added spellchecker plugin to TinyMCE configuration |
| | | - Fixed HTML/Plain toggle labels |
| | | |
| | | |
| | | 2006/09/24 (thomasb) |
| | | ---------- |
| | | - Partial client re-write with a common list class |
| | |
| | | accessibility_focus : false, |
| | | apply_source_formatting : true, |
| | | theme : 'advanced', |
| | | plugins : 'emotions,table,searchreplace', |
| | | plugins : 'emotions,table,searchreplace,spellchecker', |
| | | theme_advanced_buttons1 : 'bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,forecolor,backcolor,formatselect,fontselect,fontsizeselect', |
| | | theme_advanced_buttons2 : 'undo,redo,image,hr,link,unlink,emotions,charmap,code,separator,search,replace,spellchecker,separator,tablecontrols', |
| | | theme_advanced_buttons3 : '', |
| | |
| | | global $CONFIG, $MESSAGE, $compose_mode; |
| | | |
| | | $choices = array( |
| | | 'html' => 'HTML', |
| | | 'plain' => 'Plain text' |
| | | 'html' => 'htmltoggle', |
| | | 'plain' => 'plaintoggle' |
| | | ); |
| | | |
| | | // determine whether HTML or plain text should be checked |
| | |
| | | } |
| | | |
| | | $selector = ''; |
| | | |
| | | $attrib['name'] = '_editorSelect'; |
| | | $attrib['onclick'] = 'return rcmail_toggle_editor(this)'; |
| | | foreach ($choices as $value => $text) |
| | | { |
| | | $checked = ''; |
| | | if ((($text == 'HTML') && $useHtml) || |
| | | (($text != 'HTML') && !$useHtml)) |
| | | $checked = 'checked'; |
| | | if ((($value == 'html') && $useHtml) || |
| | | (($value != 'html') && !$useHtml)) |
| | | $attrib['checked'] = 'true'; |
| | | else |
| | | unset($attrib['checked']); |
| | | |
| | | $selector .= sprintf("<input type='radio' name='_editorSelect' value='%s' %s onclick='return rcmail_toggle_editor(this)'>%s</input>\n", |
| | | $value, $checked, $text); |
| | | $attrib['id'] = '_' . $value; |
| | | $rb = new radiobutton($attrib); |
| | | $selector .= sprintf("<td>%s</td><td class=\"title\"><label for=\"%s\">%s</label></td>", |
| | | $rb->show($value), |
| | | $attrib['id'], |
| | | rcube_label($text)); |
| | | } |
| | | |
| | | return $selector; |
| | |
| | | <roundcube:label name="charset" />: <roundcube:object name="charsetSelector" tabindex="8" /> |
| | | </td> |
| | | <td align="right"> |
| | | <roundcube:label name="editortype" />: <roundcube:object name="editorSelector" tabindex="9" /> |
| | | </td> |
| | | <roundcube:label name="editortype" />: </td> |
| | | <roundcube:object name="editorSelector" tabindex="9" /> |
| | | </tr></tbody></table> |
| | | |
| | | </td> |