Changeset dd53e2b in github for program/steps/mail/compose.inc


Ignore:
Timestamp:
May 1, 2006 12:27:19 PM (7 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
97a915e
Parents:
fecb03f
Message:

Started integrating GoogieSpell?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/compose.inc

    r6204390 rdd53e2b  
    298298function rcmail_compose_body($attrib) 
    299299  { 
    300   global $CONFIG, $REPLY_MESSAGE, $FORWARD_MESSAGE; 
     300  global $CONFIG, $OUTPUT, $REPLY_MESSAGE, $FORWARD_MESSAGE; 
    301301   
    302302  list($form_start, $form_end) = get_form_tags($attrib); 
    303303  unset($attrib['form']); 
     304   
     305  if (empty($attrib['id'])) 
     306    $attrib['id'] = 'rcmComposeMessage'; 
    304307   
    305308  $attrib['name'] = '_message'; 
     
    331334  $out .= $textarea->show($body); 
    332335  $out .= $form_end ? "\n$form_end" : ''; 
    333           
     336   
     337  // include GoogieSpell 
     338  $OUTPUT->include_script('googiespell.js'); 
     339   
     340  $OUTPUT->add_script(sprintf("var googie1 = new GoogieSpell('\$__skin_path/images/googiespell/','%s&_action=spell&lang=');\n". 
     341                              "googie1.decorateTextarea('%s');", 
     342                              $GLOBALS['COMM_PATH'], 
     343                              $attrib['id']), 'foot'); 
     344   
    334345  return $out; 
    335346  } 
Note: See TracChangeset for help on using the changeset viewer.