Werner Punz schrieb: > Matthias Wessendorf schrieb: >>> Actually the easiest replacement currently probably is to use the >>> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there >>> and the editor can be reached via a textarea and the dojo initializer >> Philippe- >> >> you may also take a look at [1] >> >> -Matthias >> >> [1] http://tinyurl.com/cp9jm >> > Well one warning though, with this method you cannot adjust the buttons > the better way currently is to use the dojoinitilizer for the requires > statements and then use standard javascripts for initializing the editor. > AFAIR there is an example in the somewhat hidden dojo subdir of the > myfaces-sandbox examples where exactly that is done. > If not please drop a message here and I will post some code. > > Sorry to answer here again, the affected file can be found in myfaces-examples-sandbox/dojo/textareatestjsfonly.jsp (jsf)
this is a small demo on how to initialize the editor http://wuerg.kicks-ass.net:8080/myfaces-example-sandbox/dojo/textareatestjsfonly.jsf here is a small demo. If you need the text edtor limited into a smaller area, wrap it into a div. Note it is important that you use a textarea as a starting base, due to the form handling, if you use a div as a starting base for the dojo editor the form values will be lost. here is a general description: http://dojotoolkit.org/docs/rich_text.html

