Browse Source

Fix for Quill editor

development
Godwin 8 years ago
parent
commit
d08e8a9088
  1. 1
      app/assets/javascripts/editor.js
  2. 4
      app/assets/stylesheets/_application.scss
  3. 6
      app/controllers/application_controller.rb
  4. 8
      config/environments/production.rb

1
app/assets/javascripts/editor.js

@ -12,6 +12,7 @@
modules: {
toolbar: [
[{ 'header': [1, 2, false] }],
['link', 'image'],
['bold', 'italic', 'underline', 'strike'],
[{ 'script': 'sub'}, { 'script': 'super' }],
[{ 'list': 'ordered'}, { 'list': 'bullet' }, 'blockquote']

4
app/assets/stylesheets/_application.scss

@ -1205,7 +1205,7 @@ fieldset {
}
}
ul {
.locale-select, .text-editors {
list-style: none;
padding: 0;
margin: 0;
@ -1253,7 +1253,7 @@ fieldset {
position: relative;
background-color: $white;
li {
li[data-locale] {
display: none;
&.selected {

6
app/controllers/application_controller.rb

@ -8,6 +8,10 @@ class ApplicationController < BaseController
@@test_host
@@test_location
def default_url_options
{ host: "#{request.protocol}#{request.host_with_port}" }
end
def capture_page_info
# capture request info in case an error occurs
if request.method == "GET" && (params[:controller] != 'application' || params[:action] != 'contact')
@ -225,7 +229,7 @@ class ApplicationController < BaseController
@conference.organizations.each do |org|
org.users.each do |user|
email_list << user.named_email
# email_list << user.named_email
end
end
end

8
config/environments/production.rb

@ -88,14 +88,14 @@ BikeBike::Application.configure do
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => 'mail.bikebike.org',
:domain => 'preview.bikebike.org',
:address => 'smtp.gmail.com',
:domain => 'bikebike.org',
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true,
:openssl_verify_mode => 'none',
:user_name => 'info@preview.bikebike.org',
:password => 'test'
:user_name => '',
:password => ''
}
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true

Loading…
Cancel
Save