CKEditor is a JavaScript based WYSIWYG editor created for use within web pages. It is open source and plugin based making it both customizable and extensible.
The CKEditor website can be found in http://www.ckeditor.com and the source code of the library is available on github.
The official documentation of CKEditor can be found at http://docs.cksource.com/Main_Page