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)
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'] });
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.
Issue #1941
[BUG]: When dragging a block over the canvas, JS in script, is appended in canvas before dropping the block.
You're submitting a BUG Are you using the latest release (older versions are NOT supported)? v0.14.57 Are you facing the bug with your loca...
Issue #1758
Unable to load in CSS string with characters such as '#' with setStyle()
You're submitting a BUGAre you using the latest release (older versions are NOT supported)?If you're not sure, type grapesjs.version in con...
Issue #1693
[BUG|/QUESTION] Strange characters (Â) within CSS/HTML preview; Elements are not deleted completely
BUGAre you using the latest release (older versions are NOT supported)?0.14.50Are you facing the bug with your local copy of GrapesJS or wi...
Issue #2469
[BUG] Adding buttons to RTE toolbar in React App causes buttons to be duplicated.
Are you using the latest release (older versions are NOT supported)? YES, 0.15.9Are you facing the bug with your local copy of GrapesJS or...
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.