When I insert an image and select a preset - in the editor it looks five (class="imagecache-Featured-square"), but after saving the post - the full image is displayed (class="imagefield imagefield-field_hobby_image")

Comments

alexbk66-’s picture

OK, if I can select the size in 'Display Fields' (admin/content/node-type/blog/display), but then what's the point of selecting the 'style' when inserting the image? Shouldn't it overwrite the 'Display Fields' setting?

And also, no matter how I position the image in editor, after saving it's always displayed at the bottom of the post?

alexbk66-’s picture

First I must disable displaying the field in content type (set to ignore). Now the image appears in the text body.

I suspect the problem is related to the Lightbox style. If I select just 'Featured-Square' preset - image is displayed, but not as Lightbox link.

If I select 'Lightbox2: Featured-Square->800x600' and click Insert - image doesn't appear in the editor! Why?

himagarwal’s picture

I'm having the same problem. When I select to show the image with Lightbox2, it is not showing up in wysiwyg at all. But, however if I choose imagecache preset only without lightbox2, the image shows up in the editor.

The problem is with the insert module, which is not inserting the proper "src" value and "href" value. I checked this with only insert module enabled and it has the same problem.

Maybe someone can answer this on how to fix it.

gapple’s picture

Title: After saving get full size image in the post » Lightbox2 display styles not inserted properly

I've run into the same issue, where regular image presets work, but Lightbox2 presets fail.

The link and image tags are inserted, but the href and src attributes are empty:

<a data-mce-href="" rel="lightbox[group1][]" href=""><img data-mce-src="" alt="" src="" title="" class="imagecache-thumb"></a>
gapple’s picture

Contrary to @himagarwal, the image was inserted correctly by insert.module with wysiwyg_imagefield.module disabled