yikoyu / vuetify-pro-tiptap

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

cant extend Image extension #338

Open VIXI0 opened 2 weeks ago

VIXI0 commented 2 weeks ago

CANT REMOVE Image extension i want to add a token to image before it load but it doesnt matter what changes i do to the extension it doest reflect on tiptap, the weird thing is that it doesnt matter if i remove the extension it still show the option.

image

const extensions = [ BaseKit.configure({ placeholder: { placeholder: 'Escribe aquí...' } }), Bold, Italic, Underline, Strike, Color, Highlight, Heading, Link, // Image.configure({ // // Generate a VDivider after the button // divider: true, // token: TokenImage.value?TokenImage.value:'', // // Custom image tabs // // imageTabs: [{ name: 'SELECT', component: markRaw(SelectImage) }], // // hidden default tab // // hiddenTabs: ['upload'], // // custom upload function // async upload(file) {

// const formData = new FormData() // formData.append('file', file[0])

// try { // const { data } = await useAPI('/images', { // method: 'POST', // body: formData // })

// const imageUrl = http://localhost:3000/images/${data.value.file} // Ajusta según la respuesta de tu API // return Promise.resolve(imageUrl) // } catch (error) { // console.error('Error uploading image:', error) // return Promise.reject(error) // } // } // }), Video, Table, Fullscreen, History ]

yikoyu commented 2 weeks ago

I am unable to reproduce the issue here. Please provide a repository or a CodeSandbox link that can reproduce the problem.

VIXI0 commented 1 week ago

sadly I tryed to create a empty repo only with vuetify-pro-titap but i get this error

✘ [ERROR] Could not resolve "vuetify/components" ../node_modules/vuetify-pro-tiptap/lib/vuetify-pro-tiptap.mjs:4:447

✘ [ERROR] Could not resolve "vuetify" ../node_modules/vuetify-pro-tiptap/lib/vuetify-pro-tiptap.mjs:6:31

Steps to reproduce:

  1. yarn create vuetify
  2. yarn add vuetify-pro-titap
  3. create tiptap.ts like the docs says
  4. import and use it in app.vue