mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Add support of exporting raw html
This commit is contained in:
parent
4d24476316
commit
cb1e00d1d1
3 changed files with 32 additions and 5 deletions
|
@ -505,7 +505,8 @@ var ui = {
|
|||
publish: $(".ui-publish"),
|
||||
download: {
|
||||
markdown: $(".ui-download-markdown"),
|
||||
html: $(".ui-download-html")
|
||||
html: $(".ui-download-html"),
|
||||
rawhtml: $(".ui-download-raw-html")
|
||||
},
|
||||
export: {
|
||||
dropbox: $(".ui-save-dropbox"),
|
||||
|
@ -1174,6 +1175,12 @@ ui.toolbar.download.html.click(function (e) {
|
|||
e.stopPropagation();
|
||||
exportToHTML(ui.area.markdown);
|
||||
});
|
||||
// raw html
|
||||
ui.toolbar.download.rawhtml.click(function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
exportToRawHTML(ui.area.markdown);
|
||||
});
|
||||
//export to dropbox
|
||||
ui.toolbar.export.dropbox.click(function () {
|
||||
var filename = renderFilename(ui.area.markdown) + '.md';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue