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.18 -r1.19 --- openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 18 Mar 2005 18:10:39 -0000 1.18 +++ openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 19 Mar 2005 22:57:50 -0000 1.19 @@ -318,17 +318,14 @@ global acs_blank_master__htmlareas lappend acs_blank_master__htmlareas $element(form_id) + # quote contents for javascript. + set contents [string map {\n \\n \r {} "'" "&\#39"} $contents] - regsub -all "\n" $contents "\\n" contents - regsub -all "\r" $contents "" contents - # Beware: & means "repeat the string being replaced" - regsub -all "'" $contents "\\'" contents - # What we are generating here is the call to write the richtext widget but we also # need to pass what to generate in for browsers for 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) - set output "" + set output "" } # Spell-checker