Issue #2542✓ SolvedOpened Feb 1, 2020by erikhaw3 reactions

Image-like component with own asset manager

Quick answerby artf3

You just need to create your own command which calls your modal. Obviously, as you're implementing your own Asset Manager it's up to you knowing WHEN to update the target For your custom image component you could do something like this: When you add the block, be sure to use the activate property, this will trigger th...

Read full answer below ↓

Question

Hi everyone! I have a question about my problem, which I want to solve for about 1 month. The question is: Can I create a component, like a image component, so when I drop it, it will open my own asset manager, that will not overwrite original asset manager, so Image component will have same functionality as it has now. I wrote simple modal, where you can search for images online, but this modal overwrites original asset manager: When I drop image block, this modal appears instead of original asset manager, and now the second problem, I wanted to overwrite open-assets command, which I found h...

Answers (1)

👍 Most helpfulartfFeb 3, 2020

You just need to create your own command which calls your modal. Obviously, as you're implementing your own Asset Manager it's up to you knowing WHEN to update the target For your custom image component you could do something like this: When you add the block, be sure to use the activate property,...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.