How to enable File upload in Moodle media button in text editor of my block?
We have developed a custom module called My Assessments. Admin can create an assessment; while creating he can create input fields like textarea, checkbox, radio button for user inputs. All these input field information will be stored in database. User can log in and give input in fileds like textarea, checkbox, radio button. User can edit the entered input value also. Both the form and input fields will be created dynamically with the help of information stored in database. I am able to create a texteditor in other places with moodle media by adding the code "$mform->addElement('editor', 'introeditor', get_string('intro', 'assess'), null, array('maxfiles' => EDITOR_UNLIMITED_FILES));" . But here I dont know how to create texteditor with moodle medi. Please help me to enable this. Any help would be appreciated. Thanks in advance.