Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Re: Adding a text editor to a Moodle form

$
0
0
by Sankar Mahadevan.  

Hi Davo,

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 their answers in input 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 media.  Here we dont use $mform also.  Please help me to enable this.  Any help would be appreciated.  Thanks in advance.

Regards,

Sankar.


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>