Skip to content

Conversation

@matthewlipski
Copy link
Collaborator

This PR adds a block ID field to resolveFileUrl as there seems to be a use case for it as per this Discord thread.

Also fixes the upload file button not including the block ID when calling editor.uploadFile, and the video block not calling editor.resolveUrl.

@vercel
Copy link

vercel bot commented Sep 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Sep 29, 2024 6:28pm
blocknote-website ✅ Ready (Inspect) Visit Preview Sep 29, 2024 6:28pm

public readonly resolveFileUrl: (url: string) => Promise<string>;
public readonly resolveFileUrl: (
url: string,
blockId?: string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this parameter be required? Or are there cases when it's undefined? If so, I think we should document those

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants