IMCE + FCKEditor - Pictures Show in 'Edit' mode, but not after Posting

geerlingguy - November 10, 2008 - 19:21

I have a really odd problem...

I finally got IMCE and FCKeditor working together, and I can use the 'quick upload' to get images put on the file server straight from the editing page. However, even though the image shows up in the Edit mode, after I click 'Publish' and go to the story I just created, the picture will not show up. Not even any hint of it in the resulting page's HTML.

And when I click the 'switch to the default text editor' button below the FCKeditor window, the page source looks right, but even then, if I click 'publish,' no picture will show up. What the deuce could be the problem here???

A Little More Info...

geerlingguy - November 10, 2008 - 19:28

I just pasted the following code into the 'plain text entry' input window:

<img src="/drupal/sites/default/files/pope-kangaroo.gif" alt="Pope Kangaroo" width="178" height="178" vspace="5" hspace="5" border="0" align="right" />Imagine you, a few kangaroo&rsquo;s, hundreds of thousands of young Catholics and the Pope all heading Down Under to celebrate the universality of our amazing faith. In July of 2008 you may not have to use your imagination.<br />
<br />
More text here...<br />
<br />
More text here... <br />
<br />
<a href="http://www.stlyouth.org/worldyouthday">Read more...</a>

And here's the resulting HTML on the live page:

<p>Imagine you, a few kangaroo&rsquo;s, hundreds of thousands of young Catholics and the Pope all heading Down Under to celebrate the universality of our amazing faith. In July of 2008 you may not have to use your imagination.</p>
<p>More text here...</p>
<p>More text here... </p>
<p><a href="http://www.stlyouth.org/worldyouthday">Read more...</a></p>

Quite odd!

EDIT: I just tried two more postings, and every time I post, all the images I insert are stripped from the post, an &nbsp is added, and all my <br /><br />'s are converted to <p> tags!

Input Format

laceiba - November 10, 2008 - 19:30

My guess is that you are entering your post using the "Filtered HTML" input format. You will need to do one of three things:

  • Create a new input format that allows <img> tags
  • Add the <img> tag to the list of allowable tags in Filtered HTML
  • Create your post using the Full HTML input format
  • To see if I am correct, just enable "Full HTML" near the bottom of your post. If you can see the picture, that's the issue. Then you can choose from the above options for the future.

Thanks!

geerlingguy - November 10, 2008 - 20:01

That was exactly the problem I was having. Thank you for your help!

Also, do you know how I can make 'full HTML' the default input format?

EDIT: Nevermind... found it in the Administration pages.

www.akairan.com

moni_robo - February 19, 2009 - 10:48

Hi
Im Monireh From Iran
This Is My WebSite : www.akairan.com
Tanx For Visit Me

Silly Me... Had to Switch to 'Full HTML'

geerlingguy - November 10, 2008 - 19:30

Well, after more troubleshooting, I noticed that I could switch form 'Filtered HTML' to 'Full HTML', and this fixed everything. I'm wondering, though... can I have it set to 'Full HTML' under Input Format by default?

You can set the default Input

circulus - February 19, 2009 - 10:46

You can set the default Input format at http://yoursite.com/drupal/?q=admin/settings/filters by selecting one as default.

Same problem even after adding <img> to list

weber01 - October 2, 2009 - 16:54

Hello,

I have the same problem, I already added to filtered html and cleared the cache, but still I don't see the images on the page, I do see them in the editor though, please help, I don't know where the problem is now.

Thank you

I too am getting this

GAMe - October 23, 2009 - 16:44

I too am getting this annoying issue with FCKEditor :-( anyone found a solution?

I have spent a good few hours trying different things, If i find a solution I will post you all back :-)

Have you tried Full HTML yet?

laceiba - October 27, 2009 - 17:51

Have either of you tried Full HTML yet? You only mention filtered HTML. If it works in Full HTML, then you need to go back and make sure that the tags you added to Filtered HTML are actually correct.

Yes I have tried Full HTML

GAMe - November 3, 2009 - 14:35

Yes I have tried Full HTML and if I use TinyMCE profile with those input formats it seems to work. but sadly not with FCKeditor. Im wondering if there is an issue with another module.

some of the standout modules I am using are:

Slider 6.x-1.4
Insert view 6.x-1.0
Wysiwyg 6.x-2.0
IMCE Wysiwyg API Bridge 6.x-1.0
Clone module 6.x-1.0
IMCE 6.x-1.3
Node Page Template 6.x-1.0
Imagecache 6.x-2.0-beta10
administration menu 6.x-1.5

wonder how that compares to anyone else with the same issue

another quick note to mention is that it is not an issue related to browser as it has been tested on IE8 and FF and another interesting point is that if you insert an image with IMCE and add some normal text then turn off the rech text editor (FCKeditor) the image tags and all dissapear too appart from the text

Thanks

Permissions

mcfilms - November 3, 2009 - 16:44

The next thing I would check into is permissions. If the image was uploaded prior to being placed in the fckeditor, you may not have permission to view it. Also check to see if the server permissions on the directory that holds your image are correct.

FCKEditor Square Brackets

kev_120 - November 3, 2009 - 16:57

Hey Guys,

My FCKEditor is turning everything is square brackets. For example, when you bold something, it shows up bold in the FCKEditor but then on the actual pages it just shows "[b]Some text...[/b]". How do I fix this?

Thanks,
Kevin

BBcode

kenyan - November 16, 2009 - 11:41

What you are seeing is bulletin board code..
FCK editor (0r Tinymce for that matter) is converting your tags to bbcode.
Simply untick bbcode in your editor plugins. It's easy to miss.

 
 

Drupal is a registered trademark of Dries Buytaert.