Hi Jeremy, Very cool, thanks for sharing those. I really like your take on the RTE (feature bloat and ugliness are defnitely issues many of the RTEs out there have).
If you haven't already done so, have you considered submitting these to scripteka.com? FWIW: Your RTE shares two common problems I have with others out there, so I thought I should mention them: 1. It's easy to get into a situation where Ctrl+End puts you at the end of the last line of visible text, but as soon as you type a letter, the letter is put at the beginning of the next line instead. This is *incredibly* frustrating, and it's a common problem with several RTEs I've found. If you could fix that one, you'd be golden. One of the myriad ways to create it: * Press Ctrl+A to select all text * Press Del * Type a sentence and press Enter * Press backspace * Press Ctrl+Home * Press Ctrl+End At this point, the cursor is at the end of the line of text. But if you type a letter, it appears at the beginning of a new line. (Firefox 2.0.0.14, Windows XP) That series of steps looks complicated, but you understand it's just a reliable example; in practice, this situation is incredibly easy to set up. I don't know why so many RTEs have this problem, perhaps they're all deriving Kevin Roth's code. 2. Clicking in the blank area underneath all text you've typed should put the cursor at the end of the text like Ctrl+End does, rather than ignoring the click (IMHO). Again, thanks for sharing, and these are nits being picked. -- T.J. Crowder tj / crowder software / com On Apr 23, 7:45 am, Jeremy Jongsma <[EMAIL PROTECTED]> wrote: > Two reasons for this post: > > 1) I've built a number of prototype-based input widgets over the years > that I use quite regularly on my web projects, but I just realized > I've never shared them with the community (they're GPL licensed). So > here you go:http://home.jongsma.org/software/js/ > > 2) The demos on my site are using prototype 1.4.0. I just tested and > all of them work fine on the latest (1.6.0.2) except the colorpicker. > If you download and use the colorpicker widget with prototype 1.6.0.2, > the color swatches in the dropdown box do not appear (the whole panel > is gray). But mousing over the panel still shows the colors that > should be there, and clicking selects a color as it should. Before I > waste a lot of time debugging this, does anyone know of a difference > between 1.4.x and 1.6.x that could cause this? I tried loading > prototype_update_helper.js to see if it gives me any insight but it > fails (console not defined in FF?) > > I hope you find these useful, and I'll try to fix up the colorpicker > for 1.6.0.2 as soon as possible. > > -j --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
