Hi!

When I had a link or image with TinyMCE and the I put example: "http://example.com/node/66"
He saves it has "node/66." That should be ok. But! I use the enewletter Module to send newsletters to my users, in this newsletters goes exact copies of the articles. And when the email reaches the users mailboxes you can imagine that the "node/66" path does not exist!

I solve this by putting "http://www.example.com/node/66" and that way all the string goes. But that creates another problem. If a user clicks on the link at the article in on site, he gets logoff of the site, because the cookie thinks the user went to another site.

So there is any way you could you not strip out the "http://example.com/" from the Links and Images URL? Or create a option for that?

Thank you for you time. Great Module you have here.

Comments

m3avrck’s picture

Status: Active » Closed (fixed)

The 2.0 release of TinyMCE has a new option that *won't* autoconvert all URLs to relative: http://tinymce.moxiecode.com/tinymce/docs/option_convert_urls.html

Set this value using the theme function like so:

case 'your_textarea_name':
   $init['convert_urls'] = 'false';

And that should do it!