From 78189b146b4857aed81ab5ffbffd18a4faf4051c Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 9 Sep 2020 14:47:35 +0200 Subject: [PATCH] update installation guide --- docs/src/docPages/general/installation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/docPages/general/installation.md b/docs/src/docPages/general/installation.md index 06d78b73..02e4a661 100644 --- a/docs/src/docPages/general/installation.md +++ b/docs/src/docPages/general/installation.md @@ -2,15 +2,15 @@ tiptap has a very modular package structure and is independent of any framework. Depending on what you want to do with tiptap there are a few different ways to install tiptap in your project. Choose the way that fits your project best. -## Vanilla JavaScript +## Plain JavaScript Use tiptap with vanilla JavaScript for a very lightweight and raw experience. If you feel like it, you can even use it to connect the tiptap core with other frameworks not mentioned here. ```bash -# Use npm +# With npm npm install @tiptap/core @tiptap/starter-kit -# Or: Use Yarn +# With yarn yarn add @tiptap/core @tiptap/starter-kit ``` @@ -18,11 +18,11 @@ Great, that should be enough to start. Here is the most essential code you need ```js import { Editor } from '@tiptap/core' -import extensions from '@tiptap/starter-kit' +import defaultExtensions from '@tiptap/starter-kit' new Editor({ element: document.getElementsByClassName('element'), - extensions: extensions(), + extensions: defaultExtensions(), content: '

Your content.

', }) ```