Comments (8)
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.
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
[email protected] /home/hexo
└── [email protected]
from hexo-admin.
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.
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.
Hi. For 1.x version, images aren't uploaded to /images
.
from hexo-admin.
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.
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.
Drop file works like above
from hexo-admin.
Related Issues (20)
- jquery js ERR_CONNECTION_RESET
- bcrypt-nodejs is no longer actively mai ntained. Please use bcrypt or bcryptjs.
- 欧弟
- about del page and post
- 登陆密码忘了怎么找回
- How to delete a draft?
- support images rlative path
- Multiple Admins/Passwords possible?
- Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. HOT 2
- Deploy cms to heroku
- How to change HTTP to HTTPS
- Advice: move this repo to hexojs official org
- Plugin can't load properly HOT 1
- 报错:Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. HOT 2
- 设置登录账户密码后无法编辑博客
- admin新增修改一直loading HOT 4
- How to support keywords just like tag and categories? HOT 1
- white screen HOT 3
- white screen
- add new post can't custom fontmatter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-admin.