TinyMce 'Insert Image' function, cuts off Source URL
Posted: Wed Mar 09, 2016 9:00 am
Hi
I've just decided to use the Insert Image function of TinyMCE.
I will build a little tool for a Media Gallery for this website, so users can grab the full URL of the image to use.
However, when you do Insert and the popup appears, the source field doesn't allow all what I am trying in.
I want to put in "/images/pagephotos/filename.jpg", but if I put any / before images, it removes everything before "images".
So even if I put in the full local URL, it stops and shows only what you see in the screenshot.
If I put in //images...... then that DOES work.
I did have some escape code in my script, but have remove that for the moment. I'm a bit stuck.
I've just decided to use the Insert Image function of TinyMCE.
I will build a little tool for a Media Gallery for this website, so users can grab the full URL of the image to use.
However, when you do Insert and the popup appears, the source field doesn't allow all what I am trying in.
I want to put in "/images/pagephotos/filename.jpg", but if I put any / before images, it removes everything before "images".
So even if I put in the full local URL, it stops and shows only what you see in the screenshot.
If I put in //images...... then that DOES work.
I did have some escape code in my script, but have remove that for the moment. I'm a bit stuck.