When I insert an image in the rich text editor, everything is fine. It is displayed properly, the path ("/media/5571/img_dummy_industrial_192x125.jpg") is correct.
Just after saving or publishing the page, a broken image is displayed in the RTE (but the newly published page displays the image).
By switching to the html view, I see that image path is corrupted ("/media/5571/img_dummy_industrial.jpg" instead of "/media/5571/img_dummy_industrial_192x125.jpg"). I think it is a problem of the RTE. I was searching the web for hours but couldn't find any solution.
Could someone be so kind to point me to the right direction? Thx!
I have noticed that a couple of times as well. I think it has to do with the image file name, specifically the 192x125.
When you load an image into the RTE and drag the corner to make it bigger or smaller it appends the new dimensions to the image file name, so that it can resize the image and create a new thumbnail with those dimensions.
The way that we got around it was to make sure that there were no dimensions in the file name (ie. no 192x125)
Thank you for your quick reply. I had proposed your solution to the client already but wasn't really satisfied. But it looks like this is the only reasonable way to go.
Rich Text Editor - Image Path is truncated
When I insert an image in the rich text editor, everything is fine. It is displayed properly, the path ("/media/5571/img_dummy_industrial_192x125.jpg") is correct.
Just after saving or publishing the page, a broken image is displayed in the RTE (but the newly published page displays the image).
By switching to the html view, I see that image path is corrupted ("/media/5571/img_dummy_industrial.jpg" instead of "/media/5571/img_dummy_industrial_192x125.jpg"). I think it is a problem of the RTE. I was searching the web for hours but couldn't find any solution.
Could someone be so kind to point me to the right direction? Thx!
I have noticed that a couple of times as well. I think it has to do with the image file name, specifically the 192x125.
When you load an image into the RTE and drag the corner to make it bigger or smaller it appends the new dimensions to the image file name, so that it can resize the image and create a new thumbnail with those dimensions.
The way that we got around it was to make sure that there were no dimensions in the file name (ie. no 192x125)
Hope that helps
Hi Sean
Thank you for your quick reply. I had proposed your solution to the client already but wasn't really satisfied. But it looks like this is the only reasonable way to go.
Rigo
is working on a reply...