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.
Hi!
I've installed the CKEditor and the IMCE modules for me (as admin) to be able to upload and place images within pages and posts.
This works perfectly! I am able to do just that... however the image wont display frontend. It's replaced by a nonebreaking space..? If I edit the post the image is still displayed in the editor.
I've been googlin' for a few days now and i cant find anything on the issue.
Side note: I am completely new to drupal :)
Thanks!
Comments
Comment #1
logicexpertise CreditAttribution: logicexpertise commentedIt appears the image is being prevented from displaying by the input format - the tag is not one of those allowed by the default Filtered HTML input format. The solution is either to edit that format to allow the tag - in admin/settings/filters - or use the Full HTML format with your post.
Comment #2
dolleris CreditAttribution: dolleris commentedThats it! Thanks alot! =)
Comment #3
dolleris CreditAttribution: dolleris commentedComment #5
anusornwebsite CreditAttribution: anusornwebsite commentedI installed CKEditor and TinyMCE and use them with Full HTML. I created directory sites/default/files/image(755) and put my picture into it.
When I added my picture with CKEditor and TinyMCE, it shown on edit. But it didn't show on my page(view)
Is this problem from my server?
Pardon me if my english isn't well
Comment #6
anusornwebsite CreditAttribution: anusornwebsite commentedIt is my fault. I created wrong URL (sites/default/files/yourImage), but it can see image on 'edit' with CKE, but not see on 'view' because this URL it changed into (node/sites/default/files/myNewImage) when I save. This is right URL (http://yourDomain/sites/default/files/yourImage). This URL is never changed
Comment #7
francis55 CreditAttribution: francis55 commentedBut surely if you put the whole URL, then if you move from a development platform to a production one, then the link won't work anymore?
I have the problem that the image appears in the editor but not in the page. The URL is not changed by the editor, it remains as
<img src="images/imageName.gif"...>
and the image is in the images folder just under the Drupal site.
I can imagine why this should not work: it's a relative path, so it might be looking for the image from the position of the page. On the other hand, I don't see how it could work in the editor and not in the page.
I have my site on "http://localhost/drupal_commons/"
I found one way of displaying the image, which was by putting
href="/drupal_commons/images"/imageName.gif"
. My fault for not putting my drupal files at the root.I've been trying to get the editor to load images from my disk. First I realized that I needed an added module, named IMCE. Then I read that to get IMCE to work with the editor, I needed another module called IMCE Wysiwyg API bridge. I installed that, but I still don't have the browse button. (the editor is called Wysiwyg in my config, but I believe it's the same as FCK ...)