Skip to content

[lexical-playground] Chore: remove InlineImageNode and InlineImagePlugun#7839

Merged
ivailop7 merged 1 commit intofacebook:mainfrom
etrepum:remove-inline-image
Sep 21, 2025
Merged

[lexical-playground] Chore: remove InlineImageNode and InlineImagePlugun#7839
ivailop7 merged 1 commit intofacebook:mainfrom
etrepum:remove-inline-image

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Sep 20, 2025

Description

InlineImageNode and InlineImagePlugin are almost the same as ImageNode and ImagesPlugin. Only one e2e test used it.

As far as I can tell the only observable differences other than the support for css float (which could just be another property on ImageNode like the position property that was on InlineImageNode) when using the node is that ImageNode uses a span > div > img and InlineImageNode uses a span > span > img. Arguably InlineImageNode's approach is more correct but ImageNode has been more maintained and more tests depend on it.

Closes #5474

Test plan

All e2e and unit tests pass without InlineImageNode (only one test had to change)

…gin, seems redundant since ImageNode is almost exactly the same
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 20, 2025 10:30pm
lexical-playground Ready Ready Preview Comment Sep 20, 2025 10:30pm

@meta-cla meta-cla 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 Sep 20, 2025
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Sep 20, 2025
@etrepum etrepum marked this pull request as ready for review September 21, 2025 01:07
@ivailop7 ivailop7 added this pull request to the merge queue Sep 21, 2025
Merged via the queue into facebook:main with commit 2e390a1 Sep 21, 2025
43 of 71 checks passed
This was referenced Sep 25, 2025
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

2 participants