How to use the WYSIWYG editor?

Okay I am making an articles mod for use with Xenforo but i know bugger all really about Xenforo's innerds nor do i have the time to look so i am reaching out to you lot :)

How would i go about making textarea's use the WYSIWYG editor that Xenforo has for postbits?