Skip to content

Commit

Permalink
Rename slash items
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischrischris committed Dec 13, 2024
1 parent 7cd70c6 commit ce34825
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions blocks/edit/prose/plugins/slashMenu/slashMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ const wrapInCodeBlock = (state, dispatch) => {

const items = [
{
title: 'Heading-1',
title: 'Heading 1',
command: (state, dispatch) => setHeading(state, dispatch, 1),
class: 'menu-item-h1',
},
{
title: 'Heading-2',
title: 'Heading 2',
command: (state, dispatch) => setHeading(state, dispatch, 2),
class: 'menu-item-h2',
},
{
title: 'Heading-3',
title: 'Heading 3',
command: (state, dispatch) => setHeading(state, dispatch, 3),
class: 'menu-item-h3',
},
Expand All @@ -42,27 +42,27 @@ const items = [
class: 'menu-item-blockquote',
},
{
title: 'CodeBlock',
title: 'Code block',
command: wrapInCodeBlock,
class: 'menu-item-codeblock',
},
{
title: 'BulletList',
title: 'Bullet list',
command: (state, dispatch) => wrapInList(state.schema.nodes.bullet_list)(state, dispatch),
class: 'bullet-list',
},
{
title: 'NumberedList',
title: 'Numbered list',
command: (state, dispatch) => wrapInList(state.schema.nodes.ordered_list)(state, dispatch),
class: 'ordered-list',
},
{
title: 'Section-Break',
title: 'Section break',
command: insertSectionBreak,
class: 'edit-hr',
},
{
title: 'Lorem-Ipsum',
title: 'Lorem ipsum',
command: loremIpsum,
class: 'lorem-ipsum',
argument: true,
Expand Down

0 comments on commit ce34825

Please sign in to comment.