I use one of these in my applications. I use the sourceforge project htmlarea. These tools are extremely browser dependent (the version I use only works in IE5.5+), and have rather large javascript libraries. Htmlarea was so easy to plug in to my app, however, that I barely felt the need to make a component for it. Here is example code from one of my apps:
// this is in my <head> <script language="Javascript1.2"><!-- // load htmlarea _editor_url = 'http://' + document.location.host + '/htmlarea/'; var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } // --></script> // and this is the textarea itself: <textarea id="<ww:property value="id"/>" name="_<ww:property value="id"/>"> <ww:property value="Text()"/> </textarea> <script language="javascript1.2"> editor_generate('_<ww:property value="id"/>'); </script> As you can see, it was quite easy. I don't know how much work I could save making a component out of it, or if it would be easy to generalize the use case enough so that all WW developers could leverage it, but there are certainly no real technical hurdles in the way of doing so. -Robert -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Drew McAuliffe Sent: Thursday, October 02, 2003 5:58 PM To: [EMAIL PROTECTED] Subject: RE: RES: RES: [OS-webwork] Component repository Here's another useful idea. How about a rich text editor component, to take the place of a textarea control? I've seen things like this on PHP message boards. It includes a formatting toolbar as well as the textarea itself, and works just like a miniature wordpad. I don't know how hard this would be to do as a component, but it would certainly be useful. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francisco Hernandez Sent: Thursday, October 02, 2003 1:42 AM To: [EMAIL PROTECTED] Subject: Re: RES: RES: [OS-webwork] Component repository I need to look into the code but the date picker component works fine with IE, its just Mozilla thats crapping out with it Pat Lightbody wrote: > Looks like a problem with the absolute/relative paths -- should be > trivial to fix. > > ----- Original Message ----- > From: "Francisco Hernandez" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 30, 2003 12:18 PM > Subject: Re: RES: RES: [OS-webwork] Component repository > > > >>im using the latest firdbird myself too, when i click on the arrows to >>goto the next/previous month/year I get this: >> >>404 Not Found >>Resource >>/cart/templates/xhtml/calendar/templates/xhtml/calendar/calendar.html >>not found on this server >> >>[EMAIL PROTECTED] wrote: >> >>>Really?! I expected the other way around, as I developed/tested this >>>using Mozilla Firebird 0.6! :) >>> >>>What does the JavaScript console shows? >>> >>>-----Mensagem original----- >>>De: Francisco Hernandez [mailto:[EMAIL PROTECTED] Enviada em: >>>terça-feira, 30 de setembro de 2003 15:51 >>>Para: [EMAIL PROTECTED] >>>Assunto: Re: RES: [OS-webwork] Component repository >>> >>> >>>uh oh, I tried it in Mozilla, and it fails, but works great in IE! >>> >>>[EMAIL PROTECTED] wrote: >>> > Okay, the date picker is here: >>> > http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-329 >>> > >>> > Have fun, and if there are any suggestions, feel free to add them. >>> > >>> > Peace, >>> > -cv >>> > >>> > -----Mensagem original----- >>> > *De:* Jason Carreira [mailto:[EMAIL PROTECTED] >>> > *Enviada em:* terça-feira, 30 de setembro de 2003 10:19 >>> > *Para:* [EMAIL PROTECTED] >>> > *Assunto:* RE: [OS-webwork] Component repository >>> > >>> > If people add them to Jira issues, we'll put them in CVS to go >>> > into > > the > >>> > distribution... >>> > >>> > -----Original Message----- >>> > *From:* Drew McAuliffe [mailto:[EMAIL PROTECTED] >>> > *Sent:* Tuesday, September 30, 2003 2:01 AM >>> > *To:* [EMAIL PROTECTED] >>> > *Subject:* RE: [OS-webwork] Component repository >>> > >>> > Sure, JIRA is fine, or you can email me at drew (at) lowerunit > > dot > >>> > com (trying to avoid getting more spam). I've been looking for > > one > >>> > of these for a long time. It's especially helpful to have a ww >>> > component. Any idea on if a component repository will be created, >>> > and if so, where it will go on CVS? A great component repository >>> > would really help sell webwork to a lot of people, hitting a nice >>> > sweet spot between tapestry and struts. >>> > >>> > Thanks, >>> > >>> > Drew >>> > >>> > -----Original Message----- >>> > *From:* [EMAIL PROTECTED] >>> > [mailto:[EMAIL PROTECTED] *On >>> > Behalf Of [EMAIL PROTECTED] >>> > *Sent:* Monday, September 29, 2003 5:30 AM >>> > *To:* [EMAIL PROTECTED] >>> > *Subject:* RES: [OS-webwork] Component repository >>> > >>> > Hi Drew! >>> > >>> > I just finished mine, and it's working quite well with > > european > >>> > (dd/mm/yyyy) dates. Should be a breeze to modify them for the >>> > american/british format (mm/dd/yyyy). How should I send it to >>> > you? Maybe create an issue in JIRA and attach it? >>> > >>> > -cv >>> > >>> > -----Mensagem original----- >>> > *De:* Drew McAuliffe [mailto:[EMAIL PROTECTED] >>> > *Enviada em:* sábado, 27 de setembro de 2003 14:51 >>> > *Para:* [EMAIL PROTECTED] >>> > *Assunto:* RE: [OS-webwork] Component repository >>> > >>> > If someone has a datepicker component available, I would >>> > love > > to > >>> > get access to it right away. >>> > >>> > -----Original Message----- >>> > *From:* [EMAIL PROTECTED] >>> > [mailto:[EMAIL PROTECTED] >>> > *On Behalf Of *Jason Carreira >>> > *Sent:* Friday, September 26, 2003 11:46 AM >>> > *To:* [EMAIL PROTECTED] >>> > *Subject:* RE: [OS-webwork] Component repository >>> > >>> > I think they should go right into WW2 CVS... Sounds >>> > like > > a > >>> > great idea. >>> > >>> > -----Original Message----- >>> > *From:* [EMAIL PROTECTED] >>> > [mailto:[EMAIL PROTECTED] >>> > *Sent:* Friday, September 26, 2003 10:47 AM >>> > *To:* [EMAIL PROTECTED] >>> > *Subject:* [OS-webwork] Component repository >>> > >>> > Hi all, >>> > >>> > Do you think it would be a good idea to set up a >>> > component repository somewhere? I'm creating some >>> > components here, and I started feeling that >>> > creating > > a > >>> > date picker or tree component would be reinventing > > the > >>> > wheel somehow. >>> > >>> > IMHO, I think having a good component repository > > would > >>> > be a huge plus for WW2 users, as they could just slap >>> > them together and create wicked cool forms with > > dynamic > >>> > behaviour in minutes. I'm sure this was already >>> > discussed at some point, but as I couldn't find any >>> > references to it on the mailing list archives, it >>> > sounded like a good idea to bring this subject >>> > back >>>again. >>> > >>> > If you're interested, I'd suggest having a look at >>> > http://webfx.eae.net - there are some awesome > > components > >>> > and widgets in there. Maybe we can talk with Erik and >>> > Emil, the maintainers of the website, and get some >>> > support directly from the authors? :) >>> > >>> > Peace, >>> > -cv >>> > >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This sf.net email is sponsored by:ThinkGeek >>>Welcome to geek heaven. >>>http://thinkgeek.com/sf >>>_______________________________________________ >>>Opensymphony-webwork mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >>> >> >> >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Opensymphony-webwork mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork