Issue #802πŸ’¬ AnsweredOpened Jan 25, 2018by goldengrisha0 reactions

Assets rendering

Quick answerby austinbiggs

@goldengrisha - I had an unrelated issue w/ thumbnails, as the asset manager simply loads in the full file for the thumbnail. When adding an asset, I now pass a thumbnail parameter and display that instead.

Read full answer below ↓

Question

I try to create a video thumbnail, when I add it like a tag it's working fine but when this an array or an object, it doesn't render it.

Answers (3)

austinbiggsβ€’ Jan 26, 2018

@goldengrisha - I had an unrelated issue w/ thumbnails, as the asset manager simply loads in the full file for the thumbnail. When adding an asset, I now pass a thumbnail parameter and display that instead.

goldengrishaβ€’ Jan 26, 2018

thank you for answer, but point is why this code work in proper way assetManager.add('<video src="http://localhost:2195/malls/78620a57-d32f-40a5-9b06-003c2338c377/SampleVideo1280x7201mb.mp4" class="gjs-no-pointer" style="height: 100%; width: 100%;"></video>'); and this piece of code not : assetMana...

artfβ€’ Jan 29, 2018

@goldengrisha first of all, your isType(value) is not correct If you pass a string in assetManager.add the value will be that string and just by returning it you say nothing about its type (isType should return a Boolean or { type: 'something', ... }), moreover I think this doesn't make sense you'r...

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.