# Simple\_format and in\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/simple-format-and-in-place-editor-field/51625>\
**Category:** Rails\
**Created:** [January 4, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/simple-format-and-in-place-editor-field/51625 "2006-01-04T18:13:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [January 4, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/simple-format-and-in-place-editor-field/51625/1 "2006-01-04T18:13:07Z")

</div>

Hi!

How can i do to force an in\_place\_editor\_field to format the text with  
simple\_format while not editing?

Thanks.

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [February 6, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/simple-format-and-in-place-editor-field/51625/2 "2007-02-06T16:31:37Z")

</div>

If anyone is still looking for the answer to this question, here’s my  
solution: use the in\_place\_editor helper instead.

`
<%= simple_format @the_text_string %>
<%= in_place_editor "the_text", { :rows => 2, :cols => 80 } %>
`

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [March 9, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/simple-format-and-in-place-editor-field/51625/3 "2007-03-09T21:15:49Z")

</div>

ImNotQuiteJack wrote:

> If anyone is still looking for the answer to this question, here’s my  
> solution: use the in\_place\_editor helper instead.
> 
> `
> <%= simple_format @the_text_string %>
> <%= in_place_editor "the_text", { :rows => 2, :cols => 80 } %>
> `

If you use this, the formatting will be saved as well. This is not  
feasible at all if the text has multiple lines, since saving it like  
this will create blank lines.
