OGRiMTIxN2NiYmQ3ODdiOWYwNjY1YmI0ZThlYjNiY2E0ZTBkMjNjM2U3MzU2OWE5NGExMTdmZWVlNzUyMTM3Zg.msfhczzd.eyJ1cmwiOiIvcGwvY291cnNlX2luc3RhbmNlLzIvaW5zdGFuY2VfcXVlc3Rpb24vMjA2LyIsImF1dGhuX3VzZXJfaWQiOiIxIn0
Skip to main content Accessibility guide
PrairieLearn Go home
  • XC 101, SectionA
  • Assessments
  • Gradebook
  • C4
Load from disk
  • Dev User student
    View type
    ✓ Staff view staff ✓ Student view student ✓ Student view without access restrictions student
    Effective user
    Customize…
    Course Requests Settings Log out

Regenerate assessment instance

Warning: Regenerating the assessment instance will select a new set of questions from this assessment. Any progress on the current assessment instance will be lost.

Are you sure you want to regenerate the assessment instance?

Course staff: Regenerate your assessment instance to pick up changes to the assessment or to get a fresh set of questions.

C4.20. Element pl-rich-text-editor: In-browser rich text editor

Questions below were designed to showcase the different features of pl-rich-text-editor. The goal of pl-rich-text-editor is to allow users to directly write or modify formattable text within their web browser. To require students to edit unformatted text, such as source code, please consider using pl-file-editor.

Note:There is no autograding setup for this example. While it may be possible to use autograding for the HTML code generated by this element, the element is designed with a focus on manual grading.


The default behavior for the pl-rich-text-editor element is displayed here.

What is the meaning of life?


If there is more than one pl-rich-text-editor element on the page, additional instances of the element must be given a unique file-name attribute. This attribute is the name of the file where the student answer will be saved to. Also, the rich text editor can be pre-populated with a starter template by adding text into the element, or by using source-file-name="initial.html".

How many woodchucks would a woodchuck chuck if a woodchuck could chuck wood? Justify.


A character or word counter can be turned on by setting counter="character" or counter="word" respectively. The default setting, counter="none", disables the counter.


This element also supports the ability to disable clipboard operations like cut, copy and paste, by setting clipboard-enabled="false". In such cases, attempts to use clipboard operations will be ignored. Note that the editor content is still available in the browser's developer tools, which would allow students to copy the content anyway. Also note that preventing operations like copying or pasting text may be detrimental to the student's experience, and as such should be avoided unless absolutely necessary.

Clipboard operations (cut, copy, paste) are not available for this question.

Other themes may also be used by setting quill-theme="bubble". The bubble theme, for example, hides the toolbar, but opens a tooltip when the user selects some text, with common formatting options.

How do you fry an egg?


The element also supports setting the initial content using Markdown format by setting format="markdown". This option allows the source file name or content to be interpreted in this format. The student experience will not typically be significantly affected. The output format of the file is still set to HTML, as a conversion to Markdown may cause loss of data or formatting.

What are the steps necessary to create a peanut butter and jam sandwich?


A minimum word count can be enforced using min-word-count. Submissions with fewer words will be marked as invalid. The word counter is automatically enabled when bounds are set.

Write at least 10 words describing your favorite season.

(Minimum 10 words)

A maximum word count can be enforced using max-word-count. Submissions exceeding the limit will be marked as invalid.

In at most 25 words, summarize the plot of your favorite movie.

(Maximum 25 words)

Both min-word-count and max-word-count can be used together to require answers within a specific range.

Write between 50 and 100 words explaining why you chose your major.

(Required 50–100 words)
Additional attempts available with new variants

Correct answer

Collection 4

Assessment overview
Total points: 0/360
Score:
0%

Question C4.20

All variants: Open (current)
Total points: — /2
Manually-graded question

This form is only for reporting errors in the question itself. Do not use this form if you just don't know how to answer the question.

Previous question Next question

 Personal Notes

No attached notes

Attached files will be saved here for your reference. These files act as personal notes and can be used for your own review purposes. They are not used for grading.

Max file size: 10 MB

Attached personal notes will be saved here for your reference. These notes can be used for your own review purposes. They are not used for grading.

Staff information

Student details

Dev User
dev@example.com

Question

QID:
element/richTextEditor
Title:
Element pl-rich-text-editor: In-browser rich text editor

Variant

Started at:
2026-08-04 16:37:45 (CDT)
Duration:
0s
Show/Hide answer
{}

Assessment instance

Assessment:
gallery/elements
Started at:
2026-08-04 16:37:17 (CDT)
Duration:
0s
View log
This box is not visible to students.