Can't Upload image with TinyMCE and IMCE

baseballsws3 - July 2, 2009 - 09:18

Hey Guys,

I am using IE and Mozilla, Drupal 6, and TinyMCE and IMCE. I am using IMCE with the WYSIWYG API module. After I enable IMCE and WYSIWYG I go into the WYSIWYG module and set TinyMCE 3.2.5 as the editor for Full HTML. Then I click edit "full HTML" and put a check mark next to all buttons and plugins (including IMCE). After than I go to input formats and set the default to full HTML.

But once I am creating content (ex. blog post) and I try to insert an image with the insert image button, it appears to work fine because I can see the image in the text area but once I click preview or publish it only shows the HTML code for it. (I also tried using FCKeditor and had a world of trouble trying to insert images with that too). If you can provide any help I would greatly appreciate it.

I had to install the imce

masher - July 2, 2009 - 09:32

I had to install the imce wysiwyg bridge module to get it working properly

http://drupal.org/project/imce_wysiwyg

Only the errors I got were not exactly as those described by you

Thanks a lot for the

baseballsws3 - July 2, 2009 - 09:41

Thanks a lot for the recommendation. I did what you said and enabled that module but still no luck. I'm still just getting this code instead of the image... [img]/drupal/sites/default/files/small_IMG_0725.JPG[/img]

Can only suggest check your

masher - July 2, 2009 - 11:40

Can only suggest check your file/folders permissions, are they readable

keep in mind that the modules

arh1 - July 2, 2009 - 13:54

keep in mind that the modules you mention are just adding convenient ways to upload files and write HTML content, including link to the uploaded files. the issue you're having sounds like a lower level problem than that -- probably just related to your input formats and HTML filters (as provided by Drupal core).

what does the code look like in the editor textarea, and what code is rendered to the page (i.e. what can you see when you view the page source)?

(note, wrap your code in the <code> tag when posting here so we can see it exactly as it appears; e.g. it will look like <img src="/foo/bar.jpg" />.)

When I go to the page source

baseballsws3 - July 2, 2009 - 20:36

When I go to the page source the actual HTML code looks like [img]/drupal/sites/default/files/small_IMG_0725.JPG[/img]&nbsp;. And that's all that shows up on the page after I submit the posting. When I go back to the posting to edit it the picture is visible but when I submit the article or preview it the code shows up again.

hmm, are you sure you're

arh1 - July 2, 2009 - 22:59

hmm, are you sure you're actually using the IMCE module to add the images and not Image Assist or some other "bbcode"-style module?

if you view the source in the editor (not the "rich-text" or "wysiwyg" view), do you see the same code?

When you mentioned bbcode I

baseballsws3 - July 3, 2009 - 08:49

When you mentioned bbcode I went to double check that I didn't have that checked in the wysiwyg buttons section and sure enough I did! After I unchecked it I fixed it! Thank you so much for your help. To bad it took me so long to figure that out! haha. Thanks again I really appreciate it!

 
 

Drupal is a registered trademark of Dries Buytaert.