[svn r11402] function needed for new survey tool

skala
Patrick Cool 18 years ago
parent e6c2d7604c
commit bec6f0cc0e
  1. 16
      main/inc/lib/main_api.lib.php

@ -1579,6 +1579,22 @@ function api_disp_html_area($name, $content = '', $height = '', $width = '100%',
}
echo $editor->toHtml();
}
function api_return_html_area($name, $content = '', $height = '', $width = '100%', $optAttrib = '')
{
global $_configuration, $_course, $fck_attribute;
require_once(dirname(__FILE__).'/formvalidator/Element/html_editor.php');
$editor = new HTML_QuickForm_html_editor($name);
$editor->setValue($content);
if( $height != '')
{
$fck_attribute['Height'] = $height;
}
if( $width != '')
{
$fck_attribute['Width'] = $width;
}
return $editor->toHtml();
}
/**
* Send an email.

Loading…
Cancel
Save