public function configure($options = array(), $attributes = array()) { $this->setAttribute('class', 'mceEditor'); $this->addOption('width', 650); $this->addOption('height', 300); parent::configure($options, $attributes); }
public function configure($options = array(), $attributes = array()) { $this->addOption('width', 400); $this->addOption('height', 200); $this->addOption('padding', 6); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { $this->addOption('config', array()); $this->addOption('is_toggle', true); $this->addOption('is_textmode', true); $this->addOption('textarea_template', '%s'); parent::configure($options, $attributes); }
public function configure($options = array(), $attributes = array()) { $this->addRequiredOption('language'); $this->addOption('autocomplete', false); $this->addOption('readonly', false); $this->addOption('linenumbers', true); parent::configure($options, $attributes); }
/** * @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()) { $this->addOption('editor', 'fck'); $this->addOption('css', false); $this->addOption('tool', 'Default'); $this->addOption('height', '225'); $this->addOption('width', '100%'); parent::configure($options, $attributes); }
/** * * @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()) { $this->addOption('editor', sfConfig::get('app_a_editor', 'fck')); // For bc. Does nothing $this->addOption('css', false); $this->addOption('tool', 'Default'); $this->addOption('height', '225'); $this->addOption('width', '100%'); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { $this->setAttribute('cols', 70); $this->setAttribute('rows', 20); parent::configure($options, $attributes); $this->addOption('skin', 'simple'); $this->addOption('set', 'markdown'); $this->addOption('stacked', false); $this->addOption('height', null); }
/** * Constructor. * * Available options: * * * theme: The CKEditor 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->addOption('theme', 'advanced'); $this->addOption('width'); $this->addOption('height'); //config for CK editor $this->addOption('config', array()); $this->addOption('with_ckfinder', true); }
protected function configure($options = array(), $attributes = array()) { $editorClass = 'CKEditor'; if (!class_exists($editorClass)) { throw new sfConfigurationException(sprintf('CKEditor class not found')); } $this->_editor = new $editorClass(); $this->_editor->basePath = sfConfig::get('app_ckeditor_basePath'); $this->_editor->returnOutput = true; if (sfConfig::get('app_ckfinder_active', false) == 'true') { $finderClass = 'CKFinder'; if (!class_exists($finderClass)) { throw new sfConfigurationException(sprintf('CKFinder class not found')); } $this->_finder = new $finderClass(); $this->_finder->BasePath = sfConfig::get('app_ckfinder_basePath'); $this->_finder->SetupCKEditorObject($this->_editor); } if (isset($options['jsoptions'])) { $this->addOption('jsoptions', $options['jsoptions']); } parent::configure($options, $attributes); }
public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setAttribute('style', 'width: 800px; height: 300px;'); }
/** * Constructor. * * @see sfWidgetFormTextarea */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); }
public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addRequiredOption('editarea_options'); }
/** * Constructor. * * Available options: * * * config: The editor 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()) { $this->addOption('config'); $this->setOption('config', array_merge($this->getDefaultConfig(), dmArray::get($options, 'config', array()))); return parent::configure($options, $attributes); }