When I want to insert an image to the body of my blog entry clicking the “Insert” button does nothing. The “Upload” and “Remove” buttons work fine.

I am using:
Drupal 6.2
Insert 6.x-1.0. beta6
FileField 6.x-3.9
Wysiwyg 6.x-2.2
ImageField 6.x-3.9
ImageCache 6.x-2.0-beta10
CKEditor 6.x-1.2

I already checked these:
1. Input format: both my filtered and full HTML has the img tag on its list of allowed HTML tag
2. Permission: Uploaded files are viewable to everybody
3. Blog's image field setting: I have a “File” type field for my blog entry, using the “Image” widget, where under the “Insert” setting the “Enable insert button” is option is checked and under the “Enabled insert styles” the “Automatic” option is checked.
What am I missing, why doesn't the insert button do anything?

Any help/pointer is appreciated.

Comments

foxtrotcharlie’s picture

After an upgrade on a site of mine, it wasn't working. I cleared the Drupal cache, and it started working.

Alan D.’s picture

I just tried the latest release with WYSIWYG 6.x-2.1 and got this JScript error that prevented the HTML insertion:

Drupal.wysiwyg.instances[Drupal.wysiwyg.activeId].insert is not a function
Drupal.wysiwyg.instances[Drupal.wysiwyg.activeId].insert(content)

Using jWYSIWYG 0.6 as the editor.

Alan D.’s picture

Sorry for not taking the 5 min to search the WYSIWYG issue queue: #495074: jWYSIWYG needs Drupal.wysiwyg.activeId which is a duplicate of #483452: jWYSIWYG: Support for Drupal plugins and stylesheets. So ignore the last post :)

break’s picture

Thanksy foxtrotcharlie. Unfortunately that didn't work for me.

Thanks Alan D for the try and the pointer to the queue.

bc1641’s picture

Version: 6.x-1.0-beta6 » 7.x-1.0
Issue tags: +insert colorbox image

I am having the same issue. Please let me know if you ever found a solution.

One component that is unique about mine is that everything was working fine on my test site on my local server. Transferred it online and the problem started. I can upload the images fine (and the path is correct on my webserver), but when I click the insert button, no text is placed in the text box. I checked all the settings between my offline version and my online version and they are identical.

rainbreaw’s picture

foxtrotcharlie: thanks for the tip! clearing the drupal cache solved this for me as well.

andyl29’s picture

Version: 7.x-1.0 » 7.x-1.1

I am having the same problem. I tried clearing the cache, but it is still not working. Using 7.x-1.1. I can upload and remove images, but when I click on "insert" nothing happens, any advice?

realityloop’s picture

I've experienced the same problem, but found that uploading a new file makes the insert button work...

If I save the node and then edit again the insert button will not work until I upload another file.

yktdan’s picture

Version: 7.x-1.1 » 6.x-1.1

This doesn't work for me either. Uploading a new file and flushing cache neither help. My field is an image field not a text field.
See the sketch map on http://www.nynjtc.org/hike/goat-hill-overlook which should link to a larger version of the thumbnail. The Style is set to Link to file. The generated html is:

<div class="hike-label">Sketch Map:</div>
											<div class="data"><img src="http://www.nynjtc.org/files/imagecache/cart/Goat%20Hill%20Map2_1.jpg" alt="" title=""  class="imagecache imagecache-cart imagecache-default imagecache-cart_default" width="100" height="100" /></div><br />
																									</div>
michiellucas’s picture

Any progress on this issue, found it not working with D7 and latest release in combination with field translation.

Works for default language but not for another language, anyone?

Js error
Drupal.wysiwyg.instances[Drupal.wysiwyg.activeId].insert is not a function

quicksketch’s picture

@michiellucas: Your issue is the same as #2, the WYSIWYG module isn't providing an insert() method for whatever WYSIWYG library you're using.

quicksketch’s picture

Status: Active » Closed (fixed)

Seems like we haven't had any new reports in several months. Closing this issue.