---
title: "Migrate from TinyMCE to Tiptap"
description: "Learn how to migrate your existing TinyMCE editor to Tiptap. Complete guide covering content migration, setup, and feature mapping."
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/guides/migrate-from-tinymce.md)

# Migrate from TinyMCE to Tiptap

Learn how to migrate your existing TinyMCE editor to Tiptap. Complete guide covering content migration, setup, and feature mapping.

Tags: Editor

Tiptap is a powerful alternative to TinyMCE. Migrating from TinyMCE to Tiptap is straightforward. This guide will walk you through the migration process step by step.

## Content migration

### HTML content compatibility

TinyMCE typically stores content as HTML, which makes migration to Tiptap seamless. Tiptap can directly use HTML content without any conversion:

```ts
// Your existing TinyMCE content
const existingContent = '<p>Hello <strong>world</strong>!</p>'

// Use directly in Tiptap
const editor = new Editor({
  content: existingContent,
  extensions: [StarterKit],
})
```

While HTML works perfectly, we recommend converting it to Tiptap's JSON format for better performance and readability. For batch conversion of existing content, use the [HTML utility](https://tiptap.dev/docs/v2/editor/api/utilities/html.md) to convert HTML to JSON programmatically.

## Editor setup

### Installation

First, install Tiptap and its dependencies:

```bash
npm install @tiptap/core @tiptap/starter-kit
```

Tiptap supports all modern frontend UI frameworks like React and Vue. Follow the framework-specific installation instructions in our [installation guides](https://tiptap.dev/docs/v2/editor/getting-started/install.md).

### Basic editor setup

Replace your TinyMCE initialization with Tiptap:

```ts
// TinyMCE (before)
tinymce.init({
  selector: '#editor',
  plugins: 'lists link image table code',
  toolbar: 'undo redo | bold italic | bullist numlist | link image',
})

// Tiptap (after)
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'

const editor = new Editor({
  element: document.querySelector('#editor'),
  extensions: [StarterKit],
  content: '<p>Hello World!</p>',
})
```

## Extensions

### Understanding Tiptap's extension system

Tiptap uses a modular extension system that resembles TinyMCE's plugin architecture. Each feature is an extension that can be configured independently.

The [StarterKit](https://tiptap.dev/docs/v2/editor/extensions/functionality/starterkit.md) is a bundle of all the basic extensions, and you can add or remove other extensions as needed.

Explore all available extensions in our [extensions guide](https://tiptap.dev/docs/v2/editor/extensions/overview.md), or [create your own](https://tiptap.dev/docs/v2/editor/extensions/custom-extensions.md) to support custom functionality and HTML elements.

### Common TinyMCE plugin equivalents

| TinyMCE Plugin | Tiptap Extension                        | Notes                  |
| -------------- | --------------------------------------- | ---------------------- |
| `lists`        | `BulletList`, `OrderedList`, `ListItem` | Included in StarterKit |
| `link`         | `Link`                                  | Included in StarterKit |
| `image`        | `Image`                                 | Available separately   |
| `table`        | `Table`                                 | Available separately   |
| `code`         | `Code`, `CodeBlock`                     | Included in StarterKit |
| `textcolor`    | `TextStyle`, `Color`                    | Available separately   |
| `fontsize`     | `TextStyle`, `FontSize`                 | Available separately   |
| `align`        | `TextAlign`                             | Available separately   |

### Extension configuration

```ts
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import Image from '@tiptap/extension-image'
import Table from '@tiptap/extension-table'
import TableRow from '@tiptap/extension-table-row'
import TableHeader from '@tiptap/extension-table-header'
import TableCell from '@tiptap/extension-table-cell'

const editor = new Editor({
  extensions: [
    StarterKit,
    // Add and configure extensions
    Image.configure({
      inline: true,
      allowBase64: true,
    }),
    Table.configure({
      resizable: true,
    }),
    TableRow,
    TableHeader,
    TableCell,
  ],
})
```

### Custom extensions

For TinyMCE custom plugins, you can create custom Tiptap extensions. See our [custom extensions guide](https://tiptap.dev/docs/v2/editor/extensions/custom-extensions.md) for detailed instructions.

## UI implementation

### Toolbar implementation

TinyMCE's toolbar configuration translates to custom UI components in Tiptap:

```tsx
// TinyMCE toolbar config
toolbar: 'undo redo | bold italic | bullist numlist'

// Tiptap equivalent (React example)
function Toolbar({ editor }) {
  if (!editor) return null

  return (
    <div className="toolbar">
      <button onClick={() => editor.chain().focus().undo().run()} disabled={!editor.can().undo()}>
        Undo
      </button>
      <button onClick={() => editor.chain().focus().redo().run()} disabled={!editor.can().redo()}>
        Redo
      </button>
      <button
        onClick={() => editor.chain().focus().toggleBold().run()}
        className={editor.isActive('bold') ? 'active' : ''}
      >
        Bold
      </button>
      <button
        onClick={() => editor.chain().focus().toggleItalic().run()}
        className={editor.isActive('italic') ? 'active' : ''}
      >
        Italic
      </button>
    </div>
  )
}
```

### Pre-built UI components

For faster development, consider using Tiptap's pre-built UI components:

- Explore our [UI components](https://tiptap.dev/docs/v2/ui-components/getting-started/overview.md) for ready-to-use toolbar and menu components
- Check out practical examples in our [default text editor example](https://tiptap.dev/docs/v2/examples/basics/default-text-editor.md)

### Menu systems

TinyMCE's context menus can be replaced with Tiptap's BubbleMenu and FloatingMenu:

```tsx
import { BubbleMenu } from '@tiptap/react'

function MyEditor() {
  const editor = useEditor({
    extensions: [StarterKit],
  })

  return (
    <>
      <EditorContent editor={editor} />
      <BubbleMenu editor={editor}>
        <button
          onClick={() => editor.chain().focus().toggleBold().run()}
          className={editor.isActive('bold') ? 'active' : ''}
        >
          Bold
        </button>
        <button
          onClick={() => editor.chain().focus().toggleItalic().run()}
          className={editor.isActive('italic') ? 'active' : ''}
        >
          Italic
        </button>
      </BubbleMenu>
    </>
  )
}
```

## Migration checklist

- Install Tiptap packages
- Replace TinyMCE initialization with Tiptap setup
- Map TinyMCE plugins to Tiptap extensions
- Migrate toolbar configuration to custom UI components
- Test content compatibility
- Convert existing content to JSON format (recommended)
- Implement custom extensions for any missing functionality
- Update event handlers and API calls
- Test thoroughly across all use cases

## Next steps

- Explore the [extension overview](https://tiptap.dev/docs/v2/editor/extensions/overview.md) to discover all available extensions
- Learn about [custom extensions](https://tiptap.dev/docs/v2/editor/extensions/custom-extensions.md) for advanced customization
- Check out our [examples](https://tiptap.dev/docs/v2/examples.md) for implementation inspiration
- Review the [performance guide](https://tiptap.dev/docs/v2/guides/performance.md) for optimization tips
