Assset Image onclick customization
Question
Can I customize the asset image click event, so that I can stop auto updating image source on a single click. Is there any way to say the target.set() to the default source of an image component?
Iam customizing asset image onclicking property. What's happening by default grapesJS is onclicking the image from an asset, the source url will be auto updating to the selected image component from the editor.
What am looking for is, Iam gonna click the asset image and it willl preventing grapesjs property. I am trying thi sby achieving via JQuery. I refered our Docs and API docs, couldn't get things related to asset image click and updating source in it.
Need your help ASAP guys. @artf
Answers (1)
Refer to this part https://grapesjs.com/docs/modules/Assets.html#extend-asset-types
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2358
[QUESTIONS] How to set callbacks when asset click
I can see that image has been set only with a single click on image asset. I want to close the modal even on when click. I try to set a cal...
Issue #1719
Event while click on image from asset modal
Hello @artf , Hope you are doing well. I am working on asset-manager. I have total 5 images as a default asset-manager image. I want to do...
Issue #1374
Default Component Properties
Is there any way I can change the default properties of components? I want almost everything to be copyable: false, resizable: false, dragg...
Issue #5046
BUG: is there any way to remove cross svg on selected default value of Float, Position and text-align
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 111.0.5563.147 (Official Build) (6...
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.