Issue #1328💬 AnsweredOpened August 1, 2018by jorgecgll0 reactions

Reordering components in the canvas

Quick answerby artf

Never had time to debug it but I think it caused somehow by components with float: right style applied

Read full answer below ↓

Question

I've noticed some inconsistencies when moving DOM components around in the canvas. Description in the gif below using the Webpage Demo:

grapesjs_gif

In my case, I do see the DOM component "moves" being reflected when I output editor.DomComponents.getComponents(). They actually get reordered, but the Canvas does not reflect those moves sometimes.

Answers (2)

artfAugust 2, 2018

Never had time to debug it but I think it caused somehow by components with float: right style applied

jmrgzAugust 2, 2018

Yes, it is related to the float right property. Actually, that is the real behavior of the float right property (the last html element appears the first) so I do not see an easy solution.

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.