Forum OpenACS Q&A: htmlArea ad_form

Collapse
Posted by Miguel Marin on
Hi, I need to use htmlArea with ad_form but I got no clue of where should I start. Any help, I will appreciate it.
Collapse
2: Re: htmlArea ad_form (response to 1)
Posted by Rocael Hernández Rizzardini on
{yourinput:richtext(richtext),optional {html {rows 20 cols 80}} {label "Page Content"} {htmlarea_p 1}}
Collapse
3: Re: htmlArea ad_form (response to 1)
Posted by Nima Mazloumi on
Rocael,

is this the way to enable the WYSIWYG editor? Any restrictions or can I replace any of the old textarea fields with htmlarea?

Greetings,
Nima

Collapse
4: Re: htmlArea ad_form (response to 1)
Posted by xx xx on
The restriction is that you call <master> or at least <master src=/www/blank-master> in your page.

You also need to define rows/cols which wasn't obvious to me.

There is a parameter UseHtmlAreaForRichtextP in acs-templating that will turn all richtext-textarea's into htmlarea's by default.

The "B I U links" of the richtext widget remain visible AFAIK.

I guess it is not save to allow users access to all functions that are offered by htmlarea (hyperlinks/IMG/HTMLsource), or is openACS' check for valid tags/attributes considered sufficient?

Collapse
5: Re: htmlArea ad_form (response to 4)
Posted by Jade Rubick on
If you allow the IMG tag in acs-kernel, you're opening things up to a security risk, but that may be alleviated somewhat by a new package called sudo, that Barry's developing.

Check your acs-kernel parameters and if you're not allowing * or IMG, you're fine, I think.