1.0.3 • Published 10 months ago

tiptap-extension-majestic-image v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Image extension for tiptap & majestic-ui

npm package

import tiptapImageExtension from 'tiptap-extension-majestic-image'

const editor = ref()

onMounted(() => {
	editor.value = new Editor({
		extensions: [
            tiptapImageExtension,
		]
	})	
})

const addImage = ({ path, id }: { path: string; id: number }) => {
	editor.value
		?.chain()
		.focus()
		.setImage({ src: path, id: `image-${id}` })
		.run()
}
1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago