Skip to content

Commit

Permalink
Fix formatting selected table cells (#5168)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahir606 authored Oct 26, 2023
1 parent 2f94ed8 commit d0ab17b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@ function FontDropDown({
(option: string) => {
editor.update(() => {
const selection = $getSelection();
if ($isRangeSelection(selection)) {
if (
$isRangeSelection(selection) ||
DEPRECATED_$isGridSelection(selection)
) {
$patchStyleText(selection, {
[style]: option,
});
Expand Down

2 comments on commit d0ab17b

@vercel
Copy link

@vercel vercel bot commented on d0ab17b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-git-main-fbopensource.vercel.app
www.lexical.dev
lexical.dev
lexicaljs.com
lexical-fbopensource.vercel.app
lexicaljs.org

@vercel
Copy link

@vercel vercel bot commented on d0ab17b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
lexical-playground.vercel.app
playground.lexical.dev
lexical-playground-fbopensource.vercel.app

Please sign in to comment.