Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 
  * @param Custom $field The field
  */
 function __construct(Custom $field)
 {
     $this->field = $field;
     $this->attribs = $field->GetHtmlAttributes();
 }
 /**
  * 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);
 }