Issue #1829πŸ’¬ AnsweredOpened February 25, 2019by skateborden0 reactions

If devices in DeviceManager all have a width specificed an editor breaking error occurs

Quick answerby lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read full answer below ↓

Question

If all devices specified for the DeviceManager have a width set, an editor breaking error occurs: "TypeError: contRules is null". I'm seeing this in my local project with v0.14.52.

jsfiddle: https://jsfiddle.net/5ycmoftj/1/

I think what is happening is that CssRulesView.js render() is creating div fragments as containers for different media targets, based on the widths of the devices in the device manager. If you don't have a device set up with a undefined width, there is no place for css rules that don't specify a media width to go. It doesn't create a container for them.

Answers (1)

lock[bot]β€’ March 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.