add content

This commit is contained in:
Hans Pagel
2020-08-12 12:00:02 +02:00
parent b380a3d4bb
commit 4db990856d
2 changed files with 14 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
# Getting started # Getting started
tiptap is framework-agnostic and works with Vue.js and React. It even works with plain JavaScript, if thats your thing. To keep everything as small as possible, we put the code to use tiptap with those frameworks in different packages. To use tiptap with Vue.js (or Nuxt.js), youll need the tiptap Vue.js adapter. You can install it as an dependency in your project: tiptap is framework-agnostic and works with Vue.js and React. It even works with plain JavaScript, if thats your thing. To keep everything as small as possible, we put the code to use tiptap with those frameworks in different packages.
## Use tiptap with Vue.js
We assume you already have a Vue.js (or Nuxt.js) project. To use tiptap in that project, you are going to need the tiptap Vue.js adapter. You can install tiptap and the adapter as a dependency in your project:
```bash ```bash
# Install Vue.js adapter with npm # Install Vue.js adapter with npm
@@ -10,17 +14,17 @@ npm install @tiptap/core @tiptap/starter-kit @tiptap/vue
yarn add @tiptap/core @tiptap/starter-kit @tiptap/vue yarn add @tiptap/core @tiptap/starter-kit @tiptap/vue
``` ```
Now you have got everything in place to add tiptap to your Vue.js project. Cool, you have got everything in place to setup tiptap! 🙌
## Create a new component ## Create a new component
Create a new Vue component (e. g. `<Tiptap />`) and add the following content. That is the shortest way to get tiptap up and running with Vue.js. Its a pretty basic version of tiptap but no worries, you will be able to add more functionality soon. Create a new Vue component (e. g. `<Tiptap />`) and add the following content. That is the fastest way to get tiptap up and running with Vue.js. This will give you a very basic version of tiptap, without any buttons. No worries, you will be able to add more functionality soon.
<demo name="GettingStarted" /> <demo name="GettingStarted" />
Does that work for you? There are a few common pitfalls here, depending on your setup. If you have trouble getting started, try to read the related links down here. > **Doesnt work for you?** There are a few common pitfalls here, depending on your setup. If you have trouble getting started, try to read the related links down here.
Otherwise: Congrats! Youve got it! Lets start with the confiuration in the next step. Congrats! Youve got it! 🎉 Lets start with the configuration in the next step.
### Related links ### Related links

View File

@@ -85,6 +85,11 @@ code {
font-size: 0.9rem; font-size: 0.9rem;
} }
blockquote {
padding-left: 1rem;
border-left: 3px solid rgba($colorBlack, 0.1);
}
.is-active { .is-active {
background: black; background: black;
color: white; color: white;