GithubHelp home page GithubHelp logo

onedrive / onedrive-texteditor-js Goto Github PK

View Code? Open in Web Editor NEW
27.0 10.0 22.0 221 KB

Simple single-page JavaScript app for editing text files

License: Other

HTML 2.15% JavaScript 97.50% CSS 0.30% Batchfile 0.05%
onedrive javascript filepicker microsoftgraph

onedrive-texteditor-js's People

Contributors

daboxu avatar ksheode avatar rgregg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onedrive-texteditor-js's Issues

Not able to integrate with cordova app

I am trying to integrate the file picker in cordova app. I am able to open filepicker but when I tried to open the selected file I got following error. Please see screenshot below:
image

My code for filepicker is:
var odOptions = {
clientId: "",
action: "share | download | query",
multiSelect: false,
openInNewWindow: true,
advanced: {
redirectUri: ""
},
success: function (files) { /* success handler / },
cancel: function () { /
cancel handler / },
error: function (e) { /
error handler */ }
};
OneDrive.open(odOptions);

I have also followed all things which mentioned on https://dev.onedrive.com/sdk/js-v7/js-picker-open.htm

Please help in this. I am waiting for your valuable reply.

Thanks in advance.

no files

Hi, i have got this working.
So far so good

login workes fine but i see only folders and no content link index.html or other files.
Do i need to set some more settings?

Eric

Use PKCE instead of Implicit Grant flow

This example requires enabling the implicit flow for the app, which is no longer recommended for use by Microsoft. Is it possible to update the SDK to use PKCE instead?

Extend sample to show "share" action

I am trying to use your sample to add functionality to create a "view" link on the opened file. Is that supported by the v7 filepicker and the new v2.0 auth endpoint and graph api?

I'm receiving the following error after calling OneDrive.open with options.action = "share"

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#driveItem","@odata.type":"#microsoft.graph.driveItem","id":"huwcmsBFlrTjJUVl3wDPRweHZOc"{
"error": {
"code": "InternalServerError",
"message": "Unsupported extension property type.",
"innerError": {
"request-id": "72116e0c-214d-413f-bb72-cee57ff2200f",
"date": "2016-04-05T21:23:51"
}
}
}

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.