Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hai ,
I have problem with image link in ckeditor.I have given all permissions clearly but image is not appearing in browser.i provided screenshots of my proble please see it and tell me what is prblem.
my path is /sites/default/files/pages/filename
pages is the folder i have created here to store mt basic page images.
Comment | File | Size | Author |
---|---|---|---|
ckeditor3.png | 270.35 KB | sahithi | |
ckeditor2.png | 358.69 KB | sahithi | |
ckeditor1.png | 259.84 KB | sahithi |
Comments
Comment #1
davidwhthomas CreditAttribution: davidwhthomas commentedNormally, this would be solved by setting the text format for the body field to "Full HTML" or allow images in "Filtered HTML" under text format settings. The text format select box is normally found under the related textarea.
However, in your case, it looks like you're missing the leading slash off the image url i.e /sites/default/files/image.jpg
Comment #2
sahithi CreditAttribution: sahithi commentedwhile using /sites/... image is not displaying
Comment #3
davidwhthomas CreditAttribution: davidwhthomas commentedIt could also be in issue with your non-standard subfolder install.
Unless multisite, it's recommended to create a virtualhost & document root for each site.
Comment #4
dczepierga CreditAttribution: dczepierga commented@sahithi, which text format do u use?
Greetings
Comment #5
sahithi CreditAttribution: sahithi commentedFull HTML
Comment #6
salytwo CreditAttribution: salytwo commentedI have the same problem, and I added the tag
<img>
to be allowed. but still it showing in the preview or during editing.I tried used full HTML, also same result.
I have drupal 7 and ckeditor, IMCE modules
so you help me.
Thank you all.
Comment #7
Stone Liu CreditAttribution: Stone Liu commentedI am having the exact same problem. Link image and shows fine on local machine, but when go live server the image just don't display.
https://drupal.org/node/2229763
Thanks for any hint anyone could shed:)
Comment #8
francescosciamanna CreditAttribution: francescosciamanna commentedJust add
<img>
to the list of allowed tags of your/admin/config/content/formats/filtered_html
, and the Pictures will reappear.Comment #9
teggsdgreat CreditAttribution: teggsdgreat commentedjust go to "admin-config-content authoring-text formats" and uncheck "display any HTML as plan text" this worked for me.
Comment #10
VM CreditAttribution: VM commentedSupport requests are normal. Removing assigned designation as OP did not provide a patch.
Comment #11
angms-bh CreditAttribution: angms-bh commentedJust adding
img
alone does not work when working with IMCE from what I can tell. You need to addimg[src|width|height|alt|title]
Comment #12
angms-bh CreditAttribution: angms-bh commentedIf you are working with IMCE and using the WYSIWYG filter, you will need to allow for the image alignment and resize as well. These are the settings needed in the WYSIWYG filter settings under admin/config/content/formats/filtered_html
Then under WYSIWYG filter settings, you need Check the style options of Dimension properties, Positioning properties, and Layout properties. Specifically, you need the following
Dimensions properties: height, width
Positioning properties: left, right
Layout properties: float
Comment #13
Toche CreditAttribution: Toche as a volunteer commented#8 worked for me!
I don't understand why is not predefined by default!!
Comment #14
sam452 CreditAttribution: sam452 as a volunteer commentedThis still is an issue, even using ckeditor version 7.x-1.18
This Drupal 7 app is using ckeditor set for "Full HTML". I was able to insert the image and save it for display.
But editing it in the ckeditor window is fruitless without resorting to Source view, which is a non-starter for customer.
Reading these comments, it appears I have to turn ON "Limit allowed HTML tags" for "Full HTML" in /admin/config/content/formats/full_html
and then try to input every combination of elements that could be used?
Tried that, added and still failed, after clearing the cache.
Options for formats/full_html are
and
)
rect faulty and chopped off HTML
And in /admin/config/content/ckeditor/edit/Full
No other options are enabled, including wysiwyg filter. Only Drupal Core.
As a test, the Advanced Content Filter is disabled.
Thx for any pointers, sam
Comment #15
Vako CreditAttribution: Vako commentedI tried all the above suggestions and still can't see the images in Edit mode. However visitors can see the images.