redactor-rails icon indicating copy to clipboard operation
redactor-rails copied to clipboard

Using Image Upload w/Application in a sub-URL

Open ut opened this issue 9 years ago • 0 comments

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">

ut avatar Jun 18 '15 16:06 ut