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.19.2.8 -r1.19.2.9
--- openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 26 Jan 2006 15:44:47 -0000 1.19.2.8
+++ openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 26 Jan 2006 22:19:54 -0000 1.19.2.9
@@ -349,7 +349,7 @@
set contents {}
set format {}
}
-
+
array set options [expr {[info exists element(options)] ?
$element(options) : ""}]
set richtextEditor [expr {[info exists options(editor)] ?
@@ -367,20 +367,15 @@
-default 0]
}
+ set format_menu [menu $element(id).format [template::util::richtext::format_options] $format {}]
set output [textarea_internal $element(id) attributes $contents]
- if { $htmlarea_p } {
- append output "\n"
- append output "\n"
- } else {
- append output "
Format: [menu $element(id).format [template::util::richtext::format_options] {} {}]"
- }
if { $htmlarea_p } {
# Tell the blank-master to include the special stuff
# for the richtext widget in the page header
-
+
set ::acs_blank_master($richtextEditor) 1
-
+
if {$richtextEditor eq "rte"} {
lappend ::acs_blank_master__htmlareas $element(form_id)
# quote contents for javascript.
@@ -391,10 +386,14 @@
# which the richtext widget won't work but which do have js enabled
# should output since we need the format widget (this for Safari among
# some others)
+ append output "\n"
set output ""
} elseif {$richtextEditor eq "xinha"} {
-
+
+ append output "\n"
+ append output "\n"
+
# we have a xinha richtext widget, specified by "options {editor xinha}"
# The following options are supported:
# editor plugins width height folder_id fs_package_id
@@ -418,7 +417,10 @@
lappend ::acs_blank_master__htmlareas $attributes(id)
}
- }
+ } else {
+ append output "
Format: $format_menu"
+ }
+
# Spell-checker
array set spellcheck [template::util::spellcheck::spellcheck_properties \
-element_ref element]