textStylingAtPosition should always reflect the current style. It returns incorrect values when called after executing one of the toggle styling commands.
Created attachment 237272 [details]
Comment on attachment 237272 [details]
It would be nice if we could at some point have only one copy of this and perhaps also eliminate the whole insert-and-remove-span-to-figure-out-style hack.
Committed revision 173071.