mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-20 07:34:07 +08:00
docs(svelte): fix link to get started with svelte (#3396)
* docs(svelte): fix link to get started with svelte While going through the docs, I noticed the Svelte docs linked to the Vue docs on how to get started. * docs(svelte): update sveltekit create command
This commit is contained in:
parent
2c1c557a8b
commit
2afa8ad9eb
@ -13,7 +13,7 @@ If you just want to jump into it right-away, here is a [Svelte REPL with Tiptap]
|
||||
|
||||
## Requirements
|
||||
* [Node](https://nodejs.org/en/download/) installed on your machine
|
||||
* Experience with [Svelte](https://vuejs.org/v2/guide/#Getting-Started)
|
||||
* Experience with [Svelte](https://svelte.dev/docs#getting-started)
|
||||
|
||||
## 1. Create a project (optional)
|
||||
If you already have an existing SvelteKit project, that’s fine too. Just skip this step and proceed with the next step.
|
||||
@ -21,9 +21,8 @@ If you already have an existing SvelteKit project, that’s fine too. Just skip
|
||||
For the sake of this guide, let’s start with a fresh SvelteKit project called `my-tiptap-project`. The following commands set up everything we need. It asks a lot of questions, but just use what floats your boat or use the defaults.
|
||||
|
||||
```bash
|
||||
mkdir my-tiptap-project
|
||||
npm create svelte@latest my-tiptap-project
|
||||
cd my-tiptap-project
|
||||
npm init svelte@next
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
@ -101,7 +100,7 @@ This is the fastest way to get Tiptap up and running with SvelteKit. It will giv
|
||||
```
|
||||
|
||||
## 4. Add it to your app
|
||||
Now, let’s replace the content of `src/routes/index.svelte` with the following example code to use our new `Tiptap` component in our app.
|
||||
Now, let’s replace the content of `src/routes/+page.svelte` with the following example code to use our new `Tiptap` component in our app.
|
||||
|
||||
```html
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user