Skip to content

Bug: Copy Pasting inline code to the playground will paste them as code blocks #2600

Closed
@caitsithlord

Description

Lexical version: current

Steps To Reproduce

  1. https://github.com/facebook/lexical copy an inline code section to your clipboard, or even one from this bug post.
  2. https://playground.lexical.dev/ paste it here

This is also reproducible on non playground versions of the editor that have both the CodeHighlightNodes and inline CodeNodes block nodes.

Link to code example:
N/A

The current behavior

Pastes a multiline code block.

The expected behavior

Pastes an inline code block.

Metadata

Assignees

No one assigned

    Labels

    copy+pasteRelates to Lexical Copy/Paste

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions