search for: fancy_text

Displaying 2 results from an estimated 2 matches for "fancy_text".

2006 Feb 18
3
Edit in Place
I need help using In Place Editor by script.aculo.us #controller def my_action #get the text to display initially @fancy_text = "Some fancy *bold* and _emphasized_ text." end def update_text #save your text here, and return the saved value @fancy_text = params[:value] render :layout => false, :inline => "<%= textilize( @fancy_text ) %>" end def return_unformatted_text #ge...
2006 Feb 05
2
in_place_editor is missing load_text_url option
...#{url_for(options[:load_text_url])}''" if options[:load_text_url] And now I''m able to create in place editors that get their original text from the server (not from the DOM). So from the scriptaculous example, this code: <p id="editme2"><%= textilize( @fancy_text )</p> <script language="JavaScript"> new Ajax.InPlaceEditor(''editme2'', ''update_text'', {rows:15,cols:40,loadTextURL:''return_unformatted_text''}); </script> becomes this: <p id="editme2"><%= textil...