1.0.1 • Published 4 months ago

plate-rich-editor v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Plate Rich Editor

A powerful and customizable rich text editor based on Plate and React.

Installation

npm install plate-rich-editor
# or
yarn add plate-rich-editor
# or
pnpm add plate-rich-editor

Requirements

This package has the following peer dependencies:

  • React >= 17.0.0
  • ReactDOM >= 17.0.0

Usage

Basic Usage

import { PlateEditor } from 'plate-rich-editor';

function MyEditor() {
  return (
    <PlateEditor>
      {/* Your editor content */}
    </PlateEditor>
  );
}

With Drag and Drop

The editor comes with built-in drag and drop support. The DnD provider is automatically included when you use the PlateEditor component.

import { PlateEditor } from 'plate-rich-editor';

function MyEditorWithDnD() {
  return (
    <PlateEditor>
      {/* Your draggable content */}
    </PlateEditor>
  );
}

If you need to use the DnD provider separately:

import { PlateEditorDndProvider } from 'plate-rich-editor/dnd';

function CustomEditor() {
  return (
    <PlateEditorDndProvider>
      {/* Your custom editor implementation */}
    </PlateEditorDndProvider>
  );
}

Features

  • 🎨 Modern and beautiful UI components
  • 📝 Rich text editing capabilities
  • 🎯 AI-powered suggestions
  • 📸 Media support (images, videos, etc.)
  • 📋 Tables and lists
  • 🔗 Links and mentions
  • 🎨 Custom styling and theming
  • 📱 Responsive design
  • 🔌 Extensible plugin system
  • 🔄 Drag and drop support

Documentation

For detailed documentation and examples, please visit our documentation site.

Contributing

Contributions are welcome! Please read our contributing guidelines for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

@ai-sdk/openai@ariakit/react@babel/runtime@emoji-mart/data@faker-js/faker@hookform/resolvers@radix-ui/react-alert-dialog@radix-ui/react-avatar@radix-ui/react-checkbox@radix-ui/react-context-menu@radix-ui/react-dialog@radix-ui/react-dropdown-menu@radix-ui/react-label@radix-ui/react-popover@radix-ui/react-separator@radix-ui/react-slot@radix-ui/react-toolbar@radix-ui/react-tooltip@rollup/plugin-json@udecode/cmdk@udecode/cn@udecode/plate@udecode/plate-ai@udecode/plate-alignment@udecode/plate-autoformat@udecode/plate-basic-marks@udecode/plate-block-quote@udecode/plate-break@udecode/plate-callout@udecode/plate-caption@udecode/plate-code-block@udecode/plate-combobox@udecode/plate-comments@udecode/plate-common@udecode/plate-date@udecode/plate-dnd@udecode/plate-docx@udecode/plate-emoji@udecode/plate-excalidraw@udecode/plate-floating@udecode/plate-font@udecode/plate-heading@udecode/plate-highlight@udecode/plate-horizontal-rule@udecode/plate-indent@udecode/plate-indent-list@udecode/plate-juice@udecode/plate-kbd@udecode/plate-layout@udecode/plate-line-height@udecode/plate-link@udecode/plate-list@udecode/plate-markdown@udecode/plate-math@udecode/plate-media@udecode/plate-mention@udecode/plate-node-id@udecode/plate-reset-node@udecode/plate-resizable@udecode/plate-select@udecode/plate-selection@udecode/plate-slash-command@udecode/plate-suggestion@udecode/plate-table@udecode/plate-tag@udecode/plate-toggle@udecode/plate-trailing-block@uploadthing/reactaiclass-variance-authorityclsxdate-fnsfzfhtml2canvaslowlightlucide-reactpdf-libreact-day-pickerreact-dndreact-dnd-html5-backendreact-hook-formreact-lite-youtube-embedreact-playerreact-tweetsonnertailwind-mergetailwind-scrollbar-hidetailwindcsstailwindcss-animateuploadthinguse-file-pickerzod
1.0.1

4 months ago

1.0.0

4 months ago