diff --git a/src/components/tiptap-editor/TiptapMediaButton.vue b/src/components/tiptap-editor/TiptapMediaButton.vue
index 0c1c40e..24f0493 100644
--- a/src/components/tiptap-editor/TiptapMediaButton.vue
+++ b/src/components/tiptap-editor/TiptapMediaButton.vue
@@ -20,29 +20,70 @@
:loading="uploading"
:disabled="uploading"
@click="onClick"
- >
- 插入
-
+ content="插入"
+ />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -89,6 +130,14 @@ function buildDefaultHeight() {
return "auto";
}
+function setWidth(width: "auto" | "100%") {
+ mediaForm.width = width;
+}
+
+function setHeight() {
+ mediaForm.height = buildDefaultHeight();
+}
+
function pickFile(event?: MouseEvent) {
event?.stopPropagation();
fileInputRef.value?.click();
@@ -180,20 +229,32 @@ async function onConfirm() {