Can I disable media queries?
Yes, you can use this option: https://github.com/artf/grapesjs/blob/60c1755c57da02b57988fbe0e1a0321a5395728c/src/editor/config/config.js#L90-L93
Read full answer below ↓Question
Is it possible to disable media queries?
E.g. turn this:
`@media (max-width: 331px){
.image-block{
position:absolute;
top:0;
}
.c976{
width:331px;
height:526px;
position:absolute;
}
}`
Into this:
`.image-block{
position:absolute;
top:0;
}
.c976{
width:331px;
height:526px;
position:absolute;
}`Answers (3)
Yes, you can use this option: https://github.com/artf/grapesjs/blob/60c1755c57da02b57988fbe0e1a0321a5395728c/src/editor/config/config.js#L90-L93
I could remove these programmatically, but is it possible to tell grapes not to add media queries to CSS?
We're needing to allow selecting device sizes while editing, but need to remove media queries. As this is a bit of an edge case, I'm assuming I should expect media queries to always be applied if in device preview mode?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3369
FEAT: is it possible add a relative offset for the colorpicker
for example: I add a left bar and top bar outside the editor. I know the colorpicker's position is relative the body, so is it possible add...
Issue #3059
Header goes on a textbox
Hello, so first thanks to have create GrapesJs this very usefull. I have an issue i add an header on my page and that's the code i add for...
Issue #3115
component droped position is wrong when I changed canvas size under Absolute/Designer mode
WARNING I changed the canvas size and I drop a compent from blocks panel. The result is compent postion is wrong. By the way, the editor is...
Issue #3453
FEAT: how to resize start/end in absolute mode?
Hello, dear i'm trying something like "resize:start/end" in absoluteMode with styleable:change:width/height. can you help me?
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.