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

[#302] Add ListMaxIndentLevelPlugin on Editor #330

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

2wheeh
Copy link
Collaborator

@2wheeh 2wheeh commented Apr 13, 2024

#302

Changes

에디터 리스트 노드의 인덴트 깊이를 제한하는 플러그인입니다.

  • 선택된 리스트 노드가 인덴트 깊이 +1 이 가능한 지 판단합니다.
  • 깊이가 maxDepth 를 초과하는 경우 true 를 리턴하는 함수를 INDENT_CONTENT_COMMAND 디폴트 리스너보다 높은 우선순위로 등록합니다.
  • Lexical의 커맨드 리스너는 true 를 리턴하면 다음 순위의 리스너로 전파를 중단합니다.
  • 즉, 이미 최대 깊이라면 디폴트 동작인 인덴트 깊이 추가를 수행하지 않게 됩니다.

@2wheeh 2wheeh added the ui Something about UI label Apr 13, 2024
@2wheeh 2wheeh requested review from isutare412 and skgndi12 April 13, 2024 17:10
@2wheeh 2wheeh self-assigned this Apr 13, 2024
Copy link

@2wheeh 2wheeh mentioned this pull request Apr 13, 2024
Copy link
Collaborator

@isutare412 isutare412 left a comment

Choose a reason for hiding this comment

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

👍

@2wheeh 2wheeh merged commit 8c2920d into develop Apr 14, 2024
4 checks passed
@2wheeh 2wheeh deleted the feature/issue-302/list-max-indentation branch April 14, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Something about UI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants