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