Index: openacs-4/packages/acs-templating/tcl/richtext-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/richtext-procs.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 13 Dec 2005 13:34:30 -0000 1.20 +++ openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 4 Jun 2006 00:45:48 -0000 1.21 @@ -237,9 +237,9 @@ append output [textarea_internal "$element(id)" attributes $contents] if { $htmlarea_p } { - append output "" + append output "" } else { - append output "
Format: [menu "$element(id).format" [template::util::richtext::format_options] $format attributes]" + append output "
Format: [menu $element(id).format [template::util::richtext::format_options] $format attributes]" } # Spell-checker @@ -262,77 +262,187 @@ ad_proc -public template::widget::richtext { element_reference tag_attributes } { - Implements the richtext widget, which offers rich text editing options. + Implements the richtext widget, which offers rich text editing options. - This version supports the rte editor. + This version supports the rte and xinha editor. - - If the acs-templating.UseHtmlAreaForRichtextP parameter is set to true (1), this will use the htmlArea WYSIWYG editor widget. - Otherwise, it will use a normal textarea, with a drop-down to select a format. The available formats are: -