Added CKEditor to allow easy markup of text
This commit is contained in:
@@ -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 .
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user