-
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
Embed blocks have all the same description text #6110
Comments
By the way. Do we really need to maintain all those embed blocks? 😃 |
@gziolo I'm not sure about that issue and I am totally not against having less embed blocks. I think though whatever ones we have we need to have better descriptions. |
Including @mtias @jasmussen in the discussion. Have we considered having only one Embed block which can be discovered in the inserter using all keywords we use at the moment and add a UI element which reflects embed’s type instead? To give an example, when I search for Twitter I find Embed block, we pass this keyword back to the block and it can use it to preselect Twitter as the type of embed. It would work in a similar way. We would have only one block in the inserter, we could reuse embeds tab to show the featured category (there are some requests to do it anyway), everything else should work basically the same. I think we have this limitation to have 3 keywords per block type, but we can always relax it for core blocks 😎 |
Well, we already do, and this is part of the point of having these embed aliases blocks in the first place. To recap:
The 2nd part is key, because WordPress already maintains a whitelist of oembed handlers in the code. These are "paste and hope" in the current editor, in that you can't know which embeds are oembed supported until you try. By making explicit aliases for each already registered oembed, we surface them as officially WordPress supported embeds, that show up in search results in the inserter, and even visually if you're just exploring. So yes, we do support them, and since we do, I can understand why it would make sense to have better descriptions for each. Though in order to not have to write oceans of prose that might have to change at the whim of the the embed service in question (like when Instagram changes their logo), perhaps we can look at some more computational descriptions. such as "This embed block embeds content from [embed block alias name]". I would hate to have to get creative with a description for the "funny or die" block. Whether or not WordPress should officially support these blocks is a different matter. I wasn't personally part of the conversation when Oembed was implemented. But I do strongly feel that so long as a oembed whitelist handle exists, a block should exist for it. In other words, if we wanted to remove embed aliases in favor of just the generic one, I feel it would only be fair if that discussion included removing the entry from the oembed whitelist, so we no longer officially support that embed. |
I like that as a way forward. |
@jasmussen, it makes a lot of sense when you put it this way. Thanks for a very detailed answer. I like your proposal, it should be |
@jasmussen |
Every embed has the following text:
Ideally it should say what the block is.
The text was updated successfully, but these errors were encountered: