Hi!

I've added created a new FileField in a custom content type, and checked the "HTML Insert" option and also selected some ImageCache presets.
I navigate to the node/mycustomctype/add and load an image. Now, not sure if this is a bug report, but when I upload an image no
"Send to textarea" button appear. The ImageCache presets doesn't appear there either.

I've tried to debug the problem, and successfully come to the conclusion that this...

  // Add the insert widget, replacing the 'filefield-insert-location' element.
  $('div.filefield-element', context).each(function() {
    if ($(this).find('input[name$="[fid]"]').val() > 0) {
      var widget = $('input.filefield-insert-widget', this).val();
      var $location = $('input.filefield-insert-location:first', this);
      var $insert = $(Drupal.settings.fileFieldInsert.widgets[widget]).find('input.filefield-insert').click(fileFieldInsert).end();
      $location.replaceWith($insert);
    }
  });

...code in filefield_insert.js is never executed.

Any ideas?

Drupal 6.9
FileField 3.0 alpha5
Image Resize Filter 1.4
ImageCache 2.0 beta8
WysiwygAPI 1.0

Comments

Eugene.Korneev’s picture

i have too same trouble.
maybe after last CCK (3.0dev) updating.
or after installing "jsalter" module...

Eugene.Korneev’s picture

after downgrading CCK to 2.x-dev all work OK!!!

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

FileField 3.0 alpha5

Also important to note that FileField insert requires FileField 3.0 (final version). Alpha or beta versions will not work properly. This isn't really a bug in either case as far as I'm aware. We should wait to see what's in CCK 3.x before trying to update modules to support it correctly.

DrupalNovice’s picture

Category: support » bug
Status: Fixed » Active

Of course.. installing the newest version of FileField solved the problem! Thought I had the newest one already installed.

Apologize for the inconvenience.

DrupalNovice’s picture

Category: bug » support
Status: Active » Fixed

Of course.. installing the newest version of FileField solved the problem! Thought I had the newest one already installed.

Apologize for the inconvenience.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.