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

feat: Added resolveFileUrl block ID field #1107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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.

2 participants