Issue #2212πŸ’¬ AnsweredOpened August 22, 2019by angelocala941 reactions

Extending default image component, resizable properties ignored

Quick answerby artf❀ 1

Try to use config.avoidDefaults option as true (re-store and reload) Probably I'll set it to true by default in the next release

Read full answer below ↓

Question

I'm trying to extend the default image component. I can see my "Test" trait, so I assume that the component is correctly overridden, but the resizableproperties are completely ignored. Could anyone help me to figure out why?

Answers (3)

artfβ€’ August 27, 2019

Try to use config.avoidDefaults option as true (re-store and reload) Probably I'll set it to true by default in the next release

angelocala94β€’ August 23, 2019

I'm able to set resizable property manually inside the component init function, but this is not the best way to do that.

angelocala94β€’ August 23, 2019

Since the resizable property is part of the component model, the existing components (previously saved on DB) in the canvas have the old resizable settings. This will replace your resizable configuration with the default one to all image components.

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.