Forum .LRN Q&A: Forums with HTMLarea available

Collapse
Posted by Malte Sussdorff on
I got forums with HTMLarea enabled available but refrain from commiting due to the imminent launches of .LRN 2.1.

As a matter of fact there are only minor changes:

/lib/edit.tcl: set content and format to the same values as in /lib/post.tcl instead of calling the richtext function.

/lib/post.tcl: change all occurances of $format == "html" to $format == "text/html"

/tcl/form-procs.tcl: change the textarea widget to richtext on the message_subject. Add a hidden form element "format" which is set to "text/html".

If someone wants to get the code and play around with it, just ping me.

Collapse
Posted by Nima Mazloumi on
you should make it an option for the forum admin. You can find how I did that for faq here:

http://cvs.openacs.org/cvs/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml?rev=1.36&view=markup

Collapse
Posted by Andrew Grumet on
Just curious, does HTMLarea play reasonably nicely with CSS?
Collapse
Posted by Malte Sussdorff on
Okay, I added another refinement. It adheres to the templating "UseHtmlAreaForRichtextP" parameter. Sadly this breaks editing capabilities in non HTMLarea mode. But I'm too bored to figure out why at the moment.