This repository is a playground for experimenting with the Tiptap rich text editor using Vue 3 and Vite. Tiptap is a headless editor framework that provides a clean and extensible architecture which allows you to build your own rich text editor based on ProseMirror.
- Rich text editing using Tiptap with a variety of extensions.
- Collaboration features using
y-prosemirror
,y-webrtc
, andyjs
. - Development environment powered by Vite and Vue 3.
Before you start, make sure you have the following installed:
- Node.js (v18.x)
- npm (v8.x) or Yarn (v1.x)
This project uses Yarn as the package manager, as indicated by the presence of a yarn.lock
file. If you prefer npm, you should be able to follow along, but make sure to generate your own package-lock.json
.
To get the project running on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/tiptap-test.git cd tiptap-test
-
Install dependencies:
Using Yarn:
yarn install
Using npm:
npm install
-
Start the development server
Using Yarn:
yarn dev
Using npm:
npm run dev
This command will start the Vite development server at http://localhost:3000. Open this URL in your browser to see your Tiptap editor in action.
-
Build the project (optional):To build the application for production, use:
Using Yarn:
yarn build
Using npm:
npm run build
This command will generate a
dist
folder containing the production-ready build of your application.
src/
: Contains the Vue component files and other source files.index.html
: The entry point for the application which includes the main Vue app mounting.vite.config.js
: Configuration for the Vite build tool.