Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85068

AI: Do not store prompt in HTML as data attribute

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • AI
    • None
    • MOODLE_405_STABLE

      When you insert AI generated content (with tiny_aiplacement), Moodle puts the content in a span tag with these three data attributes:

      • data-generated="true"
      • data-prompt
      • data-time-created

      (see lib/editor/tiny/plugins/aiplacement/templates/textinsert.mustache)

      I would suggest to remove this feature as it is questionable:

      • Copying the prompt causes potential problems in some places, such as cloze questions (when you provide some instructions and examples in your prompt about Moodle's cloze syntax).
      • The Tiny editor copies these attributes into a new (self-written) paragraph when you press Enter after the AI text.
      • These attributes are removed from text fields that are cleaned (forum posts for example), i.e. in the case of texts written by students you cannot see whether AI has been used, whereas the teacher's texts contain this labelling.
      • Users are unaware of this feature as the data is not shown in the user interface. They might put sensitive information in the prompt, such as a student's email with the instruction to summarise the text, revealing the author.

            Unassigned Unassigned
            mgauk Martin Gauk
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.