[OPEN] Editing a question updates comment_html which breaks download and in-line previewing for any files embedded in the comment
![Canvas](/html/assets/header_left_canvas.webp)
Engineers are currently investigating the issue.
Description
In Classic Quizzes if you embed a document to the feedback/comment area of a question, after submitting the quiz students will see a download icon next to the file, and they can open the file on the same page in DocViewer. If you edit a question that has a link to a file embedded in it’s comments like this, the download functionality and the DocViewer preview within the page will stop working and instead the link will force you to open the file in a new tab.
Expected Behavior
The in-line docviewer and download functionality for document links should remain on answer comments regardless of if the question has been edited.
Workaround
No workaround exists at this time.
Steps to Reproduce
Prereq: A published course with an active student enrolled.
-
Create a Classic Quiz
-
Add two questions and add answer feedback comments which include an embedded file link to a document
-
Link to how to add feedback comments section How do I create a Multiple Choice quiz question?
-
-
Edit one of the two questions and save it without changing anything.
-
Take the quiz as the student, and submit responses that will result in receiving the feedback comments you made
-
Observe that after submission the download icon only appears on the comment for the question you did not edit
-
Additionally the link without the download button lacks the ability to open the document in docviewer on the same page and the file opens in a new window.
-
Additional Info
QO-1153
Known issues indicate notable behaviors that have been escalated to the Canvas engineering team. Known issues are not a guarantee for an immediate resolution. This document is for informational purposes only and does not replace the Support process. If you are encountering the behavior outlined in this document, please ensure you have submitted a Support case (per your institution's escalation process) so Canvas Support can adequately gauge the overall customer impact and prioritize appropriately.