spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
816 stars 258 forks source link

Bugfix for using different asset_host #38

Closed ksarna closed 12 years ago

ksarna commented 12 years ago

This simple patch fixes incorrect path to the assets if you have something configured asset_host variable, for example: config.action_controller.asset_host = static.myapp.com

Without this fix only /assets (or other config.assets.prefix) will be added to the base url. In example myapp.com/assets instead of static.myapp.com/assets.

spohlenz commented 12 years ago

@ksarna I will incorporate the functionality but will move the asset host/prefix/dir concatenation into a method on TinyMCE. Hopefully I can fix #39 at the same time.

ksarna commented 12 years ago

OK, that's even better. Thanks!