mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00
Supported export to gist
This commit is contained in:
parent
0f87fd4493
commit
ff2fc76491
5 changed files with 145 additions and 2 deletions
|
@ -311,7 +311,8 @@ var ui = {
|
|||
html: $(".ui-download-html")
|
||||
},
|
||||
export: {
|
||||
dropbox: $(".ui-save-dropbox")
|
||||
dropbox: $(".ui-save-dropbox"),
|
||||
gist: $(".ui-save-gist")
|
||||
},
|
||||
import: {
|
||||
dropbox: $(".ui-import-dropbox"),
|
||||
|
@ -857,6 +858,8 @@ ui.toolbar.export.dropbox.click(function () {
|
|||
};
|
||||
Dropbox.save(options);
|
||||
});
|
||||
//export to gist
|
||||
ui.toolbar.export.gist.attr("href", url + "/gist");
|
||||
//import from dropbox
|
||||
ui.toolbar.import.dropbox.click(function () {
|
||||
var options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue