Skip to content

Copying to clipboard of react custom blocks that use context #592

Closed

Description

@YousefED

Copying the React Alert demo block doesn't work, because it's render function relies on React Context (for dropdown menu).

Overriding toExternalHtml doesn't suffice, because we also call toInternalHtml to set the blocknote data on the clipboard. However, toInternalHTML always calls render(), which depends on the React Context.

We need to review to usage of toInternalHTML and see if it needs to be customizable

Activity

  1. YousefED commented on Mar 12, 2024

    @YousefED
    CollaboratorAuthor

    Possibly related: #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions