KWIGA help center LMS (education) Create a course and a bootcamp How to add text with spoiler to the lesson

How to add text with spoiler to the lesson

Articles:

How do you add text with spoilers to the lesson, creating interactive and engaging material?


You can add spoilers to a lesson using the code editor. First, prepare the text that you want to hide under a spoiler. You can leave part of the text above the spoiler (a title or an indication that there is hidden text).

 

 

Next, you need to add tags. Open the code editor, and you will see a black area at the bottom.

 

At the beginning of the text, add the tag

. This tag should be placed at the very beginning, before the title and even before the part that you want to leave above the spoiler.

At the very end of the text, add the tag <\/details>.

These actions will hide all the text placed between the tags under a spoiler. If you want to leave the title visible, then add the tag

at the beginning of the title, and add the tag <\/summary> at the end of the title.

Important! Add the tags not directly before the text, but leave the existing tags untouched. The correct placement is shown below in the example: