Hello, i've being trying to implement the colorbox module with my website (Drupal 8). The module it actually works it create the overlay image on click, but i've being struggling when i insert the image through CKeditor.

Because the image is not displayed on the editor and is hard to put the image inside a custom 'div' i had to implement the insert module.

Unfortunately the insert module for Drupal 8 still on development state, when it insert the image to the editor it does not link the image to the colorbox module so no overlay it's applied to the image. I actually found a work around to this issue.

My problem is that now the same image is being display twice. I went to the manage display of my content type, and under the configuration of the colorbox format on "image style for content: Hide (do not display image)" but the image won't hide it's still displaying.

I think this is a bug. This is my first time reporting an issue, so i apologies in advance if this is not a bug and is something i'm doing wrong.

Thank you!

Comments

FenixGhost created an issue. See original summary.

FenixGhost’s picture

Assigned: FenixGhost » Unassigned
jjancel’s picture

Hello
I have the same problem with Drupal 8.5.0-rc1
how to enable colorbox on the image in the body ?

lvpapa’s picture

I have a similar problem; when i insert a colorbox image, i get 2 of the same image in a ckeditor post. I tried setting one of the images to "disabled" in Manage Display. That resulted in only one image being shown, but now the Colorbox overlay is not working. When clicking on the image I just get the original image opening in a new page.

I think I just solved the problem. I set the image field back to enabled in Manage Display, set the Image Format to Colorbox and then set styles. After inserting the image using the Insert module, I clicked on the "Remove" button to the right of the Insert. The inserted image remained in the post and the Colorbox features work.

Neslee Canil Pinto’s picture

Status: Active » Closed (cannot reproduce)