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 'kaminari-bootstrap'
|
||||||
|
|
||||||
|
gem "ckeditor"
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem 'unicorn'
|
gem 'unicorn'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ GEM
|
|||||||
bcrypt-ruby (3.0.1)
|
bcrypt-ruby (3.0.1)
|
||||||
builder (3.0.4)
|
builder (3.0.4)
|
||||||
cancan (1.6.8)
|
cancan (1.6.8)
|
||||||
|
ckeditor (4.0.0)
|
||||||
|
mime-types
|
||||||
|
orm_adapter
|
||||||
coffee-rails (3.2.2)
|
coffee-rails (3.2.2)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (~> 3.2.0)
|
railties (~> 3.2.0)
|
||||||
@@ -112,7 +115,7 @@ GEM
|
|||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
sqlite3 (1.3.7)
|
sqlite3 (1.3.7)
|
||||||
thor (0.16.0)
|
thor (0.17.0)
|
||||||
tilt (1.3.3)
|
tilt (1.3.3)
|
||||||
treetop (1.4.12)
|
treetop (1.4.12)
|
||||||
polyglot
|
polyglot
|
||||||
@@ -134,6 +137,7 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bb-ruby
|
bb-ruby
|
||||||
cancan
|
cancan
|
||||||
|
ckeditor
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 3.2.1)
|
||||||
devise
|
devise
|
||||||
execjs
|
execjs
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// Place your application-specific JavaScript functions and classes here
|
// Place your application-specific JavaScript functions and classes here
|
||||||
// This file is automatically included by javascript_include_tag :defaults
|
// This file is automatically included by javascript_include_tag :defaults
|
||||||
//= require_self
|
//= require_self
|
||||||
|
//= require ckeditor/init
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<% flash.now[:error] = @post.errors.full_messages.join(', and ') %>
|
<% flash.now[:error] = @post.errors.full_messages.join(', and ') %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= f.label :body %>
|
<%= f.label :body %>
|
||||||
<%= f.text_area :body, :style => "width:98%", :rows => 15 %>
|
<%= f.cktext_area :body, :style => "width:98%", :rows => 15 %>
|
||||||
</div>
|
</div>
|
||||||
<div class="module_footer">
|
<div class="module_footer">
|
||||||
<span class="input">
|
<span class="input">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<% unless @topic.id %>
|
<% unless @topic.id %>
|
||||||
<%= f.label :body %>
|
<%= 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 class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user