Skip to main content
Tiptap provides support for Vue 2 applications. While Vue 2 has reached end-of-life, this integration allows legacy projects to use Tiptap.
Vue 2 reached end-of-life on December 31, 2023. Consider upgrading to Vue 3 for new projects. This package is maintained for existing Vue 2 applications.

Installation

1

Install the packages

Install the Vue 2 package along with the core package and any extensions you need:
2

Import and use

Import the necessary components in your Vue component:

Core Concepts

Editor Class

In Vue 2, you create an editor instance using the Editor class directly. The editor should be created in the mounted lifecycle hook and destroyed in beforeDestroy.

Basic Usage

EditorContent Component

The EditorContent component renders the actual editor interface.

Complete Working Examples

Event Handlers

Handle editor events through the editor options:

Methods and Computed Properties

You can create methods and computed properties to interact with the editor:

Advanced: Custom Node Views

Create Vue 2 components as custom node views:
Bubble and floating menus work with Vue 2:

Watchers

You can use watchers to react to editor changes:

Migration from Vue 2 to Vue 3

If you’re upgrading from Vue 2 to Vue 3, here are the main changes:

Next Steps

Extensions

Explore available extensions to enhance your editor

Commands

Learn about editor commands and chains

Upgrade to Vue 3

Learn about the Vue 3 integration

Node Views

Create interactive custom nodes with Vue components