Skip to content

🐛Export fails when paste with style #1552

@AntoLC

Description

@AntoLC

Bug Report

When we copy a text that has a style attach, and paste it in the doc, the export will then fails.

How to reproduce

  • Copy any text from github
  • Paste it to a doc
  • Export
  • The export fails

Why

A paste color is in rgb, Blocknote does not know how to manage them:

Image

Possible solution

Manage the RGB style to fallback to a blocknote color, or remove the style when RGB.

export const blockMappingParagraphPDF: DocsExporterPDF['mappings']['blockMapping']['paragraph'] =

⚠️ It can be fixed on our side, but the best place to fix this issue is in Blocknote directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions