Results 1 to 8 of 8

Thread: TinyMCE and Images for Email campaigns

  1. #1
    matthewboh is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    41

    Default TinyMCE and Images for Email campaigns

    I'm running 5.0.0c and trying to create a email template for a Campaign. I want to insert an image, but TinyMCE keeps changing it to a relative URL which doesn't work in the email.

    I found some information about changing the default for relative URLs to absolute URL's in the TinyMCE forums, but when I do that, it breaks my Tracking Links.

    How can I get both to work?

    Right now, I thankfully have two domain names pointing to the same site, so I am just using the different domain name so TinyMCE won't strip out the domain name.

  2. #2
    jeremy is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    20

    Default Re: TinyMCE and Images for Email campaigns

    Thanks for the tip. I should have thought on that solution on my own! We can only hope this will be fixed as explaining every hack to the users that need to use the system is becoming very tedious.
    Jeremy Heslop
    CBI Group, LLC

  3. #3
    jeremy is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    20

    Default Re: TinyMCE and Images for Email campaigns

    Well I think I spoke to soon. When I use another domain it keeps the proper url in the image under TinyMCE, but when I send the campaign email out it strips the later part of the url and adds in cid: before the images name like so:

    http://images.domain.com/crm/cache/images/bottom.jpg

    to

    http://images.domain.com/crm/cid:bottom.jpg

    which obviously won't work.
    Jeremy Heslop
    CBI Group, LLC

  4. #4
    matthewboh is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    41

    Default Re: TinyMCE and Images for Email campaigns

    Yeah - I'm using linked images instead of embedded ones like you are.

  5. #5
    grimlock is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default Re: TinyMCE and Images for Email campaigns

    I found the fix for this here on the forums, all you have to do is put in the IP Address of your server and Sugar won't kill the URL, i.e. http://192.168.1.101/mypic.gif. The only draw back to this is if you're on a shared web host and I've provided a solution to that below.

    A long term solution is to use a free image hosting service that allows you to access your image by IP Address. This works with Flickr no problem, to get it to work, create a flickr account, upload your image, in Flickr make sure to view the image at its full resolution and right click the image and select properties. From the properties sheet select the TDL i.e. farm4.static.flickr.com, open a command prompt, and type in ping farm4.static.flickr.com, grab the IP Address given back from ping, now open TinyMCE and insert the full path to the image http://67.195.19.64/3014/2645328074_85a5f19c07.jpg?v=0 and it will work like a champ.

    Thanks,

    Grim
    Last edited by grimlock; 2008-07-21 at 04:03 AM. Reason: Spelling and grammatical errors ;)

  6. #6
    smeranda is offline Member
    Join Date
    Sep 2008
    Posts
    11

    Unhappy Re: TinyMCE and Images for Email campaigns

    This isn't working either, TinyMCE is also stripping the IP address. I have submitted a bug request. http://www.sugarcrm.com/crm/index.ph...b-48e26976709a

  7. #7
    conga3 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    2

    Default Re: TinyMCE and Images for Email campaigns

    Look here : {sugar}/include/javascript/tiny_mce.js

    Line 183

    Code:
    		this._def("convert_urls", true);
    Set this to false

    Code:
    		this._def("convert_urls", false);
    Clear your browser cache to reload JS, and solution fixed.

  8. #8
    roastedbean's Avatar
    roastedbean is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Gilbert, AZ
    Posts
    11

    Default Re: TinyMCE and Images for Email campaigns

    Thanks! When I used ip number in url the image was shown properly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •