Custom Asset Manager UI - Getting the "clicked" asset #4207
-
Hey there! For work, I've been working on integrating a custom asset manager ui into GrapesJS. The custom UI opens when the Image block is clicked. It also opens when any of the displayed images in the editor is double-clicked. However, in the props passed to My very simple code for asset manager:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out. Calling |
Beta Was this translation helpful? Give feedback.
I figured it out. Calling
editor.getSelected()
gave me a bunch of properties of the clicked image component and then I usededitor.getSelected().attributes.src
to get the specific image.