Skip to content
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

stackedit auto-download given file on startup #630

Closed
wants to merge 1 commit into from

Conversation

D4ryus
Copy link

@D4ryus D4ryus commented Dec 1, 2014

adds the opportunity to start stackedit with a url and title
so that it starts and loads a given file. This is enabled by appending
json formated text to the link. here is a example:

stackedit.io/editor#{"type":"download","importParameters":{"url": ... }}

json string after the #:
{
"type" : "download",
"importParameters" :
{
"url" : "http:https://url/to/my/file.md",
"title" : "myAwesomeFile.md",
}
}

"type" is the given provider type u want to use, someone could add
other providers if they like. if type "download" is given a fileDesc with
the given "importParameters" will be created and the file content will
be directly downloaded from the given url.
the title will be checked against all other loaded documents, if a file
with the same title already exists it's content will be overwritten by
the downloaded content.

  • url : the url where the file content can be downloaded
  • title : the title which will be used

adds the opportunity to start stackedit with a url and title
so that it starts and loads a given file. This is enabled by appending
json formated text to the link. here is a example:

stackedit.io/editor#{"type":"download","importParameters":{"url": ... }}

json string after the #:
{
        "type"             : "download",
        "importParameters" :
        {
                "url"   : "http:https://url/to/my/file.md",
                "title" : "myAwesomeFile.md",
        }
}

"type" is the given provider type u want to use, someone could add
other providers if they like. if type "download" is given a fileDesc with
the given "importParameters" will be created and the file content will
be directly downloaded from the given url.
the title will be checked against all other loaded documents, if a file
with the same title already exists it's content will be overwritten by
the downloaded content.

- url   : the url where the file content can be downloaded
- title : the title which will be used
@benweet benweet closed this Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants