-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Twitter Embed #638
Comments
I love the idea of just keeping the OG styling from Twitter (and any other embed for that matter). After some discussion, I also realized that our Editor doesn't need the embed code, but can just work from the URL itself. So I made some changes around that as well. |
Looks great! |
I agree that keeping the standard styles is the best option. Going to pick up this ticket. |
I thought @notnownikki was already working on this? |
I am :) |
I have it working from just the tweet URL, it used the Twitter embed API to fetch the html. I'm just working on sandboxing the returned html in the editor, and it's pretty much done |
@notnownikki okay, sounds good. Reassigning. |
The mockups here are appreciated :) I've been doing more API interaction code than UI work so far (there'll be a reusable |
I'm closing this in favor of #1034, and because the embed block as inspired by this is in! |
Looking at a Twitter embed block. I've mocked up a few states for this, and wanted to open this up for discussion.
Empty Block:
Need an empty field to paste in the Twitter embed HTML.
Neutral:
I imagine the styling would be structured similarly to the blockquote styling.
Hover:
Selected:
When selected the switcher would reveal it as a Twitter embed and not a blockquote. The 'edit' button would be to allow the user to click back to the 'empty' state to edit the HTML embed code or update it.
The text was updated successfully, but these errors were encountered: