yikoyu / vuetify-pro-tiptap

A Rich Text Editor (WYSIWYG) for Vue3 with tiptap & Vuetify.
https://yikoyu.github.io/vuetify-pro-tiptap/
MIT License
138 stars 19 forks source link

Image upload function didn't run #332

Closed phyothiha closed 1 month ago

phyothiha commented 1 month ago

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 commented 1 month ago

:tada: This issue has been resolved in version 2.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: