HTMLArea Not Showing

HTMLArea Not Showing

by 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

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