Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image upload function didn't run #332

Closed
phyothiha opened this issue Jun 11, 2024 · 1 comment
Closed

Image upload function didn't run #332

phyothiha opened this issue Jun 11, 2024 · 1 comment
Labels

Comments

@phyothiha
Copy link

I'm still have a problem uploading image from file system. Image upload function didn't run in my component and also there is no console error. I choose a file and fill out link value to unlock Apply button.

This is my component. I did not install plugin globally.

<script setup>
import { ref } from "vue";
import { VuetifyTiptap } from "vuetify-pro-tiptap";
import "vuetify-pro-tiptap/style.css";
import { BaseKit, Image } from "vuetify-pro-tiptap";

const extensions = [
  BaseKit.configure({
    placeholder: {
      placeholder: "Write some text...",
    },
  }),
  Image.configure({
    upload(file) {
      console.log(file);
    },
  }),
];

const content = ref("");
</script>

<template>
  <div>
     <VuetifyTiptap
        v-model="content"
        :min-height="200"
        :max-height="465"
        :max-width="900"
        :extensions="extensions"
      />
  </div>
</template>
@yikoyu yikoyu closed this as completed in 2ee4046 Jun 12, 2024
yikoyu pushed a commit that referenced this issue Jun 12, 2024
## [2.5.1](v2.5.0...v2.5.1) (2024-06-12)

### Bug Fixes

* **Image:** upload function didn't run ([2ee4046](2ee4046)), closes [#332](#332)
@yikoyu
Copy link
Owner

yikoyu commented Jun 12, 2024

🎉 This issue has been resolved in version 2.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants