I'm not too clear as to what you mean by "spoiler" functionality.
Perhaps you've confused BBCode with Rich Text? "Spoiler functionality" would make more sense in that context. I'm not aware of any offline Rich Text editors. In BBCode, at least for this site, spoiler tags work as: