If you are manually trying to type the spoiler tags out... you aren't doing it right.
Manually: Just insert the equal sign in the first bracket. then if you want a text header for your spoiler, just type in a few words after the equal sign.
E.g:
Automatic: Just go to the advanced mode and click on the spoiler wrap icon in the editing toolbar. Easy peasy from there.