Skip to content

Commit

Permalink
Fix code button (plone#5668) (plone#5669)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer authored Jan 19, 2024
1 parent 30bfda3 commit 3259626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/volto-slate/news/5668.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix code button in slate. @pbauer
3 changes: 1 addition & 2 deletions packages/volto-slate/src/editor/config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import superindexIcon from '@plone/volto/icons/superindex.svg';
import { createEmptyParagraph } from '@plone/volto-slate/utils';

import {
MarkButton,
MarkElementButton,
BlockButton,
ClearFormattingButton,
Expand Down Expand Up @@ -96,7 +95,7 @@ export const buttons = {
/>
),
code: (props) => (
<MarkButton title="Code" format="code" icon={codeIcon} {...props} />
<MarkElementButton title="Code" format="code" icon={codeIcon} {...props} />
),
'heading-two': (props) => (
<BlockButton
Expand Down

0 comments on commit 3259626

Please sign in to comment.