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???

Comments

geerlingguy’s picture

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!

__________________
Personal site: www.jeffgeerling.com

laceiba’s picture

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.

geerlingguy’s picture

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.

__________________
Personal site: www.jeffgeerling.com

moni_robo’s picture

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

geerlingguy’s picture

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?

__________________
Personal site: www.jeffgeerling.com

circulus’s picture

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

weber01’s picture

Hello,

I have the same problem, I already added Only local images are allowed. 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

game’s picture

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 :-)

laceiba’s picture

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.

game’s picture

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

mcfilms’s picture

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.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

kev_120’s picture

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

kenyan’s picture

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.

kenp’s picture

Home » Administration » Configuration » Content authoring » Wysiwyg profiles » List

unclick bbcode

and in Home » Administration » Configuration » Media » IMCE

imce config set directory path to in root box

'php: return imce_dir_man_path();'