Example #1
0
 /**
  * Editor::getField()
  *
  * return the field
  *
  * @return string: the field
  * @author Teye Heimans
  * @access public
  */
 function getField()
 {
     // view mode enabled ?
     if ($this->getViewMode()) {
         // get the view value..
         return $this->_getViewValue();
     }
     $html = parent::getField();
     // add the javascript needed for the js calendar field
     $this->_oForm->_setJS("\n\t\t\tCKEDITOR.replace( '" . $this->_sName . "', " . json_encode($this->_oEditor->config) . " );\t\t\n\t\t", 0, 0);
     return $html;
 }