Enable Drag Mode to inner of a single component instead of editor
Question
Hi @artf ,
I set dragMode of my Grapesjs builder to "absolute" and then build a section component to ensure that all other components must be placed in section component.
However, section component should be ignore of being "absolute", it should be static. I had tried:
- Remove dragMode: absolute for builder
- Add dmode: 'absolute' to section component But no luck. Could you please advise?
Answers (1)
Well if you declare dragMode in the init config, that will be the default for ALL the components, then, if you want, you can change the dragMode per component https://github.com/artf/grapesjs/issues/1936#issuecomment-521269499
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2547
Unable to drag an element if style has bottom or right values
Hi @artf , If any component CSS has bottom or right values , not able to drag them. Values are generating as NaN. Attached the screenshot f...
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Issue #2493
Invalid array length when dragging component onto canvas
Not sure why, But all of a sudden, when I start dragging components onto a canvas, I get this: This seems to happen when I edit a template,...
Issue #3414
Component model is not reset when create new drag
When dragging a component from right panel component model doesn't set to default value but has value of previously added component
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.