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.119 -r1.120 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 6 Nov 2008 20:53:45 -0000 1.119 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 24 Nov 2008 14:06:06 -0000 1.120 @@ -1097,6 +1097,7 @@ javascript {height} {style} + {wiki_p true} } richtext::xinha set editor_mixin 1 richtext::xinha instproc initialize {} { @@ -1108,12 +1109,13 @@ -default [::xo::parameter get_from_package_key \ -package_key "acs-templating" -parameter "XinhaDefaultPlugins"]] } - my set options [my get_attributes editor plugins width height folder_id script_dir javascript] + my set options [my get_attributes editor plugins width height folder_id script_dir javascript wiki_p] # for the time being, we can't set the defaults via parameter, # but only manually, since the editor is used as a mixin, the parameter # would have precedence over the defaults of subclasses if {![my exists height]} {my set height 350px} if {![my exists style]} {my set style "width: 100%;"} + if {![my exists wiki_p]} {my set wiki_p 1} } richtext::xinha instproc render_input {} { set disabled [expr {[my exists disabled] && [my disabled] ne "false"}] @@ -1129,7 +1131,7 @@ array set o [my set options] set xinha_options "" - foreach e {width height folder_id fs_package_id file_types attach_parent_id} { + foreach e {width height folder_id fs_package_id file_types attach_parent_id wiki_p package_id} { if {[info exists o($e)]} { append xinha_options "xinha_config.$e = '$o($e)';\n" }