Issue #1715šŸ’¬ AnsweredOpened January 7, 2019by JulioDavidMartinez0 reactions

Hello, I am new to your project, but I love it. I have a small issue with image attributes.

Quick answerby arthuralmeidap

Try to override from the image type itself instead of default type

Read full answer below ↓

Question

I added two new traits to the trait manager for images. Width and height. I added it as a plugin following your example. It totally works and lets me edit the image attributes for width and height. The problem is that now the asset manager doesn't work any more. If I disable my changes then the asset manager works again. Is there any way that I can have both working? My new traits and the asset manager for images? Here is my code for adding the new traits. To activate it I just call the function name as a plugin. Did I do something wrong maybe? Please help!!!!

Answers (3)

arthuralmeidap• January 9, 2019

Try to override from the image type itself instead of default type

artf• January 14, 2019

As already mentioned by @arthuralmeidap you have to extend the image component. So in your case (by using the latest grapesjs version) it could just be:

lock[bot]• January 14, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.