Issue #2603💬 AnsweredOpened February 26, 2020by CharlesBilbo0 reactions

Storage Manager type:remote breaks containment

快速解答by artf

@CharlesBilbo if this is a BUG, you have to open the issue correctly by following the template and provide a reproducible demo. From what I see now it might be something wrong on your side, you have the gjs-* class applied on the body?! Definitely something odd to see

Read full answer below ↓

Question

It seems that whenever the parameter type: 'remote' is added to the storageManager it causes the container to break thus putting elements in visual editor that should not be selectable such as the iframe ( https://imgur.com/a/dytYIV7 ).

var editor = grapesjs.init({ allowScripts: 1, avoidInlineStyle: 0, container: '#gjs', fromElement: 1, forceClass: true, forceID: true, height: '100%', showOffsets: 1, assetManager: { embedAsBase64: 1, assets: images }, storageManager: { type: 'remote', urlStore: '/admin/pages', autosave:0, headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content'), }, contentTypeJson: true, },

Answers (1)

artfMarch 2, 2020

@CharlesBilbo if this is a BUG, you have to open the issue correctly by following the template and provide a reproducible demo. From what I see now it might be something wrong on your side, you have the gjs-* class applied on the body?! Definitely something odd to see

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.