"Allow quick grading" launching HTML editor, change to plain text editor?

"Allow quick grading" launching HTML editor, change to plain text editor?

Judy Hsu -
回帖数:5

Hi all:

Just a quick qusetion, for 1.5.4+ or above, I believe that if you are in a instructor's view for assignment, then check the "allow quick grading" checkbox. Then, if you click on "Grade" or "Update" button, it will use "HTML Editor" by default for instructors to enter comments. However, if the instructor does use BOLD or Italic font in the comments, and save it, in the quick grading mode later in the Comment area, it will actually show you all the HTML codes of those fonts (which does make sense to developer, but NOT to instructors). So my question is, is there a quick way to replace the HTML editor here with some kind of plain text editor? Many thanks!

回复Judy Hsu

Re: "Allow quick grading" launching HTML editor, change to plain text editor?

Anthony Borrow -
Core developers的头像 Plugin developers的头像 Testers的头像
I think the quick grading box for comments is as quick and dirty as it can be made. The only way to change it would be to have HTML editor for each one but from what I have read there are some challenges presented when having more than one per page. I would give instructors a quick html cheat sheet. Perhaps you could add something to moodle docs on this. Some notes about how to grade the assignments and provide feedback would be nice somewhere around http://docs.moodle.org/en/Assignment_submissions
回复Anthony Borrow

Re: "Allow quick grading" launching HTML editor, change to plain text editor?

Judy Hsu -

Thanks Anthony for your promptly reply.

The reason that we want to replace HTML editor when you enable the "quick grading" is that if instructors graded (commented) the assignment using some BOLD font or something, then when them come back next time and see the Comment area displayed with whole bunch of HTML codes, they might got scared and don't want to use Moodle in the future. Not all instructors know about HTML and when they see HTML codes showing in the comment area they might think Moodle is broken or something (see the screenshot that I attached)...

I know the problem is on around line#45 of Moodle 1.5.4+ /mod/assignment/submissions.php

$assignmentinstance->submissions($mode);  // Display or process the submissions

But don't know how I could change it so that it would just become a plain-text text field input box instead of launching the HTML editor... any ideas? Thanks!

附件 HTML_screenshot.png
回复Judy Hsu

Re: "Allow quick grading" launching HTML editor, change to plain text editor?

Anthony Borrow -
Core developers的头像 Plugin developers的头像 Testers的头像
I understand the reaction - even knowing HTML I was confused as to why the tags were showing up when I first saw the quick grading functionality added. For now though it seems to be the best that we have for quick editing. Perhaps with TinyMCE and other possible HTML editors something will be able to be done that is better. To a certain degree, I wonder if we might be expecting too much - that is to say - wanting the best of both worlds. The simplicity of having the text is a small textbox and the functionality of being able to edit as if it were an editor. One option would be only allow the adding/editing of comments in the popup grading form and simply display the text. That might reduce the confusion for your teachers but then they lose the ability to add a bunch of quick comments.
回复Anthony Borrow

Re: "Allow quick grading" launching HTML editor, change to plain text editor?

Judy Hsu -
/td> /td> /td> So I assume that there is no quick fix for this issue? I'm looking at the function submissions($mode) in /mod/assignment/lib.php right now (line #553) to see if I could figure out a fix.. am I looking at the right place? What is the function that trigger HTML editor and could I replace this function with another one that simply use plain text editor? Thanks! /td>
回复Judy Hsu

Re: "Allow quick grading" launching HTML editor, change to plain text editor?

Anthony Borrow -
Core developers的头像 Plugin developers的头像 Testers的头像
Wen - I would not recommend replacing it with the HTML Editor. I vaguely remember reading about an issue with having more than one on a page. You would have one per submission on the same page. You may want to do a little searching on the forums to see what the issues were/are. I suspect that you are in the right spot but I would have to go diving in to the code to confirm. I do not know it well enough off the top of my head to say for certain. Peace.