HTMLArea Not Showing

HTMLArea Not Showing

por Conrad Taylor -
Número de respostas: 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

Média das avaliações:  -
Em resposta à Conrad Taylor

Re: HTMLArea Not Showing

por 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 -