Add tinymce
This commit is contained in:
parent
a0f58b543b
commit
1913f0aca8
1
Gemfile
1
Gemfile
|
@ -20,6 +20,7 @@ gem 'rubyzip'
|
|||
gem 'sinatra'
|
||||
gem 'sprockets'
|
||||
gem 'therubyracer' # For linux
|
||||
gem 'tinymce-rails'
|
||||
|
||||
# Gems used only for assets and not required
|
||||
# in production environments by default.
|
||||
|
|
|
@ -179,6 +179,8 @@ GEM
|
|||
libv8 (~> 3.3.10)
|
||||
thor (0.14.6)
|
||||
tilt (1.3.3)
|
||||
tinymce-rails (3.4.8)
|
||||
railties (>= 3.1)
|
||||
treetop (1.4.10)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
|
@ -231,5 +233,6 @@ DEPENDENCIES
|
|||
spork
|
||||
sprockets
|
||||
therubyracer
|
||||
tinymce-rails
|
||||
uglifier
|
||||
watchr
|
||||
|
|
|
@ -9,3 +9,4 @@
|
|||
//= require bootstrap
|
||||
//= require jquery.tinyscrollbar.min
|
||||
//= require orbit-1.0
|
||||
//= require tinymce-jquery
|
|
@ -137,5 +137,12 @@
|
|||
$('#bulletin_files').append(("<%= escape_javascript(add_attribute 'bulletin_file', f, :bulletin_files) %>").replace(old_id, new_id));
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('textarea').tinymce({
|
||||
theme: 'advanced'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<% end %>
|
||||
|
Reference in New Issue