]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/edit.html.erb
Add preview functionality to rich text controls
[rails.git] / app / views / diary_entry / edit.html.erb
index f6273a828a849b0dc3d77fafbe167ee80538b56b..da409e61a0d40494b586641f1b26bf4fb11d4a99 100644 (file)
@@ -10,7 +10,7 @@
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.body' -%></td>
-      <td><%= f.text_area :body, :cols => 80 %></td>
+      <td><%= richtext_area :diary_entry, :body, :cols => 80 %></td>
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>