HTMLArea Not Showing

HTMLArea Not Showing

par Conrad Taylor,
Nombre de réponses : 2

Hi all, I am creating an extra page for my moodle site, and I am trying to incorporate HTMLArea with the page, but for some reason the HTMLArea is failing to show, only text area showing.

The code I am using is as shon below.


$usehtmleditor = can_use_html_editor();

         print_textarea($usehtmleditor, 10, 50, 660, 200, "summary", $form->summary);
        helpbutton("text", get_string("helptext"));
        if (isset($err["summary"])) formerr($err["summary"]);


Any suggestions as to the solution to my problem?

P.S The HTMLArea shows in all the relevant sectiosn within mysite.. so its has been config correctly.

cheers Conrad

Moyenne des évaluations  -
En réponse à Conrad Taylor

Re: HTMLArea Not Showing

par Janne Mikkonen,
You'll need to print out the calling script also that actually fires up the editor (put it at the bottom of your page).
Something like this:

... your code here ...
if ($usehtmleditor) {
use_html_editor();
}

print_footer($course);

- Janne -