diff --git a/packages/lexical/src/LexicalSelection.ts b/packages/lexical/src/LexicalSelection.ts index a4d18bca35a..8457d3ca483 100644 --- a/packages/lexical/src/LexicalSelection.ts +++ b/packages/lexical/src/LexicalSelection.ts @@ -2032,6 +2032,11 @@ export class RangeSelection implements BaseSelection { anchorNode.collapseAtStart(this); } } + const anchorNode = this.anchor.getNode(); + if ($isTextNode(anchorNode)) { + this.format = anchorNode.getFormat(); + this.style = anchorNode.getStyle(); + } } deleteLine(isBackward: boolean): void {