Changeset 1806 in subversion


Ignore:
Timestamp:
Sep 16, 2008 9:58:17 AM (5 years ago)
Author:
alec
Message:
  • Allow and use spellcheck attribute for input/textarea fields (#1485060)
Location:
trunk/roundcubemail
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1803 r1806  
    66- Reduced memory footprint when forwarding attachments (#1485345) 
    77- Fix inline images handling when replying/forwarding html messages 
     8- Allow and use spellcheck attribute for input/textarea fields (#1485060) 
    89 
    9102008/09/15 (thomasb) 
  • trunk/roundcubemail/program/include/html.php

    r1804 r1806  
    249249    protected $tagname = 'input'; 
    250250    protected $type = 'text'; 
    251     protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked','onchange','onclick','disabled','readonly'); 
     251    protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked','onchange','onclick','disabled','readonly','spellcheck'); 
    252252 
    253253    public function __construct($attrib = array()) 
     
    417417{ 
    418418    protected $tagname = 'textarea'; 
    419     protected $allowed = array('name','rows','cols','wrap','tabindex','onchange','disabled','readonly'); 
     419    protected $allowed = array('name','rows','cols','wrap','tabindex','onchange','disabled','readonly','spellcheck'); 
    420420 
    421421    /** 
  • trunk/roundcubemail/program/js/editor.js

    r1788 r1806  
    3535    external_image_list_url : "program/js/editor_images.js", 
    3636    spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : "Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv"), 
     37    gecko_spellcheck : true, 
    3738    rc_client: rcube_webmail_client 
    3839  }); 
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r1803 r1806  
    242242  { 
    243243    // pass the following attributes to the form class 
    244     $field_attrib = array('name' => $fname); 
     244    $field_attrib = array('name' => $fname, 'spellcheck' => 'false'); 
    245245    foreach ($attrib as $attr => $value) 
    246246      if (in_array($attr, $allow_attrib)) 
     
    651651   
    652652  $attrib['name'] = '_subject'; 
     653  $attrib['spellcheck'] = 'true'; 
    653654  $textfield = new html_inputfield($attrib); 
    654655 
  • trunk/roundcubemail/program/steps/settings/edit_identity.inc

    r1796 r1806  
    5959                                    "theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr'," . 
    6060                                    "theme_advanced_buttons2 : 'link,unlink,code,forecolor,fontselect,fontsizeselect'," . 
    61                                     "theme_advanced_buttons3 : '' });"); 
     61                                    "theme_advanced_buttons3 : '',". 
     62                                    "gecko_spellcheck : true });"); 
    6263 
    6364  if (!$IDENTITY_RECORD && $RCMAIL->action != 'add-identity') 
     
    114115      $attrib['size'] = $colprop['size']; 
    115116      $attrib['rows'] = $colprop['rows']; 
     117      $attrib['spellcheck'] = true; 
    116118      if ($IDENTITY_RECORD['html_signature']) 
    117119        { 
Note: See TracChangeset for help on using the changeset viewer.