When students Paste a screenshot into Online text assignment, they can see the image in the Editing field.
But, after submission, the screenshot picture is NOT saved. When checking the <code>, all Base64 code disappeared.
Then, I checked the permission to Enable trust content in site level:
Also, enable trust content to the Student role.
After the changes, a student role can Paste a screenshot (the same Base64 code image) to forum successfully.
My Question is:
Why the student role can paste Screenshot (Base64 code) into Forum, but not in Online text Assignment? If it is a security reason, I think the forum and assignment should be treated as the same.
Tested on Moodle V3.1, V3.2 and V3.5, Screenshot images copied/created on Mac and On Windows. Browsers include Chrome and Firefox on Mac and PC.
All screenshot is Base64 code. Another way to obtain a Base64 image: you can go to Google home page, click the Image tab, every thumbnail in Google image page is generated with Base64 code, you can Right-click to "Copy Image' and paste it to your page, then, you can view the code in the <> mode.