Issue #1411Opened September 10, 2018by zurp0 reactions

Manual triggering of the asset manager rendering is required after opening the AM pop-up

Question

Questions

Q: Are you using the latest release (older versions are NOT supported)? A: Yes

Q. Are you facing the bug with your local copy of GrapesJS or with the current demo? A: Local copy, latest chrome on Linux 64bit

The issue

When opening the asset manager via editor.runCommand('open-assets') it should render the list of images on its own. Right now I had to call am.render() after opening the asset manager pop-up to get it to work.

What could be the cause?

Answers (2)

artfSeptember 11, 20180 reactions

The issue is that currently open-assets doesn't handle correctly the default types option (which I think, in this case, it should return all assets, even not images). I'll fix this in the next release, but for now, what I think it should be even more correctly is to ask explicitly the type of assets

editor.runCommand('open-assets', { types: ['image'] });
lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.