Image
The image
node is used to represent images in the document.
import { defineImage } from 'prosekit/extensions/image'
const extension = defineImage ()
Commands
Section titled “Commands”insertImage
Section titled “insertImage”editor .commands .insertImage ({ src : 'https://placehold.co/400' })