Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Jun 13, 2024
1 parent b81bc49 commit 13839e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RichText/Toolbar/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export const DEFAULT_TOOLBAR_ITEMS: ToolbarItem[] = [
image: () => Images.bulletList,
},
{
// Regular list items (li) and task list items both use the
// same sink command and button just with a different parameter, so we check both states here
onPress:
({ editor, editorState }) =>
() =>
Expand All @@ -152,6 +154,8 @@ export const DEFAULT_TOOLBAR_ITEMS: ToolbarItem[] = [
image: () => Images.indent,
},
{
// Regular list items (li) and task list items both use the
// same lift command and button just with a different parameter, so we check both states here
onPress:
({ editor, editorState }) =>
() =>
Expand Down

0 comments on commit 13839e5

Please sign in to comment.