Issue #2696✓ SolvedOpened April 2, 2020by kuhelbeher10 reactions

How can I create block with background image with behavior like built-in "image"?

Quick answerby kuhelbeher6

@noogen Thanks for advise, implemented it like this:

Read full answer below ↓

Question

Hello, I'm trying to create block with background image (similar to Grapedrop Image Box). I added new component like this: And also I added block: But unfortunatelly I cannot drop any block inside of it: Grapedrop Image Box has the same issue. Is it possible to drop elements inside of such compoent?

Answers (2)

👍 Most helpfulkuhelbeherApril 8, 2020

@noogen Thanks for advise, implemented it like this:

noogenApril 5, 2020

@kuhelbeher because, ultimately, it is still an image. It's not for use/override the way you want because in the back-end code (look at both image component model and view) https://github.com/artf/grapesjs/blob/dev/src/domcomponents/view/ComponentImageView.js#L55 and https://github.com/artf/grapesj...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.