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.

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 } %>

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.