Skip to content

Fixed toolbar in RichText Lexical editor. #3977

Closed Answered by AlessioGr
revnelson asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your feedback! We listen to our community, so we've just added a fixed toolbar to 3.0-beta.25! 🎉 You can test it out by enabling the FixedToolbarFeature like this

editor: lexicalEditor({
  features: ({ defaultFeatures }) => [
    ...defaultFeatures,
    FixedToolbarFeature(),
  ],
})

It's fully-configurable and you can add your own buttons, dropdowns or any other react component to it - just like with our floating toolbar!

While it is an opt-in feature, so by default, only the inline toolbar is enabled, it will receive the same level of support as the default inline toolbar.

Additionally, the default inline toolbar has been extracted into a InlineToolbarFeature. This means …

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SimonVreman
Comment options

Answer selected by AlessioGr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical
6 participants