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: move to single contenteditable #5850

Merged
merged 73 commits into from
Jan 19, 2024

Conversation

Flrande
Copy link
Member

@Flrande Flrande commented Dec 25, 2023

Close #1218

Copy link

vercel bot commented Dec 25, 2023

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

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 7:49am
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Jan 19, 2024 7:49am
blocksuite-docs-main ⬜️ Ignored (Inspect) Visit Preview Jan 19, 2024 7:49am

@Flrande Flrande marked this pull request as draft December 25, 2023 10:38
auto-merge was automatically disabled December 25, 2023 10:38

Pull request was converted to draft

@Flrande Flrande marked this pull request as ready for review January 18, 2024 11:44
mode: 'flat',
});

const start = blocks.at(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems repeat with line 196

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean them?

const start = blocks.at(0);
const end = blocks.at(-1);
if (!start || !end) return;

const startText = start.model.text;
const endText = end.model.text;
if (!startText || !endText) return;

Copy link
Collaborator

Choose a reason for hiding this comment

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

yep

index: endInlineRange.index,
length: endInlineRange.length,
},
isReverse: reverse,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this property? I remember that this property was used to navigate with keyboard. Maybe we can try to remove it.

Copy link
Member Author

@Flrande Flrande Jan 18, 2024

Choose a reason for hiding this comment

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

Maybe we can use it to improve UX in remote-selection? 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

You mean the position of the name flag?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

Copy link
Member Author

Choose a reason for hiding this comment

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

And I want to rename isReverse to reverse 🤪

This reverts commit 37d6bdf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notable Major improvement worth emphasizing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Unable to select text across blocks in Safari
3 participants