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): allow disabling TabNode #11656

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

GermanJablo
Copy link
Contributor

@GermanJablo GermanJablo commented Mar 12, 2025

Similar to #11631.

IndentFeature causes pressing Tab in the middle of a block such as a paragraph or heading to insert a TabNode. This property allows you to disable this behavior, and indentation will occur instead if the block allows it.

Usage:

editor: lexicalEditor({
  features: ({ defaultFeatures }) => [
    ...defaultFeatures,
    IndentFeature({
      disableTabNode: true,
    }),
  ],
}),

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.

1 participant