similar to: Weird simple_format behavior

Displaying 20 results from an estimated 10000 matches similar to: "Weird simple_format behavior"

2006 Jan 04
2
simple_format and in_place_editor_field
Hi! How can i do to force an in_place_editor_field to format the text with simple_format while not editing? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060104/bbd141a2/attachment.html
2009 Mar 26
0
reverse of simple_format?
Hello! Is there a way to reverse the TextHelper simple_format? I.e. to take some text with <p> tags and <br> tags and convert them into line breaks in a smart way? (smarter than just a regexp that is). TIA! -Danimal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2006 Oct 14
0
A not so simple simple_format helper
Hi, is there a not as simple simple_format helper in rails? :) I would like to keep the line breaks from the input, however, I would like to escape all other HTML elements. So basically it is the h() helper but keeps the line breaks. Any suggestions? Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this
2009 Feb 24
2
Displaying line breaks & paragraphs using 'simple_format' ?
Hi there, I need to: 1. STORE a text of the below format in a (MySQL) database (using a ''textarea''), and then 2. RETRIEVE & DISPLAY it in exactly the same format (meaning: keeping all paragraphs/line breaks). The intended text format looks like this: *** Blah blahblah blah blah blahblah blah blah blahblah blah blah blahblah blah, blah blahblah. <- NEW
2008 May 29
4
ruby's simple_format method is not working for spaces.
Ruby''s simple_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Jul 26
4
simple_format, (long) urls, and wrapping
I''m using simple_format to format and display posted content from users. This content sometimes has urls in it. The problem I''m having is that if the urls are long enough to wrap, they do, but the url gets split with a <br> tag. Then, if the user clicks on the link, only the first, non-wrapped part of the link gets posted to the browser... and that''s an invalid
2006 Feb 05
2
in_place_editor is missing load_text_url option
Ajax.InPlaceEditor supports a loadTextURL option. If you look at the InPlaceEditor page (http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor) you''ll see an excellent example in Rails of how you might use that option textilize in place edited stuff. Unfortunately, the example doesn''t use the nifty Rails in_place_editor method because
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email address! ---- Attached is a patch to add external (AJAX) loading of content to the InPlaceEditor. 2 extra options have been added: loadUrl: a URL to load the content from. If this is present, it will be used instead of the innerHTML. fieldId: I had to add this so we know what the text field is when we''ve
2005 Oct 31
2
Inplaceeditor and a tooltip on mouserollover?
on mouseover when using inplaceeditor it highlights in yellow. Great. However, I want to also show a tooltip inside this div on mouseover. Specifically, when a user is over editable text, besides the yellow background, I want to display next to it a "delete" link. One of the things I''ve tried is this: <script language="JavaScript"> new
2008 Jun 06
2
Scriptalicious: Ajax Inline Text Editor
Hi, I''m just starting out with Scriptalicious + Prototype, and I''ve run into a problem. I''m trying to create an Ajax.InPlaceEditor that combines the custom size textbox, and the custom parameter (from the examples in the scriptalicious documentation) http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor I''ve tried a couple different methods (one of
2006 Jan 05
6
InPlaceEditor and textarea
Hi to all. First of all exchuse for my bad english I try to use Ajax.InPlaceEditor with a textarea: ################## new Ajax.InPlaceEditor($(''ipblock''), ''tools/admin_save.php'', { ajaxOptions: {method: ''get''}, rows:10, cols:20, callback: function(form, value) { return ''op=ipblock&value='' + value},
2005 Sep 01
2
FW: externalControl for in-place editing Browser in-compatibility
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Anyone have any ideas on this one, it appears that that $() is not working to get object by id in Mozilla based browsers. Does anyone know how to fix this? I am a n00b to javascript. Is this a bug or am I doing something wrong? Can someone please confirm this. - -----Original Message----- From: Stephen Major [mailto:smajor@gmail.com] Sent:
2006 Feb 21
6
Help with Script.aculo inPlaceEditor
Well, I start recently with Scriptacolus and inPlaceEditor. I have two doubts about use it. 1) When I specify URL for save changes or not it doesn''t work. See example below: <script type="text/javascript"> new Ajax.InPlaceEditor(''aNombre'', ''productos.php?a=actualizar&f=aNombre''); </script> In productos.php file I have
2006 Mar 01
0
TextHelpers in Controller?
I have a controller that saves info to the DB. It''s based on the AJAX scaffolding code. All I want to do is add a simple_format() function to it before I save a user-edited text field to the DB. TO convert line returns to <br>s, etc. @project_note = ProjectNote.new(params[:project_note]) @project_note.body = simple_format(@project_note.body) Since this happens in a controller,
2005 Dec 07
5
InPlaceEditor update of page contents ?
Hi all ! InPlaceEditor refreshes only the element that was updated. Is there any way to make it update tons of other stuff ? I have a table where changing a value in it causes changes in most other cells (weight to percentage to money). Thanks for any help ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-spinoffs mailing list
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX :evaluate_remote_response. I use UTF-8 in my pages, and my app requires that I be able to, say, put Japanese characters in. The problem is that when I switched this over to an RJS template it started eating the encoding. I now get garbage characters where before I got the correct ones. The code for the RHTML: <%=
2004 Nov 29
1
Calling from PSTN let exension 601 ring twice, hang up and starts over again to ring twice, ...
Calling from PSTN let extension 601 ring twice, hang up and starts over again to ring twice, ... If I pickup I do not hear on extension 601, and on the PSTN it is still signaling to ring. Can anybody enlighten me, please? extension.conf [incoming_88097074] exten => s,1,Wait(1) ;wait to get caller ID in. exten => s,2,Dial(SIP/102,20) exten => s,3,Voicemail(u102) exten =>
2007 Jan 16
2
Using view helpers in migrations?
I''m writing a bloggish/CMSish thing. I had been using simple_format, but my users requested a rich editor, so I added TinyMCE. Anyway, I was trying to migrate the existing content (since TinyMCE assumes it''s reading HTML-formatted text), and realized that I couldn''t call simple_format (or other helper methods) from Migrations. Can someone enlighten me here?
2005 Nov 20
1
Deleting InPlaceEditor
Howdy, I have created several InPlaceEditor''s for each of my menu items. This way i can easily rename them, however when i rename a menu item, it renames several id''s in the document. I then need to adjust an InPlaceEditor to point to the new id. It seems an inplaceeditor cannot be changed, so i have been tryiny to delete it, then create a new one. How do i delete an
2006 Feb 27
1
InPlaceEditor on an empty div
Hi, I am wondering what the trick is to use InPlaceEditor on an emtpy div. I have a set up where one div contains a question, and next to it is an emtpy div which should be used for InPlaceEditor. The user clicks on a button "answer" and that activates the InPlaceEditor in the appropriate div. This doesn''t work, however. The div which should use InPlaceEditor must