YUI recommends YUI 3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
This example demonstrates how to toggle from a plain text field to the Rich Text Editor with a simple button click.