Index: openacs-4/packages/xowiki/tcl/xowiki-form-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-form-procs.tcl,v diff -u -r1.105 -r1.106 --- openacs-4/packages/xowiki/tcl/xowiki-form-procs.tcl 29 Sep 2008 01:38:19 -0000 1.105 +++ openacs-4/packages/xowiki/tcl/xowiki-form-procs.tcl 1 Oct 2008 22:14:28 -0000 1.106 @@ -98,10 +98,14 @@ if {[$f istype ::xowiki::formfield::richtext] && [my folderspec] ne ""} { - # insert the folder id into the spec for the - # oacsfs plugin to access the correct filestore instance - foreach {key value} [my folderspec] break - $f $key $value + # Insert the folder_id and the script_dir into the spec for + # the oacsfs plugin to access the correct filestore instance + # and to find the script directory + foreach {key value} [my folderspec] { + $f $key $value + } + # We have to reinitialize for exporting these values asWidgetSpec + $f initialize } set __spec ${__field}:[$f asWidgetSpec]