-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add image upload via drag'n'drop #2264
Conversation
6c316aa
to
c3a1b17
Compare
/compile amend |
c3a1b17
to
2d78fed
Compare
331a2e4
to
69eb7ce
Compare
/compile amend |
69eb7ce
to
d190de5
Compare
src/components/EditorWrapper.vue
Outdated
@@ -99,6 +108,18 @@ import { Step } from 'prosemirror-transform' | |||
|
|||
const EDITOR_PUSH_DEBOUNCE = 200 | |||
|
|||
const imageMimes = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const imageMimes = [ | |
const IMAGE_MIMES = [ |
src/components/EditorWrapper.vue
Outdated
@@ -179,6 +200,8 @@ export default { | |||
readOnly: true, | |||
forceRecreate: false, | |||
menubarLoaded: false, | |||
nbUploadingImages: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nbUploadingImages: 0, | |
uploadingImagesCount: 0, |
d190de5
to
b5df672
Compare
remove image upload by link move 'image insertion from files' from MenuBar to EditorWrapper allow uploading multiple files Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
b5df672
to
2942e04
Compare
/compile amend |
2942e04
to
7ff67b6
Compare
Signed-off-by: Julien Veyssier <[email protected]>
7ff67b6
to
6f619c0
Compare
) Signed-off-by: Julien Veyssier <[email protected]>
src/components/EditorWrapper.vue
Outdated
@@ -45,7 +50,10 @@ | |||
:is-public="isPublic" | |||
:autohide="autohide" | |||
:loaded.sync="menubarLoaded" | |||
@show-help="showHelp"> | |||
:uploading-image="uploadingImages" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, the uploadingImage
property in MenuBar
should maybe be named uploadingImages
as well?
/compile amend |
9bc6832
to
38be106
Compare
38be106
to
c38fb17
Compare
/compile amend |
Signed-off-by: Julien Veyssier <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
c38fb17
to
5bdc049
Compare
This includes those changes:
We imitate what's done style-wise in Files when dragging stuff over: set background color to
--color-primary-light
.