Skip to content

Readonly

Disable editing of the editor.

Usage

ts
import { 
defineReadonly
} from 'prosekit/extensions/readonly'
const
extension
=
defineReadonly
()

You can use useExtension() to enable or disable this extension dynamically in your application.

API Reference