Skip to content

Commit

Permalink
fix #7082
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Feb 10, 2025
1 parent 93a2020 commit b0cddae
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ export const updateFontSize = (
export const formatParagraph = (editor: LexicalEditor) => {
editor.update(() => {
const selection = $getSelection();
if ($isRangeSelection(selection)) {
$setBlocksType(selection, () => $createParagraphNode());
}
$setBlocksType(selection, () => $createParagraphNode());
});
};

Expand Down

0 comments on commit b0cddae

Please sign in to comment.