Add link on image in grapsjs editor
Question
Hi,
Add link (href) to image in grapesjs .
First we add image in grapesjs and then add link to that image, its shows " Link " text next to that image, but i was unable to add link to that image. here i am adding screenshot below, can you please help me out , how to add link in image

Answers (3)
@luvcharan reference from the demo:

Hi @luvcharan you must use Link Block not Link.
- first add the link block.
- then drop your image inside link block.
- specify href for link block. cheers!
Hi Do the links not work in a demo, unpublished template.
I've been trying this and it's not working in preview

Related Questions and Answers
Continue research with similar issue discussions.
Issue #3171
Adding / Updating href trait does not add `<a></a>` wrapper to image.
Expected Behavior - when I update href trait value, the image should be wrapped inside a with href value set. i.e. <a href="google.com"><im...
Issue #2126
GrapesJS Editor functionalities not working Properly IE browser.
WARNING 1) Maximize and Minimize button not working properly in IE Browser. 2) Not able to add bold, italic, underlined, strike and link to...
Issue #3458
FEAT: ADD CUSTOM BLOCKS (i.e iframe) and customise it like image i.e on double click it open assets options for video link in custom iframe block
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #3111
Question: How to trigger something (function) on adding asset?
Hi, @artf. What is the correct way to trigger a function when an asset is added to the assets by providing the link and then pressing the '...
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.