Forum OpenACS Q&A: Proper use of the richtext widget

Collapse
Posted by Tracy Adams on
Can someone point me to an example where the format options for the richtext widget (NOT using the HTML widget, just the textarea) are properly dealt with.

I'm looking for what to do to the textarea value for all the options - enhanced text, plain text, fixed width and html.

Collapse
Posted by Ola Hansson on
Take a look at bug-add.tcl in bugtracker for one example.

http://cvs.openacs.org/cvs/openacs-4/packages/bug-tracker/www/bug-add.tcl?rev=1.12&view=auto

In which context exactly are you looking for what to do? Is it a new script or an existing one? There are certain things to consider when switching an existing form builder element to use richtext, one thing is the need for an additional "format" column in the datamodel so that the chosen format can persist and the other thing is the beloved upgrade scripts.

Collapse
Posted by Deds Castillo on
Tracy,

Take a look at lars-blogger.  AFAIK, that package deals with it correctly.