Skip to content

Image

The image node is used to represent images in the document.

Usage

ts
import { defineImage } from 'prosekit/extensions/image'

const extension = defineImage()

Commands

insertImage

ts
editor
.
commands
.
insertImage
({
src
: 'https://placehold.co/400' })

API Reference