Hello,
Please see screenshot below. How can I add the file browsing option in my editor?
I've made sure that my plugin has the course context and I have instantiated the form very well. But I need the ability to add files through the editor. See my code below:
$mform->addElement('editor', 'intro', get_string('intro', 'block_archivedata'), array(
'subdirs' => 0,
'maxbytes' => 0,
'maxfiles' => 0,
'height' => 500, // height of the popup window
'width' => 150,
'changeformat' => 0,
'context' => null,
'noclean' => 0,
'trusttext' => 0,
'enable_filemanagement' => true)); // Add elements to your form
$mform->setType('intro', PARAM_RAW);
$mform->addRule('intro', null, 'required', null, 'client');