Skip to content

Commit

Permalink
[#12460] Set character limit on question description (#12620)
Browse files Browse the repository at this point in the history
* added character limit to frontend

* updated snapshot

* Updated snapshot

---------

Co-authored-by: Wei Qing <[email protected]>
  • Loading branch information
u7718594 and weiquu authored Dec 4, 2023
1 parent 8634a78 commit 57e254d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</pre>
</div>
<div class="col-md-10">
<tm-rich-text-editor [richText]="description" (richTextChange)="triggerDescriptionChange($event)" [isDisabled]="isDescriptionDisabled" minHeightInPx="100" [placeholderText]="'More details about the question e.g. &quot;In answering the question, do consider communications made informally within the team, and formal communications with the instructors and tutors.&quot;'"></tm-rich-text-editor>
<tm-rich-text-editor [richText]="description" (richTextChange)="triggerDescriptionChange($event)" [hasCharacterLimit]="true" [isDisabled]="isDescriptionDisabled" minHeightInPx="100" [placeholderText]="'More details about the question e.g. &quot;In answering the question, do consider communications made informally within the team, and formal communications with the instructors and tutors.&quot;'"></tm-rich-text-editor>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ exports[`QuestionEditFormComponent should snap with default view 1`] = `
<div
inviewport=""
>
<div
style=""
>
2000 characters left
</div>
</div>
</tm-rich-text-editor>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,11 @@ exports[`InstructorSessionEditPageComponent should snap with feedback session qu
<div
inviewport=""
>
<div
style=""
>
2000 characters left
</div>
</div>
</tm-rich-text-editor>
</div>
Expand Down Expand Up @@ -2193,6 +2198,11 @@ exports[`InstructorSessionEditPageComponent should snap with feedback session qu
<div
inviewport=""
>
<div
style=""
>
2000 characters left
</div>
</div>
</tm-rich-text-editor>
</div>
Expand Down Expand Up @@ -4099,6 +4109,11 @@ exports[`InstructorSessionEditPageComponent should snap with new question added
<div
inviewport=""
>
<div
style=""
>
2000 characters left
</div>
</div>
</tm-rich-text-editor>
</div>
Expand Down

0 comments on commit 57e254d

Please sign in to comment.