Example #1
0
    function display()
    {
        global $mod_strings;
        $description = $this->bean->description;
        $description = <<<EOQ
<div id='description_text_div'>
    <textarea class = 'ckeditor' id='editor1' tabindex='0' name='description' cols="100" rows="40">{$description}</textarea>
</div>
EOQ;
        $this->ev->ss->assign("CUSTOM_DISCRIPTION", $description);
        parent::display();
        require_once "include/SugarCKEditor.php";
        $ckeditor = new SugarCKEditor();
        echo $ckeditor->getInstance();
        $javascript = <<<EOQ
<script type="text/javascript" language="Javascript">
</script>
EOQ;
        echo $javascript;
    }
Example #2
0
    function addHtml($displayname, $varname)
    {
        global $timedate;
        //letrium ltd
        $displayname = addslashes($displayname);
        $userformat = '(' . $timedate->get_user_date_format() . ')';
        $cal_dateformat = $timedate->get_cal_date_format();
        global $app_strings, $app_list_strings, $theme;
        require_once "include/SugarCKEditor.php";
        $ckeditor = new SugarCKEditor();
        $javascript = $ckeditor->getInstance();
        $html = <<<EOQ
\t<tr><td scope="row" width="20%"">{$displayname}</td></tr>
\t<tr><td class='dataField' colspan="4">{$javascript}<textarea class = 'ckeditor' id='editor1' tabindex='0' name='{$varname}' cols="100" rows="40">{$description}</textarea></td>
EOQ;
        return $html;
    }