yikoyu / vuetify-pro-tiptap

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

Export components and/or more internals #346

Open toddb opened 3 months ago

toddb commented 3 months ago

Thanks for all this amazing work to wrap tiptap for vuetify. However, VuetifyTiptap, itself is difficult to make into vuetify form field and I wondered if the library could export more so that people wanting a custom version could build what you have done. For example, both the Toolbar and BubbleMenu are not exported.

I can see that there are slots, but I am wanting a different structure that uses the v-field and effectively mimicks a v-textarea but has rich texting editing.

More specifically, I was trying to write an alternative version but I can't get access to:

import BubbleMenu from './BubbleMenu.vue'
import TipTapToolbar from './TiptapToolbar.vue'

import { EDITOR_UPDATE_THROTTLE_WAIT_TIME, EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME } from '@/constants/define'
import { useMarkdownTheme, useProvideTiptapStore } from '@/hooks'
import { useLocale } from '@/locales'
import { VuetifyTiptapOnChange } from '@/type'
import { differenceBy, getCssUnitWithDefault, hasExtension, isBoolean, isEqual, throttle } from '@/utils/utils'

Does that make enough sense? Perhaps, I have missed a technique! Would you need a pull request?

Cheers