Issue #2849💬 AnsweredOpened June 21, 2020by meyerco1 reactions

Using image url for background-image is not working properly

Quick answerby meyerco1

Hi @artf , #2975 Here is a PR to fix the issue . Please update me if its good enough . Thanks

Read full answer below ↓

Question

DescriptionOn our project for images assets we use url instead of base64 code .Expected behavior When setting a background-image to a control , it has to update the css of this control .The css have to be reflected on the canvas and the style panel .What happens instead ? If the image have spaces or parentheses on its name , when setting it as background-image it is not reflected anywhere , not on the canvas and not on the style-panel .The conclusions of my research Trying to understand this bug i notified that if the image have spaces or parentheses on its name , it breaks background-image v...

Answers (3)

meyercoAugust 26, 2020

Hi @artf , #2975 Here is a PR to fix the issue . Please update me if its good enough .

Thanks

artfJuly 1, 2020

Thanks for the report, I'd appreciate a PR for this issue

meyercoJuly 1, 2020

Can you direct me to a file , where background-image is set ?

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.