When uploading images with IMCE, I can see them as I edit the page.
But when I submit, the image disappear from the view page.
I have another site that works fine though.
Don´t know where to look.

Any idea anybody?
Thanks.

Comments

vm’s picture

double check that you are using the same input format for both ?

when you view the source of the page , after submission, is the img tag being stripped ?

Anonymous’s picture

Thanks VeryMisunderstood.
Actually, the input format is full HTML. I use TyniMCE and IMCE for uploading the picture.
What do you mean by IMG tag being striped?

The code created is the following>

<p>sdf</p><p>sdf</p><p>sd</p><p><img src="/cursos/dpd/files/alumno1/bmap-vect.gif" alt=" " width="266" height="144" /> <br /></p><p>sdf</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>

The actual page is>
http://nexus.gda.itesm.mx/cursos/dpd/?q=node/685

thanks for your help.

Michaël

vm’s picture

open that link and view the page source you will see that the img tag is being stripped out by a filter.

your page source when viewed is:

           <!-- start main content -->
	    <span style="width: 100%;"><a name="content"></a></span>
            <!-- begin content --><div class="node">
   
  <div class="info"><span class="taxonomy"></span></div>
  <div class="content">
  <p>sdf</p>
<p>sdf</p>
<p>sd</p>
<p> </p>
<p>sdf</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br class="clear" />  </div>
      <div class="links"><a href="/cursos/dpd/?q=blog/1" title="Read michael&#039;s latest blog entries.">michael&#039;s blog</a> | <a href="/cursos/dpd/?q=user/login&destination=comment%2Freply%2F685%23comment_form">login</a> or <a href="/cursos/dpd/?q=user/register&amp;destination=comment%2Freply%2F685%23comment_form">register</a> to post comments</div>
  </div>
  
<!-- end content -->            <!-- end main content -->

as you can see above, the img tag is being stripped. you could of course try adding the Only local images are allowed. tag to the input filter you are using and I understand that you are using the FULL HTML filter, however, the tinymce installation.txt comes with the caveat below.

CAVEATS
********************************************************************
By default, Drupal uses the 'Filtered HTML' input format for adding
content to the site and this can create conflicts with TinyMCE. It's
best when using this editor to use an input format that has all
filters disabled. What I usually do is create an input format called
'Rich-text editing' and set that as the default format for roles which
use TinyMCE exclusively. To modify your input formats go to:

Administer > input formats > configure > configure filters

create the empty input filter and use it to render tinymce code. I'd guess you followed this step with site #1 and forgot to do it on site #2 ?

Anonymous’s picture

Thanks much.
That will do it. :)
Michaël

linkdomain’s picture

i was having problems too. my issue was with IE 6.0. it worked fine with firefox.

DocMartin’s picture

I too had this problem (tho fckeditor).

Seemed changing to Full HTML in site admin made no difference.
But, in node/article I was having problem with, had to also set Full HTML and resave. And - presto! - photo appeared.
Phew!
Maybe worth adding some info to the documentation.

Not too sure why images stripped by default.
Just read post advising on using TINYMCE, and changing Filtered HTML tags in 4.7.
But looks like can't change the Filtered HTML tags in Drupal 5. If to retain the filter - perhaps advisable for forum posts, say - can enable Image Assist tagging, tho I'm yet to see how well this works.

____________________________
DocMartin and Hong Kong Outdoors