What is it? TextAreaEditor is a WYSIWYG editor for the textarea. It works with Ie4.x and above. I lifted the DHTML editor (from somewhere, yes, i will tell them) and rolled a Zope product that subclassed DTML Document. Currently, there's no __init__ in the product. It uses default init (because i can't find out how to add the __init__ when subclassing DTML Document/Method). Therefore, some properties are set up after instantiating the product. A pointer on how to make this better is sought. That's the main reason for this release. Also, i don't know much javascript/dhtml. so dont ask me those kinda question. Do give me the answers, though. :) What does it do? Say we have a form, called post_html with: ###############post_html#######################


Name:
Comments:
############################################## the dtml method accepting REQUEST objects from post_html ###############getall########################


says:
############################################## This form will have a plain textarea where users can fill in comments. Now, with TextAreaEditor, ie users will have a toolbar to help format their comments in the textarea. This product uses DHTML, and therefore, other browser users will not see anything. OK, a few modification is needed on the above form. ###############post_html#######################

<--this
Name:
Comments: <--this
############################################## notice the onsubmit="copyValue(this)" and . Where does the come from? Instantiate a TextAreaEditor with the id comments. When instantiating TextAreaEditor, it will test for the toolbar image in the parent container. two properties will also be set for the instance; the height(ifrheight) and width(ifrwidth) of the textarea. The difference now is that the textarea name is not comments anymore. its commentsForm (TextAreaEditor id +'Form'). Therefore, the action is now: ###############getall########################


says:
<----this ############################################## Passing texts to TextAreaEditor: Sometimes, we may have the texts for the textarea; such as when replying to a post is a message board. To pass the value to TextAreaEditor: ###############post_html#######################


Name:
Comments:
############################################## and all's set. Minimally tested with w2k and w98, ie 5.5. Use at own risk. Help, pointers to improve the product, use better __init__, etc are sought. If you like it, here's my paypal account. nah, just kidding. mail me thanks