$mform->addElement('editor', 'introeditor', get_string('moduleintro'), array('rows' => 10), array('noclean' => true, 'context' => $context, 'subdirs' => true)); $mform->setDefault('introeditor', array('text'=>'Default text!', 'format' => FORMAT_HTML)); $mform->setType('introeditor', PARAM_RAW);And this code to:
$mform->addElement('editor', 'introeditor', get_string('moduleintro'), array('rows' => 10), array('noclean' => true, 'context' => $context, 'subdirs' => true))->setValue( array('text' => 'Default text!') );Any other suggestion to set the default value of an editor?
Thanks in advance