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

feat(richtext-lexical): wrapper blocks #9289

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Nov 18, 2024

WIP

This is the last one in the holy trinity of lexical block types. After this, most editor features that one can imagine can be implemented using just the BlocksFeature, without having to worry about creating custom features and interfacing with the lexical API.

This includes things like color pickers, text fonts pickers and even links.

I am contemplating about moving the LinkFeature to use wrapper blocks, as 90% of code is duplicative. However, we will probably keep the LinkNodes, as they are used very frequently and the DX of having a dedicated link node with strong typing is nicer.

Example screenshots - API not final

CleanShot 2024-11-17 at 23 46 23@2x

CleanShot 2024-11-17 at 23 53 01@2x

CleanShot 2024-11-17 at 23 53 16@2x

@denolfe denolfe removed the v3 label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants