spohlenz / tinymce-rails

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

document base not get update when config.tinymce.base changes #212

Open Ehekatl opened 7 years ago

Ehekatl commented 7 years ago

I have dynamic assets path set like this:

config.tinymce.base = config.action_controller.asset_host.call + Rails.application.config.assets.prefix + "/tinymce"

in the compiled tinymce js I got:

window.tinymce = window.tinymce || {
    base: "https://assets.*.com/assets/BQ9P2RZJEDX/tinymce",
    suffix: ""
},

however, when the config changes, it won't get update, base won't get update unless I clean sprockets cache.