src/Easy/Element/CKEditor.php
public function render()
    {
        Openbizx::$app->getClientProxy()->includeCKEditorScripts();

        $elementName = $this->objectName;

        $value = $this->getValue();
        $value = htmlentities($value, ENT_QUOTES, "UTF-8");
        $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;";

        $type = strtolower($this->mode);
        $fileBrowserPage = OPENBIZ_APP_URL."/bin/filebrowser/browser.html";

        $languageCode = I18n::getCurrentLangCode();
        $languageCode = str_replace("_","-",$languageCode);
        $config = $this->config;        
        $sHTML .= "<textarea id=\"$elementName\" name=\"$elementName\" >$value</textarea>\n";
        $sHTML .= "<script type=\"text/javascript\">\n";
        if($config){
        	//remove the last commas
        	$config=trim($config);
        	if(substr($config,strlen($config)-1,1)==','){
        		$config = substr($config,strlen($config)-1);
        	}
        	$sHTML .= "Openbizx.CKEditor.init('$elementName',{'type':'$type','filebrowserBrowseUrl':'$fileBrowserPage','language':'$languageCode','height':'$height','width':'$width',$config});\n";
        }else{
        	$sHTML .= "Openbizx.CKEditor.init('$elementName',{'type':'$type','filebrowserBrowseUrl':'$fileBrowserPage','language':'$languageCode','height':'$height','width':'$width'});\n";
        }
        $sHTML .= "</script>\n";
        
        return $sHTML;
    }
public function render()
    {
        Openbizx::$app->getClientProxy()->includeCKEditorScripts();

        $elementName = $this->objectName;

        $value = $this->getValue();
        $value = htmlentities($value, ENT_QUOTES, "UTF-8");
        $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;";

        $type = strtolower($this->mode);
        $fileBrowserPage = OPENBIZ_APP_URL."/bin/filebrowser/browser.html";

        $languageCode = I18n::getCurrentLangCode();
        $languageCode = str_replace("_","-",$languageCode);
        $config = $this->config;        
        $sHTML .= "<textarea id=\"$elementName\" name=\"$elementName\" >$value</textarea>\n";
        $sHTML .= "<script type=\"text/javascript\">\n";
        if($config){
        	//remove the last commas
        	$config=trim($config);
        	if(substr($config,strlen($config)-1,1)==','){
        		$config = substr($config,strlen($config)-1);
        	}
        	$sHTML .= "Openbizx.CKEditor.init('$elementName',{'type':'$type','filebrowserBrowseUrl':'$fileBrowserPage','language':'$languageCode','height':'$height','width':'$width',$config});\n";
        }else{
        	$sHTML .= "Openbizx.CKEditor.init('$elementName',{'type':'$type','filebrowserBrowseUrl':'$fileBrowserPage','language':'$languageCode','height':'$height','width':'$width'});\n";
        }
        $sHTML .= "</script>\n";
        
        return $sHTML;
    }
Render element, according to the mode

@return string HTML text