Replies: 3 comments 1 reply
-
|
@omarmir Thank you 🎉, I need it 😊 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ok! I'll pull it out of my project and post it on npm :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Done! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a plugin for my app - you can see the plugin code here:
https://github.com/omarmir/nanote/tree/master/utils/milkdown-plugins/file-picker
Typing ::file inline or ::fileBlock on a new line creates a fileupload input:

Which once uploaded renders either:


or
And you can easily integrate it into the slash command:

The component is headless - though it does place the icon for the filetype automatically.
If there is interest, I'd be happy to package it out but the existing image/file does do this as well (albeit differently).
Beta Was this translation helpful? Give feedback.
All reactions