Editor toolbar generates invalid multi-paragraph spoilers

Yes, that is more or less how the code toolbar button already works – try it – so I think @eviltrout can just adopt that exact behavior.