Skip to content

Commit

Permalink
fix(facade): insert empty text error (#4465)
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 authored Jan 13, 2025
1 parent fcf5bbf commit 88a0c86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/docs/data-model/rich-text-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,8 @@ export class RichTextBuilder extends RichTextValue {
} else {
insertStyle = style instanceof TextStyleBuilder ? style.build() : style;
}

if (!insertText) return this;
const newBody: IDocumentBody = {
dataStream: insertText,
textRuns: insertStyle
Expand Down

0 comments on commit 88a0c86

Please sign in to comment.