I am using tinymce-rails 4.1.4 with tinymce-rails-imageupload 3.5.8.3 on Rails 4.1. The image gets uploaded fine and the img tag src is set to the value that I am setting from json response of the imageupload plugin. But tinymce's data-mce-src attribute in the img tag is creating the problem as the html generated in the editor looks like below:
The above change in src does not affect the image's display in the tinymce editor, but the image is 'not found' if I try to display content raw in a div because of the '../..' that has been pre-pended.
How should I handle this issue? If the above img tag were to be:
Hi,
I am using tinymce-rails 4.1.4 with tinymce-rails-imageupload 3.5.8.3 on Rails 4.1. The image gets uploaded fine and the img tag src is set to the value that I am setting from json response of the imageupload plugin. But tinymce's
data-mce-src
attribute in the img tag is creating the problem as the html generated in the editor looks like below:When the above tag is saved in the DB and accessed directly as raw content in a div, the tag becomes:
The above change in src does not affect the image's display in the tinymce editor, but the image is
'not found'
if I try to display contentraw
in a div because of the '../..' that has been pre-pended.How should I handle this issue? If the above img tag were to be:
without the leading '../..' it would have worked fine for me both while rendering raw and in the editor.
Thanks