Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons not showing #78

Open
shayani opened this issue Dec 2, 2018 · 5 comments
Open

Icons not showing #78

shayani opened this issue Dec 2, 2018 · 5 comments

Comments

@shayani
Copy link

shayani commented Dec 2, 2018

I'm using Rails 5.2 and Boostrap 4.1.
Icons doesn't show on summernote's toolbar.
screen shot 2018-12-02 at 17 07 16

I followed the instructions from the Readme file.
Any ideas?

@WaKeMaTTa
Copy link
Contributor

I think summernote only works with Boostrap 3

@shayani
Copy link
Author

shayani commented Dec 2, 2018

I think summernote only works with Boostrap 3

The source files (at least summernote-lite) works fine if I use them without the gem 'summernote-rails'...

@WaKeMaTTa
Copy link
Contributor

Do you get any error in the browser console?

@alainravet
Copy link

I had this problem in production only, and I noticed CORS error related to the fonts in Chrome's console. I couldn't fix them, so I resorted to using the official CDN for the CSS and fonts:
How I fixed it:

  1. I removed this gem
  2. I downloaded + required in application.js the summercode.min.js found at https://summernote.org/
  3. in layout/application.html, I inserted the CDN line:
    <link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.11/summernote.css" rel="stylesheet">

That's all.

@mahfuj890
Copy link

use CDN or download compiled file and make sure summernote font folder and summernote CSS has same folder location
166868318-25a21b45-0f14-4afe-8dae-a33a71ae1d20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants