PerfectlyNormal / tinymce-rails-imageupload

Image upload plugin for TinyMCE and Rails with the asset pipeline
MIT License
149 stars 154 forks source link

It messes the absolute paths #67

Closed nikita-volkov closed 9 years ago

nikita-volkov commented 9 years ago

After the image upload the server responds with the following:

{"image":{"url":"/tinymce_assets/AQEAAAAAAAAAB7Ho8_zNDQUAAA9CQA==.png"}}

And the editor displays the image just fine. However, once I persist the output that the editor generates the path gets messed up and turns into the following:

../tinymce_assets/AQEAAAAAAAAAB7Ho8_zNDQUAAA9CQA==.png
nikita-volkov commented 9 years ago

My bad. Turns out it's TinyMCE itself trying to be too smart