|
When doing 1. We should also get rid of the separate image dropdown on the question editing forms, and the question.image field. Any questions that currently have an image should have the image added to the end of the question text.
Note to self. See Dongsheng's document at http://docs.moodle.org/en/Development:Convert_Draftarea_Files#editor_element
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. Images, etc, embedded in question text (including answers and feedback).
2. Images, etc, embedded in the student's response to essay questions, or other similar types.
3. Images, etc, embedded in the teacher's comment on a student's question attempt.
4. Images in the quiz intro and overall feedback.
2. and 3. may be best combined. We need to consider each attempt builds on last here. Another decision:
A. should the file area belong to the question_session, or
B. should the quiz (or whatever activity) be responsible for creating a file_area for the quiz_attempt, and passing it in to the questionlib.php functions that need it. I feel that the second possibility would make it easier to do the right access checks, but then we would need a solution for question preview.
Each attempt builds on last - we could always create the file area for the second attempt by copying the one for the first attempt.
See also MDL-15573 (temp files built during question export).