Forum OpenACS Development: Problem in moving values into Richtext widget from another form

Hai,
I'm posting text data from one form(1) to another
form(2). form(2) has WYSIWYGS editor in it with a text
area. I want to get the text into textarea .


i tried text(richtext) or richtext(richtext) as
widget types . But textarea unable to get the
value into it.


my code looks like this :

ad_form -extend -name logs -form {
{description:richtext(richtext),optional
{label "Description"}
{html {cols 60 rows 13}}
{value $blah_blah}
}
}

i assume, your client (e.g. firefox) is running on
windows (xp or similar). i am by no means a windows
expert, but i think to remember, you can only paste
content to the htmlarea by using "shift-insert".
ctrl-v gives some violation.

If this is the problem, it has to do nothing with
pasting from one form into another but with pasting
any kind of (html) content into the htmlarea. you
can as well paste e.g. some html with graphics
from some websites there, the htmlarea is quite
powerful.

This problem does not exist e.g. under mac os x.

You seem to be having the same problem I am, if so hopefully I can elaborate on this. First, my code looks almost exactly like yours, and that is why I assume our problems are the same.
What I have figured out is that the richtext widget has a problem with the value field when ad_form is in display mode. To test this I commented(#) out the value field and went into the page, then I uncommented the field and loaded the edit page, and it worked fine, but only when the page is in edit mode. If it tries to go into display mode with a value in it you get a Request Error:
--------------------------------------
Unknown text input format, ''. Valid formats are text/enhanced text/plain text/fixed-width text/html .
while executing
--------------------------------------
Starts out like this if we are in fact having the same problem. Hopefully this will help.
Don't set the value like that. You need a richtext datastructure.

Something like this

-edit_request {
set description [template::util::richtext::create $content $mime_type]
}

Where mime type can be whatever it was created as. Text/enhanced text/plain text/html

Usually the mime type should be stored in the database.

Thank you, that worked for me.
Hi ,
I(Ashwin Kumar) want to display text ( form 1 )
directly in form 2 wysiwygs editor.

I get value from querystring to display in wysiwygs

I cannot use edit_request then.

Please help me in this.