summernote-rails icon indicating copy to clipboard operation
summernote-rails copied to clipboard

Icons not showing

Open shayani opened this issue 7 years ago • 5 comments

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?

shayani avatar Dec 02 '18 20:12 shayani

I think summernote only works with Boostrap 3

WaKeMaTTa avatar Dec 02 '18 20:12 WaKeMaTTa

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'...

shayani avatar Dec 02 '18 21:12 shayani

Do you get any error in the browser console?

WaKeMaTTa avatar Dec 04 '18 08:12 WaKeMaTTa

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.

alainravet avatar Apr 17 '19 12:04 alainravet

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

mahfuj890 avatar May 05 '22 05:05 mahfuj890