Hi, InPlaceRichEditor v1.1 has just been released and can be downloaded on: http://inplacericheditor.box.re/download Couple of changes has been made in InPlaceRichEditor fixing ShowSaving bug and changing the call to InPlaceRichEditor itself. Please notice that this last change break the backward compatibility since initial release. Read more about it on: http://inplacericheditor.box.re/download Have fun ! -- Sébastien Grosjean - ZenCocoon --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I see that IE uses event.keyCode to identify which key caused an event, while the others all seem to support event.which. I was hoping Prototype would have a browser-independent solution (perhaps populating event.which from event.keyCode or vice-versa) but I can find nothing in the API docs or the code. Any chance that a browser-independent solution can be added to 1.5.2 so we don''t have to write a cross-browser method ourselves? Or is one already there, and I''m just missing it? Peace, AMA3 --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
AMA3 wrote:> I see that IE uses event.keyCode to identify which key caused an event, > while the others all seem to support event.which. I was hoping Prototype > would have a browser-independent solution (perhaps populating event.which > from event.keyCode or vice-versa) but I can find nothing in the API docs or > the code. > > Any chance that a browser-independent solution can be added to 1.5.2 so we > don''t have to write a cross-browser method ourselves? > > Or is one already there, and I''m just missing it?i use event.keyCode and it works on safari, ff, ie and opera. hope that helps Paul --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Strange, when I look at event.keyCode in FF, I get the keycode for control characters but I get 0 for letters, digits and other printable characters. Peace, AMA3 ----- Original Message ----- From: "nihaopaul" <nihaopaul-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: <rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Sent: Thursday, May 03, 2007 01:41 Subject: [Rails-spinoffs] Re: no prototype solution to event.keyCode vs .which?> > AMA3 wrote: >> I see that IE uses event.keyCode to identify which key caused an event, >> while the others all seem to support event.which. I was hoping Prototype >> would have a browser-independent solution (perhaps populating event.which >> from event.keyCode or vice-versa) but I can find nothing in the API docs >> or >> the code. >> >> Any chance that a browser-independent solution can be added to 1.5.2 so >> we >> don''t have to write a cross-browser method ourselves? >> >> Or is one already there, and I''m just missing it? > > i use event.keyCode and it works on safari, ff, ie and opera. hope that > helps > > Paul > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
AMA3 wrote:> ... > Any chance that a browser-independent solution can be added to 1.5.2 so we > don''t have to write a cross-browser method ourselves? > > ...That is a really good point. I''ve created these methods for an app. What do you think? We could submit a patch... It is quite simple to write event.which || event.keyCode but I suppose something like Event.keyCode(event) is more straightforward. Event.keyCode = function(event) { return event.which || event.keyCode; }; Event.ascii = function(event) { var decimal = Event.keyCode(event); return decimal>=32 ? String.fromCharCode(decimal) : ''''; }; -- Ken Snyder --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, First of all congratulations for the great work, this is the component I need!! I have a little suggestion (or comment). If somebody uses the loadTextURL option then scriptaculous strips all html tags off from the text. So we need to update tinymce with the right text: Object.extend(Ajax.InPlaceEditor.prototype, { onLoadedExternalText: function(transport) { Element.removeClassName(this.form, this.options.loadingClassName); this.editField.disabled = false; this.editField.value = transport.responseText.stripTags(); // start - tinymce update code if (this.tinymce) { this.tinymce.setContent(transport.responseText); } // end - tinymce update code Field.scrollFreeActivate(this.editField); } }); Robert --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, First of all congratulations for the great work, this is the component I need!! I have a little suggestion (or comment). If somebody uses the loadTextURL option then scriptaculous strips all html tags off from the text. So we need to update tinymce with the right text: Object.extend(Ajax.InPlaceEditor.prototype, { onLoadedExternalText: function(transport) { Element.removeClassName(this.form, this.options.loadingClassName); this.editField.disabled = false; this.editField.value = transport.responseText.stripTags(); // start - tinymce update code if (this.tinymce) { this.tinymce.setContent(transport.responseText); } // end - tinymce update code Field.scrollFreeActivate(this.editField); } }); Robert --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry for the double post! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry for the double post! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
imjustthepianoplayer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-16 19:58 UTC
Re: InPlaceRichEditor v1.1 released
Robert, Where do you put that code? In which file? Drew* --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Congratulations.. great job!! Thx, Diego Piccolo. On 5/16/07, imjustthepianoplayer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <imjustthepianoplayer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Robert, > > Where do you put that code? In which file? > > Drew* > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, You don''t need this code anymore as it''s integrate in InPlaceRichEditor v 1.1.1 already. This release should be drop in from v 1.1 Hope this help, -- Sébastien Grosjean - ZenCocoon On May 16, 10:58 pm, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Robert, > > Where do you put that code? In which file? > > Drew*--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Diego, Thanks for your comments, nice to hear ;-) -- Sébastien Grosjean - ZenCocoon On May 16, 11:07 pm, "Diego Piccolo" <one...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Congratulations.. great job!! > > Thx, > > Diego Piccolo. > > On 5/16/07, imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Robert, > > > Where do you put that code? In which file? > > > Drew*--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
imjustthepianoplayer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-17 17:08 UTC
Re: InPlaceRichEditor v1.1 released
Well, is there a way to NOT strip out the paragraph tags when you choose to cancel your changes? When I save, everything is fine, but if I discard, what gets returned to the text box is devoid of p tags. Drew* On May 16, 4:30 pm, Sébastien Grosjean - ZenCocoon <pub...-pF6qlRHTujOaMJb+Lgu22Q@public.gmane.org> wrote:> Hi, > > You don''t need this code anymore as it''s integrate in > InPlaceRichEditor v 1.1.1 already. > > This release should be drop in from v 1.1 > > Hope this help, > -- > Sébastien Grosjean - ZenCocoon > > On May 16, 10:58 pm, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > > <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Robert, > > > Where do you put that code? In which file? > > > Drew*--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I have this problem too, any ideas? On May 17, 11:08 am, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Well, is there a way to NOT strip out the paragraph tags when you > choose to cancel your changes? When I save, everything is fine, but if > I discard, what gets returned to the text box is devoid of p tags. > > Drew* > > On May 16, 4:30 pm, Sébastien Grosjean - ZenCocoon > > <pub...-pF6qlRHTujOaMJb+Lgu22Q@public.gmane.org> wrote: > > Hi, > > > You don''t need this code anymore as it''s integrate in > >InPlaceRichEditorv 1.1.1 already. > > > This release should be drop in from v 1.1 > > > Hope this help, > > -- > > Sébastien Grosjean - ZenCocoon > > > On May 16, 10:58 pm, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > > > <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Robert, > > > > Where do you put that code? In which file? > > > > Drew*--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, InPlaceRichEditor v1.1.2 is out ! It fix a stripping out paragraph tags problem when canceling the edition. If you didn''t had any trick on your side to fix this, it should be a drop in update so grab it right away ;-) http://inplacericheditor.box.re/download Have fun ! -- Sébastien Grosjean - ZenCocoon On May 18, 8:22 am, "denali.jeffl" <denali.je...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have this problem too, any ideas? > > On May 17, 11:08 am, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > > <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Well, is there a way to NOT strip out the paragraph tags when you > > choose to cancel your changes? When I save, everything is fine, but if > > I discard, what gets returned to the text box is devoid of p tags. > > > Drew* > > > On May 16, 4:30 pm, Sébastien Grosjean - ZenCocoon > > > <pub...-pF6qlRHTujOaMJb+Lgu22Q@public.gmane.org> wrote: > > > Hi, > > > > You don''t need this code anymore as it''s integrate in > > >InPlaceRichEditorv 1.1.1 already. > > > > This release should be drop in from v 1.1 > > > > Hope this help, > > > -- > > > Sébastien Grosjean - ZenCocoon > > > > On May 16, 10:58 pm, "imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > > > > <imjustthepianopla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Robert, > > > > > Where do you put that code? In which file? > > > > > Drew*--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---