Added CKEditor to allow easy markup of text

This commit is contained in:
2013-01-27 00:20:11 -05:00
parent f80624946c
commit ee583db78e
5 changed files with 10 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
//= require_self
//= require ckeditor/init
//= require_tree .

View File

@@ -9,7 +9,7 @@
<% flash.now[:error] = @post.errors.full_messages.join(', and ') %>
<% end %>
<%= f.label :body %>
<%= f.text_area :body, :style => "width:98%", :rows => 15 %>
<%= f.cktext_area :body, :style => "width:98%", :rows => 15 %>
</div>
<div class="module_footer">
<span class="input">

View File

@@ -11,7 +11,7 @@
<div class="clear"></div>
<% unless @topic.id %>
<%= f.label :body %>
<span class="input indent smaller"><%= f.text_area :body, :style => "width:98%", :rows => 15 %></span>
<span class="input indent smaller"><%= f.cktext_area :body, :style => "width:98%", :rows => 15 %></span>
<div class="clear"></div>
</div>
<% end %>