refactoring
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
---
|
||||
title: Advanced Example
|
||||
slug: advanced-example
|
||||
---
|
||||
# Advanced Example
|
||||
|
||||
Use a custom list of extensions.
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
---
|
||||
title: Basic Example
|
||||
slug: basic-example
|
||||
---
|
||||
# Basic Example
|
||||
|
||||
This is a basic example of tiptap.
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
---
|
||||
title: Install
|
||||
slug: install
|
||||
---
|
||||
# Install
|
||||
|
||||
```bash
|
||||
# Using npm
|
||||
@@ -9,4 +6,17 @@ npm install @tiptap/core
|
||||
|
||||
# Using Yarn
|
||||
yarn add @tiptap/core
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
||||
```js
|
||||
import { Editor } from '@tiptap/core'
|
||||
import extensions from '@tiptap/starter-kit'
|
||||
|
||||
new Editor({
|
||||
element: document.getElementsByClassName('element'),
|
||||
extensions: extensions(),
|
||||
content: '<p>Hey there.</p>',
|
||||
})
|
||||
```
|
||||
@@ -1,7 +1,4 @@
|
||||
---
|
||||
title: React
|
||||
slug: react
|
||||
---
|
||||
# React
|
||||
|
||||
This is a basic example of tiptap.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user