Skip to content
Discussion options

You must be logged in to vote

I managed to limit it using getProviderTrait

editor.Blocks.add('video', { label: 'Vídeo', media: , content: '<div data-gjs-type="video" style="width: 50%; margin: 10px"></div>' })

editor.DomComponents.addType('video', { model: { defaults: { provider: 'yt' }, getProviderTrait() { return { type: 'select', label: 'Provider', name: 'provider', changeProp: true, options: [{ value: 'yt', name: 'Youtube' }] } } } })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rafaelspereira1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant