Create trait like video trait
The video component is a great demonstration in and of itself. Can be found at grapesjs repo root > src > dom_components > model > ComponentVideo.js. Here's some example code with the bare minimum necessary code: You can test this out by adding a simple div to the Block Manager The important parts are this.listenTo(th...
Read full answer below ↓Question
how do I make a trait like a video trait, I have a provider type, the other trait type depends on the provider I choose, can it be demonstrated? Thank you very much.

Answers (2)
The video component is a great demonstration in and of itself. Can be found at grapesjs repo root > src > dom_components > model > ComponentVideo.js. Here's some example code with the bare minimum necessary code: You can test this out by adding a simple div to the Block Manager The important parts...
Okkay,Thank you very much, I understand
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1987
[QUESTIONS] Create toolbar in bottom
can I make a new toolbar that is located at the bottom (as shown by the cursor) when selected component? Thank's
Issue #362
How to create custom link components that prompts users to type link/choose link similar to Images Component Modal
Image Components have logic to call Modal and prompt user's interaction for options/configuration of image url. Would like to do similar to...
Issue #1926
[QUESTIONS] Edit Placeholder on keyup in Trait
How so that Placeholders can change when typing a word in the trait directly, current placeholders can change only when mouseover I have a...
Issue #1835
How to open up 'Settings' all the time?
I'd like make 'Settings' opened at all times by default without having users to open up manually. How'd you do that? Thank you..
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 →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.