Page 1 of 1

TinyMce 'Insert Image' function, cuts off Source URL

Posted: Wed Mar 09, 2016 9:00 am
by simonmlewis
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.

Re: TinyMce 'Insert Image' function, cuts off Source URL

Posted: Wed Mar 09, 2016 9:05 am
by simonmlewis
Love it when I find the answer an can reply to myself:

https://www.drupal.org/node/23182

It's the relative URLs. Tweaking it to:
[text]relative_urls: false, [/text]
.. enables the first slash.