Skip to content

Placeholder

Show some placeholder text when the current text block is empty or the whole document is empty.

Usage

ts
import { 
definePlaceholder
} from 'prosekit/extensions/placeholder'
const
extension
=
definePlaceholder
({
placeholder
: 'Type Something...' })

Note that you would need to import the style file for the extension to work.

API Reference