html editor - missing upload button

html editor - missing upload button

by Flo Jungwirth -
Number of replies: 2

Dear community,

I have a problem with the html editor, using following code:

$mform->addElement('htmleditor', 'description', get_string('message', 'forum'), array('cols'=>50, 'rows'=>30));
$mform->setType('description', PARAM_RAW);
$mform->addRule('description', get_string('required'), 'required', null, 'client');

The problem is that the "find or upload an image" button is missing.

Any ideas why and how can I add this button?

Thanks in advance,

Flo

Average of ratings: -
In reply to Flo Jungwirth

Re: html editor - missing upload button

by Dongsheng Cai -

Are you using moodle 2.0? We no long use htmleditor element in 2.0, it's been replaced by 'editor' element, the old htmleditor doesn't support files.