Issue #1695💬 AnsweredOpened December 30, 2018by ahmedeldeeb25-zz0 reactions

Adding new trait to Video component

Quick answerby artf

Extend the video type not the default one and be careful with your isComponent method, you're returning return {type: 'input'};

Read full answer below ↓

Question

screenshot from 2018-12-30 14-14-25

I want to add a new trait for existing VIDEO '' component. I follow the docs and I didn't find what I want.

Now I got the new trait added to the VIDEO component, but the existing traits are gone, I need some help, Thank you so much

Here is what I've tried so far: https://js.do/code/273166

Answers (3)

artfJanuary 4, 2019

Extend the video type not the default one and be careful with your isComponent method, you're returning return {type: 'input'};

ahmedeldeeb25-zzJanuary 5, 2019

@artf thank you for your response, I've tried what you mentioned but didn't work,now my new trait is not even added

https://js.do/code/274228

could you provide a demo for the solution, please?

ahmedeldeeb25-zzJanuary 5, 2019

@artf I do the same thing as you mentioned with MAP and LINK components and it worked, but it didn't work with VIDEO component

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.