A powerful, customizable rich text editor component built with Lexical and React. Features a modern toolbar, image support, video embedding, and comprehensive text formatting options.

npm install @innoviatech/lexical-text-editor
Version 2.0 eliminates the need for Tailwind CSS and multiple UI libraries. Just install the package and start using it!
import React, { useState } from 'react';
import { LexicalTextEditor } from '@innoviatech/lexical-text-editor';
import '@innoviatech/lexical-text-editor/style.css';
function App() {
const [content, setContent] = useState('');
return (
<>
<LexicalTextEditor
name="my-editor"
value={content}
onChange={setContent}
placeholder="Start typing your content here..."
/>
</>
);
}
export default App;
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string |
Yes | β | Unique identifier for the editor instance |
value |
string |
Yes | β | Current editor content (HTML string) |
onChange |
(value: string) => void |
Yes | β | Callback fired when content changes |
placeholder |
string |
No | "Some Text" |
Placeholder text when editor is empty |
maxWidth |
string |
No | β1090pxβ | Adjust the maximum width accoding to the need (β80%β or β800pxβ) |
height |
string |
No | β500pxβ | Adjust the height accoding to the need (β50vhβ or β500pxβ) |
import React, { useState } from 'react';
import { LexicalTextEditor } from '@innoviatech/lexical-text-editor';
import '@innoviatech/lexical-text-editor/style.css';
function App() {
const [content, setContent] = useState('<p>Welcome to the editor!</p><ul><li>Feature 1</li><li>Feature 2</li></ul>');
const handleSave = () => {
console.log('Current content:', content);
};
return (
<form onSubmit={handleSave}>
<LexicalTextEditor
name="content-editor"
value={content}
onChange={setContent}
placeholder="Write your content..."
maxWidth="600px"
height="400px"
/>
<button type="submit">Save Content</button>
</form>
);
}
export default App;
import '@innoviatech/lexical-text-editor/style.css'MIT Β© Innoviatech
Weβre here to help you succeed with our editor! Here are the best ways to get support:
Found a bug or experiencing problems?
π Open a GitHub Issue
Please include:
Have an idea to make the editor even better?
β¨ Submit a Feature Request
Join our growing community of developers:
| Platform | Link | Best For |
|---|---|---|
| GitHub Discussions | Join Discussion | Questions & ideas |
Love our editor? Hereβs how you can contribute:
Our Mission
At Innoviatech, we believe that creating great digital experiences should be accessible to every developer. We build tools that empower teams to focus on what matters most.
Built with Passion
βGreat tools shouldnβt get in the way of great ideas. Thatβs why we build editors that feel like an extension of your creativity.β
Star Us on GitHub!
If you find this project helpful, please consider giving it a star on GitHub. It helps us reach more developers like you!
Made with β€οΈ by the Innoviatech team