Issue #2134💬 AnsweredOpened July 12, 2019by fmr4112 reactions

Create trait like video trait

Quick answerby giorgiosjames1

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. provider

Answers (2)

giorgiosjamesJuly 12, 2019

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...

fmr411July 12, 2019

Okkay,Thank you very much, I understand

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.