Define new Image component
Question
I'm new to GrapesJs and am unable to figure out how to create an image component. For example, I have an img tag and have defined the src , what is the code to make it an image component, one that induces an asset manager on double click, is resizable and movable.
Answers (2)
Read about Components, check the API of each Component, check the source of the ImageComponent's view
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.
Issue #407
Defining new markup language
Hi @artf, I want to define a new markup language like mjml to make design more easy and readable. I started with <error>tag as a POC. Write...
Issue #418
Can't replace image if it's inside a link
Hi, If import this code inside the editor: And double click the image to change it, when I choose a new image from the modal, nothing happe...
Issue #482
Default asset manager in custom component
I am in process to create custom component for below template and we want to have user enter text,link,hover text and select image and want...
Issue #769
Need further info to create backend for Asset Manager
I'm trying to figure out how to write a backend (in ASP.NET Core) for the Asset Manager. I've looked at a few of the Wiki pages, but still...
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.