Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(facade): insert empty text error #4465

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: insert empty text error
  • Loading branch information
weird94 committed Jan 13, 2025
commit fc67e6483f1434a9402a823de3bfb1aa8282fc02
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
Loading