Answers.Body: <p>Have you tried to <a href="https://civicrm.stackexchange.com/questions/4523/how-do-i-override-the-default-ckeditor-configuration">override the CKEditor config file</a>? You could set <code>baseHref</code> to <code>http://mysite.com</code> (<a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config" rel="nofollow noreferrer">config reference</a>). I think this will do what you need.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-18T09:49:12.043Z
Answers.Text: Thanks for this. It didn't end up being the solution but it put me on the right track to find the solution!
Answers.UserDisplayName: TheBarnacle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-17T18:03:44.853Z
Answers.LastActivityDate: 2015-08-17T18:03:44.853Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Nicholai
Answers.Body: <p>Please make sure all the images are accessible over the web on its own and then send the email  </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-11T13:22:35.410Z
Answers.Text: Thanks for this answer. Perhaps I should clarify that the refs are coming out as "/sites/default/files/civicrm/image.jpg" instead of "http://mysite.com/sites/default/files/civicrm/image.jpg" so although they are accessible over the web, the refs are not specific enough because they are not absolute.
Answers.UserDisplayName: TheBarnacle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-11T11:38:52.757Z
Answers.LastActivityDate: 2015-08-11T11:38:52.757Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.Body: <p>When CiviCRM is on Pantheon, it needs a special set of config in the civicrm.settings.php which defines various variables to make CiviCRM work in cloud hosting. </p>
  
  <p>I had to add this variable to that list:</p>
  
  <pre><code>$civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://www.mysite.com/sites/default/files/civicrm/persist/contribute/';
  </code></pre>
  
  <p>Then I had to make sure that the "system settings"->"Directories" was pointing to the same folder. Then it worked!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-02T03:29:24.840Z
Answers.Text: I'm having this same problem. I have this line in civicrm.settings.php :   $civicrm_setting['URL Preferences']['imageUploadURL'] = $base_url . '/sites/default/files/';
  The Url is still coming out as /sites/default...
  Any clues?
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-18T09:51:06.283Z
Answers.LastActivityDate: 2015-08-18T09:51:06.283Z
Answers.UserDisplayName: TheBarnacle
Body: <p>When our site migrated to Pantheon, all the images in a mailing became broken when the mailing was received. </p>
  
  <p>I saw this (<a href="https://stackoverflow.com/questions/27569280/civicrm-civimail-images-are-relative-urls">https://stackoverflow.com/questions/27569280/civicrm-civimail-images-are-relative-urls</a>) but the question is only partially answered. </p>
  
  <p>I can't see any settings in the menu for the editor. How do I make the WYSIWYG editor for mailings provide absolute URL refs? Otherwise the images look fine in the preview but are all broken when the mailing is sent. </p>
  
  <p>To clarify, the refs are coming out as "/sites/default/files/civicrm/image.jpg" instead of "<a href="http://mysite.com/sites/default/files/civicrm/image.jpg" rel="nofollow noreferrer">http://mysite.com/sites/default/files/civicrm/image.jpg</a>" and that is why they are broken.</p>
  
  <p>Any help would be appreciated. Thanks!</p>
  
Tags: <civimail><wysiwyg>
Title: Migrating to Pantheon: How to make CiviMail editor insert images with non-relative refs?
ThreadText: # Migrating to Pantheon: How to make CiviMail editor insert images with non-relative refs?
  
  (Asked by: username_0 on 2015-08-11)
  
  When our site migrated to Pantheon, all the images in a mailing became broken when the mailing was received.
  
  I saw this (<https://stackoverflow.com/questions/27569280/civicrm-civimail-images-are-relative-urls>) but the question is only partially answered.
  
  I can't see any settings in the menu for the editor. How do I make the WYSIWYG editor for mailings provide absolute URL refs? Otherwise the images look fine in the preview but are all broken when the mailing is sent.
  
  To clarify, the refs are coming out as "/sites/default/files/civicrm/image.jpg" instead of "<http://mysite.com/sites/default/files/civicrm/image.jpg>" and that is why they are broken.
  
  Any help would be appreciated. Thanks!
  
  **Tags:** civimail, wysiwyg
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2015-08-18. Score: 3 | Accepted answer
  
  When CiviCRM is on Pantheon, it needs a special set of config in the civicrm.settings.php which defines various variables to make CiviCRM work in cloud hosting. 
  I had to add this variable to that list:
  $civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://www.mysite.com/sites/default/files/civicrm/persist/contribute/';
  
  Then I had to make sure that the "system settings"->"Directories" was pointing to the same folder. Then it worked!
  
  > **Comments:**
  > **username_3**: I'm having this same problem. I have this line in civicrm.settings.php :   $civicrm_setting['URL Preferences']['imageUploadURL'] = $base_url . '/sites/default/files/'; The Url is still coming out as /sites/default... Any clues?  
  
  ---
  
  ### Answer by username_1 on 2015-08-17. Score: 2
  
  Have you tried to [override the CKEditor config file](https://civicrm.stackexchange.com/questions/4523/how-do-i-override-the-default-ckeditor-configuration)? You could set `baseHref` to `http://mysite.com` ([config reference](http://docs.ckeditor.com/#!/api/CKEDITOR.config)). I think this will do what you need.
  
  > **Comments:**
  > **username_0**: Thanks for this. It didn't end up being the solution but it put me on the right track to find the solution!  
  
  ---
  
  ### Answer by username_2 on 2015-08-11. Score: 0
  
  Please make sure all the images are accessible over the web on its own and then send the email
  
  > **Comments:**
  > **username_0**: Thanks for this answer. Perhaps I should clarify that the refs are coming out as "/sites/default/files/civicrm/image.jpg" instead of "http://mysite.com/sites/default/files/civicrm/image.jpg" so although they are accessible over the web, the refs are not specific enough because they are not absolute.  
  
  ---
  
  