Beispiel #1
0
 public function setValue($value)
 {
     $args = new ContentEditorArgs();
     $args->setValue($value);
     $this->eventManager->dispatchEvent(ContentEditorEvents::onContentEditorLoad, $args);
     $value = $args->getValue();
     return parent::setValue($value);
 }
Beispiel #2
0
 /**
  * @param string $value
  * @return \Nette\Forms\Controls\TextBase
  */
 public function setValue($value)
 {
     return parent::setValue(html_entity_decode($value));
 }