Hi Harald, tapestry5-components has an editor component (which uses fck):
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html A fix for this issue has just been committed to svn, if you're interested in an already-integrated version. In any cayse Davor is right, so if you're going to roll your own do as he suggested. chris Harald Geritzer wrote: > > hi all, > > is there a special reason for rendering the javascript includes on > bottom of the page in latest 5.0.12 snapshot? > > i got a fckeditor on my page and it seems like my editor field wants > to initialize the FCKeditor before the script ist even loaded? > > any hints welcome, > harald > > > <script type="text/javascript"> > var editor_html = new FCKeditor('html'); > editor_html.BasePath = '/wtp/assets/rd/t5/components/fckeditor/'; > editor_html.ToolbarSet = 'Default'; > editor_html.Height = '300px'; > editor_html.Width = '100%'; > editor_html.Value = ''; > editor_html.Create(); > > </script> > > ... > > <script src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/prototype.js" > type="text/javascript"></script><script > src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/scriptaculous.js" > type="text/javascript"></script><script > src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/effects.js" > type="text/javascript"></script><script > src="/wtp/assets/tapestry/5.0.12-SNAPSHOT/tapestry.js" > type="text/javascript"></script><script > src="/wtp/assets/rd/t5/components/Indicator.js" > type="text/javascript"></script><script > src="/wtp/assets/rd/t5/components/fckeditor/fckeditor.js" > type="text/javascript"></script><script type="text/javascript"> > <!-- > Tapestry.DEBUG_ENABLED = true; > Tapestry.onDOMLoaded(function() { > Tapestry.init({"validate":[["index",[["required","Sie müssen einen > Wert für Index angeben."]]],["name",[["required","Sie müssen einen > Wert für Name angeben."]]],["language",[["required","Sie müssen einen > Wert für Sprache angeben."]]],["contentType",[["required","Sie müssen > einen Wert für Typ angeben."]]],["selectShop",[["required","Sie müssen > einen Wert für Select Shop > angeben."]]],["contentLocation",[["required","Sie müssen einen Wert > für Ort angeben."]]],["depth",[["required","Sie müssen einen Wert für > Tiefe angeben."]]]]}); > }); > // --> > </script></body></html> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]