spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
813 stars 256 forks source link

tinymce fonts are not loading correctly #293

Open RedaBenh opened 1 year ago

RedaBenh commented 1 year ago

Hi, I get the tinymce working on my rails 7.0.4 application, but the menu icons did not show correctly :

image

In my chrome console, i notice that the skin.min.css is loading fonts from /fonts/tinymce.woff (instead of /assets/fonts/tinymce.woff)

image

Any suggestion of how to fix this ?

Faq commented 1 year ago

You didnt provide even tinymce-rails version. How you got to this? migrated from older tinymce-rails version? sprockets+dart sass? Can you share your project?

But looks, your fonts not loaded in asset pipeline. Similar issue was https://github.com/spohlenz/tinymce-rails/issues/155#issuecomment-1169983058

RedaBenh commented 1 year ago

Hi, i'm currently playing with Soludis, i found this plugin https://github.com/solidusio-contrib/solidus_editor witch use tinymce-rails After running bundle install the dependencies was resolved to : tinymce-rails (4.9.11) image

Other details from gemfile: ruby "2.7.3" gem "rails", "~> 7.0.4"

Thanks

Faq commented 1 year ago

try enter 5.0.4 here https://github.com/solidusio-contrib/solidus_editor/blob/master/solidus_editor.gemspec#L35 and bundle install or just bundle update tinymce-rails

jean-felipe-corp commented 1 year ago

I went to the same issue, after updating to 5.0.4 on rails 5.2 I got this font issue: image

Any ideas in how to fix?