General developer forum

TinyMCE / WYSIWYG - Admin Settings

 
 
Picture of Aaron Leggett
TinyMCE / WYSIWYG - Admin Settings
 

Hey Team,

I am developing a course block that has a site-wide setting on the mod for an email that is to be sent on condition.
I have successfully implemented a setting to the

/admin/settings.php?section=blocksettingenrolmenttimer

page, but it is only a textarea. I currently use the following code to add this item to the settings page;

$settings->add(new admin_setting_configtextarea(
'enrolmenttimer/timeleftmessage',
get_string('timeleftmessage','block_enrolmenttimer'),
get_string('timeleftmessage_help', 'block_enrolmenttimer'),
''
));

 

Does anyone know if its possible to change this to be a TinyMCE input, or do the settings pages not support it?

Your help would be greatly appreciated! 

 
Average of ratings: -
Picture of Aaron Leggett
Re: TinyMCE / WYSIWYG - Admin Settings
 

For reference of anyone in the future, I have fixed this issue by using the following;

admin_setting_confightmleditor

I found all the definitions of the admin settings in the following file

http://www.sourcexref.com/xref/moodle/nav.html?_classes/index.html

 
Average of ratings: -