Development

Changeset 15721

You must first sign up to be able to contribute.

Changeset 15721

Show
Ignore:
Timestamp:
02/23/09 15:43:25 (4 years ago)
Author:
nicolas.charlot
Message:

gestion d'options sans quotes (exemple setup)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/isicsWidgetFormTinyMCEPlugin/trunk/lib/widget/isicsWidgetFormTinyMCE.class.php

    r13295 r15721  
    1616class isicsWidgetFormTinyMCE extends sfWidgetFormTextarea 
    1717{ 
    18    
     18  protected $optionsWithoutQuotes = array('setup'); 
     19   
    1920  /** 
    2021   * Constructor. 
     
    5152    foreach ($this->getOption('tiny_options') as $key => $option) 
    5253    { 
    53       $options .= ",\n    ".$key.': \''.$option.'\''
     54    $options .= ",\n    ".$key.': '.(in_array($key, $this->optionsWithoutQuotes) ? $option : '\''.$option.'\'')
    5455    } 
    5556