redactor-rails
redactor-rails copied to clipboard
Using Image Upload w/Application in a sub-URL
I have a rails app with redactor-rails running in a sub-URL like http://www.domain.com/sub/. I could easily add the sub-URL to the paths at config.js for imageUpload, imageGetJson, etc. But I could not find a configuration to add the sub-URL for the image URL which is used for uploaded images within redactor. The URL starts directly with /system, which does not work, if the application runs in a subdirectory of domain:
<img data-verified="redactor" data-save-url="/system/redactor_assets/pictures/1/1505.jpg" src="/system/redactor_assets/pictures/1/1505.jpg">