Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-5341

QTI: Option to prevent copy/paste in essay entry

    XMLWordPrintable

    Details

      Description

      To prevent copy paste from pre-written essays, from online resources or from chat messages with other aexaminees, the copy past shall in the essay area shall be configurable.

      The problem with a simple solution is that copy/paste is a very commonly used pattern even when writing new text. It is not only used to copy from external resources, it is also used when working within the text. This kind of copy/paste shall be allowed, only copying from an external resource shall be prevented

       

      • In the editor add an option to enable/disable the copy&paste protection
      • In the AssessmentObjectComponentRenderer add onpaste, oncopy and oncut listener when the option is enabled
      • If the option is enabled, also add a little message above the input field that states that it is not possible to copy from another resource
      • Implement a JS function that blocks the paste unless prior to the paste a copy/cur has been made that contains the same content as the one that the user want's to paste
        Pseudo code: 
        on copy/cut: remember the copied/cut text in a variable A
        on paste: if A is the same as the paste content, the allow pasting, if it is different, then ignore the paste and show an alert message

       

        Figma for Jira By 42nd

          Attachments

            Activity

              People

              Assignee:
              srosse Stéphane Rossé
              Reporter:
              gnaegi Florian Gnägi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: