npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@innoviatech/lexical-text-editor

v2.0.6

Published

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.

Readme

@innoviatech/lexical-text-editor v2.0

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.

Editor Preview

What's New in v2.0

  • No Tailwind CSS Required - Now uses raw CSS for styling
  • Reduced Dependencies - Fewer peer dependencies to install
  • Simpler Setup - Import CSS and start using immediately
  • Lightweight - Smaller bundle size
  • Better Compatibility - Works with any React project setup

Features

  • 🎨 Rich Text Editing — Bold, italic, underline, strikethrough, code blocks
  • 📝 Text Formatting — Headers, paragraphs, lists (bulleted & numbered), quotes
  • 🔗 Link Support — Insert and edit hyperlinks
  • 🖼️ Media Embedding — Images and YouTube videos with resizing
  • 🎯 Customizable Toolbar — Modern, intuitive interface
  • 🎨 Color Picker — Text and background color options
  • 📱 Responsive Design — Works on desktop and mobile
  • TypeScript Support — Fully typed for better development experience

Installation

npm install @innoviatech/lexical-text-editor

No Peer Dependencies Required! 🎉

Version 2.0 eliminates the need for Tailwind CSS and multiple UI libraries. Just install the package and start using it!

Quick Start

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;

Props

| 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') |

Advanced Usage

With Initial Content

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;

Toolbar Features

  • Text Formatting: Bold, Italic, Underline, Strikethrough
  • Headings: H1–H6
  • Lists: Bulleted and Numbered
  • Alignment: Left, Center, Right, Justify
  • Text Case: Uppercase, Lowercase, Capitalize
  • Colors: Text & background color picker
  • Media: Image upload, YouTube embedding, video node
  • Links: Insert and edit hyperlinks
  • Code: Inline code & code blocks
  • Quotes: Blockquote formatting
  • Undo/Redo, Clear formatting, Remove link

Browser Support

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

Troubleshooting

  • CSS not loading: import '@innoviatech/lexical-text-editor/style.css'
  • Editor not rendering: Check that React 18+ or next.js 14+ is installed
  • TypeScript errors: Update to TypeScript 5.0+
  • Missing styles: Verify the CSS import path is correct

Version Compatibility

  • React 18+
  • Next.js 14+
  • Lexical 0.36.0+
  • TypeScript 5.0+

License

MIT © Innoviatech

Support & Community

Get Help

We're here to help you succeed with our editor! Here are the best ways to get support:

Report an Issue

Found a bug or experiencing problems?
👉 Open a GitHub Issue

Please include:

  • 📱 Environment (Browser, OS, React/Next.js version)
  • 🔍 Steps to reproduce
  • 🎯 Expected vs Actual behavior
  • 📋 Relevant code snippets
  • 🖼️ Screenshots (if applicable)

Request a Feature

Have an idea to make the editor even better?
Submit a Feature Request

Documentation

Getting Started Guide

Video Tutorials

Community

Join our growing community of developers:

| Platform | Link | Best For | |----------|------|----------| | GitHub Discussions | Join Discussion | Questions & ideas |

Contribute

Love our editor? Here's how you can contribute:

Ways to Contribute

  • 📝 Improve Documentation – Help others learn
  • 🔧 Fix Bugs – Submit pull requests
  • Add Features – Extend functionality
  • 🧪 Write Tests – Improve reliability
  • 🌍 Translate – Help with localization
  • 📣 Spread the Word – Star the repo, share with others

About Innoviatech

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!

Star on GitHub

npm version


Made with ❤️ by the Innoviatech team