Changeset 111b278f in github


Ignore:
Timestamp:
Oct 20, 2007 5:47:11 PM (6 years ago)
Author:
thomascube <thomas@…>
Children:
5f6c93c6
Parents:
1ee2cf3
Message:

Disable HTML the editor by default

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • config/main.inc.php.dist

    r5349b78 r111b278f  
    131131 
    132132// add this user-agent to message headers when sending 
    133 $rcmail_config['useragent'] = 'RoundCube Webmail/0.1b'; 
     133$rcmail_config['useragent'] = 'RoundCube Webmail/0.1-rc2'; 
    134134 
    135135// use this name to compose page titles 
     
    175175 
    176176// 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 
    177179$rcmail_config['enable_spellcheck'] = TRUE; 
    178180 
     
    220222 */ 
    221223 
     224// enable composing html formatted messages (experimental) 
     225$rcmail_config['enable_htmleditor'] = FALSE; 
     226 
    222227// don't allow these settings to be overriden by the user 
    223228$rcmail_config['dont_override'] = array(); 
     
    244249$rcmail_config['prefer_html'] = TRUE; 
    245250 
    246 // compose html formatted messages by default 
    247 $rcmail_config['htmleditor'] = TRUE; 
    248  
    249251// show pretty dates as standard 
    250252$rcmail_config['prettydate'] = TRUE; 
     
    259261$rcmail_config['draft_autosave'] = 300; 
    260262 
    261 // default setting if preview pane is enabled 
    262 $rcmail_config['preview_pane'] = FALSE; 
    263  
    264263// don't let users set pagesize to more than this value if set 
    265264$rcmail_config['max_pagesize'] = 200; 
  • program/steps/mail/compose.inc

    r5349b78 r111b278f  
    6464$OUTPUT->set_env('draft_autosave', !empty($CONFIG['drafts_mbox']) ? $CONFIG['draft_autosave'] : 0); 
    6565 
     66// no html editor if globally disabled 
     67if (!$CONFIG['enable_htmleditor']) 
     68  $CONFIG['htmleditor'] = false; 
    6669 
    6770// get reference message and set compose mode 
     
    408411    } 
    409412 
    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    } 
    413419 
    414420  $out = $form_start ? "$form_start\n" : ''; 
     
    782788{ 
    783789  global $CONFIG, $MESSAGE, $compose_mode; 
     790   
     791  if (!$CONFIG['enable_htmleditor']) 
     792    return ''; 
    784793 
    785794  $choices = array( 
  • program/steps/settings/func.inc

    r5eee009 r111b278f  
    3838  global $DB, $CONFIG, $sess_user_lang; 
    3939 
    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); 
    4141 
    4242  // add some labels to client 
     
    162162 
    163163  // Show checkbox for HTML Editor 
    164   if (!isset($no_override['htmleditor'])) 
     164  if (!isset($no_override['htmleditor']) && $CONFIG['enable_htmleditor']) 
    165165    { 
    166166    $field_id = 'rcmfd_htmleditor'; 
  • skins/default/templates/compose.html

    r7984ece r111b278f  
    138138</td> 
    139139<td align="right"> 
    140  <roundcube:label name="editortype" />:&nbsp; 
    141  <span class="radios-left"><roundcube:object name="editorSelector" tabindex="9" /></span> 
     140  <roundcube:if condition="config:enable_htmleditor" /> 
     141    <roundcube:label name="editortype" />:&nbsp; 
     142    <span class="radios-left"><roundcube:object name="editorSelector" tabindex="9" /></span> 
     143  <roundcube:endif /> 
    142144</td> 
    143145</tr> 
Note: See TracChangeset for help on using the changeset viewer.