Skip to content

Add embed block to playground - #1895

Merged
thegreatercurve merged 4 commits into
mainfrom
embed-block
Apr 20, 2022
Merged

thegreatercurve merged 4 commits into
mainfrom
embed-block

Conversation

@thegreatercurve

Copy link
Copy Markdown
Contributor
  • Add embed block to playground to handle selection for Twitter and YouTube nodes.
  • Abstract FORMAT_ELEMENT_COMMAND logic for alignment into this block as well.
Screen.Recording.2022-04-20.at.12.15.25.mov

@vercel

vercel Bot commented Apr 20, 2022 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Apr 20, 2022 at 5:44PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Apr 20, 2022 at 5:44PM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 20, 2022

@zurfyx zurfyx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good!

@zurfyx zurfyx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, that's awesome! Looking forward to use this already in WWW. Adding a couple nits

I wonder if the rest of team have additional thoughts on this but I'll stamp already

@tylerjbainbridge

Copy link
Copy Markdown
Contributor

Not sure about the name LexicalBlockDecoratorNode.

ElementNodes used to be called BlockNodes and I remember it causing some confusion, but also it feels kind of wordy and unclear.

@zurfyx

zurfyx commented Apr 20, 2022

Copy link
Copy Markdown
Member

Not sure about the name LexicalBlockDecoratorNode.

ElementNodes used to be called BlockNodes and I remember it causing some confusion, but also it feels kind of wordy and unclear.

I see where you're coming from but you're probably influenced by the fact you've seen both versions. A block in this case literally means a CSS block. What else do you have in mind?

@tylerjbainbridge

Copy link
Copy Markdown
Contributor

I see where you're coming from but you're probably influenced by the fact you've seen both versions. A block in this case literally means a CSS block. What else do you have in mind?

Okay, true, maybe just drop the Lexical and swap the order of the types? -> DecoratorBlockNode

That way it's still very clear it's a Decorator type node, but one with special properties.

@thegreatercurve

Copy link
Copy Markdown
Contributor Author

I see where you're coming from but you're probably influenced by the fact you've seen both versions. A block in this case literally means a CSS block. What else do you have in mind?

Okay, true, maybe just drop the Lexical and swap the order of the types? -> DecoratorBlockNode

That way it's still very clear it's a Decorator type node, but one with special properties.

@tylerjbainbridge Good shout. Just updated the naming.

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 0603a8f3 Deployed Apr 20, 2022 by vercel[bot]
Preview – lexical — 0603a8f3 Deployed Apr 20, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants