Forum OpenACS Development: HTML area issue

Collapse
Posted by Harish Krishnan on
I ran into an issue the other day using richtext/htmlarea in ad_form. If the id of a textareas has the "." the htmlarea was not loading. But couldn't do without using the "." because I needed to get it as an array in the form submit.

Here is what I did:

I changed the richtext-procs.tcl containing the proc
template::widget::richtext.
The following code was added:

set attributes(id) "richtext__$element(form_id)__$element(id)"
set attributes(id) [join [split $attributes(id) .] _]

Is there a better approach or Are there any issues with this approach?