Prerequisites
Before installing Yoopta Editor, make sure you have:- Node.js version 14 or higher
- React version 17.0.2 or higher
- React DOM version 17.0.2 or higher
Package Manager
Yoopta Editor supports all major package managers:- npm
- yarn
- pnpm
bash npm install slate slate-react slate-dom @yoopta/editor Package Categories
Yoopta Editor is organized into several package categories. Install only what you need:Core Packages
Required: Core Editor
slate&slate-react slate-dom- Peer dependencies (required)@yoopta/editor- Core headless editor package
Optional: UI Components
Toolbar,ActionMenuList,SlashCommandMenuBlockOptions,FloatingBlockActionsHighlightColorPicker,Portal,Overlay
Optional: Themes
Plugin Packages
Install plugins based on the content types you need:Text Plugins
List Plugins
Media Plugins
Layout Plugins
Code Plugin
Link Plugin
UI Components Package
Install UI components for editor interactions:Toolbar- Text formatting toolbarActionMenuList- Block insertion menuSlashCommandMenu- Inline slash command menuBlockOptions- Block action menuFloatingBlockActions- Floating action buttonsHighlightColorPicker- Color picker componentPortal&Overlay- Utility components
Marks Package
Install marks for text formatting:Bold,Italic,Underline,StrikeCode- Inline codeHighlight- Text highlighting with colors
Utility Packages
Exports Package
All-in-One Installation
Install everything at once:Exports Package
For exporting content to different formats:- Markdown
- HTML
- Plain text
TypeScript Support
Yoopta Editor is written in TypeScript and includes type definitions out of the box. No additional@types packages are needed.
Verification
Verify your installation by creating a simple editor:Next Steps
Troubleshooting
Module not found: slate
Module not found: slate
Make sure you’ve installed both
slate and slate-react:TypeScript errors
TypeScript errors
Ensure you’re using TypeScript 4.8 or higher and that
@yoopta/editor is properly installed.For more help, join our Discord community or check GitHub
Issues.