Issue #2447💬 AnsweredOpened December 9, 2019by alemenciones0 reactions

Update styleManager properties on drag and resize

快速解答by artf

Duplicate of #2374

Read full answer below ↓

Question

I need to see in real time the update of the properties of the component in the styleManager when I drag or resize a component (or in some other way that changes its style properties).

I've managed to see width and height running this:

editor.on("styleManager:change:width styleManager:change:height", (response) => { editor.trigger("component:styleUpdate"); });

Now, i need something like this to see the component position (top, bottom, left, right) and the font-size (then maybe something else), i'm tried other things like editor.trigger("component:toggled"); and StyleManager.render(), but it's not the way...

Any suggestions?

Answers (1)

artfDecember 10, 2019

Duplicate of #2374

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.