Closed (fixed)
Project:
FileField Insert
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2009 at 09:13 UTC
Updated:
6 Jul 2009 at 15:20 UTC
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
Comment #1
Eugene.Korneev commentedi have too same trouble.
maybe after last CCK (3.0dev) updating.
or after installing "jsalter" module...
Comment #2
Eugene.Korneev commentedafter downgrading CCK to 2.x-dev all work OK!!!
Comment #3
quicksketchAlso 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.
Comment #4
DrupalNovice commentedOf course.. installing the newest version of FileField solved the problem! Thought I had the newest one already installed.
Apologize for the inconvenience.
Comment #5
DrupalNovice commentedOf course.. installing the newest version of FileField solved the problem! Thought I had the newest one already installed.
Apologize for the inconvenience.