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.11 -r1.19.2.12 --- openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 14 May 2006 17:07:25 -0000 1.19.2.11 +++ openacs-4/packages/acs-templating/tcl/richtext-procs.tcl 19 May 2006 11:12:39 -0000 1.19.2.12 @@ -312,6 +312,16 @@ files to be selected, while %pdf% could be used for pdf-files. If nothing is specified, all file-types are presented. +
+ {options {editor xinha plugins {OacsFs} height 350px javascript { + xinha_config.toolbar = [ + ['popupeditor', 'bold','italic','createlink','insertimage','separator'], + ['killword','removeformat'] ]; + }}} +Example for the use of the xinha widget with options: @@ -328,6 +338,9 @@ is per default not mounted. This is hopefully only a temporal situation and we find a better place.
+ Note that the rich-rext editor interacts with blank-master.tcl and + blank-master.adp. +
Derived from the htmlarea richtext widget for htmlarea by lars@pinds.com
modified for RTE http://www.kevinroth.com/ by davis@xarg.net
xinha support by gustaf.neumann@wu-wien.ac.at
@@ -420,9 +433,12 @@
set xinha_options ""
foreach e {width height folder_id fs_package_id file_types} {
if {[info exists options($e)]} {
- append xinha_options "xinha_config.$e = '[ad_urlencode $options($e)]';\n"
+ append xinha_options "xinha_config.$e = '$options($e)';\n"
}
}
+ if {[info exists options(javascript)]} {
+ append xinha_options $options(javascript) \n
+ }
set ::acs_blank_master(xinha.options) $xinha_options
lappend ::acs_blank_master__htmlareas $attributes(id)
}