Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.74 -r1.75 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 6 May 2008 12:42:22 -0000 1.74 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 29 May 2008 19:13:43 -0000 1.75 @@ -704,7 +704,7 @@ ::xo::Page requireJS "/resources/xowiki/jquery/jquery.js" ::xo::Page requireJS "/resources/xowiki/wymeditor/jquery.wymeditor.pack.js" regsub -all {[.:]} [my id] {\\\\&} JID - set config "" + set config [list "skin: 'default'"] if {[my exists height] || [my exists width]} { set height_cmd "" set width_cmd "" @@ -716,10 +716,11 @@ $height_cmd $width_cmd }}] - set config "{ - $postInit - }" + lappend config $postInit } + if {$config ne ""} { + set config \{[join $config ,]\} + } ::xo::Page requireJS [subst -nocommand -nobackslash { jQuery(function() { jQuery("#$JID").wymeditor($config);