Skip to content

Add an html attributes option to essay boxes#1414

Merged
Alex-Jordan merged 2 commits into
openwebwork:PG-2.21from
dlglin:essay-box-options
May 23, 2026
Merged

Add an html attributes option to essay boxes#1414
Alex-Jordan merged 2 commits into
openwebwork:PG-2.21from
dlglin:essay-box-options

Conversation

@dlglin
Copy link
Copy Markdown
Member

@dlglin dlglin commented May 22, 2026

This allows a problem author to set html attributes when creating an essay answer box.

The motivation for this was a request from an instructor to limit the length of student essay answers, which can now be accomplished by setting the maxlength attribute.

The attributes hash is inserted before any hard-coded attributes so that the problem author can't override any of these.

Copy link
Copy Markdown
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me.

Comment thread macros/core/PGessaymacros.pl Outdated
Co-authored-by: Glenn Rice <47527406+drgrice1@users.noreply.github.com>
@Alex-Jordan Alex-Jordan merged commit 5377391 into openwebwork:PG-2.21 May 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants