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.152 -r1.153 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 8 May 2009 09:28:06 -0000 1.152 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 1 Jun 2009 07:21:42 -0000 1.153 @@ -1075,7 +1075,7 @@ width height {skin silver} - {plugins "hovertools resizable"} + {plugins "hovertools resizable fullscreen"} } richtext::wym set editor_mixin 1 richtext::wym instproc initialize {} { @@ -1091,14 +1091,20 @@ ::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" + foreach plugin {hovertools resizable fullscreen embed} { + if {[lsearch -exact [my plugins] $plugin] > -1} { + switch -- $plugin { + embed {} + resizable { + ::xo::Page requireJS "/resources/xowiki/jquery/jquery.ui.js" + ::xo::Page requireJS "/resources/xowiki/jquery/jquery.ui.resizable.js" + append postinit "wym.${plugin}();\n" + } + default {append postinit "wym.${plugin}();\n"} + } + ::xo::Page requireJS "/resources/xowiki/wymeditor/plugins/$plugin/jquery.wymeditor.$plugin.js" + } } - 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 # possible skins are per in the distribution: "default", "sliver", "minimal" and "twopanels"