添加插入图片菜单

This commit is contained in:
wux_labs
2025-02-18 12:54:34 +08:00
parent adad3a656f
commit 6a49ef311a
8 changed files with 584 additions and 4 deletions
+7
View File
@@ -20,6 +20,7 @@ import i18next from "i18next";
import { zh } from "../i18n/zh.ts";
import { Resource } from "i18next";
import { allExtensions } from "./UAIExtensions.ts";
import { Uploader } from "../utils/FileUploader.ts";
self.MonacoEnvironment = {
getWorker(_workerId, _label) {
@@ -81,6 +82,12 @@ export type UAIEditorOptions = {
theme?: "light" | "dark",
lang?: string,
i18n?: Record<string, Record<string, string>>,
image?: {
uploadUrl?: string,
uploadHeaders?: (() => Record<string, any>) | Record<string, any>,
uploadFormName?: string,
uploader?: Uploader,
},
}
/**