- Fix so editor selector is hidden when 'htmleditor' is listed in 'dont_override'
| | |
| | | |
| | | function rcmail_compose_attachment_form($attrib) |
| | | { |
| | | global $RCMAIL, $OUTPUT; |
| | | global $OUTPUT; |
| | | |
| | | // set defaults |
| | | $attrib += array('id' => 'rcmUploadbox', 'buttons' => 'yes'); |
| | |
| | | |
| | | function rcmail_editor_selector($attrib) |
| | | { |
| | | global $CONFIG, $MESSAGE, $compose_mode; |
| | | |
| | | // determine whether HTML or plain text should be checked |
| | | $useHtml = rcmail_compose_editor_mode(); |
| | | |
| | |
| | | </div> |
| | | <div id="compose-editorfooter"> |
| | | <span id="spellcheck-control" style="margin-right:10px"></span> |
| | | <roundcube:if condition="!in_array('htmleditor', (array)config:dont_override)" /> |
| | | <span> |
| | | <label><roundcube:label name="editortype" /></label> |
| | | <roundcube:object name="editorSelector" editorid="compose-body" tabindex="12" /> |
| | | </span> |
| | | <roundcube:endif /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </span> |
| | | |
| | | <div id="composeoptions"> |
| | | <roundcube:if condition="!in_array('htmleditor', (array)config:dont_override)" /> |
| | | <span class="composeoption"> |
| | | <label><roundcube:label name="editortype" /> |
| | | <roundcube:object name="editorSelector" editorid="composebody" tabindex="12" /></label> |
| | | </span> |
| | | <roundcube:endif /> |
| | | <span class="composeoption"> |
| | | <label><label for="rcmcomposepriority"><roundcube:label name="priority" /> |
| | | <roundcube:object name="prioritySelector" form="form" id="rcmcomposepriority" /></label> |