I once took a WYSIWYG text-editing component and built a sort of version control + content management system around it.
At one point, it worked for me, and I'm putting it here mainly as an archive, in case I need to look back at it.
You're welcome to use it, but be warned the original text-editing component was placed on the Internet under a dubious "do what you like"-type licence, so I can't vouch for what you're allowed to do with it.
Here's the code: cms.zip