Resource for creating a Text Editor (kinda like gmail or wordpress)

I’m looking to create a textarea that you can edit (bold, create
links, view html etc.), much like Wordpress or gmail.

Anyone know a good resource to learn how to do this?

TinyMCE (which Wordpress uses) or FCKEditor would work fine for this.

And of course there are some plugins or gems for easy integration of
TinyMCE. Search for them.

Oh. Here it is