Issue #1357πŸ’¬ AnsweredOpened August 12, 2018by ghost1 reactions

Body -> Decorations -> Background-image

Quick answerby maryia-kabash❀ 1

As a workaround for body background I use the following actions:save body background to DB separately from components and styles, via editor.DomComponents.getWrapper().attributes.stylewhen template is loaded set the style via editor.DomComponents.getWrapper().setStyle(/set proper styles/)clear canvas with editor.DomCo...

Read full answer below ↓

Question

Version 0.14.25 | Local copy GrapesJS Tested in: Chrome 68, Firefox 61 Add a background image in "Body (Selected #wrapper) -> Decorations -> Background -> Layer # -> Image", save to db, refresh page, load from db, blank background. Same with image or color. Adding background After refresh page and, how can add a background image gif or video? need to pull a request? Thanks.

Answers (3)

maryia-kabashβ€’ September 20, 2018

As a workaround for body background I use the following actions:save body background to DB separately from components and styles, via editor.DomComponents.getWrapper().attributes.stylewhen template is loaded set the style via editor.DomComponents.getWrapper().setStyle(/set proper styles/)clear canv...

artfβ€’ August 13, 2018

I need to know what do you store in DB and how do you load it.

ghostβ€’ August 14, 2018

Hi, this is the code. This is the php code: store for load Thanks.

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.