directus-lexical-editor
v1.0.5
Published
Rich text editor interface for Directus using Lexical framework with React integration
Maintainers
Readme
Directus Lexical Editor
A rich text editor interface for Directus using the Lexical framework with React integration.
✨ Features
- Text formatting: bold, italic, underline, strikethrough
- Text highlighting: red highlighting for selected text
- Custom fonts: 25px size, "Arabic-1" font family
- JSON serialization: proper data persistence and loading
- React integration: full support for Lexical React plugins
- Vue.js wrapper: Directus compatibility
📦 Installation
Via npm (recommended)
npm install directus-lexical-editorVia Directus CLI
npx directus extension install directus-lexical-editorManual installation
- Download the extension from npm
- Copy to
extensions/interfaces/lexical/folder - Restart Directus
🚀 Usage
- Install the extension in your Directus project
- Create a new field with type "Text" or "String"
- Select "Lexical Editor" as the interface
- Configure field options as needed
⚙️ Configuration
The extension supports the following options:
placeholder: Placeholder text for the editorminHeight: Minimum height of the editormaxHeight: Maximum height of the editor
🛠️ Development
# Install dependencies
npm install
# Build the extension
npm run build
# Development mode with watch
npm run dev
# Validate the extension
npm run validate📋 Requirements
- Directus ^10.10.0
- Node.js ^18.0.0
- React ^19.2.0
🔗 Links
- npm package
- GitHub repository
- Directus Marketplace (available in a few hours)
📄 License
MIT
