tiptap-extension-vk-video
v1.0.8
Published
vk-video extension for tiptap
Downloads
8
Maintainers
Readme
Vk video extension for TipTap and Vue
import vkVideoExtension from 'tiptap-extension-vk-video'
const editor = ref()
onMounted(() => {
editor.value = new Editor({
extensions: [
vkVideoExtension,
]
})
})
/// path is src attribute from iframe tag!
const addVkVideo = (path: string) => {
editor.value?.chain().focus().setVkVideo({ src: path }).run()
}