TinyMCE URL rewrite problem editing emails (kinda solved)

TinyMCE has a habit of rewriting the URL for images, etc.  However, this becomes broken when using TinyMCE to edit things like emails.  The relative path is totally useless in an email because the email is not being viewed from the server like a webpage would be.

To fix this I searched the tiny_mcs.js and found that TinyMCE had two settings in the tiny_mce.js file that are boolean flags (true,false or 0,1) dealing with URL’s. The variables are relative_urls and convert_urls, and by default they are set to true, or 1.

After changing these setting to false (or zero) I have not had any further problems with using TinyMCE to edit email content.

Comments

  1. I had found the relative_url setting, but the convert had eluded me. Thanks for posting this!


    Phil
    November 12th, 2008
  2. hi, this is very helpful
    thank you


    hale
    November 3rd, 2011
  3. Wow, thanks, I was getting extremely annoyed with the rewrite


    christopher
    January 27th, 2012

RSSSubscribe to my feed now.

About Me

Adam Culp (GeekyBoy)
Adam Culp (GeekyBoy) is a Zend PHP 5.3 certified application architect from south Florida specializing in LAMP development of web-based applications. He enjoy technology and tries to post any interesting finds he makes to this blog, mostly so he remembers them, and to help others who may also need the info. He created ReqHarbor.com to help others gather and manage application requirements, and set up OutsourceHarbor.com to help companies find good developers. Read More >>