Skip to content

Commit

Permalink
Update apps/www/src/registry/default/plate-ui/code-block-format-butto…
Browse files Browse the repository at this point in the history
…n.tsx

Co-authored-by: Ziad Beyens <[email protected]>
  • Loading branch information
patrick-hertling and zbeyens authored Feb 1, 2025
1 parent 3cd4cd5 commit 1acf0c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function CodeBlockFormatButton({ element }: { element: TElement }) {
variant="ghost"
className="h-5 justify-between px-1 text-xs"
disabled={!validSyntax}
onClick={() => format()}
onClick={() => formatCodeBlock(editor, { element })}
title="Format code"
>
<BracesIcon className="text-gray-500" />
Expand Down

0 comments on commit 1acf0c7

Please sign in to comment.