/** * Adds a field with the default rich text editor * @param string $name The field name * @param string $value The field value */ protected function AddRichTextField($name, $value = '') { $renderer = new CKEditorRenderer(PathUtil::BackendRTEPath(), PathUtil::BackendRTEUrl(), PathUtil::UploadPath(), PathUtil::UploadUrl(), self::Guard()); $field = new Custom($renderer); $field->SetName($name); $field->SetValue($value); $this->AddField($field); }
/** * Adds the field for mail text 1 */ private function AddMailText2Field() { $name = 'MailText2'; $renderer = new CKEditorRenderer(PathUtil::BackendRTEPath(), PathUtil::BackendRteUrl(), PathUtil::UploadPath(), PathUtil::UploadUrl(), self::Guard()); $field = new Custom($renderer); $field->SetName($name); $field->SetValue($this->register->GetMailText2()); $this->AddField($field); }