processShortcodes = !!$options["shortcodes"]; } } public function forTemplate() { if ($this->processShortcodes) { return ShortcodeParser::get_active()->parse($this->value); } else { return $this->value; } } public function exists() { return parent::exists() && $this->value != '

'; } public function scaffoldFormField($title = null, $params = null) { return new HTMLEditorField($this->name, $title, 1); } public function scaffoldSearchField($title = null) { return new TextField($this->name, $title); } }