spohlenz / tinymce-rails

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

config.tinymce.base = "/assets/tinymce" not working! #249

Closed samerawada92 closed 5 years ago

samerawada92 commented 5 years ago

Hi, we have an application on heroku and it contienues to set the config.tinymce.base = to localhost:3000

In the console I get this error: Access to CSS stylesheet at 'http://localhost:3000/assets/tinymce/skins/lightgray/skin.min.css' from origin

This is odd because it should not be pulling localhost in production.

I set config.tinymce.base = "/assets/tinymce" in product.rb but it continues to add localhost as root.

Please advise...

Sam

samerawada92 commented 5 years ago

This is the error: Notice how its is trying to pull the assets from localhost:3000... Where can I have this setting updated for TinyMCE?

screen shot 2018-11-06 at 8 30 38 am
samerawada92 commented 5 years ago

Fixed! I set this to false: config.assets.compile = false

and recompiled assets with "heroku run rake assets:precompile"