Added CKEditor to allow easy markup of text
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -26,6 +26,8 @@ gem 'bb-ruby'
|
||||
|
||||
gem 'kaminari-bootstrap'
|
||||
|
||||
gem "ckeditor"
|
||||
|
||||
group :production do
|
||||
gem 'unicorn'
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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