Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10083

drupal multisite ckeditor image path error

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      On 4.1.1 Drupal 6.25, multisite:

      New CKEditor in CiviMail does upload, and display display images correctly within the CKEditor itself. However in a multi-site instance of Drupal the image is not displayed in the CiviMail message itself. This is because the way the path to the image changes between that within CKEditor itself, and the CiviMail message.

      For example in the following drupal multi-site configuration:

      /sites/default
      /sites/example1.com
      /sites/example2.com

      The path an image file is uploaded to and displayed by CKEditor to is:
      http://example1.com/sites/example1.com/files/civicrm/persist/contribute/images/image.jpg
      This is good. This works correctly.

      However in the Civimail message the path is constructed mistakenly to be:
      http://example1.com/sites/default/files/civicrm/persist/contribute/images/image.jpg
      This is bad. This does not work.

      The error is:
      /example1.com/ is replaced by
      /default/

      The work around is to go back to editing HTML to put in the <img> tag for CiviMail messages. This feature is not ready for a general CiviMail content editor role.

      Presented in http://forum.civicrm.org/index.php/topic,24016.msg101036.html#msg101036

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              karunadave Dave Gould
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: