-
Notifications
You must be signed in to change notification settings - Fork 138
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
Addon: insert-file with support for drag-drop, paste #19
Comments
Currently I'm trying refactoring the project with TypeScript and rollup.js. Much harder than I thought. I've also written one |
Yes, lots of work indeed, for me too when I was trying it out. I added extra sample code to https://gist.github.com/nokola/f11f91b15ee4acdd17588334e1b57f78 for firebase upload with thumbnails, zip files. |
Looks good! Thanks |
v0.3.6 Both
Here is an example: PowerPack insert-file-with-smms provides https://github.com/laobubu/HyperMD/blob/master/src/powerpack/insert-file-with-smms.ts |
Will check it out in the next few weeks, thanks! (currently working on another part of my project and need to spend some time to integrate the new typescript HyperMD first) |
Just moving the discussion here from the closed PR.
I make a simple working insert-file.ts addon, as we discussed above. Here it is: https://gist.github.com/nokola/f11f91b15ee4acdd17588334e1b57f78
I won't have time to extend it yet, because I have to work on other parts of my project (the actual file upload...)
I think it's best that it's part of HyperMD, but I wanted the addon today to continue with my project, so I made this quick/simple one.
I'm not sure the best way to interact with CodeMirror, perhaps you have a better idea.
Please feel free to use as you wish/copy/etc. or just use the .js output!
The text was updated successfully, but these errors were encountered: