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

@@ -26,6 +26,8 @@ gem 'bb-ruby'
gem 'kaminari-bootstrap'
gem "ckeditor"
group :production do
gem 'unicorn'
end

View File

@@ -39,6 +39,9 @@ GEM
bcrypt-ruby (3.0.1)
builder (3.0.4)
cancan (1.6.8)
ckeditor (4.0.0)
mime-types
orm_adapter
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -112,7 +115,7 @@ GEM
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
thor (0.16.0)
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
@@ -134,6 +137,7 @@ PLATFORMS
DEPENDENCIES
bb-ruby
cancan
ckeditor
coffee-rails (~> 3.2.1)
devise
execjs

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