Vanessa 2022-11-13 23:34:26 +08:00
parent ad05215b18
commit e8f1808cb0
3 changed files with 109 additions and 0 deletions

View file

@ -23,6 +23,7 @@ import {rename} from "../editor/rename";
import {matchHotKey} from "../protyle/util/hotKey";
import * as dayjs from "dayjs";
import {Constants} from "../constants";
import {exportImage} from "../protyle/export/util";
const bindAttrInput = (inputElement: HTMLInputElement, confirmElement: Element) => {
inputElement.addEventListener("keydown", (event) => {
@ -669,6 +670,12 @@ export const exportMd = (id: string) => {
openByMobile(response.data.zip);
});
}
}, {
label: window.siyuan.languages.image,
icon: "iconImage",
click: () => {
exportImage(id);
}
},
/// #if !BROWSER
{