Issue #903πŸ’¬ AnsweredOpened February 27, 2018by rajatkumcom1 reactions

How to access "assets" like we have getHtml() and getCss().

Quick answerby cjpollard❀ 1

Asset Manager's getAll function should do just that.

Read full answer below ↓

Question

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick SEARCH first, to see if someone else didn't open the same issueDON'T ASK to create examples/code for you, read DOCS and APIs first, then you can post what you have tried (we'd like to see your code) and what you're unable to achieveAll relative statements/questions have to be fil...

Answers (3)

cjpollardβ€’ February 27, 2018

Asset Manager's getAll function should do just that.

const am = editor.AssetManager;

am.getAll();
rajatkumcomβ€’ February 27, 2018

Could someone please help with following:- like we have - getHtml(), getCss(), getStyle(), getComponents(). what we have for assets.

rajatkumcomβ€’ February 28, 2018

Thanks for response.

But I want to get the similar assets data which is send at the time we do editor.store().

like - [{"type":"image","src":"./img/bg-gr-v.png","unitDim":"px","height":1,"width":1728,"date":"2015-02-01"}]

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.