Code Monkey home page Code Monkey logo

Comments (8)

jaredly avatar jaredly commented on August 17, 2024 1

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" [email protected] 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
#1 (comment).

from hexo-admin.

KagamiChan avatar KagamiChan commented on August 17, 2024 1

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:
image

➜  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
[email protected] /home/hexo
└── [email protected] 

from hexo-admin.

abstracthat avatar abstracthat commented on August 17, 2024

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.

from hexo-admin.

abstracthat avatar abstracthat commented on August 17, 2024

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.

from hexo-admin.

lufeihaidao avatar lufeihaidao commented on August 17, 2024

Hi. For 1.x version, images aren't uploaded to /images.

from hexo-admin.

eromoe avatar eromoe commented on August 17, 2024

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

from hexo-admin.

AndreiD avatar AndreiD commented on August 17, 2024

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

from hexo-admin.

lufeihaidao avatar lufeihaidao commented on August 17, 2024

Drop file works like above

from hexo-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.