src/Easy/Element/RichText.php
public function render()
    {
        Openbizx::$app->getClientProxy()->includeRTEScripts();
        
        $elementName = $this->objectName;
        $elementNameAndContainer = $elementName."_container";
        $value = $this->getValue();
        $style = $this->getStyle();
        $width = $this->width ? $this->width : 600;
        $height = $this->height ? $this->height : 300;
        //$func = "onclick=\"editRichText('$elementName', $width, $height);\"";
        if(!strlen($value)>0) // fix suggested by smarques
            $value="&nbsp;";
        $sHTML = "<DIV id='$elementNameAndContainer' $style $func>".$value."</DIV>\n";
        $sHTML .= "<input type='hidden' id='hdn$elementName' name='$elementName' value=\"".$value."\" />"."\n";
        //$sHTML .= "<textarea rows=2 cols=20 id='hdn$elementName' name='$elementName'>".$value."</textarea>\n";
        $sHTML .= "<script>editRichText('$elementName', $width, $height);</script>";
        return $sHTML;
    }
public function render()
    {
        Openbizx::$app->getClientProxy()->includeRTEScripts();
        
        $elementName = $this->objectName;
        $elementNameAndContainer = $elementName."_container";
        $value = $this->getValue();
        $style = $this->getStyle();
        $width = $this->width ? $this->width : 600;
        $height = $this->height ? $this->height : 300;
        //$func = "onclick=\"editRichText('$elementName', $width, $height);\"";
        if(!strlen($value)>0) // fix suggested by smarques
            $value="&nbsp;";
        $sHTML = "<DIV id='$elementNameAndContainer' $style $func>".$value."</DIV>\n";
        $sHTML .= "<input type='hidden' id='hdn$elementName' name='$elementName' value=\"".$value."\" />"."\n";
        //$sHTML .= "<textarea rows=2 cols=20 id='hdn$elementName' name='$elementName'>".$value."</textarea>\n";
        $sHTML .= "<script>editRichText('$elementName', $width, $height);</script>";
        return $sHTML;
    }
Render, draw the element according to the mode

@return string HTML text