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.114 -r1.115 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 12 Oct 2008 10:02:36 -0000 1.114 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 12 Oct 2008 19:34:59 -0000 1.115 @@ -1026,6 +1026,7 @@ {CSSclass wymeditor} width height + {plugins "hovertools resizable"} } richtext::wym set editor_mixin 1 richtext::wym instproc initialize {} { @@ -1040,8 +1041,18 @@ ::xo::Page requireCSS "/resources/xowiki/wymeditor/skins/default/screen.css" ::xo::Page requireJS "/resources/xowiki/jquery/jquery.js" ::xo::Page requireJS "/resources/xowiki/wymeditor/jquery.wymeditor.pack.js" + set postinit "" + if {[lsearch -exact [my plugins] hovertools] > -1} { + ::xo::Page requireJS "/resources/xowiki/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js" + append postinit "wym.hovertools();\n" + } + if {[lsearch -exact [my plugins] resizable] > -1} { + ::xo::Page requireJS "/resources/xowiki/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js" + append postinit "wym.resizable();\n" + } regsub -all {[.:]} [my id] {\\\\&} JID - set config [list "skin: 'default'"] + set config [list {skin: 'default'}] + #my msg "wym, h [my exists height] || w [my exists width]" if {[my exists height] || [my exists width]} { set height_cmd "" @@ -1053,6 +1064,7 @@ wym_box = jQuery(".wym_box"); $height_cmd $width_cmd + $postinit }}] lappend config $postInit }