Revision color for typed/pasted text

The simple version of what I’m doing is I want all revision done (at a certain point) to be in a single (default) color, for instance red instead of black.

But the trick is that not only means typing, but also things like pasted text.

I’ve looked at some of the source code for text formatting on GitHub and while I can envision how I might do it, the amount of hackery I would have to encapsulate it in makes me think there must be some simpler way.

Does anyone have any good suggestions as to where I should start looking?

The approach I’d recommend (though depending on your precise requirements it might not be the best approach for you, of course) is to track the ranges that were inserted (by directly inspecting transactions) and use decorations to style all text in those ranges. prosemirror-changeset might be helpful for going from steps to changed ranges.