-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Block: Embed #316
Comments
What's the markup of an embed block which has a caption assigned? |
@jasmussen thoughts on caption there? I'm thinking it doesn't make sense to support caption in a generic embed block. It'd be fine on a specific video block, though. |
Why would it not? |
So long as I can make a linebreak, center and italicize some text, I don't have strong opinion. I think in general, it makes sense for media items, but if you embed something and the resulting block is something non media related, yeah probably would feel weird with a caption. |
Yes, that's my hesitance, it'd feel spurious in some embeds and adds some visual and cognitive weight. |
Somehow, I do like that all "object blocks" would have the same markup and caption support. <figure>
<!-- children -->
<figcaption>Caption.</figcaption>
<figure> Whether it's an image, gallery, embed, table, or other form of data visualisation. |
In the case of oEmbed, this could still be the link to the resource. It's valid to store it in a figure, and it comes with some handy things like floating. <figure>https://www.youtube.com/watch?v=Nl6U7UotA-M</figure> <figure class="alignright">
https://www.youtube.com/watch?v=Nl6U7UotA-M
<figcaption>Caption.</figcaption>
<figure> |
I think you both make really solid arguments here. Can we "wait and see what feels right" on this one? Or are there other ways we can get closer to a consensus? Do we have a list of all supported oembeds? Maybe we can look at the list and see if a whole bunch of them would look super weird with captions, and decide from that. |
I don't have a strong opinion here :) |
Can we close this one as fixed now that the embed block is in? |
Maybe I am just a bit lazy, but I cannot see option to insert/embed video from local server ? |
Attributes
Markup
States (see all)
The text was updated successfully, but these errors were encountered: