コード例 #1
0
ファイル: html_editor.php プロジェクト: ragebat/chamilo-lms
 /**
  * @return string
  */
 public function buildEditor()
 {
     $result = '';
     if ($this->editor) {
         $this->editor->value = $this->getValue();
         $this->editor->setName($this->getName());
         $result = $this->editor->createHtml();
     }
     return $result;
 }
コード例 #2
0
 /**
  * @param bool $style
  *
  * @return string
  */
 public function buildEditor($style = false)
 {
     $result = '';
     if ($this->editor) {
         $this->editor->value = $this->getValue();
         $this->editor->setName($this->getName());
         if ($style == true) {
             $result = $this->editor->createHtmlStyle();
         } else {
             $result = $this->editor->createHtml();
         }
     }
     return $result;
 }