diff options
| author | estadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-27 05:18:55 +0000 |
|---|---|---|
| committer | estadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-27 05:18:55 +0000 |
| commit | 1abd7a3de0c2e618767b8a1b508fc0ff0d5bcb52 (patch) | |
| tree | 91e86131acb382d1a05c1504b7771b06e4e75356 | |
| parent | 0b189f58313956e8c718fce58b39c10f18e4de15 (diff) | |
Fixed editor selector labels, added TinyMCE spellchecker to editor configuration
git-svn-id: https://svn.roundcube.net/trunk@355 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 6 | ||||
| -rw-r--r-- | roundcubemail/program/js/editor.js | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 23 | ||||
| -rw-r--r-- | roundcubemail/skins/default/templates/compose.html | 4 |
4 files changed, 25 insertions, 10 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 4144b5a6d..ae8dffa12 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,12 @@ 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 diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index 333559c2e..0af5968e9 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/program/js/editor.js @@ -21,7 +21,7 @@ function rcmail_editor_init(skin_path) 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 : '', diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 5077d5c16..51ae6193e 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -787,8 +787,8 @@ function rcmail_editor_selector($attrib) 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 @@ -806,15 +806,24 @@ function rcmail_editor_selector($attrib) } $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; diff --git a/roundcubemail/skins/default/templates/compose.html b/roundcubemail/skins/default/templates/compose.html index 2c11e0015..f2bfc1dc4 100644 --- a/roundcubemail/skins/default/templates/compose.html +++ b/roundcubemail/skins/default/templates/compose.html @@ -107,8 +107,8 @@ function rcmail_toggle_display(id) <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> |
