/** * Constructor. * * Available options: * * * theme: The Tiny MCE theme * * width: Width * * height: Height * * config: The javascript configuration * * @param array $options An array of options * @param array $attributes An array of default HTML attributes * * @see sfWidgetForm */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setOption('theme', 'advanced'); //$this->setOption('theme', 'simple'); $this->setOption('config', 'language: "ja"'); }
public function render($name, $value = null, $attributes = array(), $errors = array()) { return parent::render($name, $value ? htmlentities($value) : $value, $attributes, $errors); }
/** * (non-PHPdoc) * @see sfWidgetFormTextareaTinyMCE::configure() */ protected function configure($options = array(), $attributes = array()) { parent::configure(); $this->setOption("config", "theme_advanced_buttons1: 'bold,italic,underline,strikethrough,|,link,unlink,|,bullist,numlist,|,formatselect,fontsizeselect',\n\t\t\t\t\t\t\ttheme_advanced_statusbar_location: 'none'"); }