Skip to content
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

refactor: refactored InlineImageNode - spans for correct HTML #6214

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

58bits
Copy link
Contributor

@58bits 58bits commented May 30, 2024

[lexical-playground][inline-image-plugin] Refactor: Spans for correct HTML

Refactor

Description

Refactored InlineImageNode into its own directory, and changed inline image containing divs to spans for technically 'more correct' HTML for inline and float elements. Note that in theory there should be an 'inline' version of ContentEditable too.

Copy link

vercel bot commented May 30, 2024

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

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 10:05am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 10:05am

@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 May 30, 2024
Copy link

github-actions bot commented May 30, 2024

size-limit report 📦

Path Size
lexical - cjs 28.33 KB (0%)
lexical - esm 28.14 KB (0%)
@lexical/rich-text - cjs 36.76 KB (0%)
@lexical/rich-text - esm 28.1 KB (0%)
@lexical/plain-text - cjs 35.37 KB (0%)
@lexical/plain-text - esm 25.33 KB (0%)
@lexical/react - cjs 38.52 KB (0%)
@lexical/react - esm 29.12 KB (0%)

@@ -352,7 +352,7 @@ export default function InlineImageComponent({
return (
<Suspense fallback={null}>
<>
<div draggable={draggable}>
<span draggable={draggable}>
Copy link
Contributor

Choose a reason for hiding this comment

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

since inline image is in a span container it does make sense for its children to be span instead of div

currently:
Screenshot 2024-05-31 at 11 11 38 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @potatowago. I'm actually the author of this plugin and thought I would tidy this up a little ;-)

@Sahejkm
Copy link
Contributor

Sahejkm commented Jun 3, 2024

Hi @58bits , sorry for the inconvenience caused in the CI do you mind merging latest Main to this branch before we try remerging this PR to main, to make sure all e2e tests are green. Thanks a lot!

@58bits
Copy link
Contributor Author

58bits commented Jun 3, 2024

Hi @58bits , sorry for the inconvenience caused in the CI do you mind merging latest Main to this branch before we try remerging this PR to main, to make sure all e2e tests are green. Thanks a lot!

Hi @Sahejkm - okay sure. Done (I think).

@Sahejkm
Copy link
Contributor

Sahejkm commented Jun 3, 2024

CI pass apart from flaky collab tests which will be addressed in #6238

@Sahejkm Sahejkm added this pull request to the merge queue Jun 3, 2024
Merged via the queue into facebook:main with commit 723285e Jun 3, 2024
35 of 38 checks passed
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. extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants