Changeset 111b278f in github
- Timestamp:
- Oct 20, 2007 5:47:11 PM (6 years ago)
- Children:
- 5f6c93c6
- Parents:
- 1ee2cf3
- Files:
-
- 4 edited
-
config/main.inc.php.dist (modified) (5 diffs)
-
program/steps/mail/compose.inc (modified) (3 diffs)
-
program/steps/settings/func.inc (modified) (2 diffs)
-
skins/default/templates/compose.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
config/main.inc.php.dist
r5349b78 r111b278f 131 131 132 132 // add this user-agent to message headers when sending 133 $rcmail_config['useragent'] = 'RoundCube Webmail/0.1 b';133 $rcmail_config['useragent'] = 'RoundCube Webmail/0.1-rc2'; 134 134 135 135 // use this name to compose page titles … … 175 175 176 176 // Make use of the built-in spell checker. It is based on GoogieSpell. 177 // Since Google only accepts connections over https your PHP installatation 178 // requires to be compiled with Open SSL support 177 179 $rcmail_config['enable_spellcheck'] = TRUE; 178 180 … … 220 222 */ 221 223 224 // enable composing html formatted messages (experimental) 225 $rcmail_config['enable_htmleditor'] = FALSE; 226 222 227 // don't allow these settings to be overriden by the user 223 228 $rcmail_config['dont_override'] = array(); … … 244 249 $rcmail_config['prefer_html'] = TRUE; 245 250 246 // compose html formatted messages by default247 $rcmail_config['htmleditor'] = TRUE;248 249 251 // show pretty dates as standard 250 252 $rcmail_config['prettydate'] = TRUE; … … 259 261 $rcmail_config['draft_autosave'] = 300; 260 262 261 // default setting if preview pane is enabled262 $rcmail_config['preview_pane'] = FALSE;263 264 263 // don't let users set pagesize to more than this value if set 265 264 $rcmail_config['max_pagesize'] = 200; -
program/steps/mail/compose.inc
r5349b78 r111b278f 64 64 $OUTPUT->set_env('draft_autosave', !empty($CONFIG['drafts_mbox']) ? $CONFIG['draft_autosave'] : 0); 65 65 66 // no html editor if globally disabled 67 if (!$CONFIG['enable_htmleditor']) 68 $CONFIG['htmleditor'] = false; 66 69 67 70 // get reference message and set compose mode … … 408 411 } 409 412 410 $OUTPUT->include_script('tiny_mce/tiny_mce.js'); 411 $OUTPUT->include_script("editor.js"); 412 $OUTPUT->add_script('rcmail_editor_init("$__skin_path");'); 413 if ($CONFIG['enable_htmleditor']) 414 { 415 $OUTPUT->include_script('tiny_mce/tiny_mce.js'); 416 $OUTPUT->include_script("editor.js"); 417 $OUTPUT->add_script('rcmail_editor_init("$__skin_path");'); 418 } 413 419 414 420 $out = $form_start ? "$form_start\n" : ''; … … 782 788 { 783 789 global $CONFIG, $MESSAGE, $compose_mode; 790 791 if (!$CONFIG['enable_htmleditor']) 792 return ''; 784 793 785 794 $choices = array( -
program/steps/settings/func.inc
r5eee009 r111b278f 38 38 global $DB, $CONFIG, $sess_user_lang; 39 39 40 $no_override = is_array($CONFIG['dont_override']) ? array_flip($CONFIG['dont_override']) : array();40 $no_override = !empty($CONFIG['dont_override']) ? array_flip((array)$CONFIG['dont_override']) : array('preview_pane'=>true); 41 41 42 42 // add some labels to client … … 162 162 163 163 // Show checkbox for HTML Editor 164 if (!isset($no_override['htmleditor']) )164 if (!isset($no_override['htmleditor']) && $CONFIG['enable_htmleditor']) 165 165 { 166 166 $field_id = 'rcmfd_htmleditor'; -
skins/default/templates/compose.html
r7984ece r111b278f 138 138 </td> 139 139 <td align="right"> 140 <roundcube:label name="editortype" />: 141 <span class="radios-left"><roundcube:object name="editorSelector" tabindex="9" /></span> 140 <roundcube:if condition="config:enable_htmleditor" /> 141 <roundcube:label name="editortype" />: 142 <span class="radios-left"><roundcube:object name="editorSelector" tabindex="9" /></span> 143 <roundcube:endif /> 142 144 </td> 143 145 </tr>
Note: See TracChangeset
for help on using the changeset viewer.
