Hello!

As the title says, any image I insert (insert module) does not open with a colorbox. What happens is that it opens the original image in the current browser window/tab, without using colorbox. The image has the colorbox class, as well as colorbox-insert-image, init-colorbox-processed-processed and cboxElement.

Just so you know, I have the colorbox working for login links and my media gallery (media gallery module). I tried using the same settings that Fredrik does in the screencast about using colorbox with the insert module, but it does not help.

What to do, does anyone have any ideas?

Best regards,
Ao

Comments

frjo’s picture

Category: bug » support

Do you have an example site where we can see this problem?

Aonoa’s picture

Hmm.. I setup a clean site in order to show you, but on the new clean site I setup it works. Maybe some module or other unknown code could be interfering on my more busy site. This needs some investigation.. =)

Best regards,
Ao

Aonoa’s picture

When making a copy of my live site, it won't work. I tried uninstalling and re-installing the colorbox module, but no luck. The original resolution picture that is displayed is definitely controlled by colorbox, though, even though it is not displayed in a colorbox. I can tell, because changing the insert setting in the colorbox configuration from original to medium changed the size of the image when I click to open it.

Best regards,
Ao

Aonoa’s picture

I found the culprit, it seems to be the ckeditor module. Disabling it makes the images appear in a colorbox and enabling it prevents the colorbox from being used. I'll investigate some more.

Best regards,
Ao

EDIT: It definitely is the ckeditor module. I tried on a completely clean site, and indeed it does break the colorbox feature for images used in e.g. forum posts. Perhaps I'll just disable ckeditor/wysiwyg altogether for a while. Hmm.

Aonoa’s picture

Project: Colorbox » CKEditor 4 - WYSIWYG HTML editor
Version: 7.x-1.0-beta3 » 7.x-1.1
Category: support » bug

I think I will move this to the ckeditor project instead, seems like this issue needs to be fixed in that module.

Best regards,
Ao

Aonoa’s picture

Title: Inserted images has the colorbox class but do not open in colorbox » CKEditor breaks the colorbox module

I tried updating the ckeditor plugin to 3.5.3 and using the ckeditor module from git, still the images or image links in my forum posts refuse to open in a nice colorbox as long as this module is enabled.

EDIT: Just wanted to add that using the ckeditor plugin works, it's just the module that is the problem.

Best regards,
Ao

Aonoa’s picture

I discovered my problem, it was because I had the wysiwyg module enabled as well. By disabling wysiwyg and enabling ckeditor my colorbox is working! =)

Best regards,
Ao

Aonoa’s picture

Status: Active » Closed (works as designed)