I'm using latest Ckeditor 4, Drupal 7 and latest stable Insert. When trying to insert images while in Filtered HTML mode, the images don't show up. But if I switch to Full HTML or even the plaintext editor, it works normally. Ckeditor is set to allow img tags.

Any ideas?

Comments

mzgajner’s picture

Issue summary: View changes
quicksketch’s picture

Here's a set of relevant questions:

Does Full HTML have CKEditor enabled on it as well?
Are you using WYSIWYG module or CKEditor module?
Is this the Body field, or another field?

BarisW’s picture

Surprisingly, I have the same issue.

The issue was that Filtered HTML didn't had the Image button enabled, while Full HTML has.
Enabling the Image button on Filtered HTML solved the issue.

davidneedham’s picture

Yeah, it seems that in some wysiwyg editors you must have the image button enabled for it to function. I don't think this is related to the insert module, but I'll leave that for quicksketch to decide.

C3liu3’s picture

I think you must add the image tag for filtered HTML mode, no ?

In configuration > content authoring > text format > filtered HTML
At the bottom of the page "allowed html tag...", add <img>

And normally, it works.

I hope that can help someone :)

(and sorry for my english ! ^^)

quicksketch’s picture

Status: Active » Fixed

Yeah, it seems that in some wysiwyg editors you must have the image button enabled for it to function.

Thanks David, it's probably related to CKEditor 4.x and it's auto-stripping of tags for which there are no buttons enabled. Insert already provides a helpful message for plain-text areas if the <img> tag is not supported, but extending that to WYSIWYG editors could prove challenging. I think we'll probably have to forgo this as part of the Insert module.

Thanks everyone for your input here!

Status: Fixed » Closed (fixed)

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

bramvandenbulcke’s picture

I was having this issue with the Basic Package of CKEditor. The img tag was allowed in the filtered HTML text format, so that was not the cause.

I installed the Standard Package in the /sites/all/libraries/ckeditor folder and now Insert is working as intended.