Open jaredly opened 10 years ago
If you have image data in your clipboard, either from a screenshot or from clicking "copy image" or whatever, then ctrl-v will insert the image for you. On Aug 22, 2014 8:09 AM, "Josh" notifications@github.com wrote:
Drag and drop would be most excellent. You mention "paste to insert image" in your blog post http://jaredly.github.io/2014/07/26/the-hexo-static-blogging-engine-gets-an-admin-ui/. I've yet to sort out what you mean though. Could you be more specific?
This project is great by the way. Something I was looking into doing myself but hadn't decided on the best way.
— Reply to this email directly or view it on GitHub https://github.com/jaredly/hexo-admin/issues/1#issuecomment-53072305.
Ah, I see I needed an images folder in source. I usually use an "assets" folder for images and other media. I think drag and drop would be more practical for most use cases but that's a pretty cool trick.
Hi. For 1.x version, images aren't uploaded to /images
.
I create images folder , but { Error: ENOENT: no such file or directory, open 'E:\Project\blog\source\images\pasted-0.png' at Error (native) errno: -4058, code: 'ENOENT', syscall: 'open', path: 'E:\Project\blog\source\images\pasted-0.png' }
And I think drap & drop would be much bettter
so the workaround would be to create a simple image uploading script. here's little script that I wrote especially for this > https://gist.github.com/AndreiD/d989c927a9da39d4f95c11980c00661d
I'm using Debian Linux and Chrome 55, and the drag-and-upload seems failing while paste-upload works well. I drag a local picture from KDE's file manage (dolphin) to the markdown area, but my images was read as text. I'm sure the images folder is already created before (since I tested paste-upload) Am I missing something, or drag-and-upload is simply not implemented yet?
Here' a screenshot and version info:
➜ hexo hexo -v
hexo: 3.2.2
hexo-cli: 1.0.2
os: Linux 4.8.0-1-amd64 linux x64
http_parser: 2.7.0
node: 7.1.0
v8: 5.4.500.36
uv: 1.10.0
zlib: 1.2.8
ares: 1.10.1-DEV
modules: 51
openssl: 1.0.2j
icu: 58.1
unicode: 9.0
cldr: 30.0.2
tz: 2016g
➜ hexo npm ls hexo-admin
hexo-site@0.0.0 /home/hexo
└── hexo-admin@2.1.0
Drop file works like above
Drag and drop would be most excellent. You mention "paste to insert image" in your blog post. I've yet to sort out what you mean though. Could you be more specific?
This project is great by the way. Something I was looking into doing myself but hadn't decided on the best way.