Forum OpenACS Development: Using richtext widget

Collapse
Posted by Dave Bauer on
The richtext widget requires to pieces of information. The content and the format, usually text/enhanced to text/html or text/plain.

For cr_revisions.content this works great, because we have a mime_type column to go along with it to store the format in.

What to do about additional attributes of a content item that would benefit from richtext. In ETP the description attribute uses a textarea, and richtext might be useful. Some content type might have a summary attribute.

Is there an easy way to handle this?

One solution is application specific, where you assume text/enhanced and don't allow the user to change it.

Collapse
2: Re: Using richtext widget (response to 1)
Posted by Lars Pind on
Add a column for the mime type?

description text,
description_format varchar(50),

...

/Lars