Changeset 4017 in subversion


Ignore:
Timestamp:
Sep 29, 2010 1:53:13 PM (3 years ago)
Author:
alec
Message:
  • Allow setting some washtml options from plugin (#1486578)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4014 r4017  
    99- Fix HTML to plain text conversion doesn't handle citation blocks (#1486921) 
    1010- Use custom sorting when SORT is disabled by IMAP admin (#1486959) 
     11- Allow setting some washtml options from plugin (#1486578) 
    1112 
    1213RELEASE 0.4.1 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r4011 r4017  
    696696  } 
    697697 
     698  // overwrite washer options with options from plugins 
     699  if (isset($p['html_elements'])) 
     700    $wash_opts['html_elements'] = $p['html_elements']; 
     701  if (isset($p['html_attribs'])) 
     702    $wash_opts['html_attribs'] = $p['html_attribs']; 
     703 
     704  // initialize HTML washer 
    698705  $washer = new washtml($wash_opts); 
    699   $washer->add_callback('form', 'rcmail_washtml_callback'); 
     706 
     707  if (!$p['skip_washer_form_callback']) 
     708    $washer->add_callback('form', 'rcmail_washtml_callback'); 
    700709 
    701710  // allow CSS styles, will be sanitized by rcmail_washtml_callback() 
    702   $washer->add_callback('style', 'rcmail_washtml_callback'); 
     711  if (!$p['skip_washer_style_callback']) 
     712    $washer->add_callback('style', 'rcmail_washtml_callback'); 
    703713 
    704714  $html = $washer->wash($html); 
Note: See TracChangeset for help on using the changeset viewer.