Grapesjs: How to change the title for Image component on Hover?

Created on 7 Aug 2019  路  3Comments  路  Source: artf/grapesjs

Hello @artf ,

How can I change the title for my image component when I hover on it?

LIke the highlighted text on this image:

image

Thanks!

Most helpful comment

Set the 'custom-name' attribute on the component.

All 3 comments

Set the 'custom-name' attribute on the component.

custom-name is deprecated, use name instead

Thanks a ton @Zachary1748 and @artf for the help, it worked like a charm.

I've updated the getName function and changed the name attribute for images.

name = name == 'image' ? 'image (Double Click to upload Images)' : name;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FlashPapa picture FlashPapa  路  3Comments

adam-gpc picture adam-gpc  路  3Comments

crazyxhz picture crazyxhz  路  3Comments

YashPrince picture YashPrince  路  3Comments

Geczy picture Geczy  路  3Comments