HTMLArea Not Showing

HTMLArea Not Showing

- Conrad Taylor の投稿
返信数: 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

Conrad Taylor への返信

Re: HTMLArea Not Showing

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