You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user receives feedback, the contenteditable may contain a span element with highlighted text. If the user wishes to modify their answer, the highlighting should behave in one of two ways:
Only remove the span tags (containing a CSS style class to add background color) if the inner text has been modified. This can potentially be achieved with an event listener listening for a state change within the span content. (preferable)
Remove the span immediately once the answer is changed at all, regardless of what has been changed.
The highlighted user input (span element) can be retrieved using `${contentID}_${fieldID}_input_highlight` and checking to make sure element !== null. Removing the highlight span could probably be accomplished by replacing the highlightPattern regex with an empty string.
The text was updated successfully, but these errors were encountered:
When a user receives feedback, the
contenteditable
may contain aspan
element with highlighted text. If the user wishes to modify their answer, the highlighting should behave in one of two ways:span
tags (containing a CSS style class to add background color) if the inner text has been modified. This can potentially be achieved with an event listener listening for a state change within thespan
content. (preferable)span
immediately once the answer is changed at all, regardless of what has been changed.The highlighted user input (
span
element) can be retrieved using`${contentID}_${fieldID}_input_highlight`
and checking to make sureelement !== null
. Removing the highlightspan
could probably be accomplished by replacing thehighlightPattern
regex with an empty string.The text was updated successfully, but these errors were encountered: