For CKeditor integration,

when we click on Brose server button, it add's url to file or image with domain url. i.e. Full url of image

Hence After adding image using IMCE, HTML image tag populates src resource with full path:

eg: http://www.sitename.com/sites/default/files/images/home/LandingPage.jpg
<p><img alt="" src="http://www.sitename.com/sites/default/files/images/home/LandingPage.jpg" style="width: 900px; height: 140px;" /></p>

Ideally image url should be relative to site:

eg: /sites/default/files/images/home/LandingPage.jpg
Hence After adding image using IMCE HTML should look like:
<p><img alt="" src="/sites/default/files/images/home/LandingPage.jpg" style="width: 900px; height: 140px;" /></p>

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dineshw’s picture

Status: Active » Needs review
FileSize
513 bytes
nidhi.badani’s picture

Assigned: Unassigned » nidhi.badani
nidhi.badani’s picture

Status: Needs review » Reviewed & tested by the community

Hey Patch works fine.

dineshw’s picture

Title: For CKeditor integration, Brose server adds full url to image, relative url should be provided. » For CKeditor integration, Browse server adds full url to image, relative url should be provided.