DumbPad
DumbPad copied to clipboard
[Feature Request] Image/media support?
Is your feature request related to a problem? Please describe. I'm planning to use DumbPad as a clipboard/links sharing tool on my homepage. I'd like to be able to paste images/screenshots on my computer and open and view them on my phone for example.
Describe the solution you'd like I Ctrl+V in a note with an image in my clipboard and it shows in the note. It's saved in an attachments folder or something.
Describe alternatives you've considered There's none in the top of my head.
this sounds awesome and also doable. requires some changes but will look into it when there's time!
but for now public external image links are supported in markdown.
dev notes/rough implementation:
- we need to map a new uploads folder
- drag and drop over the main editor / upload input in toolbar to add image to server and path to image to current cursor position
- some way to clean up the uploads folder:
- with either a way to reference current uploads and/or deleting an image from the note to remove the file from the uploads dir itself (could get tricky)
- or scheduled cleanup of unreferenced images
- otherwise uploads folder could get huge over time
- using the baseUrl/uploads/image.jpg to render the images in markdown preview
- with configurable CORS/csp restrictions