Styling Highlight Question text to indicate interactive words/groups | Experience Community
Skip to main content
Solved

Styling Highlight Question text to indicate interactive words/groups

  • Apr 27, 2023 8:05 PM UTC
  • 3 replies
  • 151 views

Forum|alt.badge.img+2

I want to style text that is selectable in a highlight question so the user can easily see what’s interactive without having to hover over every line. There is no rich text editor in the text highlight edit section, so I’m wondering if there’s a way around that.

Best answer by Tom_1842

Hi, the below JavaScript will underline words that are selectable for a Highlight question.

jQuery("#"+this.questionId+" span.HLTextWord").css("text-decoration", "underline");

I found it on here.

View original

3 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • Answer
  • Apr 27, 2023 8:44 PM UTC

Hi, the below JavaScript will underline words that are selectable for a Highlight question.

jQuery("#"+this.questionId+" span.HLTextWord").css("text-decoration", "underline");

I found it on here.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • Apr 28, 2023 6:15 PM UTC

Thanks so much, Tom. Trying it now and will report back.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • Apr 28, 2023 9:08 PM UTC

This worked perfectly. Thanks a ton, Tom.