Skip to content

EdituBlock-based Visual Editor

A Markdown editor built with Tiptap for React 19

Editu Logo

Quick Start

Install Editu for your framework:

bash
npm install @editu/react

Basic Usage

tsx
import { Editu } from '@editu/react';
import '@editu/core/styles.css';

function App() {
  return (
    <Editu
      placeholder="Type '/' for commands..."
      onUpdate={({ editor }) => console.log(editor.getJSON())}
    />
  );
}

Feature Highlights

Slash Commands

Type / to open the command menu:

  • Headings - H1, H2, H3
  • Lists - Bullet, Numbered, Task
  • Media - Images, Embeds, Files
  • Advanced - Tables, Code Blocks, Diagrams, Math

Bubble Menu

Select text to display the bubble menu:

  • Bold, Italic, Strikethrough
  • Links, Highlights, Code
  • Text alignment

Drag & Drop

Drag blocks by their handle to reorder content.

Features

FeatureDescription
React 19First-class React 19 support
TypeScriptIncludes type definitions
MarkdownImports and exports Markdown
ThemingUses CSS variables
Bundle sizeSupports tree-shaking
ExtensionsUses modular architecture

Community


Released under the MIT License.