Thank youYou can also do it without manually imputing the required code.
Click on the "insert" drop-down (it's the one with three dots and a downward pointing triangle) from the editing bar. Click on "spoiler" (the one with the flag). First pop-up will have you enter the spoiler title, do it then hit continue, then type/paste the content between the two opposite facing big brackets.