How can I add Format drop down to update assignment screen

How can I add Format drop down to update assignment screen

by Tom Atkins -
Number of replies: 3

I have just upgraded to 1.8.2+ from 1.6.

The HTML editor is disabled on our site. We write all resources etc in Markdown.

I used to write the description for assignments in Markdown. These still work for old assignments (it seems that the format option is still in the database as my old assignments are still formatted and displayed with Markdown OK).

If I start a new assignment there is now no "Format" drop down box to choose Markdown etc.

Can anyone tell me what file I should edit to bring back the drop down box?

I hope this should be fairly trivial... any help much appreciated!

Thanks, Tom.

Average of ratings: -
In reply to Tom Atkins

Re: How can I add Format drop down to update assignment screen

by Tom Atkins -
Anyone able to help me on this?

I've hacked a solution by changing the default "Format" in the Assignment database table to "4" which is Markdown.
In reply to Tom Atkins

Re: How can I add Format drop down to update assignment screen

by Scott Turner -
Once you actually find the code, it is pretty trivial. Edit the mod_form.php file for the assignment module and add the line
$mform->addElement('format', 'format', get_string('format'));

after the htmleditor. In my case, I inserted it after line 41. That seems to do it although I haven't tested it with more that a "it looks like it's working." This may also work with other modules, but I haven't tried.

Average of ratings: Useful (1)
In reply to Scott Turner

Re: How can I add Format drop down to update assignment screen

by Tom Atkins -
Just to say a very belated thanks Scott!