Skip to content

Make root selectable + many other changes - #1316

Merged
trueadm merged 6 commits into
mainfrom
make-root-selectable
Feb 17, 2022
Merged

trueadm merged 6 commits into
mainfrom
make-root-selectable

Conversation

@trueadm

@trueadm trueadm commented Feb 16, 2022 •

Copy link
Copy Markdown
Collaborator

This PR does quite a few things to fundamentally improve how we handle selection:

  • Root nodes can now be selected
  • Decorator nodes can now be isolated from selection
  • Most elements can not be correctly removed
  • Selection can escape tables into the root
  • HorizontalRule is now a decorator rather than a core base node and works better

@vercel

vercel Bot commented Feb 16, 2022 •

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/fbopensource/lexical/8NQbdxhTMqbRNi3cff9ptoxDiRJZ
✅ Preview: https://lexical-git-make-root-selectable-fbopensource.vercel.app

@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 Feb 16, 2022
@trueadm
trueadm force-pushed the make-root-selectable branch from cf6116c to 53c1d1a Compare February 17, 2022 16:00
@trueadm
trueadm marked this pull request as ready for review February 17, 2022 16:09
@trueadm trueadm changed the title Make root selectable Make root selectable + many other changes Feb 17, 2022
More changes

fix e2e

Ensure HR has text content

@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! We should probably let the iOS folks know about these changes since they've already mimicked a good part of this selection logic

@zurfyx

zurfyx commented Feb 17, 2022

Copy link
Copy Markdown
Member

Why do we need the Bootstrap plugin for now without params? Sounds like we should make them mandatory?

@trueadm

trueadm commented Feb 17, 2022

Copy link
Copy Markdown
Collaborator Author

Why do we need the Bootstrap plugin for now without params? Sounds like we should make them mandatory?

Where?

@zurfyx

zurfyx commented Feb 17, 2022

Copy link
Copy Markdown
Member

Why do we need the Bootstrap plugin for now without params? Sounds like we should make them mandatory?

Where?

export default function LexicalBootstrapPlugin({
  initialPayloadFn,
  clearEditorFn,
}: {
  clearEditorFn?: (LexicalEditor) => void,
  initialPayloadFn?: (LexicalEditor) => void,
}): React$Node {

@trueadm

trueadm commented Feb 17, 2022

Copy link
Copy Markdown
Collaborator Author

I didn't change them as part of this PR did I?

@trueadm
trueadm merged commit 2a7bdd2 into main Feb 17, 2022
@trueadm
trueadm deleted the make-root-selectable branch February 17, 2022 17:36
acywatson pushed a commit that referenced this pull request Apr 9, 2022
* Make root selectable

More changes

fix e2e

Ensure HR has text content

* Fix e2e test

* Fix tables

* See if this fixes the collab e2e tests...

* Aha!

* Fix some styling

This branch was successfully deployed

1 active deployment
Preview — f3d0df8c Deployed Feb 17, 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.

3 participants