Skip to content

Commit

Permalink
Fix #5663 cell text style gets lost on copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed Apr 9, 2024
1 parent a04e03b commit c96288f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lexical-table/src/LexicalTableCellNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
$createParagraphNode,
$isElementNode,
$isLineBreakNode,
$isTextNode,
ElementNode,
} from 'lexical';

Expand Down Expand Up @@ -331,6 +332,9 @@ export function convertTableCellNodeElement(
) {
return null;
}
if ($isTextNode(lexicalNode)) {
lexicalNode.setStyle(domNode_.style.cssText);
}
paragraphNode.append(lexicalNode);
return paragraphNode;
}
Expand Down

0 comments on commit c96288f

Please sign in to comment.