Slight faff, but if you close your keyboard in the OP screenshot then it should just leave the full menu (including spoiler option) in view, which you can then select and go back to typing your post again.
I thought the smaller keyboard had sorted it, but no. It only does it on certain threads; I wonder if has to do with images on the threads or something.