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>
Comment | File | Size | Author |
---|---|---|---|
#1 | ckeditor-relativeurl-forimage-2347675-2.patch | 513 bytes | dineshw |
Comments
Comment #1
dineshw CreditAttribution: dineshw commentedComment #2
nidhi.badani CreditAttribution: nidhi.badani commentedComment #3
nidhi.badani CreditAttribution: nidhi.badani commentedHey Patch works fine.
Comment #4
dineshw CreditAttribution: dineshw commented