Copy/paste blocking difference between Moodle 4.1 (Atto) and 4.5 (TinyMCE)

Copy/paste blocking difference between Moodle 4.1 (Atto) and 4.5 (TinyMCE)

by Susana L. -
Number of replies: 3
Picture of Particularly helpful Moodlers

Hi,

While testing the Quiz setting “Fullscreen pop-up with some JavaScript security”, I noticed different behaviour between versions:

  • In Moodle 4.5 (TinyMCE), copy/paste via keyboard shortcuts (Ctrl+C / Ctrl+V) is still possible in Essay questions when the HTML editor is enabled, although the right-click menu is disabled.
  • In Moodle 4.1 (Atto), copy/paste seemed to be blocked under the same conditions.

Could someone please confirm whether this is an expected change related to TinyMCE, or a known limitation/regression in quiz JavaScript security?

Thank you!
susana

Average of ratings: -
In reply to Susana L.

Copy/paste blocking difference between Moodle 4.1 (Atto) and 4.5 (TinyMCE)

by Susana L. -
Picture of Particularly helpful Moodlers
Update: I verified that in Moodle 4.1, when using TinyMCE, copy/paste via keyboard shortcuts is also not prevented.
The blocking only occurs when the Essay question uses the Atto editor (or no HTML editor). So the behaviour is related to the text editor rather than the Moodle version.

Could someone please confirm whether, when using TinyMCE, copy/paste cannot be prevented, and that the only way to block it is by not using an HTML editor in Essay questions?
In reply to Susana L.

Copy/paste blocking difference between Moodle 4.1 (Atto) and 4.5 (TinyMCE)

by Acqua Alta -
Picture of Particularly helpful Moodlers
Hi Susana,
Please see the following plugin:
https://moodle.org/plugins/local_preventcopy

I didn't try it myself yet. But by the description itself, maybe it will somehow be relevant to your scenario.
In reply to Acqua Alta

Copy/paste blocking difference between Moodle 4.1 (Atto) and 4.5 (TinyMCE)

by Susana L. -
Picture of Particularly helpful Moodlers
Hi Acqua,
Thank you for your input. That’s an interesting plugin.

At the moment, we are trying to avoid adding more additional plugins to our Moodle instance.
Could you please confirm whether, in a quiz using “Fullscreen pop-up with some JavaScript security”, it is currently not possible for the teacher to prevent copy/paste via keyboard shortcuts when TinyMCE is enabled in essay questions?

Thank you in advance.