You should check the forums on the HTMLArea website at
http://www.htmlarea.com. Everything I've needed to know about HTMLArea I've found there.
My installation of HTMLArea is pretty customized, so I don't think sharing my code with you will help.
With regards to PHP, HTMLArea is fairly straight forward. Visit the website. Look at the examples that are provided. If you look at these examples you'll find that installing HTMLArea requires a few lines of javascript between the <head> tags, an onload event for the <body> element, and a textarea. The name of the textarea must be provided in more than one place, but that should be easy to pick out. When you submit the page, the HTML in the WYSIWYG will be available in PHP under the name of the textarea box, just as it would be if you hadn't installed HTMLArea at all. Placing HTML in the WYSIWYG can be done in several ways, if you just want to edit a document, place the HTML you want to edit between the <textarea></textarea> tags and HTMLArea will automatically pick up on it.
If you have trouble with the installation search in the HTMLArea forums. I've been able to solve every problem that's come up by referencing the forums (albeit sometimes it takes a lot of digging, but there is a wealth of information there). There were quite a few bugs with Mozilla/Firefox that I fixed by searching these forums.
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design