@prosekit/web package, offering web components and vanilla JavaScript utilities for building powerful editors without any framework dependencies.
Installation
Quick Start
Create a basic editor with vanilla JavaScript:Core API
createEditor
Create an editor instance:Editor Methods
mount / unmount
Mount the editor to a DOM element:focus / blur
Manage editor focus:getDocJSON / getDocHTML
Get editor content:setContent
Update editor content:commands
Execute editor commands:Extension Management
Dynamically add and remove extensions:Web Components
ProseKit provides ready-to-use web components from@prosekit/web:
Using Web Components
Available Web Components
Autocomplete
Inline Popover
Tooltip
Popover
Block Handle
Table Handle
Resizable
Event Handling
Listen to editor events:Keyboard Shortcuts
Define custom keyboard shortcuts:Document Queries
Query and manipulate the document:TypeScript Support
ProseKit has full TypeScript support:Module Bundlers
Vite
Webpack
Rollup
CDN Usage
Use ProseKit directly from a CDN:Browser Support
ProseKit supports all modern browsers:- Chrome/Edge >= 90
- Firefox >= 88
- Safari >= 14
PromiseSet/MapObject.assign
Examples
Check out full working examples:Next Steps
Extensions
Learn about available extensions
Commands
Explore editor commands
Styling
Customize editor appearance
API Reference
Full API documentation