chmln / vue-wysiwyg

A lightweight WYSIWYG HTML editor for Vue.js
https://chmln.github.io/vue-wysiwyg/
MIT License
557 stars 136 forks source link

dropzoneOptions not working #57

Closed antonioandrade closed 6 years ago

antonioandrade commented 6 years ago

Dropzone options do not seem to be properly passed in as per the documentation. In practice, configuring custom upload headers as below won't work:

Vue.use(wysiwyg, {
    image: {
        uploadURL: "/api/myEndpoint",
        dropzoneOptions: {
              "my-header": "some data"
        }
      },
});
chmln commented 6 years ago

@antonioandrade https://rowanwins.github.io/vue-dropzone/docs/dist/index.html#/installation

Aren't headers supposed to be passed in a headers object?

Like

dropzoneOptions: {
      headers: { "Header Key": "header value" }
}
fereloper commented 6 years ago

@chmln I am adding header object as like as described in https://rowanwins.github.io/vue-dropzone/docs/dist/index.html#/installation. But it still not working!