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

Bug: ListMaxIndentLevelPlugin allows indent beyond maxDepth on paste #5170

Open
nooblyf opened this issue Oct 26, 2023 · 1 comment · May be fixed by #6718
Open

Bug: ListMaxIndentLevelPlugin allows indent beyond maxDepth on paste #5170

nooblyf opened this issue Oct 26, 2023 · 1 comment · May be fixed by #6718

Comments

@nooblyf
Copy link

nooblyf commented Oct 26, 2023

The playground has a max depth of 7 for list indents but you can bypass it by pasting the indents as shown in the screen recording

lexical_list_indent_bug.mov

Lexical version: 0.12.2

Steps To Reproduce

  1. Go to https://playground.lexical.dev/ it has indent maxDepth of 7
  2. Paste indented list having depth more than 7, you'll be able to paste it successfully

The current behavior

maxDepth for ListMaxIndentLevelPlugin only stops directly indenting lists in the editor

The expected behavior

Even when pasting indented content it should still adhere to maxDepth by the editor, it should remove those extra indents.

@mdmuhtasimfuadfahim
Copy link

Hi @etrepum. I solved the issue. Please have a look #6718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants