CLI for adding Text Editor Studio components to your project
npm install @torchcrop/text-editor-studiobash\nnpx text-editor-studio@latest init\n`\n\n## Usage\n\n### Initialize your project\n\n`bash\nnpx text-editor-studio@latest init\n`\n\nThis will:\n- Create a components.json configuration file\n- Set up the necessary directory structure\n- Install required dependencies\n\n### Add components\n\n`bash\n# Add the complete editor\nnpx text-editor-studio@latest add editor-x\n\n# Add a basic editor\nnpx text-editor-studio@latest add basic-editor\n\n# Add specific nodes/plugins\nnpx text-editor-studio@latest add image-node\nnpx text-editor-studio@latest add toolbar\n`\n\n### List available components\n\n`bash\nnpx text-editor-studio@latest list\n`\n\n## Configuration\n\nThe components.json file allows you to customize:\n\n`json\n{\n \"$schema\": \"https://text-editor-studio.vercel.app/schema.json\",\n \"components\": \"./src/components\",\n \"utils\": \"./src/lib/utils\",\n \"ui\": \"./src/components/ui\",\n \"css\": \"./src/index.css\",\n \"tailwind\": {\n \"config\": \"./tailwind.config.js\",\n \"css\": \"./src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\"\n }\n}\n`\n\n## Available Components\n\n### Editor Blocks\n- editor-x - Complete text editor with all features\n- basic-editor - Minimal text editor with essential features\n\n### Editor Nodes\n- image-node - Image support with resizing and captions\n- equation-node - LaTeX equation support\n- poll-node - Interactive polls\n- mention-node - @ mentions with autocomplete\n\n### Plugins\n- toolbar - Floating formatting toolbar\n- table-plugin - Rich table support\n- emoji-picker - Emoji picker plugin\n- mentions-plugin - @ mentions functionality\n\n## Requirements\n\n- React 18+\n- TypeScript (recommended)\n- Tailwind CSS\n- Node.js 18+\n\n## Example Usage\n\nAfter adding components, you can use them in your React app:\n\n`tsx\nimport { Editor } from '@/components/editor-x/editor';\n\nfunction App() {\n return (\n \n {\n console.log('Editor state changed:', editorState);\n }}\n />\n \n );\n}\n`\n\n## Contributing\n\nTo add new components to the registry, create a JSON file in the registry/` directory with the component definition.\n\n## License\n\nMIT"