Assets rendering
@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)
@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.
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...
@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.
Issue #1722
How to make my custom tag as selectable and editable inside of canvas ?
Hi, I try to change my custom tag of ion-item has div in view properties but It doesn't work for me as I expected. my custom Blocks is my c...
Issue #1200
Modify grapes.min.js to allow video types on AssetManager
Please, I would like to modify my grapes.min.js because I would like to add the video type to my assetManager. For some reason, the am.addT...
Issue #1763
Add <Style> tag in block content objects (not a string)
Browser = ChromeGrapesJS = Latest version ( 0.14.52 ) I am trying to create a block includes nesting content object with script, style, typ...
Issue #725
CSS Editor
Hello, I would like to know what would be the best route to take to extend the Editor. There is a few features i would like to add for my p...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins β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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.