-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[lexical-table][lexical-playground] Feature: Implement "fit nested tables" for nested table pasting #8097
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
Merged
etrepum
merged 14 commits into
facebook:main
from
randal-atticus:fix-nested-table-paste-width
Feb 3, 2026
Merged
[lexical-table][lexical-playground] Feature: Implement "fit nested tables" for nested table pasting #8097
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
53d1df5
refactor: slightly more sensible separation of SELECTION_INSERT_CLIPB…
randal-atticus db386d1
Add stub for $insertRangeSelectionIntoCells
randal-atticus 5b6fb14
detect cellWidth (preferring table-level colWidths) of cell being pas…
randal-atticus eb7997a
Add proportional resizing of top-level table when pasting table into …
randal-atticus 976e8ed
handle nested table cells
randal-atticus 0faa6eb
add unit test for nested inner table
randal-atticus b6a1d37
restore tableHorizontalScroll, was used for tests
randal-atticus 15c6d62
add playwright tests
randal-atticus 0d0fe98
handle merged cells
randal-atticus 9d80ab8
review: use isTableRowNode/isTableCellNode where appropriate
randal-atticus e7603b5
review: use state instead of memo for signal
randal-atticus 5b5066b
review: use non-degenerate tables for test
randal-atticus 955f11a
review: reuse computedStyle
randal-atticus 28b5e67
review: get old colWidths once
randal-atticus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For whatever reason,
"dir="auto"wasn't being applied on the nested table when it was pasted. Instead of debugging that, I just addedignoreDir. Then I tried to make it a bit more explicit about what it was doing (moving "dir" up to the div, and optionally adding the scrollable wrapper class).