_form; $options = array( 'PSpell'=>'PSpell', 'GoogleSpell'=>'Google Spell', 'PSpellShell'=>'PSpellShell'); // options must be started with editor_ to get stored $mform->addElement('select', 'editor_tinymce_spellengine', get_string('spellengine', 'admin'), $options); $mform->addElement('hidden', 'editor', 'tinymce'); parent::definition(); } static public function option_names() { return array('editor_tinymce_spellengine'); } }