[QUESTIONS] get html component video
Question
-
Why on the editor canvas, the video component has a div in parent tag (video), whereas when I get html(editor.getHtml()), the div doesn't exist

-
is it possible if I want to add 1 div as a parent again? (for stye css)
<div>
<div data-gjs-type="video" >
<video ></video>
</div>
</div>
Answers (1)
Why on the editor canvas, the video component has a div in parent tag (video), whereas when I get html(editor.getHtml()), the div doesn't exist
To make a component behave in a specific manner its view (what you see in canvas) can be completely different from its model (what you see when you export the code) so it's totally ok
is it possible if I want to add 1 div as a parent again? (for stye css)
As explained above, you can update the video view and use/add whatever you want
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2493
Invalid array length when dragging component onto canvas
Not sure why, But all of a sudden, when I start dragging components onto a canvas, I get this: This seems to happen when I edit a template,...
Issue #1990
[QUESTIONS] need to call method before remove the html component
Hi, I need to call the method before remove the HTML component. how can I do that calling method like editor.on('block:drag:stop', function...
Issue #1930
[QUESTIONS] change 2 attributes with 1 trait
I have an input trait, I want to change the 2 attributes (name and type) on the selected input element, on canvas is appropriate, but in th...
Issue #1870
[QUESTIONS] set data-gjs-type in tag i (Why iscomponent not working)
when i add block(tag i), data-gjs type is "I" (there is no problem from the trait that I made) i'm have trait but if save and reload, data-...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.