Life, Liberty and the Pursuit of Happiness (and lots of dancing)
Default header image...

Category — Coding

TinyMCE rewriting image src urls

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

TinyMCE will screw up image urls if you’re not careful.  There are two init options of interest here:

convert_urls : false,
//relative_urls: false,

Setting convert_urls to false will help keep your browser from rewriting URLs automatically (the rewrite comes from the browser, not TinyMCE). However, if relative_urls is set to false, it overrides the behavior of convert_urls.

Personally, where possible I always use relative urls. It makes it possible to transfer websites between servers, especially development websites with a different domain name to the actual site with the correct domain name.

May 17, 2010   No Comments