Skip to content

Commit

Permalink
Merge pull request #2650 from luizpicolo/master
Browse files Browse the repository at this point in the history
FIXED: Sprockets wysihtml5 and textarea proportions for bootstrap-wysihtml5-rails
  • Loading branch information
bbenezech committed Jun 7, 2016
2 parents 9819122 + 2620e0f commit 20be7f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/rails_admin/ra.widgets.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
iframe.wysihtml5-sandbox{
height: 250px !important;
width: 75% !important;
width: 99.7% !important;
}

iframe.wysihtml5-sandbox, .wysihtml5-editor{
border: 1px solid #ccc !important;
}

.controls img.preview{
Expand Down
4 changes: 2 additions & 2 deletions lib/rails_admin/config/fields/types/wysihtml5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Wysihtml5 < RailsAdmin::Config::Fields::Types::Text
end

register_instance_option :css_location do
ActionController::Base.helpers.asset_path('bootstrap-wysihtml5.css')
ActionController::Base.helpers.asset_path('bootstrap-wysihtml5/index.css')
end

register_instance_option :js_location do
ActionController::Base.helpers.asset_path('bootstrap-wysihtml5.js')
ActionController::Base.helpers.asset_path('bootstrap-wysihtml5/index.js')
end

register_instance_option :partial do
Expand Down

0 comments on commit 20be7f0

Please sign in to comment.