Issue #2138💬 AnsweredOpened July 15, 2019by alikabeer321 reactions

Gradient plugin is interfering with background-image

Quick answerby artf1

Can someone check if the latest release fixes the issue, please?

Read full answer below ↓

Question

The background-image url is getting wrapper around by linear-gradient() function like so Even though I assigned gradient to 'background' property instead of 'background-image' I can't reproduce the bug in the demo of either grapesjs or the plugin because in neither of them have the two features (background image and gradient ) been used together.

Answers (3)

artfSeptember 10, 2020

Can someone check if the latest release fixes the issue, please?

alikabeer32July 17, 2019

UPDATE: I know it's a very hacky fix but what I did is replace every 'backgroundImage' with just 'background' in the grapesjs-style-gradient.min.js file of the plugin. And now it works like I need it to. Perhaps someone could provide a better solution?

robsonsobralAugust 20, 2020

Wow! I'm not the only one going crazy!

background-image: -webkit-linear-gradient(https://domain.com/webasset.jpg?auth=eyJhbGciOiJSUzIN9wiUo3kUgN1BIFlHwaI9A)

@artf , do you have any suggestion? Where should a pull request be submited?

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.